Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Billing-70601f21.js

import{r as y,T as c,i as V,g as v,o as u,a as t,t as m,f as a,u as l,n as r,c as g,h as x}from"./app-f1493ab2.js";import h from"./App-bc062293.js";import{_ as d}from"./FormInput-b3450213.js";import"./App-6e8cb8a8.js";import"./Sidebar-b962a0c1.js";import"./Menu-45912eaa.js";import"./ProfileModal-09ae28bb.js";import"./tabs-80627b62.js";import"./hidden-f79cef22.js";import"./micro-task-89dcd6af.js";import"./transition-f32a8133.js";import"./use-outside-click-92c6377f.js";import"./LangToggle-d2b58a25.js";import"./MobileSidebar-5b51f786.js";import"./index-114bea05.js";/* empty css              */import"./Sidebar-10203eb5.js";const w={class:"text-xl mb-1"},$={class:"mb-6 flex items-center text-sm leading-6 text-gray-600"},k={class:"ml-1 mt-1"},C={class:"space-y-12"},U={class:"pb-12"},B={class:"grid gap-3 grid-cols-2 pb-6 border-b md:w-2/3"},A={class:"mt-6 flex items-center justify-end gap-x-6 md:w-2/3"},Z={type:"button",class:"text-sm leading-6 text-gray-900"},S=["disabled"],j={key:0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},M={key:1},W={__name:"Billing",props:{config:{type:Object,required:!0}},setup(b){const _=b,s=n=>{const o=_.config.find(i=>i.key===n);return o?o.value:""},p=y(!1),e=c({billing_name:s("billing_name"),invoice_prefix:s("invoice_prefix"),billing_tax_id:s("billing_tax_id"),billing_phone_1:s("billing_phone_1"),billing_phone_2:s("billing_phone_2"),billing_address:s("billing_address"),billing_city:s("billing_city"),billing_state:s("billing_state"),billing_postal_code:s("billing_postal_code"),billing_country:s("billing_country")}),f=async()=>{e.put("/admin/settings?type=billing",{preserveScroll:!0})};return(n,o)=>(u(),V(h,null,{default:v(()=>[t("div",null,[t("h2",w,m(n.$t("Billing info")),1),t("p",$,[o[11]||(o[11]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18Zm.05-13v.1h-.1V8h.1Z"})],-1)),t("span",k,m(n.$t("Configure the information to be seen in your invoices")),1)])]),t("form",{onSubmit:o[10]||(o[10]=x(i=>f(),["prevent"]))},[t("div",C,[t("div",U,[t("div",B,[a(d,{modelValue:l(e).billing_name,"onUpdate:modelValue":o[0]||(o[0]=i=>l(e).billing_name=i),name:n.$t("Vendor name"),error:l(e).errors.billing_name,type:"text",class:r("col-span-2")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).invoice_prefix,"onUpdate:modelValue":o[1]||(o[1]=i=>l(e).invoice_prefix=i),name:n.$t("Invoice prefix"),error:l(e).errors.invoice_prefix,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_tax_id,"onUpdate:modelValue":o[2]||(o[2]=i=>l(e).billing_tax_id=i),name:n.$t("Tax number"),error:l(e).errors.billing_tax_id,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_phone_1,"onUpdate:modelValue":o[3]||(o[3]=i=>l(e).billing_phone_1=i),name:n.$t("Phone"),error:l(e).errors.billing_phone_1,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_phone_2,"onUpdate:modelValue":o[4]||(o[4]=i=>l(e).billing_phone_2=i),name:n.$t("Phone 2"),error:l(e).errors.billing_phone_2,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_address,"onUpdate:modelValue":o[5]||(o[5]=i=>l(e).billing_address=i),name:n.$t("Address"),error:l(e).errors.billing_address,type:"text",class:r("col-span-2")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_city,"onUpdate:modelValue":o[6]||(o[6]=i=>l(e).billing_city=i),name:n.$t("City"),error:l(e).errors.billing_city,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_state,"onUpdate:modelValue":o[7]||(o[7]=i=>l(e).billing_state=i),name:n.$t("State"),error:l(e).errors.billing_state,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_postal_code,"onUpdate:modelValue":o[8]||(o[8]=i=>l(e).billing_postal_code=i),name:n.$t("Zip code"),error:l(e).errors.billing_postal_code,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"]),a(d,{modelValue:l(e).billing_country,"onUpdate:modelValue":o[9]||(o[9]=i=>l(e).billing_country=i),name:n.$t("Country"),error:l(e).errors.billing_country,type:"text",class:r("col-span-1")},null,8,["modelValue","name","error"])]),t("div",A,[t("button",Z,m(n.$t("Cancel")),1),t("button",{class:r(["inline-flex justify-center rounded-md border border-transparent bg-primary px-4 py-2 text-sm text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",{"opacity-50":p.value}]),disabled:p.value},[p.value?(u(),g("svg",j,o[12]||(o[12]=[t("path",{fill:"currentColor",d:"M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z",opacity:".5"},null,-1),t("path",{fill:"currentColor",d:"M20 12h2A10 10 0 0 0 12 2V4A8 8 0 0 1 20 12Z"},[t("animateTransform",{attributeName:"transform",dur:"1s",from:"0 12 12",repeatCount:"indefinite",to:"360 12 12",type:"rotate"})],-1)]))):(u(),g("span",M,m(n.$t("Save")),1))],10,S)])])])],32)]),_:1}))}};export{W as default};