���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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
/
public
/
_nuxt
/
Viewing: z7tWsbsp.js
import{_ as P}from"./DbU6YvtQ.js";import{g as w,i as S,o as l,c,a as t,b as d,w as f,t as o,l as e,V as v,s as U,h as B,r as j,Q as D,u as A,k as F,F as i,J as k,K as I,H as b,L as N,U as H}from"./B_6d-9uz.js";import{u as O}from"./aG0p4yd5.js";import"./DKlaZ6Hy.js";import"./BGGxw1gv.js";const E={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"},J={class:"px-1 w-6/12"},K={class:"block px-2 text-sm truncate"},M={class:"px-1 w-6/12"},Q=["href"],R=t("span",{class:"block px-2 text-sm truncate"}," ارسال به خدماتی جهت برش ",-1),T=[R],G={__name:"footer",props:{project_id:{required:!1}},setup(g){const{t:p}=w(),m=S(),r=g,{project_id:n}=r;return(y,u)=>{const a=v;return l(),c("footer",E,[t("div",J,[d(a,{to:e(m)("/projects/list?project_id="+e(n)),class:"w-full flex bg-main-700 hover:bg-main-600 rounded border h-9 text-white items-center justify-center"},{default:f(()=>[t("span",K,o(e(p)("View list units")),1)]),_:1},8,["to"])]),t("div",M,[t("a",{href:"cutunix://service?order_id="+e(n),class:"w-full flex bg-main-700 hover:bg-main-600 rounded border h-9 text-white items-center justify-center",color:"red"},T,8,Q)])])}}},W={key:0,class:"text-center"},X={key:1,class:"mt-1 mb-10 px-2"},Y=["dir"],Z={class:"inline-block mb-5 text-gray-800 border-b border-main-700 text-center bold p-2"},ee={class:"w-full flex-wrap flex justify-between items-start"},te={class:"w-full mb-5 flex justify-start items-start"},se={class:"w-full mb-5 flex justify-start items-start"},oe=["dir"],ne={class:"inline-block mb-3 text-gray-800 border-b border-main-700 text-center bold p-2"},re=["onClick"],le={class:"py-1 mt-1 px-2 cursor-pointer w-full flex justify-between items-center"},ce={class:"block mr-2 pb-2 w-full text-main-700 cursor-pointer"},ae={class:"flex justify-end items-center pb-2"},ie=["id"],de={class:"w-full border-b py-3 flex justify-start items-center"},ue={class:"block py-1 px-2 truncate"},_e={class:"block py-1 px-2 truncate"},pe={class:"block py-1 px-2 truncate"},ye=U({__name:"[id]",async setup(g){let p,m;const{t:r,locale:n}=w(),{id:y}=B().params,u=j(!0),a=j({id:null,name_employer:null,name:null,groups:[{id:null,order_form:null,wood_type:null,opticut:null,opticut_file:null,opti_percent:null,cut_master_pdf:null}]});async function $(){var h;u.value=!0;const{data:_}=await O("/analyze/project/single",{immediate:!0,server:!0,query:{project_id:y},method:"POST"});a.value=(h=_.value)==null?void 0:h.project,console.log("project",a.value),u.value=!1}[p,m]=D(()=>$()),await p,m();const C=_=>{document.querySelector("#body_collapse_"+_).classList.toggle("hidden"),document.querySelector("#header_collapse_"+_).classList.toggle("rotate-90")};return A({title:r("Project Details")}),F(()=>{u.value=!1}),(_,h)=>{const L=P,q=H,x=v,z=G;return e(u)?(l(),c("div",W,[d(L)])):(l(),c("div",X,[t("section",{dir:e(n)=="en"?"ltr":"rtl"},[t("h2",Z,o(e(r)("project_information")),1),t("div",ee,[t("div",te,[t("span",{class:i([e(n)=="en"?" text-left":" text-right","block pl-2 text-gray-800 bg-white"])},o(e(r)("project_name"))+" : ",3),t("span",{class:i([e(n)=="en"?" text-left":" text-right","block text-gray-500 bg-white"])},o(e(a).name),3)]),t("div",se,[t("span",{class:i([e(n)=="en"?" text-left":" text-right","block pl-2 text-gray-800 bg-white"])},o(e(r)("employer_name"))+" : ",3),t("span",{class:i([e(n)=="const project = ref({id: null,en"?" text-left":" text-right","block text-gray-500 bg-white"])},o(e(a).name_employer),3)])])],8,Y),0<e(a).groups.length?(l(),c("section",{key:0,dir:e(n)=="en"?"ltr":"rtl"},[t("h2",ne,o(e(r)("exports")),1),t("ul",null,[(l(!0),c(k,null,I(e(a).groups,(s,V)=>(l(),c("li",{class:"w-full border-b-2",key:V},[t("div",{onClick:me=>C(s.id),class:"cursor-pointer flex justify-between items-center"},[t("div",le,[t("label",ce,o(s.wood_type),1),t("div",ae,[d(q,{id:"header_collapse_"+s.id,name:"i-heroicons-chevron-down-20-solid",class:"text-gray-500 transition-all text-2xl"},null,8,["id"])])])],8,re),t("div",{id:"body_collapse_"+s.id,class:"border-t transition-all"},[t("div",de,[s.order_form?(l(),N(x,{key:0,to:"https://app.cutunix.com/"+s.order_form,target:"_blank",square:"",class:i([e(n)=="en"?"mr-1":" ml-1","flex text-white rounded hover:bg-main-600 bg-main-700 items-center justify-center"])},{default:f(()=>[t("span",ue,o(e(r)("View order form")),1)]),_:2},1032,["to","class"])):b("",!0),s.opticut=="size_part"||s.opticut=="size_panel"?(l(),c("span",{key:1,class:i([e(n)=="en"?"mr-1":" ml-1","flex py-1 px-2 truncate text-white rounded hover:bg-red-600 bg-red-700 items-center justify-center"])},o(e(r)("order size")),3)):s.opticut=="not_run"?(l(),c("span",{key:2,class:i([e(n)=="en"?"mr-1":" ml-1","flex py-1 px-2 truncate text-white rounded hover:bg-red-600 bg-red-700 items-center justify-center"])},o(e(r)("Allowed to exit")),3)):s.opticut=="pending"||s.opticut=="do"?(l(),c("span",{key:3,class:i([e(n)=="en"?"mr-1":" ml-1","flex py-1 px-2 truncate text-white rounded hover:bg-red-600 bg-red-700 items-center justify-center"])},o(s.opti_percent)+"% "+o(e(r)("preparing")),3)):s.opticut=="done"?(l(),c(k,{key:4},[d(x,{to:"https://shemshetaraz.com/cutunix/"+s.cut_master_pdf,target:"_blank",square:"",class:i([e(n)=="en"?"mr-1":" ml-1","flex rounded bg-[#f6f7eb] text-gray-900 items-center justify-center"])},{default:f(()=>[t("span",_e,o(e(r)("View cutting map")),1)]),_:2},1032,["to","class"]),d(x,{to:"https://shemshetaraz.com/cutunix/"+s.opticut_file,target:"_blank",square:"",class:"flex text-white rounded hover:bg-main-600 bg-main-700 items-center justify-center"},{default:f(()=>[t("span",pe,o(e(r)("Download Opticut output")),1)]),_:2},1032,["to"])],64)):b("",!0)])],8,ie)]))),128))])],8,oe)):b("",!0),d(z,{project_id:e(a).id},null,8,["project_id"])]))}}});export{ye as default};
Coded With 💗 by
0x6ick Mod By V1rus_Alfa