���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
/
.nuxt
/
dist
/
server
/
_nuxt
/
Viewing: create-DcJFB0kP.js.map.json
{"file":"create-DcJFB0kP.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACM,UAAA,EAAE,MAAM;AAKL,YAAA;AAAA,MACL,OAAO,EAAE,UAAU;AAAA,IAAA,CACtB;AACD,UAAM,QAAQ;AACR,UAAA,UAAU,IAAI,KAAK;AACN,YAAQ;AACrB,UAAA,EAAE,SAAU;AAClB,UAAM,SAAS;AACf,UAAM,aAAa;AAEb,UAAA,EAAE,KAAK,KAAc,CAAA,QAAA,SAAA,IAAAA,iBAAA,YAAA,aAAc,YAAY;AACjD,YAAM,CAAC,MAAM,IAAQ,MAAM,QAAQ,IAAI;AAAA,QACnC,KAAK,OAAO,OAAO,UAAQ,oBAAoB;AAAA,MAAA,CAClD;AACD,YAAO,gBAAe,KAAK,MAAM,MAAM,EAAE,KAAK;AACvC,aAAA;AAAA,QACH,QAAO;AAAA,MAAA;AAAA,IACX,GACF;AAAA,MACF,QAAO;AAAA,IAAA,GACP,aAAC,CAAA;AACD,UAAM,OAAO,SAAS;AAAA,MAClB,aAAa;AAAA,MACb,mBAAmB;AAAA,MACnB,eAAe;AAAA,MACf,WAAW;AAAA,MACX,OAAM;AAAA,QACF;AAAA,UACI,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,SAAQ;AAAA,UACR,cAAa;AAAA,UACb,cAAa;AAAA,UACb,aAAY;AAAA,UACZ,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,eAAc;AAAA,QAElB;AAAA,MACJ;AAAA,IAAA,CACH;AAqBK,UAAA,iBAAiB,CAAC,MAAY;AAC3B,WAAA,MAAM,OAAO,GAAG,CAAC;AACjB,WAAA,YAAU,KAAK,YAAU;AAAA,IAAA;AAOlC,UAAM,cAAc,YAAU;AAC1B,cAAQ,QAAM;AACd,eAAS,QAAQ,GAAG,QAAS,KAAK,MAAM,QAAQ,SAAS;AAC/C,cAAA,UAAU,KAAK,MAAM,KAAK;AAC7B,YAAA,CAAC,QAAQ,OAAM;AACd,iBAAO,MAAM,IAAI,EAAE,OAAO,EAAE,UAAU,KAAG,QAAM,KAAG,MAAI,EAAE,aAAa,GAAE,OAAM,SAAS,CAAA,GAAE,QAAQ,QAAM;AAAA,QAC1G;AACG,YAAA,CAAC,QAAQ,QAAO;AACf,iBAAO,MAAM,IAAI,EAAE,OAAO,EAAE,UAAU,KAAG,QAAM,KAAG,MAAI,EAAE,cAAc,GAAE,OAAM,SAAS,CAAA,GAAE,QAAQ,QAAM;AAAA,QAC3G;AACG,YAAA,CAAC,QAAQ,OAAM;AACd,iBAAO,MAAM,IAAI,EAAE,OAAO,EAAE,UAAU,KAAG,QAAM,KAAG,MAAI,EAAE,cAAc,GAAE,OAAM,SAAS,CAAA,GAAE,QAAQ,QAAM;AAAA,QAC3G;AAAA,MACJ;AAEA,YAAM,OAAQ,4BAA4B;AAAA,QACtC,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,WAAW,EAAE,SAAS,UAAU,WAAW;AACpC,cAAA,SAAS,UAAW,KAAI;AAChB,mBAAA,WAAW,WAAW,eAAe,CAAC;AAAA,UACjD;AAAA,QACJ;AAAA,MAAA,CACH;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["_withAsyncContext"],"sources":["../../../../pages/unit/make/create.vue"],"sourcesContent":["<script setup lang=\"ts\"> \r\nconst { t } = useI18n() \r\ndefinePageMeta({\r\n title: '', \r\n middleware: ['auth'],\r\n}) \r\nuseHead ({\r\n title: t('makeUnit') \r\n}) \r\nconst toast = useToast();\r\nconst loading = ref(false); \r\nconst { locale } = useI18n(); \r\nconst { $api } = useNuxtApp(); \r\nconst config = useRuntimeConfig(); \r\nconst localePath = useLocalePath(); \r\n\r\nconst { data }:any = await useAsyncData( async () => {\r\n const [feilds]:any = await Promise.all([\r\n $api(config.public.API_URL+'/analyze/materials'), \r\n ]) \r\n const feildsOptions =JSON.parse(feilds).data.materials \r\n return {\r\n feilds:feildsOptions \r\n }; \r\n},{\r\nserver:true \r\n}) \r\nconst form = reactive({\r\n material_id: 1, \r\n panel_description: '', \r\n rotate_status: false, \r\n num_slice: 1, \r\n slice:[\r\n { \r\n 'length':'', \r\n 'width':'', \r\n 'count':'1', \r\n 'length_one':0, \r\n 'length_two':0, \r\n 'width_one':0, \r\n 'width_two':0, \r\n 'rotate_status':false, \r\n 'description':'' \r\n \r\n }\r\n ]\r\n}) \r\nconst handelSlice = (type:string) =>{ \r\n if(type == 'increment'){\r\n form.num_slice=form.num_slice+1; \r\n form.slice.push({ \r\n 'length':'', \r\n 'width':'', \r\n 'count':'1', \r\n 'length_one':0, \r\n 'length_two':0, \r\n 'width_one':0, \r\n 'width_two':0, \r\n 'rotate_status':false, \r\n 'description':'' \r\n }); \r\n }else if(1 < form.num_slice){\r\n form.num_slice=form.num_slice-1; \r\n form.slice.splice(form.num_slice, 1); \r\n } \r\n handelRotateStatus()\r\n}\r\nconst removeSliceRow = (i:number) =>{ \r\n form.slice.splice(i, 1); \r\n form.num_slice=form.num_slice-1;\r\n} \r\nconst handelRotateStatus = () =>{ \r\n for (let index = 0; index < form.slice.length; index++) {\r\n form.slice[index].rotate_status = form.rotate_status; \r\n } \r\n} \r\nconst handelClick = async ()=>{ \r\n loading.value=true; \r\n for (let index = 0; index < form.slice.length; index++) {\r\n const element = form.slice[index]; \r\n if(!element.width){\r\n return toast.add({ title: t(\"Section \")+(index+1)+' '+t(\"Width_Alert\"),color:\"orange\"}),loading.value=false; \r\n } \r\n if(!element.length){\r\n return toast.add({ title: t(\"Section \")+(index+1)+' '+t(\"Length_Alert\"),color:\"orange\"}),loading.value=false; \r\n } \r\n if(!element.count){\r\n return toast.add({ title: t(\"Section \")+(index+1)+' '+t(\"Number_Alert\"),color:\"orange\"}),loading.value=false; \r\n } \r\n } \r\n \r\n await useAPI( '/analyze/custom-list/add', {\r\n method: 'POST',\r\n body: form ,\r\n immediate: true, \r\n server: true,\r\n onResponse({ request, response, options }) {\r\n if(response.status != 422){ \r\n return navigateTo(localePath('/analyze/list'));\r\n } \r\n } \r\n }) \r\n \r\n} \r\n\r\n</script>\r\n\r\n<template> \r\n <div class=\"w-[95%] mx-auto \"> \r\n <div :dir=\"$i18n.locale == 'en' ? 'ltr' : 'rtl'\" class=\"mb-2 \" >\r\n <div class=\" bg-[#f7941d] text-black block w-full rounded-t-md overflow-hidden \" > \r\n <div class=\"flex items-center justify-between px-2 py-2 \">\r\n <span class=\"w-4/12 text-base font-bold text-right text-white\"> </span>\r\n <div class=\"flex items-start justify-center w-4/12 \"> \r\n <span id=\"title_group_1\" class=\"block text-sm font-bold\">\r\n {{ t('Add piece') }} \r\n </span>\r\n </div>\r\n <span class=\"w-4/12 block\">\r\n \r\n </span>\r\n </div> \r\n </div>\r\n <div class=\" pt-2 border-b border-l border-r border-gray-400 min-h-[90vh] !rounded-t-none rounded-md overflow-hidden\">\r\n <div class=\"flex flex-wrap w-full mx-auto \"> \r\n <div class=\"flex items-start justify-start flex-wrap w-full mb-4\">\r\n <div class=\"w-full mb-2\">\r\n <div class=\"mx-auto w-[98%]\"> \r\n <select v-model=\"form.material_id\" class=\"block w-full h-9 py-0 !px-3 text-sm bg-white text-gray-900 border border-gray-300 rounded focus:ring-main-700 focus:border-main-700\"> \r\n <option v-for=\"(row,i) in data.feilds\" :value=\"row.id\"> {{ $i18n.locale == 'en' ? row.title_en : row.title }} </option> \r\n \r\n </select> \r\n </div> \r\n </div> \r\n <div class=\"w-full mb-2\">\r\n <div class=\"mx-auto w-[98%]\"> \r\n <textarea v-model=\"form.panel_description\" rows=\"1\" class=\"block w-full h-9 py-1 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded 3xl:h-9 focus:ring-main-700 focus:border-main-700 placeholder-slate-400\" type=\"text\" :placeholder=\"t('Sheet name and code')\"></textarea>\r\n </div> \r\n </div> \r\n <div class=\"w-full \">\r\n <div class=\"mx-auto w-[98%] flex justify-start items-center\"> \r\n <input type=\"checkbox\" @change=\"handelRotateStatus\" v-model=\"form.rotate_status\" class=\"w-5 h-5 text-red-900 border-2 border-red-900 cursor-pointer focus:border-red-900 focus:ring-red-900\">\r\n <span class=\"mr-5 text-sm text-black\"> {{ t('Total rotation of parts') }} </span> \r\n </div>\r\n </div>\r\n </div> \r\n </div> \r\n <section class=\"flex separator items-center justify-between w-full pb-5\"> \r\n <div class=\"flex items-center justify-center flex-row px-2 \"> \r\n <button @click=\"handelSlice('increment')\" type=\"button\" :class=\"$i18n.locale == 'en' ? 'mr-2 pr-2' : 'ml-2 pl-2'\" class=\" mb-0 w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 border-green-500 hover:bg-green-50 border rounded cursor-pointer \">\r\n <i class='mx-1 text-xl bx bx-plus text-green-500' ></i>\r\n <span \r\n class=\"flex w-full justify-center items-center\">\r\n {{ t('Add row') }}\r\n </span> \r\n </button>\r\n <button @click=\"handelSlice('decrement')\" type=\"button\" :class=\"$i18n.locale == 'en' ? ' pr-2' : ' pl-2'\" class=\" mb-0 :w-auto h-7 text-xs bold flex justify-center items-center bg-gray-50 border-red-500 hover:bg-red-50 border rounded cursor-pointer \">\r\n <i class='mx-1 text-xl bx bx-minus text-red-500' ></i>\r\n <span \r\n class=\"flex w-full justify-center items-center\">\r\n {{ t('Reduce line') }}\r\n </span> \r\n </button>\r\n </div> \r\n </section>\r\n <div class=\"w-full\"> \r\n <div class=\" w-full flex justify-start items-start mb-2 pb-0 border-b border-dashed border-main-700 \" v-for=\"(row,i) in form.num_slice\"> \r\n <div class=\"w-[12%] mr-[.1rem] \">\r\n <span class=\" w-full py-0 !pr-0 text-xs text-gray-900 h-7 3xl:h-9 flex items-center rounded justify-center text-center bold border-2 border-red-700 border-dashed focus:!ring-0\" >\r\n \r\n <UIcon v-if=\"1 < (i+1)\" @click=\"removeSliceRow(i)\" name=\"i-heroicons-x-circle\" class=\"text-xl text-red-600 cursor-pointer ml-1\" />\r\n \r\n {{i+1}}\r\n </span>\r\n <div class=\"w-full flex flex-col items-center justify-end my-[.3rem]\">\r\n <input type=\"checkbox\" v-model=\"form.slice[i].rotate_status\" class=\"text-red-900 border-2 border-red-900 cursor-pointer focus:border-red-900 focus:ring-red-900\">\r\n <span class=\" text-xs text-black\"> {{ t('rotation') }} </span> \r\n </div>\r\n </div> \r\n <div class=\" w-[88%] flex flex-wrap justify-start items-center \">\r\n \r\n <div class=\"w-[24%] mr-[.1rem] mb-[.1rem]\">\r\n <input :placeholder=\"t('Number')\" v-model=\"form.slice[i].count\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 text-center bold rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\" >\r\n </div> \r\n <div class=\"w-[24%] mr-[.1rem] mb-[.1rem]\">\r\n <input :placeholder=\"t('Width')\" v-model=\"form.slice[i].width\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 text-center bold rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\" >\r\n </div> \r\n <div class=\"w-[24%] mr-[.1rem] mb-[.1rem]\">\r\n <input v-model=\"form.slice[i].length\" :placeholder=\"t('Length')\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 text-center bold rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\" >\r\n </div> \r\n <div class=\"w-[24%] mb-[.1rem] mr-[.1rem] \">\r\n <textarea v-model=\"form.slice[i].description\" rows=\"1\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-1 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded description h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700 placeholder-slate-400\" :placeholder=\"t('Description')\" ></textarea>\r\n </div> \r\n <div class=\"w-[24%] mr-[.1rem]\">\r\n <select v-model=\"form.slice[i].width_two\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\">\r\n <option value=\"0\">{{ t('width two') }}</option>\r\n <option value=\"1\">{{ t('Strip') }}</option> \r\n <option value=\"2\">{{ t('Farsi') }}</option> \r\n <option value=\"3\">{{ t('Groove') }}</option> \r\n <option value=\"0\">{{ t('none') }}</option>\r\n </select>\r\n </div> \r\n <div class=\"w-[24%] mr-[.1rem]\">\r\n <select v-model=\"form.slice[i].width_one\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\">\r\n <option value=\"0\">{{ t('width one') }}</option> \r\n <option value=\"1\">{{ t('Strip') }}</option> \r\n <option value=\"2\">{{ t('Farsi') }}</option> \r\n <option value=\"3\">{{ t('Groove') }}</option> \r\n <option value=\"0\">{{ t('none') }}</option>\r\n </select>\r\n </div> \r\n <div class=\"w-[24%] mr-[.1rem]\">\r\n <select v-model=\"form.slice[i].length_two\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\">\r\n <option value=\"0\">{{ t('length two') }}</option> \r\n <option value=\"1\">{{ t('Strip') }}</option> \r\n <option value=\"2\">{{ t('Farsi') }}</option> \r\n <option value=\"3\">{{ t('Groove') }}</option> \r\n <option value=\"0\">{{ t('none') }}</option>\r\n </select>\r\n </div> \r\n <div class=\"w-[24%] mr-[.1rem]\">\r\n <select v-model=\"form.slice[i].length_one\" class=\"{{(i+1)%2 == 0 ? 'bg-main-400' : 'bg-white'}} block w-full py-0 !px-3 text-xs bg-white text-gray-900 border border-gray-300 rounded h-7 3xl:h-9 focus:ring-main-700 focus:border-main-700\">\r\n <option value=\"0\">{{ t('length one') }}</option> \r\n <option value=\"1\">{{ t('Strip') }}</option> \r\n <option value=\"2\">{{ t('Farsi') }}</option> \r\n <option value=\"3\">{{ t('Groove') }}</option> \r\n <option value=\"0\">{{ t('none') }}</option>\r\n </select>\r\n </div> \r\n </div>\r\n </div> \r\n </div> \r\n </div>\r\n </div> \r\n \r\n <footer class=\" bg-white flex justify-between items-center pb-2 pt-1 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\"> \r\n <div class=\"px-1 w-full\">\r\n <UButton \r\n @click=\"handelClick\"\r\n :loading=\"loading\" \r\n square \r\n class=\"w-full flex text-white rounded-sm border h-10 bg-main-700 items-center justify-center\"> \r\n <span class=\" block px-2 text-xs bold truncate \">\r\n {{ t('payment_5') }}\r\n </span> \r\n </UButton>\r\n </div> \r\n </footer>\r\n </div>\r\n</template>"],"version":3}
Coded With 💗 by
0x6ick Mod By V1rus_Alfa