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-3add254c.js

import{r as f,T as y,h as V,f as v,o as u,a as t,t as m,e as a,u as l,n as r,c as g,g as x}from"./app-43851608.js";import h from"./App-2fea9171.js";import{_ as d}from"./FormInput-4a309017.js";import"./App-ad5f7ecb.js";import"./Sidebar-7bb6d772.js";import"./Menu-4221d61f.js";import"./ProfileModal-628e5b7c.js";import"./LangToggle-8d05b0dc.js";import"./MobileSidebar-b73cd192.js";import"./index-99011d5f.js";/* empty css              */import"./Sidebar-7b5bc85b.js";const w={class:"text-xl mb-1"},$={class:"mb-6 flex items-center text-sm leading-6 text-gray-600"},k=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),C={class:"ml-1 mt-1"},U={class:"space-y-12"},B={class:"pb-12"},A={class:"grid gap-3 grid-cols-2 pb-6 border-b md:w-2/3"},Z={class:"mt-6 flex items-center justify-end gap-x-6 md:w-2/3"},S={type:"button",class:"text-sm leading-6 text-gray-900"},j=["disabled"],M={key:0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},N=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=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),P=[N,T],q={key:1},R={__name:"Billing",props:{config:{type:Object,required:!0}},setup(_){const b=_,s=n=>{const o=b.config.find(i=>i.key===n);return o?o.value:""},p=f(!1),e=y({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")}),c=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",$,[k,t("span",C,m(n.$t("Configure the information to be seen in your invoices")),1)])]),t("form",{onSubmit:o[10]||(o[10]=x(i=>c(),["prevent"]))},[t("div",U,[t("div",B,[t("div",A,[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",Z,[t("button",S,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",M,P)):(u(),g("span",q,m(n.$t("Save")),1))],10,j)])])])],32)]),_:1}))}};export{R as default};