PageSourceSearch

https://portal.popis.pro/assets/CustomersView-C8bJwFgE.js

js popis.pro collected 2026-09-24 15:11:09 UTC 21,238 bytes, 1 lines download raw bytes

1import{G as _e,y as Ie,V as Se,l as Le,u as Ee,w as R,o as Be,b as g,d as O,A as V,s as r,f as t,g as S,t as v,c as w,e as f,I as te,q as n,C as L,B as M,h as i,j as A,P as Pe,N as Ue}from"./index-DRp_EfMJ.js";import{_ as $e,f as De}from"./AdminLayout-CoiDXqCv.js";import{_ as je}from"./PageBreadcrumb-CfgsVIZG.js";import{_ as Te}from"./PageCard-CjUIZ7rS.js";import{_ as Re}from"./DataTable-JbcYUtPn.js";import{_ as Q}from"./Modal-B64nDpQW.js";import{u as ae,r as N}from"./validators-D1b18-y1.js";import{_ as m}from"./FormInput-BglC1B46.js";import{_ as oe}from"./FormSelect-C0cgWT17.js";import{_ as Oe}from"./ImportIntroModal-BkY_dW30.js";import{_ as Ae}from"./ExportFormatModal-Bn0Zg9a1.js";import"./logo-dark-CgxNiwWY.js";import"./LanguageSwitcher-vtaIfEeV.js";import"./SkeletonTable-DQQHitd1.js";const Ne={class:"no-scrollbar relative w-full max-w-175 overflow-y-auto rounded-3xl bg-white p-4 dark:bg-gray-900 lg:p-11"},ze={class:"px-2 pr-14"},Ke={class:"mb-6 text-2xl font-semibold text-gray-800 dark:text-white/90 lg:mb-7"},qe={key:0,class:"py-3 my-3 px-3 rounded text-white bg-red-400"},Fe={class:"custom-scrollbar overflow-y-auto p-2"},He={class:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2"},Ze={class:"col-span-2 lg:col-span-1"},Ge={class:"col-span-2 lg:col-span-1"},Qe={class:"col-span-2 lg:col-span-1"},We={class:"col-span-2 lg:col-span-1"},Xe={class:"col-span-2 lg:col-span-2"},Je={class:"col-span-2 lg:col-span-1"},Ye={class:"col-span-2 lg:col-span-1"},el={class:"col-span-2 lg:col-span-2"},ll={class:"flex items-center gap-3 px-2 mt-6 lg:justify-end"},tl=["disabled"],al={key:0,class:"w-5 h-5 mr-2 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},ol={class:"no-scrollbar relative w-full max-w-175 overflow-y-auto rounded-3xl bg-white p-4 dark:bg-gray-900 lg:p-11"},sl={class:"px-2 pr-14"},rl={class:"mb-6 text-2xl font-semibold text-gray-800 dark:text-white/90 lg:mb-7"},nl={key:0,class:"py-3 my-3 px-3 rounded text-white bg-red-400"},dl={class:"custom-scrollbar overflow-y-auto p-2"},ul={class:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2"},il={class:"col-span-2 lg:col-span-1"},pl={class:"col-span-2 lg:col-span-1"},vl={class:"col-span-2 lg:col-span-1"},ml={class:"col-span-2 lg:col-span-1"},gl={class:"col-span-2 lg:col-span-2"},cl={class:"col-span-2 lg:col-span-1"},fl={class:"col-span-2 lg:col-span-1"},bl={class:"col-span-2 lg:col-span-2"},hl={class:"flex items-center gap-3 px-2 mt-6 lg:justify-end"},yl=["disabled"],xl={key:0,class:"w-5 h-5 mr-2 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},wl={class:"no-scrollbar relative w-full max-w-150 overflow-y-auto rounded-3xl bg-white p-4 dark:bg-gray-900 lg:p-11"},kl={class:"pr-14"},Cl={class:"mb-6 text-2xl font-semibold text-gray-800 dark:text-white/90"},Vl={key:0,class:"py-3 my-3 px-3 rounded text-white bg-red-400"},Ml={class:"text-sm leading-6 text-gray-500 dark:text-gray-400"},_l={class:"font-semibold text-error-600"},Il={class:"flex items-center gap-3 px-2 mt-6 lg:justify-end"},Sl=["disabled"],Ll={key:0,class:"w-5 h-5 mr-2 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Fl={__name:"CustomersView",setup(El){const k=_e(),d=Ie(),_=Se(),se=Le(),W=A(()=>d.getPermissions()),z=Ee(),a=A(()=>z.language),re=A(()=>a.value.navigationCustomers||"Customers"),ne=A(()=>({code:a.value.code,name:a.value.name,pib:a.value.taxId||"Tax ID",city:a.value.place||"Place",email:a.value.email,phone:a.value.phone||"Phone",status:a.value.status,createdAt:a.value.dateCreate})),I=i([]),E=i([]),K=i(!1),c=i({page:1,per_page:20,search:"",sort_by:"name",sort_direction:"asc"}),X=i(null),b=async()=>{K.value=!0;const l=await L.get(M.CUSTOMERS,{params:c.value});l.status&&(E.value=Me(l.meta?.statuses||[]),X.value=l.meta?.pagination||null,I.value=Ve(l.data)),K.value=!1},de=l=>{c.value.page=l,b()},ue=l=>{c.value.per_page=l,c.value.page=1,b()},ie=l=>{c.value.search=l,c.value.page=1,b()},pe=({column:l,direction:e})=>{c.value.sort_by=l,c.value.sort_direction=e,c.value.page=1,b()};R(()=>z.currentLanguage,()=>{b()}),Be(()=>{b()});const C=i(null),B=i(!1),ve=()=>{B.value=!0},me=()=>{B.value=!1,C.value.click()},ge=async l=>{const e=l.target.files[0];if(!e)return;const o=new FormData;o.append("file",e),d.loading=!0,_.uploading=!0;try{const p=await L.post(M.CUSTOMERS_IMPORT_PREVIEW,o);C.value&&(C.value.value=""),p.status?(_.uploading=!1,_.setData(p.data,"customers"),se.push("/codebook/customers/import")):(d.loading=!1,_.uploading=!1,k.error(p.message||a.value.importError||"Import failed"))}catch(p){d.loading=!1,_.uploading=!1,C.value&&(C.value.value=""),k.error((a.value.importError||"Import failed")+": "+(p.message||"Unknown error"))}},P=i(!1),q=i(!1),ce=()=>{P.value=!0},fe=async l=>{q.value=!0;try{const e=await Pe.get(Ue+M.CUSTOMERS_EXPORT,{params:{search:c.value.search,format:l},responseType:"blob",headers:{Authorization:`Bearer ${d.token}`,"Accept-Language":z.currentLanguage||"en"}}),o=window.URL.createObjectURL(new Blob([e.data])),p=document.createElement("a");p.href=o,p.setAttribute("download",`customers.${l}`),document.body.appendChild(p),p.click(),p.remove(),window.URL.revokeObjectURL(o),P.value=!1}catch{k.error(a.value.exportError||"Export failed")}q.value=!1},J=()=>{h.value=!0},h=i(!1);R(h,l=>{l||($(),Y(),U.value="")}
1);const U=i(""),u=i({id:"",code:"",name:"",pib:"",address:"",city:"",email:"",phone:"",note:"",status:""}),Y=()=>{Object.assign(u.value,{id:"",code:"",name:"",pib:"",address:"",city:"",email:"",phone:"",note:"",status:"active"})};Y();const be=async()=>{if(!he())return;const l={...u.value};delete l.id,d.loadingButton=!0;const e=await L.post(M.CUSTOMERS,l);d.loadingButton=!1,e.status?(I.value.unshift(G(e.data)),h.value=!1,k.success(e.message)):U.value=e.message},{errors:F,validate:he,clearError:$}=ae(u.value,{name:[N()],status:[N()]}),ye=l=>{Object.assign(s.value,{id:l.id,code:l.code,name:l.name,pib:l.pib,address:l.address,city:l.city,email:l.email,phone:l.phone,note:l.note,status:l.status}),y.value=!0},y=i(!1);R(y,l=>{l||(j(),D.value="")});const D=i(""),s=i({id:"",code:"",name:"",pib:"",address:"",city:"",email:"",phone:"",note:"",status:""}),xe=async()=>{if(!we())return;const l={...s.value};delete l.id,d.loadingButton=!0;const e=await L.put(M.CUSTOMERS+"/"+s.value.id,l);if(d.loadingButton=!1,e.status){const o=I.value.findIndex(p=>p.id===e.data.id);o!==-1&&(I.value[o]=G(e.data)),y.value=!1,k.success(e.message)}else D.value=e.message},{errors:H,validate:we,clearError:j}=ae(s.value,{name:[N()],status:[N()]}),ke=l=>{Z.value={id:l.id,name:l.name},x.value=!0},x=i(!1);R(x,l=>{l||(T.value="")});const T=i(""),Z=i({id:"",name:""}),Ce=async()=>{d.loadingButton=!0;const l=await L.delete(M.CUSTOMERS+"/"+Z.value.id);d.loadingButton=!1,l.status?(await b(),x.value=!1,k.success(l.message)):T.value=l.message},ee=(l,e)=>{const o=l.target.value,p=o.replace(/[^0-9+\-()\s]/g,"");p!==o&&(l.target.value=p,e.value.phone=p)},le=l=>{l.ctrlKey||l.metaKey||l.altKey||l.key&&l.key.length===1&&!/[0-9+\-()\s]/.test(l.key)&&l.preventDefault()},G=l=>({id:l.id,code:l.code||"",name:l.name,pib:l.pib||"",address:l.address||"",city:l.city||"",email:l.email||"",phone:l.phone||"",note:l.note||"",status:l.status,statusInfo:E.value.find(e=>e.value===l.status)||null,createdAt:l.created_at?De(l.created_at):""}),Ve=l=>l.map(G),Me=l=>l.map(e=>({value:e.value,name:e.name}));return(l,e)=>(g(),O($e,null,{default:V(()=>[r(je,{pageTitle:re.value},null,8,["pageTitle"]),r(Te,{title:a.value.customerView||"Customers"},{"header-actions":V(()=>[t("input",{ref_key:"fileInput",ref:C,type:"file",accept:".xlsx,.xls,.csv",class:"hidden",onChange:ge},null,544),t("button",{class:"border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/3 inline-flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium transition",onClick:ve},[e[35]||(e[35]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[t("path",{d:"M10 3.33337V13.3334M10 3.33337L6.66667 6.66671M10 3.33337L13.3333 6.66671M3.33334 16.6667H16.6667",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),S(" "+v(a.value.import),1)]),t("button",{class:"border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/3 inline-flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium transition",onClick:ce},[e[36]||(e[36]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[t("path",{d:"M10 16.6666V6.66663M10 16.6666L13.3333 13.3333M10 16.6666L6.66667 13.3333M3.33334 3.33329H16.6667",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),S(" "+v(a.value.export),1)]),W.value.canAdd?(g(),w("button",{key:0,class:"bg-brand-500 hover:bg-brand-600 inline-flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium text-white transition",onClick:J},[e[37]||(e[37]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[t("path",{d:"M5 10.0002H15.0006M10.0002 5V15.0006",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),S(" "+v(a.value.customerNew||"New Customer"),1)])):f("",!0)]),default:V(()=>[r(Re,{data:I.value,userPermissions:W.value,labels:ne.value,loading:K.value,serverSide:!0,pagination:X.value,onAddModal:J,onEditModal:ye,onDeleteModal:ke,onPageChange:de,onPerPageChange:ue,onSearch:ie,onSort:pe},null,8,["data","userPermissions","labels","loading","pagination"])]),_:1},8,["title"]),r(Oe,{show:B.value,title:(a.value.import||"Import")+" — "+(a.value.customerView||"Customers"),description:a.value.importIntroDescription||"The file must match the column layout of the example template. Download the example, fill it in, then select the file to continue.",sampleKind:"customers",onClose:e[0]||(e[0]=o=>B.value=!1),onContinue:me},null,8,["show","title","description"]),r(Ae,{show:P.value,title:(a.value.export||"Export")+" — "+(a.value.customerView||"Customers"),description:a.value.exportIntroDescription||"Choose the file format. Excel (.xlsx) keeps full formatting; CSV (.csv) is plain data readable by any tool.",loading:q.value,onClose:e[1]||(e[1]=o=>P.value=!1),onConfirm:fe},null,8,["show","title","description","loading"]),h.value?(g(),O(Q,{key:0,onClose:e[16]||(e[16]=o=>h.value=!1)},{body:V(()=>[t("div",Ne,[t("button",{onClick:e[2]||(e[2]=o=>h.value=!1),class:"transition-color absolute right-5 top-5 z-999 flex h-11 w-11 items-center justify-center rounded-full bg-gray-100 text-gray-400 hover:bg-gray-200 hover:text-gray-600 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-white/[0.07] dark:hover:text-gray-300"},[...e[38]||(e[38]=[t("svg",{class:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.04289 16.5418C5.65237 16.9323 5.65237 17.5655 6.04289 17.956C6.43342 18.3465 7.06658 18.3465 7.45711 17.956L11.9987 13.4144L16.5408 17.9565C16.9313 18.347 17.5645 18.347 17.955 17.9565C18.3455 17.566 18.3455 16.9328 17.955 16.5423L13.4129 12.0002L17.955 7.45808C18.3455 7.06
1756 18.3455 6.43439 17.955 6.04387C17.5645 5.65335 16.9313 5.65335 16.5408 6.04387L11.9987 10.586L7.45711 6.04439C7.06658 5.65386 6.43342 5.65386 6.04289 6.04439C5.65237 6.43491 5.65237 7.06808 6.04289 7.4586L10.5845 12.0002L6.04289 16.5418Z",fill:""})],-1)])]),t("div",ze,[t("h4",Ke,v(a.value.customerNew||"New Customer"),1)]),U.value?(g(),w("div",qe,v(U.value),1)):f("",!0),t("form",{novalidate:"",onSubmit:te(be,["prevent"]),class:"flex flex-col"},[t("div",Fe,[t("div",He,[t("div",Ze,[r(m,{modelValue:u.value.code,"onUpdate:modelValue":e[3]||(e[3]=o=>u.value.code=o),label:a.value.code,placeholder:a.value.code,error:n(F).code?.[0],onInput:e[4]||(e[4]=o=>n($)("code"))},null,8,["modelValue","label","placeholder","error"])]),t("div",Ge,[r(m,{modelValue:u.value.name,"onUpdate:modelValue":e[5]||(e[5]=o=>u.value.name=o),fgRequired:"",label:a.value.name,placeholder:a.value.enterName,error:n(F).name[0],onInput:e[6]||(e[6]=o=>n($)("name"))},null,8,["modelValue","label","placeholder","error"])]),t("div",Qe,[r(m,{modelValue:u.value.pib,"onUpdate:modelValue":e[7]||(e[7]=o=>u.value.pib=o),label:a.value.taxId||"Tax ID",placeholder:a.value.taxId||"Tax ID"},null,8,["modelValue","label","placeholder"])]),t("div",We,[r(m,{modelValue:u.value.city,"onUpdate:modelValue":e[8]||(e[8]=o=>u.value.city=o),label:a.value.place||"Place",placeholder:a.value.place||"Place"},null,8,["modelValue","label","placeholder"])]),t("div",Xe,[r(m,{modelValue:u.value.address,"onUpdate:modelValue":e[9]||(e[9]=o=>u.value.address=o),label:a.value.address,placeholder:a.value.address},null,8,["modelValue","label","placeholder"])]),t("div",Je,[r(m,{modelValue:u.value.email,"onUpdate:modelValue":e[10]||(e[10]=o=>u.value.email=o),label:a.value.email,placeholder:a.value.email},null,8,["modelValue","label","placeholder"])]),t("div",Ye,[r(m,{modelValue:u.value.phone,"onUpdate:modelValue":e[11]||(e[11]=o=>u.value.phone=o),type:"tel",inputmode:"tel",label:a.value.phone||"Phone",placeholder:a.value.phone||"Phone",onInput:e[12]||(e[12]=o=>ee(o,u.value)),onKeydown:le},null,8,["modelValue","label","placeholder"])]),t("div",el,[r(oe,{modelValue:u.value.status,"onUpdate:modelValue":e[13]||(e[13]=o=>u.value.status=o),label:a.value.status,placeholder:a.value.select,fgRequired:!0,options:E.value,error:n(F).status[0],onClearError:e[14]||(e[14]=o=>n($)("status"))},null,8,["modelValue","label","placeholder","options","error"])])])]),t("div",ll,[t("button",{onClick:e[15]||(e[15]=o=>h.value=!1),type:"button",class:"flex w-full justify-center rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/3 sm:w-auto"},v(a.value.close),1),t("button",{type:"submit",disabled:n(d).loadingButton,class:"flex w-full justify-center rounded-lg bg-brand-500 px-4 py-2.5 text-sm font-medium text-white hover:bg-brand-600 sm:w-auto"},[n(d).loadingButton?(g(),w("svg",al,[...e[39]||(e[39]=[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):f("",!0),t("span",null,v(n(d).loadingButton?a.value.saving||"Saving...":a.value.add),1)],8,tl)])],32)])]),_:1})):f("",!0),y.value?(g(),O(Q,{key:1,onClose:e[31]||(e[31]=o=>y.value=!1)},{body:V(()=>[t("div",ol,[t("button",{onClick:e[17]||(e[17]=o=>y.value=!1),class:"transition-color absolute right-5 top-5 z-999 flex h-11 w-11 items-center justify-center rounded-full bg-gray-100 text-gray-400 hover:bg-gray-200 hover:text-gray-600 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-white/[0.07] dark:hover:text-gray-300"},[...e[40]||(e[40]=[t("svg",{class:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.04289 16.5418C5.65237 16.9323 5.65237 17.5655 6.04289 17.956C6.43342 18.3465 7.06658 18.3465 7.45711 17.956L11.9987 13.4144L16.5408 17.9565C16.9313 18.347 17.5645 18.347 17.955 17.9565C18.3455 17.566 18.3455 16.9328 17.955 16.5423L13.4129 12.0002L17.955 7.45808C18.3455 7.06
1756 18.3455 6.43439 17.955 6.04387C17.5645 5.65335 16.9313 5.65335 16.5408 6.04387L11.9987 10.586L7.45711 6.04439C7.06658 5.65386 6.43342 5.65386 6.04289 6.04439C5.65237 6.43491 5.65237 7.06808 6.04289 7.4586L10.5845 12.0002L6.04289 16.5418Z",fill:""})],-1)])]),t("div",sl,[t("h4",rl,v(a.value.customerEditTitle||"Edit Customer"),1)]),D.value?(g(),w("div",nl,v(D.value),1)):f("",!0),t("form",{onSubmit:te(xe,["prevent"]),class:"flex flex-col"},[t("div",dl,[t("div",ul,[t("div",il,[r(m,{modelValue:s.value.code,"onUpdate:modelValue":e[18]||(e[18]=o=>s.value.code=o),label:a.value.code,placeholder:a.value.code,error:n(H).code?.[0],onInput:e[19]||(e[19]=o=>n(j)("code"))},null,8,["modelValue","label","placeholder","error"])]),t("div",pl,[r(m,{modelValue:s.value.name,"onUpdate:modelValue":e[20]||(e[20]=o=>s.value.name=o),fgRequired:"",label:a.value.name,placeholder:a.value.enterName,error:n(H).name[0],onInput:e[21]||(e[21]=o=>n(j)("name"))},null,8,["modelValue","label","placeholder","error"])]),t("div",vl,[r(m,{modelValue:s.value.pib,"onUpdate:modelValue":e[22]||(e[22]=o=>s.value.pib=o),label:a.value.taxId||"Tax ID",placeholder:a.value.taxId||"Tax ID"},null,8,["modelValue","label","placeholder"])]),t("div",ml,[r(m,{modelValue:s.value.city,"onUpdate:modelValue":e[23]||(e[23]=o=>s.value.city=o),label:a.value.place||"Place",placeholder:a.value.place||"Place"},null,8,["modelValue","label","placeholder"])]),t("div",gl,[r(m,{modelValue:s.value.address,"onUpdate:modelValue":e[24]||(e[24]=o=>s.value.address=o),label:a.value.address,placeholder:a.value.address},null,8,["modelValue","label","placeholder"])]),t("div",cl,[r(m,{modelValue:s.value.email,"onUpdate:modelValue":e[25]||(e[25]=o=>s.value.email=o),label:a.value.email,placeholder:a.value.email},null,8,["modelValue","label","placeholder"])]),t("div",fl,[r(m,{modelValue:s.value.phone,"onUpdate:modelValue":e[26]||(e[26]=o=>s.value.phone=o),type:"tel",inputmode:"tel",label:a.value.phone||"Phone",placeholder:a.value.phone||"Phone",onInput:e[27]||(e[27]=o=>ee(o,s.value)),onKeydown:le},null,8,["modelValue","label","placeholder"])]),t("div",bl,[r(oe,{modelValue:s.value.status,"onUpdate:modelValue":e[28]||(e[28]=o=>s.value.status=o),label:a.value.status,options:E.value,placeholder:a.value.select,error:n(H).status[0],fgRequired:!0,onClearError:e[29]||(e[29]=o=>n(j)("status"))},null,8,["modelValue","label","options","placeholder","error"])])])]),t("div",hl,[t("button",{onClick:e[30]||(e[30]=o=>y.value=!1),type:"button",class:"flex w-full justify-center rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/3 sm:w-auto"},v(a.value.close),1),t("button",{type:"submit",disabled:n(d).loadingButton,class:"flex w-full justify-center rounded-lg bg-success-500 px-4 py-2.5 text-sm font-medium text-white hover:bg-success-600 sm:w-auto"},[n(d).loadingButton?(g(),w("svg",xl,[...e[41]||(e[41]=[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):f("",!0),t("span",null,v(n(d).loadingButton?a.value.saving||"Saving...":a.value.edit),1)],8,yl)])],32)])]),_:1})):f("",!0),x.value?(g(),O(Q,{key:2,onClose:e[34]||(e[34]=o=>x.value=!1)},{body:V(()=>[t("div",wl,[t("button",{onClick:e[32]||(e[32]=o=>x.value=!1),class:"transition-color absolute right-5 top-5 z-999 flex h-11 w-11 items-center justify-center rounded-full bg-gray-100 text-gray-400 hover:bg-gray-200 hover:text-gray-600 dark:bg-gray-700 dark:text-gray-400 dark:hover:bg-white/[0.07] dark:hover:text-gray-300"},[...e[42]||(e[42]=[t("svg",{class:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.04289 16.5418C5.65237 16.9323 5.65237 17.5655 6.04289 17.956C6.43342 18.3465 7.06658 18.3465 7.45711 17.956L11.9987 13.4144L16.5408 17.9565C16.9313 18.347 17.5645 18.347 17.955 17.9565C18.3455 17.566 18.3455 16.9328 17.955 16.5423L13.4129 12.0002L17.955 7.45808C18.3455 7.06
1756 18.3455 6.43439 17.955 6.04387C17.5645 5.65335 16.9313 5.65335 16.5408 6.04387L11.9987 10.586L7.45711 6.04439C7.06658 5.65386 6.43342 5.65386 6.04289 6.04439C5.65237 6.43491 5.65237 7.06808 6.04289 7.4586L10.5845 12.0002L6.04289 16.5418Z",fill:""})],-1)])]),t("div",kl,[t("h4",Cl,v(a.value.customerDelete||"Delete Customer"),1)]),T.value?(g(),w("div",Vl,v(T.value),1)):f("",!0),t("p",Ml,[S(v(a.value.customerDeleteQuestion||"Are you sure you want to delete this customer:")+" ",1),t("span",_l,v(Z.value.name),1),e[43]||(e[43]=S("? ",-1))]),t("div",Il,[t("button",{onClick:e[33]||(e[33]=o=>x.value=!1),type:"button",class:"flex w-full justify-center rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/3 sm:w-auto"},v(a.value.close),1),t("button",{onClick:Ce,disabled:n(d).loadingButton,class:"flex w-full justify-center rounded-lg bg-error-500 px-4 py-2.5 text-sm font-medium text-white hover:bg-error-600 sm:w-auto"},[n(d).loadingButton?(g(),w("svg",Ll,[...e[44]||(e[44]=[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):f("",!0),t("span",null,v(n(d).loadingButton?a.value.deleting||"Deleting...":a.value.delete),1)],8,Sl)])])]),_:1})):f("",!0)]),_:1}))}};export{Fl as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.