���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
/
server
/
chunks
/
build
/
Viewing: list-BmishFjK.mjs
import { _ as __nuxt_component_2 } from './Modal-y43pxt07.mjs'; import { b as useI18n, u as useHead, c as useLocalePath, q as useCookie, i as useToast, k as useRuntimeConfig, n as navigateTo, l as __nuxt_component_3, o as __nuxt_component_0$1, p as __nuxt_component_1$1, r as __nuxt_component_2$2 } from './server.mjs'; import { _ as __nuxt_component_3$1 } from './Input-B3b5x64j.mjs'; import { _ as __nuxt_component_1 } from './Select-P-6alWOg.mjs'; import { useSSRContext, defineComponent, ref, reactive, computed, withAsyncContext, mergeProps, unref, isRef, withCtx, createVNode, toDisplayString, openBlock, createBlock, createCommentVNode, createTextVNode } from 'vue'; import { u as useLocalForage } from './composables-C_0rrRVB.mjs'; import { u as useAPI } from './useAPI-I7uSbjKz.mjs'; import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrInterpolate, ssrRenderClass, ssrRenderList } from 'vue/server-renderer'; import { u as useFetch } from './fetch-BLrdAwwP.mjs'; import { u as useMainStore } from './index-hutJPNJL.mjs'; import './id-DOoFjeHa.mjs'; import './keyboard-DxZwAodF.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 'js-cookie'; 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({ request, response, options }) { if (response.status != 422) { return navigateTo(localePath("/project")); } } }); loadingEdit.value = false; }; return (_ctx, _push, _parent, _attrs) => { const _component_ULink = __nuxt_component_0$1; const _component_UIcon = __nuxt_component_1$1; const _component_UButton = __nuxt_component_3; _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 { locale } = useI18n(); const { t } = useI18n(); useHead({ title: t("Unit Analysis List") }); const localePath = useLocalePath(); const token = useCookie("token"); const toast = useToast(); const MainStore = useMainStore(); const config = useRuntimeConfig(); const isOpen = ref(false); const hasvar_1 = ref(false); const hasvar_2 = ref(false); const loadingEdit = ref(false); const loadingPageNext = ref(false); const loadingPagepre = 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 }); const requestParams = computed(() => { return { page: state.page }; }); const { data, pending, error, refresh } = ([__temp, __restore] = withAsyncContext(() => useAPI("/analyze/list/get", { query: requestParams, immediate: true, server: true, transform: (mountains) => { if (0 < JSON.parse(mountains).data.list.data.length) { return JSON.parse(mountains).data; } else { navigateTo(localePath("/")); return toast.add({ title: t("currently active project"), color: "orange" }); } }, onResponse({ request, response, options }) { loadingPageNext.value = false; loadingPagepre.value = false; } })), __temp = await __temp, __restore(), __temp); 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) { hasvar_1.value = true; } if (obj["var_2"] && obj["var_2"] != 0) { hasvar_2.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" }); } loadingEdit.value = true; await useFetch(config.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({ request, options }) { options.headers = {}; options.headers.Accept = "application/json"; options.headers.authorization = "Bearer " + token.value; }, onResponseError({ request, response, options }) { if (response.status == 401) { navigateTo(localePath("/login")); } }, onResponse({ request, response, options }) { if (response.status == 422) { return toast.add({ title: response._data.message, color: "orange" }); } } }, "$BfZmlAICuD"); loadingEdit.value = false; isOpen.value = false; refresh(); } async function handelAllDelete() { Delete(0, "list"); } async function Delete(id, type2) { loadingEdit.value = true; await useAPI("/analyze/list/delete", { method: "POST", body: { ids: id, type: type2 }, immediate: true, server: true }); loadingEdit.value = false; refresh(); } return (_ctx, _push, _parent, _attrs) => { const _component_UModal = __nuxt_component_2; const _component_UButton = __nuxt_component_3; const _component_UInput = __nuxt_component_3$1; const _component_USelect = __nuxt_component_1; const _component_ULink = __nuxt_component_0$1; const _component_UIcon = __nuxt_component_1$1; const _component_ClientOnly = __nuxt_component_2$2; const _component_UnitListFooter = _sfc_main$1; _push(`<div${ssrRenderAttrs(mergeProps({ class: "" }, _attrs))}>`); _push(ssrRenderComponent(_component_UModal, { modelValue: unref(isOpen), "onUpdate:modelValue": ($event) => isRef(isOpen) ? isOpen.value = $event : null, class: "!top-0" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<div${ssrRenderAttr("dir", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")} class="flex justify-between items-center p-2"${_scopeId}><span class="block bold text-xs truncate !top-0 !bottom-auto !justify-start"${_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", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")} class="h-96 mb-6 mt-3 px-4 pt-3 max-h-full overflow-y-auto"${_scopeId}><div class="flex justify-start items-center w-full mb-3"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Length"))}</label><div class="w-8/12"${_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", onKeypress: 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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Width"))}</label><div class="w-8/12"${_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", onKeypress: unref(MainStore).NumbersOnly, modelValue: unref(state).width, "onUpdate:modelValue": ($event) => unref(state).width = $event }, null, _parent2, _scopeId)); _push2(`</div></div>`); if (unref(hasvar_1) == true) { _push2(`<div class="flex justify-start items-center w-full mb-3"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Variable One"))}</label><div class="w-8/12"${_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", onKeypress: 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 (unref(hasvar_2) == true) { _push2(`<div class="flex justify-start items-center w-full mb-3"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Variable Two"))}</label><div class="w-8/12"${_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", onKeypress: 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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("count"))}</label><div class="w-8/12"${_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", onKeypress: 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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Name"))}</label><div class="w-8/12"${_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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Material"))}</label><div class="w-8/12"${_scopeId}>`); _push2(ssrRenderComponent(_component_USelect, { options: unref(data).materials, modelValue: unref(state).material_id, "onUpdate:modelValue": ($event) => unref(state).material_id = $event, "option-attribute": _ctx.$i18n.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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Top"))}</label><div class="w-8/12"${_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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Down"))}</label><div class="w-8/12"${_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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Left"))}</label><div class="w-8/12"${_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"${_scopeId}><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " text-left" : " text-right", "block w-3/12 text-gray-500 bg-white text-xs"])}"${_scopeId}>${ssrInterpolate(unref(t)("Right"))}</label><div class="w-8/12"${_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"${_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"${_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: unref(loadingEdit), 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"${_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: _ctx.$i18n.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: _ctx.$i18n.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: [_ctx.$i18n.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", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeypress: unref(MainStore).NumbersOnly, modelValue: unref(state).length, "onUpdate:modelValue": ($event) => unref(state).length = $event }, null, 8, ["onKeypress", "modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [_ctx.$i18n.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", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeypress: unref(MainStore).NumbersOnly, modelValue: unref(state).width, "onUpdate:modelValue": ($event) => unref(state).width = $event }, null, 8, ["onKeypress", "modelValue", "onUpdate:modelValue"]) ]) ]), unref(hasvar_1) == true ? (openBlock(), createBlock("div", { key: 0, class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [_ctx.$i18n.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", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeypress: unref(MainStore).NumbersOnly, modelValue: unref(state).var_1, "onUpdate:modelValue": ($event) => unref(state).var_1 = $event }, null, 8, ["onKeypress", "modelValue", "onUpdate:modelValue"]) ]) ])) : createCommentVNode("", true), unref(hasvar_2) == true ? (openBlock(), createBlock("div", { key: 1, class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [_ctx.$i18n.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", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeypress: unref(MainStore).NumbersOnly, modelValue: unref(state).var_2, "onUpdate:modelValue": ($event) => unref(state).var_2 = $event }, null, 8, ["onKeypress", "modelValue", "onUpdate:modelValue"]) ]) ])) : createCommentVNode("", true), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [_ctx.$i18n.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", inputClass: " w-full !shadow-none focus:ring-1 rounded-sm focus:ring-orange-600 h-7 pl-2 py-0 text-xs", onKeypress: unref(MainStore).NumbersOnly, modelValue: unref(state).count, "onUpdate:modelValue": ($event) => unref(state).count = $event }, null, 8, ["onKeypress", "modelValue", "onUpdate:modelValue"]) ]) ]), createVNode("div", { class: "flex justify-start items-center w-full mb-3" }, [ createVNode("label", { class: [_ctx.$i18n.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: [_ctx.$i18n.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(data).materials, modelValue: unref(state).material_id, "onUpdate:modelValue": ($event) => unref(state).material_id = $event, "option-attribute": _ctx.$i18n.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: [_ctx.$i18n.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: [_ctx.$i18n.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: [_ctx.$i18n.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: [_ctx.$i18n.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: unref(loadingEdit), 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(`<section class="pt-1 mt-1 mb-10 relative"><ul><!--[-->`); ssrRenderList(unref(data).list.data, (row) => { var _a; _push(`<li class="w-full border-b-2"><section${ssrRenderAttr("dir", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")} class="px-2 cursor-pointer flex justify-between items-center"><div class="flex justify-start items-center"><div class="h-20 w-20"><img${ssrRenderAttr("src", ((_a = row.unit) == null ? void 0 : _a.image_3_d) && row.unit.image_3_d ? unref(config).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"></div><label class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "ml-2 text-left" : "mr-2 text-right", "block pb-2 w-[10rem] truncate text-main-700 cursor-pointer text-sm"])}">${ssrInterpolate(row.name)}</label></div><div class="flex justify-end items-center pb-2">`); _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 !bg-white !text-red-600 !shadow-none hover:!bg-white 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/setting/" + row.id), class: "flex items-center !bg-white !text-red-600 !shadow-none hover:!bg-white 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: unref(loadingEdit), onClick: ($event) => Delete([row.id], "list"), class: "flex items-center !bg-white !text-red-600 !shadow-none hover:!bg-white justify-center" }, { 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: [_ctx.$i18n.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"><!--[-->`); ssrRenderList(row.attach, (slice) => { var _a2; _push(`<div${ssrRenderAttr("dir", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")} class="w-full border-b h-7 flex justify-between items-center"><div class="cursor-pointer w-[7%] h-full flex justify-center items-center border-l">`); _push(ssrRenderComponent(_component_UButton, { square: "", onClick: ($event) => Delete([slice.id], "attach"), class: "flex items-center !bg-white !text-red-600 !shadow-none hover:!bg-white justify-center" }, { 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(`</div><div class="cursor-pointer w-[7%] h-full flex justify-center items-center border-l">`); _push(ssrRenderComponent(_component_UIcon, { onClick: ($event) => ToggleModal(slice), name: "i-heroicons-pencil-square", class: "text-green-600 text-sm" }, null, _parent)); _push(`</div><div class="w-[22%] h-full flex justify-start items-center border-l">`); if (slice.label_en || slice.label) { _push(`<span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "ml-2 text-left" : "mr-2 text-right", "text-gray-500 pr-1 text-[.55rem]"])}">${ssrInterpolate(_ctx.$i18n.locale == "en" ? slice.label_en : slice.label)}</span>`); } else { _push(`<span class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "ml-2 text-left" : "mr-2 text-right", "text-gray-500 pr-1 text-[.55rem]"])}">${ssrInterpolate(unref(t)("Custom Slice"))}</span>`); } _push(`</div><div class="w-[7%] flex justify-center items-center h-full border-l"><span class="text-gray-500 text-[.55rem]">${ssrInterpolate(slice.width_one == "1" ? "N" : slice.width_one == "2" ? "F" : slice.width_one == "3" ? "SH" : "-")}</span></div><div class="w-[7%] flex justify-center items-center h-full border-l"><span class="text-gray-500 text-[.55rem]">${ssrInterpolate(slice.width_two == "1" ? "N" : slice.width_two == "2" ? "F" : slice.width_two == "3" ? "SH" : "-")}</span></div><div class="w-[7%] flex justify-center items-center h-full border-l"><span class="text-gray-500 text-[.55rem]">${ssrInterpolate(slice.length_one == "1" ? "N" : slice.length_one == "2" ? "F" : slice.length_one == "3" ? "SH" : "-")}</span></div><div class="w-[7%] flex justify-center items-center h-full border-l"><span class="text-gray-500 text-[.55rem]">${ssrInterpolate(slice.length_two == "1" ? "N" : slice.length_two == "2" ? "F" : slice.length_two == "3" ? "SH" : "-")}</span></div><div class="w-[13%] flex justify-center items-center h-full border-l"><span class="text-gray-500 text-[.55rem]">${(_a2 = slice.material ? _ctx.$i18n.locale == "en" ? slice.material.title_en : slice.material.title : "---") != null ? _a2 : ""}</span></div><div class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? " justify-start" : " justify-end", "w-[24%] flex pl-1 items-center h-full"])}"><div dir="ltr" class="w-9/12 justify-start flex items-center"><span class="${ssrRenderClass([!slice.var_1 ? "w-4/12" : "w-2/12", "block text-gray-500 text-center text-[.6rem]"])}">${ssrInterpolate(slice.length)}</span><span class="${ssrRenderClass([!slice.var_1 ? "w-2/12" : "w-1/12", "block text-gray-500 text-center text-[.6rem]"])}"> * </span><span class="${ssrRenderClass([!slice.var_1 ? "w-3/12" : "w-2/12", "block text-gray-500 text-center text-[.6rem]"])}">${ssrInterpolate(slice.width)}</span>`); if (slice.var_1 && slice.var_1 != 0) { _push(`<!--[--><span class="block w-1/12 text-gray-500 text-center text-[.6rem]"> * </span><span class="block w-2/12 text-gray-500 text-center text-[.6rem]">${ssrInterpolate(slice.var_1)}</span><!--]-->`); } else { _push(`<!---->`); } if (slice.var_2 && slice.var_2 != 0) { _push(`<!--[--><span class="block w-1/12 text-gray-500 text-center text-[.6rem]"> * </span><span class="block w-2/12 text-gray-500 text-center text-[.6rem]">${ssrInterpolate(slice.var_2)}</span><!--]-->`); } else { _push(`<!---->`); } _push(`<span class="block w-1/12 text-gray-500 text-center text-[.6rem]"> = </span><span class="block w-2/12 text-gray-500 text-center text-[.6rem]">${ssrInterpolate(slice.count)}</span></div></div></div>`); }); _push(`<!--]--></section></li>`); }); _push(`<!--]--><li class="mt-2">`); _push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent)); _push(`</li><li class="flex justify-center items-center mt-2">`); _push(ssrRenderComponent(_component_UButton, { square: "", onClick: handelAllDelete, loading: unref(loadingEdit), 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(` \u062D\u0630\u0641 \u0647\u0645\u0647 `); } else { return [ createTextVNode(" \u062D\u0630\u0641 \u0647\u0645\u0647 ") ]; } }), _: 1 }, _parent)); _push(`</li></ul></section>`); _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; }; export { _sfc_main as default }; //# sourceMappingURL=list-BmishFjK.mjs.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa