���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
.output.1
/
server
/
chunks
/
build
/
Viewing: list-EEeIDcxM.mjs
import { _ as _sfc_main$3 } from './Loading-C2dGXV1S.mjs'; import { m as mergeConfig, f as appConfig, l as button, k as __nuxt_component_4$1, g as useUI, _ as _export_sfc, d as useLocalePath, b as useI18n, j as useToast, c as useRoute, q as useCookie, n as navigateTo, u as useHead, o as __nuxt_component_1, p as __nuxt_component_2$1, r as useRuntimeConfig } from './server.mjs'; import { defineComponent, toRef, computed, useSSRContext, ref, unref, withCtx, createVNode, toDisplayString, reactive, withAsyncContext, watch, mergeProps, isRef, createTextVNode, openBlock, createBlock, createCommentVNode } from 'vue'; import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderList, ssrRenderAttr, ssrRenderClass, ssrRenderSlot } from 'vue/server-renderer'; import { _ as _sfc_main$4 } from './ConfirmationDialog-BW8yE_nx.mjs'; import { _ as __nuxt_component_2 } from './Card-Dw9IkhD2.mjs'; import { _ as __nuxt_component_3 } from './Input-q9mM-aQy.mjs'; import { _ as __nuxt_component_1$1 } from './Select-DBKHrG4l.mjs'; import { u as useLocalForage } from './composables-z330IbmE.mjs'; import { u as useAPI } from './useAPI-CQCl9J4m.mjs'; import { u as useFetch } from './fetch-5zL7LryB.mjs'; import { u as useMainStore } from './index-CJ-QPhVh.mjs'; import '../runtime.mjs'; import 'node:http'; import 'node:https'; import 'fs'; import 'path'; import 'node:fs'; import 'node:url'; import '@iconify/utils'; import 'consola/core'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'devalue'; import '@unhead/ssr'; import 'unhead'; import '@unhead/shared'; import 'vue-router'; import '@vueuse/core'; import 'tailwind-merge'; import '@iconify/vue'; import '@iconify/utils/lib/css/icon'; import './id-srWinFsL.mjs'; import './keyboard-DxZwAodF.mjs'; import 'js-cookie'; const pagination = { wrapper: "flex items-center -space-x-px", base: "", rounded: "first:rounded-s-md last:rounded-e-md", default: { size: "sm", activeButton: { color: "primary" }, inactiveButton: { color: "white" }, firstButton: { color: "white", class: "rtl:[&_span:first-child]:rotate-180", icon: "i-heroicons-chevron-double-left-20-solid" }, lastButton: { color: "white", class: "rtl:[&_span:last-child]:rotate-180", icon: "i-heroicons-chevron-double-right-20-solid" }, prevButton: { color: "white", class: "rtl:[&_span:first-child]:rotate-180", icon: "i-heroicons-chevron-left-20-solid" }, nextButton: { color: "white", class: "rtl:[&_span:last-child]:rotate-180", icon: "i-heroicons-chevron-right-20-solid" } } }; const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.pagination, pagination); const buttonConfig = mergeConfig(appConfig.ui.strategy, appConfig.ui.button, button); const _sfc_main$2 = defineComponent({ components: { UButton: __nuxt_component_4$1 }, inheritAttrs: false, props: { modelValue: { type: Number, required: true }, pageCount: { type: Number, default: 10 }, total: { type: Number, required: true }, max: { type: Number, default: 7, validate(value) { return value >= 5 && value < Number.MAX_VALUE; } }, disabled: { type: Boolean, default: false }, size: { type: String, default: () => config.default.size, validator(value) { return Object.keys(buttonConfig.size).includes(value); } }, to: { type: Function, default: null }, activeButton: { type: Object, default: () => config.default.activeButton }, inactiveButton: { type: Object, default: () => config.default.inactiveButton }, showFirst: { type: Boolean, default: false }, showLast: { type: Boolean, default: false }, firstButton: { type: Object, default: () => config.default.firstButton }, lastButton: { type: Object, default: () => config.default.lastButton }, prevButton: { type: Object, default: () => config.default.prevButton }, nextButton: { type: Object, default: () => config.default.nextButton }, divider: { type: String, default: "\u2026" }, class: { type: [String, Object, Array], default: () => "" }, ui: { type: Object, default: () => ({}) } }, emits: ["update:modelValue"], setup(props, { emit }) { const { ui, attrs } = useUI("pagination", toRef(props, "ui"), config, toRef(props, "class")); const currentPage = computed({ get() { return props.modelValue; }, set(value) { emit("update:modelValue", value); } }); const pages = computed(() => Array.from({ length: Math.ceil(props.total / props.pageCount) }, (_, i) => i + 1)); const displayedPages = computed(() => { const totalPages = pages.value.length; const current = currentPage.value; const maxDisplayedPages = Math.max(props.max, 5); const r = Math.floor((Math.min(maxDisplayedPages, totalPages) - 5) / 2); const r1 = current - r; const r2 = current + r; const beforeWrapped = r1 - 1 > 1; const afterWrapped = r2 + 1 < totalPages; const items = []; if (totalPages <= maxDisplayedPages) { for (let i = 1; i <= totalPages; i++) { items.push(i); } return items; } items.push(1); if (beforeWrapped) items.push(props.divider); if (!afterWrapped) { const addedItems = current + r + 2 - totalPages; for (let i = current - r - addedItems; i <= current - r - 1; i++) { items.push(i); } } for (let i = Math.max(2, r1); i <= Math.min(totalPages, r2); i++) { items.push(i); } if (!beforeWrapped) { const addedItems = 1 - (current - r - 2); for (let i = current + r + 1; i <= current + r + addedItems; i++) { items.push(i); } } if (afterWrapped) items.push(props.divider); if (r2 < totalPages) { items.push(totalPages); } if (items.length >= 3 && items[1] === props.divider && items[2] === 3) { items[1] = 2; } if (items.length >= 3 && items[items.length - 2] === props.divider && items[items.length - 1] === items.length) { items[items.length - 2] = items.length - 1; } return items; }); const canGoFirstOrPrev = computed(() => currentPage.value > 1); const canGoLastOrNext = computed(() => currentPage.value < pages.value.length); function onClickFirst() { if (!canGoFirstOrPrev.value) { return; } currentPage.value = 1; } function onClickLast() { if (!canGoLastOrNext.value) { return; } currentPage.value = pages.value.length; } function onClickPage(page) { if (typeof page === "string") { return; } currentPage.value = page; } function onClickPrev() { if (!canGoFirstOrPrev.value) { return; } currentPage.value--; } function onClickNext() { if (!canGoLastOrNext.value) { return; } currentPage.value++; } return { // eslint-disable-next-line vue/no-dupe-keys ui, attrs, currentPage, pages, displayedPages, canGoLastOrNext, canGoFirstOrPrev, onClickPrev, onClickNext, onClickPage, onClickFirst, onClickLast }; } }); function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) { const _component_UButton = __nuxt_component_4$1; _push(`<div${ssrRenderAttrs(mergeProps({ class: _ctx.ui.wrapper }, _ctx.attrs, _attrs))}>`); ssrRenderSlot(_ctx.$slots, "first", { onClick: _ctx.onClickFirst }, () => { if (_ctx.firstButton && _ctx.showFirst) { _push(ssrRenderComponent(_component_UButton, mergeProps({ size: _ctx.size, disabled: !_ctx.canGoFirstOrPrev || _ctx.disabled, class: [_ctx.ui.base, _ctx.ui.rounded] }, { ..._ctx.ui.default.firstButton || {}, ..._ctx.firstButton }, { ui: { rounded: "" }, "aria-label": "First", onClick: _ctx.onClickFirst }), null, _parent)); } else { _push(`<!---->`); } }, _push, _parent); ssrRenderSlot(_ctx.$slots, "prev", { onClick: _ctx.onClickPrev }, () => { if (_ctx.prevButton) { _push(ssrRenderComponent(_component_UButton, mergeProps({ size: _ctx.size, disabled: !_ctx.canGoFirstOrPrev || _ctx.disabled, class: [_ctx.ui.base, _ctx.ui.rounded] }, { ..._ctx.ui.default.prevButton || {}, ..._ctx.prevButton }, { ui: { rounded: "" }, "aria-label": "Prev", onClick: _ctx.onClickPrev }), null, _parent)); } else { _push(`<!---->`); } }, _push, _parent); _push(`<!--[-->`); ssrRenderList(_ctx.displayedPages, (page, index) => { var _a; _push(ssrRenderComponent(_component_UButton, mergeProps({ key: `${page}-${index}`, to: typeof page === "number" ? (_a = _ctx.to) == null ? void 0 : _a.call(_ctx, page) : null, size: _ctx.size, disabled: _ctx.disabled, label: `${page}`, ref_for: true }, page === _ctx.currentPage ? { ..._ctx.ui.default.activeButton || {}, ..._ctx.activeButton } : { ..._ctx.ui.default.inactiveButton || {}, ..._ctx.inactiveButton }, { class: [{ "pointer-events-none": typeof page === "string", "z-[1]": page === _ctx.currentPage }, _ctx.ui.base, _ctx.ui.rounded], ui: { rounded: "" }, onClick: () => _ctx.onClickPage(page) }), null, _parent)); }); _push(`<!--]-->`); ssrRenderSlot(_ctx.$slots, "next", { onClick: _ctx.onClickNext }, () => { if (_ctx.nextButton) { _push(ssrRenderComponent(_component_UButton, mergeProps({ size: _ctx.size, disabled: !_ctx.canGoLastOrNext || _ctx.disabled, class: [_ctx.ui.base, _ctx.ui.rounded] }, { ..._ctx.ui.default.nextButton || {}, ..._ctx.nextButton }, { ui: { rounded: "" }, "aria-label": "Next", onClick: _ctx.onClickNext }), null, _parent)); } else { _push(`<!---->`); } }, _push, _parent); ssrRenderSlot(_ctx.$slots, "last", { onClick: _ctx.onClickLast }, () => { if (_ctx.lastButton && _ctx.showLast) { _push(ssrRenderComponent(_component_UButton, mergeProps({ size: _ctx.size, disabled: !_ctx.canGoLastOrNext || _ctx.disabled, class: [_ctx.ui.base, _ctx.ui.rounded] }, { ..._ctx.ui.default.lastButton || {}, ..._ctx.lastButton }, { ui: { rounded: "" }, "aria-label": "Last", onClick: _ctx.onClickLast }), null, _parent)); } else { _push(`<!---->`); } }, _push, _parent); _push(`</div>`); } const _sfc_setup$2 = _sfc_main$2.setup; _sfc_main$2.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/@nuxt/ui/dist/runtime/components/navigation/Pagination.vue"); return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0; }; const __nuxt_component_4 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["ssrRender", _sfc_ssrRender]]); const _sfc_main$1 = /* @__PURE__ */ defineComponent({ __name: "footer", __ssrInlineRender: true, setup(__props) { const localePath = useLocalePath(); const { locale } = useI18n(); const { t } = useI18n(); const loadingEdit = ref(false); const projectsDB = useLocalForage("projects"); const sheetsDB = useLocalForage("sheets"); const toast = useToast(); const ProjectReq = async () => { const project = await projectsDB.getItem("new"); if (!project) { navigateTo(localePath("/analyze/start")); return toast.add({ title: t("First, complete the project information section"), color: "orange" }); } const sheets = await sheetsDB.getItem("new"); if (!sheets) { navigateTo(localePath("/analyze/dimensions")); return toast.add({ title: t("First, complete the section on the dimensions of the sheets to be used"), color: "orange" }); } loadingEdit.value = true; await useAPI("/analyze/project/set", { method: "POST", body: { json_sheets: sheets, json_project: project, lang: locale.value }, immediate: true, server: true, onResponse({ response }) { if (response.status != 422) { return navigateTo(localePath("/projects")); } } }); loadingEdit.value = false; }; return (_ctx, _push, _parent, _attrs) => { const _component_ULink = __nuxt_component_1; const _component_UIcon = __nuxt_component_2$1; const _component_UButton = __nuxt_component_4$1; _push(`<div${ssrRenderAttrs(_attrs)}><footer class="bg-white flex justify-between items-center sm:border-r sm:border-l w-full sm:w-9/12 md:w-7/12 lg:w-6/12 2xl:w-5/12 mx-auto fixed bottom-0 right-0 left-0 border-t"><div class="w-4/12">`); _push(ssrRenderComponent(_component_ULink, { to: unref(localePath)("/analyze/category"), class: "flex flex-col justify-center items-center", "active-class": "text-main-700", "inactive-class": "text-gray-500 hover:text-main-700 " }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-circum-circle-plus", class: "text-3xl" }, null, _parent2, _scopeId)); _push2(`<span class="block text-sm text-center"${_scopeId}>${ssrInterpolate(unref(t)("Add Unit"))}</span>`); } else { return [ createVNode(_component_UIcon, { name: "i-circum-circle-plus", class: "text-3xl" }), createVNode("span", { class: "block text-sm text-center" }, toDisplayString(unref(t)("Add Unit")), 1) ]; } }), _: 1 }, _parent)); _push(`</div><div class="w-4/12">`); _push(ssrRenderComponent(_component_ULink, { to: unref(localePath)("/unit/make/create"), class: "flex flex-col justify-center items-center", "active-class": "text-main-700", "inactive-class": "text-gray-500 hover:text-main-700 " }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-table-cells", class: "text-main-700 text-3xl" }, null, _parent2, _scopeId)); _push2(`<span class="block text-sm text-center"${_scopeId}>${ssrInterpolate(unref(t)("add_piece"))}</span>`); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-table-cells", class: "text-main-700 text-3xl" }), createVNode("span", { class: "block text-sm text-center" }, toDisplayString(unref(t)("add_piece")), 1) ]; } }), _: 1 }, _parent)); _push(`</div><div class="w-4/12">`); _push(ssrRenderComponent(_component_UButton, { onClick: ProjectReq, class: "flex flex-col justify-center mx-auto bg-white !shadow-none text-gray-500 items-center", "inactive-class": "text-gray-500 !bg-white hover:text-main-700 " }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { loading: unref(loadingEdit), name: unref(loadingEdit) ? "i-heroicons-arrow-path" : "i-circum-square-check", class: [unref(loadingEdit) ? " text-red-600" : "", "text-3xl"] }, null, _parent2, _scopeId)); _push2(`<span class="block text-sm text-center"${_scopeId}>${ssrInterpolate(unref(t)("final_approval"))}</span>`); } else { return [ createVNode(_component_UIcon, { loading: unref(loadingEdit), name: unref(loadingEdit) ? "i-heroicons-arrow-path" : "i-circum-square-check", class: [unref(loadingEdit) ? " text-red-600" : "", "text-3xl"] }, null, 8, ["loading", "name", "class"]), createVNode("span", { class: "block text-sm text-center" }, toDisplayString(unref(t)("final_approval")), 1) ]; } }), _: 1 }, _parent)); _push(`</div></footer></div>`); }; } }); const _sfc_setup$1 = _sfc_main$1.setup; _sfc_main$1.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/unit/list/footer.vue"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0; }; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "list", __ssrInlineRender: true, async setup(__props) { let __temp, __restore; const { t, locale } = useI18n(); const route = useRoute(); const localePath = useLocalePath(); const token = useCookie("token"); const toast = useToast(); const MainStore = useMainStore(); const config2 = useRuntimeConfig(); const isOpen = ref(false); const has_var1 = ref(false); const has_var2 = ref(false); const spinnerLoading = ref(false); const loading = ref(true); const deleteDialogIsOpen = ref(false); const type = [{ name: t("Free"), value: "0" }, { name: t("Strip"), value: "1" }, { name: t("Farsi"), value: "2" }, { name: t("Groove"), value: "3" }]; const state = reactive({ attach_id: void 0, length: void 0, width: void 0, var_1: void 0, var_2: void 0, count: void 0, label: void 0, length_one: 1, length_two: 1, width_one: 1, width_two: 1, material_id: 1, page: 1 }); let fetchedData = ref({ list: [], materials: [] }); async function getAnalyzeList() { var _a, _b; const { data } = await useAPI("/analyze/list/get", { immediate: true, server: true }); let list2 = data.value !== void 0 ? (_a = data.value) == null ? void 0 : _a.list : []; let materials = data.value !== void 0 ? (_b = data.value) == null ? void 0 : _b.materials : []; for (let key in list2) { fetchedData.value.list.push(list2[key]); } for (let key in materials) { fetchedData.value.materials.push(materials[key]); } } [__temp, __restore] = withAsyncContext(() => getAnalyzeList()), await __temp, __restore(); const chunkArray = (size) => { let array = fetchedData.value.list; const chunkedArray = []; for (let i = 0; i < (array == null ? void 0 : array.length); i += size) { chunkedArray.push(array.slice(i, i + size)); } return chunkedArray; }; let page = computed({ get() { var _a; if (((_a = route.query) == null ? void 0 : _a.page) === void 0) { return 1; } return Number(route.query.page); }, set(newPage) { loading.value = true; navigateTo({ query: { ...route.query, page: newPage } }); } }); watch(page, () => { loading.value = false; }); const rowItemsCountInEachPage = ref(3); const chunkedData = chunkArray(rowItemsCountInEachPage.value); const computedPageCount = computed(() => { var _a; return (_a = Number(route.query.page)) != null ? _a : 1; }); const toggleCollapse = (id) => { (void 0).querySelector("#body_collapse_" + id).classList.toggle("hidden"); (void 0).querySelector("#header_collapse_" + id).classList.toggle(locale.value == "en" ? "-rotate-90" : "rotate-90"); }; const toggleModal = (obj) => { state.attach_id = obj["id"]; state.label = obj["label"]; state.width = obj["width"]; state.length = obj["length"]; state.var_1 = obj["var_1"]; state.var_2 = obj["var_2"]; state.count = obj["count"]; state.length_one = obj["length_one"]; state.length_two = obj["length_two"]; state.width_one = obj["width_one"]; state.width_two = obj["width_two"]; state.material_id = obj["material_id"]; isOpen.value = true; if (obj["var_1"] && obj["var_1"] != 0) { has_var1.value = true; } if (obj["var_2"] && obj["var_2"] != 0) { has_var2.value = true; } }; async function editAttach() { if (!state.width) { return toast.add({ title: t("Length_Alert"), color: "orange" }); } if (!state.count) { return toast.add({ title: t("Number_Alert"), color: "orange" }); } if (!state.length) { return toast.add({ title: t("Width_Alert"), color: "orange" }); } if (!state.material_id) { return toast.add({ title: t("Material_Alert"), color: "orange" }); } if (!state.attach_id) { return toast.add({ title: t("desired_Alert"), color: "orange" }); } spinnerLoading.value = true; await useFetch(config2.public.API_URL + "/analyze/list/edit-attach", { method: "POST", body: { attach_id: state.attach_id, label: state.label, width: state.width, length: state.length, var_1: state.var_1, var_2: state.var_2, count: state.count, length_one: state.length_one, length_two: state.length_two, width_one: state.width_one, width_two: state.width_two, material_id: state.material_id }, onRequest({ options }) { options.headers = {}; options.headers.Accept = "application/json"; options.headers.authorization = "Bearer " + token.value; }, onResponseError({ response }) { if (response.status == 401) { navigateTo(localePath("/login")); } }, onResponse({ response }) { if (response.status == 422) { return toast.add({ title: response._data.message, color: "orange" }); } } }, "$BfZmlAICuD"); spinnerLoading.value = false; isOpen.value = false; await getAnalyzeList(); } async function handleDeleteAllItems() { await deleteListItem(0, "list"); } async function deleteListItem(id, type2) { spinnerLoading.value = true; deleteDialogIsOpen.value = !deleteDialogIsOpen.value; await useAPI("/analyze/list/delete", { method: "POST", body: { ids: id, type: type2 }, immediate: true, server: true }); spinnerLoading.value = false; await getAnalyzeList(); } function toggleDeleteAllDialog() { deleteDialogIsOpen.value = !deleteDialogIsOpen.value; } let selectedListItemId = ref(null); function toggleDeleteListItemDialog(itemId = null) { selectedListItemId.value = itemId != null ? itemId : null; deleteDialogIsOpen.value = !deleteDialogIsOpen.value; } let selectedListItemSliceId = ref(null); function toggleDeleteListItemSliceDialog(itemId = null) { selectedListItemSliceId.value = itemId != null ? itemId : null; deleteDialogIsOpen.value = !deleteDialogIsOpen.value; } function deleteSelectedListItemSlice() { deleteListItem([selectedListItemSliceId], "attach"); } function deleteSelectedListItem() { deleteListItem([selectedListItemId.value], "list"); } useHead({ title: t("analysis_list") }); return (_ctx, _push, _parent, _attrs) => { const _component_SharedLoading = _sfc_main$3; const _component_ULink = __nuxt_component_1; const _component_UIcon = __nuxt_component_2$1; const _component_UButton = __nuxt_component_4$1; const _component_UPagination = __nuxt_component_4; const _component_SharedConfirmationDialog = _sfc_main$4; const _component_UModal = __nuxt_component_2; const _component_UInput = __nuxt_component_3; const _component_USelect = __nuxt_component_1$1; const _component_UnitListFooter = _sfc_main$1; if (loading.value) { _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex items-center justify-center" }, _attrs))} data-v-152a849a>`); _push(ssrRenderComponent(_component_SharedLoading, null, null, _parent)); _push(`</div>`); } else { _push(`<div${ssrRenderAttrs(_attrs)} data-v-152a849a>`); if (unref(fetchedData).list.length > 0) { _push(`<section class="pt-1 mt-1 mb-10 relative" data-v-152a849a><ul data-v-152a849a><!--[-->`); ssrRenderList(unref(chunkedData)[unref(computedPageCount) - 1], (row) => { var _a; _push(`<li class="w-full border-b-2 odd:bg-gray-100 p-2" data-v-152a849a><section${ssrRenderAttr("dir", unref(locale) == "en" ? "ltr" : "rtl")} class="px-2 cursor-pointer flex justify-between items-center" data-v-152a849a><div class="flex justify-start items-center" data-v-152a849a><div class="h-20 w-20" data-v-152a849a><img${ssrRenderAttr("src", ((_a = row.unit) == null ? void 0 : _a.image_3_d) && row.unit.image_3_d ? unref(config2).public.FILE_URL + row.unit.image_3_d.address : "/apple-touch-icon.png")} class="w-32 border h-full mx-auto" alt="\u06A9\u0627\u062A \u06CC\u0648\u0646\u06CC\u06A9\u0633 | \u0648\u0628 \u0627\u067E\u0644\u06CC\u06A9\u06CC\u0634\u0646 \u0622\u0646\u0627\u0644\u06CC\u0632 \u06CC\u0648\u0646\u06CC\u062A" data-v-152a849a></div><label class="${ssrRenderClass([unref(locale) == "en" ? "ml-2 text-left" : "mr-2 text-right", "block pb-2 w-[10rem] truncate text-main-700 cursor-pointer text-sm"])}" data-v-152a849a>${ssrInterpolate(unref(locale) == "en" ? row.unit.title_en : row.unit.title)}</label></div><div class="flex justify-end items-center pb-2" data-v-152a849a>`); _push(ssrRenderComponent(_component_ULink, { square: "", to: row.unit_id ? unref(localePath)("/unit/edit/" + row.id) : unref(localePath)("/unit/make/update/" + row.id), class: "flex items-center !text-red-600 !shadow-none justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-pencil-square", class: "text-main-700 cursor-pointer ml-5 text-xl" }, null, _parent2, _scopeId)); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-pencil-square", class: "text-main-700 cursor-pointer ml-5 text-xl" }) ]; } }), _: 2 }, _parent)); _push(ssrRenderComponent(_component_ULink, { square: "", to: unref(localePath)("/unit/settings/" + row.id), class: "flex items-center !text-red-600 !shadow-none justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-cog-6-tooth", class: "text-green-600 cursor-pointer ml-4 text-xl" }, null, _parent2, _scopeId)); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-cog-6-tooth", class: "text-green-600 cursor-pointer ml-4 text-xl" }) ]; } }), _: 2 }, _parent)); _push(ssrRenderComponent(_component_UButton, { square: "", loading: spinnerLoading.value, onClick: ($event) => toggleDeleteListItemDialog(row.id), class: "flex items-center !text-red-600 !shadow-none justify-center bg-transparent hover:bg-transparent" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-trash", class: "text-red-600 cursor-pointer ml-2 text-xl" }, null, _parent2, _scopeId)); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-trash", class: "text-red-600 cursor-pointer ml-2 text-xl" }) ]; } }), _: 2 }, _parent)); _push(ssrRenderComponent(_component_UIcon, { onClick: ($event) => toggleCollapse(row.id), id: "header_collapse_" + row.id, name: "i-heroicons-chevron-down-20-solid", class: [unref(locale) == "en" ? "-rotate-90" : "rotate-90", "text-gray-500 transition-all text-2xl"] }, null, _parent)); _push(`</div></section><section${ssrRenderAttr("id", "body_collapse_" + row.id)} class="hidden border-t transition-all mt-2" data-v-152a849a>`); if (row.attach) { _push(`<table class="w-full p-0" dir="ltr" data-v-152a849a><thead data-v-152a849a><tr class="bg-gray-300 text-[13px] text-center text-nowrap" data-v-152a849a><th class="max-w-[15px]" data-v-152a849a>${ssrInterpolate(unref(t)("length"))}</th><th data-v-152a849a></th><th data-v-152a849a>${ssrInterpolate(unref(t)("width"))}</th><th data-v-152a849a></th><th data-v-152a849a>${ssrInterpolate(unref(t)("count"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("material"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("length_1"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("length_2"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("width_1"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("width_2"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("unit_title"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("edit"))}</th><th data-v-152a849a>${ssrInterpolate(unref(t)("delete"))}</th></tr></thead><tbody data-v-152a849a><!--[-->`); ssrRenderList(row.attach, (slice, key) => { _push(`<tr class="even:bg-gray-100 text-[11px] text-gray-500" data-v-152a849a><td class="text-center !max-w-[15px]" data-v-152a849a>${ssrInterpolate(slice.length)}</td><td class="text-center" data-v-152a849a>`); _push(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-x-mark", class: "text-[11px]" }, null, _parent)); _push(`</td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.width)}</td><td class="text-center" data-v-152a849a> = </td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.count)}</td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.material ? unref(locale) == "en" ? slice.material.title_en : slice.material.title : "---")}</td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.length_one == "1" ? "N" : slice.length_one == "2" ? "F" : slice.length_one == "3" ? "SH" : "-")}</td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.length_two == "1" ? "N" : slice.length_two == "2" ? "F" : slice.length_two == "3" ? "SH" : "-")}</td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.width_one == "1" ? "N" : slice.width_one == "2" ? "F" : slice.width_one == "3" ? "SH" : "-")}</td><td class="text-center" data-v-152a849a>${ssrInterpolate(slice.width_two == "1" ? "N" : slice.width_two == "2" ? "F" : slice.width_two == "3" ? "SH" : "-")}</td><td class="text-center" data-v-152a849a>`); if (slice.label_en || slice.label) { _push(`<!--[-->${ssrInterpolate(unref(locale) == "en" ? slice.label_en : slice.label)}<!--]-->`); } else { _push(`<!--[-->${ssrInterpolate(unref(t)("Custom Slice"))}<!--]-->`); } _push(`</td><td class="text-center" data-v-152a849a>`); _push(ssrRenderComponent(_component_UIcon, { onClick: ($event) => toggleModal(slice), name: "i-heroicons-pencil-square", class: "cursor-pointer text-green-600 text-sm" }, null, _parent)); _push(`</td><td class="text-center" data-v-152a849a>`); _push(ssrRenderComponent(_component_UButton, { square: "", loading: spinnerLoading.value, onClick: ($event) => toggleDeleteListItemSliceDialog(slice.id), class: "!text-red-600 !shadow-none bg-transparent hover:bg-transparent" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-trash", class: "text-red-600 cursor-pointer text-sm" }, null, _parent2, _scopeId)); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-trash", class: "text-red-600 cursor-pointer text-sm" }) ]; } }), _: 2 }, _parent)); _push(`</td></tr>`); }); _push(`<!--]--></tbody></table>`); } else { _push(`<!---->`); } _push(`</section></li>`); }); _push(`<!--]--><li class="flex justify-center items-center my-2" data-v-152a849a>`); _push(ssrRenderComponent(_component_UPagination, { modelValue: unref(page), "onUpdate:modelValue": ($event) => isRef(page) ? page.value = $event : page = $event, "page-count": rowItemsCountInEachPage.value, total: unref(fetchedData).list.length }, null, _parent)); _push(`</li><li class="flex justify-start items-center mt-16 px-2" data-v-152a849a>`); _push(ssrRenderComponent(_component_UButton, { square: "", onClick: toggleDeleteAllDialog, loading: spinnerLoading.value, class: "flex items-center bg-red-700 text-white text-sm bold px-4 !shadow-none justify-center rounded" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`${ssrInterpolate(unref(t)("delete_all"))}`); } else { return [ createTextVNode(toDisplayString(unref(t)("delete_all")), 1) ]; } }), _: 1 }, _parent)); _push(ssrRenderComponent(_component_SharedConfirmationDialog, { "toggle-show-up": deleteDialogIsOpen.value, message: unref(t)("are_you_sure_to_do_this_operation"), onOnClosed: toggleDeleteAllDialog, onOnConfirmed: handleDeleteAllItems }, null, _parent)); _push(ssrRenderComponent(_component_SharedConfirmationDialog, { "toggle-show-up": deleteDialogIsOpen.value, message: unref(t)("are_you_sure_to_do_this_operation"), onOnClosed: toggleDeleteListItemDialog, onOnConfirmed: deleteSelectedListItem }, null, _parent)); _push(ssrRenderComponent(_component_SharedConfirmationDialog, { "toggle-show-up": deleteDialogIsOpen.value, message: unref(t)("are_you_sure_to_do_this_operation"), onOnClosed: toggleDeleteListItemSliceDialog, onOnConfirmed: deleteSelectedListItemSlice }, null, _parent)); _push(`</li></ul></section>`); } else { _push(`<section class="mt-36" data-v-152a849a><h2 class="text-red-500 block mx-auto w-full text-center" data-v-152a849a>${ssrInterpolate(unref(t)("there_is_no_record_to_showing"))}</h2></section>`); } _push(ssrRenderComponent(_component_UModal, { modelValue: isOpen.value, "onUpdate:modelValue": ($event) => isOpen.value = $event, class: "!top-0" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<div${ssrRenderAttr("dir", unref(locale) == "en" ? "ltr" : "rtl")} class="flex justify-between items-center p-2" data-v-152a849a${_scopeId}><span class="block bold text-xs truncate !top-0 !bottom-auto !justify-start" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Edit the piece"))}</span>`); _push2(ssrRenderComponent(_component_UButton, { color: "gray", variant: "ghost", icon: "i-heroicons-x-mark-20-solid", class: "-my-1", onClick: ($event) => isOpen.value = false }, null, _parent2, _scopeId)); _push2(`</div><div${ssrRenderAttr("dir", unref(locale) == "en" ? "ltr" : "rtl")} class="h-96 mb-6 mt-3 px-4 pt-3 max-h-full overflow-y-auto" data-v-152a849a${_scopeId}><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Length"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).length, "onUpdate:modelValue": ($event) => unref(state).length = $event }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Width"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).width, "onUpdate:modelValue": ($event) => unref(state).width = $event }, null, _parent2, _scopeId)); _push2(`</div></div>`); if (has_var1.value) { _push2(`<div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Variable One"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).var_1, "onUpdate:modelValue": ($event) => unref(state).var_1 = $event }, null, _parent2, _scopeId)); _push2(`</div></div>`); } else { _push2(`<!---->`); } if (has_var2.value == true) { _push2(`<div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Variable Two"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).var_2, "onUpdate:modelValue": ($event) => unref(state).var_2 = $event }, null, _parent2, _scopeId)); _push2(`</div></div>`); } else { _push2(`<!---->`); } _push2(`<div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("count"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).count, "onUpdate:modelValue": ($event) => unref(state).count = $event }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Name"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UInput, { loading: false, variant: "outline", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", modelValue: unref(state).label, "onUpdate:modelValue": ($event) => unref(state).label = $event }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("material"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_USelect, { options: unref(fetchedData).materials, modelValue: unref(state).material_id, "onUpdate:modelValue": ($event) => unref(state).material_id = $event, "option-attribute": unref(locale) == "en" ? "title_en" : "title", valueAttribute: "id", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Top"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_USelect, { options: type, modelValue: unref(state).width_one, "onUpdate:modelValue": ($event) => unref(state).width_one = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Down"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_USelect, { options: type, modelValue: unref(state).width_two, "onUpdate:modelValue": ($event) => unref(state).width_two = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Left"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_USelect, { options: type, modelValue: unref(state).length_one, "onUpdate:modelValue": ($event) => unref(state).length_one = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, _parent2, _scopeId)); _push2(`</div></div><div class="flex justify-start items-center w-full mb-3" data-v-152a849a${_scopeId}><label class="${ssrRenderClass([unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}" data-v-152a849a${_scopeId}>${ssrInterpolate(unref(t)("Right"))}</label><div class="w-8/12" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_USelect, { options: type, modelValue: unref(state).length_two, "onUpdate:modelValue": ($event) => unref(state).length_two = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, _parent2, _scopeId)); _push2(`</div></div></div><div class="flex justify-around mb-2 items-center" data-v-152a849a${_scopeId}>`); _push2(ssrRenderComponent(_component_UButton, { onClick: ($event) => isOpen.value = false, square: "", class: "w-5/12 flex px-2 text-white rounded bg-blue-700 items-center justify-center" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`<span class="block px-2 text-xs truncate" data-v-152a849a${_scopeId2}>${ssrInterpolate(unref(t)("Cancel"))}</span>`); } else { return [ createVNode("span", { class: "block px-2 text-xs truncate" }, toDisplayString(unref(t)("Cancel")), 1) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_UButton, { square: "", loading: spinnerLoading.value, onClick: ($event) => editAttach(), class: "w-5/12 flex px-2 text-white rounded bg-main-700 items-center justify-center" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`<span class="block px-2 text-xs truncate" data-v-152a849a${_scopeId2}>${ssrInterpolate(unref(t)("payment_5"))}</span>`); } else { return [ createVNode("span", { class: "block px-2 text-xs truncate" }, toDisplayString(unref(t)("payment_5")), 1) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`</div>`); } else { return [ createVNode("div", { dir: unref(locale) == "en" ? "ltr" : "rtl", class: "flex justify-between items-center p-2" }, [ createVNode("span", { class: "block bold text-xs truncate !top-0 !bottom-auto !justify-start" }, toDisplayString(unref(t)("Edit the piece")), 1), createVNode(_component_UButton, { color: "gray", variant: "ghost", icon: "i-heroicons-x-mark-20-solid", class: "-my-1", onClick: ($event) => isOpen.value = false }, null, 8, ["onClick"]) ], 8, ["dir"]), createVNode("div", { dir: unref(locale) == "en" ? "ltr" : "rtl", class: "h-96 mb-6 mt-3 px-4 pt-3 max-h-full overflow-y-auto" }, [ createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Length")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).length, "onUpdate:modelValue": ($event) => unref(state).length = $event }, null, 8, ["onKeydown", "modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Width")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).width, "onUpdate:modelValue": ($event) => unref(state).width = $event }, null, 8, ["onKeydown", "modelValue", "onUpdate:modelValue"]) ]) ]), has_var1.value ? (openBlock(), createBlock("div", { key: 0, class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Variable One")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).var_1, "onUpdate:modelValue": ($event) => unref(state).var_1 = $event }, null, 8, ["onKeydown", "modelValue", "onUpdate:modelValue"]) ]) ])) : createCommentVNode("", true), has_var2.value == true ? (openBlock(), createBlock("div", { key: 1, class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Variable Two")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).var_2, "onUpdate:modelValue": ($event) => unref(state).var_2 = $event }, null, 8, ["onKeydown", "modelValue", "onUpdate:modelValue"]) ]) ])) : createCommentVNode("", true), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("count")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_UInput, { loading: false, variant: "outline", type: "number", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeydown: unref(MainStore).NumbersOnly, modelValue: unref(state).count, "onUpdate:modelValue": ($event) => unref(state).count = $event }, null, 8, ["onKeydown", "modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Name")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_UInput, { loading: false, variant: "outline", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", modelValue: unref(state).label, "onUpdate:modelValue": ($event) => unref(state).label = $event }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("material")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_USelect, { options: unref(fetchedData).materials, modelValue: unref(state).material_id, "onUpdate:modelValue": ($event) => unref(state).material_id = $event, "option-attribute": unref(locale) == "en" ? "title_en" : "title", valueAttribute: "id", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, 8, ["options", "modelValue", "onUpdate:modelValue", "option-attribute"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Top")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_USelect, { options: type, modelValue: unref(state).width_one, "onUpdate:modelValue": ($event) => unref(state).width_one = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Down")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_USelect, { options: type, modelValue: unref(state).width_two, "onUpdate:modelValue": ($event) => unref(state).width_two = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Left")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_USelect, { options: type, modelValue: unref(state).length_one, "onUpdate:modelValue": ($event) => unref(state).length_one = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [unref(locale) == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"] }, toDisplayString(unref(t)("Right")), 3), createVNode("div", { class: "w-8/12" }, [ createVNode(_component_USelect, { options: type, modelValue: unref(state).length_two, "onUpdate:modelValue": ($event) => unref(state).length_two = $event, "option-attribute": "name", selectClass: "w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 py-0 text-xs" }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]) ]) ], 8, ["dir"]), createVNode("div", { class: "flex justify-around mb-2 items-center" }, [ createVNode(_component_UButton, { onClick: ($event) => isOpen.value = false, square: "", class: "w-5/12 flex px-2 text-white rounded bg-blue-700 items-center justify-center" }, { default: withCtx(() => [ createVNode("span", { class: "block px-2 text-xs truncate" }, toDisplayString(unref(t)("Cancel")), 1) ]), _: 1 }, 8, ["onClick"]), createVNode(_component_UButton, { square: "", loading: spinnerLoading.value, onClick: ($event) => editAttach(), class: "w-5/12 flex px-2 text-white rounded bg-main-700 items-center justify-center" }, { default: withCtx(() => [ createVNode("span", { class: "block px-2 text-xs truncate" }, toDisplayString(unref(t)("payment_5")), 1) ]), _: 1 }, 8, ["loading", "onClick"]) ]) ]; } }), _: 1 }, _parent)); _push(ssrRenderComponent(_component_UnitListFooter, null, null, _parent)); _push(`</div>`); } }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/analyze/list.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; const list = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-152a849a"]]); export { list as default }; //# sourceMappingURL=list-EEeIDcxM.mjs.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa