Files
appco_dist/.output/public/_nuxt/7z66oYRN.js
T
2026-03-03 20:40:54 +03:30

2 lines
3.3 KiB
JavaScript

/* empty css *//* empty css *//* empty css */import{B as h}from"./DAaUah2x.js";import{ce as w,d as C,H as B,u as F,o as S,r as I,z as g,G as k,E as v,B as i,D as c,K as t,C as _,a3 as P,A as U,a1 as A,a2 as E}from"./CE4SaZgW.js";import{B as N}from"./Cc4_J5On.js";import{I as R}from"./CLDsZ6pG.js";import{f,s as b,a as d,e as z,l as j}from"./DeFvCjVV.js";import{b as D}from"./CxVR7ht-.js";import{b as H,F as K}from"./C6Lfa4XD.js";import{S as L}from"./ssSX8W6r.js";import"./DlAUqK2U.js";import"./BKreu5to.js";import"./PGC92_Sj.js";import"./DFL6LqjW.js";import"./0N7JoioX.js";import"./CDDBg3Y_.js";import"./BD2G5fvF.js";import"./CxZINpjh.js";import"./ogsyABxJ.js";import"./D-bUn136.js";import"./F7ppGFOP.js";import"./UfKM_8Ux.js";import"./COAIJs56.js";import"./CjPHwh7J.js";import"./cA5fh2lg.js";import"./Cz6oeCNy.js";import"./BiK9i_Zy.js";import"./DSWAPs-i.js";import"./Cj99RmFE.js";import"./CCrciQyb.js";import"./B5RoG9wW.js";import"./BK6U06JP.js";import"./B0tUBnBT.js";import"./BQKhYWGC.js";import"./DZnIL_2I.js";var M=Array.prototype,T=M.splice;function V(o,m){for(var e=o?m.length:0,n=e-1;e--;){var s=m[e];if(e==n||s!==p){var p=s;w(s)?T.call(o,s,1):H(o,s)}}return o}function G(o,m){var e=[];if(!(o&&o.length))return e;var n=-1,s=[],p=o.length;for(m=D(m);++n<p;){var a=o[n];m(a,n,o)&&(e.push(a),s.push(n))}return V(o,s),e}const O={class:"flex absolute top-0 right-0 left-0 gap-8 items-center justify-between p-4"},q={class:"flex gap-4"},J={"font-semibold":""},Q={class:"p-4 pb-10"},W={class:"border-1 border-solid mt-5 py-5 border-gray-500 rounded-lg px-3"},X={class:"text-[18px]"},Ne=C({__name:"index",emits:["update:visible","update:isEdit","success"],setup(o,{emit:m}){const e=B(),n=F();function s(){n.back()}S(()=>{e.sellerConfig?.store?.job===1?f.push({name:"weight",key:"weight"},{name:"rialFee",key:"rial_fee"},{name:"percentFee",key:"percent_fee"}):f.some(a=>a.name==="weight"&&a.key==="weight")&&G(f,a=>[{name:"weight",key:"weight"},{name:"rialFee",key:"rial_fee"},{name:"percentFee",key:"percent_fee"}].some(u=>u.name===a.name&&u.key===a.key))});const p=I();return(a,u)=>{const x=K,y=L;return g(),k(y,{spinning:t(j)},{default:v(()=>[i("div",null,[i("div",O,[i("div",q,[c(h,{class:"cursor-pointer",icon:t(e).isRTL?"vuesax-linear:arrow-right":"vuesax-linear:arrow-left",onClick:s},null,8,["icon"]),i("div",J,_(t(e).useString("newProducts")),1)]),i("div",{class:"text-primary text-sm",onClick:u[0]||(u[0]=(...r)=>t(b)&&t(b)(...r))},_(t(e).useString("create")),1)]),i("div",Q,[c(x,{ref_key:"formRef",ref:p,class:"mt15"},{default:v(()=>[i("div",W,[i("div",{class:P(["relative top--8 px-2 w-fit flex gap-2 items-center",t(e).isNightStore?"bg-[#121212]":"bg-white"])},[c(h,{icon:"vuesax-linear:document-text"}),i("div",X,_(t(e).useString("setColumns")),1)],2),(g(!0),U(A,null,E(t(f),r=>(g(),k(R,{key:r.key,value:t(d)[r.key],"onUpdate:value":l=>t(d)[r.key]=l,label:r.name},{default:v(()=>[c(N,{autofocus:!1,value:t(d)[r.key],"onUpdate:value":l=>t(d)[r.key]=l,items:t(z).map(l=>({label:l,value:l})),placeholder:t(e).useString(r.name),size:"small","key-name":"value","value-name":"label",focusable:!1,getPopupContainer:l=>l.parentNode},null,8,["value","onUpdate:value","items","placeholder","getPopupContainer"])]),_:2},1032,["value","onUpdate:value","label"]))),128))])]),_:1},512)])])]),_:1},8,["spinning"])}}});export{Ne as default};