CVE-2022-0242 (JavaScript, published 2022-01-17T19:15Z)
Description: value: Unrestricted Upload of File with Dangerous Type in GitHub repository crater-invoice/crater prior to 6.0.
Severity: MEDIUM (CVSS v3 base score: 7.2)
Weakness: CWE-434 \u2014 Unrestricted Upload of File with Dangerous Type
The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
Repository: https://github.com/crater-invoice/crater
Files changed:
public/build/assets/AccountSetting.d3009f2e.js
public/build/assets/AddressInformation.908aefd5.js
public/build/assets/BackupSetting.f5a6fab0.js
public/build/assets/BaseEditor.d94e3dc1.js
public/build/assets/BaseListItem.4eea691c.js
public/build/assets/BaseMultiselect.b73cc8d6.js
public/build/assets/BaseTable.6e206ca7.js
public/build/assets/CategoryModal.9a2e05b9.js
public/build/assets/CompanyInfoSettings.a1bb8458.js
public/build/assets/Create.3e41e2ab.js
public/build/assets/Create.625aeacb.js
public/build/assets/Create.a722899f.js
public/build/assets/Create.be897594.js
public/build/assets/Create.bffd06e1.js
public/build/assets/CreateCustomFields.a3a572c4.js
public/build/assets/CustomFieldsSetting.9f0813a0.js
public/build/assets/CustomerIndexDropdown.3adf4218.js
public/build/assets/CustomerSettings.3e617f27.js
public/build/assets/CustomizationSetting.5e54e84c.js
public/build/assets/Dashboard.4e48457e.js
public/build/assets/Dashboard.bdf9de48.js
public/build/assets/DragIcon.213b1d78.js
public/build/assets/EstimateCreate.4010e1b1.js
public/build/assets/EstimateIcon.1f3b368d.js
public/build/assets/EstimateIndexDropdown.4eab32d4.js
public/build/assets/ExchangeRateConverter.7d8c4309.js
public/build/assets/ExchangeRateProviderSetting.57eedd6c.js
public/build/assets/ExpenseCategorySetting.80e0d8ac.js
public/build/assets/FileDiskSetting.b99dc80a.js
public/build/assets/ForgotPassword.51f99d8b.js
public/build/assets/ForgotPassword.6a2c79cb.js
public/build/assets/Index.2f43174e.js
public/build/assets/Index.36ae4778.js
public/build/assets/Index.492a896e.js
public/build/assets/Index.56add046.js
public/build/assets/Index.83e96e3c.js
public/build/assets/Index.857b8662.js
public/build/assets/Index.97b641ce.js
public/build/assets/Index.9d0bbfbe.js
public/build/assets/Index.a00a8636.js
public/build/assets/Index.a3eeb117.js
public/build/assets/Index.c0a868bd.js
public/build/assets/Index.de1759af.js
public/build/assets/Index.f1fe364f.js
public/build/assets/Installation.e5762019.js
public/build/assets/InvoiceCreate.8ae6be7c.js
public/build/assets/InvoiceIndexDropdown.430bc329.js
public/build/assets/ItemUnitModal.01494bfb.js
public/build/assets/LayoutBasic.df06fd51.js
public/build/assets/LayoutBasic.e1f34a75.js
public/build/assets/LayoutInstallation.46a8b6d2.js
public/build/assets/LayoutLogin.96ca0d8f.js
public/build/assets/LayoutLogin.d574a04a.js
public/build/assets/LineChart.a92f3bea.js
public/build/assets/LoadingIcon.44a6304d.js
public/build/assets/Login.9abd1acb.js
public/build/assets/Login.e5a5b4de.js
public/build/assets/MailConfigSetting.91f66b99.js
public/build/assets/NoteModal.f6d01f84.js
public/build/assets/NotesSetting.2f08acf1.js
public/build/assets/NotificationRoot.a98180ab.js
public/build/assets/NotificationsSetting.90090d1e.js
public/build/assets/PaymentModeModal.9b5fc610.js
public/build/assets/PaymentsModeSetting.963d7ca9.js
public/build/assets/PreferencesSetting.abc39a72.js
public/build/assets/RecurringInvoiceCreate.e076e6ab.js
public/build/assets/RecurringInvoiceIndexDropdown.37d4a992.js
public/build/assets/ResetPassword.485b38b4.js
public/build/assets/ResetPassword.970ec316.js
public/build/assets/RolesSettings.3be3bc63.js
public/build/assets/SalesTax.0ff2d954.js
public/build/assets/SelectNotePopup.781ad74a.js
public/build/assets/SendEstimateModal.a8bc3854.js
public/build/assets/SendInvoiceModal.89e6012d.js
public/build/assets/SendPaymentModal.1bb9d371.js
public/build/assets/SettingsIndex.25913381.js
public/build/assets/SettingsIndex.7750922b.js
public/build/assets/TaxTypeModal.bf6662b3.js
public/build/assets/TaxTypesSetting.332f7c14.js
public/build/assets/UpdateAppSetting.dcf672e8.js
public/build/assets/View.00b10884.js
public/build/assets/View.02e08873.js
public/build/assets/View.1a50dc40.js
public/build/assets/View.6c9abcf9.js
public/build/assets/View.796e2446.js
public/build/assets/View.958a5524.js
public/build/assets/View.aa6cd8ac.js
public/build/assets/View.abc1c107.js
public/build/assets/View.f7652815.js
public/build/assets/auth.4644c288.js
public/build/assets/category.4b37f0ed.js
public/build/assets/disk.518ebc4b.js
public/build/assets/estimate.e6573e64.js
public/build/assets/exchange-rate.dffa79b6.js
public/build/assets/expense.e270a61c.js
public/build/assets/global.08b6a984.js
public/build/assets/invoice.b61ade7d.js
public/build/assets/mail-driver.4ea1af6b.js
public/build/assets/main.75722495.js
public/build/assets/payment.037dd620.js
public/build/assets/payment.5c57bec3.js
public/build/assets/users.73a3faa4.js
public/build/manifest.json
resources/scripts/admin/components/modal-components/CustomerModal.vue
resources/scripts/admin/views/modules/View.vue
Commit message: update v6


Vulnerable code:
var L=Object.defineProperty,R=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var V=(u,s,i)=>s in u?L(u,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[s]=i,U=(u,s)=>{for(var i in s||(s={}))T.call(s,i)&&V(u,i,s[i]);if(b)for(var i of b(s))z.call(s,i)&&V(u,i,s[i]);return u},S=(u,s)=>R(u,P(s));import{J as E,B,k as I,L as v,M as y,Q as J,N as Q,P as H,a0 as K,T as O,r as m,o as C,e as W,f as r,w as d,u as e,x as X,l as Y,m as Z,j as x,i as ee,t as ae,U as se,h as te}from"./vendor.01d0adc5.js";import{e as ne,d as oe,b as re}from"./main.832b14c7.js";const le=["onSubmit"],ie=te("span",null,null,-1),pe={setup(u){const s=ne(),i=oe(),M=re(),{t:g}=E();let p=B(!1),w=B(null),f=B([]);s.currentUser.avatar&&f.value.push({image:s.currentUser.avatar});const F=I(()=>({name:{required:v.withMessage(g("validation.required"),y)},email:{required:v.withMessage(g("validation.required"),y),email:v.withMessage(g("validation.email_incorrect"),J)},password:{minLength:v.withMessage(g("validation.password_length",{count:8}),Q(8))},confirm_password:{sameAsPassword:v.withMessage(g("validation.password_incorrect"),H(t.password))}})),t=K({name:s.currentUser.name,email:s.currentUser.email,language:s.currentUserSettings.language||M.selectedCompanySettings.language,password:"",confirm_password:""}),o=O(F,I(()=>t));function q(l,a){w.value=a}function k(){w.value=null}async function N(){if(o.value.$touch(),o.value.$invalid)return!0;p.value=!0;let l={name:t.name,email:t.email};try{if(t.password!=null&&t.password!==void 0&&t.password!==""&&(l=S(U({},l),{password:t.password})),s.currentUserSettings.language!==t.language&&await s.updateUserSettings({settings:{language:t.language}}),(await s.updateCurrentUser(l)).data.data){if(p.value=!1,w.value){let $=new FormData;$.append("admin_avatar",w.value),await s.uploadAvatar($)}t.password="",t.confirm_password=""}}catch{return p.value=!1,!0}}return(l,a)=>{const $=m("BaseFileUploader"),c=m("BaseInputGroup"),_=m("BaseInput"),G=m("BaseMultiselect"),D=m("BaseInputGrid"),h=m("BaseIcon"),j=m("BaseButton"),A=m("BaseSettingCard");return C(),W("form",{class:"relative",onSubmit:se(N,["prevent"])},[r(A,{title:l.$t("settings.account_settings.account_settings"),description:l.$t("settings.account_settings.section_description")},{default:d(()=>[r(D,null,{default:d(()=>[r(c,{label:l.$tc("settings.account_settings.profile_picture")},{default:d(()=>[r($,{modelValue:e(f),"onUpdate:modelValue":a[0]||(a[0]=n=>X(f)?f.value=n:f=n),avatar:!0,accept:"image/*",onChange:q,onRemove:k},null,8,["modelValue"])]),_:1},8,["label"]),ie,r(c,{label:l.$tc("settings.account_settings.name"),error:e(o).name.$error&&e(o).name.$errors[0].$message,required:""},{default:d(()=>[r(_,{modelValue:e(t).name,"onUpdate:modelValue":a[1]||(a[1]=n=>e(t).name=n),invalid:e(o).name.$error,onInput:a[2]||(a[2]=n=>e(o).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(c,{label:l.$tc("settings.account_settings.email"),error:e(o).email.$error&&e(o).email.$errors[0].$message,required:""},{default:d(()=>[r(_,{modelValue:e(t).email,"onUpdate:modelValue":a[3]||(a[3]=n=>e(t).email=n),invalid:e(o).email.$error,onInput:a[4]||(a[4]=n=>e(o).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(c,{error:e(o).password.$error&&e(o).password.$errors[0].$message,label:l.$tc("settings.account_settings.password")},{default:d(()=>[r(_,{modelValue:e(t).password,"onUpdate:modelValue":a[5]||(a[5]=n=>e(t).password=n),type:"password",onInput:a[6]||(a[6]=n=>e(o).password.$touch())},null,8,["modelValue"])]),_:1},8,["error","label"]),r(c,{label:l.$tc("settings.account_settings.confirm_password"),error:e(o).confirm_password.$error&&e(o).confirm_password.$errors[0].$message},{default:d(()=>[r(_,{modelValue:e(t).confirm_password,"onUpdate:modelValue":a[7]||(a[7]=n=>e(t).confirm_password=n),type:"password",onInput:a[8]||(a[8]=n=>e(o).confirm_password.$touch())},null,8,["modelValue"])]),_:1},8,["label","error"]),r(c,{label:l.$tc("settings.language")},{default:d(()=>[r(G,{modelValue:e(t).language,"onUpdate:modelValue":a[9]||(a[9]=n=>e(t).language=n),options:e(i).config.languages,label:"name","value-prop":"code","track-by":"code","open-direction":"top"},null,8,["modelValue","options"])]),_:1},8,["label"])]),_:1}),r(j,{loading:e(p),disabled:e(p),class:"mt-6"},{left:d(n=>[e(p)?x("",!0):(C(),Y(h,{key:0,name:"SaveIcon",class:Z(n.class)},null,8,["class"]))]),default:d(()=>[ee(" "+ae(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])],40,le)}}};export{pe as default};
import{G as C,J as z,B as I,r as m,o as b,e as y,f as o,w as r,h as d,t as p,u as e,m as h,i as F,j as v,l as S,U as j}from"./vendor.01d0adc5.js";import{a as k,u as w}from"./global.8697213a.js";import"./auth.77d12976.js";import"./main.832b14c7.js";const D=["onSubmit"],G={class:"mb-6"},N={class:"font-bold text-left"},A={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},T={class:"grid grid-cols-5 gap-4 mb-8"},E={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},J={class:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},R={class:"md:col-span-3"},q={class:"flex items-center justify-start mb-6 md:justify-end md:mb-0"},H={class:"p-1"},K={class:"grid grid-cols-5 gap-4 mb-8"},L={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},O={key:0,class:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},P={class:"md:col-span-3"},Q={class:"flex items-center justify-end"},se={setup(W){const s=k();C();const{tm:$,t:X}=z(),g=w();let u=I(!1);g.fetchCountries();function B(){u.value=!0;let a=s.userForm;s.updateCurrentUser({data:a,message:$("customers.address_updated_message")}).then(t=>{u.value=!1}).catch(t=>{u.value=!1})}return(a,t)=>{const i=m("BaseInput"),n=m("BaseInputGroup"),f=m("BaseMultiselect"),c=m("BaseTextarea"),U=m("BaseDivider"),_=m("BaseIcon"),V=m("BaseButton"),M=m("BaseCard");return b(),y("form",{class:"relative h-full mt-4",onSubmit:j(B,["prevent"])},[o(M,null,{default:r(()=>[d("div",G,[d("h6",N,p(a.$t("settings.menu_title.address_information")),1),d("p",A,p(a.$t("settings.address_information.section_description")),1)]),d("div",T,[d("h6",E,p(a.$t("customers.billing_address")),1),d("div",J,[o(n,{label:a.$t("customers.name"),class:"w-full md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.name,"onUpdate:modelValue":t[0]||(t[0]=l=>e(s).userForm.billing.name=l),modelModifiers:{trim:!0},type:"text",class:"w-full",name:"address_name"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.country"),class:"md:col-span-3"},{default:r(()=>[o(f,{modelValue:e(s).userForm.billing.country_id,"onUpdate:modelValue":t[1]||(t[1]=l=>e(s).userForm.billing.country_id=l),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"",options:e(g).countries,placeholder:a.$t("general.select_country"),class:"w-full"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.state"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.state,"onUpdate:modelValue":t[2]||(t[2]=l=>e(s).userForm.billing.state=l),name:"billing.state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.city"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.city,"onUpdate:modelValue":t[3]||(t[3]=l=>e(s).userForm.billing.city=l),name:"billing.city",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.address"),class:"md:col-span-3"},{default:r(()=>[o(c,{modelValue:e(s).userForm.billing.address_street_1,"onUpdate:modelValue":t[4]||(t[4]=l=>e(s).userForm.billing.address_street_1=l),modelModifiers:{trim:!0},placeholder:a.$t("general.street_1"),type:"text",name:"billing_street1","container-class":"mt-3"},null,8,["modelValue","placeholder"]),o(c,{modelValue:e(s).userForm.billing.address_street_2,"onUpdate:modelValue":t[5]||(t[5]=l=>e(s).userForm.billing.address_street_2=l),modelModifiers:{trim:!0},placeholder:a.$t("general.street_2"),type:"text",class:"mt-3",name:"billing_street2","container-class":"mt-3"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),d("div",R,[o(n,{label:a.$t("customers.phone"),class:"text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.phone,"onUpdate:modelValue":t[6]||(t[6]=l=>e(s).userForm.billing.phone=l),modelModifiers:{trim:!0},type:"text",name:"phone"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.zip_code"),class:"mt-2 text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.zip,"onUpdate:modelValue":t[7]||(t[7]=l=>e(s).userForm.billing.zip=l),modelModifiers:{trim:!0},type:"text",name:"zip"},null,8,["modelValue"])]),_:1},8,["label"])])])]),o(U,{class:"mb-5 md:mb-8"}),d("div",q,[d("div",H,[o(V,{ref:(l,x)=>{x.sameAddress=l},type:"button",onClick:t[8]||(t[8]=l=>e(s).copyAddress(!0))},{left:r(l=>[o(_,{name:"DocumentDuplicateIcon",class:h(l.class)},null,8,["class"])]),default:r(()=>[F(" "+p(a.$t("customers.copy_billing_address")),1)]),_:1},512)])]),d("div",K,[d("h6",L,p(a.$t("customers.shipping_address")),1),e(s).userForm.shipping?(b(),y("div",O,[o(n,{label:a.$t("customers.name"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.name,"onUpdate:modelValue":t[9]||(t[9]=l=>e(s).userForm.shipping.name=l),modelModifiers:{trim:!0},type:"text",name:"address_name"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.country"),class:"md:col-span-3"},{default:r(()=>[o(f,{modelValue:e(s).userForm.shipping.country_id,"onUpdate:modelValue":t[10]||(t[10]=l=>e(s).userForm.shipping.country_id=l),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"",options:e(g).countries,placeholder:a.$t("general.select_country"),class:"w-full"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.state"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.state,"onUpdate:modelValue":t[11]||(t[11]=l=>e(s).userForm.shipping.state=l),name:"shipping.state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.city"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.city,"onUpdate:modelValue":t[12]||(t[12]=l=>e(s).userForm.shipping.city=l),name:"shipping.city",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.address"),class:"md:col-span-3"},{default:r(()=>[o(c,{modelValue:e(s).userForm.shipping.address_street_1,"onUpdate:modelValue":t[13]||(t[13]=l=>e(s).userForm.shipping.address_street_1=l),modelModifiers:{trim:!0},type:"text",placeholder:a.$t("general.street_1"),name:"shipping_street1"},null,8,["modelValue","placeholder"]),o(c,{modelValue:e(s).userForm.shipping.address_street_2,"onUpdate:modelValue":t[14]||(t[14]=l=>e(s).userForm.shipping.address_street_2=l),modelModifiers:{trim:!0},type:"text",placeholder:a.$t("general.street_2"),name:"shipping_street2",class:"mt-3"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),d("div",P,[o(n,{label:a.$t("customers.phone"),class:"text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.phone,"onUpdate:modelValue":t[15]||(t[15]=l=>e(s).userForm.shipping.phone=l),modelModifiers:{trim:!0},type:"text",name:"phone"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.zip_code"),class:"mt-2 text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.zip,"onUpdate:modelValue":t[16]||(t[16]=l=>e(s).userForm.shipping.zip=l),modelModifiers:{trim:!0},type:"text",name:"zip"},null,8,["modelValue"])]),_:1},8,["label"])])])):v("",!0)]),d("div",Q,[o(V,{loading:e(u),disabled:e(u)},{left:r(l=>[e(u)?v("",!0):(b(),S(_,{key:0,name:"SaveIcon",class:h(l.class)},null,8,["class"]))]),default:r(()=>[F(" "+p(a.$t("general.save")),1)]),_:1},8,["loading","disabled"])])]),_:1})],40,D)}}};export{se as default};
var te=Object.defineProperty,ae=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var F=(u,t,l)=>t in u?te(u,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):u[t]=l,q=(u,t)=>{for(var l in t||(t={}))oe.call(t,l)&&F(u,l,t[l]);if(U)for(var l of U(t))ne.call(t,l)&&F(u,l,t[l]);return u},G=(u,t)=>ae(u,se(t));import{a as x,d as le,B as w,a0 as E,J as O,k as D,L as R,M as A,T as ce,r as d,o as L,l as H,w as i,h as $,i as S,t as C,u as o,f as n,m as J,j as ie,U as re,e as de,F as ue}from"./vendor.01d0adc5.js";import{h as P,u as X,c as K,j as pe}from"./main.832b14c7.js";import{u as Q}from"./disk.3cfd12a4.js";const W=(u=!1)=>{const t=u?window.pinia.defineStore:le,{global:l}=window.i18n;return t({id:"backup",state:()=>({backups:[],currentBackupData:{option:"full",selected_disk:null}}),actions:{fetchBackups(b){return new Promise((c,s)=>{x.get("/api/v1/backups",{params:b}).then(e=>{this.backups=e.data.data,c(e)}).catch(e=>{P(e),s(e)})})},createBackup(b){return new Promise((c,s)=>{x.post("/api/v1/backups",b).then(e=>{X().showNotification({type:"success",message:l.t("settings.backup.created_message")}),c(e)}).catch(e=>{P(e),s(e)})})},removeBackup(b){return new Promise((c,s)=>{x.delete(`/api/v1/backups/${b.disk}`,{params:b}).then(e=>{X().showNotification({type:"success",message:l.t("settings.backup.deleted_message")}),c(e)}).catch(e=>{P(e),s(e)})})}}})()},ke={class:"flex justify-between w-full"},me=["onSubmit"],fe={class:"p-6"},_e={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},be={setup(u){w(null),w(!1);let t=w(!1),l=w(!1);const b=E(["full","only-db","only-files"]),c=W(),s=K(),e=Q(),{t:f}=O(),_=D(()=>s.active&&s.componentName==="BackupModal"),M=D(()=>e.disks.map(r=>G(q({},r),{name:r.name+" \u2014 ["+r.driver+"]"}))),V=D(()=>({currentBackupData:{option:{required:R.withMessage(f("validation.required"),A)},selected_disk:{required:R.withMessage(f("validation.required"),A)}}})),g=ce(V,D(()=>c));async function N(){if(g.value.currentBackupData.$touch(),g.value.currentBackupData.$invalid)return!0;let r={option:c.currentBackupData.option,file_disk_id:c.currentBackupData.selected_disk.id};try{t.value=!0,(await c.createBackup(r)).data&&(t.value=!1,s.refreshData&&s.refreshData(),s.closeModal())}catch{t.value=!1}}async function j(){l.value=!0;let r=await e.fetchDisks({limit:"all"});c.currentBackupData.selected_disk=r.data.data[0],l.value=!1}function I(){s.closeModal(),setTimeout(()=>{g.value.$reset(),c.$reset()})}return(r,h)=>{const a=d("BaseIcon"),p=d("BaseMultiselect"),m=d("BaseInputGroup"),k=d("BaseInputGrid"),y=d("BaseButton"),T=d("BaseModal");return L(),H(T,{show:o(_),onClose:I,onOpen:j},{header:i(()=>[$("div",ke,[S(C(o(s).title)+" ",1),n(a,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:I})])]),default:i(()=>[$("form",{onSubmit:re(N,["prevent"])},[$("div",fe,[n(k,{layout:"one-column"},{default:i(()=>[n(m,{label:r.$t("settings.backup.select_backup_type"),error:o(g).currentBackupData.option.$error&&o(g).currentBackupData.option.$errors[0].$message,horizontal:"",required:"",class:"py-2"},{default:i(()=>[n(p,{modelValue:o(c).currentBackupData.option,"onUpdate:modelValue":h[0]||(h[0]=v=>o(c).currentBackupData.option=v),options:o(b),"can-deselect":!1,placeholder:r.$t("settings.backup.select_backup_type"),searchable:""},null,8,["modelValue","options","placeholder"])]),_:1},8,["label","error"]),n(m,{label:r.$t("settings.disk.select_disk"),error:o(g).currentBackupData.selected_disk.$error&&o(g).currentBackupData.selected_disk.$errors[0].$message,horizontal:"",required:"",class:"py-2"},{default:i(()=>[n(p,{modelValue:o(c).currentBackupData.selected_disk,"onUpdate:modelValue":h[1]||(h[1]=v=>o(c).currentBackupData.selected_disk=v),"content-loading":o(l),options:o(M),searchable:!0,"allow-empty":!1,label:"name","value-prop":"id",placeholder:r.$t("settings.disk.select_disk"),"track-by":"id",object:""},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","error"])]),_:1})]),$("div",_e,[n(y,{class:"mr-3",variant:"primary-outline",type:"button",onClick:I},{default:i(()=>[S(C(r.$t("general.cancel")),1)]),_:1}),n(y,{loading:o(t),disabled:o(t),variant:"primary",type:"submit"},{left:i(v=>[o(t)?ie("",!0):(L(),H(a,{key:0,name:"SaveIcon",class:J(v.class)},null,8,["class"]))]),default:i(()=>[S(" "+C(r.$t("general.create")),1)]),_:1},8,["loading","disabled"])])],40,me)]),_:1},8,["show"])}}},ge={class:"grid my-14 md:grid-cols-3"},Be={class:"inline-block"},De={setup(u){const t=pe(),l=W(),b=K(),c=Q(),{t:s}=O(),e=E({selected_disk:{driver:"local"}}),f=w("");let _=w(!0);const M=D(()=>[{key:"path",label:s("settings.backup.path"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"created_at",label:s("settings.backup.created_at"),tdClass:"font-medium text-gray-900"},{key:"size",label:s("settings.backup.size"),tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),V=D(()=>c.disks.map(a=>G(q({},a),{name:a.name+" \u2014 ["+a.driver+"]"})));j();function g(a){t.openDialog({title:s("general.are_you_sure"),message:s("settings.backup.backup_confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async p=>{if(p){let m={disk:e.selected_disk.driver,file_disk_id:e.selected_disk.id,path:a.path},k=await l.removeBackup(m);if(k.data.success||k.data.backup)return f.value&&f.value.refresh(),!0}})}function N(){setTimeout(()=>{f.value.refresh()},100)}async function j(){_.value=!0;let a=await c.fetchDisks({limit:"all"});a.data.error,e.selected_disk=a.data.data.find(p=>p.set_as_default==0),_.value=!1}async function I({page:a,filter:p,sort:m}){let k={disk:e.selected_disk.driver,filed_disk_id:e.selected_disk.id};_.value=!0;let y=await l.fetchBackups(k);return _.value=!1,{data:y.data.backups,pagination:{totalPages:1,currentPage:1}}}async function r(){b.openModal({title:s("settings.backup.create_backup"),componentName:"BackupModal",refreshData:f.value&&f.value.refresh,size:"sm"})}async function h(a){_.value=!0,window.axios({method:"GET",url:"/api/v1/download-backup",responseType:"blob",params:{disk:e.selected_disk.driver,file_disk_id:e.selected_disk.id,path:a.path}}).then(p=>{const m=window.URL.createObjectURL(new Blob([p.data])),k=document.createElement("a");k.href=m,k.setAttribute("download",a.path.split("/")[1]),document.body.appendChild(k),k.click(),_.value=!1}).catch(p=>{_.value=!1})}return(a,p)=>{const m=d("BaseIcon"),k=d("BaseButton"),y=d("BaseMultiselect"),T=d("BaseInputGroup"),v=d("BaseDropdownItem"),Y=d("BaseDropdown"),Z=d("BaseTable"),ee=d("BaseSettingCard");return L(),de(ue,null,[n(be),n(ee,{title:a.$tc("settings.backup.title",1),description:a.$t("settings.backup.description")},{action:i(()=>[n(k,{variant:"primary-outline",onClick:r},{left:i(B=>[n(m,{class:J(B.class),name:"PlusIcon"},null,8,["class"])]),default:i(()=>[S(" "+C(a.$t("settings.backup.new_backup")),1)]),_:1})]),default:i(()=>[$("div",ge,[n(T,{label:a.$t("settings.disk.select_disk"),"content-loading":o(_)},{default:i(()=>[n(y,{modelValue:o(e).selected_disk,"onUpdate:modelValue":p[0]||(p[0]=B=>o(e).selected_disk=B),"content-loading":o(_),options:o(V),"track-by":"id",placeholder:a.$t("settings.disk.select_disk"),label:"name",searchable:!0,object:"",class:"w-full","value-prop":"id",onSelect:N},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","content-loading"])]),n(Z,{ref:(B,z)=>{z.table=B,f.value=B},class:"mt-10","show-filter":!1,data:I,columns:o(M)},{"cell-actions":i(({row:B})=>[n(Y,null,{activator:i(()=>[$("div",Be,[n(m,{name:"DotsHorizontalIcon",class:"text-gray-500"})])]),default:i(()=>[n(v,{onClick:z=>h(B.data)},{default:i(()=>[n(m,{name:"CloudDownloadIcon",class:"mr-3 text-gray-600"}),S(" "+C(a.$t("general.download")),1)]),_:2},1032,["onClick"]),n(v,{onClick:z=>g(B.data)},{default:i(()=>[n(m,{name:"TrashIcon",class:"mr-3 text-gray-600"}),S(" "+C(a.$t("general.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{De as default};
var nc=Object.defineProperty,oc=Object.defineProperties;var ic=Object.getOwnPropertyDescriptors;var Mr=Object.getOwnPropertySymbols;var Ko=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable;var Uo=(e,t,r)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Ko.call(t,r)&&Uo(e,r,t[r]);if(Mr)for(var r of Mr(t))$o.call(t,r)&&Uo(e,r,t[r]);return e},wt=(e,t)=>oc(e,ic(t));var Go=(e,t)=>{var r={};for(var n in e)Ko.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mr)for(var n of Mr(e))t.indexOf(n)<0&&$o.call(e,n)&&(r[n]=e[n]);return r};import{bf as sc,a8 as ac,bg as $e,B as Cr,D as sn,b1 as xr,E as ye,bh as cc,a7 as lc,be as uc,u as fc,al as pc,a0 as dc,bi as hc,bj as mc,o as kt,e as Tt,h as _,ai as vc,bk as gc,C as yc,aS as bc,r as ut,l as kc,w as an,f as q,m as V,j as Sc}from"./vendor.01d0adc5.js";import{_ as Dt}from"./main.832b14c7.js";function ft(e){this.content=e}ft.prototype={constructor:ft,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,r){var n=r&&r!=e?this.remove(r):this,o=n.find(e),i=n.content.slice();return o==-1?i.push(r||e,t):(i[o+1]=t,r&&(i[o]=r)),new ft(i)},remove:function(e){var t=this.find(e);if(t==-1)return this;var r=this.content.slice();return r.splice(t,2),new ft(r)},addToStart:function(e,t){return new ft([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new ft(r)},addBefore:function(e,t,r){var n=this.remove(t),o=n.content.slice(),i=n.find(e);return o.splice(i==-1?o.length:i,0,t,r),new ft(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ft.from(e),e.size?new ft(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ft.from(e),e.size?new ft(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ft.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},get size(){return this.content.length>>1}};ft.from=function(e){if(e instanceof ft)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new ft(t)};var Yo=ft;function Xo(e,t,r){for(var n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;var o=e.child(n),i=t.child(n);if(o==i){r+=o.nodeSize;continue}if(!o.sameMarkup(i))return r;if(o.isText&&o.text!=i.text){for(var s=0;o.text[s]==i.text[s];s++)r++;return r}if(o.content.size||i.content.size){var a=Xo(o.content,i.content,r+1);if(a!=null)return a}r+=o.nodeSize}}function Qo(e,t,r,n){for(var o=e.childCount,i=t.childCount;;){if(o==0||i==0)return o==i?null:{a:r,b:n};var s=e.child(--o),a=t.child(--i),c=s.nodeSize;if(s==a){r-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:r,b:n};if(s.isText&&s.text!=a.text){for(var l=0,u=Math.min(s.text.length,a.text.length);l<u&&s.text[s.text.length-l-1]==a.text[a.text.length-l-1];)l++,r--,n--;return{a:r,b:n}}if(s.content.size||a.content.size){var f=Qo(s.content,a.content,r-1,n-1);if(f)return f}r-=c,n-=c}}var k=function(t,r){if(this.content=t,this.size=r||0,r==null)for(var n=0;n<t.length;n++)this.size+=t[n].nodeSize},Or={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};k.prototype.nodesBetween=function(t,r,n,o,i){o===void 0&&(o=0);for(var s=0,a=0;a<r;s++){var c=this.content[s],l=a+c.nodeSize;if(l>t&&n(c,o+a,i,s)!==!1&&c.content.size){var u=a+1;c.nodesBetween(Math.max(0,t-u),Math.min(c.content.size,r-u),n,o+u)}a=l}};k.prototype.descendants=function(t){this.nodesBetween(0,this.size,t)};k.prototype.textBetween=function(t,r,n,o){var i="",s=!0;return this.nodesBetween(t,r,function(a,c){a.isText?(i+=a.text.slice(Math.max(t,c)-c,r-c),s=!n):a.isLeaf&&o?(i+=o,s=!n):!s&&a.isBlock&&(i+=n,s=!0)},0),i};k.prototype.append=function(t){if(!t.size)return this;if(!this.size)return t;var r=this.lastChild,n=t.firstChild,o=this.content.slice(),i=0;for(r.isText&&r.sameMarkup(n)&&(o[o.length-1]=r.withText(r.text+n.text),i=1);i<t.content.length;i++)o.push(t.content[i]);return new k(o,this.size+t.size)};k.prototype.cut=function(t,r){if(r==null&&(r=this.size),t==0&&r==this.size)return this;var n=[],o=0;if(r>t)for(var i=0,s=0;s<r;i++){var a=this.content[i],c=s+a.nodeSize;c>t&&((s<t||c>r)&&(a.isText?a=a.cut(Math.max(0,t-s),Math.min(a.text.length,r-s)):a=a.cut(Math.max(0,t-s-1),Math.min(a.content.size,r-s-1))),n.push(a),o+=a.nodeSize),s=c}return new k(n,o)};k.prototype.cutByIndex=function(t,r){return t==r?k.empty:t==0&&r==this.content.length?this:new k(this.content.slice(t,r))};k.prototype.replaceChild=function(t,r){var n=this.content[t];if(n==r)return this;var o=this.content.slice(),i=this.size+r.nodeSize-n.nodeSize;return o[t]=r,new k(o,i)};k.prototype.addToStart=function(t){return new k([t].concat(this.content),this.size+t.nodeSize)};k.prototype.addToEnd=function(t){return new k(this.content.concat(t),this.size+t.nodeSize)};k.prototype.eq=function(t){if(this.content.length!=t.content.length)return!1;for(var r=0;r<this.content.length;r++)if(!this.content[r].eq(t.content[r]))return!1;return!0};Or.firstChild.get=function(){return this.content.length?this.content[0]:null};Or.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null};Or.childCount.get=function(){return this.content.length};k.prototype.child=function(t){var r=this.content[t];if(!r)throw new RangeError("Index "+t+" out of range for "+this);return r};k.prototype.maybeChild=function(t){return this.content[t]};k.prototype.forEach=function(t){for(var r=0,n=0;r<this.content.length;r++){var o=this.content[r];t(o,n,r),n+=o.nodeSize}};k.prototype.findDiffStart=function(t,r){return r===void 0&&(r=0),Xo(this,t,r)};k.prototype.findDiffEnd=function(t,r,n){return r===void 0&&(r=this.size),n===void 0&&(n=t.size),Qo(this,t,r,n)};k.prototype.findIndex=function(t,r){if(r===void 0&&(r=-1),t==0)return wr(0,t);if(t==this.size)return wr(this.content.length,t);if(t>this.size||t<0)throw new RangeError("Position "+t+" outside of fragment ("+this+")");for(var n=0,o=0;;n++){var i=this.child(n),s=o+i.nodeSize;if(s>=t)return s==t||r>0?wr(n+1,s):wr(n,o);o=s}};k.prototype.toString=function(){return"<"+this.toStringInner()+">"};k.prototype.toStringInner=function(){return this.content.join(", ")};k.prototype.toJSON=function(){return this.content.length?this.content.map(function(t){return t.toJSON()}):null};k.fromJSON=function(t,r){if(!r)return k.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new k(r.map(t.nodeFromJSON))};k.fromArray=function(t){if(!t.length)return k.empty;for(var r,n=0,o=0;o<t.length;o++){var i=t[o];n+=i.nodeSize,o&&i.isText&&t[o-1].sameMarkup(i)?(r||(r=t.slice(0,o)),r[r.length-1]=i.withText(r[r.length-1].text+i.text)):r&&r.push(i)}return new k(r||t,n)};k.from=function(t){if(!t)return k.empty;if(t instanceof k)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new k([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))};Object.defineProperties(k.prototype,Or);var cn={index:0,offset:0};function wr(e,t){return cn.index=e,cn.offset=t,cn}k.empty=new k([],0);function Tr(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;var r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!Tr(e[n],t[n]))return!1}else{for(var o in e)if(!(o in t)||!Tr(e[o],t[o]))return!1;for(var i in t)if(!(i in e))return!1}return!0}var R=function(t,r){this.type=t,this.attrs=r};R.prototype.addToSet=function(t){for(var r,n=!1,o=0;o<t.length;o++){var i=t[o];if(this.eq(i))return t;if(this.type.excludes(i.type))r||(r=t.slice(0,o));else{if(i.type.excludes(this.type))return t;!n&&i.type.rank>this.type.rank&&(r||(r=t.slice(0,o)),r.push(this),n=!0),r&&r.push(i)}}return r||(r=t.slice()),n||r.push(this),r};R.prototype.removeFromSet=function(t){for(var r=0;r<t.length;r++)if(this.eq(t[r]))return t.slice(0,r).concat(t.slice(r+1));return t};R.prototype.isInSet=function(t){for(var r=0;r<t.length;r++)if(this.eq(t[r]))return!0;return!1};R.prototype.eq=function(t){return this==t||this.type==t.type&&Tr(this.attrs,t.attrs)};R.prototype.toJSON=function(){var t={type:this.type.name};for(var r in this.attrs){t.attrs=this.attrs;break}return t};R.fromJSON=function(t,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");var n=t.marks[r.type];if(!n)throw new RangeError("There is no mark type "+r.type+" in this schema");return n.create(r.attrs)};R.sameSet=function(t,r){if(t==r)return!0;if(t.length!=r.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].eq(r[n]))return!1;return!0};R.setFrom=function(t){if(!t||t.length==0)return R.none;if(t instanceof R)return[t];var r=t.slice();return r.sort(function(n,o){return n.type.rank-o.type.rank}),r};R.none=[];function Jt(e){var t=Error.call(this,e);return t.__proto__=Jt.prototype,t}Jt.prototype=Object.create(Error.prototype);Jt.prototype.constructor=Jt;Jt.prototype.name="ReplaceError";var O=function(t,r,n){this.content=t,this.openStart=r,this.openEnd=n},Zo={size:{configurable:!0}};Zo.size.get=function(){return this.content.size-this.openStart-this.openEnd};O.prototype.insertAt=function(t,r){var n=ei(this.content,t+this.openStart,r,null);return n&&new O(n,this.openStart,this.openEnd)};O.prototype.removeBetween=function(t,r){return new O(ti(this.content,t+this.openStart,r+this.openStart),this.openStart,this.openEnd)};O.prototype.eq=function(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd};O.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"};O.prototype.toJSON=function(){if(!this.content.size)return null;var t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t};O.fromJSON=function(t,r){if(!r)return O.empty;var n=r.openStart||0,o=r.openEnd||0;if(typeof n!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new O(k.fromJSON(t,r.content),n,o)};O.maxOpen=function(t,r){r===void 0&&(r=!0);for(var n=0,o=0,i=t.firstChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.firstChild)n++;for(var s=t.lastChild;s&&!s.isLeaf&&(r||!s.type.spec.isolating);s=s.lastChild)o++;return new O(t,n,o)};Object.defineProperties(O.prototype,Zo);function ti(e,t,r){var n=e.findIndex(t),o=n.index,i=n.offset,s=e.maybeChild(o),a=e.findIndex(r),c=a.index,l=a.offset;if(i==t||s.isText){if(l!=r&&!e.child(c).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(o!=c)throw new RangeError("Removing non-flat range");return e.replaceChild(o,s.copy(ti(s.content,t-i-1,r-i-1)))}function ei(e,t,r,n){var o=e.findIndex(t),i=o.index,s=o.offset,a=e.maybeChild(i);if(s==t||a.isText)return n&&!n.canReplace(i,i,r)?null:e.cut(0,t).append(r).append(e.cut(t));var c=ei(a.content,t-s-1,r);return c&&e.replaceChild(i,a.copy(c))}O.empty=new O(k.empty,0,0);function Mc(e,t,r){if(r.openStart>e.depth)throw new Jt("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new Jt("Inconsistent open depths");return ri(e,t,r,0)}function ri(e,t,r,n){var o=e.index(n),i=e.node(n);if(o==t.index(n)&&n<e.depth-r.openStart){var s=ri(e,t,r,n+1);return i.copy(i.content.replaceChild(o,s))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&e.depth==n&&t.depth==n){var a=e.parent,c=a.content;return ke(a,c.cut(0,e.parentOffset).append(r.content).append(c.cut(t.parentOffset)))}else{var l=Cc(r,e),u=l.start,f=l.end;return ke(i,oi(e,u,f,t,n))}else return ke(i,Ar(e,t,n))}function ni(e,t){if(!t.type.compatibleContent(e.type))throw new Jt("Cannot join "+t.type.name+" onto "+e.type.name)}function ln(e,t,r){var n=e.node(r);return ni(n,t.node(r)),n}function be(e,t){var r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function Ue(e,t,r,n){var o=(t||e).node(r),i=0,s=t?t.index(r):o.childCount;e&&(i=e.index(r),e.depth>r?i++:e.textOffset&&(be(e.nodeAfter,n),i++));for(var a=i;a<s;a++)be(o.child(a),n);t&&t.depth==r&&t.textOffset&&be(t.nodeBefore,n)}function ke(e,t){if(!e.type.validContent(t))throw new Jt("Invalid content for node "+e.type.name);return e.copy(t)}function oi(e,t,r,n,o){var i=e.depth>o&&ln(e,t,o+1),s=n.depth>o&&ln(r,n,o+1),a=[];return Ue(null,e,o,a),i&&s&&t.index(o)==r.index(o)?(ni(i,s),be(ke(i,oi(e,t,r,n,o+1)),a)):(i&&be(ke(i,Ar(e,t,o+1)),a),Ue(t,r,o,a),s&&be(ke(s,Ar(r,n,o+1)),a)),Ue(n,null,o,a),new k(a)}function Ar(e,t,r){var n=[];if(Ue(null,e,r,n),e.depth>r){var o=ln(e,t,r+1);be(ke(o,Ar(e,t,r+1)),n)}return Ue(t,null,r,n),new k(n)}function Cc(e,t){for(var r=t.depth-e.openStart,n=t.node(r),o=n.copy(e.content),i=r-1;i>=0;i--)o=t.node(i).copy(k.from(o));return{start:o.resolveNoCache(e.openStart+r),end:o.resolveNoCache(o.content.size-e.openEnd-r)}}var K=function(t,r,n){this.pos=t,this.path=r,this.depth=r.length/3-1,this.parentOffset=n},De={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};K.prototype.resolveDepth=function(t){return t==null?this.depth:t<0?this.depth+t:t};De.parent.get=function(){return this.node(this.depth)};De.doc.get=function(){return this.node(0)};K.prototype.node=function(t){return this.path[this.resolveDepth(t)*3]};K.prototype.index=function(t){return this.path[this.resolveDepth(t)*3+1]};K.prototype.indexAfter=function(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)};K.prototype.start=function(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1};K.prototype.end=function(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size};K.prototype.before=function(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]};K.prototype.after=function(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize};De.textOffset.get=function(){return this.pos-this.path[this.path.length-1]};De.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n};De.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)};K.prototype.posAtIndex=function(t,r){r=this.resolveDepth(r);for(var n=this.path[r*3],o=r==0?0:this.path[r*3-1]+1,i=0;i<t;i++)o+=n.child(i).nodeSize;return o};K.prototype.marks=function(){var t=this.parent,r=this.index();if(t.content.size==0)return R.none;if(this.textOffset)return t.child(r).marks;var n=t.maybeChild(r-1),o=t.maybeChild(r);if(!n){var i=n;n=o,o=i}for(var s=n.marks,a=0;a<s.length;a++)s[a].type.spec.inclusive===!1&&(!o||!s[a].isInSet(o.marks))&&(s=s[a--].removeFromSet(s));return s};K.prototype.marksAcross=function(t){var r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;for(var n=r.marks,o=t.parent.maybeChild(t.index()),i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!o||!n[i].isInSet(o.marks))&&(n=n[i--].removeFromSet(n));return n};K.prototype.sharedDepth=function(t){for(var r=this.depth;r>0;r--)if(this.start(r)<=t&&this.end(r)>=t)return r;return 0};K.prototype.blockRange=function(t,r){if(t===void 0&&(t=this),t.pos<this.pos)return t.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!r||r(this.node(n))))return new Ge(this,t,n)};K.prototype.sameParent=function(t){return this.pos-this.parentOffset==t.pos-t.parentOffset};K.prototype.max=function(t){return t.pos>this.pos?t:this};K.prototype.min=function(t){return t.pos<this.pos?t:this};K.prototype.toString=function(){for(var t="",r=1;r<=this.depth;r++)t+=(t?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return t+":"+this.parentOffset};K.resolve=function(t,r){if(!(r>=0&&r<=t.content.size))throw new RangeError("Position "+r+" out of range");for(var n=[],o=0,i=r,s=t;;){var a=s.content.findIndex(i),c=a.index,l=a.offset,u=i-l;if(n.push(s,c,o+l),!u||(s=s.child(c),s.isText))break;i=u-1,o+=l+1}return new K(r,n,i)};K.resolveCached=function(t,r){for(var n=0;n<un.length;n++){var o=un[n];if(o.pos==r&&o.doc==t)return o}var i=un[fn]=K.resolve(t,r);return fn=(fn+1)%xc,i};Object.defineProperties(K.prototype,De);var un=[],fn=0,xc=12,Ge=function(t,r,n){this.$from=t,this.$to=r,this.depth=n},Ie={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};Ie.start.get=function(){return this.$from.before(this.depth+1)};Ie.end.get=function(){return this.$to.after(this.depth+1)};Ie.parent.get=function(){return this.$from.node(this.depth)};Ie.startIndex.get=function(){return this.$from.index(this.depth)};Ie.endIndex.get=function(){return this.$to.indexAfter(this.depth)};Object.defineProperties(Ge.prototype,Ie);var Oc=Object.create(null),P=function(t,r,n,o){this.type=t,this.attrs=r,this.content=n||k.empty,this.marks=o||R.none},At={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};At.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size};At.childCount.get=function(){return this.content.childCount};P.prototype.child=function(t){return this.content.child(t)};P.prototype.maybeChild=function(t){return this.content.maybeChild(t)};P.prototype.forEach=function(t){this.content.forEach(t)};P.prototype.nodesBetween=function(t,r,n,o){o===void 0&&(o=0),this.content.nodesBetween(t,r,n,o,this)};P.prototype.descendants=function(t){this.nodesBetween(0,this.content.size,t)};At.textContent.get=function(){return this.textBetween(0,this.content.size,"")};P.prototype.textBetween=function(t,r,n,o){return this.content.textBetween(t,r,n,o)};At.firstChild.get=function(){return this.content.firstChild};At.lastChild.get=function(){return this.content.lastChild};P.prototype.eq=function(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)};P.prototype.sameMarkup=function(t){return this.hasMarkup(t.type,t.attrs,t.marks)};P.prototype.hasMarkup=function(t,r,n){return this.type==t&&Tr(this.attrs,r||t.defaultAttrs||Oc)&&R.sameSet(this.marks,n||R.none)};P.prototype.copy=function(t){return t===void 0&&(t=null),t==this.content?this:new this.constructor(this.type,this.attrs,t,this.marks)};P.prototype.mark=function(t){return t==this.marks?this:new this.constructor(this.type,this.attrs,this.content,t)};P.prototype.cut=function(t,r){return t==0&&r==this.content.size?this:this.copy(this.content.cut(t,r))};P.prototype.slice=function(t,r,n){if(r===void 0&&(r=this.content.size),n===void 0&&(n=!1),t==r)return O.empty;var o=this.resolve(t),i=this.resolve(r),s=n?0:o.sharedDepth(r),a=o.start(s),c=o.node(s),l=c.content.cut(o.pos-a,i.pos-a);return new O(l,o.depth-s,i.depth-s)};P.prototype.replace=function(t,r,n){return Mc(this.resolve(t),this.resolve(r),n)};P.prototype.nodeAt=function(t){for(var r=this;;){var n=r.content.findIndex(t),o=n.index,i=n.offset;if(r=r.maybeChild(o),!r)return null;if(i==t||r.isText)return r;t-=i+1}};P.prototype.childAfter=function(t){var r=this.content.findIndex(t),n=r.index,o=r.offset;return{node:this.content.maybeChild(n),index:n,offset:o}};P.prototype.childBefore=function(t){if(t==0)return{node:null,index:0,offset:0};var r=this.content.findIndex(t),n=r.index,o=r.offset;if(o<t)return{node:this.content.child(n),index:n,offset:o};var i=this.content.child(n-1);return{node:i,index:n-1,offset:o-i.nodeSize}};P.prototype.resolve=function(t){return K.resolveCached(this,t)};P.prototype.resolveNoCache=function(t){return K.resolve(this,t)};P.prototype.rangeHasMark=function(t,r,n){var o=!1;return r>t&&this.nodesBetween(t,r,function(i){return n.isInSet(i.marks)&&(o=!0),!o}),o};At.isBlock.get=function(){return this.type.isBlock};At.isTextblock.get=function(){return this.type.isTextblock};At.inlineContent.get=function(){return this.type.inlineContent};At.isInline.get=function(){return this.type.isInline};At.isText.get=function(){return this.type.isText};At.isLeaf.get=function(){return this.type.isLeaf};At.isAtom.get=function(){return this.type.isAtom};P.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),ii(this.marks,t)};P.prototype.contentMatchAt=function(t){var r=this.type.contentMatch.matchFragment(this.content,0,t);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r};P.prototype.canReplace=function(t,r,n,o,i){n===void 0&&(n=k.empty),o===void 0&&(o=0),i===void 0&&(i=n.childCount);var s=this.contentMatchAt(t).matchFragment(n,o,i),a=s&&s.matchFragment(this.content,r);if(!a||!a.validEnd)return!1;for(var c=o;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0};P.prototype.canReplaceWith=function(t,r,n,o){if(o&&!this.type.allowsMarks(o))return!1;var i=this.contentMatchAt(t).matchType(n),s=i&&i.matchFragment(this.content,r);return s?s.validEnd:!1};P.prototype.canAppend=function(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)};P.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var t=R.none,r=0;r<this.marks.length;r++)t=this.marks[r].addToSet(t);if(!R.sameSet(t,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map(function(n){return n.type.name}));this.content.forEach(function(n){return n.check()})};P.prototype.toJSON=function(){var t={type:this.type.name};for(var r in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(function(n){return n.toJSON()})),t};P.fromJSON=function(t,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(t.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(r.text,n)}var o=k.fromJSON(t,r.content);return t.nodeType(r.type).create(r.attrs,o,n)};Object.defineProperties(P.prototype,At);var wc=function(e){function t(n,o,i,s){if(e.call(this,n,o,null,s),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ii(this.marks,JSON.stringify(this.text))},r.textContent.get=function(){return this.text},t.prototype.textBetween=function(o,i){return this.text.slice(o,i)},r.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(o){return o==this.marks?this:new t(this.type,this.attrs,this.text,o)},t.prototype.withText=function(o){return o==this.text?this:new t(this.type,this.attrs,o,this.marks)},t.prototype.cut=function(o,i){return o===void 0&&(o=0),i===void 0&&(i=this.text.length),o==0&&i==this.text.length?this:this.withText(this.text.slice(o,i))},t.prototype.eq=function(o){return this.sameMarkup(o)&&this.text==o.text},t.prototype.toJSON=function(){var o=e.prototype.toJSON.call(this);return o.text=this.text,o},Object.defineProperties(t.prototype,r),t}(P);function ii(e,t){for(var r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}var pt=function(t){this.validEnd=t,this.next=[],this.wrapCache=[]},_r={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};pt.parse=function(t,r){var n=new Nr(t,r);if(n.next==null)return pt.empty;var o=ai(n);n.next&&n.err("Unexpected trailing text");var i=Ic(Dc(o));return Rc(i,n),i};pt.prototype.matchType=function(t){for(var r=0;r<this.next.length;r+=2)if(this.next[r]==t)return this.next[r+1];return null};pt.prototype.matchFragment=function(t,r,n){r===void 0&&(r=0),n===void 0&&(n=t.childCount);for(var o=this,i=r;o&&i<n;i++)o=o.matchType(t.child(i).type);return o};_r.inlineContent.get=function(){var e=this.next[0];return e?e.isInline:!1};_r.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}};pt.prototype.compatible=function(t){for(var r=0;r<this.next.length;r+=2)for(var n=0;n<t.next.length;n+=2)if(this.next[r]==t.next[n])return!0;return!1};pt.prototype.fillBefore=function(t,r,n){r===void 0&&(r=!1),n===void 0&&(n=0);var o=[this];function i(s,a){var c=s.matchFragment(t,n);if(c&&(!r||c.validEnd))return k.from(a.map(function(d){return d.createAndFill()}));for(var l=0;l<s.next.length;l+=2){var u=s.next[l],f=s.next[l+1];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);var p=i(f,a.concat(u));if(p)return p}}}return i(this,[])};pt.prototype.findWrapping=function(t){for(var r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];var n=this.computeWrapping(t);return this.wrapCache.push(t,n),n};pt.prototype.computeWrapping=function(t){for(var r=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var o=n.shift(),i=o.match;if(i.matchType(t)){for(var s=[],a=o;a.type;a=a.via)s.push(a.type);return s.reverse()}for(var c=0;c<i.next.length;c+=2){var l=i.next[c];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in r)&&(!o.type||i.next[c+1].validEnd)&&(n.push({match:l.contentMatch,type:l,via:o}),r[l.name]=!0)}}};_r.edgeCount.get=function(){return this.next.length>>1};pt.prototype.edge=function(t){var r=t<<1;if(r>=this.next.length)throw new RangeError("There's no "+t+"th edge in this content match");return{type:this.next[r],next:this.next[r+1]}};pt.prototype.toString=function(){var t=[];function r(n){t.push(n);for(var o=1;o<n.next.length;o+=2)t.indexOf(n.next[o])==-1&&r(n.next[o])}return r(this),t.map(function(n,o){for(var i=o+(n.validEnd?"*":" ")+" ",s=0;s<n.next.length;s+=2)i+=(s?", ":"")+n.next[s].name+"->"+t.indexOf(n.next[s+1]);return i}).join(`
import{_ as o}from"./main.832b14c7.js";import{o as n,e as c,g as i,k as l,r as u,l as m,w as _,j as f,h as $,t as h,s as B}from"./vendor.01d0adc5.js";const k={name:"List"},v={class:"list-none"};function x(e,r,t,s,a,d){return n(),c("div",v,[i(e.$slots,"default")])}var L=o(k,[["render",x]]);const y={name:"ListItem",props:{title:{type:String,required:!1,default:""},active:{type:Boolean,required:!0},index:{type:Number,default:null}},setup(e,{slots:r}){const t="cursor-pointer pb-2 pr-0 text-sm font-medium leading-5  flex items-center";let s=l(()=>!!r.icon),a=l(()=>e.active?`${t} text-primary-500`:`${t} text-gray-500`);return{hasIconSlot:s,containerClass:a}}},g={key:0,class:"mr-3"};function C(e,r,t,s,a,d){const p=u("router-link");return n(),m(p,B(e.$attrs,{class:s.containerClass}),{default:_(()=>[s.hasIconSlot?(n(),c("span",g,[i(e.$slots,"icon")])):f("",!0),$("span",null,h(t.title),1)]),_:3},16,["class"])}var b=o(y,[["render",C]]);export{b as B,L as a};
var Xe=Object.defineProperty,Ye=Object.defineProperties;var Ze=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var $e=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var qe=(e,n,a)=>n in e?Xe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,G=(e,n)=>{for(var a in n||(n={}))$e.call(n,a)&&qe(e,a,n[a]);if(Be)for(var a of Be(n))_e.call(n,a)&&qe(e,a,n[a]);return e},Ce=(e,n)=>Ye(e,Ze(n));import{bd as x,B as N,k as w,C as re,be as Te,r as De,o as I,l as el,w as ll,f as al,e as B,m as O,U as ve,j as E,F as ae,y as se,g as T,i as tl,t as J,h as P}from"./vendor.01d0adc5.js";import{_ as nl}from"./main.832b14c7.js";function F(e){return[null,void 0,!1].indexOf(e)!==-1}function rl(e,n,a){const{object:i,valueProp:o,mode:v}=x(e),f=a.iv,g=p=>{f.value=c(p);const b=t(p);n.emit("change",b),n.emit("input",b),n.emit("update:modelValue",b)},t=p=>i.value||F(p)?p:Array.isArray(p)?p.map(b=>b[o.value]):p[o.value],c=p=>F(p)?v.value==="single"?{}:[]:p;return{update:g}}function sl(e,n){const{value:a,modelValue:i,mode:o,valueProp:v}=x(e),f=N(o.value!=="single"?[]:{}),g=n.expose!==void 0?i:a,t=w(()=>o.value==="single"?f.value[v.value]:f.value.map(p=>p[v.value])),c=w(()=>o.value!=="single"?f.value.map(p=>p[v.value]).join(","):f.value[v.value]);return{iv:f,internalValue:f,ev:g,externalValue:g,textValue:c,plainValue:t}}function ul(e,n,a){const{preserveSearch:i}=x(e),o=N(e.initialSearch)||N(null),v=N(null),f=()=>{i.value||(o.value="")},g=c=>{o.value=c.target.value},t=c=>{n.emit("paste",c)};return re(o,c=>{n.emit("search-change",c)}),{search:o,input:v,clearSearch:f,handleSearchInput:g,handlePaste:t}}function ol(e,n,a){const{groupSelect:i,mode:o,groups:v}=x(e),f=N(null),g=c=>{c===void 0||c!==null&&c.disabled||v.value&&c&&c.group&&(o.value==="single"||!i.value)||(f.value=c)};return{pointer:f,setPointer:g,clearPointer:()=>{g(null)}}}function Ee(e,n=!0){return n?String(e).toLowerCase().trim():String(e).normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase().trim()}function il(e){return Object.prototype.toString.call(e)==="[object Object]"}function cl(e,n){const a=n.slice().sort();return e.length===n.length&&e.slice().sort().every(function(i,o){return i===a[o]})}function dl(e,n,a){const{options:i,mode:o,trackBy:v,limit:f,hideSelected:g,createTag:t,label:c,appendNewTag:p,multipleLabel:b,object:q,loading:V,delay:D,resolveOnLoad:m,minChars:s,filterResults:A,clearOnSearch:Z,clearOnSelect:k,valueProp:d,canDeselect:j,max:L,strict:Q,closeOnSelect:X,groups:$,groupLabel:ue,groupOptions:M,groupHideEmpty:pe,groupSelect:fe}=x(e),S=a.iv,z=a.ev,C=a.search,_=a.clearSearch,ee=a.update,ge=a.pointer,oe=a.clearPointer,W=a.blur,te=a.deactivate,r=N([]),h=N([]),R=N(!1),H=w(()=>{if($.value){let l=h.value||[],u=[];return l.forEach(y=>{ke(y[M.value]).forEach(U=>{u.push(Object.assign({},U,y.disabled?{disabled:!0}:{}))})}),u}else{let l=ke(h.value||[]);return r.value.length&&(l=l.concat(r.value)),l}}),Oe=w(()=>$.value?Ue((h.value||[]).map(l=>{const u=ke(l[M.value]);return Ce(G({},l),{group:!0,[M.value]:Se(u,!1).map(y=>Object.assign({},y,l.disabled?{disabled:!0}:{})),__VISIBLE__:Se(u).map(y=>Object.assign({},y,l.disabled?{disabled:!0}:{}))})})):[]),ie=w(()=>{let l=H.value;return me.value.length&&(l=me.value.concat(l)),l=Se(l),f.value>0&&(l=l.slice(0,f.value)),l}),be=w(()=>{switch(o.value){case"single":return!F(S.value[d.value]);case"multiple":case"tags":return!F(S.value)&&S.value.length>0}}),Ve=w(()=>b!==void 0&&b.value!==void 0?b.value(S.value):S.value&&S.value.length>1?`${S.value.length} options selected`:"1 option selected"),je=w(()=>!H.value.length&&!R.value&&!me.value.length),Re=w(()=>H.value.length>0&&ie.value.length==0&&(C.value&&$.value||!$.value)),me=w(()=>t.value===!1||!C.value?[]:ze(C.value)!==-1?[]:[{[d.value]:C.value,[c.value]:C.value,[v.value]:C.value}]),Ge=w(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),Ae=w(()=>V.value||R.value),ne=l=>{switch(typeof l!="object"&&(l=K(l)),o.value){case"single":ee(l);break;case"multiple":case"tags":ee(S.value.concat(l));break}n.emit("select",Le(l),l)},le=l=>{switch(typeof l!="object"&&(l=K(l)),o.value){case"single":Ie();break;case"tags":case"multiple":ee(Array.isArray(l)?S.value.filter(u=>l.map(y=>y[d.value]).indexOf(u[d.value])===-1):S.value.filter(u=>u[d.value]!=l[d.value]));break}n.emit("deselect",Le(l),l)},Le=l=>q.value?l:l[d.value],Pe=l=>{le(l)},Me=(l,u)=>{if(u.button!==0){u.preventDefault();return}Pe(l)},Ie=()=>{n.emit("clear"),ee(Ge.value)},Y=l=>{if(l.group!==void 0)return o.value==="single"?!1:Fe(l[M.value])&&l[M.value].length;switch(o.value){case"single":return!F(S.value)&&S.value[d.value]==l[d.value];case"tags":case"multiple":return!F(S.value)&&S.value.map(u=>u[d.value]).indexOf(l[d.value])!==-1}},he=l=>l.disabled===!0,ye=()=>L===void 0||L.value===-1||!be.value&&L.value>0?!1:S.value.length>=L.value,Ne=l=>{if(!he(l)){switch(o.value){case"single":if(Y(l)){j.value&&le(l);return}W(),ne(l);break;case"multiple":if(Y(l)){le(l);return}if(ye())return;ne(l),k.value&&_(),g.value&&oe(),X.value&&W();break;case"tags":if(Y(l)){le(l);return}if(ye())return;K(l[d.value])===void 0&&t.value&&(n.emit("tag",l[d.value]),p.value&&We(l),_()),k.value&&_(),ne(l),g.value&&oe(),X.value&&W();break}X.value&&te()}},He=l=>{if(!(he(l)||o.value==="single"||!fe.value)){switch(o.value){case"multiple":case"tags":xe(l[M.value])?le(l[M.value]):ne(l[M.value].filter(u=>S.value.map(y=>y[d.value]).indexOf(u[d.value])===-1).filter(u=>!u.disabled).filter((u,y)=>S.value.length+1+y<=L.value||L.value===-1));break}X.value&&te()}},xe=l=>l.find(u=>!Y(u)&&!u.disabled)===void 0,Fe=l=>l.find(u=>!Y(u))===void 0,K=l=>H.value[H.value.map(u=>String(u[d.value])).indexOf(String(l))],ze=(l,u=!0)=>H.value.map(y=>y[v.value]).indexOf(l),Ke=l=>["tags","multiple"].indexOf(o.value)!==-1&&g.value&&Y(l),We=l=>{r.value.push(l)},Ue=l=>pe.value?l.filter(u=>C.value?u.__VISIBLE__.length:u[M.value].length):l.filter(u=>C.value?u.__VISIBLE__.length:!0),Se=(l,u=!0)=>{let y=l;return C.value&&A.value&&(y=y.filter(U=>Ee(U[v.value],Q.value).indexOf(Ee(C.value,Q.value))!==-1)),g.value&&u&&(y=y.filter(U=>!Ke(U))),y},ke=l=>{let u=l;return il(u)&&(u=Object.keys(u).map(y=>{let U=u[y];return{[d.value]:y,[v.value]:U,[c.value]:U}})),u=u.map(y=>typeof y=="object"?y:{[d.value]:y,[v.value]:y,[c.value]:y}),u},ce=()=>{F(z.value)||(S.value=de(z.value))},we=l=>{R.value=!0,i.value(C.value).then(u=>{h.value=u,typeof l=="function"&&l(u),R.value=!1})},Je=()=>{if(!!be.value)if(o.value==="single"){let l=K(S.value[d.value])[c.value];S.value[c.value]=l,q.value&&(z.value[c.value]=l)}else S.value.forEach((l,u)=>{let y=K(S.value[u][d.value])[c.value];S.value[u][c.value]=y,q.value&&(z.value[u][c.value]=y)})},Qe=l=>{we(l)},de=l=>F(l)?o.value==="single"?{}:[]:q.value?l:o.value==="single"?K(l)||{}:l.filter(u=>!!K(u)).map(u=>K(u));if(o.value!=="single"&&!F(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return i&&typeof i.value=="function"?m.value?we(ce):q.value==!0&&ce():(h.value=i.value,ce()),D.value>-1&&re(C,l=>{l.length<s.value||(R.value=!0,Z.value&&(h.value=[]),setTimeout(()=>{l==C.value&&i.value(C.value).then(u=>{l==C.value&&(h.value=u,ge.value=ie.value.filter(y=>y.disabled!==!0)[0]||null,R.value=!1)})},D.value))},{flush:"sync"}),re(z,l=>{if(F(l)){S.value=de(l);return}switch(o.value){case"single":(q.value?l[d.value]!=S.value[d.value]:l!=S.value[d.value])&&(S.value=de(l));break;case"multiple":case"tags":cl(q.value?l.map(u=>u[d.value]):l,S.value.map(u=>u[d.value]))||(S.value=de(l));break}},{deep:!0}),typeof e.options!="function"&&re(i,(l,u)=>{h.value=e.options,Object.keys(S.value).length||ce(),Je()}),{fo:ie,filteredOptions:ie,hasSelected:be,multipleLabelText:Ve,eo:H,extendedOptions:H,fg:Oe,filteredGroups:Oe,noOptions:je,noResults:Re,resolving:R,busy:Ae,select:ne,deselect:le,remove:Pe,clear:Ie,isSelected:Y,isDisabled:he,isMax:ye,getOption:K,handleOptionClick:Ne,handleGroupClick:He,handleTagRemove:Me,refreshOptions:Qe,resolveOptions:we}}function vl(e,n,a){const{valueProp:i,showOptions:o,searchable:v,groupLabel:f,groups:g,mode:t,groupSelect:c}=x(e),p=a.fo,b=a.fg,q=a.handleOptionClick,V=a.handleGroupClick,D=a.search,m=a.pointer,s=a.setPointer,A=a.clearPointer,Z=a.multiselect,k=w(()=>p.value.filter(r=>!r.disabled)),d=w(()=>b.value.filter(r=>!r.disabled)),j=w(()=>t.value!=="single"&&c.value),L=w(()=>m.value&&m.value.group),Q=w(()=>W(m.value)),X=w(()=>{const r=L.value?m.value:W(m.value),h=d.value.map(H=>H[f.value]).indexOf(r[f.value]);let R=d.value[h-1];return R===void 0&&(R=ue.value),R}),$=w(()=>{let r=d.value.map(h=>h.label).indexOf(L.value?m.value[f.value]:W(m.value)[f.value])+1;return d.value.length<=r&&(r=0),d.value[r]}),ue=w(()=>[...d.value].slice(-1)[0]),M=w(()=>m.value.__VISIBLE__.filter(r=>!r.disabled)[0]),pe=w(()=>{const r=Q.value.__VISIBLE__.filter(h=>!h.disabled);return r[r.map(h=>h[i.value]).indexOf(m.value[i.value])-1]}),fe=w(()=>{const r=W(m.value).__VISIBLE__.filter(h=>!h.disabled);return r[r.map(h=>h[i.value]).indexOf(m.value[i.value])+1]}),S=w(()=>[...X.value.__VISIBLE__.filter(r=>!r.disabled)].slice(-1)[0]),z=w(()=>[...ue.value.__VISIBLE__.filter(r=>!r.disabled)].slice(-1)[0]),C=r=>{if(!!m.value)return r.group?m.value[f.value]==r[f.value]:m.value[i.value]==r[i.value]},_=()=>{s(k.value[0]||null)},ee=()=>{!m.value||m.value.disabled===!0||(L.value?V(m.value):q(m.value))},ge=()=>{if(m.value===null)s((g.value&&j.value?d.value[0]:k.value[0])||null);else if(g.value&&j.value){let r=L.value?M.value:fe.value;r===void 0&&(r=$.value),s(r||null)}else{let r=k.value.map(h=>h[i.value]).indexOf(m.value[i.value])+1;k.value.length<=r&&(r=0),s(k.value[r]||null)}Te(()=>{te()})},oe=()=>{if(m.value===null){let r=k.value[k.value.length-1];g.value&&j.value&&(r=z.value,r===void 0&&(r=ue.value)),s(r||null)}else if(g.value&&j.value){let r=L.value?S.value:pe.value;r===void 0&&(r=L.value?X.value:Q.value),s(r||null)}else{let r=k.value.map(h=>h[i.value]).indexOf(m.value[i.value])-1;r<0&&(r=k.value.length-1),s(k.value[r]||null)}Te(()=>{te()})},W=r=>d.value.find(h=>h.__VISIBLE__.map(R=>R[i.value]).indexOf(r[i.value])!==-1),te=()=>{let r=Z.value.querySelector("[data-pointed]");if(!r)return;let h=r.parentElement.parentElement;g.value&&(h=L.value?r.parentElement.parentElement.parentElement:r.parentElement.parentElement.parentElement.parentElement),r.offsetTop+r.offsetHeight>h.clientHeight+h.scrollTop&&(h.scrollTop=r.offsetTop+r.offsetHeight-h.clientHeight),r.offsetTop<h.scrollTop&&(h.scrollTop=r.offsetTop)};return re(D,r=>{v.value&&(r.length&&o.value?_():A())}),{pointer:m,canPointGroups:j,isPointed:C,setPointerFirst:_,selectPointer:ee,forwardPointer:ge,backwardPointer:oe}}function pl(e,n,a){const{disabled:i}=x(e),o=N(!1);return{isOpen:o,open:()=>{o.value||i.value||(o.value=!0,n.emit("open"))},close:()=>{!o.value||(o.value=!1,n.emit("close"))}}}function fl(e,n,a){const{searchable:i,disabled:o}=x(e),v=a.input,f=a.open,g=a.close,t=a.clearSearch,c=N(null),p=N(!1),b=w(()=>i.value||o.value?-1:0),q=()=>{i.value&&v.value.blur(),c.value.blur()},V=()=>{i.value&&!o.value&&v.value.focus()},D=()=>{o.value||(p.value=!0,f())},m=()=>{p.value=!1,setTimeout(()=>{p.value||(g(),t())},1)};return{multiselect:c,tabindex:b,isActive:p,blur:q,handleFocus:V,activate:D,deactivate:m,handleCaretClick:()=>{p.value?(m(),q()):D()}}}function gl(e,n,a){const{mode:i,addTagOn:o,createTag:v,openDirection:f,searchable:g,showOptions:t,valueProp:c,groups:p}=x(e),b=a.iv,q=a.update,V=a.search,D=a.setPointer,m=a.selectPointer,s=a.backwardPointer,A=a.forwardPointer,Z=a.blur,k=a.fo,d=()=>{i.value==="tags"&&!t.value&&v.value&&g.value&&!p.value&&D(k.value[k.value.map(L=>L[c.value]).indexOf(V.value)])};return{handleKeydown:L=>{switch(L.keyCode){case 8:if(i.value==="single"||g.value&&[null,""].indexOf(V.value)===-1||b.value.length===0)return;q([...b.value].slice(0,-1));break;case 13:if(L.preventDefault(),i.value==="tags"&&o.value.indexOf("enter")===-1&&v.value)return;d(),m();break;case 32:if(g.value&&i.value!=="tags"&&!v.value||i.value==="tags"&&(o.value.indexOf("space")===-1&&v.value||!v.value))return;L.preventDefault(),d(),m();break;case 9:case 186:case 188:if(i.value!=="tags")return;const Q={9:"tab",186:";",188:","};if(o.value.indexOf(Q[L.keyCode])===-1||!v.value)return;d(),m(),L.preventDefault();break;case 27:Z();break;case 38:if(L.preventDefault(),!t.value)return;f.value==="top"?A():s();break;case 40:if(L.preventDefault(),!t.value)return;f.value==="top"?s():A();break}},preparePointer:d}}function bl(e,n,a){const i=x(e),{disabled:o,openDirection:v,showOptions:f,invalid:g}=i,t=a.isOpen,c=a.isPointed,p=a.isSelected,b=a.isDisabled,q=a.isActive,V=a.canPointGroups,D=a.resolving,m=a.fo,s=G({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",containerInvalid:"is-invalid",containerInvalidActive:"is-invalid-active",singleLabel:"multiselect-single-label",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",spacer:"multiselect-spacer"},i.classes.value),A=w(()=>!!(t.value&&f.value&&(!D.value||D.value&&m.value.length)));return{classList:w(()=>({container:[s.container].concat(o.value?s.containerDisabled:[]).concat(A.value&&v.value==="top"?s.containerOpenTop:[]).concat(A.value&&v.value!=="top"?s.containerOpen:[]).concat(q.value?s.containerActive:[]).concat(g.value?s.containerInvalid:[]),spacer:s.spacer,singleLabel:s.singleLabel,multipleLabel:s.multipleLabel,search:s.search,tags:s.tags,tag:[s.tag].concat(o.value?s.tagDisabled:[]),tagRemove:s.tagRemove,tagRemoveIcon:s.tagRemoveIcon,tagsSearchWrapper:s.tagsSearchWrapper,tagsSearch:s.tagsSearch,tagsSearchCopy:s.tagsSearchCopy,placeholder:s.placeholder,caret:[s.caret].concat(t.value?s.caretOpen:[]),clear:s.clear,clearIcon:s.clearIcon,spinner:s.spinner,dropdown:[s.dropdown].concat(v.value==="top"?s.dropdownTop:[]).concat(!t.value||!f.value||!A.value?s.dropdownHidden:[]),options:[s.options].concat(v.value==="top"?s.optionsTop:[]),group:s.group,groupLabel:k=>{let d=[s.groupLabel];return c(k)?d.push(p(k)?s.groupLabelSelectedPointed:s.groupLabelPointed):p(k)&&V.value?d.push(b(k)?s.groupLabelSelectedDisabled:s.groupLabelSelected):b(k)&&d.push(s.groupLabelDisabled),V.value&&d.push(s.groupLabelPointable),d},groupOptions:s.groupOptions,option:(k,d)=>{let j=[s.option];return c(k)?j.push(p(k)?s.optionSelectedPointed:s.optionPointed):p(k)?j.push(b(k)?s.optionSelectedDisabled:s.optionSelected):(b(k)||d&&b(d))&&j.push(s.optionDisabled),j},noOptions:s.noOptions,noResults:s.noResults,fakeInput:s.fakeInput})),showDropdown:A}}const ml={name:"BaseMultiselect",props:{preserveSearch:{type:Boolean,default:!1},initialSearch:{type:String,default:null},contentLoading:{type:Boolean,default:!1},value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:"label"},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:!1},appendNewTag:{type:Boolean,required:!1,default:!0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:String,required:!1,default:"The list is empty"},noResultsText:{type:String,required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!1},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},addTagOn:{type:Array,required:!1,default:()=>["enter"]},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},invalid:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({container:"p-0 relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-gray-200 rounded-md bg-white text-sm leading-snug outline-none max-h-10",containerDisabled:"cursor-default bg-gray-200 bg-opacity-50 !text-gray-400",containerOpen:"",containerOpenTop:"",containerActive:"ring-1 ring-primary-400 border-primary-400",containerInvalid:"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400",containerInvalidActive:"ring-1 border-red-400 ring-red-400",singleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5",search:"w-full absolute inset-0 outline-none appearance-none box-border border-0 text-sm font-sans bg-white rounded-md pl-3.5",tags:"grow shrink flex flex-wrap mt-1 pl-2",tag:"bg-primary-500 text-white text-sm font-semibold py-0.5 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap",tagDisabled:"pr-2 !bg-gray-400 text-white",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove text-white bg-center bg-no-repeat opacity-30 inline-block w-3 h-3 group-hover:opacity-60",tagsSearchWrapper:"inline-block relative mx-1 mb-1 grow shrink h-full",tagsSearch:"absolute inset-0 border-0 focus:outline-none !shadow-none !focus:shadow-none appearance-none p-0 text-sm font-sans box-border w-full",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-gray-400 text-sm",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-5 py-px box-content z-5 relative mr-1 opacity-40 shrink-0 grow-0 transition-transform",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3.5 relative z-10 opacity-40 transition duration-300 shrink-0 grow-0 flex hover:opacity-80",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin shrink-0 grow-0",dropdown:"max-h-60 shadow-lg absolute -left-px -right-px -bottom-1 translate-y-full border border-gray-300 mt-1 overflow-y-auto z-50 bg-white flex flex-col rounded-md",dropdownTop:"-translate-y-full -top-2 bottom-auto flex-col-reverse rounded-md",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"flex-col-reverse",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-gray-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-gray-300 text-gray-700",groupLabelSelected:"bg-primary-600 text-white",groupLabelDisabled:"bg-gray-100 text-gray-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-600 text-white opacity-90",groupLabelSelectedDisabled:"text-primary-100 bg-primary-600 bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-sm leading-snug py-2 px-3",optionPointed:"text-gray-800 bg-gray-100",optionSelected:"text-white bg-primary-500",optionDisabled:"text-gray-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary-500 opacity-90",optionSelectedDisabled:"text-primary-100 bg-primary-500 bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-gray-600 bg-white",noResults:"py-2 px-3 text-gray-600 bg-white",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"}},emits:["open","close","select","deselect","input","search-change","tag","update:modelValue","change","clear"],setup(e,n){const a=sl(e,n),i=ol(e),o=pl(e,n),v=ul(e,n),f=rl(e,n,{iv:a.iv}),g=fl(e,n,{input:v.input,open:o.open,close:o.close,clearSearch:v.clearSearch}),t=dl(e,n,{ev:a.ev,iv:a.iv,search:v.search,clearSearch:v.clearSearch,update:f.update,pointer:i.pointer,clearPointer:i.clearPointer,blur:g.blur,deactivate:g.deactivate}),c=vl(e,n,{fo:t.fo,fg:t.fg,handleOptionClick:t.handleOptionClick,handleGroupClick:t.handleGroupClick,search:v.search,pointer:i.pointer,setPointer:i.setPointer,clearPointer:i.clearPointer,multiselect:g.multiselect}),p=gl(e,n,{iv:a.iv,update:f.update,search:v.search,setPointer:i.setPointer,selectPointer:c.selectPointer,backwardPointer:c.backwardPointer,forwardPointer:c.forwardPointer,blur:g.blur,fo:t.fo}),b=bl(e,n,{isOpen:o.isOpen,isPointed:c.isPointed,canPointGroups:c.canPointGroups,isSelected:t.isSelected,isDisabled:t.isDisabled,isActive:g.isActive,resolving:t.resolving,fo:t.fo});return G(G(G(G(G(G(G(G(G(G({},a),o),g),i),f),v),t),c),p),b)}},hl=["id","tabindex"],yl=["type","modelValue","value","autocomplete"],Sl=["onMousedown"],kl=["type","modelValue","value","autocomplete"],wl={class:"w-full overflow-y-auto"},Ol=["data-pointed","onMouseenter","onClick"],Ll=["data-pointed","onMouseenter","onClick"],Pl=["data-pointed","onMouseenter","onClick"],Il=["innerHTML"],Bl=["innerHTML"],ql=["value"],Cl=["name","value"],Tl=["name","value"];function Dl(e,n,a,i,o,v){const f=De("BaseContentPlaceholdersBox"),g=De("BaseContentPlaceholders");return a.contentLoading?(I(),el(g,{key:0},{default:ll(()=>[al(f,{rounded:!0,class:"w-full",style:{height:"40px"}})]),_:1})):(I(),B("div",{key:1,id:a.id,ref:"multiselect",tabindex:e.tabindex,class:O(e.classList.container),onFocusin:n[6]||(n[6]=(...t)=>e.activate&&e.activate(...t)),onFocusout:n[7]||(n[7]=(...t)=>e.deactivate&&e.deactivate(...t)),onKeydown:n[8]||(n[8]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onFocus:n[9]||(n[9]=(...t)=>e.handleFocus&&e.handleFocus(...t))},[a.mode!=="tags"&&a.searchable&&!a.disabled?(I(),B("input",{key:0,ref:"input",type:a.inputType,modelValue:e.search,value:e.search,class:O(e.classList.search),autocomplete:a.autocomplete,onInput:n[0]||(n[0]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onPaste:n[1]||(n[1]=ve((...t)=>e.handlePaste&&e.handlePaste(...t),["stop"]))},null,42,yl)):E("",!0),a.mode=="tags"?(I(),B("div",{key:1,class:O(e.classList.tags)},[(I(!0),B(ae,null,se(e.iv,(t,c,p)=>T(e.$slots,"tag",{option:t,handleTagRemove:e.handleTagRemove,disabled:a.disabled},()=>[(I(),B("span",{key:p,class:O(e.classList.tag)},[tl(J(t[a.label])+" ",1),a.disabled?E("",!0):(I(),B("span",{key:0,class:O(e.classList.tagRemove),onMousedown:ve(b=>e.handleTagRemove(t,b),["stop"])},[P("span",{class:O(e.classList.tagRemoveIcon)},null,2)],42,Sl))],2))])),256)),P("div",{class:O(e.classList.tagsSearchWrapper)},[P("span",{class:O(e.classList.tagsSearchCopy)},J(e.search),3),a.searchable&&!a.disabled?(I(),B("input",{key:0,ref:"input",type:a.inputType,modelValue:e.search,value:e.search,class:O(e.classList.tagsSearch),autocomplete:a.autocomplete,style:{"box-shadow":"none !important"},onInput:n[2]||(n[2]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onPaste:n[3]||(n[3]=ve((...t)=>e.handlePaste&&e.handlePaste(...t),["stop"]))},null,42,kl)):E("",!0)],2)],2)):E("",!0),a.mode=="single"&&e.hasSelected&&!e.search&&e.iv?T(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[P("div",{class:O(e.classList.singleLabel)},J(e.iv[a.label]),3)]):E("",!0),a.mode=="multiple"&&e.hasSelected&&!e.search?T(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[P("div",{class:O(e.classList.multipleLabel)},J(e.multipleLabelText),3)]):E("",!0),a.placeholder&&!e.hasSelected&&!e.search?T(e.$slots,"placeholder",{key:4},()=>[P("div",{class:O(e.classList.placeholder)},J(a.placeholder),3)]):E("",!0),e.busy?T(e.$slots,"spinner",{key:5},()=>[P("span",{class:O(e.classList.spinner)},null,2)]):E("",!0),e.hasSelected&&!a.disabled&&a.canClear&&!e.busy?T(e.$slots,"clear",{key:6,clear:e.clear},()=>[P("span",{class:O(e.classList.clear),onMousedown:n[4]||(n[4]=(...t)=>e.clear&&e.clear(...t))},[P("span",{class:O(e.classList.clearIcon)},null,2)],34)]):E("",!0),a.caret?T(e.$slots,"caret",{key:7},()=>[P("span",{class:O(e.classList.caret),onMousedown:n[5]||(n[5]=ve((...t)=>e.handleCaretClick&&e.handleCaretClick(...t),["prevent","stop"]))},null,34)]):E("",!0),P("div",{class:O(e.classList.dropdown),tabindex:"-1"},[P("div",wl,[T(e.$slots,"beforelist",{options:e.fo}),P("ul",{class:O(e.classList.options)},[a.groups?(I(!0),B(ae,{key:0},se(e.fg,(t,c,p)=>(I(),B("li",{key:p,class:O(e.classList.group)},[P("div",{class:O(e.classList.groupLabel(t)),"data-pointed":e.isPointed(t),onMouseenter:b=>e.setPointer(t),onClick:b=>e.handleGroupClick(t)},[T(e.$slots,"grouplabel",{group:t},()=>[P("span",null,J(t[a.groupLabel]),1)])],42,Ol),P("ul",{class:O(e.classList.groupOptions)},[(I(!0),B(ae,null,se(t.__VISIBLE__,(b,q,V)=>(I(),B("li",{key:V,class:O(e.classList.option(b,t)),"data-pointed":e.isPointed(b),onMouseenter:D=>e.setPointer(b),onClick:D=>e.handleOptionClick(b)},[T(e.$slots,"option",{option:b,search:e.search},()=>[P("span",null,J(b[a.label]),1)])],42,Ll))),128))],2)],2))),128)):(I(!0),B(ae,{key:1},se(e.fo,(t,c,p)=>(I(),B("li",{key:p,class:O(e.classList.option(t)),"data-pointed":e.isPointed(t),onMouseenter:b=>e.setPointer(t),onClick:b=>e.handleOptionClick(t)},[T(e.$slots,"option",{option:t,search:e.search},()=>[P("span",null,J(t[a.label]),1)])],42,Pl))),128))],2),e.noOptions?T(e.$slots,"nooptions",{key:0},()=>[P("div",{class:O(e.classList.noOptions),innerHTML:a.noOptionsText},null,10,Il)]):E("",!0),e.noResults?T(e.$slots,"noresults",{key:1},()=>[P("div",{class:O(e.classList.noResults),innerHTML:a.noResultsText},null,10,Bl)]):E("",!0),T(e.$slots,"afterlist",{options:e.fo})]),T(e.$slots,"action")],2),a.required?(I(),B("input",{key:8,class:O(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,ql)):E("",!0),a.nativeSupport?(I(),B(ae,{key:9},[a.mode=="single"?(I(),B("input",{key:0,type:"hidden",name:a.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,Cl)):(I(!0),B(ae,{key:1},se(e.plainValue,(t,c)=>(I(),B("input",{key:c,type:"hidden",name:`${a.name}[]`,value:t},null,8,Tl))),128))],64)):E("",!0),P("div",{class:O(e.classList.spacer)},null,2)],42,hl))}var Rl=nl(ml,[["render",Dl]]);export{Rl as default};
import{I as O,r as T,o as i,e as s,h as u,m as c,t as h,j as m,f as k,F as C,y as P,i as _,a0 as N,B as F,k as A,C as J,D as K,g as L,u as y,w as Q,A as U,l as X}from"./vendor.01d0adc5.js";import{_ as Z,S as $}from"./main.832b14c7.js";function V(a,t){if(!t||a===null||typeof a!="object")return a;const[e,n]=t.split(/\.(.+)/);return V(a[e],n)}function ee(a,t){return t.reduce((e,n)=>(e[n]=a[n],e),{})}class te{constructor(t,e){this.data=t,this.columns=e}getValue(t){return V(this.data,t)}getColumn(t){return this.columns.find(e=>e.key===t)}getSortableValue(t){const e=this.getColumn(t).dataType;let n=this.getValue(t);if(n==null)return"";if(n instanceof String&&(n=n.toLowerCase()),e.startsWith("date")){const b=e.replace("date:","");return O(n,b).format("YYYYMMDDHHmmss")}return e==="numeric"?n:n.toString()}}class ae{constructor(t){const e=ee(t,["key","label","thClass","tdClass","sortBy","sortable","hidden","dataType"]);for(const n in e)this[n]=t[n];e.dataType||(this.dataType="string"),e.sortable===void 0&&(this.sortable=!0)}getFilterFieldName(){return this.filterOn||this.key}isSortable(){return this.sortable}getSortPredicate(t,e){const n=this.getSortFieldName(),l=e.find(g=>g.key===n).dataType;return l.startsWith("date")||l==="numeric"?(g,d)=>{const p=g.getSortableValue(n),x=d.getSortableValue(n);return t==="desc"?x<p?-1:1:p<x?-1:1}:(g,d)=>{const p=g.getSortableValue(n),x=d.getSortableValue(n);return t==="desc"?x.localeCompare(p):p.localeCompare(x)}}getSortFieldName(){return this.sortBy||this.key}}const ne={props:{pagination:{type:Object,default:()=>({})}},computed:{pages(){return this.pagination.totalPages===void 0?[]:this.pageLinks()},hasFirst(){return this.pagination.currentPage>=4||this.pagination.totalPages<10},hasLast(){return this.pagination.currentPage<=this.pagination.totalPages-3||this.pagination.totalPages<10},hasFirstEllipsis(){return this.pagination.currentPage>=4&&this.pagination.totalPages>=10},hasLastEllipsis(){return this.pagination.currentPage<=this.pagination.totalPages-3&&this.pagination.totalPages>=10},shouldShowPagination(){return this.pagination.totalPages===void 0||this.pagination.count===0?!1:this.pagination.totalPages>1}},methods:{isActive(a){return(this.pagination.currentPage||1)===a},pageClicked(a){a==="..."||a===this.pagination.currentPage||a>this.pagination.totalPages||a<1||this.$emit("pageChange",a)},pageLinks(){const a=[];let t=2,e=this.pagination.totalPages-1;this.pagination.totalPages>=10&&(t=Math.max(1,this.pagination.currentPage-2),e=Math.min(this.pagination.currentPage+2,this.pagination.totalPages));for(let n=t;n<=e;n++)a.push(n);return a}}},re={key:0,class:"flex items-center justify-between px-4 py-3 bg-white border-t border-gray-200 sm:px-6"},ie={class:"flex justify-between flex-1 sm:hidden"},se={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},le={class:"text-sm text-gray-700"},oe=_(" Showing "+h(" ")+" "),de={key:0,class:"font-medium"},ge=_(" "+h(" ")+" to "+h(" ")+" "),ue={key:1,class:"font-medium"},ce={key:0},he={key:1},ye=_(" "+h(" ")+" of "+h(" ")+" "),fe={key:2,class:"font-medium"},me=_(" "+h(" ")+" results "),pe={class:"relative z-0 inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"},be=u("span",{class:"sr-only"},"Previous",-1),xe={key:1,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300"},ve=["onClick"],ke={key:2,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300"},Ce=u("span",{class:"sr-only"},"Next",-1);function Pe(a,t,e,n,b,l){const g=T("BaseIcon");return l.shouldShowPagination?(i(),s("div",re,[u("div",ie,[u("a",{href:"#",class:c([{"disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===1},"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"]),onClick:t[0]||(t[0]=d=>l.pageClicked(e.pagination.currentPage-1))}," Previous ",2),u("a",{href:"#",class:c([{"disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===e.pagination.totalPages},"relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"]),onClick:t[1]||(t[1]=d=>l.pageClicked(e.pagination.currentPage+1))}," Next ",2)]),u("div",se,[u("div",null,[u("p",le,[oe,e.pagination.limit&&e.pagination.currentPage?(i(),s("span",de,h(e.pagination.currentPage*e.pagination.limit-(e.pagination.limit-1)),1)):m("",!0),ge,e.pagination.limit&&e.pagination.currentPage?(i(),s("span",ue,[e.pagination.currentPage*e.pagination.limit<=e.pagination.totalCount?(i(),s("span",ce,h(e.pagination.currentPage*e.pagination.limit),1)):(i(),s("span",he,h(e.pagination.totalCount),1))])):m("",!0),ye,e.pagination.totalCount?(i(),s("span",fe,h(e.pagination.totalCount),1)):m("",!0),me])]),u("div",null,[u("nav",pe,[u("a",{href:"#",class:c([{"disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===1},"relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md hover:bg-gray-50"]),onClick:t[2]||(t[2]=d=>l.pageClicked(e.pagination.currentPage-1))},[be,k(g,{name:"ChevronLeftIcon"})],2),l.hasFirst?(i(),s("a",{key:0,href:"#","aria-current":"page",class:c([{"z-10 bg-primary-50 border-primary-500 text-primary-600":l.isActive(1),"bg-white border-gray-300 text-gray-500 hover:bg-gray-50":!l.isActive(1)},"relative inline-flex items-center px-4 py-2 text-sm font-medium border"]),onClick:t[3]||(t[3]=d=>l.pageClicked(1))}," 1 ",2)):m("",!0),l.hasFirstEllipsis?(i(),s("span",xe," ... ")):m("",!0),(i(!0),s(C,null,P(l.pages,d=>(i(),s("a",{key:d,href:"#",class:c([{"z-10 bg-primary-50 border-primary-500 text-primary-600":l.isActive(d),"bg-white border-gray-300 text-gray-500 hover:bg-gray-50":!l.isActive(d),disabled:d==="..."},"relative items-center hidden px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 hover:bg-gray-50 md:inline-flex"]),onClick:p=>l.pageClicked(d)},h(d),11,ve))),128)),l.hasLastEllipsis?(i(),s("span",ke," ... ")):m("",!0),l.hasLast?(i(),s("a",{key:3,href:"#","aria-current":"page",class:c([{"z-10 bg-primary-50 border-primary-500 text-primary-600":l.isActive(e.pagination.totalPages),"bg-white border-gray-300 text-gray-500 hover:bg-gray-50":!l.isActive(e.pagination.totalPages)},"relative inline-flex items-center px-4 py-2 text-sm font-medium border"]),onClick:t[4]||(t[4]=d=>l.pageClicked(e.pagination.totalPages))},h(e.pagination.totalPages),3)):m("",!0),u("a",{href:"#",class:c(["relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md hover:bg-gray-50",{"disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===e.pagination.totalPages}]),onClick:t[5]||(t[5]=d=>l.pageClicked(e.pagination.currentPage+1))},[Ce,k(g,{name:"ChevronRightIcon"})],2)])])])])):m("",!0)}var _e=Z(ne,[["render",Pe]]);const we={class:"flex flex-col"},Se={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8 pb-4 lg:pb-0"},Te={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Ne={class:"relative overflow-hidden bg-white border-b border-gray-200 shadow sm:rounded-lg"},Be=["onClick"],Fe={key:0,class:"asc-direction"},Ae={key:1,class:"desc-direction"},Le={key:0},Ve={key:1},Ie={key:0,class:"absolute top-0 left-0 z-10 flex items-center justify-center w-full h-full bg-white bg-opacity-60"},De={key:1,class:"text-center text-gray-500 pb-2 flex h-[160px] justify-center items-center flex-col"},Me={class:"block mt-1"},Re={props:{columns:{type:Array,required:!0},data:{type:[Array,Function],required:!0},sortBy:{type:String,default:""},sortOrder:{type:String,default:""},tableClass:{type:String,default:"min-w-full divide-y divide-gray-200"},theadClass:{type:String,default:"bg-gray-50"},tbodyClass:{type:String,default:""},noResultsMessage:{type:String,default:"No Results Found"},loading:{type:Boolean,default:!1},loadingType:{type:String,default:"placeholder",validator:function(a){return["placeholder","spinner"].indexOf(a)!==-1}},placeholderCount:{type:Number,default:3}},setup(a,{expose:t}){const e=a;let n=N([]),b=F(!1),l=N(e.columns.map(r=>new ae(r))),g=N({fieldName:"",order:""}),d=F("");const p=A(()=>Array.isArray(e.data)),x=A(()=>{if(!p.value||g.fieldName===""||l.length===0)return n.value;const r=I(g.fieldName);return r?[...n.value].sort(r.getSortPredicate(g.order,l)):n.value});function I(r){return l.find(o=>o.key===r)}function D(r){let o="whitespace-nowrap px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider";return r.defaultThClass&&(o=r.defaultThClass),r.sortable?o=`${o} cursor-pointer`:o=`${o} pointer-events-none`,r.thClass&&(o=`${o} ${r.thClass}`),o}function B(r){let o="px-6 py-4 text-sm text-gray-500 whitespace-nowrap";return r.defaultTdClass&&(o=r.defaultTdClass),r.tdClass&&(o=`${o} ${r.tdClass}`),o}function M(r){let o="w-full";return r.placeholderClass&&(o=`${o} ${r.placeholderClass}`),o}function z(){return d.value=null,e.data}async function E(){const r=d.value&&d.value.currentPage||1;b.value=!0;const o=await e.data({sort:g,page:r});return b.value=!1,d.value=o.pagination,o.data}function R(r){g.fieldName!==r.key?(g.fieldName=r.key,g.order="asc"):g.order=g.order==="asc"?"desc":"asc",p.value||w()}async function w(){const r=p.value?z():await E();n.value=r.map(o=>new te(o,l))}async function j(r){d.value.currentPage=r,await w()}async function Y(){await w()}function H(r,o){return U.exports.get(r,o)}return p.value&&J(()=>e.data,()=>{w()}),K(async()=>{await w()}),t({refresh:Y}),(r,o)=>{const q=T("base-content-placeholders-text"),W=T("base-content-placeholders"),G=T("BaseIcon");return i(),s("div",we,[u("div",Se,[u("div",Te,[u("div",Ne,[L(r.$slots,"header"),u("table",{class:c(a.tableClass)},[u("thead",{class:c(a.theadClass)},[u("tr",null,[(i(!0),s(C,null,P(y(l),f=>(i(),s("th",{key:f.key,class:c([D(f),{"text-bold text-black":y(g).fieldName===f.key}]),onClick:v=>R(f)},[_(h(f.label)+" ",1),y(g).fieldName===f.key&&y(g).order==="asc"?(i(),s("span",Fe," \u2191 ")):m("",!0),y(g).fieldName===f.key&&y(g).order==="desc"?(i(),s("span",Ae," \u2193 ")):m("",!0)],10,Be))),128))])],2),a.loadingType==="placeholder"&&(a.loading||y(b))?(i(),s("tbody",Le,[(i(!0),s(C,null,P(a.placeholderCount,f=>(i(),s("tr",{key:f,class:c(f%2==0?"bg-white":"bg-gray-50")},[(i(!0),s(C,null,P(a.columns,v=>(i(),s("td",{key:v.key,class:c(["",B(v)])},[k(W,{class:c(M(v)),rounded:!0},{default:Q(()=>[k(q,{class:"w-full h-6",lines:1})]),_:2},1032,["class"])],2))),128))],2))),128))])):(i(),s("tbody",Ve,[(i(!0),s(C,null,P(y(x),(f,v)=>(i(),s("tr",{key:v,class:c(v%2==0?"bg-white":"bg-gray-50")},[(i(!0),s(C,null,P(a.columns,S=>(i(),s("td",{key:S.key,class:c(["",B(S)])},[L(r.$slots,"cell-"+S.key,{row:f},()=>[_(h(H(f.data,S.key)),1)])],2))),128))],2))),128))]))],2),a.loadingType==="spinner"&&(a.loading||y(b))?(i(),s("div",Ie,[k($,{class:"w-10 h-10 text-primary-500"})])):!a.loading&&!y(b)&&y(x)&&y(x).length===0?(i(),s("div",De,[k(G,{name:"ExclamationCircleIcon",class:"w-6 h-6 text-gray-400"}),u("span",Me,h(a.noResultsMessage),1)])):m("",!0),y(d)?(i(),X(_e,{key:2,pagination:y(d),onPageChange:j},null,8,["pagination"])):m("",!0)])])])])}}};export{Re as default};
import{J as j,B as k,k as g,L as y,M as N,N as L,S as T,T as q,r as i,o as B,l as b,w as r,h as m,i as f,t as C,u as e,f as n,m as D,j as G,U}from"./vendor.01d0adc5.js";import{u as z}from"./category.c27e9638.js";import{c as E}from"./main.832b14c7.js";const A={class:"flex justify-between w-full"},J=["onSubmit"],X={class:"p-8 sm:p-6"},F={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},Q={setup(H){const t=z(),u=E(),{t:p}=j();let c=k(!1);const h=g(()=>({currentCategory:{name:{required:y.withMessage(p("validation.required"),N),minLength:y.withMessage(p("validation.name_min_length",{count:3}),L(3))},description:{maxLength:y.withMessage(p("validation.description_maxlength",{count:255}),T(255))}}})),o=q(h,g(()=>t)),w=g(()=>u.active&&u.componentName==="CategoryModal");async function I(){if(o.value.currentCategory.$touch(),o.value.currentCategory.$invalid)return!0;const s=t.isEdit?t.updateCategory:t.addCategory;c.value=!0,await s(t.currentCategory),c.value=!1,u.refreshData&&u.refreshData(),d()}function d(){u.closeModal(),setTimeout(()=>{t.$reset(),o.value.$reset()},300)}return(s,a)=>{const v=i("BaseIcon"),x=i("BaseInput"),_=i("BaseInputGroup"),M=i("BaseTextarea"),V=i("BaseInputGrid"),$=i("BaseButton"),S=i("BaseModal");return B(),b(S,{show:e(w),onClose:d},{header:r(()=>[m("div",A,[f(C(e(u).title)+" ",1),n(v,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:d})])]),default:r(()=>[m("form",{action:"",onSubmit:U(I,["prevent"])},[m("div",X,[n(V,{layout:"one-column"},{default:r(()=>[n(_,{label:s.$t("expenses.category"),error:e(o).currentCategory.name.$error&&e(o).currentCategory.name.$errors[0].$message,required:""},{default:r(()=>[n(x,{modelValue:e(t).currentCategory.name,"onUpdate:modelValue":a[0]||(a[0]=l=>e(t).currentCategory.name=l),invalid:e(o).currentCategory.name.$error,type:"text",onInput:a[1]||(a[1]=l=>e(o).currentCategory.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),n(_,{label:s.$t("expenses.description"),error:e(o).currentCategory.description.$error&&e(o).currentCategory.description.$errors[0].$message},{default:r(()=>[n(M,{modelValue:e(t).currentCategory.description,"onUpdate:modelValue":a[2]||(a[2]=l=>e(t).currentCategory.description=l),rows:"4",cols:"50",onInput:a[3]||(a[3]=l=>e(o).currentCategory.description.$touch())},null,8,["modelValue"])]),_:1},8,["label","error"])]),_:1})]),m("div",F,[n($,{type:"button",variant:"primary-outline",class:"mr-3 text-sm",onClick:d},{default:r(()=>[f(C(s.$t("general.cancel")),1)]),_:1}),n($,{loading:e(c),disabled:e(c),variant:"primary",type:"submit"},{left:r(l=>[e(c)?G("",!0):(B(),b(v,{key:0,name:"SaveIcon",class:D(l.class)},null,8,["class"]))]),default:r(()=>[f(" "+C(e(t).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,J)]),_:1},8,["show"])}}};export{Q as _};
var te=Object.defineProperty;var L=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var T=(f,s,d)=>s in f?te(f,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):f[s]=d,A=(f,s)=>{for(var d in s||(s={}))oe.call(s,d)&&T(f,d,s[d]);if(L)for(var d of L(s))se.call(s,d)&&T(f,d,s[d]);return f};import{aN as ne,J as R,B as h,a0 as J,k as F,L as I,M as k,P as le,T as E,r as i,o as S,l as q,w as r,h as u,t as v,u as e,f as o,i as j,m as O,j as z,U as P,ah as de,N as re,e as H,x as ie,F as ue}from"./vendor.01d0adc5.js";import{b as K,c as Q,d as W}from"./main.832b14c7.js";const me={class:"flex justify-between w-full"},ce={class:"px-6 pt-6"},pe={class:"font-medium text-lg text-left"},_e={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},fe=["onSubmit"],ye={class:"p-4 sm:p-6 space-y-4"},ge={class:"z-0 flex justify-end p-4 bg-gray-50 border-modal-bg"},ve={setup(f){const s=K(),d=Q(),M=W(),B=ne(),{t:D}=R();let m=h(!1);const a=J({id:s.selectedCompany.id,name:null}),b=F(()=>d.active&&d.componentName==="DeleteCompanyModal"),V={formData:{name:{required:I.withMessage(D("validation.required"),k),sameAsName:I.withMessage(D("validation.company_name_not_same"),le(s.selectedCompany.name))}}},p=E(V,{formData:a},{$scope:!1});async function U(){if(p.value.$touch(),p.value.$invalid)return!0;const g=s.companies[0];m.value=!0;try{const y=await s.deleteCompany(a);console.log(y.data.success),y.data.success&&(C(),await s.setSelectedCompany(g),B.push("/admin/dashboard"),await M.setIsAppLoaded(!1),await M.bootstrap()),m.value=!1}catch{m.value=!1}}function _(){a.id=null,a.name="",p.value.$reset()}function C(){d.closeModal(),setTimeout(()=>{_(),p.value.$reset()},300)}return(g,y)=>{const x=i("BaseInput"),l=i("BaseInputGroup"),t=i("BaseButton"),N=i("BaseIcon"),c=i("BaseModal");return S(),q(c,{show:e(b),onClose:C},{default:r(()=>[u("div",me,[u("div",ce,[u("h6",pe,v(e(d).title),1),u("p",_e,v(g.$t("settings.company_info.delete_company_modal_desc",{company:e(s).selectedCompany.name})),1)])]),u("form",{action:"",onSubmit:P(U,["prevent"])},[u("div",ye,[o(l,{label:g.$t("settings.company_info.delete_company_modal_label",{company:e(s).selectedCompany.name}),error:e(p).formData.name.$error&&e(p).formData.name.$errors[0].$message,required:""},{default:r(()=>[o(x,{modelValue:e(a).name,"onUpdate:modelValue":y[0]||(y[0]=$=>e(a).name=$),invalid:e(p).formData.name.$error,onInput:y[1]||(y[1]=$=>e(p).formData.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),u("div",ge,[o(t,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:C},{default:r(()=>[j(v(g.$t("general.cancel")),1)]),_:1}),o(t,{loading:e(m),disabled:e(m),variant:"danger",type:"submit"},{left:r($=>[e(m)?z("",!0):(S(),q(N,{key:0,name:"TrashIcon",class:O($.class)},null,8,["class"]))]),default:r(()=>[j(" "+v(g.$t("general.delete")),1)]),_:1},8,["loading","disabled"])])],40,fe)]),_:1},8,["show"])}}},be=["onSubmit"],$e={key:0,class:"py-5"},Be={class:"text-lg leading-6 font-medium text-gray-900"},Ve={class:"mt-2 max-w-xl text-sm text-gray-500"},Ce={class:"mt-5"},Se={setup(f){const s=K(),d=W(),M=Q(),{t:B}=R(),D=de("utils");let m=h(!1);const a=J({name:null,logo:null,address:{address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:"",phone:"",zip:""}});D.mergeSettings(a,A({},s.selectedCompany));let b=h([]),V=h(null),p=h(null);a.logo&&b.value.push({image:a.logo});const U=F(()=>({name:{required:I.withMessage(B("validation.required"),k),minLength:I.withMessage(B("validation.name_min_length"),re(3))},address:{country_id:{required:I.withMessage(B("validation.required"),k)}}})),_=E(U,F(()=>a));d.fetchCountries();function C(l,t,N,c){p.value=c.name,V.value=t}function g(){V.value=null}async function y(){if(_.value.$touch(),_.value.$invalid)return!0;if(m.value=!0,(await s.updateCompany(a)).data.data){if(V.value){let t=new FormData;t.append("company_logo",JSON.stringify({name:p.value,data:V.value})),await s.updateCompanyLogo(t)}m.value=!1}m.value=!1}function x(l){M.openModal({title:B("settings.company_info.are_you_absolutely_sure"),componentName:"DeleteCompanyModal",size:"sm"})}return(l,t)=>{const N=i("BaseFileUploader"),c=i("BaseInputGroup"),$=i("BaseInputGrid"),w=i("BaseInput"),X=i("BaseMultiselect"),G=i("BaseTextarea"),Y=i("BaseIcon"),Z=i("BaseButton"),ee=i("BaseDivider"),ae=i("BaseSettingCard");return S(),H(ue,null,[u("form",{onSubmit:P(y,["prevent"])},[o(ae,{title:l.$t("settings.company_info.company_info"),description:l.$t("settings.company_info.section_description")},{default:r(()=>[o($,{class:"mt-5"},{default:r(()=>[o(c,{label:l.$tc("settings.company_info.company_logo")},{default:r(()=>[o(N,{modelValue:e(b),"onUpdate:modelValue":t[0]||(t[0]=n=>ie(b)?b.value=n:b=n),base64:"",onChange:C,onRemove:g},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),o($,{class:"mt-5"},{default:r(()=>[o(c,{label:l.$tc("settings.company_info.company_name"),error:e(_).name.$error&&e(_).name.$errors[0].$message,required:""},{default:r(()=>[o(w,{modelValue:e(a).name,"onUpdate:modelValue":t[1]||(t[1]=n=>e(a).name=n),invalid:e(_).name.$error,onBlur:t[2]||(t[2]=n=>e(_).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(c,{label:l.$tc("settings.company_info.phone")},{default:r(()=>[o(w,{modelValue:e(a).address.phone,"onUpdate:modelValue":t[3]||(t[3]=n=>e(a).address.phone=n)},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:l.$tc("settings.company_info.country"),error:e(_).address.country_id.$error&&e(_).address.country_id.$errors[0].$message,required:""},{default:r(()=>[o(X,{modelValue:e(a).address.country_id,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).address.country_id=n),label:"name",invalid:e(_).address.country_id.$error,options:e(d).countries,"value-prop":"id","can-deselect":!0,"can-clear":!1,searchable:"","track-by":"name"},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),o(c,{label:l.$tc("settings.company_info.state")},{default:r(()=>[o(w,{modelValue:e(a).address.state,"onUpdate:modelValue":t[5]||(t[5]=n=>e(a).address.state=n),name:"state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:l.$tc("settings.company_info.city")},{default:r(()=>[o(w,{modelValue:e(a).address.city,"onUpdate:modelValue":t[6]||(t[6]=n=>e(a).address.city=n),type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:l.$tc("settings.company_info.zip")},{default:r(()=>[o(w,{modelValue:e(a).address.zip,"onUpdate:modelValue":t[7]||(t[7]=n=>e(a).address.zip=n)},null,8,["modelValue"])]),_:1},8,["label"]),u("div",null,[o(c,{label:l.$tc("settings.company_info.address")},{default:r(()=>[o(G,{modelValue:e(a).address.address_street_1,"onUpdate:modelValue":t[8]||(t[8]=n=>e(a).address.address_street_1=n),rows:"2"},null,8,["modelValue"])]),_:1},8,["label"]),o(G,{modelValue:e(a).address.address_street_2,"onUpdate:modelValue":t[9]||(t[9]=n=>e(a).address.address_street_2=n),rows:"2",row:2,class:"mt-2"},null,8,["modelValue"])])]),_:1}),o(Z,{loading:e(m),disabled:e(m),type:"submit",class:"mt-6"},{left:r(n=>[e(m)?z("",!0):(S(),q(Y,{key:0,class:O(n.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[j(" "+v(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"]),e(s).companies.length!==1?(S(),H("div",$e,[o(ee,{class:"my-4"}),u("h3",Be,v(l.$tc("settings.company_info.delete_company")),1),u("div",Ve,[u("p",null,v(l.$tc("settings.company_info.delete_company_description")),1)]),u("div",Ce,[u("button",{type:"button",class:"inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:text-sm",onClick:x},v(l.$tc("general.delete")),1)])])):z("",!0)]),_:1},8,["title","description"])],40,be),o(ve)],64)}}};export{Se as default};
var ae=Object.defineProperty;var G=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var N=(y,o,b)=>o in y?ae(y,o,{enumerable:!0,configurable:!0,writable:!0,value:b}):y[o]=b,T=(y,o)=>{for(var b in o||(o={}))ie.call(o,b)&&N(y,b,o[b]);if(G)for(var b of G(o))ue.call(o,b)&&N(y,b,o[b]);return y};import{J as de,aN as me,G as ce,B,k as M,L as g,M as R,N as F,O as A,Q as pe,P as ge,R as be,S as q,T as Ce,r as p,o as _,l as $,w as i,h as m,f as r,m as O,i as H,t as v,u as e,j as V,x as L,e as J,U as fe}from"./vendor.01d0adc5.js";import{l as _e,m as $e,d as ye,b as ve,n as Ve}from"./main.832b14c7.js";import{_ as we}from"./CreateCustomFields.940787b7.js";const he=["onSubmit"],Be={class:"flex items-center justify-end"},Me={class:"grid grid-cols-5 gap-4 mb-8"},Ie={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},xe={class:"grid grid-cols-5 gap-4 mb-8"},Ue={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},ke={class:"md:col-span-2"},Se={class:"text-sm text-gray-500"},qe={class:"grid grid-cols-5 gap-4 mb-8"},Le={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},ze={class:"space-y-6"},Pe={class:"flex items-center justify-start mb-6 md:justify-end md:mb-0"},Fe={class:"p-1"},je={key:0,class:"grid grid-cols-5 gap-4 mb-8"},De={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},Ee={class:"space-y-6"},Ge={class:"grid grid-cols-5 gap-2 mb-8"},Ne={key:0,class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},Te={class:"col-span-5 lg:col-span-4"},Je={setup(y){const o=_e(),b=$e(),z=ye(),Q=ve(),j="customFields",{t:c}=de(),K=me(),W=ce();let s=B(!1),C=B(!1),f=B(!1);B(!1);const I=B(!1),h=M(()=>W.name==="customers.edit");let X=M(()=>o.isFetchingInitialSettings);const D=M(()=>h.value?c("customers.edit_customer"):c("customers.new_customer")),Y=M(()=>({currentCustomer:{name:{required:g.withMessage(c("validation.required"),R),minLength:g.withMessage(c("validation.name_min_length",{count:3}),F(3))},prefix:{minLength:g.withMessage(c("validation.name_min_length",{count:3}),F(3))},currency_id:{required:g.withMessage(c("validation.required"),R)},email:{required:g.withMessage(c("validation.required"),A(o.currentCustomer.enable_portal==!0)),email:g.withMessage(c("validation.email_incorrect"),pe)},password:{required:g.withMessage(c("validation.required"),A(o.currentCustomer.enable_portal==!0&&!o.currentCustomer.password_added)),minLength:g.withMessage(c("validation.password_min_length",{count:8}),F(8))},confirm_password:{sameAsPassword:g.withMessage(c("validation.password_incorrect"),ge(o.currentCustomer.password))},website:{url:g.withMessage(c("validation.invalid_url"),be)},billing:{address_street_1:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))},address_street_2:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))}},shipping:{address_street_1:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))},address_street_2:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))}}}})),Z=M(()=>`${window.location.origin}/${Q.selectedCompany.slug}/customer/login`),a=Ce(Y,o,{$scope:j});o.resetCurrentCustomer(),o.fetchCustomerInitialSettings(h.value);async function ee(){if(a.value.$touch(),a.value.$invalid)return!0;I.value=!0;let l=T({},o.currentCustomer),t=null;try{t=await(h.value?o.updateCustomer:o.addCustomer)(l)}catch{I.value=!1;return}K.push(`/admin/customers/${t.data.data.id}/view`)}return(l,t)=>{const x=p("BaseBreadcrumbItem"),te=p("BaseBreadcrumb-item"),oe=p("BaseBreadcrumb"),w=p("BaseIcon"),E=p("BaseButton"),ne=p("BasePageHeader"),d=p("BaseInput"),u=p("BaseInputGroup"),P=p("BaseMultiselect"),U=p("BaseInputGrid"),k=p("BaseDivider"),re=p("BaseSwitch"),S=p("BaseTextarea"),se=p("BaseCard"),le=p("BasePage");return _(),$(le,null,{default:i(()=>[m("form",{onSubmit:fe(ee,["prevent"])},[r(ne,{title:e(D)},{actions:i(()=>[m("div",Be,[r(E,{type:"submit",loading:I.value,disabled:I.value},{left:i(n=>[r(w,{name:"SaveIcon",class:O(n.class)},null,8,["class"])]),default:i(()=>[H(" "+v(e(h)?l.$t("customers.update_customer"):l.$t("customers.save_customer")),1)]),_:1},8,["loading","disabled"])])]),default:i(()=>[r(oe,null,{default:i(()=>[r(x,{title:l.$t("general.home"),to:"dashboard"},null,8,["title"]),r(x,{title:l.$tc("customers.customer",2),to:"/admin/customers"},null,8,["title"]),r(te,{title:e(D),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(se,{class:"mt-5"},{default:i(()=>[m("div",Me,[m("h6",Ie,v(l.$t("customers.basic_info")),1),r(U,{class:"col-span-5 lg:col-span-4"},{default:i(()=>[r(u,{label:l.$t("customers.display_name"),required:"",error:e(a).currentCustomer.name.$error&&e(a).currentCustomer.name.$errors[0].$message,"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(o).currentCustomer.name=n),"content-loading":e(s),type:"text",name:"name",class:"",invalid:e(a).currentCustomer.name.$error,onInput:t[1]||(t[1]=n=>e(a).currentCustomer.name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),r(u,{label:l.$t("customers.primary_contact_name"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.contact_name,"onUpdate:modelValue":t[2]||(t[2]=n=>e(o).currentCustomer.contact_name=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{error:e(a).currentCustomer.email.$error&&e(a).currentCustomer.email.$errors[0].$message,"content-loading":e(s),label:l.$t("customers.email")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.email,"onUpdate:modelValue":t[3]||(t[3]=n=>e(o).currentCustomer.email=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"email",invalid:e(a).currentCustomer.email.$error,onInput:t[4]||(t[4]=n=>e(a).currentCustomer.email.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["error","content-loading","label"]),r(u,{label:l.$t("customers.phone"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.phone,"onUpdate:modelValue":t[5]||(t[5]=n=>e(o).currentCustomer.phone=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"phone"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.primary_currency"),"content-loading":e(s),error:e(a).currentCustomer.currency_id.$error&&e(a).currentCustomer.currency_id.$errors[0].$message,required:""},{default:i(()=>[r(P,{modelValue:e(o).currentCustomer.currency_id,"onUpdate:modelValue":t[6]||(t[6]=n=>e(o).currentCustomer.currency_id=n),"value-prop":"id",label:"name","track-by":"name","content-loading":e(s),options:e(z).currencies,searchable:"","can-deselect":!1,placeholder:l.$t("customers.select_currency"),invalid:e(a).currentCustomer.currency_id.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","content-loading","error"]),r(u,{error:e(a).currentCustomer.website.$error&&e(a).currentCustomer.website.$errors[0].$message,label:l.$t("customers.website"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.website,"onUpdate:modelValue":t[7]||(t[7]=n=>e(o).currentCustomer.website=n),"content-loading":e(s),type:"url",onInput:t[8]||(t[8]=n=>e(a).currentCustomer.website.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["error","label","content-loading"]),r(u,{label:l.$t("customers.prefix"),error:e(a).currentCustomer.prefix.$error&&e(a).currentCustomer.prefix.$errors[0].$message,"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.prefix,"onUpdate:modelValue":t[9]||(t[9]=n=>e(o).currentCustomer.prefix=n),"content-loading":e(s),type:"text",name:"name",class:"",invalid:e(a).currentCustomer.prefix.$error,onInput:t[10]||(t[10]=n=>e(a).currentCustomer.prefix.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"])]),_:1})]),r(k,{class:"mb-5 md:mb-8"}),m("div",xe,[m("h6",Ue,v(l.$t("customers.portal_access")),1),r(U,{class:"col-span-5 lg:col-span-4"},{default:i(()=>[m("div",ke,[m("p",Se,v(l.$t("customers.portal_access_text")),1),r(re,{modelValue:e(o).currentCustomer.enable_portal,"onUpdate:modelValue":t[11]||(t[11]=n=>e(o).currentCustomer.enable_portal=n),class:"mt-1 flex"},null,8,["modelValue"])]),e(o).currentCustomer.enable_portal?(_(),$(u,{key:0,"content-loading":e(s),label:l.$t("customers.portal_access_url"),class:"md:col-span-2","help-text":l.$t("customers.portal_access_url_help")},{default:i(()=>[r(Ve,{token:e(Z)},null,8,["token"])]),_:1},8,["content-loading","label","help-text"])):V("",!0),e(o).currentCustomer.enable_portal?(_(),$(u,{key:1,"content-loading":e(s),error:e(a).currentCustomer.password.$error&&e(a).currentCustomer.password.$errors[0].$message,label:l.$t("customers.password")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.password,"onUpdate:modelValue":t[14]||(t[14]=n=>e(o).currentCustomer.password=n),modelModifiers:{trim:!0},"content-loading":e(s),type:e(C)?"text":"password",name:"password",invalid:e(a).currentCustomer.password.$error,onInput:t[15]||(t[15]=n=>e(a).currentCustomer.password.$touch())},{right:i(()=>[e(C)?(_(),$(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[12]||(t[12]=n=>L(C)?C.value=!e(C):C=!e(C))})):(_(),$(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[13]||(t[13]=n=>L(C)?C.value=!e(C):C=!e(C))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["content-loading","error","label"])):V("",!0),e(o).currentCustomer.enable_portal?(_(),$(u,{key:2,error:e(a).currentCustomer.confirm_password.$error&&e(a).currentCustomer.confirm_password.$errors[0].$message,"content-loading":e(s),label:"Confirm Password"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.confirm_password,"onUpdate:modelValue":t[18]||(t[18]=n=>e(o).currentCustomer.confirm_password=n),modelModifiers:{trim:!0},"content-loading":e(s),type:e(f)?"text":"password",name:"confirm_password",invalid:e(a).currentCustomer.confirm_password.$error,onInput:t[19]||(t[19]=n=>e(a).currentCustomer.confirm_password.$touch())},{right:i(()=>[e(f)?(_(),$(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[16]||(t[16]=n=>L(f)?f.value=!e(f):f=!e(f))})):(_(),$(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[17]||(t[17]=n=>L(f)?f.value=!e(f):f=!e(f))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["error","content-loading"])):V("",!0)]),_:1})]),r(k,{class:"mb-5 md:mb-8"}),m("div",qe,[m("h6",Le,v(l.$t("customers.billing_address")),1),e(o).currentCustomer.billing?(_(),$(U,{key:0,class:"col-span-5 lg:col-span-4"},{default:i(()=>[r(u,{label:l.$t("customers.name"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.name,"onUpdate:modelValue":t[20]||(t[20]=n=>e(o).currentCustomer.billing.name=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",class:"w-full",name:"address_name"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.country"),"content-loading":e(s)},{default:i(()=>[r(P,{modelValue:e(o).currentCustomer.billing.country_id,"onUpdate:modelValue":t[21]||(t[21]=n=>e(o).currentCustomer.billing.country_id=n),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"","content-loading":e(s),options:e(z).countries,placeholder:l.$t("general.select_country"),class:"w-full"},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.state"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.state,"onUpdate:modelValue":t[22]||(t[22]=n=>e(o).currentCustomer.billing.state=n),"content-loading":e(s),name:"billing.state",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{"content-loading":e(s),label:l.$t("customers.city")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.city,"onUpdate:modelValue":t[23]||(t[23]=n=>e(o).currentCustomer.billing.city=n),"content-loading":e(s),name:"billing.city",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.address"),error:e(a).currentCustomer.billing.address_street_1.$error&&e(a).currentCustomer.billing.address_street_1.$errors[0].$message||e(a).currentCustomer.billing.address_street_2.$error&&e(a).currentCustomer.billing.address_street_2.$errors[0].$message,"content-loading":e(s)},{default:i(()=>[r(S,{modelValue:e(o).currentCustomer.billing.address_street_1,"onUpdate:modelValue":t[24]||(t[24]=n=>e(o).currentCustomer.billing.address_street_1=n),modelModifiers:{trim:!0},"content-loading":e(s),placeholder:l.$t("general.street_1"),type:"text",name:"billing_street1","container-class":"mt-3",onInput:t[25]||(t[25]=n=>e(a).currentCustomer.billing.address_street_1.$touch())},null,8,["modelValue","content-loading","placeholder"]),r(S,{modelValue:e(o).currentCustomer.billing.address_street_2,"onUpdate:modelValue":t[26]||(t[26]=n=>e(o).currentCustomer.billing.address_street_2=n),modelModifiers:{trim:!0},"content-loading":e(s),placeholder:l.$t("general.street_2"),type:"text",class:"mt-3",name:"billing_street2","container-class":"mt-3",onInput:t[27]||(t[27]=n=>e(a).currentCustomer.billing.address_street_2.$touch())},null,8,["modelValue","content-loading","placeholder"])]),_:1},8,["label","error","content-loading"]),m("div",ze,[r(u,{"content-loading":e(s),label:l.$t("customers.phone"),class:"text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.phone,"onUpdate:modelValue":t[28]||(t[28]=n=>e(o).currentCustomer.billing.phone=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"phone"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.zip_code"),"content-loading":e(s),class:"mt-2 text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.zip,"onUpdate:modelValue":t[29]||(t[29]=n=>e(o).currentCustomer.billing.zip=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"zip"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"])])]),_:1})):V("",!0)]),r(k,{class:"mb-5 md:mb-8"}),m("div",Pe,[m("div",Fe,[r(E,{type:"button","content-loading":e(s),size:"sm",variant:"primary-outline",onClick:t[30]||(t[30]=n=>e(o).copyAddress(!0))},{left:i(n=>[r(w,{name:"DocumentDuplicateIcon",class:O(n.class)},null,8,["class"])]),default:i(()=>[H(" "+v(l.$t("customers.copy_billing_address")),1)]),_:1},8,["content-loading"])])]),e(o).currentCustomer.shipping?(_(),J("div",je,[m("h6",De,v(l.$t("customers.shipping_address")),1),r(U,{class:"col-span-5 lg:col-span-4"},{default:i(()=>[r(u,{"content-loading":e(s),label:l.$t("customers.name")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.name,"onUpdate:modelValue":t[31]||(t[31]=n=>e(o).currentCustomer.shipping.name=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"address_name"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.country"),"content-loading":e(s)},{default:i(()=>[r(P,{modelValue:e(o).currentCustomer.shipping.country_id,"onUpdate:modelValue":t[32]||(t[32]=n=>e(o).currentCustomer.shipping.country_id=n),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"","content-loading":e(s),options:e(z).countries,placeholder:l.$t("general.select_country"),class:"w-full"},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.state"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.state,"onUpdate:modelValue":t[33]||(t[33]=n=>e(o).currentCustomer.shipping.state=n),"content-loading":e(s),name:"shipping.state",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{"content-loading":e(s),label:l.$t("customers.city")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.city,"onUpdate:modelValue":t[34]||(t[34]=n=>e(o).currentCustomer.shipping.city=n),"content-loading":e(s),name:"shipping.city",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.address"),"content-loading":e(s),error:e(a).currentCustomer.shipping.address_street_1.$error&&e(a).currentCustomer.shipping.address_street_1.$errors[0].$message||e(a).currentCustomer.shipping.address_street_2.$error&&e(a).currentCustomer.shipping.address_street_2.$errors[0].$message},{default:i(()=>[r(S,{modelValue:e(o).currentCustomer.shipping.address_street_1,"onUpdate:modelValue":t[35]||(t[35]=n=>e(o).currentCustomer.shipping.address_street_1=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",placeholder:l.$t("general.street_1"),name:"shipping_street1",onInput:t[36]||(t[36]=n=>e(a).currentCustomer.shipping.address_street_1.$touch())},null,8,["modelValue","content-loading","placeholder"]),r(S,{modelValue:e(o).currentCustomer.shipping.address_street_2,"onUpdate:modelValue":t[37]||(t[37]=n=>e(o).currentCustomer.shipping.address_street_2=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",placeholder:l.$t("general.street_2"),name:"shipping_street2",class:"mt-3","container-class":"mt-3",onInput:t[38]||(t[38]=n=>e(a).currentCustomer.shipping.address_street_2.$touch())},null,8,["modelValue","content-loading","placeholder"])]),_:1},8,["label","content-loading","error"]),m("div",Ee,[r(u,{"content-loading":e(s),label:l.$t("customers.phone"),class:"text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.phone,"onUpdate:modelValue":t[39]||(t[39]=n=>e(o).currentCustomer.shipping.phone=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"phone"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.zip_code"),"content-loading":e(s),class:"mt-2 text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.zip,"onUpdate:modelValue":t[40]||(t[40]=n=>e(o).currentCustomer.shipping.zip=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"zip"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"])])]),_:1})])):V("",!0),e(b).customFields.length>0?(_(),$(k,{key:1,class:"mb-5 md:mb-8"})):V("",!0),m("div",Ge,[e(b).customFields.length>0?(_(),J("h6",Ne,v(l.$t("settings.custom_fields.title")),1)):V("",!0),m("div",Te,[r(we,{type:"Customer",store:e(o),"store-prop":"currentCustomer","is-edit":e(h),"is-loading":e(X),"custom-field-scope":j},null,8,["store","is-edit","is-loading"])])])]),_:1})],40,he)]),_:1})}}};export{Je as default};
var W=Object.defineProperty,X=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var k=(m,a,o)=>a in m?W(m,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):m[a]=o,j=(m,a)=>{for(var o in a||(a={}))Z.call(a,o)&&k(m,o,a[o]);if(S)for(var o of S(a))x.call(a,o)&&k(m,o,a[o]);return m},N=(m,a)=>X(m,Y(a));import{J as ee,G as ae,aN as te,B as w,k as V,L as p,M as $,N as G,Q as oe,O as se,T as ne,r as d,o as b,l as h,w as u,f as s,u as e,h as y,e as re,y as le,F as ie,m as ue,j as de,i as me,t as ce,U as pe}from"./vendor.01d0adc5.js";import{b as ge}from"./main.832b14c7.js";import{V as fe}from"./index.esm.998a6eeb.js";import{u as ve}from"./users.936a04ee.js";const $e=["onSubmit"],De={class:"grid grid-cols-12"},Be={class:"space-y-6"},ye={setup(m){const a=ve(),{t:o}=ee(),q=ae(),L=te(),P=ge();let g=w(!1),l=w(!1);w([]);let I=w([]);const f=V(()=>q.name==="users.edit"),M=V(()=>f.value?o("users.edit_user"):o("users.new_user")),E=V(()=>({userData:{name:{required:p.withMessage(o("validation.required"),$),minLength:p.withMessage(o("validation.name_min_length",{count:3}),G(3))},email:{required:p.withMessage(o("validation.required"),$),email:p.withMessage(o("validation.email_incorrect"),oe)},password:{required:se(function(){return p.withMessage(o("validation.required"),$),!f.value}),minLength:p.withMessage(o("validation.password_min_length",{count:8}),G(8))},companies:{required:p.withMessage(o("validation.required"),$)}}})),F={role:{required:p.withMessage(o("validation.required"),$)}},n=ne(E,a,{$scope:!0});R(),a.resetUserData();async function R(){var i;l.value=!0;try{f.value&&await a.fetchUser(q.params.id);let t=await P.fetchUserCompanies();((i=t==null?void 0:t.data)==null?void 0:i.data)&&(I.value=t.data.data.map(c=>(c.role=null,c)))}catch{l.value=!1}l.value=!1}async function T(){if(n.value.$touch(),n.value.$invalid)return!0;try{g.value=!0;let i=N(j({},a.userData),{companies:a.userData.companies.map(c=>({role:c.role,id:c.id}))});await(f.value?a.updateUser:a.addUser)(i),L.push("/admin/users"),g.value=!1}catch{g.value=!1}}return(i,t)=>{const c=d("BaseBreadcrumbItem"),H=d("BaseBreadcrumb"),z=d("BasePageHeader"),D=d("BaseInput"),v=d("BaseInputGroup"),U=d("BaseMultiselect"),A=d("BaseInputGrid"),J=d("BaseIcon"),O=d("BaseButton"),Q=d("BaseCard"),K=d("BasePage");return b(),h(K,null,{default:u(()=>[s(z,{title:e(M)},{default:u(()=>[s(H,null,{default:u(()=>[s(c,{title:i.$t("general.home"),to:"dashboard"},null,8,["title"]),s(c,{title:i.$tc("users.user",2),to:"/admin/users"},null,8,["title"]),s(c,{title:e(M),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),y("form",{action:"",autocomplete:"off",onSubmit:pe(T,["prevent"])},[y("div",De,[s(Q,{class:"mt-6 col-span-12 md:col-span-8"},{default:u(()=>[s(A,{layout:"one-column"},{default:u(()=>[s(v,{"content-loading":e(l),label:i.$t("users.name"),error:e(n).userData.name.$error&&e(n).userData.name.$errors[0].$message,required:""},{default:u(()=>[s(D,{modelValue:e(a).userData.name,"onUpdate:modelValue":t[0]||(t[0]=r=>e(a).userData.name=r),modelModifiers:{trim:!0},"content-loading":e(l),invalid:e(n).userData.name.$error,onInput:t[1]||(t[1]=r=>e(n).userData.name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["content-loading","label","error"]),s(v,{"content-loading":e(l),label:i.$t("users.email"),error:e(n).userData.email.$error&&e(n).userData.email.$errors[0].$message,required:""},{default:u(()=>[s(D,{modelValue:e(a).userData.email,"onUpdate:modelValue":t[2]||(t[2]=r=>e(a).userData.email=r),modelModifiers:{trim:!0},type:"email","content-loading":e(l),invalid:e(n).userData.email.$error,onInput:t[3]||(t[3]=r=>e(n).userData.email.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["content-loading","label","error"]),s(v,{"content-loading":e(l),label:i.$t("users.companies"),error:e(n).userData.companies.$error&&e(n).userData.companies.$errors[0].$message,required:""},{default:u(()=>[s(U,{modelValue:e(a).userData.companies,"onUpdate:modelValue":t[4]||(t[4]=r=>e(a).userData.companies=r),mode:"tags",object:!0,autocomplete:"new-password",label:"name",options:e(I),"value-prop":"id",invalid:e(n).userData.companies.$error,"content-loading":e(l),searchable:"","can-deselect":!1,class:"w-full"},null,8,["modelValue","options","invalid","content-loading"])]),_:1},8,["content-loading","label","error"]),(b(!0),re(ie,null,le(e(a).userData.companies,(r,B)=>(b(),h(e(fe),{key:B,state:r,rules:F},{default:u(({v:_})=>[y("div",Be,[s(v,{"content-loading":e(l),label:i.$t("users.select_company_role",{company:r.name}),error:_.role.$error&&_.role.$errors[0].$message,required:""},{default:u(()=>[s(U,{modelValue:e(a).userData.companies[B].role,"onUpdate:modelValue":C=>e(a).userData.companies[B].role=C,"value-prop":"name","track-by":"id",autocomplete:"off","content-loading":e(l),label:"name",options:e(a).userData.companies[B].roles,"can-deselect":!1,invalid:_.role.$invalid,onChange:C=>_.role.$touch()},null,8,["modelValue","onUpdate:modelValue","content-loading","options","invalid","onChange"])]),_:2},1032,["content-loading","label","error"])])]),_:2},1032,["state"]))),128)),s(v,{"content-loading":e(l),label:i.$tc("users.password"),error:e(n).userData.password.$error&&e(n).userData.password.$errors[0].$message,required:!e(f)},{default:u(()=>[s(D,{modelValue:e(a).userData.password,"onUpdate:modelValue":t[5]||(t[5]=r=>e(a).userData.password=r),name:"new-password",autocomplete:"new-password","content-loading":e(l),type:"password",invalid:e(n).userData.password.$error,onInput:t[6]||(t[6]=r=>e(n).userData.password.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["content-loading","label","error","required"]),s(v,{"content-loading":e(l),label:i.$t("users.phone")},{default:u(()=>[s(D,{modelValue:e(a).userData.phone,"onUpdate:modelValue":t[7]||(t[7]=r=>e(a).userData.phone=r),modelModifiers:{trim:!0},"content-loading":e(l)},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"])]),_:1}),s(O,{"content-loading":e(l),type:"submit",loading:e(g),disabled:e(g),class:"mt-6"},{left:u(r=>[e(g)?de("",!0):(b(),h(J,{key:0,name:"SaveIcon",class:ue(r.class)},null,8,["class"]))]),default:u(()=>[me(" "+ce(e(f)?i.$t("users.update_user"):i.$t("users.save_user")),1)]),_:1},8,["content-loading","loading","disabled"])]),_:1})])],40,$e)]),_:1})}}};export{ye as default};
import{G as le,aN as ie,J as ue,B as U,k as _,L as p,M as y,b2 as ce,S as j,O as de,aP as pe,T as me,r as u,o as E,e as xe,f as r,w as o,h as V,u as e,l as w,m as S,i as b,t as $,j as M,x as ge,U as _e,F as ye}from"./vendor.01d0adc5.js";import{u as fe}from"./expense.e774182e.js";import{u as ve}from"./category.c27e9638.js";import{l as Ee,b as be,m as $e,c as he,d as Be}from"./main.832b14c7.js";import{_ as Ce}from"./CreateCustomFields.940787b7.js";import{_ as Ve}from"./CategoryModal.9d414df9.js";import{_ as we}from"./ExchangeRateConverter.357f31c9.js";import"./exchange-rate.45b62b37.js";const Se=["onSubmit"],Me={class:"hidden md:block"},Ie={class:"block md:hidden"},Ge={setup(qe){const D=Ee(),I=be(),n=fe(),P=ve(),N=$e(),R=he(),g=le(),G=ie(),{t:c}=ue(),q=Be();let m=U(!1),i=U(!1);const k="newExpense",T=_(()=>({currentExpense:{expense_category_id:{required:p.withMessage(c("validation.required"),y)},expense_date:{required:p.withMessage(c("validation.required"),y)},amount:{required:p.withMessage(c("validation.required"),y),minValue:p.withMessage(c("validation.price_minvalue"),ce(.1)),maxLength:p.withMessage(c("validation.price_maxlength"),j(20))},notes:{maxLength:p.withMessage(c("validation.description_maxlength"),j(65e3))},currency_id:{required:p.withMessage(c("validation.required"),y)},exchange_rate:{required:de(function(){return p.withMessage(c("validation.required"),y),n.showExchangeRate}),decimal:p.withMessage(c("validation.valid_exchange_rate"),pe)}}})),l=me(T,n,{$scope:k}),h=_({get:()=>n.currentExpense.amount/100,set:t=>{n.currentExpense.amount=Math.round(t*100)}}),d=_(()=>g.name==="expenses.edit"),F=_(()=>d.value?c("expenses.edit_expense"):c("expenses.new_expense")),L=_(()=>d.value?`/expenses/${g.params.id}/download-receipt`:"");n.resetCurrentExpenseData(),N.resetCustomFields(),Q();function z(t,a){n.currentExpense.attachment_receipt=a}function A(){n.currentExpense.attachment_receipt=null}function H(){R.openModal({title:c("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm"})}function J(t){n.currentExpense.selectedCurrency=q.currencies.find(a=>a.id===t)}async function O(t){return(await P.fetchCategories({search:t})).data.data}async function K(t){return(await D.fetchCustomers({search:t})).data.data}async function Q(){d.value||(n.currentExpense.currency_id=I.selectedCompanyCurrency.id,n.currentExpense.selectedCurrency=I.selectedCompanyCurrency),i.value=!0,await n.fetchPaymentModes({limit:"all"}),d.value?(await n.fetchExpense(g.params.id),n.currentExpense.currency_id=n.currentExpense.selectedCurrency.id):g.query.customer&&(n.currentExpense.customer_id=g.query.customer),i.value=!1}async function W(){if(l.value.$touch(),l.value.$invalid)return;m.value=!0;let t=n.currentExpense;try{d.value?await n.updateExpense({id:g.params.id,data:t}):await n.addExpense(t),m.value=!1,G.push("/admin/expenses")}catch(a){console.error(a),m.value=!1;return}}return(t,a)=>{const B=u("BaseBreadcrumbItem"),X=u("BaseBreadcrumb"),f=u("BaseIcon"),C=u("BaseButton"),Y=u("BasePageHeader"),Z=u("BaseSelectAction"),v=u("BaseMultiselect"),x=u("BaseInputGroup"),ee=u("BaseDatePicker"),ne=u("BaseMoney"),te=u("BaseTextarea"),ae=u("BaseFileUploader"),re=u("BaseInputGrid"),se=u("BaseCard"),oe=u("BasePage");return E(),xe(ye,null,[r(Ve),r(oe,{class:"relative"},{default:o(()=>[V("form",{action:"",onSubmit:_e(W,["prevent"])},[r(Y,{title:e(F),class:"mb-5"},{actions:o(()=>[e(d)&&e(n).currentExpense.attachment_receipt?(E(),w(C,{key:0,href:e(L),tag:"a",variant:"primary-outline",type:"button",class:"mr-2"},{left:o(s=>[r(f,{name:"DownloadIcon",class:S(s.class)},null,8,["class"])]),default:o(()=>[b(" "+$(t.$t("expenses.download_receipt")),1)]),_:1},8,["href"])):M("",!0),V("div",Me,[r(C,{loading:e(m),"content-loading":e(i),disabled:e(m),variant:"primary",type:"submit"},{left:o(s=>[e(m)?M("",!0):(E(),w(f,{key:0,name:"SaveIcon",class:S(s.class)},null,8,["class"]))]),default:o(()=>[b(" "+$(e(d)?t.$t("expenses.update_expense"):t.$t("expenses.save_expense")),1)]),_:1},8,["loading","content-loading","disabled"])])]),default:o(()=>[r(X,null,{default:o(()=>[r(B,{title:t.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(B,{title:t.$tc("expenses.expense",2),to:"/admin/expenses"},null,8,["title"]),r(B,{title:e(F),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(se,null,{default:o(()=>[r(re,null,{default:o(()=>[r(x,{label:t.$t("expenses.category"),error:e(l).currentExpense.expense_category_id.$error&&e(l).currentExpense.expense_category_id.$errors[0].$message,"content-loading":e(i),required:""},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.expense_category_id,"onUpdate:modelValue":a[0]||(a[0]=s=>e(n).currentExpense.expense_category_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:O,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",invalid:e(l).currentExpense.expense_category_id.$error,placeholder:t.$t("expenses.categories.select_a_category"),onInput:a[1]||(a[1]=s=>e(l).currentExpense.expense_category_id.$touch())},{action:o(()=>[r(Z,{onClick:H},{default:o(()=>[r(f,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),b(" "+$(t.$t("settings.expense_category.add_new_category")),1)]),_:1})]),_:1},8,["modelValue","content-loading","invalid","placeholder"])]),_:1},8,["label","error","content-loading"]),r(x,{label:t.$t("expenses.expense_date"),error:e(l).currentExpense.expense_date.$error&&e(l).currentExpense.expense_date.$errors[0].$message,"content-loading":e(i),required:""},{default:o(()=>[r(ee,{modelValue:e(n).currentExpense.expense_date,"onUpdate:modelValue":a[2]||(a[2]=s=>e(n).currentExpense.expense_date=s),"content-loading":e(i),"calendar-button":!0,invalid:e(l).currentExpense.expense_date.$error,onInput:a[3]||(a[3]=s=>e(l).currentExpense.expense_date.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),r(x,{label:t.$t("expenses.amount"),error:e(l).currentExpense.amount.$error&&e(l).currentExpense.amount.$errors[0].$message,"content-loading":e(i),required:""},{default:o(()=>[r(ne,{key:e(n).currentExpense.selectedCurrency,modelValue:e(h),"onUpdate:modelValue":a[4]||(a[4]=s=>ge(h)?h.value=s:null),class:"focus:border focus:border-solid focus:border-primary-500",invalid:e(l).currentExpense.amount.$error,currency:e(n).currentExpense.selectedCurrency,onInput:a[5]||(a[5]=s=>e(l).currentExpense.amount.$touch())},null,8,["modelValue","invalid","currency"])]),_:1},8,["label","error","content-loading"]),r(x,{label:t.$t("expenses.currency"),"content-loading":e(i),error:e(l).currentExpense.currency_id.$error&&e(l).currentExpense.currency_id.$errors[0].$message,required:""},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.currency_id,"onUpdate:modelValue":[a[6]||(a[6]=s=>e(n).currentExpense.currency_id=s),J],"value-prop":"id",label:"name","track-by":"name","content-loading":e(i),options:e(q).currencies,searchable:"","can-deselect":!1,placeholder:t.$t("customers.select_currency"),invalid:e(l).currentExpense.currency_id.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","content-loading","error"]),r(we,{store:e(n),"store-prop":"currentExpense",v:e(l).currentExpense,"is-loading":e(i),"is-edit":e(d),"customer-currency":e(n).currentExpense.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"]),r(x,{"content-loading":e(i),label:t.$t("expenses.customer")},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.customer_id,"onUpdate:modelValue":a[7]||(a[7]=s=>e(n).currentExpense.customer_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:K,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",placeholder:t.$t("customers.select_a_customer")},null,8,["modelValue","content-loading","placeholder"])]),_:1},8,["content-loading","label"]),r(x,{"content-loading":e(i),label:t.$t("payments.payment_mode")},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.payment_method_id,"onUpdate:modelValue":a[8]||(a[8]=s=>e(n).currentExpense.payment_method_id=s),"content-loading":e(i),label:"name","value-prop":"id","track-by":"name",options:e(n).paymentModes,placeholder:t.$t("payments.select_payment_mode"),searchable:""},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),r(x,{"content-loading":e(i),label:t.$t("expenses.note"),error:e(l).currentExpense.notes.$error&&e(l).currentExpense.notes.$errors[0].$message},{default:o(()=>[r(te,{modelValue:e(n).currentExpense.notes,"onUpdate:modelValue":a[9]||(a[9]=s=>e(n).currentExpense.notes=s),"content-loading":e(i),row:4,rows:"4",onInput:a[10]||(a[10]=s=>e(l).currentExpense.notes.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label","error"]),r(x,{label:t.$t("expenses.receipt")},{default:o(()=>[r(ae,{modelValue:e(n).currentExpense.receiptFiles,"onUpdate:modelValue":a[11]||(a[11]=s=>e(n).currentExpense.receiptFiles=s),accept:"image/*,.doc,.docx,.pdf,.csv,.xlsx,.xls",onChange:z,onRemove:A},null,8,["modelValue"])]),_:1},8,["label"]),r(Ce,{"is-edit":e(d),class:"col-span-2","is-loading":e(i),type:"Expense",store:e(n),"store-prop":"currentExpense","custom-field-scope":k},null,8,["is-edit","is-loading","store"]),V("div",Ie,[r(C,{loading:e(m),tabindex:6,variant:"primary",type:"submit",class:"flex justify-center w-full"},{left:o(s=>[e(m)?M("",!0):(E(),w(f,{key:0,name:"SaveIcon",class:S(s.class)},null,8,["class"]))]),default:o(()=>[b(" "+$(e(d)?t.$t("expenses.update_expense"):t.$t("expenses.save_expense")),1)]),_:1},8,["loading"])])]),_:1})]),_:1})],40,Se)]),_:1})],64)}}};export{Ge as default};
var ce=Object.defineProperty;var E=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var F=(_,s,c)=>s in _?ce(_,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):_[s]=c,G=(_,s)=>{for(var c in s||(s={}))de.call(s,c)&&F(_,c,s[c]);if(E)for(var c of E(s))ye.call(s,c)&&F(_,c,s[c]);return _};import{G as pe,aN as _e,ah as ve,J as fe,B as M,a0 as Pe,k as C,L as I,M as w,aX as ge,O as be,aP as Be,T as $e,a7 as he,b1 as Ie,r as m,o as N,e as Se,f as o,w as l,h as S,u as e,l as R,m as L,j as T,i as q,t as g,x as Ce,U as Ve,F as Me}from"./vendor.01d0adc5.js";import{_ as we}from"./ExchangeRateConverter.357f31c9.js";import{u as qe,l as Ne,m as je,b as ke,c as Ue,i as xe,d as De}from"./main.832b14c7.js";import{u as Ae}from"./payment.372edbf1.js";import{_ as Ee}from"./SelectNotePopup.b35e7850.js";import{_ as Fe}from"./CreateCustomFields.940787b7.js";import{_ as Ge}from"./PaymentModeModal.c3a19345.js";import"./exchange-rate.45b62b37.js";import"./NoteModal.a07ce50b.js";const Re=["onSubmit"],Le={class:"absolute left-3.5"},Te={class:"relative w-full"},ze={class:"relative mt-6"},He={class:"z-20 float-right text-sm font-semibold leading-5 text-primary-400"},Je={class:"mb-4 text-sm font-medium text-gray-800"},nt={setup(_){const s=pe(),c=_e(),t=Ae();qe();const z=Ne();je(),ke();const H=Ue(),j=xe();De();const k=ve("utils"),{t:p}=fe();let b=M(!1),V=M(!1),v=M([]);const f=M(null),U="newEstimate",J=Pe(["customer","company","customerCustom","payment","paymentCustom"]),$=C({get:()=>t.currentPayment.amount/100,set:a=>{t.currentPayment.amount=Math.round(a*100)}}),u=C(()=>t.isFetchingInitialData),d=C(()=>s.name==="payments.edit"),x=C(()=>d.value?p("payments.edit_payment"):p("payments.new_payment")),O=C(()=>({currentPayment:{customer_id:{required:I.withMessage(p("validation.required"),w)},payment_date:{required:I.withMessage(p("validation.required"),w)},amount:{required:I.withMessage(p("validation.required"),w),between:I.withMessage(p("validation.payment_greater_than_due_amount"),ge(0,t.currentPayment.maxPayableAmount))},exchange_rate:{required:be(function(){return I.withMessage(p("validation.required"),w),t.showExchangeRate}),decimal:I.withMessage(p("validation.valid_exchange_rate"),Be)}}})),i=$e(O,t,{$scope:U});he(()=>{t.currentPayment.customer_id&&Y(t.currentPayment.customer_id),s.query.customer&&(t.currentPayment.customer_id=s.query.customer)}),t.resetCurrentPayment(),s.query.customer&&(t.currentPayment.customer_id=s.query.customer),t.fetchPaymentInitialData(d.value),s.params.id&&!d.value&&Q();async function X(){H.openModal({title:p("settings.payment_modes.add_payment_mode"),componentName:"PaymentModeModal"})}function K(a){t.currentPayment.notes=""+a.notes}async function Q(){var n;let a=await j.fetchInvoice((n=s==null?void 0:s.params)==null?void 0:n.id);t.currentPayment.customer_id=a.data.data.customer.id,t.currentPayment.invoice_id=a.data.data.id}async function W(a){a&&(f.value=v.value.find(n=>n.id===a),$.value=f.value.due_amount/100,t.currentPayment.maxPayableAmount=f.value.due_amount)}function Y(a){if(a){let n={customer_id:a,status:"DUE",limit:"all"};d.value&&(n.status=""),V.value=!0,Promise.all([j.fetchInvoices(n),z.fetchCustomer(a)]).then(async([y,B])=>{y&&(v.value=[...y.data.data]),B&&B.data&&(t.currentPayment.selectedCustomer=B.data.data,t.currentPayment.customer=B.data.data,t.currentPayment.currency=B.data.data.currency),t.currentPayment.invoice_id&&(f.value=v.value.find(P=>P.id===t.currentPayment.invoice_id),t.currentPayment.maxPayableAmount=f.value.due_amount+t.currentPayment.amount,$.value===0&&($.value=f.value.due_amount/100)),d.value&&(v.value=v.value.filter(P=>P.due_amount>0||P.id==t.currentPayment.invoice_id)),V.value=!1}).catch(y=>{V.value=!1,console.error(y,"error")})}}Ie(()=>{t.resetCurrentPayment(),v.value=[]});async function Z(){if(i.value.$touch(),i.value.$invalid)return!1;b.value=!0;let a=G({},t.currentPayment),n=null;try{n=await(d.value?t.updatePayment:t.addPayment)(a),c.push(`/admin/payments/${n.data.data.id}/view`)}catch{b.value=!1}}function ee(a){let n={userId:a};s.params.id&&(n.model_id=s.params.id),t.currentPayment.invoice_id=f.value=null,t.currentPayment.amount=0,v.value=[],t.getNextNumber(n,!0)}return(a,n)=>{const y=m("BaseBreadcrumbItem"),B=m("BaseBreadcrumb"),P=m("BaseIcon"),D=m("BaseButton"),te=m("BasePageHeader"),ae=m("BaseDatePicker"),h=m("BaseInputGroup"),ne=m("BaseInput"),oe=m("BaseCustomerSelectInput"),A=m("BaseMultiselect"),re=m("BaseMoney"),se=m("BaseSelectAction"),le=m("BaseInputGrid"),ue=m("BaseCustomInput"),me=m("BaseCard"),ie=m("BasePage");return N(),Se(Me,null,[o(Ge),o(ie,{class:"relative payment-create"},{default:l(()=>[S("form",{action:"",onSubmit:Ve(Z,["prevent"])},[o(te,{title:e(x),class:"mb-5"},{actions:l(()=>[o(D,{loading:e(b),disabled:e(b),variant:"primary",type:"submit",class:"hidden sm:flex"},{left:l(r=>[e(b)?T("",!0):(N(),R(P,{key:0,name:"SaveIcon",class:L(r.class)},null,8,["class"]))]),default:l(()=>[q(" "+g(e(d)?a.$t("payments.update_payment"):a.$t("payments.save_payment")),1)]),_:1},8,["loading","disabled"])]),default:l(()=>[o(B,null,{default:l(()=>[o(y,{title:a.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),o(y,{title:a.$tc("payments.payment",2),to:"/admin/payments"},null,8,["title"]),o(y,{title:e(x),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),o(me,null,{default:l(()=>[o(le,null,{default:l(()=>[o(h,{label:a.$t("payments.date"),"content-loading":e(u),required:"",error:e(i).currentPayment.payment_date.$error&&e(i).currentPayment.payment_date.$errors[0].$message},{default:l(()=>[o(ae,{modelValue:e(t).currentPayment.payment_date,"onUpdate:modelValue":[n[0]||(n[0]=r=>e(t).currentPayment.payment_date=r),n[1]||(n[1]=r=>e(i).currentPayment.payment_date.$touch())],"content-loading":e(u),"calendar-button":!0,"calendar-button-icon":"calendar",invalid:e(i).currentPayment.payment_date.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),o(h,{label:a.$t("payments.payment_number"),"content-loading":e(u),required:""},{default:l(()=>[o(ne,{modelValue:e(t).currentPayment.payment_number,"onUpdate:modelValue":n[2]||(n[2]=r=>e(t).currentPayment.payment_number=r),"content-loading":e(u)},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),o(h,{label:a.$t("payments.customer"),error:e(i).currentPayment.customer_id.$error&&e(i).currentPayment.customer_id.$errors[0].$message,"content-loading":e(u),required:""},{default:l(()=>[o(oe,{modelValue:e(t).currentPayment.customer_id,"onUpdate:modelValue":[n[3]||(n[3]=r=>e(t).currentPayment.customer_id=r),n[4]||(n[4]=r=>ee(e(t).currentPayment.customer_id))],"content-loading":e(u),invalid:e(i).currentPayment.customer_id.$error,placeholder:a.$t("customers.select_a_customer"),"fetch-all":e(d),"show-action":""},null,8,["modelValue","content-loading","invalid","placeholder","fetch-all"])]),_:1},8,["label","error","content-loading"]),o(h,{"content-loading":e(u),label:a.$t("payments.invoice"),"help-text":f.value?`Due Amount: ${e(t).currentPayment.maxPayableAmount/100}`:""},{default:l(()=>[o(A,{modelValue:e(t).currentPayment.invoice_id,"onUpdate:modelValue":n[5]||(n[5]=r=>e(t).currentPayment.invoice_id=r),"content-loading":e(u),"value-prop":"id","track-by":"invoice_number",label:"invoice_number",options:e(v),loading:e(V),placeholder:a.$t("invoices.select_invoice"),onSelect:W},{singlelabel:l(({value:r})=>[S("div",Le,g(r.invoice_number)+" ("+g(e(k).formatMoney(r.total,r.customer.currency))+") ",1)]),option:l(({option:r})=>[q(g(r.invoice_number)+" ("+g(e(k).formatMoney(r.total,r.customer.currency))+") ",1)]),_:1},8,["modelValue","content-loading","options","loading","placeholder"])]),_:1},8,["content-loading","label","help-text"]),o(h,{label:a.$t("payments.amount"),"content-loading":e(u),error:e(i).currentPayment.amount.$error&&e(i).currentPayment.amount.$errors[0].$message,required:""},{default:l(()=>[S("div",Te,[o(re,{key:e(t).currentPayment.currency,modelValue:e($),"onUpdate:modelValue":[n[6]||(n[6]=r=>Ce($)?$.value=r:null),n[7]||(n[7]=r=>e(i).currentPayment.amount.$touch())],currency:e(t).currentPayment.currency,"content-loading":e(u),invalid:e(i).currentPayment.amount.$error},null,8,["modelValue","currency","content-loading","invalid"])])]),_:1},8,["label","content-loading","error"]),o(h,{"content-loading":e(u),label:a.$t("payments.payment_mode")},{default:l(()=>[o(A,{modelValue:e(t).currentPayment.payment_method_id,"onUpdate:modelValue":n[8]||(n[8]=r=>e(t).currentPayment.payment_method_id=r),"content-loading":e(u),label:"name","value-prop":"id","track-by":"name",options:e(t).paymentModes,placeholder:a.$t("payments.select_payment_mode"),searchable:""},{action:l(()=>[o(se,{onClick:X},{default:l(()=>[o(P,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),q(" "+g(a.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),_:1},8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),o(we,{store:e(t),"store-prop":"currentPayment",v:e(i).currentPayment,"is-loading":e(u),"is-edit":e(d),"customer-currency":e(t).currentPayment.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])]),_:1}),o(Fe,{type:"Payment","is-edit":e(d),"is-loading":e(u),store:e(t),"store-prop":"currentPayment","custom-field-scope":U,class:"mt-6"},null,8,["is-edit","is-loading","store"]),S("div",ze,[S("div",He,[o(Ee,{type:"Payment",onSelect:K})]),S("label",Je,g(a.$t("estimates.notes")),1),o(ue,{modelValue:e(t).currentPayment.notes,"onUpdate:modelValue":n[9]||(n[9]=r=>e(t).currentPayment.notes=r),"content-loading":e(u),fields:e(J),class:"mt-1"},null,8,["modelValue","content-loading","fields"])]),o(D,{loading:e(b),"content-loading":e(u),variant:"primary",type:"submit",class:"flex justify-center w-full mt-4 sm:hidden md:hidden"},{left:l(r=>[e(b)?T("",!0):(N(),R(P,{key:0,name:"SaveIcon",class:L(r.class)},null,8,["class"]))]),default:l(()=>[q(" "+g(e(d)?a.$t("payments.update_payment"):a.$t("payments.save_payment")),1)]),_:1},8,["loading","content-loading"])]),_:1})],40,Re)]),_:1})],64)}}};export{nt as default};
var oe=Object.defineProperty,se=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var P=(u,e,r)=>e in u?oe(u,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[e]=r,b=(u,e)=>{for(var r in e||(e={}))re.call(e,r)&&P(u,r,e[r]);if(N)for(var r of N(e))ie.call(e,r)&&P(u,r,e[r]);return u},h=(u,e)=>se(u,le(e));import{J as me,G as ue,aN as ce,B as T,k as p,L as x,M as de,N as pe,S as _e,T as ge,r as s,o as M,l as w,w as l,f as o,u as t,h as j,x as q,i as E,t as G,j as L,m as Ie,U as fe}from"./vendor.01d0adc5.js";import{p as ve,q as Be,c as be,b as $e,e as ye,g as Ve}from"./main.832b14c7.js";import{_ as Se}from"./ItemUnitModal.076e3ed4.js";const he=["onSubmit"],Ue={setup(u){const e=ve(),r=Be(),$=be(),z=$e(),{t:_}=me(),y=ue(),A=ce(),D=ye(),I=T(!1),V=T(z.selectedCompanySettings.tax_per_item);let i=T(!1);e.$reset(),J();const v=p({get:()=>e.currentItem.price/100,set:n=>{e.currentItem.price=Math.round(n*100)}}),S=p({get:()=>{var n,a;return(a=(n=e==null?void 0:e.currentItem)==null?void 0:n.taxes)==null?void 0:a.map(d=>{if(d)return h(b({},d),{tax_type_id:d.id,tax_name:d.name+" ("+d.percent+"%)"})})},set:n=>{e.currentItem.taxes=n}}),B=p(()=>y.name==="items.edit"),U=p(()=>B.value?_("items.edit_item"):_("items.new_item")),R=p(()=>r.taxTypes.map(n=>h(b({},n),{tax_type_id:n.id,tax_name:n.name+" ("+n.percent+"%)"}))),Y=p(()=>V.value==="YES"),H=p(()=>({currentItem:{name:{required:x.withMessage(_("validation.required"),de),minLength:x.withMessage(_("validation.name_min_length",{count:3}),pe(3))},description:{maxLength:x.withMessage(_("validation.description_maxlength"),_e(65e3))}}})),c=ge(H,e);async function F(){$.openModal({title:_("settings.customization.items.add_item_unit"),componentName:"ItemUnitModal",size:"sm"})}async function J(){if(i.value=!0,await e.fetchItemUnits({limit:"all"}),D.hasAbilities(Ve.VIEW_TAX_TYPE)&&await r.fetchTaxTypes({limit:"all"}),B.value){let n=y.params.id;await e.fetchItem(n),e.currentItem.tax_per_item===1?V.value="YES":V.value="NO"}i.value=!1}async function O(){if(c.value.currentItem.$touch(),c.value.currentItem.$invalid)return!1;I.value=!0;try{let a=b({id:y.params.id},e.currentItem);e.currentItem&&e.currentItem.taxes&&(a.taxes=e.currentItem.taxes.map(g=>({tax_type_id:g.tax_type_id,amount:v.value*g.percent,percent:g.percent,name:g.name,collective_tax:0}))),await(B.value?e.updateItem:e.addItem)(a),I.value=!1,A.push("/admin/items"),n()}catch{I.value=!1;return}function n(){$.closeModal(),setTimeout(()=>{e.resetCurrentItem(),$.$reset(),c.value.$reset()},300)}}return(n,a)=>{const d=s("BaseBreadcrumbItem"),g=s("BaseBreadcrumb"),W=s("BasePageHeader"),X=s("BaseInput"),f=s("BaseInputGroup"),K=s("BaseMoney"),C=s("BaseIcon"),Q=s("BaseSelectAction"),k=s("BaseMultiselect"),Z=s("BaseTextarea"),ee=s("BaseButton"),te=s("BaseInputGrid"),ne=s("BaseCard"),ae=s("BasePage");return M(),w(ae,null,{default:l(()=>[o(W,{title:t(U)},{default:l(()=>[o(g,null,{default:l(()=>[o(d,{title:n.$t("general.home"),to:"dashboard"},null,8,["title"]),o(d,{title:n.$tc("items.item",2),to:"/admin/items"},null,8,["title"]),o(d,{title:t(U),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),o(Se),j("form",{class:"grid lg:grid-cols-2 mt-6",action:"submit",onSubmit:fe(O,["prevent"])},[o(ne,{class:"w-full"},{default:l(()=>[o(te,{layout:"one-column"},{default:l(()=>[o(f,{label:n.$t("items.name"),"content-loading":t(i),required:"",error:t(c).currentItem.name.$error&&t(c).currentItem.name.$errors[0].$message},{default:l(()=>[o(X,{modelValue:t(e).currentItem.name,"onUpdate:modelValue":a[0]||(a[0]=m=>t(e).currentItem.name=m),"content-loading":t(i),invalid:t(c).currentItem.name.$error,onInput:a[1]||(a[1]=m=>t(c).currentItem.name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),o(f,{label:n.$t("items.price"),"content-loading":t(i)},{default:l(()=>[o(K,{modelValue:t(v),"onUpdate:modelValue":a[2]||(a[2]=m=>q(v)?v.value=m:null),"content-loading":t(i)},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),o(f,{"content-loading":t(i),label:n.$t("items.unit")},{default:l(()=>[o(k,{modelValue:t(e).currentItem.unit_id,"onUpdate:modelValue":a[3]||(a[3]=m=>t(e).currentItem.unit_id=m),"content-loading":t(i),label:"name",options:t(e).itemUnits,"value-prop":"id","can-deselect":!1,"can-clear":!1,placeholder:n.$t("items.select_a_unit"),searchable:"","track-by":"name"},{action:l(()=>[o(Q,{onClick:F},{default:l(()=>[o(C,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),E(" "+G(n.$t("settings.customization.items.add_item_unit")),1)]),_:1})]),_:1},8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),t(Y)?(M(),w(f,{key:0,label:n.$t("items.taxes"),"content-loading":t(i)},{default:l(()=>[o(k,{modelValue:t(S),"onUpdate:modelValue":a[4]||(a[4]=m=>q(S)?S.value=m:null),"content-loading":t(i),options:t(R),mode:"tags",label:"tax_name",class:"w-full","value-prop":"id","can-deselect":!1,"can-clear":!1,searchable:"","track-by":"tax_name",object:""},null,8,["modelValue","content-loading","options"])]),_:1},8,["label","content-loading"])):L("",!0),o(f,{label:n.$t("items.description"),"content-loading":t(i),error:t(c).currentItem.description.$error&&t(c).currentItem.description.$errors[0].$message},{default:l(()=>[o(Z,{modelValue:t(e).currentItem.description,"onUpdate:modelValue":a[5]||(a[5]=m=>t(e).currentItem.description=m),"content-loading":t(i),name:"description",row:2,rows:"2",onInput:a[6]||(a[6]=m=>t(c).currentItem.description.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),j("div",null,[o(ee,{"content-loading":t(i),type:"submit",loading:I.value},{left:l(m=>[I.value?L("",!0):(M(),w(C,{key:0,name:"SaveIcon",class:Ie(m.class)},null,8,["class"]))]),default:l(()=>[E(" "+G(t(B)?n.$t("items.update_item"):n.$t("items.save_item")),1)]),_:1},8,["content-loading","loading"])])]),_:1})]),_:1})],40,he)]),_:1})}}};export{Ue as default};
var I=Object.defineProperty,b=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var _=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&_(e,r,t[r]);if(y)for(var r of y(t))h.call(t,r)&&_(e,r,t[r]);return e},v=(e,t)=>b(e,g(t));import{J as j,L as w,O as V,T as L,k as T,aE as F,r as E,o as n,l as m,w as P,aj as O,u as c,_ as S,C as x,e as D,f as A,F as R,y as k,j as B,I as C}from"./vendor.01d0adc5.js";import{o as i,m as Y}from"./main.832b14c7.js";function $(e){switch(e){case"./types/DateTimeType.vue":return i(()=>import("./DateTimeType.164ef007.js"),["assets/DateTimeType.164ef007.js","assets/vendor.01d0adc5.js"]);case"./types/DateType.vue":return i(()=>import("./DateType.757171f6.js"),["assets/DateType.757171f6.js","assets/vendor.01d0adc5.js"]);case"./types/DropdownType.vue":return i(()=>import("./DropdownType.631322dc.js"),["assets/DropdownType.631322dc.js","assets/vendor.01d0adc5.js"]);case"./types/InputType.vue":return i(()=>import("./InputType.4e1e4da6.js"),["assets/InputType.4e1e4da6.js","assets/vendor.01d0adc5.js"]);case"./types/NumberType.vue":return i(()=>import("./NumberType.137b13f5.js"),["assets/NumberType.137b13f5.js","assets/vendor.01d0adc5.js"]);case"./types/PhoneType.vue":return i(()=>import("./PhoneType.57e436b9.js"),["assets/PhoneType.57e436b9.js","assets/vendor.01d0adc5.js"]);case"./types/SwitchType.vue":return i(()=>import("./SwitchType.59d9fde0.js"),["assets/SwitchType.59d9fde0.js","assets/vendor.01d0adc5.js"]);case"./types/TextAreaType.vue":return i(()=>import("./TextAreaType.ebc60805.js"),["assets/TextAreaType.ebc60805.js","assets/vendor.01d0adc5.js"]);case"./types/TimeType.vue":return i(()=>import("./TimeType.a6077fcb.js"),["assets/TimeType.a6077fcb.js","assets/vendor.01d0adc5.js"]);case"./types/UrlType.vue":return i(()=>import("./UrlType.4a23df64.js"),["assets/UrlType.4a23df64.js","assets/vendor.01d0adc5.js"]);default:return new Promise(function(t,r){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const M={props:{field:{type:Object,required:!0},customFieldScope:{type:String,required:!0},index:{type:Number,required:!0},store:{type:Object,required:!0},storeProp:{type:String,required:!0}},setup(e){const t=e,{t:r}=j(),d={value:{required:w.withMessage(r("validation.required"),V(t.field.is_required))}},a=L(d,T(()=>t.field),{$scope:t.customFieldScope}),o=T(()=>t.field.type?F(()=>$(`./types/${t.field.type}Type.vue`)):!1);return(u,s)=>{const l=E("BaseInputGroup");return n(),m(l,{label:e.field.label,required:!!e.field.is_required,error:c(a).value.$error&&c(a).value.$errors[0].$message},{default:P(()=>[(n(),m(O(c(o)),{modelValue:e.field.value,"onUpdate:modelValue":s[0]||(s[0]=p=>e.field.value=p),options:e.field.options,invalid:c(a).value.$error,placeholder:e.field.placeholder},null,8,["modelValue","options","invalid","placeholder"]))]),_:1},8,["label","required","error"])}}},N={key:0},J={props:{store:{type:Object,required:!0},storeProp:{type:String,required:!0},isEdit:{type:Boolean,default:!1},type:{type:String,default:null},gridLayout:{type:String,default:"two-column"},isLoading:{type:Boolean,default:null},customFieldScope:{type:String,required:!0}},setup(e){const t=e,r=Y();a();function d(){t.isEdit&&t.store[t.storeProp].fields.forEach(o=>{const u=t.store[t.storeProp].customFields.findIndex(s=>s.id===o.custom_field_id);if(u>-1){let s=o.default_answer;s&&o.custom_field.type==="DateTime"&&(s=C(o.default_answer,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD HH:mm")),t.store[t.storeProp].customFields[u]=v(f({},o),{id:o.custom_field_id,value:s,label:o.custom_field.label,options:o.custom_field.options,is_required:o.custom_field.is_required,placeholder:o.custom_field.placeholder,order:o.custom_field.order})}})}async function a(){let u=(await r.fetchCustomFields({type:t.type,limit:"all"})).data.data;u.map(s=>s.value=s.default_answer),t.store[t.storeProp].customFields=S.sortBy(u,s=>s.order),d()}return x(()=>t.store[t.storeProp].fields,o=>{d()}),(o,u)=>{const s=E("BaseInputGrid");return e.store[e.storeProp]&&e.store[e.storeProp].customFields.length>0&&!e.isLoading?(n(),D("div",N,[A(s,{layout:e.gridLayout},{default:P(()=>[(n(!0),D(R,null,k(e.store[e.storeProp].customFields,(l,p)=>(n(),m(M,{key:l.id,"custom-field-scope":e.customFieldScope,store:e.store,"store-prop":e.storeProp,index:p,field:l},null,8,["custom-field-scope","store","store-prop","index","field"]))),128))]),_:1},8,["layout"])])):B("",!0)}}};export{J as _};
var ie=Object.defineProperty;var W=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var Z=(m,n,e)=>n in m?ie(m,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[n]=e,ee=(m,n)=>{for(var e in n||(n={}))de.call(n,e)&&Z(m,e,n[e]);if(W)for(var e of W(n))me.call(n,e)&&Z(m,e,n[e]);return m};import{J as H,G as ce,ah as te,r as d,o as C,l as F,w as u,f as l,u as t,i as B,t as $,j as M,B as L,e as z,aY as pe,U as se,a0 as le,k as D,aE as _e,L as k,M as A,aT as fe,T as ye,h as O,x as oe,y as ve,m as G,F as Ce,aj as be,V as ge}from"./vendor.01d0adc5.js";import{j as Fe,u as Te,m as K,e as ae,c as Y,g as U,o as T}from"./main.832b14c7.js";const we={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(m){const n=m,e=Fe();Te();const{t:i}=H(),v=K();ce();const f=ae(),c=Y();te("utils");async function p(b){await v.fetchCustomField(b),c.openModal({title:i("settings.custom_fields.edit_custom_field"),componentName:"CustomFieldModal",size:"sm",data:b,refreshData:n.loadData})}async function V(b){e.openDialog({title:i("general.are_you_sure"),message:i("settings.custom_fields.custom_field_confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async g=>{g&&(await v.deleteCustomFields(b),n.loadData&&n.loadData())})}return(b,g)=>{const y=d("BaseIcon"),I=d("BaseDropdownItem"),h=d("BaseDropdown");return C(),F(h,null,{activator:u(()=>[l(y,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"})]),default:u(()=>[t(f).hasAbilities(t(U).EDIT_CUSTOM_FIELDS)?(C(),F(I,{key:0,onClick:g[0]||(g[0]=o=>p(m.row.id))},{default:u(()=>[l(y,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),B(" "+$(b.$t("general.edit")),1)]),_:1})):M("",!0),t(f).hasAbilities(t(U).DELETE_CUSTOM_FIELDS)?(C(),F(I,{key:1,onClick:g[1]||(g[1]=o=>V(m.row.id))},{default:u(()=>[l(y,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),B(" "+$(b.$t("general.delete")),1)]),_:1})):M("",!0)]),_:1})}}},$e={class:"flex items-center mt-1"},Ie={emits:["onAdd"],setup(m,{emit:n}){const e=L(null);function i(){if(e.value==null||e.value==""||e.value==null)return!0;n("onAdd",e.value),e.value=null}return(v,f)=>{const c=d("BaseInput"),p=d("BaseIcon");return C(),z("div",$e,[l(c,{modelValue:e.value,"onUpdate:modelValue":f[0]||(f[0]=V=>e.value=V),type:"text",class:"w-full md:w-96",placeholder:v.$t("settings.custom_fields.press_enter_to_add"),onClick:i,onKeydown:pe(se(i,["prevent","stop"]),["enter"])},null,8,["modelValue","placeholder","onKeydown"]),l(p,{name:"PlusCircleIcon",class:"ml-1 text-primary-500 cursor-pointer",onClick:i})])}}};function he(m){switch(m){case"../../custom-fields/types/DateTimeType.vue":return T(()=>import("./DateTimeType.164ef007.js"),["assets/DateTimeType.164ef007.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/DateType.vue":return T(()=>import("./DateType.757171f6.js"),["assets/DateType.757171f6.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/DropdownType.vue":return T(()=>import("./DropdownType.631322dc.js"),["assets/DropdownType.631322dc.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/InputType.vue":return T(()=>import("./InputType.4e1e4da6.js"),["assets/InputType.4e1e4da6.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/NumberType.vue":return T(()=>import("./NumberType.137b13f5.js"),["assets/NumberType.137b13f5.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/PhoneType.vue":return T(()=>import("./PhoneType.57e436b9.js"),["assets/PhoneType.57e436b9.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/SwitchType.vue":return T(()=>import("./SwitchType.59d9fde0.js"),["assets/SwitchType.59d9fde0.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/TextAreaType.vue":return T(()=>import("./TextAreaType.ebc60805.js"),["assets/TextAreaType.ebc60805.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/TimeType.vue":return T(()=>import("./TimeType.a6077fcb.js"),["assets/TimeType.a6077fcb.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/UrlType.vue":return T(()=>import("./UrlType.4a23df64.js"),["assets/UrlType.4a23df64.js","assets/vendor.01d0adc5.js"]);default:return new Promise(function(n,e){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(e.bind(null,new Error("Unknown variable dynamic import: "+m)))})}}const Be={class:"flex justify-between w-full"},De=["onSubmit"],Ve={class:"overflow-y-auto max-h-[550px]"},Se={class:"px-4 md:px-8 py-8 overflow-y-auto sm:p-6"},Ee={class:"z-0 flex justify-end p-4 border-t border-solid border-gray-light border-modal-bg"},qe={setup(m){const n=Y(),e=K(),{t:i}=H();let v=L(!1);const f=le(["Customer","Invoice","Estimate","Expense","Payment"]),c=le([{label:"Text",value:"Input"},{label:"Textarea",value:"TextArea"},{label:"Phone",value:"Phone"},{label:"URL",value:"Url"},{label:"Number",value:"Number"},{label:"Select Field",value:"Dropdown"},{label:"Switch Toggle",value:"Switch"},{label:"Date",value:"Date"},{label:"Time",value:"Time"},{label:"Date & Time",value:"DateTime"}]);let p=L(c[0]);const V=D(()=>n.active&&n.componentName==="CustomFieldModal"),b=D(()=>p.value&&p.value.label==="Switch Toggle"),g=D(()=>p.value&&p.value.label==="Select Field"),y=D(()=>e.currentCustomField.type?_e(()=>he(`../../custom-fields/types/${e.currentCustomField.type}Type.vue`)):!1),I=D({get:()=>e.currentCustomField.is_required===1,set:s=>{const a=s?1:0;e.currentCustomField.is_required=a}}),h=D(()=>({currentCustomField:{type:{required:k.withMessage(i("validation.required"),A)},name:{required:k.withMessage(i("validation.required"),A)},label:{required:k.withMessage(i("validation.required"),A)},model_type:{required:k.withMessage(i("validation.required"),A)},order:{required:k.withMessage(i("validation.required"),A),numeric:k.withMessage(i("validation.numbers_only"),fe)},type:{required:k.withMessage(i("validation.required"),A)}}})),o=ye(h,D(()=>e));function S(){e.isEdit?p.value=c.find(s=>s.value==e.currentCustomField.type):(e.currentCustomField.model_type=f[0],e.currentCustomField.type=c[0].value,p.value=c[0])}async function P(){if(o.value.currentCustomField.$touch(),o.value.currentCustomField.$invalid)return!0;v.value=!0;let s=ee({},e.currentCustomField);if(e.currentCustomField.options&&(s.options=e.currentCustomField.options.map(E=>E.name)),s.type=="Time"&&typeof s.default_answer=="object"){let E=s&&s.default_answer&&s.default_answer.HH?s.default_answer.HH:null,q=s&&s.default_answer&&s.default_answer.mm?s.default_answer.mm:null;s&&s.default_answer&&s.default_answer.ss&&s.default_answer.ss,s.default_answer=`${E}:${q}`}await(e.isEdit?e.updateCustomField:e.addCustomField)(s),v.value=!1,n.refreshData&&n.refreshData(),R()}function x(s){e.currentCustomField.options=[{name:s},...e.currentCustomField.options]}function _(s){if(e.isEdit&&e.currentCustomField.in_use)return;e.currentCustomField.options[s].name===e.currentCustomField.default_answer&&(e.currentCustomField.default_answer=null),e.currentCustomField.options.splice(s,1)}function N(s){e.currentCustomField.type=s.value}function R(){n.closeModal(),setTimeout(()=>{e.resetCurrentCustomField(),o.value.$reset()},300)}return(s,a)=>{const E=d("BaseIcon"),q=d("BaseInput"),w=d("BaseInputGroup"),J=d("BaseMultiselect"),re=d("BaseSwitch"),ne=d("BaseInputGrid"),X=d("BaseButton"),ue=d("BaseModal");return C(),F(ue,{show:t(V),onOpen:S},{header:u(()=>[O("div",Be,[B($(t(n).title)+" ",1),l(E,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:R})])]),default:u(()=>[O("form",{action:"",onSubmit:se(P,["prevent"])},[O("div",Ve,[O("div",Se,[l(ne,{layout:"one-column"},{default:u(()=>[l(w,{label:s.$t("settings.custom_fields.name"),required:"",error:t(o).currentCustomField.name.$error&&t(o).currentCustomField.name.$errors[0].$message},{default:u(()=>[l(q,{ref:(r,j)=>{j.name=r},modelValue:t(e).currentCustomField.name,"onUpdate:modelValue":a[0]||(a[0]=r=>t(e).currentCustomField.name=r),invalid:t(o).currentCustomField.name.$error,onInput:a[1]||(a[1]=r=>t(o).currentCustomField.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),l(w,{label:s.$t("settings.custom_fields.model"),error:t(o).currentCustomField.model_type.$error&&t(o).currentCustomField.model_type.$errors[0].$message,"help-text":t(e).currentCustomField.in_use?s.$t("settings.custom_fields.model_in_use"):"",required:""},{default:u(()=>[l(J,{modelValue:t(e).currentCustomField.model_type,"onUpdate:modelValue":a[2]||(a[2]=r=>t(e).currentCustomField.model_type=r),options:t(f),"can-deselect":!1,invalid:t(o).currentCustomField.model_type.$error,searchable:!0,disabled:t(e).currentCustomField.in_use,onInput:a[3]||(a[3]=r=>t(o).currentCustomField.model_type.$touch())},null,8,["modelValue","options","invalid","disabled"])]),_:1},8,["label","error","help-text"]),l(w,{class:"flex items-center space-x-4",label:s.$t("settings.custom_fields.required")},{default:u(()=>[l(re,{modelValue:t(I),"onUpdate:modelValue":a[4]||(a[4]=r=>oe(I)?I.value=r:null)},null,8,["modelValue"])]),_:1},8,["label"]),l(w,{label:s.$t("settings.custom_fields.type"),error:t(o).currentCustomField.type.$error&&t(o).currentCustomField.type.$errors[0].$message,"help-text":t(e).currentCustomField.in_use?s.$t("settings.custom_fields.type_in_use"):"",required:""},{default:u(()=>[l(J,{modelValue:t(p),"onUpdate:modelValue":[a[5]||(a[5]=r=>oe(p)?p.value=r:p=r),N],options:t(c),invalid:t(o).currentCustomField.type.$error,disabled:t(e).currentCustomField.in_use,searchable:!0,"can-deselect":!1,object:""},null,8,["modelValue","options","invalid","disabled"])]),_:1},8,["label","error","help-text"]),l(w,{label:s.$t("settings.custom_fields.label"),required:"",error:t(o).currentCustomField.label.$error&&t(o).currentCustomField.label.$errors[0].$message},{default:u(()=>[l(q,{modelValue:t(e).currentCustomField.label,"onUpdate:modelValue":a[6]||(a[6]=r=>t(e).currentCustomField.label=r),invalid:t(o).currentCustomField.label.$error,onInput:a[7]||(a[7]=r=>t(o).currentCustomField.label.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(g)?(C(),F(w,{key:0,label:s.$t("settings.custom_fields.options")},{default:u(()=>[l(Ie,{onOnAdd:x}),(C(!0),z(Ce,null,ve(t(e).currentCustomField.options,(r,j)=>(C(),z("div",{key:j,class:"flex items-center mt-5"},[l(q,{modelValue:r.name,"onUpdate:modelValue":Q=>r.name=Q,class:"w-64"},null,8,["modelValue","onUpdate:modelValue"]),l(E,{name:"MinusCircleIcon",class:G(["ml-1 cursor-pointer",t(e).currentCustomField.in_use?"text-gray-300":"text-red-300"]),onClick:Q=>_(j)},null,8,["class","onClick"])]))),128))]),_:1},8,["label"])):M("",!0),l(w,{label:s.$t("settings.custom_fields.default_value"),class:"relative"},{default:u(()=>[(C(),F(be(t(y)),{modelValue:t(e).currentCustomField.default_answer,"onUpdate:modelValue":a[8]||(a[8]=r=>t(e).currentCustomField.default_answer=r),options:t(e).currentCustomField.options,"default-date-time":t(e).currentCustomField.dateTimeValue},null,8,["modelValue","options","default-date-time"]))]),_:1},8,["label"]),t(b)?M("",!0):(C(),F(w,{key:1,label:s.$t("settings.custom_fields.placeholder")},{default:u(()=>[l(q,{modelValue:t(e).currentCustomField.placeholder,"onUpdate:modelValue":a[9]||(a[9]=r=>t(e).currentCustomField.placeholder=r)},null,8,["modelValue"])]),_:1},8,["label"])),l(w,{label:s.$t("settings.custom_fields.order"),error:t(o).currentCustomField.order.$error&&t(o).currentCustomField.order.$errors[0].$message,required:""},{default:u(()=>[l(q,{modelValue:t(e).currentCustomField.order,"onUpdate:modelValue":a[10]||(a[10]=r=>t(e).currentCustomField.order=r),type:"number",invalid:t(o).currentCustomField.order.$error,onInput:a[11]||(a[11]=r=>t(o).currentCustomField.order.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})])]),O("div",Ee,[l(X,{class:"mr-3",type:"button",variant:"primary-outline",onClick:R},{default:u(()=>[B($(s.$t("general.cancel")),1)]),_:1}),l(X,{variant:"primary",loading:t(v),disabled:t(v),type:"submit"},{left:u(r=>[t(v)?M("",!0):(C(),F(E,{key:0,class:G(r.class),name:"SaveIcon"},null,8,["class"]))]),default:u(()=>[B(" "+$(t(e).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,De)]),_:1},8,["show"])}}},ke={class:"text-xs text-gray-500"},Ue={setup(m){const n=Y(),e=K(),i=ae(),v=te("utils"),{t:f}=H(),c=L(null),p=D(()=>[{key:"name",label:f("settings.custom_fields.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"model_type",label:f("settings.custom_fields.model")},{key:"type",label:f("settings.custom_fields.type")},{key:"is_required",label:f("settings.custom_fields.required")},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function V({page:y,filter:I,sort:h}){let o={orderByField:h.fieldName||"created_at",orderBy:h.order||"desc",page:y},S=await e.fetchCustomFields(o);return{data:S.data.data,pagination:{totalPages:S.data.meta.last_page,currentPage:y,limit:5,totalCount:S.data.meta.total}}}function b(){n.openModal({title:f("settings.custom_fields.add_custom_field"),componentName:"CustomFieldModal",size:"sm",refreshData:c.value&&c.value.refresh})}async function g(){c.value&&c.value.refresh()}return(y,I)=>{const h=d("BaseIcon"),o=d("BaseButton"),S=d("BaseBadge"),P=d("BaseTable"),x=d("BaseSettingCard");return C(),F(x,{title:y.$t("settings.menu_title.custom_fields"),description:y.$t("settings.custom_fields.section_description")},{action:u(()=>[t(i).hasAbilities(t(U).CREATE_CUSTOM_FIELDS)?(C(),F(o,{key:0,variant:"primary-outline",onClick:b},{left:u(_=>[l(h,{class:G(_.class),name:"PlusIcon"},null,8,["class"]),B(" "+$(y.$t("settings.custom_fields.add_custom_field")),1)]),_:1})):M("",!0)]),default:u(()=>[l(qe),l(P,{ref:(_,N)=>{N.table=_,c.value=_},data:V,columns:t(p),class:"mt-16"},ge({"cell-name":u(({row:_})=>[B($(_.data.name)+" ",1),O("span",ke," ("+$(_.data.slug)+")",1)]),"cell-is_required":u(({row:_})=>[l(S,{"bg-color":t(v).getBadgeStatusColor(_.data.is_required?"YES":"NO").bgColor,color:t(v).getBadgeStatusColor(_.data.is_required?"YES":"NO").color},{default:u(()=>[B($(_.data.is_required?y.$t("settings.custom_fields.yes"):y.$t("settings.custom_fields.no").replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),_:2},[t(i).hasAbilities([t(U).DELETE_CUSTOM_FIELDS,t(U).EDIT_CUSTOM_FIELDS])?{name:"cell-actions",fn:u(({row:_})=>[l(we,{row:_.data,table:c.value,"load-data":g},null,8,["row","table"])])}:void 0]),1032,["columns"])]),_:1},8,["title","description"])}}};export{Ue as default};
import{l as S,u as b,j as C,e as x,g}from"./main.832b14c7.js";import{J as E,G as j,aN as T,ah as N,r as l,o as a,l as s,w as t,u as e,f as n,i as p,t as f,j as y}from"./vendor.01d0adc5.js";const V={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(i){const w=i,_=S();b();const v=C(),m=x(),{t:u}=E(),h=j();T(),N("utils");function B(r){v.openDialog({title:u("general.are_you_sure"),message:u("customers.confirm_delete",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(c=>{c&&_.deleteCustomer({ids:[r]}).then(o=>{if(o.data.success)return w.loadData&&w.loadData(),!0})})}return(r,c)=>{const o=l("BaseIcon"),I=l("BaseButton"),d=l("BaseDropdownItem"),D=l("router-link"),k=l("BaseDropdown");return a(),s(k,{"content-loading":e(_).isFetchingViewData},{activator:t(()=>[e(h).name==="customers.view"?(a(),s(I,{key:0,variant:"primary"},{default:t(()=>[n(o,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(a(),s(o,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[e(m).hasAbilities(e(g).EDIT_CUSTOMER)?(a(),s(D,{key:0,to:`/admin/customers/${i.row.id}/edit`},{default:t(()=>[n(d,null,{default:t(()=>[n(o,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+f(r.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):y("",!0),e(h).name!=="customers.view"&&e(m).hasAbilities(e(g).VIEW_CUSTOMER)?(a(),s(D,{key:1,to:`customers/${i.row.id}/view`},{default:t(()=>[n(d,null,{default:t(()=>[n(o,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+f(r.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):y("",!0),e(m).hasAbilities(e(g).DELETE_CUSTOMER)?(a(),s(d,{key:2,onClick:c[0]||(c[0]=$=>B(i.row.id))},{default:t(()=>[n(o,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+f(r.$t("general.delete")),1)]),_:1})):y("",!0)]),_:1},8,["content-loading"])}}};export{V as _};
import{G as E,J as G,B as F,k as h,L as p,M as C,N as k,Q as L,P,T as R,r as c,o as g,e as D,f as u,w as i,h as $,t as I,u as e,x as _,l as y,m as A,j as O,i as T,U as z}from"./vendor.01d0adc5.js";import{a as J,u as Q}from"./global.8697213a.js";import"./auth.77d12976.js";import"./main.832b14c7.js";const H=["onSubmit"],K={class:"font-bold text-left"},W={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},X={class:"grid gap-6 sm:grid-col-1 md:grid-cols-2 mt-6"},Y=$("span",null,null,-1),oe={setup(Z){const r=J();Q(),E();const{t:m,tm:S}=G();let v=F([]),d=F(!1),B=F(null),n=F(!1),l=F(!1);r.userForm.avatar&&v.value.push({image:r.userForm.avatar});const U=h(()=>({userForm:{name:{required:p.withMessage(m("validation.required"),C),minLength:p.withMessage(m("validation.name_min_length",{count:3}),k(3))},email:{required:p.withMessage(m("validation.required"),C),email:p.withMessage(m("validation.email_incorrect"),L)},password:{minLength:p.withMessage(m("validation.password_min_length",{count:8}),k(8))},confirm_password:{sameAsPassword:p.withMessage(m("validation.password_incorrect"),P(r.userForm.password))}}})),o=R(U,h(()=>r));function x(t,s){B.value=s}function M(){B.value=null}function q(){if(o.value.userForm.$touch(),o.value.userForm.$invalid)return!0;d.value=!0;let t=new FormData;t.append("name",r.userForm.name),t.append("email",r.userForm.email),r.userForm.password!=null&&r.userForm.password!==void 0&&r.userForm.password!==""&&t.append("password",r.userForm.password),B.value&&t.append("customer_avatar",B.value),r.updateCurrentUser({data:t,message:S("settings.account_settings.updated_message")}).then(s=>{s.data.data&&(d.value=!1,r.$patch(V=>{V.userForm.password="",V.userForm.confirm_password=""}))}).catch(s=>{d.value=!1})}return(t,s)=>{const V=c("BaseFileUploader"),f=c("BaseInputGroup"),b=c("BaseInput"),w=c("BaseIcon"),N=c("BaseButton"),j=c("BaseCard");return g(),D("form",{class:"relative h-full mt-4",onSubmit:z(q,["prevent"])},[u(j,null,{default:i(()=>[$("div",null,[$("h6",K,I(t.$t("settings.account_settings.account_settings")),1),$("p",W,I(t.$t("settings.account_settings.section_description")),1)]),$("div",X,[u(f,{label:t.$tc("settings.account_settings.profile_picture")},{default:i(()=>[u(V,{modelValue:e(v),"onUpdate:modelValue":s[0]||(s[0]=a=>_(v)?v.value=a:v=a),avatar:!0,accept:"image/*",onChange:x,onRemove:M},null,8,["modelValue"])]),_:1},8,["label"]),Y,u(f,{label:t.$tc("settings.account_settings.name"),error:e(o).userForm.name.$error&&e(o).userForm.name.$errors[0].$message,required:""},{default:i(()=>[u(b,{modelValue:e(r).userForm.name,"onUpdate:modelValue":s[1]||(s[1]=a=>e(r).userForm.name=a),invalid:e(o).userForm.name.$error,onInput:s[2]||(s[2]=a=>e(o).userForm.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(f,{label:t.$tc("settings.account_settings.email"),error:e(o).userForm.email.$error&&e(o).userForm.email.$errors[0].$message,required:""},{default:i(()=>[u(b,{modelValue:e(r).userForm.email,"onUpdate:modelValue":s[3]||(s[3]=a=>e(r).userForm.email=a),invalid:e(o).userForm.email.$error,onInput:s[4]||(s[4]=a=>e(o).userForm.email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(f,{error:e(o).userForm.password.$error&&e(o).userForm.password.$errors[0].$message,label:t.$tc("settings.account_settings.password")},{default:i(()=>[u(b,{modelValue:e(r).userForm.password,"onUpdate:modelValue":s[7]||(s[7]=a=>e(r).userForm.password=a),type:e(n)?"text":"password",invalid:e(o).userForm.password.$error,onInput:s[8]||(s[8]=a=>e(o).userForm.password.$touch())},{right:i(()=>[e(n)?(g(),y(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[5]||(s[5]=a=>_(n)?n.value=!e(n):n=!e(n))})):(g(),y(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[6]||(s[6]=a=>_(n)?n.value=!e(n):n=!e(n))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["error","label"]),u(f,{label:t.$tc("settings.account_settings.confirm_password"),error:e(o).userForm.confirm_password.$error&&e(o).userForm.confirm_password.$errors[0].$message},{default:i(()=>[u(b,{modelValue:e(r).userForm.confirm_password,"onUpdate:modelValue":s[11]||(s[11]=a=>e(r).userForm.confirm_password=a),type:e(l)?"text":"password",invalid:e(o).userForm.confirm_password.$error,onInput:s[12]||(s[12]=a=>e(o).userForm.confirm_password.$touch())},{right:i(()=>[e(l)?(g(),y(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[9]||(s[9]=a=>_(l)?l.value=!e(l):l=!e(l))})):(g(),y(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[10]||(s[10]=a=>_(l)?l.value=!e(l):l=!e(l))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["label","error"])]),u(N,{loading:e(d),disabled:e(d),class:"mt-6"},{left:i(a=>[e(d)?O("",!0):(g(),y(w,{key:0,name:"SaveIcon",class:A(a.class)},null,8,["class"]))]),default:i(()=>[T(" "+I(t.$t("general.save")),1)]),_:1},8,["loading","disabled"])]),_:1})],40,H)}}};export{oe as default};
var ut=Object.defineProperty,rt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var st=(v,o,i)=>o in v?ut(v,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):v[o]=i,x=(v,o)=>{for(var i in o||(o={}))ct.call(o,i)&&st(v,i,o[i]);if(et)for(var i of et(o))_t.call(o,i)&&st(v,i,o[i]);return v},W=(v,o)=>rt(v,dt(o));import{b as N,d as Z,i as pt,k as gt,p as yt,c as ft,j as vt}from"./main.832b14c7.js";import{J as j,B as z,k as F,C as bt,H as at,$ as St,r as d,o as $,e as D,h as c,t as b,f as t,w as r,U as Y,m as G,i as k,F as L,y as $t,l as E,u as e,j as R,ah as M,a0 as T,L as X,O as nt,aT as it,T as ot,x as H}from"./vendor.01d0adc5.js";import{D as Bt,d as ht}from"./DragIcon.88fb50b8.js";import{u as zt}from"./payment.372edbf1.js";import{_ as Vt}from"./ItemUnitModal.076e3ed4.js";const It={class:"text-gray-900 text-lg font-medium"},xt={class:"mt-1 text-sm text-gray-500"},wt={class:"overflow-x-auto"},Ct={class:"w-full mt-6 table-fixed"},Dt=c("colgroup",null,[c("col",{style:{width:"4%"}}),c("col",{style:{width:"45%"}}),c("col",{style:{width:"27%"}}),c("col",{style:{width:"24%"}})],-1),Ut=c("thead",null,[c("tr",null,[c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"}),c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"}," Component "),c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"}," Parameter "),c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"})])],-1),Ft={class:"relative"},kt={class:"text-gray-300 cursor-move handle align-middle"},Et={class:"px-5 py-4"},Nt={class:"block text-sm not-italic font-medium text-primary-800 whitespace-nowrap mr-2 min-w-[200px]"},Mt={class:"text-xs text-gray-500 mt-1"},Tt={class:"px-5 py-4 text-left align-middle"},Gt={class:"px-5 py-4 text-right align-middle pt-10"},qt=k(" Remove "),Lt={colspan:"2",class:"px-5 py-4"},Rt={class:"px-5 py-4 text-right align-middle",colspan:"2"},tt={props:{type:{type:String,required:!0},typeStore:{type:Object,required:!0},defaultSeries:{type:String,default:"INV"}},setup(v){const o=v,{t:i}=j(),p=N(),g=Z(),u=z([]),a=z(!1),m=z([{label:i("settings.customization.series"),description:i("settings.customization.series_description"),name:"SERIES",paramLabel:i("settings.customization.series_param_label"),value:o.defaultSeries,inputDisabled:!1,inputType:"text",allowMultiple:!1},{label:i("settings.customization.sequence"),description:i("settings.customization.sequence_description"),name:"SEQUENCE",paramLabel:i("settings.customization.sequence_param_label"),value:"6",inputDisabled:!1,inputType:"number",allowMultiple:!1},{label:i("settings.customization.delimiter"),description:i("settings.customization.delimiter_description"),name:"DELIMITER",paramLabel:i("settings.customization.delimiter_param_label"),value:"-",inputDisabled:!1,inputType:"text",allowMultiple:!0},{label:i("settings.customization.customer_series"),description:i("settings.customization.customer_series_description"),name:"CUSTOMER_SERIES",paramLabel:"",value:"",inputDisabled:!0,inputType:"text",allowMultiple:!1},{label:i("settings.customization.customer_sequence"),description:i("settings.customization.customer_sequence_description"),name:"CUSTOMER_SEQUENCE",paramLabel:i("settings.customization.customer_sequence_param_label"),value:"6",inputDisabled:!1,inputType:"number",allowMultiple:!1},{label:i("settings.customization.date_format"),description:i("settings.customization.date_format_description"),name:"DATE_FORMAT",paramLabel:i("settings.customization.date_format_param_label"),value:"Y",inputDisabled:!1,inputType:"text",allowMultiple:!0},{label:i("settings.customization.random_sequence"),description:i("settings.customization.random_sequence_description"),name:"RANDOM_SEQUENCE",paramLabel:i("settings.customization.random_sequence_param_label"),value:"6",inputDisabled:!1,inputType:"number",allowMultiple:!1}]),s=F(()=>m.value.filter(function(f){return!u.value.some(function(V){return f.allowMultiple?!1:f.name==V.name})})),_=z(""),n=z(!1),l=z(!1),y=F(()=>{let f="";return u.value.forEach(V=>{let q=`{{${V.name}`;V.value&&(q+=`:${V.value}`),f+=`${q}}}`}),f});bt(u,f=>{U()}),B();async function B(){let f={format:p.selectedCompanySettings[`${o.type}_number_format`]};l.value=!0,(await g.fetchPlaceholders(f)).data.placeholders.forEach(q=>{var O;let J=m.value.find(K=>K.name===q.name);const Q=(O=q.value)!=null?O:"";u.value.push(W(x({},J),{value:Q,id:at.raw()}))}),l.value=!1,U()}function C(f){return u.value.find(V=>V.name===f.name)}function h(f){C(f)&&!f.allowMultiple||(u.value.push(W(x({},f),{id:at.raw()})),U())}function S(f){u.value=u.value.filter(function(V){return f.id!==V.id})}function w(f,V){switch(V.name){case"SERIES":f.length>=6&&(f=f.substring(0,6));break;case"DELIMITER":f.length>=1&&(f=f.substring(0,1));break}setTimeout(()=>{V.value=f,U()},100)}const U=St(()=>{P()},500);async function P(){if(!y.value){_.value="";return}let f={key:o.type,format:y.value};n.value=!0;let V=await o.typeStore.getNextNumber(f);n.value=!1,V.data&&(_.value=V.data.nextNumber)}async function lt(){if(n.value||l.value)return;a.value=!0;let f={settings:{}};return f.settings[o.type+"_number_format"]=y.value,await p.updateCompanySettings({data:f,message:`settings.customization.${o.type}s.${o.type}_settings_updated`}),a.value=!1,!0}return(f,V)=>{const q=d("BaseInput"),J=d("BaseInputGroup"),Q=d("BaseIcon"),O=d("BaseButton"),K=d("BaseDropdownItem"),mt=d("BaseDropdown");return $(),D(L,null,[c("h6",It,b(f.$t(`settings.customization.${v.type}s.${v.type}_number_format`)),1),c("p",xt,b(f.$t(`settings.customization.${v.type}s.${v.type}_number_format_description`)),1),c("div",wt,[c("table",Ct,[Dt,Ut,t(e(ht),{modelValue:u.value,"onUpdate:modelValue":V[1]||(V[1]=I=>u.value=I),class:"divide-y divide-gray-200","item-key":"id",tag:"tbody",handle:".handle",filter:".ignore-element"},{item:r(({element:I})=>[c("tr",Ft,[c("td",kt,[t(Bt)]),c("td",Et,[c("label",Nt,b(I.label),1),c("p",Mt,b(I.description),1)]),c("td",Tt,[t(J,{label:I.paramLabel,class:"lg:col-span-3",required:""},{default:r(()=>[t(q,{modelValue:I.value,"onUpdate:modelValue":[A=>I.value=A,A=>w(A,I)],disabled:I.inputDisabled,type:I.inputType},null,8,["modelValue","onUpdate:modelValue","disabled","type"])]),_:2},1032,["label"])]),c("td",Gt,[t(O,{variant:"white",onClick:Y(A=>S(I),["prevent"])},{left:r(A=>[t(Q,{name:"XIcon",class:G(["!sm:m-0",A.class])},null,8,["class"])]),default:r(()=>[qt]),_:2},1032,["onClick"])])])]),footer:r(()=>[c("tr",null,[c("td",Lt,[t(J,{label:f.$t(`settings.customization.${v.type}s.preview_${v.type}_number`)},{default:r(()=>[t(q,{modelValue:_.value,"onUpdate:modelValue":V[0]||(V[0]=I=>_.value=I),disabled:"",loading:n.value},null,8,["modelValue","loading"])]),_:1},8,["label"])]),c("td",Rt,[t(mt,{"wrapper-class":"flex items-center justify-end mt-5"},{activator:r(()=>[t(O,{variant:"primary-outline"},{left:r(I=>[t(Q,{class:G(I.class),name:"PlusIcon"},null,8,["class"])]),default:r(()=>[k(" "+b(f.$t("settings.customization.add_new_component")),1)]),_:1})]),default:r(()=>[($(!0),D(L,null,$t(e(s),I=>($(),E(K,{key:I.label,onClick:Y(A=>h(I),["prevent"])},{default:r(()=>[k(b(I.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})])])]),_:1},8,["modelValue"])])]),t(O,{loading:a.value,disabled:a.value,variant:"primary",type:"submit",class:"mt-4",onClick:lt},{left:r(I=>[a.value?R("",!0):($(),E(Q,{key:0,class:G(I.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(f.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],64)}}},At={setup(v){const o=pt();return(i,p)=>($(),E(tt,{type:"invoice","type-store":e(o),"default-series":"INV"},null,8,["type-store"]))}},Yt={class:"text-gray-900 text-lg font-medium"},Ot={class:"mt-1 text-sm text-gray-500"},jt={setup(v){const{t:o,tm:i}=j(),p=N(),g=Z(),u=M("utils"),a=T({retrospective_edits:null});u.mergeSettings(a,x({},p.selectedCompanySettings)),F(()=>g.config.retrospective_edits.map(s=>(s.title=o(s.key),s)));async function m(){let s={settings:x({},a)};return await p.updateCompanySettings({data:s,message:"settings.customization.invoices.invoice_settings_updated"}),!0}return(s,_)=>{const n=d("BaseRadio"),l=d("BaseInputGroup");return $(),D(L,null,[c("h6",Yt,b(s.$tc("settings.customization.invoices.retrospective_edits")),1),c("p",Ot,b(s.$t("settings.customization.invoices.retrospective_edits_description")),1),t(l,{required:""},{default:r(()=>[t(n,{id:"allow",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[0]||(_[0]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.allow"),size:"sm",name:"filter",value:"allow",class:"mt-2"},null,8,["modelValue","label"]),t(n,{id:"disable_on_invoice_partial_paid",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[1]||(_[1]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.disable_on_invoice_partial_paid"),size:"sm",name:"filter",value:"disable_on_invoice_partial_paid",class:"mt-2"},null,8,["modelValue","label"]),t(n,{id:"disable_on_invoice_paid",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[2]||(_[2]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.disable_on_invoice_paid"),size:"sm",name:"filter",value:"disable_on_invoice_paid",class:"my-2"},null,8,["modelValue","label"]),t(n,{id:"disable_on_invoice_sent",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[3]||(_[3]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.disable_on_invoice_sent"),size:"sm",name:"filter",value:"disable_on_invoice_sent"},null,8,["modelValue","label"])]),_:1})],64)}}},Pt=["onSubmit"],Qt={class:"text-gray-900 text-lg font-medium"},Ht={class:"mt-1 text-sm text-gray-500 mb-2"},Jt={class:"w-full sm:w-1/2 md:w-1/4 lg:w-1/5"},Xt={setup(v){const{t:o}=j(),i=N(),p=M("utils");let g=z(!1);const u=T({invoice_set_due_date_automatically:null,invoice_due_date_days:null});p.mergeSettings(u,x({},i.selectedCompanySettings));const a=F({get:()=>u.invoice_set_due_date_automatically==="YES",set:async n=>{const l=n?"YES":"NO";u.invoice_set_due_date_automatically=l}}),m=F(()=>({dueDateSettings:{invoice_due_date_days:{required:X.withMessage(o("validation.required"),nt(a.value)),numeric:X.withMessage(o("validation.numbers_only"),it)}}})),s=ot(m,{dueDateSettings:u});async function _(){if(s.value.dueDateSettings.$touch(),s.value.dueDateSettings.$invalid)return!1;g.value=!0;let n={settings:x({},u)};return a.value||delete n.settings.invoice_due_date_days,await i.updateCompanySettings({data:n,message:"settings.customization.invoices.invoice_settings_updated"}),g.value=!1,!0}return(n,l)=>{const y=d("BaseSwitchSection"),B=d("BaseInput"),C=d("BaseInputGroup"),h=d("BaseIcon"),S=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",Qt,b(n.$t("settings.customization.invoices.due_date")),1),c("p",Ht,b(n.$t("settings.customization.invoices.due_date_description")),1),t(y,{modelValue:e(a),"onUpdate:modelValue":l[0]||(l[0]=w=>H(a)?a.value=w:null),title:n.$t("settings.customization.invoices.set_due_date_automatically"),description:n.$t("settings.customization.invoices.set_due_date_automatically_description")},null,8,["modelValue","title","description"]),e(a)?($(),E(C,{key:0,label:n.$t("settings.customization.invoices.due_date_days"),error:e(s).dueDateSettings.invoice_due_date_days.$error&&e(s).dueDateSettings.invoice_due_date_days.$errors[0].$message,class:"mt-2 mb-4"},{default:r(()=>[c("div",Jt,[t(B,{modelValue:e(u).invoice_due_date_days,"onUpdate:modelValue":l[1]||(l[1]=w=>e(u).invoice_due_date_days=w),invalid:e(s).dueDateSettings.invoice_due_date_days.$error,type:"number",onInput:l[2]||(l[2]=w=>e(s).dueDateSettings.invoice_due_date_days.$touch())},null,8,["modelValue","invalid"])])]),_:1},8,["label","error"])):R("",!0),t(S,{loading:e(g),disabled:e(g),variant:"primary",type:"submit",class:"mt-4"},{left:r(w=>[e(g)?R("",!0):($(),E(h,{key:0,class:G(w.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,Pt)}}},Kt=["onSubmit"],Wt={class:"text-gray-900 text-lg font-medium"},Zt={class:"mt-1 text-sm text-gray-500 mb-2"},te={setup(v){const o=N(),i=M("utils"),p=z(["customer","customerCustom","invoice","invoiceCustom","company"]),g=z(["billing","customer","customerCustom","invoiceCustom"]),u=z(["shipping","customer","customerCustom","invoiceCustom"]),a=z(["company","invoiceCustom"]);let m=z(!1);const s=T({invoice_mail_body:null,invoice_company_address_format:null,invoice_shipping_address_format:null,invoice_billing_address_format:null});i.mergeSettings(s,x({},o.selectedCompanySettings));async function _(){m.value=!0;let n={settings:x({},s)};return await o.updateCompanySettings({data:n,message:"settings.customization.invoices.invoice_settings_updated"}),m.value=!1,!0}return(n,l)=>{const y=d("BaseCustomInput"),B=d("BaseInputGroup"),C=d("BaseIcon"),h=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",Wt,b(n.$t("settings.customization.invoices.default_formats")),1),c("p",Zt,b(n.$t("settings.customization.invoices.default_formats_description")),1),t(B,{label:n.$t("settings.customization.invoices.default_invoice_email_body"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_mail_body,"onUpdate:modelValue":l[0]||(l[0]=S=>e(s).invoice_mail_body=S),fields:p.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.invoices.company_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_company_address_format,"onUpdate:modelValue":l[1]||(l[1]=S=>e(s).invoice_company_address_format=S),fields:a.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.invoices.shipping_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_shipping_address_format,"onUpdate:modelValue":l[2]||(l[2]=S=>e(s).invoice_shipping_address_format=S),fields:u.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.invoices.billing_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_billing_address_format,"onUpdate:modelValue":l[3]||(l[3]=S=>e(s).invoice_billing_address_format=S),fields:g.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(h,{loading:e(m),disabled:e(m),variant:"primary",type:"submit",class:"mt-4"},{left:r(S=>[e(m)?R("",!0):($(),E(C,{key:0,class:G(S.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,Kt)}}},ee={class:"divide-y divide-gray-200"},se={setup(v){const o=M("utils"),i=N(),p=T({invoice_email_attachment:null});o.mergeSettings(p,x({},i.selectedCompanySettings));const g=F({get:()=>p.invoice_email_attachment==="YES",set:async u=>{const a=u?"YES":"NO";let m={settings:{invoice_email_attachment:a}};p.invoice_email_attachment=a,await i.updateCompanySettings({data:m,message:"general.setting_updated"})}});return(u,a)=>{const m=d("BaseDivider"),s=d("BaseSwitchSection");return $(),D(L,null,[t(At),t(m,{class:"my-8"}),t(Xt),t(m,{class:"my-8"}),t(jt),t(m,{class:"my-8"}),t(te),t(m,{class:"mt-6 mb-2"}),c("ul",ee,[t(s,{modelValue:e(g),"onUpdate:modelValue":a[0]||(a[0]=_=>H(g)?g.value=_:null),title:u.$t("settings.customization.invoices.invoice_email_attachment"),description:u.$t("settings.customization.invoices.invoice_email_attachment_setting_description")},null,8,["modelValue","title","description"])])],64)}}},ae={setup(v){const o=gt();return(i,p)=>($(),E(tt,{type:"estimate","type-store":e(o),"default-series":"EST"},null,8,["type-store"]))}},ne=["onSubmit"],ie={class:"text-gray-900 text-lg font-medium"},oe={class:"mt-1 text-sm text-gray-500 mb-2"},le={class:"w-full sm:w-1/2 md:w-1/4 lg:w-1/5"},me={setup(v){const{t:o}=j(),i=N(),p=M("utils");let g=z(!1);const u=T({estimate_set_expiry_date_automatically:null,estimate_expiry_date_days:null});p.mergeSettings(u,x({},i.selectedCompanySettings));const a=F({get:()=>u.estimate_set_expiry_date_automatically==="YES",set:async n=>{const l=n?"YES":"NO";u.estimate_set_expiry_date_automatically=l}}),m=F(()=>({expiryDateSettings:{estimate_expiry_date_days:{required:X.withMessage(o("validation.required"),nt(a.value)),numeric:X.withMessage(o("validation.numbers_only"),it)}}})),s=ot(m,{expiryDateSettings:u});async function _(){if(s.value.expiryDateSettings.$touch(),s.value.expiryDateSettings.$invalid)return!1;g.value=!0;let n={settings:x({},u)};return a.value||delete n.settings.estimate_expiry_date_days,await i.updateCompanySettings({data:n,message:"settings.customization.estimates.estimate_settings_updated"}),g.value=!1,!0}return(n,l)=>{const y=d("BaseSwitchSection"),B=d("BaseInput"),C=d("BaseInputGroup"),h=d("BaseIcon"),S=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",ie,b(n.$t("settings.customization.estimates.expiry_date")),1),c("p",oe,b(n.$t("settings.customization.estimates.expiry_date_description")),1),t(y,{modelValue:e(a),"onUpdate:modelValue":l[0]||(l[0]=w=>H(a)?a.value=w:null),title:n.$t("settings.customization.estimates.set_expiry_date_automatically"),description:n.$t("settings.customization.estimates.set_expiry_date_automatically_description")},null,8,["modelValue","title","description"]),e(a)?($(),E(C,{key:0,label:n.$t("settings.customization.estimates.expiry_date_days"),error:e(s).expiryDateSettings.estimate_expiry_date_days.$error&&e(s).expiryDateSettings.estimate_expiry_date_days.$errors[0].$message,class:"mt-2 mb-4"},{default:r(()=>[c("div",le,[t(B,{modelValue:e(u).estimate_expiry_date_days,"onUpdate:modelValue":l[1]||(l[1]=w=>e(u).estimate_expiry_date_days=w),invalid:e(s).expiryDateSettings.estimate_expiry_date_days.$error,type:"number",onInput:l[2]||(l[2]=w=>e(s).expiryDateSettings.estimate_expiry_date_days.$touch())},null,8,["modelValue","invalid"])])]),_:1},8,["label","error"])):R("",!0),t(S,{loading:e(g),disabled:e(g),variant:"primary",type:"submit",class:"mt-4"},{left:r(w=>[e(g)?R("",!0):($(),E(h,{key:0,class:G(w.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,ne)}}},ue=["onSubmit"],re={class:"text-gray-900 text-lg font-medium"},de={class:"mt-1 text-sm text-gray-500 mb-2"},ce={setup(v){const o=N(),i=M("utils"),p=z(["customer","customerCustom","estimate","estimateCustom","company"]),g=z(["billing","customer","customerCustom","estimateCustom"]),u=z(["shipping","customer","customerCustom","estimateCustom"]),a=z(["company","estimateCustom"]);let m=z(!1);const s=T({estimate_mail_body:null,estimate_company_address_format:null,estimate_shipping_address_format:null,estimate_billing_address_format:null});i.mergeSettings(s,x({},o.selectedCompanySettings));async function _(){m.value=!0;let n={settings:x({},s)};return await o.updateCompanySettings({data:n,message:"settings.customization.estimates.estimate_settings_updated"}),m.value=!1,!0}return(n,l)=>{const y=d("BaseCustomInput"),B=d("BaseInputGroup"),C=d("BaseIcon"),h=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",re,b(n.$t("settings.customization.estimates.default_formats")),1),c("p",de,b(n.$t("settings.customization.estimates.default_formats_description")),1),t(B,{label:n.$t("settings.customization.estimates.default_estimate_email_body"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_mail_body,"onUpdate:modelValue":l[0]||(l[0]=S=>e(s).estimate_mail_body=S),fields:p.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.estimates.company_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_company_address_format,"onUpdate:modelValue":l[1]||(l[1]=S=>e(s).estimate_company_address_format=S),fields:a.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.estimates.shipping_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_shipping_address_format,"onUpdate:modelValue":l[2]||(l[2]=S=>e(s).estimate_shipping_address_format=S),fields:u.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.estimates.billing_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_billing_address_format,"onUpdate:modelValue":l[3]||(l[3]=S=>e(s).estimate_billing_address_format=S),fields:g.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(h,{loading:e(m),disabled:e(m),variant:"primary",type:"submit",class:"mt-4"},{left:r(S=>[e(m)?R("",!0):($(),E(C,{key:0,class:G(S.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,ue)}}},_e={class:"text-gray-900 text-lg font-medium"},pe={class:"mt-1 text-sm text-gray-500"},ge={setup(v){const{t:o,tm:i}=j(),p=N(),g=Z(),u=M("utils"),a=T({estimate_convert_action:null});u.mergeSettings(a,x({},p.selectedCompanySettings)),F(()=>g.config.estimate_convert_action.map(s=>(s.title=o(s.key),s)));async function m(){let s={settings:x({},a)};return await p.updateCompanySettings({data:s,message:"settings.customization.estimates.estimate_settings_updated"}),!0}return(s,_)=>{const n=d("BaseRadio"),l=d("BaseInputGroup");return $(),D(L,null,[c("h6",_e,b(s.$tc("settings.customization.estimates.convert_estimate_options")),1),c("p",pe,b(s.$t("settings.customization.estimates.convert_estimate_description")),1),t(l,{required:""},{default:r(()=>[t(n,{id:"no_action",modelValue:e(a).estimate_convert_action,"onUpdate:modelValue":[_[0]||(_[0]=y=>e(a).estimate_convert_action=y),m],label:s.$t("settings.customization.estimates.no_action"),size:"sm",name:"filter",value:"no_action",class:"mt-2"},null,8,["modelValue","label"]),t(n,{id:"delete_estimate",modelValue:e(a).estimate_convert_action,"onUpdate:modelValue":[_[1]||(_[1]=y=>e(a).estimate_convert_action=y),m],label:s.$t("settings.customization.estimates.delete_estimate"),size:"sm",name:"filter",value:"delete_estimate",class:"my-2"},null,8,["modelValue","label"]),t(n,{id:"mark_estimate_as_accepted",modelValue:e(a).estimate_convert_action,"onUpdate:modelValue":[_[2]||(_[2]=y=>e(a).estimate_convert_action=y),m],label:s.$t("settings.customization.estimates.mark_estimate_as_accepted"),size:"sm",name:"filter",value:"mark_estimate_as_accepted"},null,8,["modelValue","label"])]),_:1})],64)}}},ye={class:"divide-y divide-gray-200"},fe={setup(v){const o=M("utils"),i=N(),p=T({estimate_email_attachment:null});o.mergeSettings(p,x({},i.selectedCompanySettings));const g=F({get:()=>p.estimate_email_attachment==="YES",set:async u=>{const a=u?"YES":"NO";let m={settings:{estimate_email_attachment:a}};p.estimate_email_attachment=a,await i.updateCompanySettings({data:m,message:"general.setting_updated"})}});return(u,a)=>{const m=d("BaseDivider"),s=d("BaseSwitchSection");return $(),D(L,null,[t(ae),t(m,{class:"my-8"}),t(me),t(m,{class:"my-8"}),t(ge),t(m,{class:"my-8"}),t(ce),t(m,{class:"mt-6 mb-2"}),c("ul",ye,[t(s,{modelValue:e(g),"onUpdate:modelValue":a[0]||(a[0]=_=>H(g)?g.value=_:null),title:u.$t("settings.customization.estimates.estimate_email_attachment"),description:u.$t("settings.customization.estimates.estimate_email_attachment_setting_description")},null,8,["modelValue","title","description"])])],64)}}},ve={setup(v){const o=zt();return(i,p)=>($(),E(tt,{type:"payment","type-store":e(o),"default-series":"PAY"},null,8,["type-store"]))}},be=["onSubmit"],Se={class:"text-gray-900 text-lg font-medium"},$e={class:"mt-1 text-sm text-gray-500 mb-2"},Be={setup(v){const o=N(),i=M("utils"),p=z(["customer","customerCustom","company","payment","paymentCustom"]),g=z(["billing","customer","customerCustom","paymentCustom"]),u=z(["company","paymentCustom"]);let a=z(!1);const m=T({payment_mail_body:null,payment_company_address_format:null,payment_from_customer_address_format:null});i.mergeSettings(m,x({},o.selectedCompanySettings));async function s(){a.value=!0;let _={settings:x({},m)};return await o.updateCompanySettings({data:_,message:"settings.customization.payments.payment_settings_updated"}),a.value=!1,!0}return(_,n)=>{const l=d("BaseCustomInput"),y=d("BaseInputGroup"),B=d("BaseIcon"),C=d("BaseButton");return $(),D("form",{onSubmit:Y(s,["prevent"])},[c("h6",Se,b(_.$t("settings.customization.payments.default_formats")),1),c("p",$e,b(_.$t("settings.customization.payments.default_formats_description")),1),t(y,{label:_.$t("settings.customization.payments.default_payment_email_body"),class:"mt-6 mb-4"},{default:r(()=>[t(l,{modelValue:e(m).payment_mail_body,"onUpdate:modelValue":n[0]||(n[0]=h=>e(m).payment_mail_body=h),fields:p.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(y,{label:_.$t("settings.customization.payments.company_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(l,{modelValue:e(m).payment_company_address_format,"onUpdate:modelValue":n[1]||(n[1]=h=>e(m).payment_company_address_format=h),fields:u.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(y,{label:_.$t("settings.customization.payments.from_customer_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(l,{modelValue:e(m).payment_from_customer_address_format,"onUpdate:modelValue":n[2]||(n[2]=h=>e(m).payment_from_customer_address_format=h),fields:g.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(C,{loading:e(a),disabled:e(a),variant:"primary",type:"submit",class:"mt-4"},{left:r(h=>[e(a)?R("",!0):($(),E(B,{key:0,class:G(h.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(_.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,be)}}},he={class:"divide-y divide-gray-200"},ze={setup(v){const o=M("utils"),i=N(),p=T({payment_email_attachment:null});o.mergeSettings(p,x({},i.selectedCompanySettings));const g=F({get:()=>p.payment_email_attachment==="YES",set:async u=>{const a=u?"YES":"NO";let m={settings:{payment_email_attachment:a}};p.payment_email_attachment=a,await i.updateCompanySettings({data:m,message:"general.setting_updated"})}});return(u,a)=>{const m=d("BaseDivider"),s=d("BaseSwitchSection");return $(),D(L,null,[t(ve),t(m,{class:"my-8"}),t(Be),t(m,{class:"mt-6 mb-2"}),c("ul",he,[t(s,{modelValue:e(g),"onUpdate:modelValue":a[0]||(a[0]=_=>H(g)?g.value=_:null),title:u.$t("settings.customization.payments.payment_email_attachment"),description:u.$t("settings.customization.payments.payment_email_attachment_setting_description")},null,8,["modelValue","title","description"])])],64)}}},Ve={class:"flex flex-wrap justify-end mt-2 lg:flex-nowrap"},Ie={class:"inline-block"},xe={setup(v){const{t:o}=j(),i=z(null),p=yt(),g=ft(),u=vt(),a=F(()=>[{key:"name",label:o("settings.customization.items.unit_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function m({page:l,filter:y,sort:B}){let C={orderByField:B.fieldName||"created_at",orderBy:B.order||"desc",page:l},h=await p.fetchItemUnits(C);return{data:h.data.data,pagination:{totalPages:h.data.meta.last_page,currentPage:l,totalCount:h.data.meta.total,limit:5}}}async function s(){g.openModal({title:o("settings.customization.items.add_item_unit"),componentName:"ItemUnitModal",refreshData:i.value.refresh,size:"sm"})}async function _(l){p.fetchItemUnit(l.data.id),g.openModal({title:o("settings.customization.items.edit_item_unit"),componentName:"ItemUnitModal",id:l.data.id,data:l.data,refreshData:i.value&&i.value.refresh})}function n(l){u.openDialog({title:o("general.are_you_sure"),message:o("settings.customization.items.item_unit_confirm_delete"),yesLabel:o("general.yes"),noLabel:o("general.no"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async y=>{y&&(await p.deleteItemUnit(l.data.id),i.value&&i.value.refresh())})}return(l,y)=>{const B=d("BaseIcon"),C=d("BaseButton"),h=d("BaseDropdownItem"),S=d("BaseDropdown"),w=d("BaseTable");return $(),D(L,null,[t(Vt),c("div",Ve,[t(C,{variant:"primary-outline",onClick:s},{left:r(U=>[t(B,{class:G(U.class),name:"PlusIcon"},null,8,["class"])]),default:r(()=>[k(" "+b(l.$t("settings.customization.items.add_item_unit")),1)]),_:1})]),t(w,{ref:(U,P)=>{P.table=U,i.value=U},class:"mt-10",data:m,columns:e(a)},{"cell-actions":r(({row:U})=>[t(S,null,{activator:r(()=>[c("div",Ie,[t(B,{name:"DotsHorizontalIcon",class:"text-gray-500"})])]),default:r(()=>[t(h,{onClick:P=>_(U)},{default:r(()=>[t(B,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),k(" "+b(l.$t("general.edit")),1)]),_:2},1032,["onClick"]),t(h,{onClick:P=>n(U)},{default:r(()=>[t(B,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),k(" "+b(l.$t("general.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["columns"])],64)}}},we={class:"relative"},Ne={setup(v){return(o,i)=>{const p=d("BaseTab"),g=d("BaseTabGroup"),u=d("BaseCard");return $(),D("div",we,[t(u,{"container-class":"px-4 py-5 sm:px-8 sm:py-2"},{default:r(()=>[t(g,null,{default:r(()=>[t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.invoices.title")},{default:r(()=>[t(se)]),_:1},8,["title"]),t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.estimates.title")},{default:r(()=>[t(fe)]),_:1},8,["title"]),t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.payments.title")},{default:r(()=>[t(ze)]),_:1},8,["title"]),t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.items.title")},{default:r(()=>[t(xe)]),_:1},8,["title"])]),_:1})]),_:1})])}}};export{Ne as default};
import{D as I,_ as L,a as M}from"./EstimateIcon.4571f94d.js";import{o as m,e as v,m as $,h as r,a as V,r as i,l as h,w as s,f as t,g as F,t as u,aj as T,ah as w,u as n,i as _,J as z,G as A,k as D}from"./vendor.01d0adc5.js";import{u as C}from"./global.8697213a.js";import{h as Z}from"./auth.77d12976.js";import{_ as k}from"./main.832b14c7.js";import S from"./BaseTable.440de545.js";const q=r("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),N=r("path",{d:"M17.8 17.8C17.1635 17.8 16.5531 18.0529 16.103 18.503C15.6529 18.9531 15.4 19.5635 15.4 20.2V21.4H34.6V20.2C34.6 19.5635 34.3472 18.9531 33.8971 18.503C33.447 18.0529 32.8365 17.8 32.2 17.8H17.8Z",fill:"currentColor"},null,-1),G=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M34.6 23.8H15.4V29.8C15.4 30.4366 15.6529 31.047 16.103 31.4971C16.5531 31.9472 17.1635 32.2 17.8 32.2H32.2C32.8365 32.2 33.447 31.9472 33.8971 31.4971C34.3472 31.047 34.6 30.4366 34.6 29.8V23.8ZM17.8 28.6C17.8 28.2818 17.9265 27.9766 18.1515 27.7515C18.3765 27.5265 18.6818 27.4 19 27.4H20.2C20.5183 27.4 20.8235 27.5265 21.0486 27.7515C21.2736 27.9766 21.4 28.2818 21.4 28.6C21.4 28.9183 21.2736 29.2235 21.0486 29.4486C20.8235 29.6736 20.5183 29.8 20.2 29.8H19C18.6818 29.8 18.3765 29.6736 18.1515 29.4486C17.9265 29.2235 17.8 28.9183 17.8 28.6ZM23.8 27.4C23.4818 27.4 23.1765 27.5265 22.9515 27.7515C22.7265 27.9766 22.6 28.2818 22.6 28.6C22.6 28.9183 22.7265 29.2235 22.9515 29.4486C23.1765 29.6736 23.4818 29.8 23.8 29.8H25C25.3183 29.8 25.6235 29.6736 25.8486 29.4486C26.0736 29.2235 26.2 28.9183 26.2 28.6C26.2 28.2818 26.0736 27.9766 25.8486 27.7515C25.6235 27.5265 25.3183 27.4 25 27.4H23.8Z",fill:"currentColor"},null,-1),O=[q,N,G],J={props:{colorClass:{type:String,default:"text-primary-500"}},setup(c){return(a,o)=>(m(),v("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:$(c.colorClass)},O,2))}},{defineStore:R}=window.pinia,P=R({id:"dashboard",state:()=>({recentInvoices:[],recentEstimates:[],invoiceCount:0,estimateCount:0,paymentCount:0,totalDueAmount:[],isDashboardDataLoaded:!1}),actions:{loadData(c){const a=C();return new Promise((o,d)=>{V.get(`/api/v1/${a.companySlug}/customer/dashboard`,{data:c}).then(e=>{this.totalDueAmount=e.data.due_amount,this.estimateCount=e.data.estimate_count,this.invoiceCount=e.data.invoice_count,this.paymentCount=e.data.payment_count,this.recentInvoices=e.data.recentInvoices,this.recentEstimates=e.data.recentEstimates,a.getDashboardDataLoaded=!0,o(e)}).catch(e=>{Z(e),d(e)})})}}}),K={},Q={class:"flex items-center"};function U(c,a){const o=i("BaseContentPlaceholdersText"),d=i("BaseContentPlaceholdersBox"),e=i("BaseContentPlaceholders");return m(),h(e,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-3 xl:p-4"},{default:s(()=>[r("div",null,[t(o,{class:"h-5 -mb-1 w-14 xl:mb-6 xl:h-7",lines:1}),t(o,{class:"h-3 w-28 xl:h-4",lines:1})]),r("div",Q,[t(d,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var W=k(K,[["render",U]]);const X={},Y={class:"flex items-center"};function ee(c,a){const o=i("BaseContentPlaceholdersText"),d=i("BaseContentPlaceholdersBox"),e=i("BaseContentPlaceholders");return m(),h(e,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-2 xl:p-4"},{default:s(()=>[r("div",null,[t(o,{class:"w-12 h-5 -mb-1 xl:mb-6 xl:h-7",lines:1}),t(o,{class:"w-20 h-3 xl:h-4",lines:1})]),r("div",Y,[t(d,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var te=k(X,[["render",ee]]);const ae={class:"text-xl font-semibold leading-tight text-black xl:text-3xl"},se={class:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},oe={class:"flex items-center"},f={props:{iconComponent:{type:Object,required:!0},loading:{type:Boolean,default:!1},route:{type:Object,required:!0},label:{type:String,required:!0},large:{type:Boolean,default:!1}},setup(c){return(a,o)=>{const d=i("router-link");return c.loading?c.large?(m(),h(W,{key:1})):(m(),h(te,{key:2})):(m(),h(d,{key:0,class:$(["relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-50 xl:p-4 lg:col-span-2",{"lg:!col-span-3":c.large}]),to:c.route},{default:s(()=>[r("div",null,[r("span",ae,[F(a.$slots,"default")]),r("span",se,u(c.label),1)]),r("div",oe,[(m(),h(T(c.iconComponent),{class:"w-10 h-10 xl:w-12 xl:h-12"}))])]),_:3},8,["class","to"]))}}},ne={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},le={setup(c){w("utils");const a=C(),o=P();return o.loadData(),(d,e)=>{const g=i("BaseFormatMoney");return m(),v("div",ne,[t(f,{"icon-component":I,loading:!n(a).getDashboardDataLoaded,route:{name:"invoices.dashboard"},large:!0,label:d.$t("dashboard.cards.due_amount")},{default:s(()=>[t(g,{amount:n(o).totalDueAmount,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["loading","route","label"]),t(f,{"icon-component":L,loading:!n(a).getDashboardDataLoaded,route:{name:"invoices.dashboard"},label:d.$t("dashboard.cards.invoices")},{default:s(()=>[_(u(n(o).invoiceCount),1)]),_:1},8,["loading","route","label"]),t(f,{"icon-component":M,loading:!n(a).getDashboardDataLoaded,route:{name:"estimates.dashboard"},label:d.$t("dashboard.cards.estimates")},{default:s(()=>[_(u(n(o).estimateCount),1)]),_:1},8,["loading","route","label"]),t(f,{"icon-component":J,loading:!n(a).getDashboardDataLoaded,route:{name:"payments.dashboard"},label:d.$t("dashboard.cards.payments")},{default:s(()=>[_(u(n(o).paymentCount),1)]),_:1},8,["loading","route","label"])])}}},re={class:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},ce={class:"due-invoices"},de={class:"relative z-10 flex items-center justify-between mb-3"},ie={class:"mb-0 text-xl font-semibold leading-normal"},ue={class:"recent-estimates"},me={class:"relative z-10 flex items-center justify-between mb-3"},_e={class:"mb-0 text-xl font-semibold leading-normal"},he={setup(c){const a=C(),o=P(),{tm:d,t:e}=z();w("utils"),A();const g=D(()=>[{key:"formattedDueDate",label:e("dashboard.recent_invoices_card.due_on")},{key:"invoice_number",label:e("invoices.number")},{key:"paid_status",label:e("invoices.status")},{key:"due_amount",label:e("dashboard.recent_invoices_card.amount_due")}]),j=D(()=>[{key:"formattedEstimateDate",label:e("dashboard.recent_estimate_card.date")},{key:"estimate_number",label:e("estimates.number")},{key:"status",label:e("estimates.status")},{key:"total",label:e("dashboard.recent_estimate_card.amount_due")}]);return(b,p)=>{const x=i("BaseButton"),y=i("router-link"),E=i("BasePaidStatusBadge"),B=i("BaseFormatMoney"),H=i("BaseEstimateStatusBadge");return m(),v("div",re,[r("div",ce,[r("div",de,[r("h6",ie,u(b.$t("dashboard.recent_invoices_card.title")),1),t(x,{size:"sm",variant:"primary-outline",onClick:p[0]||(p[0]=l=>b.$router.push({name:"invoices.dashboard"}))},{default:s(()=>[_(u(b.$t("dashboard.recent_invoices_card.view_all")),1)]),_:1})]),t(S,{data:n(o).recentInvoices,columns:n(g),loading:!n(a).getDashboardDataLoaded},{"cell-invoice_number":s(({row:l})=>[t(y,{to:{path:`/${n(a).companySlug}/customer/invoices/${l.data.id}/view`},class:"font-medium text-primary-500"},{default:s(()=>[_(u(l.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-paid_status":s(({row:l})=>[t(E,{status:l.data.paid_status},{default:s(()=>[_(u(l.data.paid_status),1)]),_:2},1032,["status"])]),"cell-due_amount":s(({row:l})=>[t(B,{amount:l.data.due_amount,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["data","columns","loading"])]),r("div",ue,[r("div",me,[r("h6",_e,u(b.$t("dashboard.recent_estimate_card.title")),1),t(x,{variant:"primary-outline",size:"sm",onClick:p[1]||(p[1]=l=>b.$router.push({name:"estimates.dashboard"}))},{default:s(()=>[_(u(b.$t("dashboard.recent_estimate_card.view_all")),1)]),_:1})]),t(S,{data:n(o).recentEstimates,columns:n(j),loading:!n(a).getDashboardDataLoaded},{"cell-estimate_number":s(({row:l})=>[t(y,{to:{path:`/${n(a).companySlug}/customer/estimates/${l.data.id}/view`},class:"font-medium text-primary-500"},{default:s(()=>[_(u(l.data.estimate_number),1)]),_:2},1032,["to"])]),"cell-status":s(({row:l})=>[t(H,{status:l.data.status,class:"px-3 py-1"},{default:s(()=>[_(u(l.data.status),1)]),_:2},1032,["status"])]),"cell-total":s(({row:l})=>[t(B,{amount:l.data.total,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["data","columns","loading"])])])}}},xe={setup(c){return(a,o)=>{const d=i("BasePage");return m(),h(d,null,{default:s(()=>[t(le),t(he)]),_:1})}}};export{xe as default};
import{D as O,_ as L,a as F}from"./EstimateIcon.4571f94d.js";import{o as _,e as v,m as j,h as t,r as c,l as x,w as r,f as e,g as R,t as m,aj as W,a as z,d as q,ah as A,u as s,i as y,B as $,C as H,J as U,k as V,V as M,G as Z,aN as G,D as J}from"./vendor.01d0adc5.js";import{_ as I,h as Y,b as N,e as D,g as h}from"./main.832b14c7.js";import{_ as K}from"./LineChart.cef8475e.js";import{_ as Q}from"./InvoiceIndexDropdown.a0cb5742.js";import{_ as X}from"./EstimateIndexDropdown.5b4a2113.js";const tt=t("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),et=t("path",{d:"M28.2656 23.0547C27.3021 24.0182 26.1302 24.5 24.75 24.5C23.3698 24.5 22.1849 24.0182 21.1953 23.0547C20.2318 22.0651 19.75 20.8802 19.75 19.5C19.75 18.1198 20.2318 16.9479 21.1953 15.9844C22.1849 14.9948 23.3698 14.5 24.75 14.5C26.1302 14.5 27.3021 14.9948 28.2656 15.9844C29.2552 16.9479 29.75 18.1198 29.75 19.5C29.75 20.8802 29.2552 22.0651 28.2656 23.0547ZM28.2656 25.75C29.6979 25.75 30.9219 26.2708 31.9375 27.3125C32.9792 28.3281 33.5 29.5521 33.5 30.9844V32.625C33.5 33.1458 33.3177 33.5885 32.9531 33.9531C32.5885 34.3177 32.1458 34.5 31.625 34.5H17.875C17.3542 34.5 16.9115 34.3177 16.5469 33.9531C16.1823 33.5885 16 33.1458 16 32.625V30.9844C16 29.5521 16.5078 28.3281 17.5234 27.3125C18.5651 26.2708 19.8021 25.75 21.2344 25.75H21.8984C22.8099 26.1667 23.7604 26.375 24.75 26.375C25.7396 26.375 26.6901 26.1667 27.6016 25.75H28.2656Z",fill:"currentColor"},null,-1),at=[tt,et],st={props:{colorClass:{type:String,default:"text-primary-500"}},setup(i){return(o,a)=>(_(),v("svg",{width:"50",height:"50",viewBox:"0 0 50 50",class:j(i.colorClass),fill:"none",xmlns:"http://www.w3.org/2000/svg"},at,2))}},ot={},lt={class:"flex items-center"};function nt(i,o){const a=c("BaseContentPlaceholdersText"),n=c("BaseContentPlaceholdersBox"),d=c("BaseContentPlaceholders");return _(),x(d,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-3 xl:p-4"},{default:r(()=>[t("div",null,[e(a,{class:"h-5 -mb-1 w-14 xl:mb-6 xl:h-7",lines:1}),e(a,{class:"h-3 w-28 xl:h-4",lines:1})]),t("div",lt,[e(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var ct=I(ot,[["render",nt]]);const rt={},it={class:"flex items-center"};function dt(i,o){const a=c("BaseContentPlaceholdersText"),n=c("BaseContentPlaceholdersBox"),d=c("BaseContentPlaceholders");return _(),x(d,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-2 xl:p-4"},{default:r(()=>[t("div",null,[e(a,{class:"w-12 h-5 -mb-1 xl:mb-6 xl:h-7",lines:1}),e(a,{class:"w-20 h-3 xl:h-4",lines:1})]),t("div",it,[e(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var ut=I(rt,[["render",dt]]);const mt={class:"text-xl font-semibold leading-tight text-black xl:text-3xl"},_t={class:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},ht={class:"flex items-center"},B={props:{iconComponent:{type:Object,required:!0},loading:{type:Boolean,default:!1},route:{type:String,required:!0},label:{type:String,required:!0},large:{type:Boolean,default:!1}},setup(i){return(o,a)=>{const n=c("router-link");return i.loading?i.large?(_(),x(ct,{key:1})):(_(),x(ut,{key:2})):(_(),x(n,{key:0,class:j(["relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-50 xl:p-4 lg:col-span-2",{"lg:!col-span-3":i.large}]),to:i.route},{default:r(()=>[t("div",null,[t("span",mt,[R(o.$slots,"default")]),t("span",_t,m(i.label),1)]),t("div",ht,[(_(),x(W(i.iconComponent),{class:"w-10 h-10 xl:w-12 xl:h-12"}))])]),_:3},8,["class","to"]))}}},T=(i=!1)=>(i?window.pinia.defineStore:q)({id:"dashboard",state:()=>({stats:{totalAmountDue:0,totalCustomerCount:0,totalInvoiceCount:0,totalEstimateCount:0},chartData:{months:[],invoiceTotals:[],expenseTotals:[],receiptTotals:[],netIncomeTotals:[]},totalSales:null,totalReceipts:null,totalExpenses:null,totalNetIncome:null,recentDueInvoices:[],recentEstimates:[],isDashboardDataLoaded:!1}),actions:{loadData(a){return new Promise((n,d)=>{z.get("/api/v1/dashboard",{params:a}).then(l=>{this.stats.totalAmountDue=l.data.total_amount_due,this.stats.totalCustomerCount=l.data.total_customer_count,this.stats.totalInvoiceCount=l.data.total_invoice_count,this.stats.totalEstimateCount=l.data.total_estimate_count,this.chartData&&l.data.chart_data&&(this.chartData.months=l.data.chart_data.months,this.chartData.invoiceTotals=l.data.chart_data.invoice_totals,this.chartData.expenseTotals=l.data.chart_data.expense_totals,this.chartData.receiptTotals=l.data.chart_data.receipt_totals,this.chartData.netIncomeTotals=l.data.chart_data.net_income_totals),this.totalSales=l.data.total_sales,this.totalReceipts=l.data.total_receipts,this.totalExpenses=l.data.total_expenses,this.totalNetIncome=l.data.total_net_income,this.recentDueInvoices=l.data.recent_due_invoices,this.recentEstimates=l.data.recent_estimates,this.isDashboardDataLoaded=!0,n(l)}).catch(l=>{Y(l),d(l)})})}}})(),pt={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},bt={setup(i){A("utils");const o=T(),a=N(),n=D();return(d,l)=>{const f=c("BaseFormatMoney");return _(),v("div",pt,[e(B,{"icon-component":O,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_INVOICE)?"/admin/invoices":"",large:!0,label:d.$t("dashboard.cards.due_amount")},{default:r(()=>[e(f,{amount:s(o).stats.totalAmountDue,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])]),_:1},8,["loading","route","label"]),e(B,{"icon-component":st,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_CUSTOMER)?"/admin/customers":"",label:d.$t("dashboard.cards.customers")},{default:r(()=>[y(m(s(o).stats.totalCustomerCount),1)]),_:1},8,["loading","route","label"]),e(B,{"icon-component":L,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_INVOICE)?"/admin/invoices":"",label:d.$t("dashboard.cards.invoices")},{default:r(()=>[y(m(s(o).stats.totalInvoiceCount),1)]),_:1},8,["loading","route","label"]),e(B,{"icon-component":F,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_ESTIMATE)?"/admin/estimates":"",label:d.$t("dashboard.cards.estimates")},{default:r(()=>[y(m(s(o).stats.totalEstimateCount),1)]),_:1},8,["loading","route","label"])])}}},xt={},ft={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-8"},gt={class:"flex items-center justify-between mb-2 xl:mb-4"},yt={class:"grid grid-cols-3 col-span-10 text-center border-t border-l border-gray-200 border-solid lg:border-t-0 lg:text-right lg:col-span-3 xl:col-span-2 lg:grid-cols-1"},Ct={class:"flex flex-col items-center justify-center p-6 lg:justify-end lg:items-end"},vt={class:"flex flex-col items-center justify-center p-6 lg:justify-end lg:items-end"},wt={class:"flex flex-col items-center justify-center p-6 lg:justify-end lg:items-end"},$t={class:"flex flex-col items-center justify-center col-span-3 p-6 border-t border-gray-200 border-solid lg:justify-end lg:items-end lg:col-span-1"};function Dt(i,o){const a=c("BaseContentPlaceholdersText"),n=c("BaseContentPlaceholdersBox"),d=c("BaseContentPlaceholders");return _(),x(d,{class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},{default:r(()=>[t("div",ft,[t("div",gt,[e(a,{class:"h-10 w-36",lines:1}),e(a,{class:"h-10 w-36 !mt-0",lines:1})]),e(n,{class:"h-80 xl:h-72 sm:w-full"})]),t("div",yt,[t("div",Ct,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",vt,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",wt,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",$t,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var Bt=I(xt,[["render",Dt]]);const Et={key:0,class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},It={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-6"},Tt={class:"flex justify-between mt-1 mb-4 flex-col md:flex-row"},St={class:"flex items-center sw-section-title h-10"},kt={class:"w-full my-2 md:m-0 md:w-40 h-10"},Pt={class:"grid grid-cols-3 col-span-10 text-center border-t border-l border-gray-200 border-solid lg:border-t-0 lg:text-right lg:col-span-3 xl:col-span-2 lg:grid-cols-1"},jt={class:"p-6"},At={class:"text-xs leading-5 lg:text-sm"},Vt=t("br",null,null,-1),Mt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl"},Nt={class:"p-6"},Ot={class:"text-xs leading-5 lg:text-sm"},Lt=t("br",null,null,-1),Ft={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-green-400"},Rt={class:"p-6"},Wt={class:"text-xs leading-5 lg:text-sm"},zt=t("br",null,null,-1),qt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-red-400"},Ht={class:"col-span-3 p-6 border-t border-gray-200 border-solid lg:col-span-1"},Ut={class:"text-xs leading-5 lg:text-sm"},Zt=t("br",null,null,-1),Gt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-primary-500"},Jt={setup(i){const o=T(),a=N();A("utils");const n=D(),d=$(["This year","Previous year"]),l=$("This year");H(l,p=>{p==="Previous year"?f({previous_year:!0}):f()},{immediate:!0});async function f(p){n.hasAbilities(h.DASHBOARD)&&await o.loadData(p)}return(p,C)=>{const E=c("BaseIcon"),g=c("BaseMultiselect"),b=c("BaseFormatMoney");return _(),v("div",null,[s(o).isDashboardDataLoaded?(_(),v("div",Et,[t("div",It,[t("div",Tt,[t("h6",St,[e(E,{name:"ChartSquareBarIcon",class:"text-primary-400 mr-1"}),y(" "+m(p.$t("dashboard.monthly_chart.title")),1)]),t("div",kt,[e(g,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=w=>l.value=w),options:d.value,"allow-empty":!1,"show-labels":!1,placeholder:p.$t("dashboard.select_year"),"can-deselect":!1},null,8,["modelValue","options","placeholder"])])]),e(K,{invoices:s(o).chartData.invoiceTotals,expenses:s(o).chartData.expenseTotals,receipts:s(o).chartData.receiptTotals,income:s(o).chartData.netIncomeTotals,labels:s(o).chartData.months,class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])]),t("div",Pt,[t("div",jt,[t("span",At,m(p.$t("dashboard.chart_info.total_sales")),1),Vt,t("span",Mt,[e(b,{amount:s(o).totalSales,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Nt,[t("span",Ot,m(p.$t("dashboard.chart_info.total_receipts")),1),Lt,t("span",Ft,[e(b,{amount:s(o).totalReceipts,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Rt,[t("span",Wt,m(p.$t("dashboard.chart_info.total_expense")),1),zt,t("span",qt,[e(b,{amount:s(o).totalExpenses,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Ht,[t("span",Ut,m(p.$t("dashboard.chart_info.net_income")),1),Zt,t("span",Gt,[e(b,{amount:s(o).totalNetIncome,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])])])])):(_(),x(Bt,{key:1}))])}}},Yt={class:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},Kt={class:"due-invoices"},Qt={class:"relative z-10 flex items-center justify-between mb-3"},Xt={class:"mb-0 text-xl font-semibold leading-normal"},te={class:"recent-estimates"},ee={class:"relative z-10 flex items-center justify-between mb-3"},ae={class:"mb-0 text-xl font-semibold leading-normal"},se={setup(i){const o=T(),{t:a}=U(),n=D(),d=$(null),l=$(null),f=V(()=>[{key:"formattedDueDate",label:a("dashboard.recent_invoices_card.due_on")},{key:"user",label:a("dashboard.recent_invoices_card.customer")},{key:"due_amount",label:a("dashboard.recent_invoices_card.amount_due")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]),p=V(()=>[{key:"formattedEstimateDate",label:a("dashboard.recent_estimate_card.date")},{key:"user",label:a("dashboard.recent_estimate_card.customer")},{key:"total",label:a("dashboard.recent_estimate_card.amount_due")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]);function C(){return n.hasAbilities([h.DELETE_INVOICE,h.EDIT_INVOICE,h.VIEW_INVOICE,h.SEND_INVOICE])}function E(){return n.hasAbilities([h.CREATE_ESTIMATE,h.EDIT_ESTIMATE,h.VIEW_ESTIMATE,h.SEND_ESTIMATE])}return(g,b)=>{const w=c("BaseButton"),S=c("router-link"),k=c("BaseFormatMoney"),P=c("BaseTable");return _(),v("div",null,[t("div",Yt,[t("div",Kt,[t("div",Qt,[t("h6",Xt,m(g.$t("dashboard.recent_invoices_card.title")),1),e(w,{size:"sm",variant:"primary-outline",onClick:b[0]||(b[0]=u=>g.$router.push("/admin/invoices"))},{default:r(()=>[y(m(g.$t("dashboard.recent_invoices_card.view_all")),1)]),_:1})]),e(P,{data:s(o).recentDueInvoices,columns:s(f),loading:!s(o).isDashboardDataLoaded},M({"cell-user":r(({row:u})=>[e(S,{to:{path:`invoices/${u.data.id}/view`},class:"font-medium text-primary-500"},{default:r(()=>[y(m(u.data.customer.name),1)]),_:2},1032,["to"])]),"cell-due_amount":r(({row:u})=>[e(k,{amount:u.data.due_amount,currency:u.data.customer.currency},null,8,["amount","currency"])]),_:2},[C()?{name:"cell-actions",fn:r(({row:u})=>[e(Q,{row:u.data,table:d.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])]),t("div",te,[t("div",ee,[t("h6",ae,m(g.$t("dashboard.recent_estimate_card.title")),1),e(w,{variant:"primary-outline",size:"sm",onClick:b[1]||(b[1]=u=>g.$router.push("/admin/estimates"))},{default:r(()=>[y(m(g.$t("dashboard.recent_estimate_card.view_all")),1)]),_:1})]),e(P,{data:s(o).recentEstimates,columns:s(p),loading:!s(o).isDashboardDataLoaded},M({"cell-user":r(({row:u})=>[e(S,{to:{path:`estimates/${u.data.id}/view`},class:"font-medium text-primary-500"},{default:r(()=>[y(m(u.data.customer.name),1)]),_:2},1032,["to"])]),"cell-total":r(({row:u})=>[e(k,{amount:u.data.total,currency:u.data.customer.currency},null,8,["amount","currency"])]),_:2},[E()?{name:"cell-actions",fn:r(({row:u})=>[e(X,{row:u,table:l.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])])])}}},de={setup(i){const o=Z(),a=D(),n=G();return J(()=>{o.meta.ability&&!a.hasAbilities(o.meta.ability)?n.push({name:"account.settings"}):o.meta.isOwner&&!a.currentUser.is_owner&&n.push({name:"account.settings"})}),(d,l)=>{const f=c("BasePage");return _(),x(f,null,{default:r(()=>[e(bt),e(Jt),e(se)]),_:1})}}};export{de as default};
import{aU as $r,aV as Br,aQ as Kr,aW as Hr,o as Wr,e as Xr,h as Yr}from"./vendor.01d0adc5.js";import{_ as Vr}from"./main.832b14c7.js";var gr={exports:{}};/**!
var A=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var I=(a,e,n)=>e in a?A(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,V=(a,e)=>{for(var n in e||(e={}))W.call(e,n)&&I(a,n,e[n]);if(x)for(var n of x(e))X.call(e,n)&&I(a,n,e[n]);return a},j=(a,e)=>K(a,Q(e));import{r as o,o as g,e as q,f as s,u as t,w as l,J as Z,B as L,G as ee,aN as te,k as v,L as b,M as E,S as ae,O as se,aP as ne,T as ie,C as oe,l as y,j as h,h as B,t as T,m as le,i as re,U as me,F as de}from"./vendor.01d0adc5.js";import{k as P,r as ue,b as ce,m as pe}from"./main.832b14c7.js";import{_ as ge,a as _e,b as fe,c as be,d as ve,e as ye,f as we}from"./SalesTax.da1d755f.js";import{_ as Ee}from"./CreateCustomFields.940787b7.js";import{_ as Be}from"./ExchangeRateConverter.357f31c9.js";import{_ as $e}from"./TaxTypeModal.cf69664d.js";import"./DragIcon.88fb50b8.js";import"./SelectNotePopup.b35e7850.js";import"./NoteModal.a07ce50b.js";import"./payment.372edbf1.js";import"./exchange-rate.45b62b37.js";const Se={class:"md:grid-cols-12 grid-cols-1 md:gap-x-6 mt-6 mb-8 grid gap-y-5"},he={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(a){const e=P();return(n,r)=>{const $=o("BaseCustomerSelectPopup"),m=o("BaseDatePicker"),c=o("BaseInputGroup"),p=o("BaseInput"),S=o("BaseInputGrid");return g(),q("div",Se,[s($,{modelValue:t(e).newEstimate.customer,"onUpdate:modelValue":r[0]||(r[0]=d=>t(e).newEstimate.customer=d),valid:a.v.customer_id,"content-loading":a.isLoading,type:"estimate",class:"col-span-5 pr-0"},null,8,["modelValue","valid","content-loading"]),s(S,{class:"col-span-7"},{default:l(()=>[s(c,{label:n.$t("reports.estimates.estimate_date"),"content-loading":a.isLoading,required:"",error:a.v.estimate_date.$error&&a.v.estimate_date.$errors[0].$message},{default:l(()=>[s(m,{modelValue:t(e).newEstimate.estimate_date,"onUpdate:modelValue":r[1]||(r[1]=d=>t(e).newEstimate.estimate_date=d),"content-loading":a.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),s(c,{label:n.$t("estimates.expiry_date"),"content-loading":a.isLoading},{default:l(()=>[s(m,{modelValue:t(e).newEstimate.expiry_date,"onUpdate:modelValue":r[2]||(r[2]=d=>t(e).newEstimate.expiry_date=d),"content-loading":a.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),s(c,{label:n.$t("estimates.estimate_number"),"content-loading":a.isLoading,required:"",error:a.v.estimate_number.$error&&a.v.estimate_number.$errors[0].$message},{default:l(()=>[s(p,{modelValue:t(e).newEstimate.estimate_number,"onUpdate:modelValue":r[3]||(r[3]=d=>t(e).newEstimate.estimate_number=d),"content-loading":a.isLoading},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),s(Be,{store:t(e),"store-prop":"newEstimate",v:a.v,"is-loading":a.isLoading,"is-edit":a.isEdit,"customer-currency":t(e).newEstimate.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])]),_:1})])}}},Ce=["onSubmit"],ke={class:"flex"},xe={class:"block mt-10 estimate-foot lg:flex lg:justify-between lg:items-start"},Ie={class:"relative w-full lg:w-1/2"},Re={setup(a){const e=P(),n=ue(),r=ce(),$=pe(),{t:m}=Z(),c="newEstimate";let p=L(!1);const S=L(["customer","company","customerCustom","estimate","estimateCustom"]);let d=ee(),M=te(),_=v(()=>e.isFetchingInitialSettings),F=v(()=>f.value?m("estimates.edit_estimate"):m("estimates.new_estimate")),f=v(()=>d.name==="estimates.edit");const N=v(()=>r.selectedCompanySettings.sales_tax_us_enabled==="YES"&&n.salesTaxUSEnabled),U={estimate_date:{required:b.withMessage(m("validation.required"),E)},estimate_number:{required:b.withMessage(m("validation.required"),E)},reference_number:{maxLength:b.withMessage(m("validation.price_maxlength"),ae(255))},customer_id:{required:b.withMessage(m("validation.required"),E)},exchange_rate:{required:se(function(){return b.withMessage(m("validation.required"),E),e.showExchangeRate}),decimal:b.withMessage(m("validation.valid_exchange_rate"),ne)}},w=ie(U,v(()=>e.newEstimate),{$scope:c});oe(()=>e.newEstimate.customer,i=>{i&&i.currency?e.newEstimate.selectedCurrency=i.currency:e.newEstimate.selectedCurrency=r.selectedCompanyCurrency}),e.resetCurrentEstimate(),$.resetCustomFields(),w.value.$reset,e.fetchEstimateInitialSettings(f.value);async function G(){if(w.value.$touch(),w.value.$invalid)return!1;p.value=!0;let i=j(V({},e.newEstimate),{sub_total:e.getSubTotal,total:e.getTotal,tax:e.getTotalTax});const C=f.value?e.updateEstimate:e.addEstimate;try{let u=await C(i);u.data.data&&M.push(`/admin/estimates/${u.data.data.id}/view`)}catch(u){console.error(u)}p.value=!1}return(i,C)=>{const u=o("BaseBreadcrumbItem"),D=o("BaseBreadcrumb"),k=o("BaseButton"),R=o("router-link"),H=o("BaseIcon"),O=o("BasePageHeader"),z=o("BaseScrollPane"),J=o("BasePage");return g(),q(de,null,[s(ge),s(_e),s($e),t(N)&&(!t(_)||t(d).query.customer)?(g(),y(fe,{key:0,store:t(e),"store-prop":"newEstimate","is-edit":t(f),customer:t(e).newEstimate.customer},null,8,["store","is-edit","customer"])):h("",!0),s(J,{class:"relative estimate-create-page"},{default:l(()=>[B("form",{onSubmit:me(G,["prevent"])},[s(O,{title:t(F)},{actions:l(()=>[i.$route.name==="estimates.edit"?(g(),y(R,{key:0,to:`/estimates/pdf/${t(e).newEstimate.unique_hash}`,target:"_blank"},{default:l(()=>[s(k,{class:"mr-3",variant:"primary-outline",type:"button"},{default:l(()=>[B("span",ke,T(i.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):h("",!0),s(k,{loading:t(p),disabled:t(p),"content-loading":t(_),variant:"primary",type:"submit"},{left:l(Y=>[t(p)?h("",!0):(g(),y(H,{key:0,class:le(Y.class),name:"SaveIcon"},null,8,["class"]))]),default:l(()=>[re(" "+T(i.$t("estimates.save_estimate")),1)]),_:1},8,["loading","disabled","content-loading"])]),default:l(()=>[s(D,null,{default:l(()=>[s(u,{title:i.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),s(u,{title:i.$tc("estimates.estimate",2),to:"/admin/estimates"},null,8,["title"]),i.$route.name==="estimates.edit"?(g(),y(u,{key:0,title:i.$t("estimates.edit_estimate"),to:"#",active:""},null,8,["title"])):(g(),y(u,{key:1,title:i.$t("estimates.new_estimate"),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),s(he,{v:t(w),"is-loading":t(_),"is-edit":t(f)},null,8,["v","is-loading","is-edit"]),s(z,null,{default:l(()=>[s(be,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(_),"item-validation-scope":c,store:t(e),"store-prop":"newEstimate"},null,8,["currency","is-loading","store"]),B("div",xe,[B("div",Ie,[s(ve,{store:t(e),"store-prop":"newEstimate",fields:S.value,type:"Estimate"},null,8,["store","fields"]),s(Ee,{type:"Estimate","is-edit":t(f),"is-loading":t(_),store:t(e),"store-prop":"newEstimate","custom-field-scope":c,class:"mb-6"},null,8,["is-edit","is-loading","store"]),s(ye,{store:t(e),"component-name":"EstimateTemplate","store-prop":"newEstimate"},null,8,["store"])]),s(we,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(_),store:t(e),"store-prop":"newEstimate","tax-popup-type":"estimate"},null,8,["currency","is-loading","store"])])]),_:1})],40,Ce)]),_:1})],64)}}};export{Re as default};
import{_ as r}from"./main.832b14c7.js";import{o as s,e as o,h as C,m as l}from"./vendor.01d0adc5.js";const n={},i={width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_=C("circle",{cx:"25",cy:"25",r:"25",fill:"#FDE4E5"},null,-1),a=C("path",{d:"M27.2031 23.6016C28.349 23.9401 29.2083 24.6562 29.7812 25.75C30.3802 26.8438 30.4714 27.9766 30.0547 29.1484C29.7422 30.0078 29.2083 30.6979 28.4531 31.2188C27.6979 31.7135 26.8516 31.974 25.9141 32V33.875C25.9141 34.0573 25.849 34.2005 25.7188 34.3047C25.6146 34.4349 25.4714 34.5 25.2891 34.5H24.0391C23.8568 34.5 23.7005 34.4349 23.5703 34.3047C23.4661 34.2005 23.4141 34.0573 23.4141 33.875V32C22.1641 32 21.0443 31.6094 20.0547 30.8281C19.8984 30.6979 19.8073 30.5417 19.7812 30.3594C19.7552 30.1771 19.8203 30.0208 19.9766 29.8906L21.3047 28.5625C21.5651 28.3281 21.8255 28.3021 22.0859 28.4844C22.4766 28.7448 22.9193 28.875 23.4141 28.875H25.9922C26.3307 28.875 26.6042 28.7708 26.8125 28.5625C27.0469 28.3281 27.1641 28.0417 27.1641 27.7031C27.1641 27.1302 26.8906 26.7656 26.3438 26.6094L22.3203 25.4375C21.4349 25.1771 20.6927 24.7083 20.0938 24.0312C19.4948 23.3542 19.1432 22.5729 19.0391 21.6875C18.9349 20.4115 19.2995 19.3177 20.1328 18.4062C20.9922 17.4688 22.0599 17 23.3359 17H23.4141V15.125C23.4141 14.9427 23.4661 14.7995 23.5703 14.6953C23.7005 14.5651 23.8568 14.5 24.0391 14.5H25.2891C25.4714 14.5 25.6146 14.5651 25.7188 14.6953C25.849 14.7995 25.9141 14.9427 25.9141 15.125V17C27.1641 17 28.2839 17.3906 29.2734 18.1719C29.4297 18.3021 29.5208 18.4583 29.5469 18.6406C29.5729 18.8229 29.5078 18.9792 29.3516 19.1094L28.0234 20.4375C27.763 20.6719 27.5026 20.6979 27.2422 20.5156C26.8516 20.2552 26.4089 20.125 25.9141 20.125H23.3359C22.9974 20.125 22.7109 20.2422 22.4766 20.4766C22.2682 20.6849 22.1641 20.9583 22.1641 21.2969C22.1641 21.5312 22.2422 21.7526 22.3984 21.9609C22.5547 22.1693 22.75 22.3125 22.9844 22.3906L27.2031 23.6016Z",fill:"#FB7178"},null,-1),h=[_,a];function H(t,e){return s(),o("svg",i,h)}var g=r(n,[["render",H]]);const V=C("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),d=C("path",{d:"M28.25 24.5V27H20.75V24.5H28.25ZM31.7266 18.6016C31.9089 18.7839 32 19.0052 32 19.2656V19.5H27V14.5H27.2344C27.4948 14.5 27.7161 14.5911 27.8984 14.7734L31.7266 18.6016ZM25.75 19.8125C25.75 20.0729 25.8411 20.2943 26.0234 20.4766C26.2057 20.6589 26.4271 20.75 26.6875 20.75H32V33.5625C32 33.8229 31.9089 34.0443 31.7266 34.2266C31.5443 34.4089 31.3229 34.5 31.0625 34.5H17.9375C17.6771 34.5 17.4557 34.4089 17.2734 34.2266C17.0911 34.0443 17 33.8229 17 33.5625V15.4375C17 15.1771 17.0911 14.9557 17.2734 14.7734C17.4557 14.5911 17.6771 14.5 17.9375 14.5H25.75V19.8125ZM19.5 17.3125V17.9375C19.5 18.1458 19.6042 18.25 19.8125 18.25H22.9375C23.1458 18.25 23.25 18.1458 23.25 17.9375V17.3125C23.25 17.1042 23.1458 17 22.9375 17H19.8125C19.6042 17 19.5 17.1042 19.5 17.3125ZM19.5 19.8125V20.4375C19.5 20.6458 19.6042 20.75 19.8125 20.75H22.9375C23.1458 20.75 23.25 20.6458 23.25 20.4375V19.8125C23.25 19.6042 23.1458 19.5 22.9375 19.5H19.8125C19.6042 19.5 19.5 19.6042 19.5 19.8125ZM29.5 31.6875V31.0625C29.5 30.8542 29.3958 30.75 29.1875 30.75H26.0625C25.8542 30.75 25.75 30.8542 25.75 31.0625V31.6875C25.75 31.8958 25.8542 32 26.0625 32H29.1875C29.3958 32 29.5 31.8958 29.5 31.6875ZM29.5 23.875C29.5 23.6927 29.4349 23.5495 29.3047 23.4453C29.2005 23.3151 29.0573 23.25 28.875 23.25H20.125C19.9427 23.25 19.7865 23.3151 19.6562 23.4453C19.5521 23.5495 19.5 23.6927 19.5 23.875V27.625C19.5 27.8073 19.5521 27.9635 19.6562 28.0938C19.7865 28.1979 19.9427 28.25 20.125 28.25H28.875C29.0573 28.25 29.2005 28.1979 29.3047 28.0938C29.4349 27.9635 29.5 27.8073 29.5 27.625V23.875Z",fill:"currentColor"},null,-1),p=[V,d],v={props:{colorClass:{type:String,default:"text-primary-500"}},setup(t){return(e,c)=>(s(),o("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:l(t.colorClass)},p,2))}},f=C("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),u=C("path",{d:"M26.75 19.8125C26.75 20.0729 26.8411 20.2943 27.0234 20.4766C27.2057 20.6589 27.4271 20.75 27.6875 20.75H33V33.5625C33 33.8229 32.9089 34.0443 32.7266 34.2266C32.5443 34.4089 32.3229 34.5 32.0625 34.5H18.9375C18.6771 34.5 18.4557 34.4089 18.2734 34.2266C18.0911 34.0443 18 33.8229 18 33.5625V15.4375C18 15.1771 18.0911 14.9557 18.2734 14.7734C18.4557 14.5911 18.6771 14.5 18.9375 14.5H26.75V19.8125ZM33 19.2656V19.5H28V14.5H28.2344C28.4948 14.5 28.7161 14.5911 28.8984 14.7734L32.7266 18.6016C32.9089 18.7839 33 19.0052 33 19.2656Z",fill:"currentColor"},null,-1),w=[f,u],M={props:{colorClass:{type:String,default:"text-primary-500"}},setup(t){return(e,c)=>(s(),o("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:l(t.colorClass)},w,2))}};export{g as D,v as _,M as a};
import{k as R,c as z,u as P,j as V,e as J,g as E}from"./main.832b14c7.js";import{ah as O,J as U,G as H,aN as W,r as T,o as i,l,w as r,u as n,f as m,i as u,t as d,j as g}from"./vendor.01d0adc5.js";const G={props:{row:{type:Object,default:null},table:{type:Object,default:null}},setup(o){const y=o,S=O("utils"),k=R(),D=z(),_=P(),p=V(),f=J(),{t:s}=U(),v=H(),b=W();async function C(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(t=>{e=e,t&&k.deleteEstimate({ids:[e]}).then(a=>{a&&(y.table&&y.table.refresh(),a.data&&b.push("/admin/estimates"),k.$patch(h=>{h.selectedEstimates=[],h.selectAllField=!1}))})})}function $(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_conversion"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{t&&k.convertToInvoice(e).then(a=>{a.data&&b.push(`/admin/invoices/${a.data.data.id}/edit`)})})}async function N(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_mark_as_sent"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{const a={id:e,status:"SENT"};t&&k.markAsSent(a).then(h=>{y.table&&y.table.refresh()})})}function x(e){return(e.status=="SENT"||e.status=="VIEWED")&&v.name!=="estimates.view"&&f.hasAbilities(E.SEND_ESTIMATE)}async function I(e){D.openModal({title:s("estimates.send_estimate"),componentName:"SendEstimateModal",id:e.id,data:e,variant:"lg"})}async function B(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_mark_as_accepted"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{const a={id:e,status:"ACCEPTED"};t&&k.markAsAccepted(a).then(h=>{y.table&&y.table.refresh()})})}async function M(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_mark_as_rejected"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{const a={id:e,status:"REJECTED"};t&&k.markAsRejected(a).then(h=>{y.table&&y.table.refresh()})})}function L(){let e=`${window.location.origin}/estimates/pdf/${y.row.unique_hash}`;S.copyTextToClipboard(e),_.showNotification({type:"success",message:s("general.copied_pdf_url_clipboard")})}return(e,t)=>{const a=T("BaseIcon"),h=T("BaseButton"),c=T("BaseDropdownItem"),A=T("router-link"),j=T("BaseDropdown");return i(),l(j,null,{activator:r(()=>[n(v).name==="estimates.view"?(i(),l(h,{key:0,variant:"primary"},{default:r(()=>[m(a,{name:"DotsHorizontalIcon",class:"text-white"})]),_:1})):(i(),l(a,{key:1,class:"text-gray-500",name:"DotsHorizontalIcon"}))]),default:r(()=>[n(v).name==="estimates.view"?(i(),l(c,{key:0,onClick:L},{default:r(()=>[m(a,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.copy_pdf_url")),1)]),_:1})):g("",!0),n(f).hasAbilities(n(E).EDIT_ESTIMATE)?(i(),l(A,{key:1,to:`/admin/estimates/${o.row.id}/edit`},{default:r(()=>[m(c,null,{default:r(()=>[m(a,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):g("",!0),n(f).hasAbilities(n(E).DELETE_ESTIMATE)?(i(),l(c,{key:2,onClick:t[0]||(t[0]=w=>C(o.row.id))},{default:r(()=>[m(a,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.delete")),1)]),_:1})):g("",!0),n(v).name!=="estimates.view"&&n(f).hasAbilities(n(E).VIEW_ESTIMATE)?(i(),l(A,{key:3,to:`estimates/${o.row.id}/view`},{default:r(()=>[m(c,null,{default:r(()=>[m(a,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):g("",!0),n(f).hasAbilities(n(E).CREATE_INVOICE)?(i(),l(c,{key:4,onClick:t[1]||(t[1]=w=>$(o.row.id))},{default:r(()=>[m(a,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.convert_to_invoice")),1)]),_:1})):g("",!0),o.row.status!=="SENT"&&n(v).name!=="estimates.view"&&n(f).hasAbilities(n(E).SEND_ESTIMATE)?(i(),l(c,{key:5,onClick:t[2]||(t[2]=w=>N(o.row.id))},{default:r(()=>[m(a,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.mark_as_sent")),1)]),_:1})):g("",!0),o.row.status!=="SENT"&&n(v).name!=="estimates.view"&&n(f).hasAbilities(n(E).SEND_ESTIMATE)?(i(),l(c,{key:6,onClick:t[3]||(t[3]=w=>I(o.row))},{default:r(()=>[m(a,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.send_estimate")),1)]),_:1})):g("",!0),x(o.row)?(i(),l(c,{key:7,onClick:t[4]||(t[4]=w=>I(o.row))},{default:r(()=>[m(a,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.resend_estimate")),1)]),_:1})):g("",!0),o.row.status!=="ACCEPTED"&&n(f).hasAbilities(n(E).EDIT_ESTIMATE)?(i(),l(c,{key:8,onClick:t[5]||(t[5]=w=>B(o.row.id))},{default:r(()=>[m(a,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.mark_as_accepted")),1)]),_:1})):g("",!0),o.row.status!=="REJECTED"&&n(f).hasAbilities(n(E).EDIT_ESTIMATE)?(i(),l(c,{key:9,onClick:t[6]||(t[6]=w=>M(o.row.id))},{default:r(()=>[m(a,{name:"XCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.mark_as_rejected")),1)]),_:1})):g("",!0)]),_:1})}}};export{G as _};
import{d as V,b as _}from"./main.832b14c7.js";import{u as D}from"./exchange-rate.45b62b37.js";import{B as p,k as u,C as l,b1 as F,r as d,K as N,u as n,o as x,l as A,w as h,e as G,q,f as v,m as L,j as C,h as b,t as E}from"./vendor.01d0adc5.js";const O={key:0},U={class:"text-gray-500 sm:text-sm"},z={class:"text-gray-400 text-xs mt-2 font-light"},M={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},store:{type:Object,default:null},storeProp:{type:String,default:""},isEdit:{type:Boolean,default:!1},customerCurrency:{type:[String,Number],default:null}},setup(r){const e=r,m=V(),B=_(),g=D(),f=p(!1);let a=p(!1);m.fetchCurrencies();const s=u(()=>B.selectedCompanyCurrency),c=u(()=>m.currencies.find(t=>t.id===e.store[e.storeProp].currency_id)),P=u(()=>s.value.id!==e.customerCurrency);l(()=>e.store[e.storeProp].customer,t=>{R(t)},{deep:!0}),l(()=>e.store[e.storeProp].currency_id,t=>{$(t)},{immediate:!0}),l(()=>e.customerCurrency,t=>{t&&e.isEdit&&w()},{immediate:!0});function w(){P.value&&g.checkForActiveProvider(e.customerCurrency).then(t=>{t.data.success&&(f.value=!0)})}function R(t){t?e.store[e.storeProp].currency_id=t.currency.id:e.store[e.storeProp].currency_id=s.value.id}async function $(t){t!==s.value.id?(!e.isEdit&&t&&await y(t),e.store.showExchangeRate=!0):e.store.showExchangeRate=!1}function y(t){a.value=!0,g.getCurrentExchangeRate(t).then(o=>{o.data&&!o.data.error?e.store[e.storeProp].exchange_rate=o.data.exchangeRate[0]:e.store[e.storeProp].exchange_rate="",a.value=!1}).catch(o=>{a.value=!1})}return F(()=>{e.store.showExchangeRate=!1}),(t,o)=>{const k=d("BaseIcon"),S=d("BaseInput"),I=d("BaseInputGroup"),j=N("tooltip");return r.store.showExchangeRate&&n(c)?(x(),A(I,{key:0,"content-loading":n(a)&&!r.isEdit,label:t.$t("settings.exchange_rate.exchange_rate"),error:r.v.exchange_rate.$error&&r.v.exchange_rate.$errors[0].$message,required:""},{labelRight:h(()=>[f.value&&r.isEdit?(x(),G("div",O,[q(v(k,{name:"RefreshIcon",class:L(`h-4 w-4 text-primary-500 cursor-pointer outline-none ${n(a)?" animate-spin rotate-180 cursor-not-allowed pointer-events-none ":""}`),onClick:o[0]||(o[0]=i=>y(r.customerCurrency))},null,8,["class"]),[[j,{content:"Fetch Latest Exchange rate"}]])])):C("",!0)]),default:h(()=>[v(S,{modelValue:r.store[r.storeProp].exchange_rate,"onUpdate:modelValue":o[1]||(o[1]=i=>r.store[r.storeProp].exchange_rate=i),"content-loading":n(a)&&!r.isEdit,addon:`1 ${n(c).code} =`,disabled:n(a),onInput:o[2]||(o[2]=i=>r.v.exchange_rate.$touch())},{right:h(()=>[b("span",U,E(n(s).code),1)]),_:1},8,["modelValue","content-loading","addon","disabled"]),b("span",z,E(t.$t("settings.exchange_rate.exchange_help_text",{currency:n(c).code,baseCurrency:n(s).code})),1)]),_:1},8,["content-loading","label","error"])):C("",!0)}}};export{M as _};
var ie=Object.defineProperty;var J=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var X=(C,c,n)=>c in C?ie(C,c,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[c]=n,T=(C,c)=>{for(var n in c||(c={}))ue.call(c,n)&&X(C,n,c[n]);if(J)for(var n of J(c))de.call(c,n)&&X(C,n,c[n]);return C};import{u as Z}from"./exchange-rate.45b62b37.js";import{c as K,b as ge,j as ve}from"./main.832b14c7.js";import{J as Q,B,k as b,L as V,M as G,O as W,R as pe,T as he,C as L,A as me,r as v,o as k,l as I,w as l,h as y,i as w,t as x,u as e,f as s,j as M,m as ee,U as fe,ah as ye,e as _e,aZ as xe,x as Ce,a_ as Ee,a$ as $e,b0 as be,F as Re,a0 as Be}from"./vendor.01d0adc5.js";import ke from"./BaseTable.440de545.js";const we={class:"flex justify-between w-full"},Ve=["onSubmit"],Ie={class:"px-4 md:px-8 py-8 overflow-y-auto sm:p-6"},Se={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},De={setup(C){const{t:c}=Q();let n=B(!1),u=B(!1),E=B(!1),m=B([]),p=B([]);const _=K(),t=Z();let q=B([]);const A=b(()=>({currentExchangeRate:{key:{required:V.withMessage(c("validation.required"),G)},driver:{required:V.withMessage(c("validation.required"),G)},currencies:{required:V.withMessage(c("validation.required"),G)}},currencyConverter:{type:{required:V.withMessage(c("validation.required"),W(i))},url:{required:V.withMessage(c("validation.required"),W($)),url:V.withMessage(c("validation.invalid_url"),pe)}}})),O=b(()=>t.drivers.map(r=>Object.assign({},r,{key:c(r.key)}))),z=b(()=>_.active&&_.componentName==="ExchangeRateProviderModal");b(()=>_.title);const i=b(()=>t.currentExchangeRate.driver==="currency_converter"),$=b(()=>t.currencyConverter&&t.currencyConverter.type==="DEDICATED"),S=b(()=>{switch(t.currentExchangeRate.driver){case"currency_converter":return"https://www.currencyconverterapi.com";case"currency_freak":return"https://currencyfreaks.com";case"currency_layer":return"https://currencylayer.com";case"open_exchange_rate":return"https://openexchangerates.org";default:return""}}),o=he(A,b(()=>t));function N(){m.value=[]}function F(){const{currencies:r}=t.currentExchangeRate;m.value.forEach(a=>{r.forEach((h,f)=>{h===a&&r.splice(f,1)})}),m.value=[]}function j(){t.currentExchangeRate.key=null,t.currentExchangeRate.currencies=[],t.supportedCurrencies=[]}function d(){t.supportedCurrencies=[],p.value=[],t.currentExchangeRate={id:null,name:"",driver:"",key:"",active:!0,currencies:[]},t.currencyConverter={type:"",url:""},m.value=[]}async function D(){t.currentExchangeRate.driver="currency_converter";let r={};t.isEdit&&(r.provider_id=t.currentExchangeRate.id),u.value=!0,await t.fetchDefaultProviders(),await t.fetchActiveCurrency(r),p.value=t.currentExchangeRate.currencies,u.value=!1}L(()=>i.value,(r,a)=>{r&&ae()},{immediate:!0}),L(()=>t.currentExchangeRate.key,(r,a)=>{r&&P()}),L(()=>{var r;return(r=t==null?void 0:t.currencyConverter)==null?void 0:r.type},(r,a)=>{r&&P()}),P=me.exports.debounce(P,500);function te(){return o.value.$touch(),ne(),!!(o.value.$invalid||m.value.length&&t.currentExchangeRate.active)}async function re(){if(te())return!0;let r=T({},t.currentExchangeRate);i.value&&(r.driver_config=T({},t.currencyConverter),$.value||(r.driver_config.url=""));const a=t.isEdit?t.updateProvider:t.addProvider;n.value=!0,await a(r).then(h=>{n.value=!1,_.refreshData&&_.refreshData(),U()}).catch(h=>{n.value=!1})}async function ae(){let r=await t.getCurrencyConverterServers();q.value=r.data.currency_converter_servers,t.currencyConverter.type="FREE"}function P(){var h;const{driver:r,key:a}=t.currentExchangeRate;if(r&&a){E.value=!0;let f={driver:r,key:a};if(i.value&&!t.currencyConverter.type){E.value=!1;return}((h=t==null?void 0:t.currencyConverter)==null?void 0:h.type)&&(f.type=t.currencyConverter.type),t.fetchCurrencies(f).then(R=>{E.value=!1}).catch(R=>{E.value=!1})}}function ne(r=!0){var h;m.value=[];const{currencies:a}=t.currentExchangeRate;a.length&&((h=t.activeUsedCurrencies)==null?void 0:h.length)&&a.forEach(f=>{t.activeUsedCurrencies.includes(f)&&m.value.push(f)})}function U(){_.closeModal(),setTimeout(()=>{d(),o.value.$reset()},300)}return(r,a)=>{const h=v("BaseIcon"),f=v("BaseMultiselect"),R=v("BaseInputGroup"),Y=v("BaseInput"),oe=v("BaseSwitch"),se=v("BaseInputGrid"),le=v("BaseInfoAlert"),H=v("BaseButton"),ce=v("BaseModal");return k(),I(ce,{show:e(z),onClose:U,onOpen:D},{header:l(()=>[y("div",we,[w(x(e(_).title)+" ",1),s(h,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:U})])]),default:l(()=>[y("form",{onSubmit:fe(re,["prevent"])},[y("div",Ie,[s(se,{layout:"one-column"},{default:l(()=>[s(R,{label:r.$tc("settings.exchange_rate.driver"),"content-loading":e(u),required:"",error:e(o).currentExchangeRate.driver.$error&&e(o).currentExchangeRate.driver.$errors[0].$message,"help-text":e(S)},{default:l(()=>[s(f,{modelValue:e(t).currentExchangeRate.driver,"onUpdate:modelValue":[a[0]||(a[0]=g=>e(t).currentExchangeRate.driver=g),j],options:e(O),"content-loading":e(u),"value-prop":"value","can-deselect":!0,label:"key",searchable:!0,invalid:e(o).currentExchangeRate.driver.$error,onInput:a[1]||(a[1]=g=>e(o).currentExchangeRate.driver.$touch())},null,8,["modelValue","options","content-loading","invalid"])]),_:1},8,["label","content-loading","error","help-text"]),e(i)?(k(),I(R,{key:0,required:"",label:r.$t("settings.exchange_rate.server"),"content-loading":e(u),error:e(o).currencyConverter.type.$error&&e(o).currencyConverter.type.$errors[0].$message},{default:l(()=>[s(f,{modelValue:e(t).currencyConverter.type,"onUpdate:modelValue":[a[2]||(a[2]=g=>e(t).currencyConverter.type=g),j],"content-loading":e(u),"value-prop":"value",searchable:"",options:e(q),invalid:e(o).currencyConverter.type.$error,label:"value"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"])):M("",!0),s(R,{label:r.$t("settings.exchange_rate.key"),required:"","content-loading":e(u),error:e(o).currentExchangeRate.key.$error&&e(o).currentExchangeRate.key.$errors[0].$message},{default:l(()=>[s(Y,{modelValue:e(t).currentExchangeRate.key,"onUpdate:modelValue":a[3]||(a[3]=g=>e(t).currentExchangeRate.key=g),"content-loading":e(u),type:"text",name:"key",loading:e(E),"loading-position":"right",invalid:e(o).currentExchangeRate.key.$error},null,8,["modelValue","content-loading","loading","invalid"])]),_:1},8,["label","content-loading","error"]),e(t).supportedCurrencies.length?(k(),I(R,{key:1,label:r.$t("settings.exchange_rate.currency"),"content-loading":e(u),error:e(o).currentExchangeRate.currencies.$error&&e(o).currentExchangeRate.currencies.$errors[0].$message,"help-text":r.$t("settings.exchange_rate.currency_help_text")},{default:l(()=>[s(f,{modelValue:e(t).currentExchangeRate.currencies,"onUpdate:modelValue":a[4]||(a[4]=g=>e(t).currentExchangeRate.currencies=g),"content-loading":e(u),"value-prop":"code",mode:"tags",searchable:"",options:e(t).supportedCurrencies,invalid:e(o).currentExchangeRate.currencies.$error,label:"code","track-by":"code",onInput:a[5]||(a[5]=g=>e(o).currentExchangeRate.currencies.$touch()),openDirection:"top"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error","help-text"])):M("",!0),e($)?(k(),I(R,{key:2,label:r.$t("settings.exchange_rate.url"),"content-loading":e(u),error:e(o).currencyConverter.url.$error&&e(o).currencyConverter.url.$errors[0].$message},{default:l(()=>[s(Y,{modelValue:e(t).currencyConverter.url,"onUpdate:modelValue":a[6]||(a[6]=g=>e(t).currencyConverter.url=g),"content-loading":e(u),type:"url",invalid:e(o).currencyConverter.url.$error,onInput:a[7]||(a[7]=g=>e(o).currencyConverter.url.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])):M("",!0),s(oe,{modelValue:e(t).currentExchangeRate.active,"onUpdate:modelValue":a[8]||(a[8]=g=>e(t).currentExchangeRate.active=g),class:"flex","label-right":r.$t("settings.exchange_rate.active")},null,8,["modelValue","label-right"])]),_:1}),e(m).length&&e(t).currentExchangeRate.active?(k(),I(le,{key:0,class:"mt-5",title:r.$t("settings.exchange_rate.currency_in_used"),lists:[e(m).toString()],actions:["Remove"],onHide:N,onRemove:F},null,8,["title","lists"])):M("",!0)]),y("div",Se,[s(H,{class:"mr-3",variant:"primary-outline",type:"button",disabled:e(n),onClick:U},{default:l(()=>[w(x(r.$t("general.cancel")),1)]),_:1},8,["disabled"]),s(H,{loading:e(n),disabled:e(n)||e(E),variant:"primary",type:"submit"},{left:l(g=>[e(n)?M("",!0):(k(),I(h,{key:0,name:"SaveIcon",class:ee(g.class)},null,8,["class"]))]),default:l(()=>[w(" "+x(e(t).isEdit?r.$t("general.update"):r.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Ve)]),_:1},8,["show"])}}},Me={slot:"header",class:"flex flex-wrap justify-between lg:flex-nowrap"},qe={class:"text-lg font-medium text-left"},Ne={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},je={class:"mt-4 lg:mt-0 lg:ml-2"},Pe={class:"capitalize"},Ue={class:"inline-block"},Ge={setup(C){const{tm:c,t:n}=Q();ge();const u=Z(),E=K(),m=ve();let p=B("");const _=ye("utils"),t=b(()=>[{key:"driver",label:n("settings.exchange_rate.driver"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"key",label:n("settings.exchange_rate.key"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"active",label:n("settings.exchange_rate.active"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function q({page:i,sort:$}){let S=Be({orderByField:$.fieldName||"created_at",orderBy:$.order||"desc",page:i}),o=await u.fetchProviders(S);return{data:o.data.data,pagination:{totalPages:o.data.meta.last_page,currentPage:i,totalCount:o.data.meta.total,limit:5}}}function A(){E.openModal({title:n("settings.exchange_rate.new_driver"),componentName:"ExchangeRateProviderModal",size:"md",refreshData:p.value&&p.value.refresh})}function O(i){u.fetchProvider(i),E.openModal({title:n("settings.exchange_rate.edit_driver"),componentName:"ExchangeRateProviderModal",size:"md",data:i,refreshData:p.value&&p.value.refresh})}function z(i){m.openDialog({title:n("general.are_you_sure"),message:n("settings.exchange_rate.exchange_rate_confirm_delete"),yesLabel:n("general.ok"),noLabel:n("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async $=>{$&&(await u.deleteExchangeRate(i),p.value&&p.value.refresh())})}return(i,$)=>{const S=v("BaseButton"),o=v("BaseBadge"),N=v("BaseDropdownItem"),F=v("BaseDropdown"),j=v("BaseCard");return k(),_e(Re,null,[s(De),s(j,null,{default:l(()=>[y("div",Me,[y("div",null,[y("h6",qe,x(i.$t("settings.menu_title.exchange_rate")),1),y("p",Ne,x(i.$t("settings.exchange_rate.providers_description")),1)]),y("div",je,[s(S,{variant:"primary-outline",size:"lg",onClick:A},{left:l(d=>[s(e(xe),{class:ee(d.class)},null,8,["class"])]),default:l(()=>[w(" "+x(i.$t("settings.exchange_rate.new_driver")),1)]),_:1})])]),s(ke,{ref:(d,D)=>{D.table=d,Ce(p)?p.value=d:p=d},class:"mt-16",data:q,columns:e(t)},{"cell-driver":l(({row:d})=>[y("span",Pe,x(d.data.driver.replace("_"," ")),1)]),"cell-active":l(({row:d})=>[s(o,{"bg-color":e(_).getBadgeStatusColor(d.data.active?"YES":"NO").bgColor,color:e(_).getBadgeStatusColor(d.data.active?"YES":"NO").color},{default:l(()=>[w(x(d.data.active?"YES":"NO"),1)]),_:2},1032,["bg-color","color"])]),"cell-actions":l(({row:d})=>[s(F,null,{activator:l(()=>[y("div",Ue,[s(e(Ee),{class:"w-5 text-gray-500"})])]),default:l(()=>[s(N,{onClick:D=>O(d.data.id)},{default:l(()=>[s(e($e),{class:"h-5 mr-3 text-gray-600"}),w(" "+x(i.$t("general.edit")),1)]),_:2},1032,["onClick"]),s(N,{onClick:D=>z(d.data.id)},{default:l(()=>[s(e(be),{class:"h-5 mr-3 text-gray-600"}),w(" "+x(i.$t("general.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["columns"])]),_:1})],64)}}};export{Ge as default};
import{j as v,u as $,e as M,c as S,g as k}from"./main.832b14c7.js";import{u as E}from"./category.c27e9638.js";import{J as I,G as T,ah as z,r as i,o as m,l as p,w as e,u as g,f as n,i as w,t as C,j as N,B as P,k as F,e as V,m as L,h as j,F as A}from"./vendor.01d0adc5.js";import{_ as H}from"./CategoryModal.9d414df9.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(y){const d=y,B=v();$();const{t:o}=I(),s=E(),h=T(),_=M(),x=S();z("utils");function b(l){s.fetchCategory(l),x.openModal({title:o("settings.expense_category.edit_category"),componentName:"CategoryModal",refreshData:d.loadData,size:"sm"})}function r(l){B.openDialog({title:o("general.are_you_sure"),message:o("settings.expense_category.confirm_delete"),yesLabel:o("general.ok"),noLabel:o("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async()=>{if((await s.deleteCategory(l)).data.success)return d.loadData&&d.loadData(),!0;d.loadData&&d.loadData()})}return(l,t)=>{const c=i("BaseIcon"),u=i("BaseButton"),f=i("BaseDropdownItem"),a=i("BaseDropdown");return m(),p(a,null,{activator:e(()=>[g(h).name==="expenseCategorys.view"?(m(),p(u,{key:0,variant:"primary"},{default:e(()=>[n(c,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),p(c,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:e(()=>[g(_).hasAbilities(g(k).EDIT_EXPENSE)?(m(),p(f,{key:0,onClick:t[0]||(t[0]=D=>b(y.row.id))},{default:e(()=>[n(c,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),w(" "+C(l.$t("general.edit")),1)]),_:1})):N("",!0),g(_).hasAbilities(g(k).DELETE_EXPENSE)?(m(),p(f,{key:1,onClick:t[1]||(t[1]=D=>r(y.row.id))},{default:e(()=>[n(c,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),w(" "+C(l.$t("general.delete")),1)]),_:1})):N("",!0)]),_:1})}}},X={class:"w-64"},G={class:"truncate"},K={setup(y){const d=E();v();const B=S(),{t:o}=I(),s=P(null),h=F(()=>[{key:"name",label:o("settings.expense_category.category_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"description",label:o("settings.expense_category.category_description"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function _({page:r,filter:l,sort:t}){let c={orderByField:t.fieldName||"created_at",orderBy:t.order||"desc",page:r},u=await d.fetchCategories(c);return{data:u.data.data,pagination:{totalPages:u.data.meta.last_page,currentPage:r,totalCount:u.data.meta.total,limit:5}}}function x(){B.openModal({title:o("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm",refreshData:s.value&&s.value.refresh})}async function b(){s.value&&s.value.refresh()}return(r,l)=>{const t=i("BaseIcon"),c=i("BaseButton"),u=i("BaseTable"),f=i("BaseSettingCard");return m(),V(A,null,[n(H),n(f,{title:r.$t("settings.expense_category.title"),description:r.$t("settings.expense_category.description")},{action:e(()=>[n(c,{variant:"primary-outline",type:"button",onClick:x},{left:e(a=>[n(t,{class:L(a.class),name:"PlusIcon"},null,8,["class"])]),default:e(()=>[w(" "+C(r.$t("settings.expense_category.add_new_category")),1)]),_:1})]),default:e(()=>[n(u,{ref:(a,D)=>{D.table=a,s.value=a},data:_,columns:g(h),class:"mt-16"},{"cell-description":e(({row:a})=>[j("div",X,[j("p",G,C(a.data.description),1)])]),"cell-actions":e(({row:a})=>[n(O,{row:a.data,table:s.value,"load-data":b},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{K as default};
var re=Object.defineProperty;var X=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var Q=(t,i,a)=>i in t?re(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a,W=(t,i)=>{for(var a in i||(i={}))se.call(i,a)&&Q(t,a,i[a]);if(X)for(var a of X(i))le.call(i,a)&&Q(t,a,i[a]);return t};import{u as j}from"./disk.3cfd12a4.js";import{_ as F,c as G,b as ne,j as de}from"./main.832b14c7.js";import{J as A,B as p,k as S,L as g,M as D,T as R,b1 as Y,a0 as L,r as f,o as y,e as h,h as b,f as r,w as n,t as V,j as E,g as z,U as K,R as ue,a7 as fe,l as N,i as U,aj as ke,ah as me,m as ve,x as Z,u as P,F as ge}from"./vendor.01d0adc5.js";const ce={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(null),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.dropBoxDiskConfig.selected_driver=v}}),m=S(()=>({dropBoxDiskConfig:{root:{required:g.withMessage(u("validation.required"),D)},key:{required:g.withMessage(u("validation.required"),D)},secret:{required:g.withMessage(u("validation.required"),D)},token:{required:g.withMessage(u("validation.required"),D)},app:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)},name:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.dropBoxDiskConfig={name:null,selected_driver:"dropbox",token:null,key:null,secret:null,app:null}}),B();async function B(){s.value=!0;let v=L({disk:"dropbox"});if(t.isEdit)Object.assign(a.dropBoxDiskConfig,e.data),k.value=e.data.set_as_default,k.value&&(l.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.dropBoxDiskConfig,$.data)}d.value=t.disks.find($=>$.value=="dropbox"),s.value=!1}const M=S(()=>!!(t.isEdit&&k.value&&l.value));async function w(){if(o.value.dropBoxDiskConfig.$touch(),o.value.dropBoxDiskConfig.$invalid)return!0;let v={credentials:a.dropBoxDiskConfig,name:a.dropBoxDiskConfig.name,driver:d.value.value,set_as_default:k.value};return i("submit",v),!1}function I(){i("onChangeDisk",a.dropBoxDiskConfig.selected_driver)}return{v$:o,diskStore:a,selected_driver:c,set_as_default:k,isLoading:s,is_current_disk:l,selected_disk:d,isDisabled:M,loadData:B,submitData:w,onChangeDriver:I}}},De={class:"px-8 py-6"},Ce={key:0,class:"flex items-center mt-6"},pe={class:"relative flex items-center w-12"},_e={class:"ml-4 right"},be={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function Se(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{onSubmit:i[15]||(i[15]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",De,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.dropBoxDiskConfig.name.$error&&e.v$.dropBoxDiskConfig.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.dropBoxDiskConfig.name=o),type:"text",name:"name",invalid:e.v$.dropBoxDiskConfig.name.$error,onInput:i[1]||(i[1]=o=>e.v$.dropBoxDiskConfig.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.driver"),error:e.v$.dropBoxDiskConfig.selected_driver.$error&&e.v$.dropBoxDiskConfig.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],invalid:e.v$.dropBoxDiskConfig.selected_driver.$error,"value-prop":"value",options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_root"),error:e.v$.dropBoxDiskConfig.root.$error&&e.v$.dropBoxDiskConfig.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.dropBoxDiskConfig.root=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. /user/root/",invalid:e.v$.dropBoxDiskConfig.root.$error,onInput:i[5]||(i[5]=o=>e.v$.dropBoxDiskConfig.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_token"),error:e.v$.dropBoxDiskConfig.token.$error&&e.v$.dropBoxDiskConfig.token.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.token,"onUpdate:modelValue":i[6]||(i[6]=o=>e.diskStore.dropBoxDiskConfig.token=o),modelModifiers:{trim:!0},type:"text",name:"name",invalid:e.v$.dropBoxDiskConfig.token.$error,onInput:i[7]||(i[7]=o=>e.v$.dropBoxDiskConfig.token.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_key"),error:e.v$.dropBoxDiskConfig.key.$error&&e.v$.dropBoxDiskConfig.key.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.key,"onUpdate:modelValue":i[8]||(i[8]=o=>e.diskStore.dropBoxDiskConfig.key=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS",invalid:e.v$.dropBoxDiskConfig.key.$error,onInput:i[9]||(i[9]=o=>e.v$.dropBoxDiskConfig.key.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_secret"),error:e.v$.dropBoxDiskConfig.secret.$error&&e.v$.dropBoxDiskConfig.secret.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.secret,"onUpdate:modelValue":i[10]||(i[10]=o=>e.diskStore.dropBoxDiskConfig.secret=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. ********",invalid:e.v$.dropBoxDiskConfig.secret.$error,onInput:i[11]||(i[11]=o=>e.v$.dropBoxDiskConfig.secret.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_app"),error:e.v$.dropBoxDiskConfig.app.$error&&e.v$.dropBoxDiskConfig.app.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.app,"onUpdate:modelValue":i[12]||(i[12]=o=>e.diskStore.dropBoxDiskConfig.app=o),modelModifiers:{trim:!0},type:"text",name:"name",invalid:e.v$.dropBoxDiskConfig.app.$error,onInput:i[13]||(i[13]=o=>e.v$.dropBoxDiskConfig.app.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",Ce,[b("div",pe,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[14]||(i[14]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",_e,[b("p",be,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var $e=F(ce,[["render",Se]]);const ye={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(""),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.localDiskConfig.selected_driver=v}}),m=S(()=>({localDiskConfig:{name:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)},root:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.localDiskConfig={name:null,selected_driver:"local",root:null}}),B();async function B(){k.value=!0;let v=L({disk:"local"});if(t.isEdit)Object.assign(a.localDiskConfig,e.data),a.localDiskConfig.root=e.data.credentials,s.value=e.data.set_as_default,s.value&&(d.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.localDiskConfig,$.data)}l.value=t.disks.find($=>$.value=="local"),k.value=!1}const M=S(()=>!!(t.isEdit&&s.value&&d.value));async function w(){if(o.value.localDiskConfig.$touch(),o.value.localDiskConfig.$invalid)return!0;let v=L({credentials:a.localDiskConfig.root,name:a.localDiskConfig.name,driver:a.localDiskConfig.selected_driver,set_as_default:s.value});return i("submit",v),!1}function I(){i("onChangeDisk",a.localDiskConfig.selected_driver)}return{v$:o,diskStore:a,modalStore:e,selected_driver:c,selected_disk:l,isLoading:k,set_as_default:s,is_current_disk:d,submitData:w,onChangeDriver:I,isDisabled:M}}},Be={class:"px-4 sm:px-8 py-6"},xe={key:0,class:"flex items-center mt-6"},Ve={class:"relative flex items-center w-12"},qe={class:"ml-4 right"},Me={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function we(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{action:"",onSubmit:i[7]||(i[7]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",Be,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.localDiskConfig.name.$error&&e.v$.localDiskConfig.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.localDiskConfig.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.localDiskConfig.name=o),type:"text",name:"name",invalid:e.v$.localDiskConfig.name.$error,onInput:i[1]||(i[1]=o=>e.v$.localDiskConfig.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$tc("settings.disk.driver"),error:e.v$.localDiskConfig.selected_driver.$error&&e.v$.localDiskConfig.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],"value-prop":"value",invalid:e.v$.localDiskConfig.selected_driver.$error,options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.local_root"),error:e.v$.localDiskConfig.root.$error&&e.v$.localDiskConfig.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.localDiskConfig.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.localDiskConfig.root=o),modelModifiers:{trim:!0},type:"text",name:"name",invalid:e.v$.localDiskConfig.root.$error,placeholder:"Ex./user/root/",onInput:i[5]||(i[5]=o=>e.v$.localDiskConfig.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",xe,[b("div",Ve,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[6]||(i[6]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",qe,[b("p",Me,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var Ie=F(ye,[["render",we]]);const he={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(null),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.s3DiskConfigData.selected_driver=v}}),m=S(()=>({s3DiskConfigData:{name:{required:g.withMessage(u("validation.required"),D)},root:{required:g.withMessage(u("validation.required"),D)},key:{required:g.withMessage(u("validation.required"),D)},secret:{required:g.withMessage(u("validation.required"),D)},region:{required:g.withMessage(u("validation.required"),D)},bucket:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.s3DiskConfigData={name:null,selected_driver:"s3",key:null,secret:null,region:null,bucket:null,root:null}}),B();async function B(){s.value=!0;let v=L({disk:"s3"});if(t.isEdit)Object.assign(a.s3DiskConfigData,e.data),k.value=e.data.set_as_default,k.value&&(d.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.s3DiskConfigData,$.data)}l.value=t.disks.find($=>$.value=="s3"),s.value=!1}const M=S(()=>!!(t.isEdit&&k.value&&d.value));async function w(){if(o.value.s3DiskConfigData.$touch(),o.value.s3DiskConfigData.$invalid)return!0;let v={credentials:a.s3DiskConfigData,name:a.s3DiskConfigData.name,driver:l.value.value,set_as_default:k.value};return i("submit",v),!1}function I(){i("onChangeDisk",a.s3DiskConfigData.selected_driver)}return{v$:o,diskStore:a,modalStore:e,set_as_default:k,isLoading:s,selected_disk:l,selected_driver:c,is_current_disk:d,loadData:B,submitData:w,onChangeDriver:I,isDisabled:M}}},Ee={class:"px-8 py-6"},Ue={key:0,class:"flex items-center mt-6"},Le={class:"relative flex items-center w-12"},Ne={class:"ml-4 right"},je={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function Ge(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{onSubmit:i[15]||(i[15]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",Ee,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.s3DiskConfigData.name.$error&&e.v$.s3DiskConfigData.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.s3DiskConfigData.name=o),type:"text",name:"name",invalid:e.v$.s3DiskConfigData.name.$error,onInput:i[1]||(i[1]=o=>e.v$.s3DiskConfigData.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$tc("settings.disk.driver"),error:e.v$.s3DiskConfigData.selected_driver.$error&&e.v$.s3DiskConfigData.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],invalid:e.v$.s3DiskConfigData.selected_driver.$error,"value-prop":"value",options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_root"),error:e.v$.s3DiskConfigData.root.$error&&e.v$.s3DiskConfigData.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.s3DiskConfigData.root=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. /user/root/",invalid:e.v$.s3DiskConfigData.root.$error,onInput:i[5]||(i[5]=o=>e.v$.s3DiskConfigData.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_key"),error:e.v$.s3DiskConfigData.key.$error&&e.v$.s3DiskConfigData.key.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.key,"onUpdate:modelValue":i[6]||(i[6]=o=>e.diskStore.s3DiskConfigData.key=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS",invalid:e.v$.s3DiskConfigData.key.$error,onInput:i[7]||(i[7]=o=>e.v$.s3DiskConfigData.key.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_secret"),error:e.v$.s3DiskConfigData.secret.$error&&e.v$.s3DiskConfigData.secret.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.secret,"onUpdate:modelValue":i[8]||(i[8]=o=>e.diskStore.s3DiskConfigData.secret=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. ********",invalid:e.v$.s3DiskConfigData.secret.$error,onInput:i[9]||(i[9]=o=>e.v$.s3DiskConfigData.secret.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_region"),error:e.v$.s3DiskConfigData.region.$error&&e.v$.s3DiskConfigData.region.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.region,"onUpdate:modelValue":i[10]||(i[10]=o=>e.diskStore.s3DiskConfigData.region=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. us-west",invalid:e.v$.s3DiskConfigData.region.$error,onInput:i[11]||(i[11]=o=>e.v$.s3DiskConfigData.region.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_bucket"),error:e.v$.s3DiskConfigData.bucket.$error&&e.v$.s3DiskConfigData.bucket.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.bucket,"onUpdate:modelValue":i[12]||(i[12]=o=>e.diskStore.s3DiskConfigData.bucket=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. AppName",invalid:e.v$.s3DiskConfigData.bucket.$error,onInput:i[13]||(i[13]=o=>e.v$.s3DiskConfigData.bucket.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",Ue,[b("div",Le,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[14]||(i[14]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",Ne,[b("p",je,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var Oe=F(he,[["render",Ge]]);const Fe={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(""),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.doSpaceDiskConfig.selected_driver=v}}),m=S(()=>({doSpaceDiskConfig:{root:{required:g.withMessage(u("validation.required"),D)},key:{required:g.withMessage(u("validation.required"),D)},secret:{required:g.withMessage(u("validation.required"),D)},region:{required:g.withMessage(u("validation.required"),D)},endpoint:{required:g.withMessage(u("validation.required"),D),url:g.withMessage(u("validation.invalid_url"),ue)},bucket:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)},name:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.doSpaceDiskConfig={name:null,selected_driver:"doSpaces",key:null,secret:null,region:null,bucket:null,endpoint:null,root:null}}),B();async function B(){k.value=!0;let v=L({disk:"doSpaces"});if(t.isEdit)Object.assign(a.doSpaceDiskConfig,JSON.parse(e.data.credentials)),s.value=e.data.set_as_default,s.value&&(d.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.doSpaceDiskConfig,$.data)}l.value=t.disks.find($=>$.value=="doSpaces"),k.value=!1}const M=S(()=>!!(t.isEdit&&s.value&&d.value));async function w(){if(o.value.doSpaceDiskConfig.$touch(),o.value.doSpaceDiskConfig.$invalid)return!0;let v={credentials:a.doSpaceDiskConfig,name:a.doSpaceDiskConfig.name,driver:l.value.value,set_as_default:s.value};return i("submit",v),!1}function I(){i("onChangeDisk",a.doSpaceDiskConfig.selected_driver)}return{v$:o,diskStore:a,selected_driver:c,isLoading:k,set_as_default:s,selected_disk:l,is_current_disk:d,loadData:B,submitData:w,onChangeDriver:I,isDisabled:M}}},Ae={class:"px-8 py-6"},Te={key:0,class:"flex items-center mt-6"},Re={class:"relative flex items-center w-12"},Ye={class:"ml-4 right"},ze={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function Ke(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{onSubmit:i[17]||(i[17]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",Ae,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.doSpaceDiskConfig.name.$error&&e.v$.doSpaceDiskConfig.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.doSpaceDiskConfig.name=o),type:"text",name:"name",invalid:e.v$.doSpaceDiskConfig.name.$error,onInput:i[1]||(i[1]=o=>e.v$.doSpaceDiskConfig.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$tc("settings.disk.driver"),error:e.v$.doSpaceDiskConfig.selected_driver.$error&&e.v$.doSpaceDiskConfig.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],invalid:e.v$.doSpaceDiskConfig.selected_driver.$error,"value-prop":"value",options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_root"),error:e.v$.doSpaceDiskConfig.root.$error&&e.v$.doSpaceDiskConfig.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.doSpaceDiskConfig.root=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. /user/root/",invalid:e.v$.doSpaceDiskConfig.root.$error,onInput:i[5]||(i[5]=o=>e.v$.doSpaceDiskConfig.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_key"),error:e.v$.doSpaceDiskConfig.key.$error&&e.v$.doSpaceDiskConfig.key.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.key,"onUpdate:modelValue":i[6]||(i[6]=o=>e.diskStore.doSpaceDiskConfig.key=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS",invalid:e.v$.doSpaceDiskConfig.key.$error,onInput:i[7]||(i[7]=o=>e.v$.doSpaceDiskConfig.key.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_secret"),error:e.v$.doSpaceDiskConfig.secret.$error&&e.v$.doSpaceDiskConfig.secret.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.secret,"onUpdate:modelValue":i[8]||(i[8]=o=>e.diskStore.doSpaceDiskConfig.secret=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. ********",invalid:e.v$.doSpaceDiskConfig.secret.$error,onInput:i[9]||(i[9]=o=>e.v$.doSpaceDiskConfig.secret.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_region"),error:e.v$.doSpaceDiskConfig.region.$error&&e.v$.doSpaceDiskConfig.region.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.region,"onUpdate:modelValue":i[10]||(i[10]=o=>e.diskStore.doSpaceDiskConfig.region=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. nyc3",invalid:e.v$.doSpaceDiskConfig.region.$error,onInput:i[11]||(i[11]=o=>e.v$.doSpaceDiskConfig.region.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_endpoint"),error:e.v$.doSpaceDiskConfig.endpoint.$error&&e.v$.doSpaceDiskConfig.endpoint.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.endpoint,"onUpdate:modelValue":i[12]||(i[12]=o=>e.diskStore.doSpaceDiskConfig.endpoint=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. https://nyc3.digitaloceanspaces.com",invalid:e.v$.doSpaceDiskConfig.endpoint.$error,onInput:i[13]||(i[13]=o=>e.v$.doSpaceDiskConfig.endpoint.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_bucket"),error:e.v$.doSpaceDiskConfig.bucket.$error&&e.v$.doSpaceDiskConfig.bucket.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.bucket,"onUpdate:modelValue":i[14]||(i[14]=o=>e.diskStore.doSpaceDiskConfig.bucket=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. my-new-space",invalid:e.v$.doSpaceDiskConfig.bucket.$error,onInput:i[15]||(i[15]=o=>e.v$.doSpaceDiskConfig.bucket.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",Te,[b("div",Re,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[16]||(i[16]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",Ye,[b("p",ze,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var Pe=F(Fe,[["render",Ke]]);const Je={components:{Dropbox:$e,Local:Ie,S3:Oe,DoSpaces:Pe},setup(){const t=j(),i=G();let a=p(!1),e=p(!1);fe(()=>{i.id&&(e.value=!0)});const u=S(()=>i.active&&i.componentName==="FileDiskModal");function k(m){return m&&(m.diskData.isLoading.value||a.value)}async function s(){a.value=!0;let m=await t.fetchDiskDrivers();e.value?t.selected_driver=i.data.driver:t.selected_driver=m.data.drivers[0].value,a.value=!1}async function l(m){Object.assign(t.diskConfigData,m),a.value=!0;let o=W({id:i.id},m);await(e.value?t.updateDisk:t.createDisk)(o),a.value=!1,i.refreshData(),d()}function d(){i.closeModal()}function c(m){t.selected_driver=m,t.diskConfigData.selected_driver=m}return{isEdit:e,createNewDisk:l,isRequestFire:k,diskStore:t,closeDiskModal:d,loadData:s,diskChange:c,modalStore:i,isLoading:a,modalActive:u}}},He={class:"flex justify-between w-full"},Xe={class:"file-disk-modal"},Qe={class:"z-0 flex justify-end p-4 border-t border-solid border-gray-light"};function We(t,i,a,e,u,k){const s=f("BaseIcon"),l=f("BaseButton"),d=f("BaseModal");return y(),N(d,{show:e.modalActive,onClose:e.closeDiskModal,onOpen:e.loadData},{header:n(()=>[b("div",He,[U(V(e.modalStore.title)+" ",1),r(s,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:e.closeDiskModal},null,8,["onClick"])])]),default:n(()=>[b("div",Xe,[(y(),N(ke(e.diskStore.selected_driver),{loading:e.isLoading,disks:e.diskStore.getDiskDrivers,"is-edit":e.isEdit,onOnChangeDisk:i[0]||(i[0]=c=>e.diskChange(c)),onSubmit:e.createNewDisk},{default:n(c=>[b("div",Qe,[r(l,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:e.closeDiskModal},{default:n(()=>[U(V(t.$t("general.cancel")),1)]),_:1},8,["onClick"]),r(l,{loading:e.isRequestFire(c),disabled:e.isRequestFire(c),variant:"primary",type:"submit"},{default:n(()=>[e.isRequestFire(c)?E("",!0):(y(),N(s,{key:0,name:"SaveIcon",class:"w-6 mr-2"})),U(" "+V(t.$t("general.save")),1)]),_:2},1032,["loading","disabled"])])]),_:1},8,["loading","disks","is-edit","onSubmit"]))])]),_:1},8,["show","onClose","onOpen"])}var Ze=F(Je,[["render",We]]);const ei={class:"inline-block"},ri={setup(t){const i=me("utils"),a=G(),e=j(),u=ne(),k=de(),{t:s}=A();let l=p(!1),d=p("");const c=S(()=>[{key:"name",label:s("settings.disk.disk_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"driver",label:s("settings.disk.filesystem_driver"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"type",label:s("settings.disk.disk_type"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"set_as_default",label:s("settings.disk.is_default"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),m=p(u.selectedCompanySettings.save_pdf_to_disk),o=S({get:()=>m.value==="YES",set:async C=>{const q=C?"YES":"NO";let x={settings:{save_pdf_to_disk:q}};m.value=q,await u.updateCompanySettings({data:x,message:"general.setting_updated"})}});async function B({page:C,filter:q,sort:x}){let J=L({orderByField:x.fieldName||"created_at",orderBy:x.order||"desc",page:C}),O=await e.fetchDisks(J);return{data:O.data.data,pagination:{totalPages:O.data.meta.last_page,currentPage:C,totalCount:O.data.meta.total}}}function M(C){return C.set_as_default?!(C.type=="SYSTEM"&&C.set_as_default):!0}function w(){a.openModal({title:s("settings.disk.new_disk"),componentName:"FileDiskModal",variant:"lg",refreshData:d.value&&d.value.refresh})}function I(C){a.openModal({title:s("settings.disk.edit_file_disk"),componentName:"FileDiskModal",variant:"lg",id:C.id,data:C,refreshData:d.value&&d.value.refresh})}function v(C){k.openDialog({title:s("general.are_you_sure"),message:s("settings.disk.set_default_disk_confirm"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(async q=>{if(q){l.value=!0;let x=L({set_as_default:!0,id:C});await e.updateDisk(x).then(()=>{d.value&&d.value.refresh()})}})}function $(C){k.openDialog({title:s("general.are_you_sure"),message:s("settings.disk.confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async q=>{if(q&&(await e.deleteFileDisk(C)).data.success)return d.value&&d.value.refresh(),!0})}return(C,q)=>{const x=f("BaseIcon"),J=f("BaseButton"),O=f("BaseBadge"),H=f("BaseDropdownItem"),ee=f("BaseDropdown"),ie=f("BaseTable"),oe=f("BaseDivider"),ae=f("BaseSwitchSection"),te=f("BaseSettingCard");return y(),h(ge,null,[r(Ze),r(te,{title:C.$tc("settings.disk.title",1),description:C.$t("settings.disk.description")},{action:n(()=>[r(J,{variant:"primary-outline",onClick:w},{left:n(_=>[r(x,{class:ve(_.class),name:"PlusIcon"},null,8,["class"])]),default:n(()=>[U(" "+V(C.$t("settings.disk.new_disk")),1)]),_:1})]),default:n(()=>[r(ie,{ref:(_,T)=>{T.table=_,Z(d)?d.value=_:d=_},class:"mt-16",data:B,columns:P(c)},{"cell-set_as_default":n(({row:_})=>[r(O,{"bg-color":P(i).getBadgeStatusColor(_.data.set_as_default?"YES":"NO").bgColor,color:P(i).getBadgeStatusColor(_.data.set_as_default?"YES":"NO").color},{default:n(()=>[U(V(_.data.set_as_default?"Yes":"No".replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),"cell-actions":n(({row:_})=>[M(_.data)?(y(),N(ee,{key:0},{activator:n(()=>[b("div",ei,[r(x,{name:"DotsHorizontalIcon",class:"text-gray-500"})])]),default:n(()=>[_.data.set_as_default?E("",!0):(y(),N(H,{key:0,onClick:T=>v(_.data.id)},{default:n(()=>[r(x,{class:"mr-3 tetx-gray-600",name:"CheckCircleIcon"}),U(" "+V(C.$t("settings.disk.set_default_disk")),1)]),_:2},1032,["onClick"])),_.data.type!=="SYSTEM"?(y(),N(H,{key:1,onClick:T=>I(_.data)},{default:n(()=>[r(x,{name:"PencilIcon",class:"mr-3 text-gray-600"}),U(" "+V(C.$t("general.edit")),1)]),_:2},1032,["onClick"])):E("",!0),_.data.type!=="SYSTEM"&&!_.data.set_as_default?(y(),N(H,{key:2,onClick:T=>$(_.data.id)},{default:n(()=>[r(x,{name:"TrashIcon",class:"mr-3 text-gray-600"}),U(" "+V(C.$t("general.delete")),1)]),_:2},1032,["onClick"])):E("",!0)]),_:2},1024)):E("",!0)]),_:1},8,["columns"]),r(oe,{class:"mt-8 mb-2"}),r(ae,{modelValue:P(o),"onUpdate:modelValue":q[0]||(q[0]=_=>Z(o)?o.value=_:null),title:C.$t("settings.disk.save_pdf_to_disk"),description:C.$t("settings.disk.disk_setting_description")},null,8,["modelValue","title","description"])]),_:1},8,["title","description"])],64)}}};export{ri as default};
var M=Object.defineProperty,j=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var B=(a,e,t)=>e in a?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,$=(a,e)=>{for(var t in e||(e={}))N.call(e,t)&&B(a,t,e[t]);if(h)for(var t of h(e))C.call(e,t)&&B(a,t,e[t]);return a},b=(a,e)=>j(a,G(e));import{J as D,G as L,a0 as T,B as y,k as U,L as k,M as A,Q as E,T as F,r as u,o as c,e as p,f as m,w as v,u as r,t as _,h as J,i as P,U as Q}from"./vendor.01d0adc5.js";import{u as R}from"./auth.77d12976.js";import"./main.832b14c7.js";const z=["onSubmit"],H={key:0},K={key:1},O={class:"mt-4 mb-4 text-sm"},ee={setup(a){const e=R(),{t}=D(),S=L(),l=T({email:"",company:""}),f=y(!1),n=y(!1),V=U(()=>({email:{required:k.withMessage(t("validation.required"),A),email:k.withMessage(t("validation.email_incorrect"),E)}})),o=F(V,l);function w(i){if(o.value.$touch(),o.value.$invalid)return!0;n.value=!0;let s=b($({},l),{company:S.params.company});e.forgotPassword(s).then(d=>{n.value=!1}).catch(d=>{n.value=!1}),f.value=!0}return(i,s)=>{const d=u("BaseInput"),I=u("BaseInputGroup"),q=u("BaseButton"),x=u("router-link");return c(),p("form",{id:"loginForm",onSubmit:Q(w,["prevent"])},[m(I,{error:r(o).email.$error&&r(o).email.$errors[0].$message,label:i.$t("login.enter_email"),class:"mb-4",required:""},{default:v(()=>[m(d,{modelValue:r(l).email,"onUpdate:modelValue":s[0]||(s[0]=g=>r(l).email=g),type:"email",name:"email",invalid:r(o).email.$error,onInput:s[1]||(s[1]=g=>r(o).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),m(q,{loading:n.value,disabled:n.value,type:"submit",variant:"primary"},{default:v(()=>[f.value?(c(),p("div",K,_(i.$t("validation.not_yet")),1)):(c(),p("div",H,_(i.$t("validation.send_reset_link")),1))]),_:1},8,["loading","disabled"]),J("div",O,[m(x,{to:"login",class:"text-sm text-primary-400 hover:text-gray-700"},{default:v(()=>[P(_(i.$t("general.back_to_login")),1)]),_:1})])],40,z)}}};export{ee as default};
import{J as w,a0 as S,B as _,L as f,M as V,Q as I,T as x,r as n,o as l,e as u,f as r,w as m,u as t,t as d,h as M,i as N,U as q,a as j}from"./vendor.01d0adc5.js";import{u as C,h as D}from"./main.832b14c7.js";const E=["onSubmit"],G={key:0},L={key:1},T={class:"mt-4 mb-4 text-sm"},Q={setup(U){const g=C(),{t:c}=w(),i=S({email:""}),p=_(!1),o=_(!1),h={email:{required:f.withMessage(c("validation.required"),V),email:f.withMessage(c("validation.email_incorrect"),I)}},a=x(h,i);async function y(s){if(a.value.$touch(),!a.value.$invalid)try{o.value=!0,(await j.post("/api/v1/auth/password/email",i)).data&&g.showNotification({type:"success",message:"Mail sent successfully"}),p.value=!0,o.value=!1}catch(e){D(e),o.value=!1}}return(s,e)=>{const $=n("BaseInput"),b=n("BaseInputGroup"),B=n("BaseButton"),k=n("router-link");return l(),u("form",{id:"loginForm",onSubmit:q(y,["prevent"])},[r(b,{error:t(a).email.$error&&t(a).email.$errors[0].$message,label:s.$t("login.enter_email"),class:"mb-4",required:""},{default:m(()=>[r($,{modelValue:t(i).email,"onUpdate:modelValue":e[0]||(e[0]=v=>t(i).email=v),invalid:t(a).email.$error,focus:"",type:"email",name:"email",onInput:e[1]||(e[1]=v=>t(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),r(B,{loading:o.value,disabled:o.value,type:"submit",variant:"primary"},{default:m(()=>[p.value?(l(),u("div",L,d(s.$t("validation.not_yet")),1)):(l(),u("div",G,d(s.$t("validation.send_reset_link")),1))]),_:1},8,["loading","disabled"]),M("div",T,[r(k,{to:"/login",class:"text-sm text-primary-400 hover:text-gray-700"},{default:m(()=>[N(d(s.$t("general.back_to_login")),1)]),_:1})])],40,E)}}};export{Q as default};
import{J as z,G as ue,aN as me,ah as H,r as o,o as m,l as C,w as t,u as a,f as l,i as g,t as y,j as M,e as pe,h as n,m as u,B as Z,a0 as Ce,k as A,aR as fe,aS as he,q as P,ag as U,V as ye,x as ve}from"./vendor.01d0adc5.js";import{j as G,u as W,p as O,e as q,g as L,b as _e}from"./main.832b14c7.js";const ge={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(i){const r=i,F=G();W();const{t:B}=z(),b=O(),f=ue();me();const _=q();H("utils");function I(d){F.openDialog({title:B("general.are_you_sure"),message:B("items.confirm_delete"),yesLabel:B("general.ok"),noLabel:B("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(p=>{p&&b.deleteItem({ids:[d]}).then(v=>(v.data.success&&r.loadData&&r.loadData(),!0))})}return(d,p)=>{const v=o("BaseIcon"),w=o("BaseButton"),$=o("BaseDropdownItem"),D=o("router-link"),E=o("BaseDropdown");return m(),C(E,null,{activator:t(()=>[a(f).name==="items.view"?(m(),C(w,{key:0,variant:"primary"},{default:t(()=>[l(v,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),C(v,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(_).hasAbilities(a(L).EDIT_ITEM)?(m(),C(D,{key:0,to:`/admin/items/${i.row.id}/edit`},{default:t(()=>[l($,null,{default:t(()=>[l(v,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+y(d.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):M("",!0),a(_).hasAbilities(a(L).DELETE_ITEM)?(m(),C($,{key:1,onClick:p[0]||(p[0]=j=>I(i.row.id))},{default:t(()=>[l(v,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+y(d.$t("general.delete")),1)]),_:1})):M("",!0)]),_:1})}}},Be={width:"110",height:"110",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Le={"clip-path":"url(#clip0)"},be=n("defs",null,[n("clipPath",{id:"clip0"},[n("rect",{width:"110",height:"110",fill:"white"})])],-1),Ie={props:{primaryFillColor:{type:String,default:"fill-primary-500"},secondaryFillColor:{type:String,default:"fill-gray-600"}},setup(i){return(r,F)=>(m(),pe("svg",Be,[n("g",Le,[n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.76398 22.9512L4.54883 21.7361L21.7363 4.54858L22.9515 5.76374L5.76398 22.9512Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M88.264 105.451L87.0488 104.236L104.236 87.0486L105.451 88.2637L88.264 105.451Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.8265 81.3887L28.6113 80.1736L38.9238 69.8611L40.139 71.0762L29.8265 81.3887Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9375 81.6406C30.9375 83.0637 29.7825 84.2188 28.3594 84.2188C26.9362 84.2188 25.7812 83.0637 25.7812 81.6406C25.7812 80.2175 26.9362 79.0625 28.3594 79.0625C29.7825 79.0625 30.9375 80.2175 30.9375 81.6406Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M77.3435 61.5801C76.4635 61.5801 75.5835 61.9152 74.9132 62.5873L62.5863 74.9124C61.244 76.2548 61.244 78.4324 62.5863 79.7748L92.8123 110.001L110 92.8132L79.7738 62.5873C79.1035 61.9152 78.2235 61.5801 77.3435 61.5801ZM77.3435 63.2988C77.8024 63.2988 78.2338 63.4776 78.5587 63.8024L107.569 92.8132L92.8123 107.569L63.8015 78.5596C63.4767 78.2348 63.2979 77.8034 63.2979 77.3445C63.2979 76.8838 63.4767 76.4524 63.8015 76.1276L76.1284 63.8024C76.4532 63.4776 76.8846 63.2988 77.3435 63.2988Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.1875 0L0 17.1875L30.2259 47.4134C30.8963 48.0838 31.7763 48.4206 32.6562 48.4206C33.5363 48.4206 34.4162 48.0838 35.0866 47.4134L47.4134 35.0866C48.7558 33.7442 48.7558 31.5683 47.4134 30.2259L17.1875 0ZM17.1875 2.43031L46.1983 31.4411C46.5231 31.7659 46.7019 32.1973 46.7019 32.6562C46.7019 33.1152 46.5231 33.5466 46.1983 33.8714L33.8714 46.1983C33.5466 46.5231 33.1152 46.7019 32.6562 46.7019C32.1973 46.7019 31.7659 46.5231 31.4411 46.1983L2.43031 17.1875L17.1875 2.43031Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.156 28.9238C59.276 28.9238 58.396 29.259 57.7257 29.931L29.9301 57.7249C28.5878 59.0673 28.5878 61.2449 29.9301 62.5873L47.4132 80.0687C48.0835 80.7407 48.9635 81.0759 49.8435 81.0759C50.7235 81.0759 51.6035 80.7407 52.2738 80.0687L80.0695 52.2748C81.4118 50.9324 81.4118 48.7548 80.0695 47.4124L62.5863 29.931C61.916 29.259 61.036 28.9238 60.156 28.9238ZM60.156 30.6426C60.6149 30.6426 61.0463 30.8213 61.3712 31.1462L78.8543 48.6276C79.1792 48.9524 79.3579 49.3838 79.3579 49.8445C79.3579 50.3034 79.1792 50.7348 78.8543 51.0596L51.0587 78.8535C50.7338 79.1784 50.3024 79.3571 49.8435 79.3571C49.3846 79.3571 48.9532 79.1784 48.6284 78.8535L31.1453 61.3721C30.8204 61.0473 30.6417 60.6159 30.6417 60.157C30.6417 59.6963 30.8204 59.2649 31.1453 58.9401L58.9409 31.1462C59.2657 30.8213 59.6971 30.6426 60.156 30.6426Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M71.0765 40.1387L69.8613 38.9236L72.4395 36.3455L73.6546 37.5606L71.0765 40.1387Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M72.9858 24.8608C69.6291 28.2176 69.6291 33.6574 72.9858 37.0141C74.6633 38.6916 76.8633 39.5321 79.0633 39.5321C81.2616 39.5321 83.4616 38.6916 85.1391 37.0141L72.9858 24.8608ZM73.1388 27.4441L82.5558 36.8612C81.5091 37.4816 80.3111 37.8133 79.0633 37.8133C77.226 37.8133 75.5003 37.0966 74.201 35.799C72.9033 34.4996 72.1883 32.774 72.1883 30.9383C72.1883 29.6888 72.5183 28.4908 73.1388 27.4441Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M86.1459 32.0051C85.9259 32.0051 85.7059 31.9209 85.5374 31.7542C85.2023 31.4173 85.2023 30.8742 85.5374 30.5373C86.3504 29.7261 86.7973 28.6467 86.7973 27.5003C86.7973 26.3522 86.3504 25.2728 85.5374 24.4615C83.9149 22.839 81.0859 22.839 79.4616 24.4615C79.1265 24.7984 78.5834 24.7984 78.2465 24.4615C77.9113 24.1264 77.9113 23.5833 78.2465 23.2464C80.5187 20.9742 84.4821 20.9742 86.7543 23.2464C87.8904 24.3825 88.516 25.8933 88.516 27.5003C88.516 29.1073 87.8904 30.6181 86.7543 31.7542C86.5859 31.9209 86.3659 32.0051 86.1459 32.0051Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M89.792 35.6514C89.572 35.6514 89.352 35.5672 89.1836 35.4004C88.8484 35.0636 88.8484 34.5204 89.1836 34.1836C90.9711 32.3978 91.9525 30.0259 91.9525 27.4994C91.9525 24.9745 90.9711 22.6009 89.1836 20.8151C87.3978 19.0294 85.0259 18.0462 82.4994 18.0462C79.9745 18.0462 77.6009 19.0294 75.8152 20.8151C75.48 21.1503 74.9352 21.1503 74.6 20.8151C74.2648 20.48 74.2648 19.9351 74.6 19.6C78.9553 15.2447 86.0434 15.2447 90.4005 19.6C94.7558 23.9553 94.7558 31.0434 90.4005 35.4004C90.232 35.5672 90.012 35.6514 89.792 35.6514Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M93.4379 39.297C93.2179 39.297 92.9979 39.2128 92.8295 39.0461C92.4944 38.7092 92.4944 38.1661 92.8295 37.8292C95.5898 35.0706 97.1092 31.4028 97.1092 27.4995C97.1092 23.5979 95.5898 19.9284 92.8295 17.1698C90.0709 14.4112 86.4031 12.8901 82.4998 12.8901C78.5983 12.8901 74.9287 14.4112 72.1701 17.1698C71.835 17.505 71.2901 17.505 70.955 17.1698C70.6198 16.8347 70.6198 16.2898 70.955 15.9547C74.0384 12.8712 78.1394 11.1714 82.4998 11.1714C86.862 11.1714 90.9612 12.8712 94.0464 15.9547C97.1298 19.0381 98.8279 23.139 98.8279 27.4995C98.8279 31.8617 97.1298 35.9609 94.0464 39.0461C93.8779 39.2128 93.6579 39.297 93.4379 39.297Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.7832 40.9981L8.8457 10.0606L10.0609 8.84546L40.9984 39.783L39.7832 40.9981Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99.9395 101.154L69.002 70.2169L70.2171 69.0017L101.155 99.9392L99.9395 101.154Z",class:u(i.primaryFillColor)},null,2)]),be]))}},we={class:"flex items-center justify-end space-x-5"},ke={class:"relative table-container"},Me={class:"relative flex items-center justify-end h-5 border-gray-200 border-solid"},Fe={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},$e={class:"absolute items-center left-6 top-2.5 select-none"},De={class:"relative block"},Se={setup(i){H("utils");const r=O(),F=_e();W();const B=G(),b=q(),{t:f}=z();let _=Z(!1),I=Z(!0);const d=Ce({name:"",unit_id:"",price:""}),p=Z(null),v=A(()=>!r.totalItems&&!I.value),w=A({get:()=>r.selectedItems,set:s=>r.selectItem(s)}),$=A(()=>[{key:"status",thClass:"extra w-10",tdClass:"font-medium text-gray-900",placeholderClass:"w-10",sortable:!1},{key:"name",label:f("items.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"unit_name",label:f("items.unit")},{key:"price",label:f("items.price")},{key:"created_at",label:f("items.added_on")},{key:"actions",thClass:"text-right",tdClass:"text-right text-sm font-medium",sortable:!1}]);fe(d,()=>{J()},{debounce:500}),r.fetchItemUnits({limit:"all"}),he(()=>{r.selectAllField&&r.selectAllItems()});function D(){d.name="",d.unit_id="",d.price=""}function E(){return b.hasAbilities([L.DELETE_ITEM,L.EDIT_ITEM])}function j(){_.value&&D(),_.value=!_.value}function N(){p.value&&p.value.refresh()}function J(){N()}async function X(s){return(await r.fetchItemUnits({search:s})).data.data}async function K({page:s,filter:c,sort:k}){let V={search:d.name,unit_id:d.unit_id!==null?d.unit_id:"",price:Math.round(d.price*100),orderByField:k.fieldName||"created_at",orderBy:k.order||"desc",page:s};I.value=!0;let h=await r.fetchItems(V);return I.value=!1,{data:h.data.data,pagination:{totalPages:h.data.meta.last_page,currentPage:s,totalCount:h.data.meta.total,limit:10}}}function Q(){B.openDialog({title:f("general.are_you_sure"),message:f("items.confirm_delete",2),yesLabel:f("general.ok"),noLabel:f("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(s=>{s&&r.deleteMultipleItems().then(c=>{c.data.success&&p.value&&p.value.refresh()})})}return(s,c)=>{const k=o("BaseBreadcrumbItem"),V=o("BaseBreadcrumb"),h=o("BaseIcon"),S=o("BaseButton"),Y=o("BasePageHeader"),ee=o("BaseInput"),x=o("BaseInputGroup"),te=o("BaseMultiselect"),le=o("BaseMoney"),ae=o("BaseFilterWrapper"),ne=o("BaseEmptyPlaceholder"),se=o("BaseDropdownItem"),oe=o("BaseDropdown"),R=o("BaseCheckbox"),ie=o("router-link"),re=o("BaseFormatMoney"),de=o("BaseTable"),ce=o("BasePage");return m(),C(ce,null,{default:t(()=>[l(Y,{title:s.$t("items.title")},{actions:t(()=>[n("div",we,[P(l(S,{variant:"primary-outline",onClick:j},{right:t(e=>[a(_)?(m(),C(h,{key:1,name:"XIcon",class:u(e.class)},null,8,["class"])):(m(),C(h,{key:0,class:u(e.class),name:"FilterIcon"},null,8,["class"]))]),default:t(()=>[g(y(s.$t("general.filter"))+" ",1)]),_:1},512),[[U,a(r).totalItems]]),a(b).hasAbilities(a(L).CREATE_ITEM)?(m(),C(S,{key:0,onClick:c[0]||(c[0]=e=>s.$router.push("/admin/items/create"))},{left:t(e=>[l(h,{name:"PlusIcon",class:u(e.class)},null,8,["class"])]),default:t(()=>[g(" "+y(s.$t("items.add_item")),1)]),_:1})):M("",!0)])]),default:t(()=>[l(V,null,{default:t(()=>[l(k,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),l(k,{title:s.$tc("items.item",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),l(ae,{show:a(_),class:"mt-5",onClear:D},{default:t(()=>[l(x,{label:s.$tc("items.name"),class:"text-left"},{default:t(()=>[l(ee,{modelValue:a(d).name,"onUpdate:modelValue":c[1]||(c[1]=e=>a(d).name=e),type:"text",name:"name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),l(x,{label:s.$tc("items.unit"),class:"text-left"},{default:t(()=>[l(te,{modelValue:a(d).unit_id,"onUpdate:modelValue":c[2]||(c[2]=e=>a(d).unit_id=e),placeholder:s.$t("items.select_a_unit"),"value-prop":"id","track-by":"name","filter-results":!1,label:"name","resolve-on-load":"",delay:500,searchable:"",class:"w-full",options:X},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(x,{class:"text-left",label:s.$tc("items.price")},{default:t(()=>[l(le,{modelValue:a(d).price,"onUpdate:modelValue":c[3]||(c[3]=e=>a(d).price=e)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),P(l(ne,{title:s.$t("items.no_items"),description:s.$t("items.list_of_items")},{actions:t(()=>[a(b).hasAbilities(a(L).CREATE_ITEM)?(m(),C(S,{key:0,variant:"primary-outline",onClick:c[4]||(c[4]=e=>s.$router.push("/admin/items/create"))},{left:t(e=>[l(h,{name:"PlusIcon",class:u(e.class)},null,8,["class"])]),default:t(()=>[g(" "+y(s.$t("items.add_new_item")),1)]),_:1})):M("",!0)]),default:t(()=>[l(Ie,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[U,a(v)]]),P(n("div",ke,[n("div",Me,[a(r).selectedItems.length?(m(),C(oe,{key:0},{activator:t(()=>[n("span",Fe,[g(y(s.$t("general.actions"))+" ",1),l(h,{name:"ChevronDownIcon"})])]),default:t(()=>[l(se,{onClick:Q},{default:t(()=>[l(h,{name:"TrashIcon",class:"mr-3 text-gray-600"}),g(" "+y(s.$t("general.delete")),1)]),_:1})]),_:1})):M("",!0)]),l(de,{ref:(e,T)=>{T.table=e,p.value=e},data:K,columns:a($),"placeholder-count":a(r).totalItems>=20?10:5,class:"mt-3"},ye({header:t(()=>[n("div",$e,[l(R,{modelValue:a(r).selectAllField,"onUpdate:modelValue":c[5]||(c[5]=e=>a(r).selectAllField=e),variant:"primary",onChange:a(r).selectAllItems},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[n("div",De,[l(R,{id:e.id,modelValue:a(w),"onUpdate:modelValue":c[6]||(c[6]=T=>ve(w)?w.value=T:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[l(ie,{to:{path:`items/${e.data.id}/edit`},class:"font-medium text-primary-500"},{default:t(()=>[g(y(e.data.name),1)]),_:2},1032,["to"])]),"cell-unit_name":t(({row:e})=>[n("span",null,y(e.data.unit?e.data.unit.name:"-"),1)]),"cell-price":t(({row:e})=>[l(re,{amount:e.data.price,currency:a(F).selectedCompanyCurrency},null,8,["amount","currency"])]),"cell-created_at":t(({row:e})=>[n("span",null,y(e.data.formatted_created_at),1)]),_:2},[E()?{name:"cell-actions",fn:t(({row:e})=>[l(ge,{row:e.data,table:p.value,"load-data":N},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[U,!a(v)]])]),_:1})}}};export{Se as default};
import{J as Q,ah as Y,G as Z,B as y,a0 as ee,k as I,aR as te,r as l,o as c,l as d,w as a,f as t,u as o,m as w,i as _,t as p,j as C,q as S,ag as F,h as P}from"./vendor.01d0adc5.js";import ae from"./BaseTable.440de545.js";import{u as se}from"./global.8697213a.js";import{u as le}from"./estimate.5745bb55.js";import{_ as oe}from"./ObservatoryIcon.1877bd3e.js";import"./main.832b14c7.js";import"./auth.77d12976.js";const ne=P("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),re={class:"relative table-container"},be={setup(me){const{t:f}=Q();Y("utils"),Z();const E=y(null);let u=y(!1),h=y(!0);const j=y(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]),s=ee({status:"",from_date:"",to_date:"",estimate_number:""}),v=se(),b=le(),x=I(()=>[{key:"estimate_date",label:f("estimates.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"estimate_number",label:f("estimates.number",2)},{key:"status",label:f("estimates.status")},{key:"total",label:f("estimates.total")},{key:"actions",thClass:"text-right",tdClass:"text-right text-sm font-medium",sortable:!1}]),k=I(()=>!b.totalEstimates&&!h.value);I(()=>v.currency),te(s,()=>{N()},{debounce:500});function T(){E.value.refresh()}function N(){T()}function D(){s.status="",s.from_date="",s.to_date="",s.estimate_number=""}function H(){u.value&&D(),u.value=!u.value}async function R({page:n,sort:r}){let B={status:s.status,estimate_number:s.estimate_number,from_date:s.from_date,to_date:s.to_date,orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:n};h.value=!0;let i=await b.fetchEstimate(B,v.companySlug);return h.value=!1,{data:i.data.data,pagination:{totalPages:i.data.meta.last_page,currentPage:n,totalCount:i.data.meta.total,limit:10}}}return(n,r)=>{const B=l("BaseBreadcrumbItem"),i=l("BaseBreadcrumb"),m=l("BaseIcon"),G=l("BaseButton"),U=l("BasePageHeader"),W=l("BaseSelectInput"),g=l("BaseInputGroup"),z=l("BaseInput"),V=l("BaseDatePicker"),A=l("BaseFilterWrapper"),J=l("BaseEmptyPlaceholder"),$=l("router-link"),M=l("BaseEstimateStatusBadge"),X=l("BaseFormatMoney"),q=l("BaseDropdownItem"),O=l("BaseDropdown"),K=l("BasePage");return c(),d(K,null,{default:a(()=>[t(U,{title:n.$t("estimates.title")},{actions:a(()=>[o(b).totalEstimates?(c(),d(G,{key:0,variant:"primary-outline",onClick:H},{right:a(e=>[o(u)?(c(),d(m,{key:1,name:"XIcon",class:w(e.class)},null,8,["class"])):(c(),d(m,{key:0,name:"FilterIcon",class:w(e.class)},null,8,["class"]))]),default:a(()=>[_(p(n.$t("general.filter"))+" ",1)]),_:1})):C("",!0)]),default:a(()=>[t(i,null,{default:a(()=>[t(B,{title:n.$t("general.home"),to:`/${o(v).companySlug}/customer/dashboard`},null,8,["title","to"]),t(B,{title:n.$tc("estimates.estimate",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),S(t(A,{onClear:D},{default:a(()=>[t(g,{label:n.$t("estimates.status"),class:"px-3"},{default:a(()=>[t(W,{modelValue:o(s).status,"onUpdate:modelValue":r[0]||(r[0]=e=>o(s).status=e),options:j.value,searchable:"","show-labels":!1,"allow-empty":!1,placeholder:n.$t("general.select_a_status")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(g,{label:n.$t("estimates.estimate_number"),color:"black-light",class:"px-3 mt-2"},{default:a(()=>[t(z,{modelValue:o(s).estimate_number,"onUpdate:modelValue":r[1]||(r[1]=e=>o(s).estimate_number=e)},{default:a(()=>[t(m,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}),t(m,{name:"HashtagIcon",class:"h-5 mr-3 text-gray-600"})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(g,{label:n.$t("general.from"),class:"px-3"},{default:a(()=>[t(V,{modelValue:o(s).from_date,"onUpdate:modelValue":r[2]||(r[2]=e=>o(s).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),ne,t(g,{label:n.$t("general.to"),class:"px-3"},{default:a(()=>[t(V,{modelValue:o(s).to_date,"onUpdate:modelValue":r[3]||(r[3]=e=>o(s).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[F,o(u)]]),o(k)?(c(),d(J,{key:0,title:n.$t("estimates.no_estimates"),description:n.$t("estimates.list_of_estimates")},{default:a(()=>[t(oe,{class:"mt-5 mb-4"})]),_:1},8,["title","description"])):C("",!0),S(P("div",re,[t(ae,{ref:(e,L)=>{L.table=e,E.value=e},data:R,columns:o(x),"placeholder-count":o(b).totalEstimates>=20?10:5,class:"mt-10"},{"cell-estimate_date":a(({row:e})=>[_(p(e.data.formatted_estimate_date),1)]),"cell-estimate_number":a(({row:e})=>[t($,{to:{path:`estimates/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:a(()=>[_(p(e.data.estimate_number),1)]),_:2},1032,["to"])]),"cell-status":a(({row:e})=>[t(M,{status:e.data.status,class:"px-3 py-1"},{default:a(()=>[_(p(e.data.status),1)]),_:2},1032,["status"])]),"cell-total":a(({row:e})=>[t(X,{amount:e.data.total},null,8,["amount"])]),"cell-actions":a(({row:e})=>[t(O,null,{activator:a(()=>[t(m,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"})]),default:a(()=>[t($,{to:`estimates/${e.data.id}/view`},{default:a(()=>[t(q,null,{default:a(()=>[t(m,{name:"EyeIcon",class:"h-5 mr-3 text-gray-600"}),_(" "+p(n.$t("general.view")),1)]),_:1})]),_:2},1032,["to"])]),_:2},1024)]),_:1},8,["columns","placeholder-count"])],512),[[F,!o(k)]])]),_:1})}}};export{be as default};
import{J as ie,B as E,a0 as ce,k as C,aR as de,aS as pe,r as s,o as f,l as b,w as t,f as a,q as Y,ag as R,u as l,m as g,i as d,t as c,j as S,V as W,h as p,x as F}from"./vendor.01d0adc5.js";import{b as ye,j as _e,e as fe,g as B}from"./main.832b14c7.js";import{u as be}from"./payment.372edbf1.js";import{_ as Be}from"./CapsuleIcon.dc769b69.js";import{_ as ve,a as he}from"./SendPaymentModal.a713aa7b.js";import"./mail-driver.1b5e2a8f.js";const ge={class:"relative table-container"},Ce={class:"relative flex items-center justify-end h-5"},ke={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Pe={class:"absolute items-center left-6 top-2.5 select-none"},Ie={class:"relative block"},Me={setup($e){const{t:i}=ie();let v=E(!1),k=E(!0),y=E(null);const r=ce({customer:"",payment_mode:"",payment_number:""}),m=be();ye();const H=_e(),P=fe(),M=C(()=>!m.paymentTotalCount&&!k.value),L=C(()=>[{key:"status",sortable:!1,thClass:"extra w-10",tdClass:"text-left text-sm font-medium extra"},{key:"payment_date",label:i("payments.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"payment_number",label:i("payments.payment_number")},{key:"name",label:i("payments.customer")},{key:"payment_mode",label:i("payments.payment_mode")},{key:"invoice_number",label:i("invoices.invoice_number")},{key:"amount",label:i("payments.amount")},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),I=C({get:()=>m.selectedPayments,set:n=>m.selectPayment(n)}),$=C({get:()=>m.selectAllField,set:n=>m.setSelectAllState(n)});de(r,()=>{J()},{debounce:500}),pe(()=>{m.selectAllField&&m.selectAllPayments()}),m.fetchPaymentModes({limit:"all"});async function z(n){return(await m.fetchPaymentModes({search:n})).data.data}function G(){return P.hasAbilities([B.DELETE_PAYMENT,B.EDIT_PAYMENT,B.VIEW_PAYMENT,B.SEND_PAYMENT])}async function q({page:n,filter:o,sort:h}){let V={customer_id:r.customer_id,payment_method_id:r.payment_mode!==null?r.payment_mode:"",payment_number:r.payment_number,orderByField:h.fieldName||"created_at",orderBy:h.order||"desc",page:n};k.value=!0;let u=await m.fetchPayments(V);return k.value=!1,{data:u.data.data,pagination:{totalPages:u.data.meta.last_page,currentPage:n,totalCount:u.data.meta.total,limit:10}}}function D(){y.value&&y.value.refresh()}function J(){D()}function N(){r.customer_id="",r.payment_mode="",r.payment_number=""}function O(){v.value&&N(),v.value=!v.value}function X(){H.openDialog({title:i("general.are_you_sure"),message:i("payments.confirm_delete",2),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(n=>{n&&m.deleteMultiplePayments().then(o=>{o.data.success&&D()})})}return(n,o)=>{const h=s("BaseBreadcrumbItem"),V=s("BaseBreadcrumb"),u=s("BaseIcon"),T=s("BaseButton"),K=s("BasePageHeader"),Q=s("BaseCustomerSelectInput"),A=s("BaseInputGroup"),Z=s("BaseInput"),ee=s("BaseMultiselect"),te=s("BaseFilterWrapper"),ae=s("BaseEmptyPlaceholder"),ne=s("BaseDropdownItem"),le=s("BaseDropdown"),j=s("BaseCheckbox"),se=s("router-link"),oe=s("BaseText"),me=s("BaseFormatMoney"),re=s("BaseTable"),ue=s("BasePage");return f(),b(ue,{class:"payments"},{default:t(()=>[a(ve),a(K,{title:n.$t("payments.title")},{actions:t(()=>[Y(a(T,{variant:"primary-outline",onClick:O},{right:t(e=>[l(v)?(f(),b(u,{key:1,name:"XIcon",class:g(e.class)},null,8,["class"])):(f(),b(u,{key:0,class:g(e.class),name:"FilterIcon"},null,8,["class"]))]),default:t(()=>[d(c(n.$t("general.filter"))+" ",1)]),_:1},512),[[R,l(m).paymentTotalCount]]),l(P).hasAbilities(l(B).CREATE_PAYMENT)?(f(),b(T,{key:0,variant:"primary",class:"ml-4",onClick:o[0]||(o[0]=e=>n.$router.push("/admin/payments/create"))},{left:t(e=>[a(u,{name:"PlusIcon",class:g(e.class)},null,8,["class"])]),default:t(()=>[d(" "+c(n.$t("payments.add_payment")),1)]),_:1})):S("",!0)]),default:t(()=>[a(V,null,{default:t(()=>[a(h,{title:n.$t("general.home"),to:"dashboard"},null,8,["title"]),a(h,{title:n.$tc("payments.payment",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(te,{show:l(v),class:"mt-3",onClear:N},{default:t(()=>[a(A,{label:n.$t("payments.customer")},{default:t(()=>[a(Q,{modelValue:l(r).customer_id,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).customer_id=e),placeholder:n.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(A,{label:n.$t("payments.payment_number")},{default:t(()=>[a(Z,{modelValue:l(r).payment_number,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).payment_number=e)},{left:t(e=>[a(u,{name:"HashtagIcon",class:g(e.class)},null,8,["class"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),a(A,{label:n.$t("payments.payment_mode")},{default:t(()=>[a(ee,{modelValue:l(r).payment_mode,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).payment_mode=e),"value-prop":"id","track-by":"name","filter-results":!1,label:"name","resolve-on-load":"",delay:500,searchable:"",options:z},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),l(M)?(f(),b(ae,{key:0,title:n.$t("payments.no_payments"),description:n.$t("payments.list_of_payments")},W({default:t(()=>[a(Be,{class:"mt-5 mb-4"})]),_:2},[l(P).hasAbilities(l(B).CREATE_PAYMENT)?{name:"actions",fn:t(()=>[a(T,{variant:"primary-outline",onClick:o[4]||(o[4]=e=>n.$router.push("/admin/payments/create"))},{left:t(e=>[a(u,{name:"PlusIcon",class:g(e.class)},null,8,["class"])]),default:t(()=>[d(" "+c(n.$t("payments.add_new_payment")),1)]),_:1})])}:void 0]),1032,["title","description"])):S("",!0),Y(p("div",ge,[p("div",Ce,[l(m).selectedPayments.length?(f(),b(le,{key:0},{activator:t(()=>[p("span",ke,[d(c(n.$t("general.actions"))+" ",1),a(u,{name:"ChevronDownIcon"})])]),default:t(()=>[a(ne,{onClick:X},{default:t(()=>[a(u,{name:"TrashIcon",class:"mr-3 text-gray-600"}),d(" "+c(n.$t("general.delete")),1)]),_:1})]),_:1})):S("",!0)]),a(re,{ref:(e,_)=>{_.tableComponent=e,F(y)?y.value=e:y=e},data:q,columns:l(L),"placeholder-count":l(m).paymentTotalCount>=20?10:5,class:"mt-3"},W({header:t(()=>[p("div",Pe,[a(j,{modelValue:l($),"onUpdate:modelValue":o[5]||(o[5]=e=>F($)?$.value=e:null),variant:"primary",onChange:l(m).selectAllPayments},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[p("div",Ie,[a(j,{id:e.id,modelValue:l(I),"onUpdate:modelValue":o[6]||(o[6]=_=>F(I)?I.value=_:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-payment_date":t(({row:e})=>[d(c(e.data.formatted_payment_date),1)]),"cell-payment_number":t(({row:e})=>[a(se,{to:{path:`payments/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:t(()=>[d(c(e.data.payment_number),1)]),_:2},1032,["to"])]),"cell-name":t(({row:e})=>[a(oe,{text:e.data.customer.name,length:30,tag:"span"},null,8,["text"])]),"cell-payment_mode":t(({row:e})=>[p("span",null,c(e.data.payment_method?e.data.payment_method.name:"-"),1)]),"cell-invoice_number":t(({row:e})=>{var _,x,w,U;return[p("span",null,c(((x=(_=e==null?void 0:e.data)==null?void 0:_.invoice)==null?void 0:x.invoice_number)?(U=(w=e==null?void 0:e.data)==null?void 0:w.invoice)==null?void 0:U.invoice_number:"-"),1)]}),"cell-amount":t(({row:e})=>[a(me,{amount:e.data.amount,currency:e.data.customer.currency},null,8,["amount","currency"])]),_:2},[G()?{name:"cell-actions",fn:t(({row:e})=>[a(he,{row:e.data,table:l(y)},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[R,!l(M)]])]),_:1})}}};export{Me as default};
import{J as ve,ah as pe,B,aN as fe,a0 as be,k as F,aR as ge,aS as Be,r as i,o as I,l as h,w as l,f as t,q as D,ag as V,u as o,m as y,i as m,t as _,j as L,V as M,h as p,x as Ie}from"./vendor.01d0adc5.js";import{i as he,j as ye,u as ke,e as Ee,g as f}from"./main.832b14c7.js";import{_ as Ce}from"./MoonwalkerIcon.ab503573.js";import{_ as De}from"./InvoiceIndexDropdown.a0cb5742.js";import{_ as Ve}from"./SendInvoiceModal.35678ab1.js";import"./mail-driver.1b5e2a8f.js";const Te=p("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Ae={class:"relative table-container"},$e={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Se={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Pe={class:"absolute items-center left-6 top-2.5 select-none"},we={class:"relative block"},Fe={class:"flex justify-between"},Me={setup(Ne){const c=he(),W=ye();ke();const{t:n}=ve();pe("$utils");const k=B(null),b=B(!1),G=B([{label:"Status",options:["DRAFT","DUE","SENT","VIEWED","OVERDUE","COMPLETED"]},{label:"Paid Status",options:["UNPAID","PAID","PARTIALLY_PAID"]},,]),T=B(!0),u=B("general.draft");fe();const E=Ee();let s=be({customer_id:"",status:"DRAFT",from_date:"",to_date:"",invoice_number:""});const N=F(()=>!c.invoiceTotalCount&&!T.value),A=F({get:()=>c.selectedInvoices,set:a=>c.selectInvoice(a)}),H=F(()=>[{key:"checkbox",thClass:"extra w-10",tdClass:"font-medium text-gray-900",placeholderClass:"w-10",sortable:!1},{key:"invoice_date",label:n("invoices.date"),thClass:"extra",tdClass:"font-medium"},{key:"invoice_number",label:n("invoices.number")},{key:"name",label:n("invoices.customer")},{key:"status",label:n("invoices.status")},{key:"due_amount",label:n("dashboard.recent_invoices_card.amount_due")},{key:"total",label:n("invoices.total"),tdClass:"font-medium text-gray-900"},{key:"actions",label:n("invoices.action"),tdClass:"text-right text-sm font-medium",thClass:"text-right",sortable:!1}]);ge(s,()=>{X()},{debounce:500}),Be(()=>{c.selectAllField&&c.selectAllInvoices()});function q(){return E.hasAbilities([f.DELETE_INVOICE,f.EDIT_INVOICE,f.VIEW_INVOICE,f.SEND_INVOICE])}async function z(a,r){s.status="",$()}function $(){k.value&&k.value.refresh()}async function Y({page:a,filter:r,sort:v}){let S={customer_id:s.customer_id,status:s.status,from_date:s.from_date,to_date:s.to_date,invoice_number:s.invoice_number,orderByField:v.fieldName||"created_at",orderBy:v.order||"desc",page:a};T.value=!0;let d=await c.fetchInvoices(S);return T.value=!1,{data:d.data.data,pagination:{totalPages:d.data.meta.last_page,currentPage:a,totalCount:d.data.meta.total,limit:10}}}function J(a){if(u.value==a.title)return!0;switch(u.value=a.title,a.title){case n("general.draft"):s.status="DRAFT";break;case n("general.sent"):s.status="SENT";break;case n("general.due"):s.status="DUE";break;default:s.status="";break}}function X(){c.$patch(a=>{a.selectedInvoices=[],a.selectAllField=!1}),$()}function U(){s.customer_id="",s.status="",s.from_date="",s.to_date="",s.invoice_number="",u.value=n("general.all")}async function K(){W.openDialog({title:n("general.are_you_sure"),message:n("invoices.confirm_delete"),yesLabel:n("general.ok"),noLabel:n("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async a=>{a&&await c.deleteMultipleInvoices().then(r=>{r.data.success&&($(),c.$patch(v=>{v.selectedInvoices=[],v.selectAllField=!1}))})})}function Q(){b.value&&U(),b.value=!b.value}function Z(a){switch(a){case"DRAFT":u.value=n("general.draft");break;case"SENT":u.value=n("general.sent");break;case"DUE":u.value=n("general.due");break;case"COMPLETED":u.value=n("invoices.completed");break;case"PAID":u.value=n("invoices.paid");break;case"UNPAID":u.value=n("invoices.unpaid");break;case"PARTIALLY_PAID":u.value=n("invoices.partially_paid");break;case"VIEWED":u.value=n("invoices.viewed");break;case"OVERDUE":u.value=n("invoices.overdue");break;default:u.value=n("general.all");break}}return(a,r)=>{const v=i("BaseBreadcrumbItem"),S=i("BaseBreadcrumb"),d=i("BaseIcon"),P=i("BaseButton"),R=i("router-link"),ee=i("BasePageHeader"),te=i("BaseCustomerSelectInput"),g=i("BaseInputGroup"),ae=i("BaseMultiselect"),O=i("BaseDatePicker"),le=i("BaseInput"),se=i("BaseFilterWrapper"),oe=i("BaseEmptyPlaceholder"),C=i("BaseTab"),ne=i("BaseTabGroup"),ie=i("BaseDropdownItem"),re=i("BaseDropdown"),j=i("BaseCheckbox"),ce=i("BaseText"),x=i("BaseFormatMoney"),ue=i("BaseInvoiceStatusBadge"),de=i("BasePaidStatusBadge"),me=i("BaseTable"),_e=i("BasePage");return I(),h(_e,null,{default:l(()=>[t(Ve),t(ee,{title:a.$t("invoices.title")},{actions:l(()=>[D(t(P,{variant:"primary-outline",onClick:Q},{right:l(e=>[b.value?(I(),h(d,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(I(),h(d,{key:0,name:"FilterIcon",class:y(e.class)},null,8,["class"]))]),default:l(()=>[m(_(a.$t("general.filter"))+" ",1)]),_:1},512),[[V,o(c).invoiceTotalCount]]),o(E).hasAbilities(o(f).CREATE_INVOICE)?(I(),h(R,{key:0,to:"invoices/create"},{default:l(()=>[t(P,{variant:"primary",class:"ml-4"},{left:l(e=>[t(d,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:l(()=>[m(" "+_(a.$t("invoices.new_invoice")),1)]),_:1})]),_:1})):L("",!0)]),default:l(()=>[t(S,null,{default:l(()=>[t(v,{title:a.$t("general.home"),to:"dashboard"},null,8,["title"]),t(v,{title:a.$tc("invoices.invoice",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),D(t(se,{"row-on-xl":!0,onClear:U},{default:l(()=>[t(g,{label:a.$tc("customers.customer",1)},{default:l(()=>[t(te,{modelValue:o(s).customer_id,"onUpdate:modelValue":r[0]||(r[0]=e=>o(s).customer_id=e),placeholder:a.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(g,{label:a.$t("invoices.status")},{default:l(()=>[t(ae,{modelValue:o(s).status,"onUpdate:modelValue":[r[1]||(r[1]=e=>o(s).status=e),Z],groups:!0,options:G.value,searchable:"",placeholder:a.$t("general.select_a_status"),onRemove:r[2]||(r[2]=e=>z())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(g,{label:a.$t("general.from")},{default:l(()=>[t(O,{modelValue:o(s).from_date,"onUpdate:modelValue":r[3]||(r[3]=e=>o(s).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Te,t(g,{label:a.$t("general.to"),class:"mt-2"},{default:l(()=>[t(O,{modelValue:o(s).to_date,"onUpdate:modelValue":r[4]||(r[4]=e=>o(s).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),t(g,{label:a.$t("invoices.invoice_number")},{default:l(()=>[t(le,{modelValue:o(s).invoice_number,"onUpdate:modelValue":r[5]||(r[5]=e=>o(s).invoice_number=e)},{left:l(e=>[t(d,{name:"HashtagIcon",class:y(e.class)},null,8,["class"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[V,b.value]]),D(t(oe,{title:a.$t("invoices.no_invoices"),description:a.$t("invoices.list_of_invoices")},M({default:l(()=>[t(Ce,{class:"mt-5 mb-4"})]),_:2},[o(E).hasAbilities(o(f).CREATE_INVOICE)?{name:"actions",fn:l(()=>[t(P,{variant:"primary-outline",onClick:r[6]||(r[6]=e=>a.$router.push("/admin/invoices/create"))},{left:l(e=>[t(d,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:l(()=>[m(" "+_(a.$t("invoices.add_new_invoice")),1)]),_:1})])}:void 0]),1032,["title","description"]),[[V,o(N)]]),D(p("div",Ae,[p("div",$e,[t(ne,{class:"-mb-5",onChange:J},{default:l(()=>[t(C,{title:a.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),t(C,{title:a.$t("general.due"),filter:"DUE"},null,8,["title"]),t(C,{title:a.$t("general.sent"),filter:"SENT"},null,8,["title"]),t(C,{title:a.$t("general.all"),filter:""},null,8,["title"])]),_:1}),o(c).selectedInvoices.length&&o(E).hasAbilities(o(f).DELETE_INVOICE)?(I(),h(re,{key:0,class:"absolute float-right"},{activator:l(()=>[p("span",Se,[m(_(a.$t("general.actions"))+" ",1),t(d,{name:"ChevronDownIcon"})])]),default:l(()=>[t(ie,{onClick:K},{default:l(()=>[t(d,{name:"TrashIcon",class:"mr-3 text-gray-600"}),m(" "+_(a.$t("general.delete")),1)]),_:1})]),_:1})):L("",!0)]),t(me,{ref:(e,w)=>{w.table=e,k.value=e},data:Y,columns:o(H),"placeholder-count":o(c).invoiceTotalCount>=20?10:5,class:"mt-10"},M({header:l(()=>[p("div",Pe,[t(j,{modelValue:o(c).selectAllField,"onUpdate:modelValue":r[7]||(r[7]=e=>o(c).selectAllField=e),variant:"primary",onChange:o(c).selectAllInvoices},null,8,["modelValue","onChange"])])]),"cell-checkbox":l(({row:e})=>[p("div",we,[t(j,{id:e.id,modelValue:o(A),"onUpdate:modelValue":r[8]||(r[8]=w=>Ie(A)?A.value=w:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-name":l(({row:e})=>[t(ce,{text:e.data.customer.name,length:30},null,8,["text"])]),"cell-invoice_number":l(({row:e})=>[t(R,{to:{path:`invoices/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:l(()=>[m(_(e.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-invoice_date":l(({row:e})=>[m(_(e.data.formatted_invoice_date),1)]),"cell-total":l(({row:e})=>[t(x,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":l(({row:e})=>[t(ue,{status:e.data.status,class:"px-3 py-1"},{default:l(()=>[m(_(e.data.status),1)]),_:2},1032,["status"])]),"cell-due_amount":l(({row:e})=>[p("div",Fe,[t(x,{amount:e.data.due_amount,currency:e.data.currency},null,8,["amount","currency"]),t(de,{status:e.data.paid_status,class:"px-1 py-0.5 ml-2"},{default:l(()=>[m(_(e.data.paid_status),1)]),_:2},1032,["status"])])]),_:2},[q()?{name:"cell-actions",fn:l(({row:e})=>[t(De,{row:e.data,table:k.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[V,!o(N)]])]),_:1})}}};export{Me as default};
import{B as b,J as le,a0 as oe,k as g,aR as ne,aS as re,I as ue,r as n,o as p,l as _,w as t,f as a,h as d,q as F,ag as A,u as l,m as v,i as B,t as i,j as U,V as ce,x as M}from"./vendor.01d0adc5.js";import{b as me,j as de,l as ie,e as pe,g as C}from"./main.832b14c7.js";import{_ as _e}from"./CustomerIndexDropdown.8fced79d.js";import{_ as fe}from"./AstronautIcon.948728ac.js";const he={class:"flex items-center justify-end space-x-5"},ye={class:"relative table-container"},Be={class:"relative flex items-center justify-end h-5"},Ce={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},be={class:"absolute z-10 items-center left-6 top-2.5 select-none"},ge={class:"relative block"},Se={setup(ve){me();const W=de(),u=ie(),k=pe();let f=b(null),h=b(!1),x=b(!0);const{t:m}=le();let r=oe({display_name:"",contact_name:"",phone:""});const P=g(()=>!u.totalCustomers&&!x.value),I=g({get:()=>u.selectedCustomers,set:s=>u.selectCustomer(s)}),V=g({get:()=>u.selectAllField,set:s=>u.setSelectAllState(s)}),Y=g(()=>[{key:"status",thClass:"extra w-10 pr-0",sortable:!1,tdClass:"font-medium text-gray-900 pr-0"},{key:"name",label:m("customers.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"phone",label:m("customers.phone")},{key:"due_amount",label:m("customers.amount_due")},{key:"created_at",label:m("items.added_on")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"pl-0",sortable:!1}]);ne(r,()=>{z()},{debounce:500}),re(()=>{u.selectAllField&&u.selectAllCustomers()});function S(){f.value.refresh()}function z(){S()}function L(){return k.hasAbilities([C.DELETE_CUSTOMER,C.EDIT_CUSTOMER,C.VIEW_CUSTOMER])}async function G({page:s,filter:o,sort:y}){let $={display_name:r.display_name,contact_name:r.contact_name,phone:r.phone,orderByField:y.fieldName||"created_at",orderBy:y.order||"desc",page:s};x.value=!0;let c=await u.fetchCustomers($);return x.value=!1,{data:c.data.data,pagination:{totalPages:c.data.meta.last_page,currentPage:s,totalCount:c.data.meta.total,limit:10}}}function R(){r.display_name="",r.contact_name="",r.phone=""}function H(){h.value&&R(),h.value=!h.value}let j=b(new Date);j.value=ue(j).format("YYYY-MM-DD");function q(){W.openDialog({title:m("general.are_you_sure"),message:m("customers.confirm_delete",2),yesLabel:m("general.ok"),noLabel:m("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(s=>{s&&u.deleteMultipleCustomers().then(o=>{o.data&&S()})})}return(s,o)=>{const y=n("BaseBreadcrumbItem"),$=n("BaseBreadcrumb"),c=n("BaseIcon"),D=n("BaseButton"),J=n("BasePageHeader"),E=n("BaseInput"),w=n("BaseInputGroup"),X=n("BaseFilterWrapper"),K=n("BaseEmptyPlaceholder"),Q=n("BaseDropdownItem"),Z=n("BaseDropdown"),N=n("BaseCheckbox"),O=n("BaseText"),ee=n("router-link"),te=n("BaseFormatMoney"),ae=n("BaseTable"),se=n("BasePage");return p(),_(se,null,{default:t(()=>[a(J,{title:s.$t("customers.title")},{actions:t(()=>[d("div",he,[F(a(D,{variant:"primary-outline",onClick:H},{right:t(e=>[l(h)?(p(),_(c,{key:1,name:"XIcon",class:v(e.class)},null,8,["class"])):(p(),_(c,{key:0,name:"FilterIcon",class:v(e.class)},null,8,["class"]))]),default:t(()=>[B(i(s.$t("general.filter"))+" ",1)]),_:1},512),[[A,l(u).totalCustomers]]),l(k).hasAbilities(l(C).CREATE_CUSTOMER)?(p(),_(D,{key:0,onClick:o[0]||(o[0]=e=>s.$router.push("customers/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:v(e.class)},null,8,["class"])]),default:t(()=>[B(" "+i(s.$t("customers.new_customer")),1)]),_:1})):U("",!0)])]),default:t(()=>[a($,null,{default:t(()=>[a(y,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),a(y,{title:s.$tc("customers.customer",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(X,{show:l(h),class:"mt-5",onClear:R},{default:t(()=>[a(w,{label:s.$t("customers.display_name"),class:"text-left"},{default:t(()=>[a(E,{modelValue:l(r).display_name,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).display_name=e),type:"text",name:"name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(w,{label:s.$t("customers.contact_name"),class:"text-left"},{default:t(()=>[a(E,{modelValue:l(r).contact_name,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).contact_name=e),type:"text",name:"address_name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(w,{label:s.$t("customers.phone"),class:"text-left"},{default:t(()=>[a(E,{modelValue:l(r).phone,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).phone=e),type:"text",name:"phone",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),F(a(K,{title:s.$t("customers.no_customers"),description:s.$t("customers.list_of_customers")},{actions:t(()=>[l(k).hasAbilities(l(C).CREATE_CUSTOMER)?(p(),_(D,{key:0,variant:"primary-outline",onClick:o[4]||(o[4]=e=>s.$router.push("/admin/customers/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:v(e.class)},null,8,["class"])]),default:t(()=>[B(" "+i(s.$t("customers.add_new_customer")),1)]),_:1})):U("",!0)]),default:t(()=>[a(fe,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[A,l(P)]]),F(d("div",ye,[d("div",Be,[l(u).selectedCustomers.length?(p(),_(Z,{key:0},{activator:t(()=>[d("span",Ce,[B(i(s.$t("general.actions"))+" ",1),a(c,{name:"ChevronDownIcon"})])]),default:t(()=>[a(Q,{onClick:q},{default:t(()=>[a(c,{name:"TrashIcon",class:"mr-3 text-gray-600"}),B(" "+i(s.$t("general.delete")),1)]),_:1})]),_:1})):U("",!0)]),a(ae,{ref:(e,T)=>{T.tableComponent=e,M(f)?f.value=e:f=e},class:"mt-3",data:G,columns:l(Y)},ce({header:t(()=>[d("div",be,[a(N,{modelValue:l(V),"onUpdate:modelValue":o[5]||(o[5]=e=>M(V)?V.value=e:null),variant:"primary",onChange:l(u).selectAllCustomers},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[d("div",ge,[a(N,{id:e.data.id,modelValue:l(I),"onUpdate:modelValue":o[6]||(o[6]=T=>M(I)?I.value=T:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[a(ee,{to:{path:`customers/${e.data.id}/view`}},{default:t(()=>[a(O,{text:e.data.name,length:30,tag:"span",class:"font-medium text-primary-500 flex flex-col"},null,8,["text"]),a(O,{text:e.data.contact_name?e.data.contact_name:"",length:30,tag:"span",class:"text-xs text-gray-400"},null,8,["text"])]),_:2},1032,["to"])]),"cell-phone":t(({row:e})=>[d("span",null,i(e.data.phone?e.data.phone:"-"),1)]),"cell-due_amount":t(({row:e})=>[a(te,{amount:e.data.due_amount||0,currency:e.data.currency},null,8,["amount","currency"])]),"cell-created_at":t(({row:e})=>[d("span",null,i(e.data.formatted_created_at),1)]),_:2},[L()?{name:"cell-actions",fn:t(({row:e})=>[a(_e,{row:e.data,table:l(f),"load-data":S},null,8,["row","table"])])}:void 0]),1032,["columns"])],512),[[A,!l(P)]])]),_:1})}}};export{Se as default};
import{J as G,G as oe,aN as M,ah as re,r as o,o as p,l as f,w as t,u as n,f as a,i as g,t as d,B as b,a0 as ue,k as D,C as ie,D as ce,aS as de,h as B,q as T,ag as z,m as V,j as E,V as me,x as H}from"./vendor.01d0adc5.js";import{u as O}from"./users.936a04ee.js";import{j as W,u as q,e as J}from"./main.832b14c7.js";import{_ as pe}from"./AstronautIcon.948728ac.js";const fe={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(U){const $=U,u=W();q();const{t:_}=G();J();const y=oe();M();const k=O();re("utils");function m(i){u.openDialog({title:_("general.are_you_sure"),message:_("users.confirm_delete",1),yesLabel:_("general.ok"),noLabel:_("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(l=>{l&&k.deleteUser({ids:[i]}).then(h=>{h&&$.loadData&&$.loadData()})})}return(i,l)=>{const h=o("BaseIcon"),C=o("BaseButton"),v=o("BaseDropdownItem"),w=o("router-link"),x=o("BaseDropdown");return p(),f(x,null,{activator:t(()=>[n(y).name==="users.view"?(p(),f(C,{key:0,variant:"primary"},{default:t(()=>[a(h,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),f(h,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(w,{to:`/admin/users/${U.row.id}/edit`},{default:t(()=>[a(v,null,{default:t(()=>[a(h,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+d(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"]),a(v,{onClick:l[0]||(l[0]=S=>m(U.row.id))},{default:t(()=>[a(h,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+d(i.$t("general.delete")),1)]),_:1})]),_:1})}}},_e={class:"flex items-center justify-end space-x-5"},he={class:"relative table-container"},ge={class:"relative flex items-center justify-end h-5 border-gray-200 border-solid"},Be={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},ye={class:"absolute z-10 items-center left-6 top-2.5 select-none"},ve={class:"custom-control custom-checkbox"},Ue={setup(U){q();const $=W(),u=O(),_=J();M();let y=b(!1),k=b(!0);b(null),b("created_at"),b(!1);const{t:m}=G();let i=b(null),l=ue({name:"",email:"",phone:""});const h=D(()=>[{key:"status",thClass:"extra",tdClass:"font-medium text-gray-900",sortable:!1},{key:"name",label:m("users.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"email",label:"Email"},{key:"phone",label:m("users.phone")},{key:"created_at",label:m("users.added_on")},{key:"actions",tdClass:"text-right text-sm font-medium",sortable:!1}]),C=D(()=>!u.totalUsers&&!k.value),v=D({get:()=>u.selectedUsers,set:s=>u.selectUser(s)}),w=D({get:()=>u.selectAllField,set:s=>u.setSelectAllState(s)});ie(l,()=>{x()},{deep:!0}),ce(()=>{u.fetchUsers(),u.fetchRoles()}),de(()=>{u.selectAllField&&u.selectAllUsers()});function x(){S()}function S(){i.value&&i.value.refresh()}async function X({page:s,filter:r,sort:I}){let F={display_name:l.name!==null?l.name:"",phone:l.phone!==null?l.phone:"",email:l.email!==null?l.email:"",orderByField:I.fieldName||"created_at",orderBy:I.order||"desc",page:s};k.value=!0;let c=await u.fetchUsers(F);return k.value=!1,{data:c.data.data,pagination:{totalPages:c.data.meta.last_page,currentPage:s,totalCount:c.data.meta.total,limit:10}}}function L(){l.name="",l.email="",l.phone=null}function K(){y.value&&L(),y.value=!y.value}function Q(){$.openDialog({title:m("general.are_you_sure"),message:m("users.confirm_delete",2),yesLabel:m("general.ok"),noLabel:m("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(s=>{s&&u.deleteMultipleUsers().then(r=>{r.data.success&&i.value&&i.value.refresh()})})}return(s,r)=>{const I=o("BaseBreadcrumbItem"),F=o("BaseBreadcrumb"),c=o("BaseIcon"),j=o("BaseButton"),Y=o("BasePageHeader"),P=o("BaseInput"),N=o("BaseInputGroup"),Z=o("BaseFilterWrapper"),ee=o("BaseEmptyPlaceholder"),te=o("BaseDropdownItem"),ae=o("BaseDropdown"),R=o("BaseCheckbox"),se=o("router-link"),le=o("BaseTable"),ne=o("BasePage");return p(),f(ne,null,{default:t(()=>[a(Y,{title:s.$t("users.title")},{actions:t(()=>[B("div",_e,[T(a(j,{variant:"primary-outline",onClick:K},{right:t(e=>[n(y)?(p(),f(c,{key:1,name:"XIcon",class:V(e.class)},null,8,["class"])):(p(),f(c,{key:0,name:"FilterIcon",class:V(e.class)},null,8,["class"]))]),default:t(()=>[g(d(s.$t("general.filter"))+" ",1)]),_:1},512),[[z,n(u).totalUsers]]),n(_).currentUser.is_owner?(p(),f(j,{key:0,onClick:r[0]||(r[0]=e=>s.$router.push("users/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:V(e.class),"aria-hidden":"true"},null,8,["class"])]),default:t(()=>[g(" "+d(s.$t("users.add_user")),1)]),_:1})):E("",!0)])]),default:t(()=>[a(F,null,{default:t(()=>[a(I,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),a(I,{title:s.$tc("users.title",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(Z,{show:n(y),class:"mt-3",onClear:L},{default:t(()=>[a(N,{label:s.$tc("users.name"),class:"flex-1 mt-2 mr-4"},{default:t(()=>[a(P,{modelValue:n(l).name,"onUpdate:modelValue":r[1]||(r[1]=e=>n(l).name=e),type:"text",name:"name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(N,{label:s.$tc("users.email"),class:"flex-1 mt-2 mr-4"},{default:t(()=>[a(P,{modelValue:n(l).email,"onUpdate:modelValue":r[2]||(r[2]=e=>n(l).email=e),type:"text",name:"email",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(N,{class:"flex-1 mt-2",label:s.$tc("users.phone")},{default:t(()=>[a(P,{modelValue:n(l).phone,"onUpdate:modelValue":r[3]||(r[3]=e=>n(l).phone=e),type:"text",name:"phone",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),T(a(ee,{title:s.$t("users.no_users"),description:s.$t("users.list_of_users")},{actions:t(()=>[n(_).currentUser.is_owner?(p(),f(j,{key:0,variant:"primary-outline",onClick:r[4]||(r[4]=e=>s.$router.push("/admin/users/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:V(e.class)},null,8,["class"])]),default:t(()=>[g(" "+d(s.$t("users.add_user")),1)]),_:1})):E("",!0)]),default:t(()=>[a(pe,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[z,n(C)]]),T(B("div",he,[B("div",ge,[n(u).selectedUsers.length?(p(),f(ae,{key:0},{activator:t(()=>[B("span",Be,[g(d(s.$t("general.actions"))+" ",1),a(c,{name:"ChevronDownIcon",class:"h-5"})])]),default:t(()=>[a(te,{onClick:Q},{default:t(()=>[a(c,{name:"TrashIcon",class:"h-5 mr-3 text-gray-600"}),g(" "+d(s.$t("general.delete")),1)]),_:1})]),_:1})):E("",!0)]),a(le,{ref:(e,A)=>{A.table=e,H(i)?i.value=e:i=e},data:X,columns:n(h),class:"mt-3"},me({header:t(()=>[B("div",ye,[a(R,{modelValue:n(w),"onUpdate:modelValue":r[5]||(r[5]=e=>H(w)?w.value=e:null),variant:"primary",onChange:n(u).selectAllUsers},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[B("div",ve,[a(R,{id:e.data.id,modelValue:n(v),"onUpdate:modelValue":r[6]||(r[6]=A=>H(v)?v.value=A:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[a(se,{to:{path:`users/${e.data.id}/edit`},class:"font-medium text-primary-500"},{default:t(()=>[g(d(e.data.name),1)]),_:2},1032,["to"])]),"cell-phone":t(({row:e})=>[B("span",null,d(e.data.phone?e.data.phone:"-"),1)]),"cell-created_at":t(({row:e})=>[B("span",null,d(e.data.formatted_created_at),1)]),_:2},[n(_).currentUser.is_owner?{name:"cell-actions",fn:t(({row:e})=>[a(fe,{row:e.data,table:n(i),"load-data":S},null,8,["row","table"])])}:void 0]),1032,["columns"])],512),[[z,!n(C)]])]),_:1})}}};export{Ue as default};
import{J as A,B as b,a0 as K,ah as O,G as Q,k as I,aR as Y,r as o,o as B,l as h,w as t,f as n,q as P,ag as C,u as l,m as M,i as v,t as c,j as Z,h as g,x as ee}from"./vendor.01d0adc5.js";import te from"./BaseTable.440de545.js";import{_ as ae}from"./CapsuleIcon.dc769b69.js";import{x as ne,w as le}from"./main.832b14c7.js";import{u as oe}from"./payment.b36842df.js";import{u as se}from"./global.8697213a.js";import"./auth.77d12976.js";const me={class:"relative table-container"},re=["innerHTML"],Be={setup(ce){const{tm:ue,t:u}=A();let i=b(!1);b("created_at");let $=b(!0),y=b(null);const s=K({payment_mode:"",payment_number:""}),D=O("utils");Q();const d=oe(),_=se(),w=I(()=>!d.totalPayments&&!$.value),H=I(()=>_.currency),N=I(()=>[{key:"payment_date",label:u("payments.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"payment_number",label:u("payments.payment_number")},{key:"payment_mode",label:u("payments.payment_mode")},{key:"invoice_number",label:u("invoices.invoice_number")},{key:"amount",label:u("payments.amount")},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);Y(s,()=>{R()},{debounce:500});async function T(a){return(await d.fetchPaymentModes(a,_.companySlug)).data.data}async function E({page:a,filter:r,sort:p}){let k={payment_method_id:s.payment_mode!==null?s.payment_mode:"",payment_number:s.payment_number,orderByField:p.fieldName||"created_at",orderBy:p.order||"desc",page:a};$.value=!0;let m=await d.fetchPayments(k,_.companySlug);return $.value=!1,{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:a,totalCount:m.data.meta.total,limit:10}}}function G(){y.value.refresh()}function R(){G()}function S(){s.customer="",s.payment_mode="",s.payment_number=""}function W(){i.value&&S(),i.value=!i.value}return(a,r)=>{const p=o("BaseBreadcrumbItem"),k=o("BaseBreadcrumb"),m=o("BaseIcon"),x=o("BaseButton"),z=o("BasePageHeader"),L=o("BaseInput"),V=o("BaseInputGroup"),U=o("BaseMultiselect"),q=o("BaseFilterWrapper"),J=o("BaseEmptyPlaceholder"),j=o("router-link"),X=o("BasePage");return B(),h(X,null,{default:t(()=>[n(z,{title:a.$t("payments.title")},{actions:t(()=>[P(n(x,{variant:"primary-outline",onClick:W},{right:t(e=>[l(i)?(B(),h(m,{key:1,class:M(e.class),name:"XIcon"},null,8,["class"])):(B(),h(m,{key:0,class:M(e.class),name:"FilterIcon"},null,8,["class"]))]),default:t(()=>[v(c(a.$t("general.filter"))+" ",1)]),_:1},512),[[C,l(d).totalPayments]])]),default:t(()=>[n(k,{slot:"breadcrumbs"},{default:t(()=>[n(p,{title:a.$t("general.home"),to:`/${l(_).companySlug}/customer/dashboard`},null,8,["title","to"]),n(p,{title:a.$tc("payments.payment",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),P(n(q,{onClear:S},{default:t(()=>[n(V,{label:a.$t("payments.payment_number"),class:"px-3"},{default:t(()=>[n(L,{modelValue:l(s).payment_number,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).payment_number=e),placeholder:a.$t("payments.payment_number")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(V,{label:a.$t("payments.payment_mode"),class:"px-3"},{default:t(()=>[n(U,{modelValue:l(s).payment_mode,"onUpdate:modelValue":r[1]||(r[1]=e=>l(s).payment_mode=e),"value-prop":"id","track-by":"name","filter-results":!1,label:"name","resolve-on-load":"",delay:100,searchable:"",options:T,placeholder:a.$t("payments.payment_mode")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},512),[[C,l(i)]]),l(w)?(B(),h(J,{key:0,title:a.$t("payments.no_payments"),description:a.$t("payments.list_of_payments")},{default:t(()=>[n(ae,{class:"mt-5 mb-4"})]),_:1},8,["title","description"])):Z("",!0),P(g("div",me,[n(te,{ref:(e,f)=>{f.table=e,ee(y)?y.value=e:y=e},data:E,columns:l(N),"placeholder-count":l(d).totalPayments>=20?10:5,class:"mt-10"},{"cell-payment_date":t(({row:e})=>[v(c(e.data.formatted_payment_date),1)]),"cell-payment_number":t(({row:e})=>[n(j,{to:{path:`payments/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:t(()=>[v(c(e.data.payment_number),1)]),_:2},1032,["to"])]),"cell-payment_mode":t(({row:e})=>[g("span",null,c(e.data.payment_method?e.data.payment_method.name:a.$t("payments.not_selected")),1)]),"cell-invoice_number":t(({row:e})=>{var f,F;return[g("span",null,c(((f=e.data.invoice)==null?void 0:f.invoice_number)?(F=e.data.invoice)==null?void 0:F.invoice_number:a.$t("payments.no_invoice")),1)]}),"cell-amount":t(({row:e})=>[g("div",{innerHTML:l(D).formatMoney(e.data.amount,l(H))},null,8,re)]),"cell-actions":t(({row:e})=>[n(ne,null,{activator:t(()=>[n(m,{name:"DotsHorizontalIcon",class:"w-5 text-gray-500"})]),default:t(()=>[n(j,{to:`payments/${e.data.id}/view`},{default:t(()=>[n(le,null,{default:t(()=>[n(m,{name:"EyeIcon",class:"h-5 mr-3 text-gray-600"}),v(" "+c(a.$t("general.view")),1)]),_:1})]),_:2},1032,["to"])]),_:2},1024)]),_:1},8,["columns","placeholder-count"])],512),[[C,!l(w)]])]),_:1})}}};export{Be as default};
var ge=Object.defineProperty,he=Object.defineProperties;var Ce=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var W=(r,s,u)=>s in r?ge(r,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):r[s]=u,O=(r,s)=>{for(var u in s||(s={}))be.call(s,u)&&W(r,u,s[u]);if(G)for(var u of G(s))xe.call(s,u)&&W(r,u,s[u]);return r},q=(r,s)=>he(r,Ce(s));import{o as m,e as ve,h as c,m as y,J,G as Be,aN as Ee,ah as ke,r as o,l as _,w as t,u as a,f as l,i as b,t as g,j as I,B as M,a0 as we,k as F,aR as Se,aS as De,D as Ie,q as j,ag as X,V as K,x as U}from"./vendor.01d0adc5.js";import{u as Q}from"./expense.e774182e.js";import{u as $e}from"./category.c27e9638.js";import{j as Y,u as Fe,e as ee,g as v,b as Ve}from"./main.832b14c7.js";const Pe={width:"110",height:"110",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Le={props:{primaryFillColor:{type:String,default:"fill-primary-500"},secondaryFillColor:{type:String,default:"fill-gray-600"}},setup(r){return(s,u)=>(m(),ve("svg",Pe,[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55 13.75C24.6245 13.75 0 22.9848 0 34.375C0 45.7652 24.6245 55 55 55C85.3755 55 110 45.7652 110 34.375C110 22.9848 85.3755 13.75 55 13.75ZM55 15.4688C86.8708 15.4688 108.281 25.245 108.281 34.375C108.281 43.505 86.8708 53.2812 55 53.2812C23.1292 53.2812 1.71875 43.505 1.71875 34.375C1.71875 25.245 23.1292 15.4688 55 15.4688Z",class:y(r.secondaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.9999 1.71875C66.0842 1.71875 75.7452 7.92172 80.697 17.038L82.732 17.2081C77.6737 7.01078 67.1549 0 54.9999 0C42.7985 0 32.2454 7.06406 27.2095 17.3267L29.2479 17.1411C34.1824 7.96812 43.8745 1.71875 54.9999 1.71875Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55 96.25C40.7619 96.25 25.7812 99.3283 25.7812 103.125C25.7812 106.922 40.7619 110 55 110C69.2381 110 84.2188 106.922 84.2188 103.125C84.2188 99.3283 69.2381 96.25 55 96.25ZM55 97.9688C70.4602 97.9688 81.5959 101.317 82.4811 103.125C81.5959 104.933 70.4602 108.281 55 108.281C39.5398 108.281 28.4041 104.933 27.5189 103.125C28.4041 101.317 39.5398 97.9688 55 97.9688Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27.4756 103.328L25.8049 102.922L41.2737 39.3286L42.9443 39.7342L27.4756 103.328Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M82.5247 103.328L67.0559 39.7342L68.7265 39.3286L84.1953 102.922L82.5247 103.328Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M68.75 39.5312C68.75 42.3792 62.5934 44.6875 55 44.6875C47.4066 44.6875 41.25 42.3792 41.25 39.5312C41.25 36.6833 47.4066 34.375 55 34.375C62.5934 34.375 68.75 36.6833 68.75 39.5312Z",class:y(r.secondaryFillColor)},null,2)]))}},Ne={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(r){const s=r,u=Y();Fe();const{t:B}=J(),E=Q(),w=Be();Ee();const x=ee();ke("utils");function d(h){u.openDialog({title:B("general.are_you_sure"),message:B("expenses.confirm_delete",1),yesLabel:B("general.ok"),noLabel:B("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(p=>{p&&E.deleteExpense({ids:[h]}).then(C=>{C&&s.loadData&&s.loadData()})})}return(h,p)=>{const C=o("BaseIcon"),S=o("BaseButton"),k=o("BaseDropdownItem"),V=o("router-link"),P=o("BaseDropdown");return m(),_(P,null,{activator:t(()=>[a(w).name==="expenses.view"?(m(),_(S,{key:0,variant:"primary"},{default:t(()=>[l(C,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),_(C,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(x).hasAbilities(a(v).EDIT_EXPENSE)?(m(),_(V,{key:0,to:`/admin/expenses/${r.row.id}/edit`},{default:t(()=>[l(k,null,{default:t(()=>[l(C,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),b(" "+g(h.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):I("",!0),a(x).hasAbilities(a(v).DELETE_EXPENSE)?(m(),_(k,{key:1,onClick:p[0]||(p[0]=Z=>d(r.row.id))},{default:t(()=>[l(C,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),b(" "+g(h.$t("general.delete")),1)]),_:1})):I("",!0)]),_:1})}}},Ae=c("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Te={class:"relative table-container"},Me={class:"relative flex items-center justify-end h-5"},je={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Xe={class:"absolute items-center left-6 top-2.5 select-none"},Ue={class:"relative block"},Ze={class:"notes"},Re={class:"truncate note w-60"},qe={setup(r){Ve();const s=Q(),u=Y(),B=$e(),E=ee();let w=M(!0),x=M(null);const d=we({expense_category_id:"",from_date:"",to_date:"",customer_id:""}),{t:h}=J();let p=M(null);const C=F(()=>!s.totalExpenses&&!w.value),S=F({get:()=>s.selectedExpenses,set:n=>s.selectExpense(n)}),k=F({get:()=>s.selectAllField,set:n=>s.setSelectAllState(n)}),V=F(()=>[{key:"status",thClass:"extra w-10",tdClass:"font-medium text-gray-900",placeholderClass:"w-10",sortable:!1},{key:"expense_date",label:"Date",thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"name",label:"Category",thClass:"extra",tdClass:"cursor-pointer font-medium text-primary-500"},{key:"user_name",label:"Customer"},{key:"notes",label:"Note"},{key:"amount",label:"Amount"},{key:"actions",sortable:!1,tdClass:"text-right text-sm font-medium"}]);Se(d,()=>{te()},{debounce:500}),De(()=>{s.selectAllField&&s.selectAllExpenses()}),Ie(()=>{B.fetchCategories({limit:"all"})});async function P(n){return(await B.fetchCategories({search:n})).data.data}async function Z({page:n,filter:i,sort:D}){let N=q(O({},d),{orderByField:D.fieldName||"created_at",orderBy:D.order||"desc",page:n});w.value=!0;let f=await s.fetchExpenses(N);return w.value=!1,{data:f.data.data,pagination:{data:f.data.data,totalPages:f.data.meta.last_page,currentPage:n,totalCount:f.data.meta.total,limit:10}}}function L(){p.value&&p.value.refresh()}function te(){L()}function R(){d.expense_category_id="",d.from_date="",d.to_date="",d.customer_id=""}function ae(){x.value&&R(),x.value=!x.value}function le(){return E.hasAbilities([v.DELETE_EXPENSE,v.EDIT_EXPENSE])}function se(){u.openDialog({title:h("general.are_you_sure"),message:h("expenses.confirm_delete",2),yesLabel:h("general.ok"),noLabel:h("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(n=>{n&&s.deleteMultipleExpenses().then(i=>{i.data&&L()})})}return(n,i)=>{const D=o("BaseBreadcrumbItem"),N=o("BaseBreadcrumb"),f=o("BaseIcon"),A=o("BaseButton"),ne=o("BasePageHeader"),oe=o("BaseCustomerSelectInput"),$=o("BaseInputGroup"),re=o("BaseMultiselect"),z=o("BaseDatePicker"),ie=o("BaseFilterWrapper"),de=o("BaseEmptyPlaceholder"),ue=o("BaseDropdownItem"),ce=o("BaseDropdown"),H=o("BaseCheckbox"),me=o("router-link"),pe=o("BaseFormatMoney"),fe=o("BaseText"),_e=o("BaseTable"),ye=o("BasePage");return m(),_(ye,null,{default:t(()=>[l(ne,{title:n.$t("expenses.title")},{actions:t(()=>[j(l(A,{variant:"primary-outline",onClick:ae},{right:t(e=>[a(x)?(m(),_(f,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(m(),_(f,{key:0,name:"FilterIcon",class:y(e.class)},null,8,["class"]))]),default:t(()=>[b(g(n.$t("general.filter"))+" ",1)]),_:1},512),[[X,a(s).totalExpenses]]),a(E).hasAbilities(a(v).CREATE_EXPENSE)?(m(),_(A,{key:0,class:"ml-4",variant:"primary",onClick:i[0]||(i[0]=e=>n.$router.push("expenses/create"))},{left:t(e=>[l(f,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:t(()=>[b(" "+g(n.$t("expenses.add_expense")),1)]),_:1})):I("",!0)]),default:t(()=>[l(N,null,{default:t(()=>[l(D,{title:n.$t("general.home"),to:"dashboard"},null,8,["title"]),l(D,{title:n.$tc("expenses.expense",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),l(ie,{show:a(x),class:"mt-5",onClear:R},{default:t(()=>[l($,{label:n.$t("expenses.customer")},{default:t(()=>[l(oe,{modelValue:a(d).customer_id,"onUpdate:modelValue":i[1]||(i[1]=e=>a(d).customer_id=e),placeholder:n.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l($,{label:n.$t("expenses.category")},{default:t(()=>[l(re,{modelValue:a(d).expense_category_id,"onUpdate:modelValue":i[2]||(i[2]=e=>a(d).expense_category_id=e),"value-prop":"id",label:"name","track-by":"name","filter-results":!1,"resolve-on-load":"",delay:500,options:P,searchable:"",placeholder:n.$t("expenses.categories.select_a_category")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l($,{label:n.$t("expenses.from_date")},{default:t(()=>[l(z,{modelValue:a(d).from_date,"onUpdate:modelValue":i[3]||(i[3]=e=>a(d).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Ae,l($,{label:n.$t("expenses.to_date")},{default:t(()=>[l(z,{modelValue:a(d).to_date,"onUpdate:modelValue":i[4]||(i[4]=e=>a(d).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),j(l(de,{title:n.$t("expenses.no_expenses"),description:n.$t("expenses.list_of_expenses")},K({default:t(()=>[l(Le,{class:"mt-5 mb-4"})]),_:2},[a(E).hasAbilities(a(v).CREATE_EXPENSE)?{name:"actions",fn:t(()=>[l(A,{variant:"primary-outline",onClick:i[5]||(i[5]=e=>n.$router.push("/admin/expenses/create"))},{left:t(e=>[l(f,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:t(()=>[b(" "+g(n.$t("expenses.add_new_expense")),1)]),_:1})])}:void 0]),1032,["title","description"]),[[X,a(C)]]),j(c("div",Te,[c("div",Me,[a(s).selectedExpenses.length&&a(E).hasAbilities(a(v).DELETE_EXPENSE)?(m(),_(ce,{key:0},{activator:t(()=>[c("span",je,[b(g(n.$t("general.actions"))+" ",1),l(f,{name:"ChevronDownIcon"})])]),default:t(()=>[a(E).hasAbilities(a(v).DELETE_EXPENSE)?(m(),_(ue,{key:0,onClick:se},{default:t(()=>[l(f,{name:"TrashIcon",class:"h-5 mr-3 text-gray-600"}),b(" "+g(n.$t("general.delete")),1)]),_:1})):I("",!0)]),_:1})):I("",!0)]),l(_e,{ref:(e,T)=>{T.tableComponent=e,U(p)?p.value=e:p=e},data:Z,columns:a(V),class:"mt-3"},K({header:t(()=>[c("div",Xe,[l(H,{modelValue:a(k),"onUpdate:modelValue":i[6]||(i[6]=e=>U(k)?k.value=e:null),variant:"primary",onChange:a(s).selectAllExpenses},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[c("div",Ue,[l(H,{id:e.id,modelValue:a(S),"onUpdate:modelValue":i[7]||(i[7]=T=>U(S)?S.value=T:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[l(me,{to:{path:`expenses/${e.data.id}/edit`},class:"font-medium text-primary-500"},{default:t(()=>[b(g(e.data.expense_category.name),1)]),_:2},1032,["to"])]),"cell-amount":t(({row:e})=>[l(pe,{amount:e.data.amount,currency:e.data.currency},null,8,["amount","currency"])]),"cell-expense_date":t(({row:e})=>[b(g(e.data.formatted_expense_date),1)]),"cell-user_name":t(({row:e})=>[l(fe,{text:e.data.customer?e.data.customer.name:"-",length:30},null,8,["text"])]),"cell-notes":t(({row:e})=>[c("div",Ze,[c("div",Re,g(e.data.notes?e.data.notes:"-"),1)])]),_:2},[le()?{name:"cell-actions",fn:t(({row:e})=>[l(Ne,{row:e.data,table:a(p),"load-data":L},null,8,["row","table"])])}:void 0]),1032,["columns"])],512),[[X,!a(C)]])]),_:1})}}};export{qe as default};
import{J as K,ah as Q,G as Y,B as b,a0 as Z,k as I,aR as ee,r as s,o as B,l as y,w as a,f as t,q as k,ag as V,u as n,m as F,i,t as u,j as te,h as x}from"./vendor.01d0adc5.js";import{u as ae}from"./invoice.fd03309f.js";import oe from"./BaseTable.440de545.js";import{u as se}from"./global.8697213a.js";import{_ as ne}from"./MoonwalkerIcon.ab503573.js";import"./auth.77d12976.js";import"./main.832b14c7.js";const le=x("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),re={class:"relative table-container"},ve={setup(ce){const{t:d}=K();Q("utils"),Y();const D=b(null);let g=b(!0),m=b(!1);const P=b(["DRAFT","DUE","SENT","VIEWED","OVERDUE","COMPLETED"]),o=Z({status:"",from_date:"",to_date:"",invoice_number:""}),p=ae(),h=se();I(()=>h.currency);const j=I(()=>[{key:"invoice_date",label:d("invoices.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"invoice_number",label:d("invoices.number")},{key:"status",label:d("invoices.status")},{key:"paid_status",label:d("invoices.paid_status")},{key:"due_amount",label:d("dashboard.recent_invoices_card.amount_due")},{key:"actions",thClass:"text-right",tdClass:"text-right text-sm font-medium",sortable:!1}]),$=I(()=>!p.totalInvoices&&!g.value);ee(o,()=>{T()},{debounce:500});function N(){D.value.refresh()}function T(){N()}function S(){o.status="",o.from_date="",o.to_date="",o.invoice_number=""}function U(){m.value&&S(),m.value=!m.value}async function H({page:l,sort:r}){let f={status:o.status,invoice_number:o.invoice_number,from_date:o.from_date,to_date:o.to_date,orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:l};g.value=!0;let _=await p.fetchInvoices(f,h.companySlug);return g.value=!1,{data:_.data.data,pagination:{totalPages:_.data.meta.last_page,currentPage:l,totalCount:_.data.meta.total,limit:10}}}return(l,r)=>{const f=s("BaseBreadcrumbItem"),_=s("BaseBreadcrumb"),c=s("BaseIcon"),G=s("BaseButton"),M=s("BasePageHeader"),R=s("BaseSelectInput"),v=s("BaseInputGroup"),W=s("BaseInput"),w=s("BaseDatePicker"),z=s("BaseFilterWrapper"),O=s("BaseEmptyPlaceholder"),C=s("router-link"),q=s("BaseFormatMoney"),E=s("BaseInvoiceStatusBadge"),A=s("BaseDropdownItem"),J=s("BaseDropdown"),L=s("BasePage");return B(),y(L,null,{default:a(()=>[t(M,{title:l.$t("invoices.title")},{actions:a(()=>[k(t(G,{variant:"primary-outline",onClick:U},{right:a(e=>[n(m)?(B(),y(c,{key:1,name:"XIcon",class:F(e.class)},null,8,["class"])):(B(),y(c,{key:0,name:"FilterIcon",class:F(e.class)},null,8,["class"]))]),default:a(()=>[i(u(l.$t("general.filter"))+" ",1)]),_:1},512),[[V,n(p).totalInvoices]])]),default:a(()=>[t(_,null,{default:a(()=>[t(f,{title:l.$t("general.home"),to:`/${n(h).companySlug}/customer/dashboard`},null,8,["title","to"]),t(f,{title:l.$tc("invoices.invoice",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),k(t(z,{onClear:S},{default:a(()=>[t(v,{label:l.$t("invoices.status"),class:"px-3"},{default:a(()=>[t(R,{modelValue:n(o).status,"onUpdate:modelValue":r[0]||(r[0]=e=>n(o).status=e),options:P.value,searchable:"","allow-empty":!1,placeholder:l.$t("general.select_a_status")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(v,{label:l.$t("invoices.invoice_number"),color:"black-light",class:"px-3 mt-2"},{default:a(()=>[t(W,{modelValue:n(o).invoice_number,"onUpdate:modelValue":r[1]||(r[1]=e=>n(o).invoice_number=e)},{default:a(()=>[t(c,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}),t(c,{name:"HashtagIcon",class:"h-5 ml-3 text-gray-600"})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(v,{label:l.$t("general.from"),class:"px-3"},{default:a(()=>[t(w,{modelValue:n(o).from_date,"onUpdate:modelValue":r[2]||(r[2]=e=>n(o).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),le,t(v,{label:l.$t("general.to"),class:"px-3"},{default:a(()=>[t(w,{modelValue:n(o).to_date,"onUpdate:modelValue":r[3]||(r[3]=e=>n(o).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[V,n(m)]]),n($)?(B(),y(O,{key:0,title:l.$t("invoices.no_invoices"),description:l.$t("invoices.list_of_invoices")},{default:a(()=>[t(ne,{class:"mt-5 mb-4"})]),_:1},8,["title","description"])):te("",!0),k(x("div",re,[t(oe,{ref:(e,X)=>{X.table=e,D.value=e},data:H,columns:n(j),"placeholder-count":n(p).totalInvoices>=20?10:5,class:"mt-10"},{"cell-invoice_date":a(({row:e})=>[i(u(e.data.formatted_invoice_date),1)]),"cell-invoice_number":a(({row:e})=>[t(C,{to:{path:`invoices/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:a(()=>[i(u(e.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-due_amount":a(({row:e})=>[t(q,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":a(({row:e})=>[t(E,{status:e.data.status,class:"px-3 py-1"},{default:a(()=>[i(u(e.data.status),1)]),_:2},1032,["status"])]),"cell-paid_status":a(({row:e})=>[t(E,{status:e.data.paid_status,class:"px-3 py-1"},{default:a(()=>[i(u(e.data.paid_status),1)]),_:2},1032,["status"])]),"cell-actions":a(({row:e})=>[t(J,null,{activator:a(()=>[t(c,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"})]),default:a(()=>[t(C,{to:`invoices/${e.data.id}/view`},{default:a(()=>[t(A,null,{default:a(()=>[t(c,{name:"EyeIcon",class:"h-5 mr-3 text-gray-600"}),i(" "+u(l.$t("general.view")),1)]),_:1})]),_:2},1032,["to"])]),_:2},1024)]),_:1},8,["columns","placeholder-count"])],512),[[V,!n($)]])]),_:1})}}};export{ve as default};
import{J as j,a0 as C,B as b,I as r,k as M,C as L,D as F,r as i,o as I,e as N,h as m,f as t,w as c,u as p,i as U,t as P,U as H,l as K,m as X}from"./vendor.01d0adc5.js";import{d as W,b as z}from"./main.832b14c7.js";const Z={class:"grid gap-8 md:grid-cols-12 pt-10"},ee={class:"col-span-8 md:col-span-4"},te={class:"flex flex-col my-6 lg:space-x-3 lg:flex-row"},ae=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),oe={class:"col-span-8"},re=["src"],ne={setup(G){const{t:g}=j(),v=W();v.downloadReport=x;const u=C([g("dateRange.today"),g("dateRange.this_week"),g("dateRange.this_month"),g("dateRange.this_quarter"),g("dateRange.this_year"),g("dateRange.previous_week"),g("dateRange.previous_month"),g("dateRange.previous_quarter"),g("dateRange.previous_year"),g("dateRange.custom")]),$=b(["By Customer","By Item"]),o=b("By Customer"),k=b(g("dateRange.this_month"));let w=b(new Date),D=b(null),e=b(null),y=b(null),s=C({from_date:r().startOf("month").format("YYYY-MM-DD").toString(),to_date:r().endOf("month").format("YYYY-MM-DD").toString()});const O=z(),n=M(()=>D.value),d=M(()=>O.selectedCompany),V=M(()=>`${e.value}?from_date=${r(s.from_date).format("YYYY-MM-DD")}&to_date=${r(s.to_date).format("YYYY-MM-DD")}`),T=M(()=>`${y.value}?from_date=${r(s.from_date).format("YYYY-MM-DD")}&to_date=${r(s.to_date).format("YYYY-MM-DD")}`);L(w,f=>{s.from_date=r(f).startOf("year").toString(),s.to_date=r(f).endOf("year").toString()}),F(()=>{e.value=`/reports/sales/customers/${d.value.unique_hash}`,y.value=`/reports/sales/items/${d.value.unique_hash}`,l()});function _(f,Y){return r()[f](Y).format("YYYY-MM-DD")}function B(f,Y){return r().subtract(1,Y)[f](Y).format("YYYY-MM-DD")}function a(){switch(k.value){case"Today":s.from_date=r().format("YYYY-MM-DD"),s.to_date=r().format("YYYY-MM-DD");break;case"This Week":s.from_date=_("startOf","isoWeek"),s.to_date=_("endOf","isoWeek");break;case"This Month":s.from_date=_("startOf","month"),s.to_date=_("endOf","month");break;case"This Quarter":s.from_date=_("startOf","quarter"),s.to_date=_("endOf","quarter");break;case"This Year":s.from_date=_("startOf","year"),s.to_date=_("endOf","year");break;case"Previous Week":s.from_date=B("startOf","isoWeek"),s.to_date=B("endOf","isoWeek");break;case"Previous Month":s.from_date=B("startOf","month"),s.to_date=B("endOf","month");break;case"Previous Quarter":s.from_date=B("startOf","quarter"),s.to_date=B("endOf","quarter");break;case"Previous Year":s.from_date=B("startOf","year"),s.to_date=B("endOf","year");break}}async function l(){return o.value==="By Customer"?(D.value=V.value,!0):(D.value=T.value,!0)}async function S(){let f=await R();return window.open(n.value,"_blank"),f}function R(){return o.value==="By Customer"?(D.value=V.value,!0):(D.value=T.value,!0)}function x(){if(!R())return!1;window.open(n.value+"&download=true"),setTimeout(()=>o.value==="By Customer"?(D.value=V.value,!0):(D.value=T.value,!0),200)}return(f,Y)=>{const h=i("BaseMultiselect"),Q=i("BaseInputGroup"),E=i("BaseDatePicker"),J=i("BaseButton"),A=i("BaseIcon");return I(),N("div",Z,[m("div",ee,[t(Q,{label:f.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(h,{modelValue:k.value,"onUpdate:modelValue":[Y[0]||(Y[0]=q=>k.value=q),a],options:p(u)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",te,[t(Q,{label:f.$t("reports.sales.from_date")},{default:c(()=>[t(E,{modelValue:p(s).from_date,"onUpdate:modelValue":Y[1]||(Y[1]=q=>p(s).from_date=q)},null,8,["modelValue"])]),_:1},8,["label"]),ae,t(Q,{label:f.$t("reports.sales.to_date")},{default:c(()=>[t(E,{modelValue:p(s).to_date,"onUpdate:modelValue":Y[2]||(Y[2]=q=>p(s).to_date=q)},null,8,["modelValue"])]),_:1},8,["label"])]),t(Q,{label:f.$t("reports.sales.report_type"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(h,{modelValue:o.value,"onUpdate:modelValue":[Y[3]||(Y[3]=q=>o.value=q),l],options:$.value,placeholder:f.$t("reports.sales.report_type"),class:"mt-1"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(J,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(R,["prevent"])},{default:c(()=>[U(P(f.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",oe,[m("iframe",{src:p(n),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,re),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500",onClick:S},[t(A,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(f.$t("reports.view_pdf")),1)])])])}}},se={class:"grid gap-8 md:grid-cols-12 pt-10"},le={class:"col-span-8 md:col-span-4"},de={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},ue=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),ie={class:"col-span-8"},me=["src"],ce={setup(G){const g=W(),v=z(),{t:u}=j();g.downloadReport=B;const $=C([u("dateRange.today"),u("dateRange.this_week"),u("dateRange.this_month"),u("dateRange.this_quarter"),u("dateRange.this_year"),u("dateRange.previous_week"),u("dateRange.previous_month"),u("dateRange.previous_quarter"),u("dateRange.previous_year"),u("dateRange.custom")]),o=b(u("dateRange.this_month"));let k=b(new Date),w=b(null),D=b(null);const e=C({from_date:r().startOf("month").toString(),to_date:r().endOf("month").toString()}),y=M(()=>w.value),s=M(()=>v.selectedCompany),O=M(()=>`${D.value}?from_date=${r(e.from_date).format("YYYY-MM-DD")}&to_date=${r(e.to_date).format("YYYY-MM-DD")}`);F(()=>{D.value=`/reports/expenses/${s.value.unique_hash}`,w.value=O.value}),L(()=>k,a=>{e.from_date=r(a).startOf("year").toString(),e.to_date=r(a).endOf("year").toString()});function n(a,l){return r()[a](l).format("YYYY-MM-DD")}function d(a,l){return r().subtract(1,l)[a](l).format("YYYY-MM-DD")}function V(){switch(o.value){case"Today":e.from_date=r().format("YYYY-MM-DD"),e.to_date=r().format("YYYY-MM-DD");break;case"This Week":e.from_date=n("startOf","isoWeek"),e.to_date=n("endOf","isoWeek");break;case"This Month":e.from_date=n("startOf","month"),e.to_date=n("endOf","month");break;case"This Quarter":e.from_date=n("startOf","quarter"),e.to_date=n("endOf","quarter");break;case"This Year":e.from_date=n("startOf","year"),e.to_date=n("endOf","year");break;case"Previous Week":e.from_date=d("startOf","isoWeek"),e.to_date=d("endOf","isoWeek");break;case"Previous Month":e.from_date=d("startOf","month"),e.to_date=d("endOf","month");break;case"Previous Quarter":e.from_date=d("startOf","quarter"),e.to_date=d("endOf","quarter");break;case"Previous Year":e.from_date=d("startOf","year"),e.to_date=d("endOf","year");break}}async function T(){let a=await _();return window.open(y.value,"_blank"),a}function _(){return w.value=O.value,!0}function B(){!_(),window.open(y.value+"&download=true"),setTimeout(()=>{w.value=O.value},200)}return(a,l)=>{const S=i("BaseMultiselect"),R=i("BaseInputGroup"),x=i("BaseDatePicker"),f=i("BaseButton"),Y=i("BaseIcon");return I(),N("div",se,[m("div",le,[t(R,{label:a.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(S,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=h=>o.value=h),V],options:p($)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",de,[t(R,{label:a.$t("reports.expenses.from_date")},{default:c(()=>[t(x,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=h=>p(e).from_date=h)},null,8,["modelValue"])]),_:1},8,["label"]),ue,t(R,{label:a.$t("reports.expenses.to_date")},{default:c(()=>[t(x,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=h=>p(e).to_date=h)},null,8,["modelValue"])]),_:1},8,["label"])]),t(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:c(()=>[U(P(a.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",ie,[m("iframe",{src:p(y),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,me),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500 cursor-pointer",onClick:T},[t(Y,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(a.$t("reports.view_pdf")),1)])])])}}},pe={class:"grid gap-8 md:grid-cols-12 pt-10"},fe={class:"col-span-8 md:col-span-4"},_e={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},he=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),ge={class:"col-span-8"},ve=["src"],Ye={setup(G){const g=W(),v=z(),{t:u}=j();g.downloadReport=B;const $=C([u("dateRange.today"),u("dateRange.this_week"),u("dateRange.this_month"),u("dateRange.this_quarter"),u("dateRange.this_year"),u("dateRange.previous_week"),u("dateRange.previous_month"),u("dateRange.previous_quarter"),u("dateRange.previous_year"),u("dateRange.custom")]),o=b(u("dateRange.this_month"));let k=b(null),w=b(null),D=b(new Date);const e=C({from_date:r().startOf("month").toString(),to_date:r().endOf("month").toString()}),y=M(()=>k.value),s=M(()=>v.selectedCompany),O=M(()=>`${w.value}?from_date=${r(e.from_date).format("YYYY-MM-DD")}&to_date=${r(e.to_date).format("YYYY-MM-DD")}`);L(D,a=>{e.from_date=r(a).startOf("year").toString(),e.to_date=r(a).endOf("year").toString()}),F(()=>{w.value=`/reports/profit-loss/${s.value.unique_hash}`,k.value=O.value});function n(a,l){return r()[a](l).format("YYYY-MM-DD")}function d(a,l){return r().subtract(1,l)[a](l).format("YYYY-MM-DD")}function V(){switch(o.value){case"Today":e.from_date=r().format("YYYY-MM-DD"),e.to_date=r().format("YYYY-MM-DD");break;case"This Week":e.from_date=n("startOf","isoWeek"),e.to_date=n("endOf","isoWeek");break;case"This Month":e.from_date=n("startOf","month"),e.to_date=n("endOf","month");break;case"This Quarter":e.from_date=n("startOf","quarter"),e.to_date=n("endOf","quarter");break;case"This Year":e.from_date=n("startOf","year"),e.to_date=n("endOf","year");break;case"Previous Week":e.from_date=d("startOf","isoWeek"),e.to_date=d("endOf","isoWeek");break;case"Previous Month":e.from_date=d("startOf","month"),e.to_date=d("endOf","month");break;case"Previous Quarter":e.from_date=d("startOf","quarter"),e.to_date=d("endOf","quarter");break;case"Previous Year":e.from_date=d("startOf","year"),e.to_date=d("endOf","year");break}}async function T(){let a=await _();return window.open(y.value,"_blank"),a}function _(){return k.value=O.value,!0}function B(){!_(),window.open(y.value+"&download=true"),setTimeout(()=>{k.value=O.value},200)}return(a,l)=>{const S=i("BaseMultiselect"),R=i("BaseInputGroup"),x=i("BaseDatePicker"),f=i("BaseButton"),Y=i("BaseIcon");return I(),N("div",pe,[m("div",fe,[t(R,{label:a.$t("reports.profit_loss.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(S,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=h=>o.value=h),V],options:p($)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",_e,[t(R,{label:a.$t("reports.profit_loss.from_date")},{default:c(()=>[t(x,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=h=>p(e).from_date=h)},null,8,["modelValue"])]),_:1},8,["label"]),he,t(R,{label:a.$t("reports.profit_loss.to_date")},{default:c(()=>[t(x,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=h=>p(e).to_date=h)},null,8,["modelValue"])]),_:1},8,["label"])]),t(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:c(()=>[U(P(a.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",ge,[m("iframe",{src:p(y),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,ve),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500",onClick:T},[t(Y,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(a.$t("reports.view_pdf")),1)])])])}}},be={class:"grid gap-8 md:grid-cols-12 pt-10"},ye={class:"col-span-8 md:col-span-4"},ke={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},De=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),we={class:"col-span-8"},Re=["src"],Be={setup(G){const g=W();g.downloadReport=B;const{t:v}=j(),u=C([v("dateRange.today"),v("dateRange.this_week"),v("dateRange.this_month"),v("dateRange.this_quarter"),v("dateRange.this_year"),v("dateRange.previous_week"),v("dateRange.previous_month"),v("dateRange.previous_quarter"),v("dateRange.previous_year"),v("dateRange.custom")]),$=b(v("dateRange.this_month")),o=C({from_date:r().startOf("month").format("YYYY-MM-DD").toString(),to_date:r().endOf("month").format("YYYY-MM-DD").toString()});let k=b(null);const w=M(()=>k.value),D=z(),e=M(()=>D.selectedCompany);let y=b(null);F(()=>{y.value=`/reports/tax-summary/${e.value.unique_hash}`,k.value=s.value});const s=M(()=>`${y.value}?from_date=${r(o.from_date).format("YYYY-MM-DD")}&to_date=${r(o.to_date).format("YYYY-MM-DD")}`);let O=b(new Date);L(O.value,a=>{o.from_date=r(a).startOf("year").toString(),o.to_date=r(a).endOf("year").toString()});function n(a,l){return r()[a](l).format("YYYY-MM-DD")}function d(a,l){return r().subtract(1,l)[a](l).format("YYYY-MM-DD")}function V(){switch($.value){case"Today":o.from_date=r().format("YYYY-MM-DD"),o.to_date=r().format("YYYY-MM-DD");break;case"This Week":o.from_date=n("startOf","isoWeek"),o.to_date=n("endOf","isoWeek");break;case"This Month":o.from_date=n("startOf","month"),o.to_date=n("endOf","month");break;case"This Quarter":o.from_date=n("startOf","quarter"),o.to_date=n("endOf","quarter");break;case"This Year":o.from_date=n("startOf","year"),o.to_date=n("endOf","year");break;case"Previous Week":o.from_date=d("startOf","isoWeek"),o.to_date=d("endOf","isoWeek");break;case"Previous Month":o.from_date=d("startOf","month"),o.to_date=d("endOf","month");break;case"Previous Quarter":o.from_date=d("startOf","quarter"),o.to_date=d("endOf","quarter");break;case"Previous Year":o.from_date=d("startOf","year"),o.to_date=d("endOf","year");break}}async function T(){let a=await _();return window.open(w.value,"_blank"),a}function _(){return k.value=s.value,!0}function B(){!_(),window.open(w.value+"&download=true"),setTimeout(()=>{k.value=s.value},200)}return(a,l)=>{const S=i("BaseMultiselect"),R=i("BaseInputGroup"),x=i("BaseDatePicker"),f=i("BaseButton"),Y=i("BaseIcon");return I(),N("div",be,[m("div",ye,[t(R,{label:a.$t("reports.taxes.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(S,{modelValue:$.value,"onUpdate:modelValue":[l[0]||(l[0]=h=>$.value=h),V],options:p(u)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",ke,[t(R,{label:a.$t("reports.taxes.from_date")},{default:c(()=>[t(x,{modelValue:p(o).from_date,"onUpdate:modelValue":l[1]||(l[1]=h=>p(o).from_date=h)},null,8,["modelValue"])]),_:1},8,["label"]),De,t(R,{label:a.$t("reports.taxes.to_date")},{default:c(()=>[t(x,{modelValue:p(o).to_date,"onUpdate:modelValue":l[2]||(l[2]=h=>p(o).to_date=h)},null,8,["modelValue"])]),_:1},8,["label"])]),t(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:c(()=>[U(P(a.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",we,[m("iframe",{src:p(w),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,Re),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500",onClick:T},[t(Y,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(a.$t("reports.view_pdf")),1)])])])}}},$e={setup(G){const g=W();function v(){g.downloadReport()}return(u,$)=>{const o=i("BaseBreadcrumbItem"),k=i("BaseBreadcrumb"),w=i("BaseIcon"),D=i("BaseButton"),e=i("BasePageHeader"),y=i("BaseTab"),s=i("BaseTabGroup"),O=i("BasePage");return I(),K(O,null,{default:c(()=>[t(e,{title:u.$tc("reports.report",2)},{actions:c(()=>[t(D,{variant:"primary",class:"ml-4",onClick:v},{left:c(n=>[t(w,{name:"DownloadIcon",class:X(n.class)},null,8,["class"])]),default:c(()=>[U(" "+P(u.$t("reports.download_pdf")),1)]),_:1})]),default:c(()=>[t(k,null,{default:c(()=>[t(o,{title:u.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),t(o,{title:u.$tc("reports.report",2),to:"/admin/reports",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),t(s,{class:"p-2"},{default:c(()=>[t(y,{title:u.$t("reports.sales.sales"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(ne,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"]),t(y,{title:u.$t("reports.profit_loss.profit_loss"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(Ye,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"]),t(y,{title:u.$t("reports.expenses.expenses"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(ce,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"]),t(y,{title:u.$t("reports.taxes.taxes"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(Be,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"])]),_:1})]),_:1})}}};export{$e as default};
import{B as h,J as ce,aN as _e,a0 as pe,k as R,aR as fe,aS as be,r as n,o as b,l as E,w as s,f as a,q as C,ag as I,u as l,m as y,i as _,t as p,j as P,h as g,V as Ee,x as ge}from"./vendor.01d0adc5.js";import{k as Be,j as ve,e as he,g as f}from"./main.832b14c7.js";import{_ as ye}from"./ObservatoryIcon.1877bd3e.js";import{_ as Te}from"./EstimateIndexDropdown.5b4a2113.js";import{_ as ke}from"./SendEstimateModal.63b9a1be.js";import"./mail-driver.1b5e2a8f.js";const Ce=g("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Ie={class:"relative table-container"},Ae={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Se={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},De={class:"absolute items-center left-6 top-2.5 select-none"},Ve={class:"relative block"},Ne={setup($e){const u=Be(),W=ve(),T=he(),k=h(null),{t:i}=ce(),B=h(!1),G=h(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]),A=h(!0),d=h("general.draft");_e();let o=pe({customer_id:"",status:"DRAFT",from_date:"",to_date:"",estimate_number:""});const M=R(()=>!u.totalEstimateCount&&!A.value),S=R({get:()=>u.selectedEstimates,set:t=>{u.selectEstimate(t)}}),O=R(()=>[{key:"checkbox",thClass:"extra w-10 pr-0",sortable:!1,tdClass:"font-medium text-gray-900 pr-0"},{key:"estimate_date",label:i("estimates.date"),thClass:"extra",tdClass:"font-medium text-gray-500"},{key:"estimate_number",label:i("estimates.number",2)},{key:"name",label:i("estimates.customer")},{key:"status",label:i("estimates.status")},{key:"total",label:i("estimates.total"),tdClass:"font-medium text-gray-900"},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]);fe(o,()=>{q()},{debounce:500}),be(()=>{u.selectAllField&&u.selectAllEstimates()});function H(){return T.hasAbilities([f.CREATE_ESTIMATE,f.EDIT_ESTIMATE,f.VIEW_ESTIMATE,f.SEND_ESTIMATE])}async function J(t,r){o.status="",D()}function D(){k.value&&k.value.refresh()}async function L({page:t,filter:r,sort:c}){let V={customer_id:o.customer_id,status:o.status,from_date:o.from_date,to_date:o.to_date,estimate_number:o.estimate_number,orderByField:c.fieldName||"created_at",orderBy:c.order||"desc",page:t};A.value=!0;let m=await u.fetchEstimates(V);return A.value=!1,{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:t,totalCount:m.data.meta.total,limit:10}}}function X(t){if(d.value==t.title)return!0;switch(d.value=t.title,t.title){case i("general.draft"):o.status="DRAFT";break;case i("general.sent"):o.status="SENT";break;default:o.status="";break}}function q(){u.$patch(t=>{t.selectedEstimates=[],t.selectAllField=!1}),D()}function x(){o.customer_id="",o.status="",o.from_date="",o.to_date="",o.estimate_number="",d.value=i("general.all")}function z(){B.value&&x(),B.value=!B.value}async function K(){W.openDialog({title:i("general.are_you_sure"),message:i("estimates.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(t=>{t&&u.deleteMultipleEstimates().then(r=>{D(),r.data&&u.$patch(c=>{c.selectedEstimates=[],c.selectAllField=!1})})})}function Q(t){switch(t){case"DRAFT":d.value=i("general.draft");break;case"SENT":d.value=i("general.sent");break;case"VIEWED":d.value=i("estimates.viewed");break;case"EXPIRED":d.value=i("estimates.expired");break;case"ACCEPTED":d.value=i("estimates.accepted");break;case"REJECTED":d.value=i("estimates.rejected");break;default:d.value=i("general.all");break}}return(t,r)=>{const c=n("BaseBreadcrumbItem"),V=n("BaseBreadcrumb"),m=n("BaseIcon"),$=n("BaseButton"),N=n("router-link"),Y=n("BasePageHeader"),Z=n("BaseCustomerSelectInput"),v=n("BaseInputGroup"),ee=n("BaseMultiselect"),j=n("BaseDatePicker"),te=n("BaseInput"),ae=n("BaseFilterWrapper"),se=n("BaseEmptyPlaceholder"),F=n("BaseTab"),le=n("BaseTabGroup"),oe=n("BaseDropdownItem"),ne=n("BaseDropdown"),U=n("BaseCheckbox"),re=n("BaseText"),ie=n("BaseEstimateStatusBadge"),ue=n("BaseFormatMoney"),me=n("BaseTable"),de=n("BasePage");return b(),E(de,null,{default:s(()=>[a(ke),a(Y,{title:t.$t("estimates.title")},{actions:s(()=>[C(a($,{variant:"primary-outline",onClick:z},{right:s(e=>[B.value?(b(),E(m,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(b(),E(m,{key:0,class:y(e.class),name:"FilterIcon"},null,8,["class"]))]),default:s(()=>[_(p(t.$t("general.filter"))+" ",1)]),_:1},512),[[I,l(u).totalEstimateCount]]),l(T).hasAbilities(l(f).CREATE_ESTIMATE)?(b(),E(N,{key:0,to:"estimates/create"},{default:s(()=>[a($,{variant:"primary",class:"ml-4"},{left:s(e=>[a(m,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:s(()=>[_(" "+p(t.$t("estimates.new_estimate")),1)]),_:1})]),_:1})):P("",!0)]),default:s(()=>[a(V,null,{default:s(()=>[a(c,{title:t.$t("general.home"),to:"dashboard"},null,8,["title"]),a(c,{title:t.$tc("estimates.estimate",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),C(a(ae,{"row-on-xl":!0,onClear:x},{default:s(()=>[a(v,{label:t.$tc("customers.customer",1)},{default:s(()=>[a(Z,{modelValue:l(o).customer_id,"onUpdate:modelValue":r[0]||(r[0]=e=>l(o).customer_id=e),placeholder:t.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(v,{label:t.$t("estimates.status")},{default:s(()=>[a(ee,{modelValue:l(o).status,"onUpdate:modelValue":[r[1]||(r[1]=e=>l(o).status=e),Q],options:G.value,searchable:"",placeholder:t.$t("general.select_a_status"),onRemove:r[2]||(r[2]=e=>J())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),a(v,{label:t.$t("general.from")},{default:s(()=>[a(j,{modelValue:l(o).from_date,"onUpdate:modelValue":r[3]||(r[3]=e=>l(o).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Ce,a(v,{label:t.$t("general.to")},{default:s(()=>[a(j,{modelValue:l(o).to_date,"onUpdate:modelValue":r[4]||(r[4]=e=>l(o).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),a(v,{label:t.$t("estimates.estimate_number")},{default:s(()=>[a(te,{modelValue:l(o).estimate_number,"onUpdate:modelValue":r[5]||(r[5]=e=>l(o).estimate_number=e)},{left:s(e=>[a(m,{name:"HashtagIcon",class:y(e.class)},null,8,["class"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[I,B.value]]),C(a(se,{title:t.$t("estimates.no_estimates"),description:t.$t("estimates.list_of_estimates")},{actions:s(()=>[l(T).hasAbilities(l(f).CREATE_ESTIMATE)?(b(),E($,{key:0,variant:"primary-outline",onClick:r[6]||(r[6]=e=>t.$router.push("/admin/estimates/create"))},{left:s(e=>[a(m,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:s(()=>[_(" "+p(t.$t("estimates.add_new_estimate")),1)]),_:1})):P("",!0)]),default:s(()=>[a(ye,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[I,l(M)]]),C(g("div",Ie,[g("div",Ae,[a(le,{class:"-mb-5",onChange:X},{default:s(()=>[a(F,{title:t.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),a(F,{title:t.$t("general.sent"),filter:"SENT"},null,8,["title"]),a(F,{title:t.$t("general.all"),filter:""},null,8,["title"])]),_:1}),l(u).selectedEstimates.length&&l(T).hasAbilities(l(f).DELETE_ESTIMATE)?(b(),E(ne,{key:0,class:"absolute float-right"},{activator:s(()=>[g("span",Se,[_(p(t.$t("general.actions"))+" ",1),a(m,{name:"ChevronDownIcon"})])]),default:s(()=>[a(oe,{onClick:K},{default:s(()=>[a(m,{name:"TrashIcon",class:"mr-3 text-gray-600"}),_(" "+p(t.$t("general.delete")),1)]),_:1})]),_:1})):P("",!0)]),a(me,{ref:(e,w)=>{w.tableComponent=e,k.value=e},data:L,columns:l(O),"placeholder-count":l(u).totalEstimateCount>=20?10:5,class:"mt-10"},Ee({header:s(()=>[g("div",De,[a(U,{modelValue:l(u).selectAllField,"onUpdate:modelValue":r[7]||(r[7]=e=>l(u).selectAllField=e),variant:"primary",onChange:l(u).selectAllEstimates},null,8,["modelValue","onChange"])])]),"cell-checkbox":s(({row:e})=>[g("div",Ve,[a(U,{id:e.id,modelValue:l(S),"onUpdate:modelValue":r[8]||(r[8]=w=>ge(S)?S.value=w:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-estimate_date":s(({row:e})=>[_(p(e.data.formatted_estimate_date),1)]),"cell-estimate_number":s(({row:e})=>[a(N,{to:{path:`estimates/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:s(()=>[_(p(e.data.estimate_number),1)]),_:2},1032,["to"])]),"cell-name":s(({row:e})=>[a(re,{text:e.data.customer.name,length:30},null,8,["text"])]),"cell-status":s(({row:e})=>[a(ie,{status:e.data.status,class:"px-3 py-1"},{default:s(()=>[_(p(e.data.status),1)]),_:2},1032,["status"])]),"cell-total":s(({row:e})=>[a(ue,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),_:2},[H()?{name:"cell-actions",fn:s(({row:e})=>[a(Te,{row:e.data,table:k.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[I,!l(M)]])]),_:1})}}};export{Ne as default};
import{J as I,k as v,r as l,o as n,e as i,t as c,j as y,h as t,f as e,u as r,l as $,w as u,B as k,L as j,M as J,N as O,T as K,F as Q,y as W,U as X,m as Y,i as P}from"./vendor.01d0adc5.js";import{_ as Z,r as ee,d as te}from"./main.832b14c7.js";const se={key:0,class:"absolute mt-5 px-6 w-full flex justify-end"},ae={key:0,class:"bg-white bg-opacity-75 text-xs px-3 py-1 font-semibold tracking-wide rounded"},ne={key:1,class:"ml-2 bg-white bg-opacity-75 text-xs px-3 py-1 font-semibold tracking-wide rounded"},oe={key:0},le={key:1},re=["src"],ie={class:"px-6 py-5 flex flex-col bg-gray-50 flex-1 justify-between"},de={class:"text-lg sm:text-2xl font-medium whitespace-nowrap truncate text-primary-500"},ce={key:0,class:"flex items-center mt-2"},ue=["src"],me=t("span",null,"by",-1),_e={class:"ml-2 text-base font-semibold truncate"},he={class:"flex justify-between mt-4 flex-col space-y-2 sm:space-y-0 sm:flex-row"},pe={class:"text-xl md:text-2xl font-semibold whitespace-nowrap text-primary-500"},fe={props:{data:{type:Object,default:null,required:!0}},setup(a){const o=a;I();let m=v(()=>parseInt(o.data.average_rating));return(d,_)=>{const h=l("base-text"),g=l("BaseRating");return n(),i("div",{class:"relative shadow-md border-2 border-gray-200 border-opacity-60 rounded-lg cursor-pointer overflow-hidden h-100",onClick:_[0]||(_[0]=w=>d.$router.push(`/admin/modules/${a.data.slug}`))},[a.data.purchased?(n(),i("div",se,[a.data.purchased?(n(),i("label",ae,c(d.$t("modules.purchased")),1)):y("",!0),a.data.installed?(n(),i("label",ne,[a.data.update_available?(n(),i("span",oe,c(d.$t("modules.update_available")),1)):(n(),i("span",le,c(d.$t("modules.installed")),1))])):y("",!0)])):y("",!0),t("img",{class:"lg:h-64 md:h-48 w-full object-cover object-center",src:a.data.cover,alt:"cover"},null,8,re),t("div",ie,[t("span",de,c(a.data.name),1),a.data.author_avatar?(n(),i("div",ce,[t("img",{class:"hidden h-10 w-10 rounded-full sm:inline-block mr-2",src:a.data.author_avatar?a.data.author_avatar:"http://localhost:3000/img/default-avatar.jpg",alt:""},null,8,ue),me,t("span",_e,c(a.data.author_name),1)])):y("",!0),e(h,{text:a.data.short_description,class:"pt-4 text-gray-500 h-16 line-clamp-2",length:110},null,8,["text"]),t("div",he,[t("div",null,[e(g,{rating:r(m)},null,8,["rating"])]),t("div",pe," $ "+c(a.data.monthly_price?a.data.monthly_price/100:a.data.yearly_price/100),1)])])])}}},ge={},ve={class:"shadow-md border-2 border-gray-200 border-opacity-60 rounded-lg cursor-pointer overflow-hidden h-100"},be={class:"px-6 py-5 flex flex-col bg-gray-50 flex-1 justify-between"},ye={class:"flex items-center mt-2"},xe={class:"flex justify-between mt-4 flex-col space-y-2 sm:space-y-0 sm:flex-row"};function $e(a,o){const m=l("BaseContentPlaceholdersBox"),d=l("BaseContentPlaceholdersText"),_=l("BaseContentPlaceholders");return n(),$(_,null,{default:u(()=>[t("div",ve,[e(m,{class:"h-48 lg:h-64 md:h-48 w-full",rounded:""}),t("div",be,[e(d,{class:"w-32 h-8",lines:1,rounded:""}),t("div",ye,[e(m,{class:"h-10 w-10 rounded-full sm:inline-block mr-2"}),t("div",null,[e(d,{class:"w-32 h-8 ml-2",lines:1,rounded:""})])]),e(d,{class:"pt-4 w-full h-16",lines:1,rounded:""}),t("div",xe,[e(d,{class:"w-32 h-8",lines:1,rounded:""}),e(d,{class:"w-32 h-8",lines:1,rounded:""})])])])]),_:1})}var B=Z(ge,[["render",$e]]);const ke={key:0},Be={key:0,class:"grid mt-6 w-full grid-cols-1 items-start gap-6 lg:grid-cols-2 xl:grid-cols-3"},we={key:1},Te={key:0,class:"grid mt-6 w-full grid-cols-1 items-start gap-6 lg:grid-cols-2 xl:grid-cols-3"},Ce={key:1,class:"mt-24"},Se={class:"flex items-center justify-center text-gray-500"},Ie={class:"text-gray-900 text-lg font-medium"},je={class:"mt-1 text-sm text-gray-500"},Pe={class:"grid lg:grid-cols-2 mt-6"},Me=["onSubmit"],Le={class:"flex space-x-2"},Ue=["href"],Ve=P(" Sign up & Get Token "),Ae={setup(a){const o=ee(),m=te(),d=k(""),{t:_}=I();let h=k(!1),g=k(!1);const w=v(()=>({api_token:{required:j.withMessage(_("validation.required"),J),minLength:j.withMessage(_("validation.name_min_length",{count:3}),O(3))}})),M=v(()=>o.apiToken?(L(),!0):!1),p=K(w,v(()=>o.currentUser)),x=v(()=>d.value==="INSTALLED"?o.modules.filter(s=>s.installed):o.modules);async function L(){g.value=!0,await o.fetchModules().then(()=>{g.value=!1})}async function U(){if(p.value.$touch(),p.value.$invalid)return!0;h.value=!0,o.checkApiToken(o.currentUser.api_token).then(s=>{if(s.data.success){V();return}h.value=!1})}async function V(){try{await m.updateGlobalSettings({data:{settings:{api_token:o.currentUser.api_token}},message:"settings.preferences.updated_message"}).then(s=>{if(s.data.success){o.apiToken=o.currentUser.api_token;return}}),h.value=!1}catch(s){h.value=!1,console.error(s);return}}function G(s){d.value=s.filter}return(s,b)=>{const T=l("BaseBreadcrumbItem"),N=l("BaseBreadcrumb"),A=l("BasePageHeader"),C=l("BaseTab"),q=l("BaseTabGroup"),D=l("BaseInput"),F=l("BaseInputGroup"),E=l("BaseIcon"),S=l("BaseButton"),R=l("BaseCard"),H=l("BasePage");return n(),$(H,null,{default:u(()=>[e(A,{title:s.$t("modules.title")},{default:u(()=>[e(N,null,{default:u(()=>[e(T,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),e(T,{title:s.$tc("modules.module",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(M)&&r(o).modules?(n(),i("div",ke,[e(q,{class:"-mb-5",onChange:G},{default:u(()=>[e(C,{title:s.$t("general.all"),filter:""},null,8,["title"]),e(C,{title:s.$t("modules.installed"),filter:"INSTALLED"},null,8,["title"])]),_:1}),r(g)?(n(),i("div",Be,[e(B),e(B),e(B)])):(n(),i("div",we,[r(x)&&r(x).length?(n(),i("div",Te,[(n(!0),i(Q,null,W(r(x),(f,z)=>(n(),i("div",{key:z},[e(fe,{data:f},null,8,["data"])]))),128))])):(n(),i("div",Ce,[t("label",Se,c(s.$t("modules.no_modules_installed")),1)]))]))])):(n(),$(R,{key:1,class:"mt-6"},{default:u(()=>[t("h6",Ie,c(s.$t("modules.connect_installation")),1),t("p",je,c(s.$t("modules.api_token_description",{url:r(m).config.base_url.replace(/^http:\/\//,"")})),1),t("div",Pe,[t("form",{action:"",class:"mt-6",onSubmit:X(U,["prevent"])},[e(F,{label:s.$t("modules.api_token"),required:"",error:r(p).api_token.$error&&r(p).api_token.$errors[0].$message},{default:u(()=>[e(D,{modelValue:r(o).currentUser.api_token,"onUpdate:modelValue":b[0]||(b[0]=f=>r(o).currentUser.api_token=f),invalid:r(p).api_token.$error,onInput:b[1]||(b[1]=f=>r(p).api_token.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t("div",Le,[e(S,{class:"mt-6",loading:r(h),type:"submit"},{left:u(f=>[e(E,{name:"SaveIcon",class:Y(f.class)},null,8,["class"])]),default:u(()=>[P(" "+c(s.$t("general.save")),1)]),_:1},8,["loading"]),t("a",{href:`${r(m).config.base_url}/auth/customer/register`,class:"mt-6 block",target:"_blank"},[e(S,{variant:"primary-outline",type:"button"},{default:u(()=>[Ve]),_:1})],8,Ue)])],40,Me)])]),_:1}))]),_:1})}}};export{Ae as default};
import{B as b,J as fe,aN as pe,a0 as ge,k as R,aR as be,aS as Ie,r,o as I,l as B,w as s,f as a,q as k,ag as V,u as o,m as $,i as m,t as _,j as M,V as q,h as p,x as Be}from"./vendor.01d0adc5.js";import{t as he,l as ye,j as Ce,u as Re,e as ke,g as h}from"./main.832b14c7.js";import{_ as Ve}from"./SendInvoiceModal.35678ab1.js";import{_ as $e}from"./RecurringInvoiceIndexDropdown.c53e92ab.js";import{_ as Ee}from"./MoonwalkerIcon.ab503573.js";import"./mail-driver.1b5e2a8f.js";const Ne=p("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Se={class:"relative table-container"},Ae={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Te={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},we={class:"absolute items-center left-6 top-2.5 select-none"},xe={class:"relative block"},Ge={setup(De){const c=he();ye();const H=Ce(),D=Re(),E=ke(),y=b(null),{t:i}=fe(),g=b(!1),F=b(["ACTIVE","ON_HOLD","ALL"]),N=b(!0),v=b("recurring-invoices.all");pe();let l=ge({customer_id:"",status:"ACTIVE",from_date:"",to_date:""});const L=R(()=>!c.totalRecurringInvoices&&!N.value),S=R({get:()=>c.selectedRecurringInvoices,set:e=>c.selectRecurringInvoice(e)}),W=R(()=>[{key:"checkbox",thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"starts_at",label:i("recurring_invoices.starts_at"),thClass:"extra",tdClass:"font-medium"},{key:"customer",label:i("invoices.customer")},{key:"frequency",label:i("recurring_invoices.frequency.title")},{key:"status",label:i("invoices.status")},{key:"total",label:i("invoices.total")},{key:"actions",label:i("recurring_invoices.action"),tdClass:"text-right text-sm font-medium",thClass:"text-right",sortable:!1}]);be(l,()=>{Y()},{debounce:500}),Ie(()=>{c.selectAllField&&c.selectAllRecurringInvoices()});const z=R(()=>F.value.findIndex(e=>e===l.status));function J(){return E.hasAbilities([h.DELETE_RECURRING_INVOICE,h.EDIT_RECURRING_INVOICE,h.VIEW_RECURRING_INVOICE])}function X(e){const n=c.frequencies.find(u=>u.value===e);return n?n.label:`CUSTOM: ${e}`}function A(){y.value&&y.value.refresh()}async function K({page:e,filter:n,sort:u}){let f={customer_id:l.customer_id,status:l.status,from_date:l.from_date,to_date:l.to_date,orderByField:u.fieldName||"created_at",orderBy:u.order||"desc",page:e};N.value=!0;let d=await c.fetchRecurringInvoices(f);return N.value=!1,{data:d.data.data,pagination:{totalPages:d.data.meta.last_page,currentPage:e,totalCount:d.data.meta.total,limit:10}}}function Q(e){if(v.value==e.title)return!0;switch(v.value=e.title,e.title){case i("recurring_invoices.active"):l.status="ACTIVE";break;case i("recurring_invoices.on_hold"):l.status="ON_HOLD";break;case i("recurring_invoices.all"):l.status="ALL";break}}function Y(){c.$patch(e=>{e.selectedRecurringInvoices=[],e.selectAllField=!1}),A()}function O(){l.customer_id="",l.status="",l.from_date="",l.to_date="",l.invoice_number="",v.value=i("general.all")}async function Z(e=null){H.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async n=>{n&&await c.deleteMultipleRecurringInvoices(e).then(u=>{u.data.success?(A(),c.$patch(f=>{f.selectedRecurringInvoices=[],f.selectAllField=!1}),D.showNotification({type:"success",message:i("recurring_invoices.deleted_message",2)})):u.data.error&&D.showNotification({type:"error",message:u.data.message})})})}function ee(){g.value&&O(),g.value=!g.value}async function te(e,n){l.status="",A()}function ae(e){switch(e){case"ACTIVE":v.value=i("recurring_invoices.active");break;case"ON_HOLD":v.value=i("recurring_invoices.on_hold");break;case"ALL":v.value=i("recurring_invoices.all");break}}return(e,n)=>{const u=r("BaseBreadcrumbItem"),f=r("BaseBreadcrumb"),d=r("BaseIcon"),T=r("BaseButton"),U=r("router-link"),se=r("BasePageHeader"),ne=r("BaseCustomerSelectInput"),C=r("BaseInputGroup"),le=r("BaseMultiselect"),P=r("BaseDatePicker"),oe=r("BaseFilterWrapper"),re=r("BaseEmptyPlaceholder"),w=r("BaseTab"),ie=r("BaseTabGroup"),ce=r("BaseDropdownItem"),ue=r("BaseDropdown"),j=r("BaseCheckbox"),G=r("BaseText"),de=r("BaseRecurringInvoiceStatusBadge"),me=r("BaseFormatMoney"),_e=r("BaseTable"),ve=r("BasePage");return I(),B(ve,null,{default:s(()=>[a(Ve),a(se,{title:e.$t("recurring_invoices.title")},{actions:s(()=>[k(a(T,{variant:"primary-outline",onClick:ee},{right:s(t=>[g.value?(I(),B(d,{key:1,name:"XIcon",class:$(t.class)},null,8,["class"])):(I(),B(d,{key:0,name:"FilterIcon",class:$(t.class)},null,8,["class"]))]),default:s(()=>[m(_(e.$t("general.filter"))+" ",1)]),_:1},512),[[V,o(c).totalRecurringInvoices]]),o(E).hasAbilities(o(h).CREATE_RECURRING_INVOICE)?(I(),B(U,{key:0,to:"recurring-invoices/create"},{default:s(()=>[a(T,{variant:"primary",class:"ml-4"},{left:s(t=>[a(d,{name:"PlusIcon",class:$(t.class)},null,8,["class"])]),default:s(()=>[m(" "+_(e.$t("recurring_invoices.new_invoice")),1)]),_:1})]),_:1})):M("",!0)]),default:s(()=>[a(f,null,{default:s(()=>[a(u,{title:e.$t("general.home"),to:"dashboard"},null,8,["title"]),a(u,{title:e.$tc("recurring_invoices.invoice",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),k(a(oe,{onClear:O},{default:s(()=>[a(C,{label:e.$tc("customers.customer",1)},{default:s(()=>[a(ne,{modelValue:o(l).customer_id,"onUpdate:modelValue":n[0]||(n[0]=t=>o(l).customer_id=t),placeholder:e.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(C,{label:e.$t("recurring_invoices.status")},{default:s(()=>[a(le,{modelValue:o(l).status,"onUpdate:modelValue":[n[1]||(n[1]=t=>o(l).status=t),ae],options:F.value,searchable:"",placeholder:e.$t("general.select_a_status"),onRemove:n[2]||(n[2]=t=>te())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),a(C,{label:e.$t("general.from")},{default:s(()=>[a(P,{modelValue:o(l).from_date,"onUpdate:modelValue":n[3]||(n[3]=t=>o(l).from_date=t),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Ne,a(C,{label:e.$t("general.to")},{default:s(()=>[a(P,{modelValue:o(l).to_date,"onUpdate:modelValue":n[4]||(n[4]=t=>o(l).to_date=t),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[V,g.value]]),k(a(re,{title:e.$t("recurring_invoices.no_invoices"),description:e.$t("recurring_invoices.list_of_invoices")},q({default:s(()=>[a(Ee,{class:"mt-5 mb-4"})]),_:2},[o(E).hasAbilities(o(h).CREATE_RECURRING_INVOICE)?{name:"actions",fn:s(()=>[a(T,{variant:"primary-outline",onClick:n[5]||(n[5]=t=>e.$router.push("/admin/recurring-invoices/create"))},{left:s(t=>[a(d,{name:"PlusIcon",class:$(t.class)},null,8,["class"])]),default:s(()=>[m(" "+_(e.$t("recurring_invoices.add_new_invoice")),1)]),_:1})])}:void 0]),1032,["title","description"]),[[V,o(L)]]),k(p("div",Se,[p("div",Ae,[a(ie,{class:"-mb-5","default-index":o(z),onChange:Q},{default:s(()=>[a(w,{title:e.$t("recurring_invoices.active"),filter:"ACTIVE"},null,8,["title"]),a(w,{title:e.$t("recurring_invoices.on_hold"),filter:"ON_HOLD"},null,8,["title"]),a(w,{title:e.$t("recurring_invoices.all"),filter:"ALL"},null,8,["title"])]),_:1},8,["default-index"]),o(c).selectedRecurringInvoices.length?(I(),B(ue,{key:0,class:"absolute float-right"},{activator:s(()=>[p("span",Te,[m(_(e.$t("general.actions"))+" ",1),a(d,{name:"ChevronDownIcon",class:"h-5"})])]),default:s(()=>[a(ce,{onClick:n[6]||(n[6]=t=>Z())},{default:s(()=>[a(d,{name:"TrashIcon",class:"mr-3 text-gray-600"}),m(" "+_(e.$t("general.delete")),1)]),_:1})]),_:1})):M("",!0)]),a(_e,{ref:(t,x)=>{x.table=t,y.value=t},data:K,columns:o(W),"placeholder-count":o(c).totalRecurringInvoices>=20?10:5,class:"mt-10"},q({header:s(()=>[p("div",we,[a(j,{modelValue:o(c).selectAllField,"onUpdate:modelValue":n[7]||(n[7]=t=>o(c).selectAllField=t),variant:"primary",onChange:o(c).selectAllRecurringInvoices},null,8,["modelValue","onChange"])])]),"cell-checkbox":s(({row:t})=>[p("div",xe,[a(j,{id:t.id,modelValue:o(S),"onUpdate:modelValue":n[8]||(n[8]=x=>Be(S)?S.value=x:null),value:t.data.id},null,8,["id","modelValue","value"])])]),"cell-starts_at":s(({row:t})=>[m(_(t.data.formatted_starts_at),1)]),"cell-customer":s(({row:t})=>[a(U,{to:{path:`recurring-invoices/${t.data.id}/view`}},{default:s(()=>[a(G,{text:t.data.customer.name,length:30,tag:"span",class:"font-medium text-primary-500 flex flex-col"},null,8,["text"]),a(G,{text:t.data.customer.contact_name?t.data.customer.contact_name:"",length:30,tag:"span",class:"text-xs text-gray-400"},null,8,["text"])]),_:2},1032,["to"])]),"cell-frequency":s(({row:t})=>[m(_(X(t.data.frequency)),1)]),"cell-status":s(({row:t})=>[a(de,{status:t.data.status,class:"px-3 py-1"},{default:s(()=>[m(_(t.data.status),1)]),_:2},1032,["status"])]),"cell-total":s(({row:t})=>[a(me,{amount:t.data.total,currency:t.data.customer.currency},null,8,["amount","currency"])]),_:2},[J?{name:"cell-actions",fn:s(({row:t})=>[a($e,{row:t.data,table:y.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[V,!o(L)]])]),_:1})}}};export{Ge as default};
var $e=Object.defineProperty;var ue=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var me=(n,q,d)=>q in n?$e(n,q,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[q]=d,ce=(n,q)=>{for(var d in q||(q={}))we.call(q,d)&&me(n,d,q[d]);if(ue)for(var d of ue(q))he.call(q,d)&&me(n,d,q[d]);return n};import{a as L,d as ye,B as M,k as z,r as b,o as B,l as F,w as u,h as V,e as k,t as U,i as P,j as E,F as ne,y as ie,u as e,f as t,m as O,J as G,D as Q,q as oe,ag as re,a0 as j,ah as ee,L as I,M as D,aT as ae,T as W,U as T,aj as le,Q as H,x as Z,N as Ie,O as qe,P as Be,S as ge,aN as pe}from"./vendor.01d0adc5.js";import{h as R,b as te,j as fe,_ as se,u as de,e as ve,d as _e,L as Ce}from"./main.832b14c7.js";import{u as X}from"./mail-driver.1b5e2a8f.js";const A=(n=!1)=>{const q=n?window.pinia.defineStore:ye,d=te();return q({id:"installation",state:()=>({currentDataBaseData:{database_connection:"mysql",database_hostname:"127.0.0.1",database_port:"3306",database_name:null,database_username:null,database_password:null,app_url:window.location.origin}}),actions:{fetchInstallationRequirements(){return new Promise((r,i)=>{L.get("/api/v1/installation/requirements").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},fetchInstallationStep(){return new Promise((r,i)=>{L.get("/api/v1/installation/wizard-step").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},addInstallationStep(r){return new Promise((i,c)=>{L.post("/api/v1/installation/wizard-step",r).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},fetchInstallationPermissions(){return new Promise((r,i)=>{L.get("/api/v1/installation/permissions").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},fetchInstallationDatabase(r){return new Promise((i,c)=>{L.get("/api/v1/installation/database/config",{params:r}).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},addInstallationDatabase(r){return new Promise((i,c)=>{L.post("/api/v1/installation/database/config",r).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},addInstallationFinish(){return new Promise((r,i)=>{L.post("/api/v1/installation/finish").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},setInstallationDomain(r){return new Promise((i,c)=>{L.put("/api/v1/installation/set-domain",r).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},installationLogin(){return new Promise((r,i)=>{L.get("/sanctum/csrf-cookie").then(c=>{c&&L.post("/api/v1/installation/login").then(o=>{d.setSelectedCompany(o.data.company),r(o)}).catch(o=>{R(o),i(o)})})})},checkAutheticated(){return new Promise((r,i)=>{L.get("/api/v1/auth/check").then(c=>{r(c)}).catch(c=>{i(c)})})}}})()},Ve={class:"w-full md:w-2/3"},De={class:"mb-6"},Se={key:0,class:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},Fe={class:"col-span-2 text-sm"},Me={class:"text-right"},ze={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 bg-green-500 rounded-full"},ke={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 bg-red-500 rounded-full"},Ue={key:1},Pe={class:"col-span-2 text-sm"},Ne={class:"text-right"},Ee={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 bg-green-500 rounded-full"},Ge={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 bg-red-500 rounded-full"},Oe={emits:["next"],setup(n,{emit:q}){const d=M(""),r=M(""),i=M(!1);M(!0);const c=A(),o=z(()=>{if(d.value){let m=!0;for(const s in d.value)return d.value[s]||(m=!1),d.value&&r.value.supported&&m}return!1});async function f(){var s,h,a,g;i.value=!0;const m=await c.fetchInstallationRequirements();m.data&&(d.value=(a=(h=(s=m==null?void 0:m.data)==null?void 0:s.requirements)==null?void 0:h.requirements)==null?void 0:a.php,r.value=(g=m==null?void 0:m.data)==null?void 0:g.phpSupportInfo)}function l(){i.value=!0,q("next"),i.value=!1}return(m,s)=>{const h=b("BaseIcon"),a=b("BaseButton"),g=b("BaseWizardStep");return B(),F(g,{title:m.$t("wizard.req.system_req"),description:m.$t("wizard.req.system_req_desc")},{default:u(()=>[V("div",Ve,[V("div",De,[r.value?(B(),k("div",Se,[V("div",Fe,U(m.$t("wizard.req.php_req_version",{version:r.value.minimum})),1),V("div",Me,[P(U(r.value.current)+" ",1),r.value.supported?(B(),k("span",ze)):(B(),k("span",ke))])])):E("",!0),d.value?(B(),k("div",Ue,[(B(!0),k(ne,null,ie(d.value,($,C)=>(B(),k("div",{key:C,class:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},[V("div",Pe,U(C),1),V("div",Ne,[$?(B(),k("span",Ee)):(B(),k("span",Ge))])]))),128))])):E("",!0)]),e(o)?(B(),F(a,{key:0,onClick:l},{left:u($=>[t(h,{name:"ArrowRightIcon",class:O($.class)},null,8,["class"])]),default:u(()=>[P(U(m.$t("wizard.continue"))+" ",1)]),_:1})):E("",!0),d.value?E("",!0):(B(),F(a,{key:1,loading:i.value,disabled:i.value,onClick:f},{default:u(()=>[P(U(m.$t("wizard.req.check_req")),1)]),_:1},8,["loading","disabled"]))])]),_:1},8,["title","description"])}}},xe={key:1,class:"relative"},Le={class:"grid grid-flow-row grid-cols-3 lg:gap-24 sm:gap-4"},We={class:"col-span-2 p-3"},Te={class:"p-3 text-right"},je={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-green-500"},Re={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-red-500"},Ae={emits:["next"],setup(n,{emit:q}){let d=M(!1),r=M(!1),i=M([]);const{tm:c,t:o}=G(),f=A(),l=fe();Q(()=>{m()});async function m(){d.value=!0;const h=await f.fetchInstallationPermissions();i.value=h.data.permissions.permissions,h.data&&h.data.permissions.errors&&setTimeout(()=>{l.openDialog({title:c("wizard.permissions.permission_confirm_title"),message:o("wizard.permissions.permission_confirm_desc"),yesLabel:"OK",noLabel:"Cancel",variant:"danger",hideNoButton:!1,size:"lg"}).then(a=>{a.data&&(d.value=!1)})},500),d.value=!1}function s(){r.value=!0,q("next"),r.value=!1}return(h,a)=>{const g=b("BaseContentPlaceholdersText"),$=b("BaseContentPlaceholdersBox"),C=b("BaseContentPlaceholders"),p=b("BaseIcon"),_=b("BaseButton"),v=b("BaseWizardStep");return B(),F(v,{title:h.$t("wizard.permissions.permissions"),description:h.$t("wizard.permissions.permission_desc")},{default:u(()=>[e(d)?(B(),F(C,{key:0},{default:u(()=>[(B(),k(ne,null,ie(3,(w,y)=>V("div",{key:y,class:"grid grid-flow-row grid-cols-3 lg:gap-24 sm:gap-4 border border-gray-200"},[t(g,{lines:1,class:"col-span-4 p-3"})])),64)),t($,{rounded:!0,class:"mt-10",style:{width:"96px",height:"42px"}})]),_:1})):(B(),k("div",xe,[(B(!0),k(ne,null,ie(e(i),(w,y)=>(B(),k("div",{key:y,class:"border border-gray-200"},[V("div",Le,[V("div",We,U(w.folder),1),V("div",Te,[w.isSet?(B(),k("span",je)):(B(),k("span",Re)),V("span",null,U(w.permission),1)])])]))),128)),oe(t(_,{class:"mt-10",loading:e(r),disabled:e(r),onClick:s},{left:u(w=>[t(p,{name:"ArrowRightIcon",class:O(w.class)},null,8,["class"])]),default:u(()=>[P(" "+U(h.$t("wizard.continue")),1)]),_:1},8,["loading","disabled"]),[[re,!e(d)]])]))]),_:1},8,["title","description"])}}},Ye=["onSubmit"],Je={class:"grid grid-cols-1 gap-5 md:grid-cols-2 lg:mb-6 md:mb-6"},Ze={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const d=n,r=j(["sqlite","mysql","pgsql"]),{t:i}=G(),c=ee("utils"),o=A();Q(()=>{for(const g in f.value)d.configData.hasOwnProperty(g)&&(f.value[g]=d.configData[g])});const f=z(()=>o.currentDataBaseData),l=g=>c.checkValidUrl(g),m={database_connection:{required:I.withMessage(i("validation.required"),D)},database_hostname:{required:I.withMessage(i("validation.required"),D)},database_port:{required:I.withMessage(i("validation.required"),D),numeric:ae},database_name:{required:I.withMessage(i("validation.required"),D)},database_username:{required:I.withMessage(i("validation.required"),D)},app_url:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_url"),l)}},s=W(m,f.value);function h(){if(s.value.$touch(),s.value.$invalid)return!0;q("submit-data",f.value)}function a(){s.value.database_connection.$touch(),q("on-change-driver",f.value.database_connection)}return(g,$)=>{const C=b("BaseInput"),p=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Je,[t(p,{label:g.$t("wizard.database.app_url"),error:e(s).app_url.$error&&e(s).app_url.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).app_url,"onUpdate:modelValue":$[0]||($[0]=y=>e(f).app_url=y),invalid:e(s).app_url.$error,type:"text"},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.connection"),error:e(s).database_connection.$error&&e(s).database_connection.$errors[0].$message,required:""},{default:u(()=>[t(_,{modelValue:e(f).database_connection,"onUpdate:modelValue":[$[1]||($[1]=y=>e(f).database_connection=y),a],invalid:e(s).database_connection.$error,options:e(r),"can-deselect":!1,"can-clear":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.port"),error:e(s).database_port.$error&&e(s).database_port.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_port,"onUpdate:modelValue":$[2]||($[2]=y=>e(f).database_port=y),invalid:e(s).database_port.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.db_name"),error:e(s).database_name.$error&&e(s).database_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_name,"onUpdate:modelValue":$[3]||($[3]=y=>e(f).database_name=y),invalid:e(s).database_name.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.username"),error:e(s).database_username.$error&&e(s).database_username.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_username,"onUpdate:modelValue":$[4]||($[4]=y=>e(f).database_username=y),invalid:e(s).database_username.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.password")},{default:u(()=>[t(C,{modelValue:e(f).database_password,"onUpdate:modelValue":$[5]||($[5]=y=>e(f).database_password=y),type:"password"},null,8,["modelValue"])]),_:1},8,["label"]),t(p,{label:g.$t("wizard.database.host"),error:e(s).database_hostname.$error&&e(s).database_hostname.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_hostname,"onUpdate:modelValue":$[6]||($[6]=y=>e(f).database_hostname=y),invalid:e(s).database_hostname.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),t(w,{type:"submit",class:"mt-4",loading:n.isSaving,disabled:n.isSaving},{left:u(y=>[n.isSaving?E("",!0):(B(),F(v,{key:0,name:"SaveIcon",class:O(y.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(g.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled"])],40,Ye)}}},Ke=["onSubmit"],Qe={class:"grid grid-cols-1 gap-5 md:grid-cols-2 lg:mb-6 md:mb-6"},He={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const d=n,r=j(["sqlite","mysql","pgsql"]),{t:i}=G(),c=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const g in f.value)d.configData.hasOwnProperty(g)&&(f.value[g]=d.configData[g])});const l=g=>c.checkValidUrl(g),m={database_connection:{required:I.withMessage(i("validation.required"),D)},database_hostname:{required:I.withMessage(i("validation.required"),D)},database_port:{required:I.withMessage(i("validation.required"),D),numeric:ae},database_name:{required:I.withMessage(i("validation.required"),D)},database_username:{required:I.withMessage(i("validation.required"),D)},app_url:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_url"),l)}},s=W(m,f.value);function h(){if(s.value.$touch(),s.value.$invalid)return!0;q("submit-data",f.value)}function a(){s.value.database_connection.$touch(),q("on-change-driver",f.value.database_connection)}return(g,$)=>{const C=b("BaseInput"),p=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Qe,[t(p,{label:g.$t("wizard.database.app_url"),"content-loading":n.isFetchingInitialData,error:e(s).app_url.$error&&e(s).app_url.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).app_url,"onUpdate:modelValue":$[0]||($[0]=y=>e(f).app_url=y),"content-loading":n.isFetchingInitialData,invalid:e(s).app_url.$error,type:"text"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.connection"),"content-loading":n.isFetchingInitialData,error:e(s).database_connection.$error&&e(s).database_connection.$errors[0].$message,required:""},{default:u(()=>[t(_,{modelValue:e(f).database_connection,"onUpdate:modelValue":[$[1]||($[1]=y=>e(f).database_connection=y),a],"content-loading":n.isFetchingInitialData,invalid:e(s).database_connection.$error,options:e(r),"can-deselect":!1,"can-clear":!1},null,8,["modelValue","content-loading","invalid","options"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.port"),"content-loading":n.isFetchingInitialData,error:e(s).database_port.$error&&e(s).database_port.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_port,"onUpdate:modelValue":$[2]||($[2]=y=>e(f).database_port=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_port.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.db_name"),"content-loading":n.isFetchingInitialData,error:e(s).database_name.$error&&e(s).database_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_name,"onUpdate:modelValue":$[3]||($[3]=y=>e(f).database_name=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_name.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.username"),"content-loading":n.isFetchingInitialData,error:e(s).database_username.$error&&e(s).database_username.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_username,"onUpdate:modelValue":$[4]||($[4]=y=>e(f).database_username=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_username.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{"content-loading":n.isFetchingInitialData,label:g.$t("wizard.database.password")},{default:u(()=>[t(C,{modelValue:e(f).database_password,"onUpdate:modelValue":$[5]||($[5]=y=>e(f).database_password=y),"content-loading":n.isFetchingInitialData,type:"password"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),t(p,{label:g.$t("wizard.database.host"),"content-loading":n.isFetchingInitialData,error:e(s).database_hostname.$error&&e(s).database_hostname.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_hostname,"onUpdate:modelValue":$[6]||($[6]=y=>e(f).database_hostname=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_hostname.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),oe(t(w,{"content-loading":n.isFetchingInitialData,type:"submit",class:"mt-4",loading:n.isSaving,disabled:n.isSaving},{left:u(y=>[n.isSaving?E("",!0):(B(),F(v,{key:0,name:"SaveIcon",class:O(y.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(g.$t("wizard.save_cont")),1)]),_:1},8,["content-loading","loading","disabled"]),[[re,!n.isFetchingInitialData]])],40,Ke)}}},Xe=["onSubmit"],ea={class:"grid grid-cols-1 gap-5 md:grid-cols-2 lg:mb-6 md:mb-6"},aa={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const d=n,r=j(["sqlite","mysql","pgsql"]),{t:i}=G(),c=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const g in f.value)d.configData.hasOwnProperty(g)&&(f.value[g]=d.configData[g])});const l=g=>c.checkValidUrl(g),m={database_connection:{required:I.withMessage(i("validation.required"),D)},database_name:{required:I.withMessage(i("validation.required"),D)},app_url:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_url"),l)}},s=W(m,f.value);function h(){if(s.value.$touch(),s.value.$invalid)return!0;q("submit-data",f.value)}function a(){s.value.database_connection.$touch(),q("on-change-driver",f.value.database_connection)}return(g,$)=>{const C=b("BaseInput"),p=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",ea,[t(p,{label:g.$t("wizard.database.app_url"),"content-loading":n.isFetchingInitialData,error:e(s).app_url.$error&&e(s).app_url.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).app_url,"onUpdate:modelValue":$[0]||($[0]=y=>e(f).app_url=y),"content-loading":n.isFetchingInitialData,invalid:e(s).app_url.$error,type:"text"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.connection"),"content-loading":n.isFetchingInitialData,error:e(s).database_connection.$error&&e(s).database_connection.$errors[0].$message,required:""},{default:u(()=>[t(_,{modelValue:e(f).database_connection,"onUpdate:modelValue":[$[1]||($[1]=y=>e(f).database_connection=y),a],"content-loading":n.isFetchingInitialData,invalid:e(s).database_connection.$error,options:e(r),"can-deselect":!1,"can-clear":!1},null,8,["modelValue","content-loading","invalid","options"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.db_path"),error:e(s).database_name.$error&&e(s).database_name.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_name,"onUpdate:modelValue":$[2]||($[2]=y=>e(f).database_name=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_name.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"])]),oe(t(w,{"content-loading":n.isFetchingInitialData,type:"submit",class:"mt-4",loading:n.isSaving,disabled:n.isSaving},{left:u(y=>[n.isSaving?E("",!0):(B(),F(v,{key:0,name:"SaveIcon",class:O(y.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(g.$t("wizard.save_cont")),1)]),_:1},8,["content-loading","loading","disabled"]),[[re,!n.isFetchingInitialData]])],40,Xe)}}},ta={components:{Mysql:Ze,Pgsql:He,Sqlite:aa},emits:["next"],setup(n,{emit:q}){const d=M("mysql"),r=M(!1),{t:i}=G(),c=de(),o=A(),f=z(()=>o.currentDataBaseData);async function l(s){let h={connection:s};const a=await o.fetchInstallationDatabase(h);a.data.success&&(f.value.database_connection=a.data.config.database_connection),s==="sqlite"?f.value.database_name=a.data.config.database_name:f.value.database_name=null}async function m(s){r.value=!0;try{let h=await o.addInstallationDatabase(s);if(r.value=!1,h.data.success){await o.addInstallationFinish(),q("next",3),c.showNotification({type:"success",message:i("wizard.success."+h.data.success)});return}else if(h.data.error){if(h.data.requirement){c.showNotification({type:"error",message:i("wizard.errors."+h.data.error,{version:h.data.requirement.minimum,name:s.value.database_connection})});return}c.showNotification({type:"error",message:i("wizard.errors."+h.data.error)})}else h.data.errors?c.showNotification({type:"error",message:h.data.errors[0]}):h.data.error_message&&c.showNotification({type:"error",message:h.data.error_message})}catch{c.showNotification({type:"error",message:i("validation.something_went_wrong")}),r.value=!1}finally{r.value=!1}}return{databaseData:f,database_connection:d,isSaving:r,getDatabaseConfig:l,next:m}}};function na(n,q,d,r,i,c){const o=b("BaseWizardStep");return B(),F(o,{title:n.$t("wizard.database.database"),description:n.$t("wizard.database.desc"),"step-container":"w-full p-8 mb-8 bg-white border border-gray-200 border-solid rounded md:w-full"},{default:u(()=>[(B(),F(le(r.databaseData.database_connection),{"config-data":r.databaseData,"is-saving":r.isSaving,onOnChangeDriver:r.getDatabaseConfig,onSubmitData:r.next},null,8,["config-data","is-saving","onOnChangeDriver","onSubmitData"]))]),_:1},8,["title","description"])}var ia=se(ta,[["render",na]]);const oa={class:"w-full md:w-2/3"},ra=V("p",{class:"mt-4 mb-0 text-sm text-gray-600"},"Notes:",-1),la=V("ul",{class:"w-full text-gray-600 list-disc list-inside"},[V("li",{class:"text-sm leading-8"},[P(" App domain should not contain "),V("b",{class:"inline-block px-1 bg-gray-100 rounded-sm"},"https://"),P(" or "),V("b",{class:"inline-block px-1 bg-gray-100 rounded-sm"},"http"),P(" in front of the domain. ")]),V("li",{class:"text-sm leading-8"},[P(" If you're accessing the website on a different port, please mention the port. For example: "),V("b",{class:"inline-block px-1 bg-gray-100"},"localhost:8080")])],-1),sa={emits:["next"],setup(n,{emit:q}){const d=j({app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")}),r=M(!1),{t:i}=G(),c=ee("utils"),o=a=>c.checkValidDomainUrl(a),f=A(),l=de(),m={app_domain:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_domain_url"),o)}},s=W(m,z(()=>d));async function h(){if(s.value.$touch(),s.value.$invalid)return!0;r.value=!0;try{await f.setInstallationDomain(d),await f.installationLogin(),(await f.checkAutheticated()).data&&q("next",4),r.value=!1}catch{l.showNotification({type:"error",message:i("wizard.verify_domain.failed")}),r.value=!1}}return(a,g)=>{const $=b("BaseInput"),C=b("BaseInputGroup"),p=b("BaseButton"),_=b("BaseWizardStep");return B(),F(_,{title:a.$t("wizard.verify_domain.title"),description:a.$t("wizard.verify_domain.desc")},{default:u(()=>[V("div",oa,[t(C,{label:a.$t("wizard.verify_domain.app_domain"),error:e(s).app_domain.$error&&e(s).app_domain.$errors[0].$message,required:""},{default:u(()=>[t($,{modelValue:e(d).app_domain,"onUpdate:modelValue":g[0]||(g[0]=v=>e(d).app_domain=v),invalid:e(s).app_domain.$error,type:"text",onInput:g[1]||(g[1]=v=>e(s).app_domain.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),ra,la,t(p,{loading:r.value,disabled:r.value,class:"mt-8",onClick:h},{default:u(()=>[P(U(a.$t("wizard.verify_domain.verify_now")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])}}},da=["onSubmit"],ua={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ma={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ca={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ga={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},pa={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){let d=M(!1);const r=j(["tls","ssl","starttls"]),{t:i}=G(),c=X(),o=z(()=>c.smtpConfig),f=z(()=>d.value?"text":"password");o.value.mail_driver="smtp";const l=z(()=>({smtpConfig:{mail_driver:{required:I.withMessage(i("validation.required"),D)},mail_host:{required:I.withMessage(i("validation.required"),D)},mail_port:{required:I.withMessage(i("validation.required"),D),numeric:I.withMessage(i("validation.numbers_only"),ae)},mail_encryption:{required:I.withMessage(i("validation.required"),D)},from_mail:{required:I.withMessage(i("validation.required"),D),email:I.withMessage(i("validation.email_incorrect"),H)},from_name:{required:I.withMessage(i("validation.required"),D)}}})),m=W(l,z(()=>c));async function s(){return m.value.$touch(),m.value.$invalid||q("submit-data",c.smtpConfig),!1}function h(){m.value.smtpConfig.mail_driver.$touch(),q("on-change-driver",c.smtpConfig.mail_driver)}return(a,g)=>{const $=b("BaseMultiselect"),C=b("BaseInputGroup"),p=b("BaseInput"),_=b("BaseIcon"),v=b("BaseButton");return B(),k("form",{onSubmit:T(s,["prevent"])},[V("div",ua,[t(C,{label:a.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(m).smtpConfig.mail_driver.$error&&e(m).smtpConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t($,{modelValue:e(o).mail_driver,"onUpdate:modelValue":[g[0]||(g[0]=w=>e(o).mail_driver=w),h],options:e(c).mail_drivers,"can-deselect":!1,"content-loading":n.isFetchingInitialData,invalid:e(m).smtpConfig.mail_driver.$error},null,8,["modelValue","options","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(C,{label:a.$t("wizard.mail.host"),"content-loading":n.isFetchingInitialData,error:e(m).smtpConfig.mail_host.$error&&e(m).smtpConfig.mail_host.$errors[0].$message,required:""},{default:u(()=>[t(p,{modelValue:e(o).mail_host,"onUpdate:modelValue":g[1]||(g[1]=w=>e(o).mail_host=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.mail_host.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_host",onInput:g[2]||(g[2]=w=>e(m).smtpConfig.mail_host.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",ma,[t(C,{label:a.$t("wizard.mail.username"),"content-loading":n.isFetchingInitialData},{default:u(()=>[t(p,{modelValue:e(o).mail_username,"onUpdate:modelValue":g[3]||(g[3]=w=>e(o).mail_username=w),modelModifiers:{trim:!0},"content-loading":n.isFetchingInitialData,type:"text",name:"db_name"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),t(C,{label:a.$t("wizard.mail.password"),"content-loading":n.isFetchingInitialData},{default:u(()=>[t(p,{modelValue:e(o).mail_password,"onUpdate:modelValue":g[6]||(g[6]=w=>e(o).mail_password=w),modelModifiers:{trim:!0},type:e(f),"content-loading":n.isFetchingInitialData,autocomplete:"off","data-lpignore":"true",name:"password"},{right:u(()=>[e(d)?(B(),F(_,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:g[4]||(g[4]=w=>Z(d)?d.value=!e(d):d=!e(d))})):(B(),F(_,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:g[5]||(g[5]=w=>Z(d)?d.value=!e(d):d=!e(d))}))]),_:1},8,["modelValue","type","content-loading"])]),_:1},8,["label","content-loading"])]),V("div",ca,[t(C,{label:a.$t("wizard.mail.port"),error:e(m).smtpConfig.mail_port.$error&&e(m).smtpConfig.mail_port.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(p,{modelValue:e(o).mail_port,"onUpdate:modelValue":g[7]||(g[7]=w=>e(o).mail_port=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.mail_port.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_port",onInput:g[8]||(g[8]=w=>e(m).smtpConfig.mail_port.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(C,{label:a.$t("wizard.mail.encryption"),error:e(m).smtpConfig.mail_encryption.$error&&e(m).smtpConfig.mail_encryption.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t($,{modelValue:e(o).mail_encryption,"onUpdate:modelValue":g[9]||(g[9]=w=>e(o).mail_encryption=w),modelModifiers:{trim:!0},options:e(r),"can-deselect":!1,invalid:e(m).smtpConfig.mail_encryption.$error,"content-loading":n.isFetchingInitialData,onInput:g[10]||(g[10]=w=>e(m).smtpConfig.mail_encryption.$touch())},null,8,["modelValue","options","invalid","content-loading"])]),_:1},8,["label","error","content-loading"])]),V("div",ga,[t(C,{label:a.$t("wizard.mail.from_mail"),error:e(m).smtpConfig.from_mail.$error&&e(m).smtpConfig.from_mail.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(p,{modelValue:e(o).from_mail,"onUpdate:modelValue":g[11]||(g[11]=w=>e(o).from_mail=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_mail",onInput:g[12]||(g[12]=w=>e(m).smtpConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(C,{label:a.$t("wizard.mail.from_name"),error:e(m).smtpConfig.from_name.$error&&e(m).smtpConfig.from_name.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(p,{modelValue:e(o).from_name,"onUpdate:modelValue":g[13]||(g[13]=w=>e(o).from_name=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_name",onInput:g[14]||(g[14]=w=>e(m).smtpConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"])]),t(v,{loading:n.isSaving,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(w=>[n.isSaving?E("",!0):(B(),F(_,{key:0,name:"SaveIcon",class:O(w.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(a.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,da)}}},fa=["onSubmit"],va={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},_a={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},ba={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},$a={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){let d=M(!1);const r=X(),{t:i}=G(),c=z(()=>r.mailgunConfig),o=z(()=>d.value?"text":"password");c.value.mail_driver="mailgun";const f=z(()=>({mailgunConfig:{mail_driver:{required:I.withMessage(i("validation.required"),D)},mail_mailgun_domain:{required:I.withMessage(i("validation.required"),D)},mail_mailgun_endpoint:{required:I.withMessage(i("validation.required"),D)},mail_mailgun_secret:{required:I.withMessage(i("validation.required"),D)},from_mail:{required:I.withMessage(i("validation.required"),D),email:H},from_name:{required:I.withMessage(i("validation.required"),D)}}})),l=W(f,z(()=>r));function m(){return l.value.$touch(),l.value.$invalid||q("submit-data",r.mailgunConfig),!1}function s(){l.value.mailgunConfig.mail_driver.$touch(),q("on-change-driver",r.mailgunConfig.mail_driver)}return(h,a)=>{const g=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),p=b("BaseIcon"),_=b("BaseButton");return B(),k("form",{onSubmit:T(m,["prevent"])},[V("div",va,[t($,{label:h.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_driver.$error&&e(l).mailgunConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(c).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(c).mail_driver=v),s],options:e(r).mail_drivers,"can-deselect":!1,invalid:e(l).mailgunConfig.mail_driver.$error,"content-loading":n.isFetchingInitialData},null,8,["modelValue","options","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.mailgun_domain"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_mailgun_domain.$error&&e(l).mailgunConfig.mail_mailgun_domain.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).mail_mailgun_domain,"onUpdate:modelValue":a[1]||(a[1]=v=>e(c).mail_mailgun_domain=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.mail_mailgun_domain.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mailgun_domain",onInput:a[2]||(a[2]=v=>e(l).mailgunConfig.mail_mailgun_domain.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",_a,[t($,{label:h.$t("wizard.mail.mailgun_secret"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_mailgun_secret.$error&&e(l).mailgunConfig.mail_mailgun_secret.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).mail_mailgun_secret,"onUpdate:modelValue":a[5]||(a[5]=v=>e(c).mail_mailgun_secret=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.mail_mailgun_secret.$error,type:e(o),"content-loading":n.isFetchingInitialData,name:"mailgun_secret",autocomplete:"off","data-lpignore":"true",onInput:a[6]||(a[6]=v=>e(l).mailgunConfig.mail_mailgun_secret.$touch())},{right:u(()=>[e(d)?(B(),F(p,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[3]||(a[3]=v=>Z(d)?d.value=!e(d):d=!e(d))})):(B(),F(p,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[4]||(a[4]=v=>Z(d)?d.value=!e(d):d=!e(d))}))]),_:1},8,["modelValue","invalid","type","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.mailgun_endpoint"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_mailgun_endpoint.$error&&e(l).mailgunConfig.mail_mailgun_endpoint.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).mail_mailgun_endpoint,"onUpdate:modelValue":a[7]||(a[7]=v=>e(c).mail_mailgun_endpoint=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.mail_mailgun_endpoint.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mailgun_endpoint",onInput:a[8]||(a[8]=v=>e(l).mailgunConfig.mail_mailgun_endpoint.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",ba,[t($,{label:h.$t("wizard.mail.from_mail"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.from_mail.$error&&e(l).mailgunConfig.from_mail.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).from_mail,"onUpdate:modelValue":a[9]||(a[9]=v=>e(c).from_mail=v),modelModifiers:{trim:!0},name:"from_mail",type:"text",invalid:e(l).mailgunConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,onInput:a[10]||(a[10]=v=>e(l).mailgunConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.from_name"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.from_name.$error&&e(l).mailgunConfig.from_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).from_name,"onUpdate:modelValue":a[11]||(a[11]=v=>e(c).from_name=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_name",onInput:a[12]||(a[12]=v=>e(l).mailgunConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),t(_,{loading:h.loading,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(v=>[n.isSaving?E("",!0):(B(),F(p,{key:0,name:"SaveIcon",class:O(v.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(h.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,fa)}}},wa=["onSubmit"],ha={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ya={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Ia={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},qa={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Ba={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const{t:d}=G(),r=j(["tls","ssl","starttls"]);let i=M(!1);const c=X(),o=z(()=>c.sesConfig);o.value.mail_driver="ses";const f=z(()=>({sesConfig:{mail_driver:{required:I.withMessage(d("validation.required"),D)},mail_host:{required:I.withMessage(d("validation.required"),D)},mail_port:{required:I.withMessage(d("validation.required"),D),numeric:ae},mail_ses_key:{required:I.withMessage(d("validation.required"),D)},mail_ses_secret:{required:I.withMessage(d("validation.required"),D)},mail_encryption:{required:I.withMessage(d("validation.required"),D)},from_mail:{required:I.withMessage(d("validation.required"),D),email:I.withMessage(d("validation.email_incorrect"),H)},from_name:{required:I.withMessage(d("validation.required"),D)}}})),l=W(f,z(()=>c));async function m(){return l.value.$touch(),l.value.$invalid||q("submit-data",c.sesConfig),!1}function s(){l.value.sesConfig.mail_driver.$touch(),q("on-change-driver",c.sesConfig.mail_driver)}return(h,a)=>{const g=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),p=b("BaseIcon"),_=b("BaseButton");return B(),k("form",{onSubmit:T(m,["prevent"])},[V("div",ha,[t($,{label:h.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_driver.$error&&e(l).sesConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(o).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(o).mail_driver=v),s],options:e(c).mail_drivers,"can-deselect":!1,"content-loading":n.isFetchingInitialData,invalid:e(l).sesConfig.mail_driver.$error},null,8,["modelValue","options","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.host"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_host.$error&&e(l).sesConfig.mail_host.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_host,"onUpdate:modelValue":a[1]||(a[1]=v=>e(o).mail_host=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_host.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_host",onInput:a[2]||(a[2]=v=>e(l).sesConfig.mail_host.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",ya,[t($,{label:h.$t("wizard.mail.port"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_port.$error&&e(l).sesConfig.mail_port.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_port,"onUpdate:modelValue":a[3]||(a[3]=v=>e(o).mail_port=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_port.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_port",onInput:a[4]||(a[4]=v=>e(l).sesConfig.mail_port.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.encryption"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_encryption.$error&&e(l).sesConfig.mail_encryption.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(o).mail_encryption,"onUpdate:modelValue":a[5]||(a[5]=v=>e(o).mail_encryption=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_encryption.$error,options:e(r),"content-loading":n.isFetchingInitialData,onInput:a[6]||(a[6]=v=>e(l).sesConfig.mail_encryption.$touch())},null,8,["modelValue","invalid","options","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",Ia,[t($,{label:h.$t("wizard.mail.from_mail"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.from_mail.$error&&e(l).sesConfig.from_mail.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).from_mail,"onUpdate:modelValue":a[7]||(a[7]=v=>e(o).from_mail=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_mail",onInput:a[8]||(a[8]=v=>e(l).sesConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.from_name"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.from_name.$error&&e(l).sesConfig.from_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).from_name,"onUpdate:modelValue":a[9]||(a[9]=v=>e(o).from_name=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"name",onInput:a[10]||(a[10]=v=>e(l).sesConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",qa,[t($,{label:h.$t("wizard.mail.ses_key"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_ses_key.$error&&e(l).sesConfig.mail_ses_key.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_ses_key,"onUpdate:modelValue":a[11]||(a[11]=v=>e(o).mail_ses_key=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_ses_key.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_ses_key",onInput:a[12]||(a[12]=v=>e(l).sesConfig.mail_ses_key.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.ses_secret"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_ses_secret.$error&&e(l).sesConfig.mail_ses_secret.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_ses_secret,"onUpdate:modelValue":a[15]||(a[15]=v=>e(o).mail_ses_secret=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_ses_secret.$error,type:h.getInputType,"content-loading":n.isFetchingInitialData,name:"mail_ses_secret",autocomplete:"off","data-lpignore":"true",onInput:a[16]||(a[16]=v=>e(l).sesConfig.mail_ses_secret.$touch())},{right:u(()=>[e(i)?(B(),F(p,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[13]||(a[13]=v=>Z(i)?i.value=!e(i):i=!e(i))})):(B(),F(p,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[14]||(a[14]=v=>Z(i)?i.value=!e(i):i=!e(i))}))]),_:1},8,["modelValue","invalid","type","content-loading"])]),_:1},8,["label","content-loading","error"])]),t(_,{loading:n.isSaving,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(v=>[n.isSaving?E("",!0):(B(),F(p,{key:0,name:"SaveIcon",class:O(v.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(h.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,wa)}}},Ca=["onSubmit"],Va={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Da={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},be={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const{t:d}=G(),r=X(),i=z(()=>r.basicMailConfig);z(()=>r.mail_drivers),i.value.mail_driver="mail";const c=z(()=>({basicMailConfig:{mail_driver:{required:I.withMessage(d("validation.required"),D)},from_mail:{required:I.withMessage(d("validation.required"),D),email:I.withMessage(d("validation.email_incorrect"),H)},from_name:{required:I.withMessage(d("validation.required"),D)}}})),o=W(c,z(()=>r));function f(){return o.value.$touch(),o.value.$invalid||q("submit-data",r.basicMailConfig),!1}function l(){var m;o.value.basicMailConfig.mail_driver.$touch(),q("on-change-driver",(m=r==null?void 0:r.basicMailConfig)==null?void 0:m.mail_driver)}return(m,s)=>{const h=b("BaseMultiselect"),a=b("BaseInputGroup"),g=b("BaseInput"),$=b("BaseIcon"),C=b("BaseButton");return B(),k("form",{onSubmit:T(f,["prevent"])},[V("div",Va,[t(a,{label:m.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(o).basicMailConfig.mail_driver.$error&&e(o).basicMailConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t(h,{modelValue:e(i).mail_driver,"onUpdate:modelValue":[s[0]||(s[0]=p=>e(i).mail_driver=p),l],invalid:e(o).basicMailConfig.mail_driver.$error,options:e(r).mail_drivers,"can-deselect":!1,"content-loading":n.isFetchingInitialData},null,8,["modelValue","invalid","options","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",Da,[t(a,{label:m.$t("wizard.mail.from_name"),"content-loading":n.isFetchingInitialData,error:e(o).basicMailConfig.from_name.$error&&e(o).basicMailConfig.from_name.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(i).from_name,"onUpdate:modelValue":s[1]||(s[1]=p=>e(i).from_name=p),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"name",onInput:s[2]||(s[2]=p=>e(o).basicMailConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t(a,{label:m.$t("wizard.mail.from_mail"),"content-loading":n.isFetchingInitialData,error:e(o).basicMailConfig.from_mail.$error&&e(o).basicMailConfig.from_mail.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(i).from_mail,"onUpdate:modelValue":s[3]||(s[3]=p=>e(i).from_mail=p),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",onInput:s[4]||(s[4]=p=>e(o).basicMailConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),t(C,{loading:n.isSaving,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(p=>[n.isSaving?E("",!0):(B(),F($,{key:0,name:"SaveIcon",class:O(p.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(m.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,Ca)}}},Sa={components:{Smtp:pa,Mailgun:$a,Ses:Ba,sendmail:be,Mail:be},emits:["next"],setup(n,{emit:q}){const d=M(!1),r=M(!1),i=X();i.mail_driver="mail",o();function c(l){i.mail_driver=l}async function o(){r.value=!0,await i.fetchMailDrivers(),r.value=!1}async function f(l){d.value=!0;let m=await i.updateMailConfig(l);d.value=!1,m.data.success&&await q("next",5)}return{mailDriverStore:i,isSaving:d,isFetchingInitialData:r,changeDriver:c,next:f}}};function Fa(n,q,d,r,i,c){const o=b("BaseWizardStep");return B(),F(o,{title:n.$t("wizard.mail.mail_config"),description:n.$t("wizard.mail.mail_config_desc")},{default:u(()=>[V("form",{action:"",onSubmit:q[1]||(q[1]=T((...f)=>r.next&&r.next(...f),["prevent"]))},[(B(),F(le(r.mailDriverStore.mail_driver),{"config-data":r.mailDriverStore.mailConfigData,"is-saving":r.isSaving,"is-fetching-initial-data":r.isFetchingInitialData,onOnChangeDriver:q[0]||(q[0]=f=>r.changeDriver(f)),onSubmitData:r.next},null,8,["config-data","is-saving","is-fetching-initial-data","onSubmitData"]))],32)]),_:1},8,["title","description"])}var Ma=se(Sa,[["render",Fa]]);const za=["onSubmit"],ka={class:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},Ua={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Pa={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Na={emits:["next"],setup(n,{emit:q}){let d=M(!1);const r=M(!1),i=M(!1);let c=M(""),o=M(null);const f=ve(),l=te(),{t:m}=G(),s=z(()=>f.userForm),h=z(()=>({userForm:{name:{required:I.withMessage(m("validation.required"),D)},email:{required:I.withMessage(m("validation.required"),D),email:I.withMessage(m("validation.email_incorrect"),H)},password:{required:I.withMessage(m("validation.required"),D),minLength:I.withMessage(m("validation.password_min_length",{count:8}),Ie(8))},confirm_password:{required:I.withMessage(m("validation.required"),qe(f.userForm.password)),sameAsPassword:I.withMessage(m("validation.password_incorrect"),Be(f.userForm.password))}}})),a=W(h,z(()=>f));function g(p,_){o.value=_}function $(){o.value=null}async function C(){if(a.value.userForm.$touch(),a.value.userForm.$invalid)return!0;d.value=!0;let p=await f.updateCurrentUser(s.value);if(d.value=!1,p.data.data){if(o.value){let v=new FormData;v.append("admin_avatar",o.value),await f.uploadAvatar(v)}const _=p.data.data.companies[0];await l.setSelectedCompany(_),q("next",6)}}return(p,_)=>{const v=b("BaseFileUploader"),w=b("BaseInputGroup"),y=b("BaseInput"),x=b("EyeOffIcon"),Y=b("EyeIcon"),J=b("BaseIcon"),K=b("BaseButton"),N=b("BaseWizardStep");return B(),F(N,{title:p.$t("wizard.account_info"),description:p.$t("wizard.account_info_desc")},{default:u(()=>[V("form",{action:"",onSubmit:T(C,["prevent"])},[V("div",ka,[t(w,{label:p.$tc("settings.account_settings.profile_picture")},{default:u(()=>[t(v,{avatar:!0,"preview-image":e(c),onChange:g,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Ua,[t(w,{label:p.$t("wizard.name"),error:e(a).userForm.name.$error&&e(a).userForm.name.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).name,"onUpdate:modelValue":_[0]||(_[0]=S=>e(s).name=S),modelModifiers:{trim:!0},invalid:e(a).userForm.name.$error,type:"text",name:"name",onInput:_[1]||(_[1]=S=>e(a).userForm.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(w,{label:p.$t("wizard.email"),error:e(a).userForm.email.$error&&e(a).userForm.email.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).email,"onUpdate:modelValue":_[2]||(_[2]=S=>e(s).email=S),modelModifiers:{trim:!0},invalid:e(a).userForm.email.$error,type:"text",name:"email",onInput:_[3]||(_[3]=S=>e(a).userForm.email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),V("div",Pa,[t(w,{label:p.$t("wizard.password"),error:e(a).userForm.password.$error&&e(a).userForm.password.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).password,"onUpdate:modelValue":_[6]||(_[6]=S=>e(s).password=S),modelModifiers:{trim:!0},invalid:e(a).userForm.password.$error,type:r.value?"text":"password",name:"password",onInput:_[7]||(_[7]=S=>e(a).userForm.password.$touch())},{right:u(()=>[r.value?(B(),F(x,{key:0,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[4]||(_[4]=S=>r.value=!r.value)})):(B(),F(Y,{key:1,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[5]||(_[5]=S=>r.value=!r.value)}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["label","error"]),t(w,{label:p.$t("wizard.confirm_password"),error:e(a).userForm.confirm_password.$error&&e(a).userForm.confirm_password.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).confirm_password,"onUpdate:modelValue":_[10]||(_[10]=S=>e(s).confirm_password=S),modelModifiers:{trim:!0},invalid:e(a).userForm.confirm_password.$error,type:i.value?"text":"password",name:"confirm_password",onInput:_[11]||(_[11]=S=>e(a).userForm.confirm_password.$touch())},{right:u(()=>[i.value?(B(),F(J,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[8]||(_[8]=S=>i.value=!i.value)})):(B(),F(J,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[9]||(_[9]=S=>i.value=!i.value)}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["label","error"])]),t(K,{loading:e(d),disabled:e(d),class:"mt-4"},{left:u(S=>[e(d)?E("",!0):(B(),F(J,{key:0,name:"SaveIcon",class:O(S.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(p.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled"])],40,za)]),_:1},8,["title","description"])}}},Ea=["onSubmit"],Ga={class:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},Oa={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},xa={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},La={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Wa={emits:["next"],setup(n,{emit:q}){let d=M(!1),r=M(!1);const{t:i}=G();let c=M(null),o=M(null),f=M(null);const l=j({name:null,address:{address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:"",phone:"",zip:""}}),m=te(),s=_e();Q(async()=>{d.value=!0,await s.fetchCountries(),d.value=!1});const h={companyForm:{name:{required:I.withMessage(i("validation.required"),D)},address:{country_id:{required:I.withMessage(i("validation.required"),D)},address_street_1:{maxLength:I.withMessage(i("validation.address_maxlength",{count:255}),ge(255))},address_street_2:{maxLength:I.withMessage(i("validation.address_maxlength",{count:255}),ge(255))}}}},a=W(h,{companyForm:l});function g(p,_,v,w){f.value=w.name,o.value=_}function $(){o.value=null}async function C(){if(a.value.companyForm.$touch(),a.value.$invalid)return!0;if(r.value=!0,m.updateCompany(l)){if(o.value){let _=new FormData;_.append("company_logo",JSON.stringify({name:f.value,data:o.value})),await m.updateCompanyLogo(_)}r.value=!1,q("next",7)}}return(p,_)=>{const v=b("BaseFileUploader"),w=b("BaseInputGroup"),y=b("BaseInput"),x=b("BaseMultiselect"),Y=b("BaseTextarea"),J=b("BaseIcon"),K=b("BaseButton"),N=b("BaseWizardStep");return B(),F(N,{title:p.$t("wizard.company_info"),description:p.$t("wizard.company_info_desc"),"step-container":"bg-white border border-gray-200 border-solid mb-8 md:w-full p-8 rounded w-full"},{default:u(()=>[V("form",{action:"",onSubmit:T(C,["prevent"])},[V("div",Ga,[t(w,{label:p.$tc("settings.company_info.company_logo")},{default:u(()=>[t(v,{base64:"","preview-image":e(c),onChange:g,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Oa,[t(w,{label:p.$t("wizard.company_name"),error:e(a).companyForm.name.$error&&e(a).companyForm.name.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(l).name,"onUpdate:modelValue":_[0]||(_[0]=S=>e(l).name=S),modelModifiers:{trim:!0},invalid:e(a).companyForm.name.$error,type:"text",name:"name",onInput:_[1]||(_[1]=S=>e(a).companyForm.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(w,{label:p.$t("wizard.country"),error:e(a).companyForm.address.country_id.$error&&e(a).companyForm.address.country_id.$errors[0].$message,"content-loading":e(d),required:""},{default:u(()=>[t(x,{modelValue:e(l).address.country_id,"onUpdate:modelValue":_[2]||(_[2]=S=>e(l).address.country_id=S),label:"name",invalid:e(a).companyForm.address.country_id.$error,options:e(s).countries,"value-prop":"id","can-deselect":!1,"can-clear":!1,"content-loading":e(d),placeholder:p.$t("general.select_country"),searchable:"","track-by":"name"},null,8,["modelValue","invalid","options","content-loading","placeholder"])]),_:1},8,["label","error","content-loading"])]),V("div",xa,[t(w,{label:p.$t("wizard.state")},{default:u(()=>[t(y,{modelValue:e(l).address.state,"onUpdate:modelValue":_[3]||(_[3]=S=>e(l).address.state=S),name:"state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),t(w,{label:p.$t("wizard.city")},{default:u(()=>[t(y,{modelValue:e(l).address.city,"onUpdate:modelValue":_[4]||(_[4]=S=>e(l).address.city=S),name:"city",type:"text"},null,8,["modelValue"])]),_:1},8,["label"])]),V("div",La,[V("div",null,[t(w,{label:p.$t("wizard.address"),error:e(a).companyForm.address.address_street_1.$error&&e(a).companyForm.address.address_street_1.$errors[0].$message},{default:u(()=>[t(Y,{modelValue:e(l).address.address_street_1,"onUpdate:modelValue":_[5]||(_[5]=S=>e(l).address.address_street_1=S),modelModifiers:{trim:!0},invalid:e(a).companyForm.address.address_street_1.$error,placeholder:p.$t("general.street_1"),name:"billing_street1",rows:"2",onInput:_[6]||(_[6]=S=>e(a).companyForm.address.address_street_1.$touch())},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["label","error"]),t(w,{error:e(a).companyForm.address.address_street_2.$error&&e(a).companyForm.address.address_street_2.$errors[0].$message,class:"mt-1 lg:mt-2 md:mt-2"},{default:u(()=>[t(Y,{modelValue:e(l).address.address_street_2,"onUpdate:modelValue":_[7]||(_[7]=S=>e(l).address.address_street_2=S),invalid:e(a).companyForm.address.address_street_2.$error,placeholder:p.$t("general.street_2"),name:"billing_street2",rows:"2",onInput:_[8]||(_[8]=S=>e(a).companyForm.address.address_street_2.$touch())},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error"])]),V("div",null,[t(w,{label:p.$t("wizard.zip_code")},{default:u(()=>[t(y,{modelValue:e(l).address.zip,"onUpdate:modelValue":_[9]||(_[9]=S=>e(l).address.zip=S),modelModifiers:{trim:!0},type:"text",name:"zip"},null,8,["modelValue"])]),_:1},8,["label"]),t(w,{label:p.$t("wizard.phone"),class:"mt-4"},{default:u(()=>[t(y,{modelValue:e(l).address.phone,"onUpdate:modelValue":_[10]||(_[10]=S=>e(l).address.phone=S),modelModifiers:{trim:!0},type:"text",name:"phone"},null,8,["modelValue"])]),_:1},8,["label"])])]),t(K,{loading:e(r),disabled:e(r),class:"mt-4"},{left:u(S=>[e(r)?E("",!0):(B(),F(J,{key:0,name:"SaveIcon",class:O(S.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(p.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled"])],40,Ea)]),_:1},8,["title","description"])}}},Ta=["onSubmit"],ja={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Ra={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Aa={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Ya={emits:["next"],setup(n,{emit:q}){const d=M(!1);let r=M(!1),i=j({currency:1,language:"en",carbon_date_format:"d M Y",time_zone:"UTC",fiscal_year:"1-12"});const{tm:c,t:o}=G(),f=pe();r.value=!0,j([{title:c("settings.customization.invoices.allow"),value:"allow"},{title:c("settings.customization.invoices.disable_on_invoice_partial_paid"),value:"disable_on_invoice_partial_paid"},{title:c("settings.customization.invoices.disable_on_invoice_paid"),value:"disable_on_invoice_paid"},{title:c("settings.customization.invoices.disable_on_invoice_sent"),value:"disable_on_invoice_sent"}]);const l=fe(),m=_e(),s=te(),h=ve(),a=de();let g={key:"fiscal_years"},$={key:"languages"};r.value=!0,Promise.all([m.fetchCurrencies(),m.fetchDateFormats(),m.fetchTimeZones(),m.fetchCountries(),m.fetchConfig(g),m.fetchConfig($)]).then(([v])=>{r.value=!1});const C=z(()=>({currentPreferences:{currency:{required:I.withMessage(o("validation.required"),D)},language:{required:I.withMessage(o("validation.required"),D)},carbon_date_format:{required:I.withMessage(o("validation.required"),D)},time_zone:{required:I.withMessage(o("validation.required"),D)},fiscal_year:{required:I.withMessage(o("validation.required"),D)}}})),p=W(C,{currentPreferences:i});async function _(){if(p.value.currentPreferences.$touch(),p.value.$invalid)return!0;l.openDialog({title:o("general.do_you_wish_to_continue"),message:o("wizard.currency_set_alert"),yesLabel:o("general.ok"),noLabel:o("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(async v=>{if(v){let w={settings:ce({},i)};d.value=!0,delete w.settings.discount_per_item;let y=await s.updateCompanySettings({data:w});if(y.data){d.value=!1;let x={settings:{language:i.language}};(await h.updateUserSettings(x)).data&&(q("next","COMPLETED"),a.showNotification({type:"success",message:"Login Successful"}),f.push("/admin/dashboard")),Ce.set("auth.token",y.data.token)}return!0}return d.value=!1,!0})}return(v,w)=>{const y=b("BaseMultiselect"),x=b("BaseInputGroup"),Y=b("BaseIcon"),J=b("BaseButton"),K=b("BaseWizardStep");return B(),F(K,{title:v.$t("wizard.preferences"),description:v.$t("wizard.preferences_desc"),"step-container":"bg-white border border-gray-200 border-solid mb-8 md:w-full p-8 rounded w-full"},{default:u(()=>[V("form",{action:"",onSubmit:T(_,["prevent"])},[V("div",null,[V("div",ja,[t(x,{label:v.$t("wizard.currency"),error:e(p).currentPreferences.currency.$error&&e(p).currentPreferences.currency.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).currency,"onUpdate:modelValue":w[0]||(w[0]=N=>e(i).currency=N),"content-loading":e(r),options:e(m).currencies,label:"name","value-prop":"id",searchable:!0,"track-by":"name",placeholder:v.$tc("settings.currencies.select_currency"),invalid:e(p).currentPreferences.currency.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"]),t(x,{label:v.$t("settings.preferences.default_language"),error:e(p).currentPreferences.language.$error&&e(p).currentPreferences.language.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).language,"onUpdate:modelValue":w[1]||(w[1]=N=>e(i).language=N),"content-loading":e(r),options:e(m).languages,label:"name","value-prop":"code",placeholder:v.$tc("settings.preferences.select_language"),class:"w-full","track-by":"code",searchable:!0,invalid:e(p).currentPreferences.language.$error},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"])]),V("div",Ra,[t(x,{label:v.$t("wizard.date_format"),error:e(p).currentPreferences.carbon_date_format.$error&&e(p).currentPreferences.carbon_date_format.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).carbon_date_format,"onUpdate:modelValue":w[2]||(w[2]=N=>e(i).carbon_date_format=N),"content-loading":e(r),options:e(m).dateFormats,label:"display_date","value-prop":"carbon_format_value",placeholder:v.$tc("settings.preferences.select_date_format"),"track-by":"display_date",searchable:"",invalid:e(p).currentPreferences.carbon_date_format.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"]),t(x,{label:v.$t("wizard.time_zone"),error:e(p).currentPreferences.time_zone.$error&&e(p).currentPreferences.time_zone.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).time_zone,"onUpdate:modelValue":w[3]||(w[3]=N=>e(i).time_zone=N),"content-loading":e(r),options:e(m).timeZones,label:"key","value-prop":"value",placeholder:v.$tc("settings.preferences.select_time_zone"),"track-by":"value",searchable:!0,invalid:e(p).currentPreferences.time_zone.$error},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"])]),V("div",Aa,[t(x,{label:v.$t("wizard.fiscal_year"),error:e(p).currentPreferences.fiscal_year.$error&&e(p).currentPreferences.fiscal_year.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).fiscal_year,"onUpdate:modelValue":w[4]||(w[4]=N=>e(i).fiscal_year=N),"content-loading":e(r),options:e(m).fiscalYears,label:"key","value-prop":"value",placeholder:v.$tc("settings.preferences.select_financial_year"),invalid:e(p).currentPreferences.fiscal_year.$error,"track-by":"key",searchable:!0,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"])]),t(J,{loading:d.value,disabled:d.value,"content-loading":e(r),class:"mt-4"},{left:u(N=>[t(Y,{name:"SaveIcon",class:O(N.class)},null,8,["class"])]),default:u(()=>[P(" "+U(v.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled","content-loading"])])],40,Ta)]),_:1},8,["title","description"])}}};var Ja="/build/img/crater-logo.png";const Za={components:{step_1:Oe,step_2:Ae,step_3:ia,step_4:sa,step_5:Ma,step_6:Na,step_7:Wa,step_8:Ya},setup(){let n=M("step_1"),q=M(1);const d=pe(),r=A();i();async function i(){let l=await r.fetchInstallationStep();if(l.data.profile_complete==="COMPLETED"){d.push("/admin/dashboard");return}let m=parseInt(l.data.profile_complete);m&&(q.value=m+1,n.value=`step_${m+1}`)}async function c(l){var s,h;let m={profile_complete:l};try{return await r.addInstallationStep(m),!0}catch(a){return((h=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:h.message)==="The MAC is invalid."&&window.location.reload(),!1}}async function o(l){if(l&&!await c(l))return!1;q.value++,q.value<=8&&(n.value="step_"+q.value)}function f(l){}return{stepComponent:n,currentStepNumber:q,onStepChange:o,saveStepProgress:c,onNavClick:f}}},Ka={class:"flex flex-col items-center justify-between w-full pt-10"},Qa=V("img",{id:"logo-crater",src:Ja,alt:"Crater Logo",class:"h-12 mb-5 md:mb-10"},null,-1);function Ha(n,q,d,r,i,c){const o=b("BaseWizard");return B(),k("div",Ka,[Qa,t(o,{steps:7,"current-step":r.currentStepNumber,onClick:r.onNavClick},{default:u(()=>[(B(),F(le(r.stepComponent),{onNext:r.onStepChange},null,8,["onNext"]))]),_:1},8,["current-step","onClick"])])}var nt=se(Za,[["render",Ha]]);export{nt as default};
var A=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var j=(t,e,i)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))W.call(e,i)&&j(t,i,e[i]);if(k)for(var i of k(e))X.call(e,i)&&j(t,i,e[i]);return t},L=(t,e)=>K(t,Q(e));import{r as l,o as u,e as T,f as o,u as n,w as c,J as Z,G as ee,aN as ne,B as x,k as b,L as p,M as y,S as te,O as oe,aP as ie,T as ae,C as se,l as I,j as C,h as $,t as P,m as le,i as ce,U as re,F as de}from"./vendor.01d0adc5.js";import{i as M,b as ue,m as me,r as ve}from"./main.832b14c7.js";import{_ as ge,a as pe,b as _e,c as fe,d as be,e as Ie,f as we}from"./SalesTax.da1d755f.js";import{_ as ye}from"./ExchangeRateConverter.357f31c9.js";import{_ as $e}from"./CreateCustomFields.940787b7.js";import{_ as Be}from"./TaxTypeModal.cf69664d.js";import"./DragIcon.88fb50b8.js";import"./SelectNotePopup.b35e7850.js";import"./NoteModal.a07ce50b.js";import"./payment.372edbf1.js";import"./exchange-rate.45b62b37.js";const Se={class:"grid grid-cols-12 gap-8 mt-6 mb-8"},he={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(t){const e=M();return(i,r)=>{const B=l("BaseCustomerSelectPopup"),d=l("BaseDatePicker"),m=l("BaseInputGroup"),S=l("BaseInput"),_=l("BaseInputGrid");return u(),T("div",Se,[o(B,{modelValue:n(e).newInvoice.customer,"onUpdate:modelValue":r[0]||(r[0]=a=>n(e).newInvoice.customer=a),valid:t.v.customer_id,"content-loading":t.isLoading,type:"invoice",class:"col-span-12 lg:col-span-5 pr-0"},null,8,["modelValue","valid","content-loading"]),o(_,{class:"col-span-12 lg:col-span-7"},{default:c(()=>[o(m,{label:i.$t("invoices.invoice_date"),"content-loading":t.isLoading,required:"",error:t.v.invoice_date.$error&&t.v.invoice_date.$errors[0].$message},{default:c(()=>[o(d,{modelValue:n(e).newInvoice.invoice_date,"onUpdate:modelValue":r[1]||(r[1]=a=>n(e).newInvoice.invoice_date=a),"content-loading":t.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),o(m,{label:i.$t("invoices.due_date"),"content-loading":t.isLoading},{default:c(()=>[o(d,{modelValue:n(e).newInvoice.due_date,"onUpdate:modelValue":r[2]||(r[2]=a=>n(e).newInvoice.due_date=a),"content-loading":t.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),o(m,{label:i.$t("invoices.invoice_number"),"content-loading":t.isLoading,error:t.v.invoice_number.$error&&t.v.invoice_number.$errors[0].$message,required:""},{default:c(()=>[o(S,{modelValue:n(e).newInvoice.invoice_number,"onUpdate:modelValue":r[3]||(r[3]=a=>n(e).newInvoice.invoice_number=a),"content-loading":t.isLoading,onInput:r[4]||(r[4]=a=>t.v.invoice_number.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),o(ye,{store:n(e),"store-prop":"newInvoice",v:t.v,"is-loading":t.isLoading,"is-edit":t.isEdit,"customer-currency":n(e).newInvoice.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])]),_:1})])}}},Ce=["onSubmit"],Ve={class:"flex"},ke={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},je={class:"relative w-full lg:w-1/2 lg:mr-4"},Re={setup(t){const e=M(),i=ue(),r=me(),B=ve(),{t:d}=Z();let m=ee(),S=ne();const _="newInvoice";let a=x(!1);const F=x(["customer","company","customerCustom","invoice","invoiceCustom"]);let f=b(()=>e.isFetchingInvoice||e.isFetchingInitialSettings),E=b(()=>v.value?d("invoices.edit_invoice"):d("invoices.new_invoice"));const N=b(()=>i.selectedCompanySettings.sales_tax_us_enabled==="YES"&&B.salesTaxUSEnabled);let v=b(()=>m.name==="invoices.edit");const U={invoice_date:{required:p.withMessage(d("validation.required"),y)},reference_number:{maxLength:p.withMessage(d("validation.price_maxlength"),te(255))},customer_id:{required:p.withMessage(d("validation.required"),y)},invoice_number:{required:p.withMessage(d("validation.required"),y)},exchange_rate:{required:oe(function(){return p.withMessage(d("validation.required"),y),e.showExchangeRate}),decimal:p.withMessage(d("validation.valid_exchange_rate"),ie)}},w=ae(U,b(()=>e.newInvoice),{$scope:_});r.resetCustomFields(),w.value.$reset,e.resetCurrentInvoice(),e.fetchInvoiceInitialSettings(v.value),se(()=>e.newInvoice.customer,s=>{s&&s.currency?e.newInvoice.selectedCurrency=s.currency:e.newInvoice.selectedCurrency=i.selectedCompanyCurrency});async function G(){if(w.value.$touch(),w.value.$invalid)return!1;a.value=!0;let s=L(q({},e.newInvoice),{sub_total:e.getSubTotal,total:e.getTotal,tax:e.getTotalTax});try{const g=await(v.value?e.updateInvoice:e.addInvoice)(s);S.push(`/admin/invoices/${g.data.data.id}/view`)}catch(h){console.error(h)}a.value=!1}return(s,h)=>{const g=l("BaseBreadcrumbItem"),D=l("BaseBreadcrumb"),V=l("BaseButton"),R=l("router-link"),H=l("BaseIcon"),O=l("BasePageHeader"),z=l("BaseScrollPane"),J=l("BasePage");return u(),T(de,null,[o(ge),o(pe),o(Be),n(N)&&(!n(f)||n(m).query.customer)?(u(),I(_e,{key:0,store:n(e),"is-edit":n(v),"store-prop":"newInvoice",customer:n(e).newInvoice.customer},null,8,["store","is-edit","customer"])):C("",!0),o(J,{class:"relative invoice-create-page"},{default:c(()=>[$("form",{onSubmit:re(G,["prevent"])},[o(O,{title:n(E)},{actions:c(()=>[s.$route.name==="invoices.edit"?(u(),I(R,{key:0,to:`/invoices/pdf/${n(e).newInvoice.unique_hash}`,target:"_blank"},{default:c(()=>[o(V,{class:"mr-3",variant:"primary-outline",type:"button"},{default:c(()=>[$("span",Ve,P(s.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):C("",!0),o(V,{loading:n(a),disabled:n(a),variant:"primary",type:"submit"},{left:c(Y=>[n(a)?C("",!0):(u(),I(H,{key:0,name:"SaveIcon",class:le(Y.class)},null,8,["class"]))]),default:c(()=>[ce(" "+P(s.$t("invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:c(()=>[o(D,null,{default:c(()=>[o(g,{title:s.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),o(g,{title:s.$tc("invoices.invoice",2),to:"/admin/invoices"},null,8,["title"]),s.$route.name==="invoices.edit"?(u(),I(g,{key:0,title:s.$t("invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(u(),I(g,{key:1,title:s.$t("invoices.new_invoice"),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),o(he,{v:n(w),"is-loading":n(f),"is-edit":n(v)},null,8,["v","is-loading","is-edit"]),o(z,null,{default:c(()=>[o(fe,{currency:n(e).newInvoice.selectedCurrency,"is-loading":n(f),"item-validation-scope":_,store:n(e),"store-prop":"newInvoice"},null,8,["currency","is-loading","store"]),$("div",ke,[$("div",je,[o(be,{store:n(e),"store-prop":"newInvoice",fields:F.value,type:"Invoice"},null,8,["store","fields"]),o($e,{type:"Invoice","is-edit":n(v),"is-loading":n(f),store:n(e),"store-prop":"newInvoice","custom-field-scope":_,class:"mb-6"},null,8,["is-edit","is-loading","store"]),o(Ie,{store:n(e),"store-prop":"newInvoice","component-name":"InvoiceTemplate"},null,8,["store"])]),o(we,{currency:n(e).newInvoice.selectedCurrency,"is-loading":n(f),store:n(e),"store-prop":"newInvoice","tax-popup-type":"invoice"},null,8,["currency","is-loading","store"])])]),_:1})],40,Ce)]),_:1})],64)}}};export{Re as default};
import{J as O,G as j,aN as z,ah as R,r as I,o as r,l,w as o,u as c,f as s,q as M,ag as P,i as d,t as m,j as v}from"./vendor.01d0adc5.js";import{i as F,c as U,u as q,j as H,e as W,g as y}from"./main.832b14c7.js";const K={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(a){const f=a,p=F(),N=U(),$=q(),b=H(),g=W(),{t:i}=O(),w=j(),C=z(),x=R("utils");function _(e){return(e.status=="SENT"||e.status=="VIEWED")&&g.hasAbilities(y.SEND_INVOICE)}function D(e){return e.status=="DRAFT"&&w.name!=="invoices.view"&&g.hasAbilities(y.SEND_INVOICE)}async function B(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(n=>{e=e,n&&p.deleteInvoice({ids:[e]}).then(t=>{t.data.success&&(C.push("/admin/invoices"),f.table&&f.table.refresh(),p.$patch(h=>{h.selectedInvoices=[],h.selectAllField=!1}))})})}async function A(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_clone"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(n=>{n&&p.cloneInvoice(e).then(t=>{C.push(`/admin/invoices/${t.data.data.id}/edit`)})})}async function T(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.invoice_mark_as_sent"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(n=>{const t={id:e,status:"SENT"};n&&p.markAsSent(t).then(h=>{f.table&&f.table.refresh()})})}async function E(e){N.openModal({title:i("invoices.send_invoice"),componentName:"SendInvoiceModal",id:e.id,data:e,variant:"sm"})}function V(){let e=`${window.location.origin}/invoices/pdf/${f.row.unique_hash}`;x.copyTextToClipboard(e),$.showNotification({type:"success",message:i("general.copied_pdf_url_clipboard")})}return(e,n)=>{const t=I("BaseIcon"),h=I("BaseButton"),u=I("BaseDropdownItem"),S=I("router-link"),L=I("BaseDropdown");return r(),l(L,null,{activator:o(()=>[c(w).name==="invoices.view"?(r(),l(h,{key:0,variant:"primary"},{default:o(()=>[s(t,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(r(),l(t,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[c(g).hasAbilities(c(y).EDIT_INVOICE)?(r(),l(S,{key:0,to:`/admin/invoices/${a.row.id}/edit`},{default:o(()=>[M(s(u,null,{default:o(()=>[s(t,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.edit")),1)]),_:1},512),[[P,a.row.allow_edit]])]),_:1},8,["to"])):v("",!0),c(w).name==="invoices.view"?(r(),l(u,{key:1,onClick:V},{default:o(()=>[s(t,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.copy_pdf_url")),1)]),_:1})):v("",!0),c(w).name!=="invoices.view"&&c(g).hasAbilities(c(y).VIEW_INVOICE)?(r(),l(S,{key:2,to:`/admin/invoices/${a.row.id}/view`},{default:o(()=>[s(u,null,{default:o(()=>[s(t,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):v("",!0),D(a.row)?(r(),l(u,{key:3,onClick:n[0]||(n[0]=k=>E(a.row))},{default:o(()=>[s(t,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.send_invoice")),1)]),_:1})):v("",!0),_(a.row)?(r(),l(u,{key:4,onClick:n[1]||(n[1]=k=>E(a.row))},{default:o(()=>[s(t,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.resend_invoice")),1)]),_:1})):v("",!0),s(S,{to:`/admin/payments/${a.row.id}/create`},{default:o(()=>[a.row.status=="SENT"&&c(w).name!=="invoices.view"?(r(),l(u,{key:0},{default:o(()=>[s(t,{name:"CreditCardIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.record_payment")),1)]),_:1})):v("",!0)]),_:1},8,["to"]),D(a.row)?(r(),l(u,{key:5,onClick:n[2]||(n[2]=k=>T(a.row.id))},{default:o(()=>[s(t,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.mark_as_sent")),1)]),_:1})):v("",!0),c(g).hasAbilities(c(y).CREATE_INVOICE)?(r(),l(u,{key:6,onClick:n[3]||(n[3]=k=>A(a.row))},{default:o(()=>[s(t,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.clone_invoice")),1)]),_:1})):v("",!0),c(g).hasAbilities(c(y).DELETE_INVOICE)?(r(),l(u,{key:7,onClick:n[4]||(n[4]=k=>B(a.row.id))},{default:o(()=>[s(t,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.delete")),1)]),_:1})):v("",!0)]),_:1})}}};export{K as _};
import{J as S,B as V,k as h,L as g,M as C,N as k,T as N,r as i,o as b,l as B,w as r,h as d,i as p,t as f,u as e,f as l,m as j,j as x,U as q}from"./vendor.01d0adc5.js";import{p as z,c as D}from"./main.832b14c7.js";const L={class:"flex justify-between w-full"},T=["onSubmit"],E={class:"p-8 sm:p-6"},G={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},F={setup(J){const t=z(),a=D(),{t:v}=S();let s=V(!1);const $=h(()=>({name:{required:g.withMessage(v("validation.required"),C),minLength:g.withMessage(v("validation.name_min_length",{count:3}),k(3))}})),n=N($,h(()=>t.currentItemUnit));async function U(){if(n.value.$touch(),n.value.$invalid)return!0;try{const o=t.isItemUnitEdit?t.updateItemUnit:t.addItemUnit;s.value=!0,await o(t.currentItemUnit),a.refreshData&&a.refreshData(),u(),s.value=!1}catch{return s.value=!1,!0}}function u(){a.closeModal(),setTimeout(()=>{t.currentItemUnit={id:null,name:""},a.$reset(),n.value.$reset()},300)}return(o,m)=>{const _=i("BaseIcon"),y=i("BaseInput"),w=i("BaseInputGroup"),I=i("BaseButton"),M=i("BaseModal");return b(),B(M,{show:e(a).active&&e(a).componentName==="ItemUnitModal",onClose:u},{header:r(()=>[d("div",L,[p(f(e(a).title)+" ",1),l(_,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:u})])]),default:r(()=>[d("form",{action:"",onSubmit:q(U,["prevent"])},[d("div",E,[l(w,{label:o.$t("settings.customization.items.unit_name"),error:e(n).name.$error&&e(n).name.$errors[0].$message,variant:"horizontal",required:""},{default:r(()=>[l(y,{modelValue:e(t).currentItemUnit.name,"onUpdate:modelValue":m[0]||(m[0]=c=>e(t).currentItemUnit.name=c),invalid:e(n).name.$error,type:"text",onInput:m[1]||(m[1]=c=>e(n).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),d("div",G,[l(I,{type:"button",variant:"primary-outline",class:"mr-3 text-sm",onClick:u},{default:r(()=>[p(f(o.$t("general.cancel")),1)]),_:1}),l(I,{loading:e(s),disabled:e(s),variant:"primary",type:"submit"},{left:r(c=>[e(s)?x("",!0):(b(),B(_,{key:0,name:"SaveIcon",class:j(c.class)},null,8,["class"]))]),default:r(()=>[p(" "+f(e(t).isItemUnitEdit?o.$t("general.update"):o.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,T)]),_:1},8,["show"])}}};export{F as _};
import{u as V}from"./auth.77d12976.js";import{J as I,G as N,aN as z,B as F,k as b,C as G,r as p,o as n,l as c,w as a,h as t,u as e,e as u,y as v,m as x,i as d,t as l,F as w,f as r,a9 as O,b4 as E,b5 as J,ab as P,b6 as T,b7 as q,b8 as H,b9 as K,ba as Q,j as W}from"./vendor.01d0adc5.js";import{u as U}from"./global.8697213a.js";import{f as X}from"./main.832b14c7.js";import{N as Y}from"./NotificationRoot.9c69192b.js";const Z={class:"mx-auto px-8"},tt={class:"flex justify-between h-16 w-full"},et={class:"flex"},st={class:"shrink-0 flex items-center"},ot=["href"],rt=["src"],at={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},nt={class:"hidden sm:ml-6 sm:flex sm:items-center"},it=t("button",{type:"button",class:"bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},null,-1),lt=["src"],ct={class:"-mr-2 flex items-center sm:hidden"},ut=t("span",{class:"sr-only"},"Open main menu",-1),dt={class:"pt-2 pb-3 space-y-1"},mt={class:"pt-4 pb-3 border-t border-gray-200"},ft={class:"flex items-center px-4"},pt={class:"shrink-0"},ht=["src"],gt={class:"ml-3"},_t={class:"text-base font-medium text-gray-800"},yt={class:"text-sm font-medium text-gray-500"},bt=t("button",{type:"button",class:"ml-auto bg-white shrink-0 p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},null,-1),vt={class:"mt-3 space-y-1"},xt={setup(C){const{t:m}=I(),f=N(),o=U(),h=[{title:m("navigation.logout"),link:`/${o.companySlug}/customer/login`}],k=V(),$=z(),g=F(""),B=b(()=>o.currentUser&&o.currentUser.avatar!==0?o.currentUser.avatar:A());function A(){return new URL("/build/img/default-avatar.jpg",self.location)}G(f,i=>{g.value=i.path},{immediate:!0});const S=b(()=>window.customer_logo?window.customer_logo:!1);function _(i){return f.path.indexOf(i)>-1}function R(){k.logout(o.companySlug).then(i=>{i&&$.push({name:"customer.login"})})}return(i,D)=>{const y=p("router-link"),j=p("BaseDropdownItem"),L=p("BaseDropdown");return n(),c(e(Q),{as:"nav",class:"bg-white shadow-sm fixed top-0 left-0 z-20 w-full"},{default:a(({open:M})=>[t("div",Z,[t("div",tt,[t("div",et,[t("div",st,[t("a",{href:`/${e(o).companySlug}/customer/dashboard`,class:"float-none text-lg not-italic font-black tracking-wider text-white brand-main md:float-left font-base"},[e(S)?(n(),u("img",{key:1,src:e(S),class:"h-6"},null,8,rt)):(n(),c(X,{key:0,class:"h-6"}))],8,ot)]),t("div",at,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(y,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([_(s.link)?"border-primary-500 text-primary-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:a(()=>[d(l(s.title),1)]),_:2},1032,["to","class"]))),128))])]),t("div",nt,[it,r(e(P),{as:"div",class:"ml-3 relative"},{default:a(()=>[r(L,{"width-class":"w-48"},{activator:a(()=>[r(e(O),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},{default:a(()=>[t("img",{class:"h-8 w-8 rounded-full",src:e(B),alt:""},null,8,lt)]),_:1})]),default:a(()=>[r(j,{onClick:D[0]||(D[0]=s=>i.$router.push({name:"customer.profile"}))},{default:a(()=>[r(e(E),{class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),d(" "+l(i.$t("navigation.settings")),1)]),_:1}),r(j,{onClick:R},{default:a(()=>[r(e(J),{class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),d(" "+l(i.$t("navigation.logout")),1)]),_:1})]),_:1})]),_:1})]),t("div",ct,[r(e(H),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},{default:a(()=>[ut,M?(n(),c(e(q),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(n(),c(e(T),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),r(e(K),{class:"sm:hidden"},{default:a(()=>[t("div",dt,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(y,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([_(s.link)?"bg-primary-50 border-primary-500 text-primary-700":"border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),"aria-current":s.current?"page":void 0},{default:a(()=>[d(l(s.title),1)]),_:2},1032,["to","class","aria-current"]))),128))]),t("div",mt,[t("div",ft,[t("div",pt,[t("img",{class:"h-10 w-10 rounded-full",src:e(B),alt:""},null,8,ht)]),t("div",gt,[t("div",_t,l(e(o).currentUser.title),1),t("div",yt,l(e(o).currentUser.email),1)]),bt]),t("div",vt,[(n(),u(w,null,v(h,s=>r(y,{key:s.title,to:s.link,class:x([_(s.link)?"bg-primary-50 border-primary-500 text-primary-700":"border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"])},{default:a(()=>[d(l(s.title),1)]),_:2},1032,["to","class"])),64))])])]),_:1})]),_:1})}}},wt={key:0,class:"h-full"},kt={class:"mt-16 pb-16 h-screen h-screen-ios overflow-y-auto min-h-0"},Nt={setup(C){const m=U(),f=N(),o=b(()=>m.isAppLoaded);h();async function h(){await m.bootstrap(f.params.company)}return(k,$)=>{const g=p("router-view");return e(o)?(n(),u("div",wt,[r(Y),r(xt),t("main",kt,[r(g)])])):W("",!0)}}};export{Nt as default};
import{aN as q,J as z,B as k,a0 as _e,k as P,L as N,M as J,N as he,T as ae,r as y,o as a,l as C,w as s,h as n,i as U,t as u,u as e,f as t,e as i,m as L,j as B,U as H,G as X,C as oe,aO as se,F as V,y as R,Y as ne,A as ye,a5 as fe,a2 as K,a3 as ge,a6 as ve,aP as be,D as xe}from"./vendor.01d0adc5.js";import{b as Y,c as W,d as D,e as Q,S as we,a as $e,f as re,g as j,u as ke}from"./main.832b14c7.js";import{u as le}from"./exchange-rate.45b62b37.js";import{u as Ce}from"./users.936a04ee.js";import{N as Be}from"./NotificationRoot.9c69192b.js";import{V as Se}from"./index.esm.998a6eeb.js";const Ie={class:"flex justify-between w-full"},Me=["onSubmit"],Ue={class:"p-4 mb-16 sm:p-6 space-y-4"},Ee={key:1,class:"flex flex-col items-center"},Ve={class:"z-0 flex justify-end p-4 bg-gray-50 border-modal-bg"},Ae={setup(F){const m=q(),r=Y(),d=W(),f=D(),{t:_}=z();let g=k(!1),b=k(null),c=k(!1),l=k(null),p=k(null);const h=_e({name:null,currency:"",address:{country_id:null}}),v=P(()=>d.active&&d.componentName==="CompanyModal"),x={newCompanyForm:{name:{required:N.withMessage(_("validation.required"),J),minLength:N.withMessage(_("validation.name_min_length",{count:3}),he(3))},address:{country_id:{required:N.withMessage(_("validation.required"),J)}},currency:{required:N.withMessage(_("validation.required"),J)}}},o=ae(x,{newCompanyForm:h});async function w(){c.value=!0,await f.fetchCurrencies(),await f.fetchCountries(),h.currency=r.selectedCompanyCurrency.id,h.address.country_id=r.selectedCompany.address.country_id,c.value=!1}function S(I,M){p.value=I,l.value=M}function $(){p.value=null,l.value=null}async function E(){if(o.value.newCompanyForm.$touch(),o.value.$invalid)return!0;g.value=!0;try{const I=await r.addNewCompany(h);if(I.data.data){if(await r.setSelectedCompany(I.data.data),l&&l.value){let M=new FormData;M.append("company_logo",JSON.stringify({name:p.value,data:l.value})),await r.updateCompanyLogo(M),m.push("/admin/dashboard")}await f.setIsAppLoaded(!1),await f.bootstrap(),O()}g.value=!1}catch{g.value=!1}}function T(){h.name="",h.currency="",h.address.country_id="",o.value.$reset()}function O(){d.closeModal(),setTimeout(()=>{T(),o.value.$reset()},300)}return(I,M)=>{const Z=y("BaseIcon"),ie=y("BaseContentPlaceholdersBox"),ce=y("BaseContentPlaceholders"),de=y("BaseFileUploader"),G=y("BaseInputGroup"),ue=y("BaseInput"),ee=y("BaseMultiselect"),me=y("BaseInputGrid"),te=y("BaseButton"),pe=y("BaseModal");return a(),C(pe,{show:e(v),onClose:O,onOpen:w},{header:s(()=>[n("div",Ie,[U(u(e(d).title)+" ",1),t(Z,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:O})])]),default:s(()=>[n("form",{action:"",onSubmit:H(E,["prevent"])},[n("div",Ue,[t(me,{layout:"one-column"},{default:s(()=>[t(G,{"content-loading":e(c),label:I.$tc("settings.company_info.company_logo")},{default:s(()=>[e(c)?(a(),C(ce,{key:0},{default:s(()=>[t(ie,{rounded:!0,class:"w-full h-24"})]),_:1})):(a(),i("div",Ee,[t(de,{"preview-image":e(b),base64:"",onRemove:$,onChange:S},null,8,["preview-image"])]))]),_:1},8,["content-loading","label"]),t(G,{label:I.$tc("settings.company_info.company_name"),error:e(o).newCompanyForm.name.$error&&e(o).newCompanyForm.name.$errors[0].$message,"content-loading":e(c),required:""},{default:s(()=>[t(ue,{modelValue:e(h).name,"onUpdate:modelValue":M[0]||(M[0]=A=>e(h).name=A),invalid:e(o).newCompanyForm.name.$error,"content-loading":e(c),onInput:M[1]||(M[1]=A=>e(o).newCompanyForm.name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(G,{"content-loading":e(c),label:I.$tc("settings.company_info.country"),error:e(o).newCompanyForm.address.country_id.$error&&e(o).newCompanyForm.address.country_id.$errors[0].$message,required:""},{default:s(()=>[t(ee,{modelValue:e(h).address.country_id,"onUpdate:modelValue":M[2]||(M[2]=A=>e(h).address.country_id=A),"content-loading":e(c),label:"name",invalid:e(o).newCompanyForm.address.country_id.$error,options:e(f).countries,"value-prop":"id","can-deselect":!0,"can-clear":!1,searchable:"","track-by":"name"},null,8,["modelValue","content-loading","invalid","options"])]),_:1},8,["content-loading","label","error"]),t(G,{label:I.$t("wizard.currency"),error:e(o).newCompanyForm.currency.$error&&e(o).newCompanyForm.currency.$errors[0].$message,"content-loading":e(c),"help-text":I.$t("wizard.currency_set_alert"),required:""},{default:s(()=>[t(ee,{modelValue:e(h).currency,"onUpdate:modelValue":M[3]||(M[3]=A=>e(h).currency=A),"content-loading":e(c),options:e(f).currencies,label:"name","value-prop":"id",searchable:!0,"track-by":"name",placeholder:I.$tc("settings.currencies.select_currency"),invalid:e(o).newCompanyForm.currency.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading","help-text"])]),_:1})]),n("div",Ve,[t(te,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:O},{default:s(()=>[U(u(I.$t("general.cancel")),1)]),_:1}),t(te,{loading:e(g),disabled:e(g),variant:"primary",type:"submit"},{left:s(A=>[e(g)?B("",!0):(a(),C(Z,{key:0,name:"SaveIcon",class:L(A.class)},null,8,["class"]))]),default:s(()=>[U(" "+u(I.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Me)]),_:1},8,["show"])}}},Re={key:0,class:"w-16 text-sm font-medium truncate sm:w-auto"},Fe={key:0,class:"absolute right-0 mt-2 bg-white rounded-md shadow-lg"},Le={class:"overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full w-[250px] max-h-[350px] scrollbar-thumb-gray-300 scrollbar-track-gray-10 pb-4"},je={class:"px-3 py-2 text-xs font-semibold text-gray-400 mb-0.5 block uppercase"},Ne={key:0,class:"flex flex-col items-center justify-center p-2 px-3 mt-4 text-base text-gray-400"},Te={key:1},De={key:0},Oe=["onClick"],Ge={class:"flex items-center"},qe={class:"flex items-center justify-center mr-3 overflow-hidden text-base font-semibold bg-gray-200 rounded-md w-9 h-9 text-primary-500"},ze={key:0},Pe=["src"],Je={class:"flex flex-col"},Xe={class:"text-sm"},Ye={class:"font-medium"},We={setup(F){const m=Y(),r=W(),d=X(),f=q(),_=D(),{t:g}=z(),b=Q(),c=k(!1),l=k(""),p=k(null);oe(d,()=>{c.value=!1,l.value=""}),se(p,()=>{c.value=!1});function h(o){if(o)return o.split(" ")[0].charAt(0).toUpperCase()}function v(){r.openModal({title:g("company_switcher.new_company"),componentName:"CompanyModal",size:"sm"})}async function x(o){await m.setSelectedCompany(o),f.push("/admin/dashboard"),await _.setIsAppLoaded(!1),await _.bootstrap()}return(o,w)=>{const S=y("BaseIcon");return a(),i("div",{ref:($,E)=>{E.companySwitchBar=$,p.value=$},class:"relative rounded"},[t(Ae),n("div",{class:"flex items-center justify-center px-3 h-8 md:h-9 ml-2 text-sm text-white bg-white rounded cursor-pointer bg-opacity-20",onClick:w[0]||(w[0]=$=>c.value=!c.value)},[e(m).selectedCompany?(a(),i("span",Re,u(e(m).selectedCompany.name),1)):B("",!0),t(S,{name:"ChevronDownIcon",class:"h-5 ml-1 text-white"})]),t(ne,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:s(()=>[c.value?(a(),i("div",Fe,[n("div",Le,[n("label",je,u(o.$t("company_switcher.label")),1),e(m).companies.length<1?(a(),i("div",Ne,[t(S,{name:"ExclamationCircleIcon",class:"h-5 text-gray-400"}),U(" "+u(o.$t("company_switcher.no_results_found")),1)])):(a(),i("div",Te,[e(m).companies.length>0?(a(),i("div",De,[(a(!0),i(V,null,R(e(m).companies,($,E)=>(a(),i("div",{key:E,class:L(["p-2 px-3 rounded-md cursor-pointer hover:bg-gray-100 hover:text-primary-500",{"bg-gray-100 text-primary-500":e(m).selectedCompany.id===$.id}]),onClick:T=>x($)},[n("div",Ge,[n("span",qe,[$.logo?(a(),i("img",{key:1,src:$.logo,alt:"Company logo",class:"w-full h-full object-contain"},null,8,Pe)):(a(),i("span",ze,u(h($.name)),1))]),n("div",Je,[n("span",Xe,u($.name),1)])])],10,Oe))),128))])):B("",!0)]))]),e(b).currentUser.is_owner?(a(),i("div",{key:0,class:"flex items-center justify-center p-4 pl-3 border-t-2 border-gray-100 cursor-pointer text-primary-400 hover:text-primary-500",onClick:v},[t(S,{name:"PlusIcon",class:"h-5 mr-2"}),n("span",Ye,u(o.$t("company_switcher.add_new_company")),1)])):B("",!0)])):B("",!0)]),_:1})],512)}}},He={key:0,class:"scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-gray-300 scrollbar-track-gray-100 overflow-y-auto bg-white rounded-md mt-2 shadow-lg p-3 absolute w-[300px] h-[200px] right-0"},Ke={key:0,class:"flex items-center justify-center text-gray-400 text-base flex-col mt-4"},Qe={key:1},Ze={key:0},et={class:"text-sm text-gray-400 mb-0.5 block px-2 uppercase"},tt={class:"flex items-center justify-center w-9 h-9 mr-3 text-base font-semibold bg-gray-200 rounded-full text-primary-500"},at={class:"flex flex-col"},ot={class:"text-sm"},st={key:0,class:"text-xs text-gray-400"},nt={key:1,class:"text-xs text-gray-400"},rt={key:1,class:"mt-2"},lt={class:"text-sm text-gray-400 mb-2 block px-2 mb-0.5 uppercase"},it={class:"flex items-center justify-center w-9 h-9 mr-3 text-base font-semibold bg-gray-200 rounded-full text-primary-500"},ct={class:"flex flex-col"},dt={class:"text-sm"},ut={class:"text-xs text-gray-400"},mt={setup(F){const m=Ce(),r=k(!1),d=k(""),f=k(null),_=k(!1),g=X();oe(g,()=>{r.value=!1,d.value=""}),b=ye.exports.debounce(b,500),se(f,()=>{r.value=!1,d.value=""});function b(){let l={search:d.value};d.value&&(_.value=!0,m.searchUsers(l).then(()=>{r.value=!0}),_.value=!1),d.value===""&&(r.value=!1)}function c(l){if(l)return l.split(" ")[0].charAt(0).toUpperCase()}return(l,p)=>{const h=y("BaseIcon"),v=y("BaseInput"),x=y("router-link");return a(),i("div",{ref:(o,w)=>{w.searchBar=o,f.value=o},class:"hidden rounded md:block relative"},[n("div",null,[t(v,{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=o=>d.value=o),placeholder:"Search...","container-class":"!rounded",class:"h-8 md:h-9 !rounded",onInput:b},{left:s(()=>[t(h,{name:"SearchIcon",class:"text-gray-400"})]),right:s(()=>[_.value?(a(),C(we,{key:0,class:"h-5 text-primary-500"})):B("",!0)]),_:1},8,["modelValue"])]),t(ne,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:s(()=>[r.value?(a(),i("div",He,[e(m).userList.length<1&&e(m).customerList.length<1?(a(),i("div",Ke,[t(h,{name:"ExclamationCircleIcon",class:"text-gray-400"}),U(" "+u(l.$t("global_search.no_results_found")),1)])):(a(),i("div",Qe,[e(m).customerList.length>0?(a(),i("div",Ze,[n("label",et,u(l.$t("global_search.customers")),1),(a(!0),i(V,null,R(e(m).customerList,(o,w)=>(a(),i("div",{key:w,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t(x,{to:{path:`/admin/customers/${o.id}/view`},class:"flex items-center"},{default:s(()=>[n("span",tt,u(c(o.name)),1),n("div",at,[n("span",ot,u(o.name),1),o.contact_name?(a(),i("span",st,u(o.contact_name),1)):(a(),i("span",nt,u(o.email),1))])]),_:2},1032,["to"])]))),128))])):B("",!0),e(m).userList.length>0?(a(),i("div",rt,[n("label",lt,u(l.$t("global_search.users")),1),(a(!0),i(V,null,R(e(m).userList,(o,w)=>(a(),i("div",{key:w,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t(x,{to:{path:`/admin/users/${o.id}/edit`},class:"flex items-center"},{default:s(()=>[n("span",it,u(c(o.name)),1),n("div",ct,[n("span",dt,u(o.name),1),n("span",ut,u(o.email),1)])]),_:2},1032,["to"])]))),128))])):B("",!0)]))])):B("",!0)]),_:1})],512)}}},pt={class:"fixed top-0 left-0 z-20 flex items-center justify-between w-full px-4 py-3 md:h-16 md:px-8 bg-gradient-to-r from-primary-500 to-primary-400"},_t=["onClick"],ht={class:"flex float-right h-8 m-0 list-none md:h-9"},yt={key:0,class:"relative hidden float-left m-0 md:block"},ft={class:"flex items-center justify-center w-8 h-8 ml-2 text-sm text-black bg-white rounded md:h-9 md:w-9"},gt={class:"ml-2"},vt={class:"relative block float-left ml-2"},bt=["src"],xt={setup(F){const m=$e(),r=Q(),d=D(),f=q(),_=P(()=>r.currentUser&&r.currentUser.avatar!==0?r.currentUser.avatar:g());function g(){return new URL("/build/img/default-avatar.jpg",self.location)}function b(){return r.hasAbilities([j.CREATE_INVOICE,j.CREATE_ESTIMATE,j.CREATE_CUSTOMER])}async function c(){await m.logout(),f.push("/login")}function l(){d.setSidebarVisibility(!0)}return(p,h)=>{const v=y("router-link"),x=y("BaseIcon"),o=y("BaseDropdownItem"),w=y("BaseDropdown");return a(),i("header",pt,[t(v,{to:"/admin/dashboard",class:"float-none text-lg not-italic font-black tracking-wider text-white brand-main md:float-left font-base hidden md:block"},{default:s(()=>[t(re,{class:"h-6","light-color":"white","dark-color":"white"})]),_:1}),n("div",{class:L([{"is-active":e(d).isSidebarOpen},"flex float-left p-1 overflow-visible text-sm ease-linear bg-white border-0 rounded cursor-pointer md:hidden md:ml-0 hover:bg-gray-100"]),onClick:H(l,["prevent"])},[t(x,{name:"MenuIcon",class:"!w-6 !h-6 text-gray-500"})],10,_t),n("ul",ht,[b?(a(),i("li",yt,[t(w,{"width-class":"w-48"},{activator:s(()=>[n("div",ft,[t(x,{name:"PlusIcon",class:"w-5 h-5 text-gray-600"})])]),default:s(()=>[t(v,{to:"/admin/invoices/create"},{default:s(()=>[e(r).hasAbilities(e(j).CREATE_INVOICE)?(a(),C(o,{key:0},{default:s(()=>[t(x,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("invoices.new_invoice")),1)]),_:1})):B("",!0)]),_:1}),t(v,{to:"/admin/estimates/create"},{default:s(()=>[e(r).hasAbilities(e(j).CREATE_ESTIMATE)?(a(),C(o,{key:0},{default:s(()=>[t(x,{name:"DocumentIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("estimates.new_estimate")),1)]),_:1})):B("",!0)]),_:1}),t(v,{to:"/admin/customers/create"},{default:s(()=>[e(r).hasAbilities(e(j).CREATE_CUSTOMER)?(a(),C(o,{key:0},{default:s(()=>[t(x,{name:"UserIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("customers.new_customer")),1)]),_:1})):B("",!0)]),_:1})]),_:1})])):B("",!0),n("li",gt,[e(r).currentUser.is_owner||e(r).hasAbilities(e(j).VIEW_CUSTOMER)?(a(),C(mt,{key:0})):B("",!0)]),n("li",null,[t(We)]),n("li",vt,[t(w,{"width-class":"w-48"},{activator:s(()=>[n("img",{src:e(_),class:"block w-8 h-8 rounded md:h-9 md:w-9"},null,8,bt)]),default:s(()=>[t(v,{to:"/admin/settings/account-settings"},{default:s(()=>[t(o,null,{default:s(()=>[t(x,{name:"CogIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("navigation.settings")),1)]),_:1})]),_:1}),t(o,{onClick:c},{default:s(()=>[t(x,{name:"LogoutIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("navigation.logout")),1)]),_:1})]),_:1})])])])}}},wt={class:"relative flex flex-col flex-1 w-full max-w-xs bg-white"},$t={class:"absolute top-0 right-0 pt-2 -mr-12"},kt=n("span",{class:"sr-only"},"Close sidebar",-1),Ct={class:"flex-1 h-0 pt-5 pb-4 overflow-y-auto"},Bt={class:"flex items-center shrink-0 px-4 mb-10"},St=n("div",{class:"shrink-0 w-14"},null,-1),It={class:"hidden w-56 h-screen h-screen-ios pb-32 overflow-y-auto bg-white border-r border-gray-200 border-solid xl:w-64 md:fixed md:flex md:flex-col md:inset-y-0 pt-16"},Mt={setup(F){const m=X(),r=D();function d(f){return m.path.indexOf(f)>-1}return(f,_)=>{const g=y("BaseIcon"),b=y("router-link");return a(),i(V,null,[t(e(ve),{as:"template",show:e(r).isSidebarOpen},{default:s(()=>[t(e(fe),{as:"div",class:"fixed inset-0 z-40 flex md:hidden",onClose:_[3]||(_[3]=c=>e(r).setSidebarVisibility(!1))},{default:s(()=>[t(e(K),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>[t(e(ge),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t(e(K),{as:"template",enter:"transition ease-in-out duration-300","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:s(()=>[n("div",wt,[t(e(K),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>[n("div",$t,[n("button",{class:"flex items-center justify-center w-10 h-10 ml-1 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:_[0]||(_[0]=c=>e(r).setSidebarVisibility(!1))},[kt,t(g,{name:"XIcon",class:"w-6 h-6 text-white","aria-hidden":"true"})])])]),_:1}),n("div",Ct,[n("div",Bt,[t(re,{class:"block h-auto max-w-full w-36 text-primary-400",alt:"Crater Logo"})]),(a(!0),i(V,null,R(e(r).menuGroups,c=>(a(),i("nav",{key:c,class:"mt-5 space-y-1"},[(a(!0),i(V,null,R(c,l=>(a(),C(b,{key:l.name,to:l.link,class:L([d(l.link)?"text-primary-500 border-primary-500 bg-gray-100 ":"text-black","cursor-pointer px-0 pl-4 py-3 border-transparent flex items-center border-l-4 border-solid text-sm not-italic font-medium"]),onClick:_[2]||(_[2]=p=>e(r).setSidebarVisibility(!1))},{default:s(()=>[t(g,{name:l.icon,class:L([d(l.link)?"text-primary-500 ":"text-gray-400","mr-4 shrink-0 h-5 w-5"]),onClick:_[1]||(_[1]=p=>e(r).setSidebarVisibility(!1))},null,8,["name","class"]),U(" "+u(f.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])])]),_:1}),St]),_:1})]),_:1},8,["show"]),n("div",It,[(a(!0),i(V,null,R(e(r).menuGroups,c=>(a(),i("div",{key:c,class:"p-0 m-0 mt-6 list-none"},[(a(!0),i(V,null,R(c,l=>(a(),C(b,{key:l,to:l.link,class:L([d(l.link)?"text-primary-500 border-primary-500 bg-gray-100 ":"text-black","cursor-pointer px-0 pl-6 hover:bg-gray-50 py-3 group flex items-center border-l-4 border-solid border-transparent text-sm not-italic font-medium"])},{default:s(()=>[t(g,{name:l.icon,class:L([d(l.link)?"text-primary-500 group-hover:text-primary-500 ":"text-gray-400 group-hover:text-black","mr-4 shrink-0 h-5 w-5 "])},null,8,["name","class"]),U(" "+u(f.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])],64)}}},Ut={class:"font-medium text-lg text-left"},Et={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},Vt=["onSubmit"],At={class:"text-gray-500 sm:text-sm"},Rt={class:"text-gray-400 text-xs mt-2 font-light"},Ft={slot:"footer",class:"z-0 flex justify-end mt-4 pt-4 border-t border-gray-200 border-solid border-modal-bg"},Lt={emits:["update"],setup(F,{emit:m}){const r=le();ke();const d=Y(),{t:f,tm:_}=z();let g=k(!1);k(!1);const b={exchange_rate:{required:N.withMessage(f("validation.required"),J),decimal:N.withMessage(f("validation.valid_exchange_rate"),be)}},c=ae();async function l(){if(c.value.$touch(),c.value.$invalid)return!0;g.value=!0;let p=r.bulkCurrencies.map(v=>({id:v.id,exchange_rate:v.exchange_rate})),h=await r.updateBulkExchangeRate({currencies:p});h.data.success&&m("update",h.data.success),g.value=!1}return(p,h)=>{const v=y("BaseInput"),x=y("BaseInputGroup"),o=y("BaseButton"),w=y("BaseCard");return a(),C(w,null,{default:s(()=>[n("h6",Ut,u(p.$t("settings.exchange_rate.title")),1),n("p",Et,u(p.$t("settings.exchange_rate.description",{currency:e(d).selectedCompanyCurrency.name})),1),n("form",{action:"",onSubmit:H(l,["prevent"])},[(a(!0),i(V,null,R(e(r).bulkCurrencies,(S,$)=>(a(),C(e(Se),{key:$,state:S,rules:b},{default:s(({v:E})=>[t(x,{class:"my-5",label:`${S.code} to ${e(d).selectedCompanyCurrency.code}`,error:E.exchange_rate.$error&&E.exchange_rate.$errors[0].$message,required:""},{default:s(()=>[t(v,{modelValue:S.exchange_rate,"onUpdate:modelValue":T=>S.exchange_rate=T,addon:`1 ${S.code} =`,invalid:E.exchange_rate.$error,onInput:T=>E.exchange_rate.$touch()},{right:s(()=>[n("span",At,u(e(d).selectedCompanyCurrency.code),1)]),_:2},1032,["modelValue","onUpdate:modelValue","addon","invalid","onInput"]),n("span",Rt,u(p.$t("settings.exchange_rate.exchange_help_text",{currency:S.code,baseCurrency:e(d).selectedCompanyCurrency.code})),1)]),_:2},1032,["label","error"])]),_:2},1032,["state"]))),128)),n("div",Ft,[t(o,{loading:e(g),variant:"primary",type:"submit"},{default:s(()=>[U(u(p.$t("general.save")),1)]),_:1},8,["loading"])])],40,Vt)]),_:1})}}},jt={setup(F){const m=W(),r=P(()=>m.active&&m.componentName==="ExchangeRateBulkUpdateModal");function d(){m.closeModal()}return(f,_)=>{const g=y("BaseModal");return a(),C(g,{show:e(r)},{default:s(()=>[t(Lt,{onUpdate:_[0]||(_[0]=b=>d())})]),_:1},8,["show"])}}},Nt={key:0,class:"h-full"},Tt={class:"pt-16 pb-16 h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0"},Jt={setup(F){const m=D(),r=X(),d=Q(),f=q(),_=W();z();const g=le(),b=Y(),c=P(()=>m.isAppLoaded);return xe(()=>{m.bootstrap().then(l=>{r.meta.ability&&!d.hasAbilities(r.meta.ability)?f.push({name:"account.settings"}):r.meta.isOwner&&!d.currentUser.is_owner&&f.push({name:"account.settings"}),l.data.current_company_settings.bulk_exchange_rate_configured==="NO"&&g.fetchBulkCurrencies().then(p=>{if(p.data.currencies.length)_.openModal({componentName:"ExchangeRateBulkUpdateModal",size:"sm"});else{let h={settings:{bulk_exchange_rate_configured:"YES"}};b.updateCompanySettings({data:h})}})})}),(l,p)=>{const h=y("router-view"),v=y("BaseGlobalLoader");return e(c)?(a(),i("div",Nt,[t(Be),t(xt),t(Mt),t(jt),n("main",Tt,[t(h)])])):(a(),C(v,{key:1}))}}};export{Jt as default};
import{N as t}from"./NotificationRoot.9c69192b.js";import{r as s,o as r,e as a,f as o,h as c}from"./vendor.01d0adc5.js";import"./main.832b14c7.js";const n={class:"h-screen h-screen-ios overflow-y-auto text-base"},i={class:"container mx-auto px-4"},u={setup(_){return(m,p)=>{const e=s("router-view");return r(),a("div",n,[o(t),c("div",i,[o(e)])])}}};export{u as default};
import{N as r}from"./NotificationRoot.9c69192b.js";import{f as l}from"./main.832b14c7.js";import{k as i,r as n,o,e,f as a,h as s,u as c,l as u}from"./vendor.01d0adc5.js";const d={class:"min-h-screen bg-gray-200 flex flex-col justify-center py-12 sm:px-6 lg:px-8"},p={class:"sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0"},_=["src"],x={class:"mt-8 sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0"},f={class:"bg-white py-8 px-4 shadow rounded-lg sm:px-10"},b={setup(w){const t=i(()=>window.customer_logo?window.customer_logo:!1);return(h,g)=>{const m=n("router-view");return o(),e("div",d,[a(r),s("div",p,[c(t)?(o(),e("img",{key:1,src:c(t),class:"block w-48 h-auto max-w-full text-primary-400 mx-auto"},null,8,_)):(o(),u(l,{key:0,class:"block w-48 h-auto max-w-full text-primary-400 mx-auto"}))]),s("div",x,[s("div",f,[a(m)])])])}}};export{b as default};
import{N as n}from"./NotificationRoot.9c69192b.js";import{_ as r,f as p}from"./main.832b14c7.js";import{o as e,e as a,h as t,ai as d,r as h,f as l,t as C,i}from"./vendor.01d0adc5.js";const f={},_={viewBox:"0 0 1012 1023",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",class:"text-primary-500"},m=t("path",{d:"M116.21 472.5C55.1239 693.5 78.5219 837.5 114.349 1023H1030.5V-1L0 -106C147.5 21.5 172.311 269.536 116.21 472.5Z",fill:"url(#paint0_linear)"},null,-1),g=t("defs",null,[t("linearGradient",{id:"paint0_linear",x1:"515.25",y1:"-106",x2:"515.25",y2:"1023",gradientUnits:"userSpaceOnUse"},[t("stop",{"stop-color":"rgba(var(--color-primary-500), var(--tw-text-opacity))"}),t("stop",{offset:"1","stop-color":"rgba(var(--color-primary-400), var(--tw-text-opacity))"})])],-1),y=[m,g];function x(o,s){return e(),a("svg",_,y)}var w=r(f,[["render",x]]);const u={},v={width:"422",height:"290",viewBox:"0 0 422 290",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=d('<g clip-path="url(#clip0)"><path opacity="0.3" d="M220.111 290.223C341.676 290.223 440.223 191.676 440.223 70.1115C440.223 -51.4527 341.676 -150 220.111 -150C98.5473 -150 0 -51.4527 0 70.1115C0 191.676 98.5473 290.223 220.111 290.223Z" fill="white" fill-opacity="0.1"></path><path opacity="0.3" d="M220.111 246.513C317.535 246.513 396.513 167.535 396.513 70.1114C396.513 -27.3124 317.535 -106.29 220.111 -106.29C122.688 -106.29 43.71 -27.3124 43.71 70.1114C43.71 167.535 122.688 246.513 220.111 246.513Z" fill="white" fill-opacity="0.1"></path><path d="M97.0093 35.322C96.7863 35.991 96.5633 36.66 96.5633 37.3291C94.1101 46.4725 92.7721 55.6159 92.3261 64.5364C91.88 74.5718 92.7721 84.6073 94.5562 94.1968C103.477 140.137 137.374 179.387 185.545 192.991C224.794 204.141 265.159 195.444 295.712 173.143C309.538 163.107 321.358 150.172 330.278 135.231C335.854 125.864 340.314 115.606 343.436 104.678C346.335 94.6428 347.896 84.6073 348.119 74.7949C348.788 56.954 345.666 39.3362 339.422 23.2794C325.372 -12.6253 295.043 -41.8397 255.124 -52.9902C211.637 -65.2558 167.481 -53.6593 136.036 -26.452C117.749 -10.6182 103.923 10.3448 97.0093 35.322Z" fill="white" fill-opacity="0.1"></path><path d="M97.0095 35.3223C96.7865 35.9913 96.5635 36.6603 96.5635 37.3294L347.896 74.7952C348.565 56.9543 345.443 39.3365 339.199 23.2797L136.036 -26.4517C117.749 -10.6179 103.923 10.3451 97.0095 35.3223Z" fill="white" fill-opacity="0.05"></path><path d="M92.3261 64.7598C91.88 74.7952 92.7721 84.8307 94.5562 94.4202L295.489 173.366C309.315 163.33 321.135 150.396 330.055 135.454L92.3261 64.7598Z" fill="white" fill-opacity="0.05"></path><path d="M153.431 11.9056C151.424 19.265 152.316 26.8473 155.661 33.0916C159.229 39.7819 165.473 45.1342 173.279 47.3643C188.443 51.6015 204.5 42.6811 208.737 27.5163C209.853 23.9482 210.076 20.157 209.629 16.5888C208.514 5.21529 200.486 -4.82018 188.889 -7.94233C173.502 -12.1795 157.668 -3.25911 153.431 11.9056Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M156.553 22.3869C155.438 25.9551 155.215 29.7462 155.661 33.3144C159.229 40.0047 165.473 45.357 173.279 47.5871C188.443 51.8243 204.5 42.9039 208.737 27.7391C209.852 24.171 210.075 20.3798 209.629 16.8116C206.061 10.1213 199.817 4.76908 192.011 2.53897C176.624 -1.92124 160.79 6.99919 156.553 22.3869Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M270.735 95.5343C267.613 100.887 266.944 106.685 268.282 112.26C269.62 118.058 273.411 123.411 278.986 126.533C289.914 132.777 303.74 128.986 309.985 118.281C311.546 115.605 312.438 112.929 312.884 110.03C314.222 101.11 309.985 91.9661 301.733 87.0599C290.806 81.0386 276.979 84.8298 270.735 95.5343Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M270.958 104.232C269.397 106.908 268.505 109.584 268.059 112.483C269.397 118.281 273.188 123.634 278.764 126.756C289.691 133 303.518 129.209 309.762 118.504C311.323 115.828 312.215 113.152 312.661 110.253C311.323 104.455 307.532 99.1025 301.957 95.9804C291.252 89.5131 277.426 93.3043 270.958 104.232Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M250.663 130.771C247.54 133.001 245.533 136.123 244.864 139.468C243.972 143.036 244.641 147.051 247.094 150.396C251.555 156.863 260.252 158.647 266.942 154.187C268.503 153.072 269.842 151.734 270.734 150.396C273.856 145.712 274.079 139.468 270.734 134.562C265.827 127.872 257.13 126.311 250.663 130.771Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M248.433 135.677C246.872 136.792 245.534 138.13 244.642 139.468C243.75 143.036 244.419 147.051 246.872 150.396C251.332 156.863 260.03 158.647 266.72 154.187C268.281 153.072 269.619 151.734 270.511 150.396C271.403 146.828 270.734 142.813 268.281 139.468C263.821 132.778 254.901 131.217 248.433 135.677Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M215.651 14.8049C214.759 18.15 215.205 21.4952 216.543 24.1713C218.104 27.0704 220.78 29.5236 224.348 30.4156C231.038 32.4227 238.175 28.4085 240.182 21.4952C240.628 19.9341 240.851 18.15 240.628 16.5889C240.182 11.4597 236.614 6.99951 231.484 5.66145C224.571 4.10037 217.435 8.11456 215.651 14.8049Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M216.989 19.4876C216.543 21.0487 216.32 22.8328 216.543 24.3939C218.104 27.293 220.78 29.7461 224.348 30.6382C231.039 32.6453 238.175 28.6311 240.182 21.7177C240.628 20.1567 240.851 18.3726 240.628 16.8115C239.067 13.9124 236.391 11.4593 232.823 10.5672C225.91 8.78313 218.773 12.5743 216.989 19.4876Z" class="fill-primary-500"></path><path d="M122.209 124.526C121.763 125.864 121.986 127.202 122.655 128.54C123.324 129.878 124.439 130.77 126.001 131.216C128.9 132.108 131.799 130.324 132.468 127.648C132.691 126.979 132.691 126.31 132.691 125.641C132.468 123.634 130.907 121.627 128.9 121.181C126.001 120.066 123.101 121.85 122.209 124.526Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M122.878 126.533C122.655 127.202 122.655 127.871 122.655 128.54C123.324 129.878 124.439 130.77 126 131.216C128.899 132.108 131.798 130.324 132.468 127.648C132.691 126.979 132.691 126.31 132.691 125.641C132.021 124.303 130.906 123.411 129.345 122.965C126.446 122.073 123.547 123.634 122.878 126.533Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M169.487 123.188C168.149 123.411 166.811 124.08 166.142 125.195C165.25 126.31 164.804 127.648 165.027 129.209C165.473 132.108 168.149 134.116 171.048 133.67C171.717 133.67 172.386 133.224 172.832 133C174.617 131.885 175.732 129.878 175.286 127.648C175.063 124.749 172.386 122.742 169.487 123.188Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M167.926 124.526C167.257 124.526 166.588 124.972 166.142 125.195C165.25 126.31 164.804 127.648 165.027 129.209C165.473 132.108 168.149 134.115 171.048 133.669C171.717 133.669 172.386 133.223 172.832 133C173.724 131.885 174.17 130.547 173.947 128.986C173.501 126.087 170.825 124.08 167.926 124.526Z" class="fill-primary-500" fill-opacity="0.5"></path></g><defs><clipPath id="clip0"><rect width="440" height="440" fill="white" transform="translate(0 -150)"></rect></clipPath></defs>',2),$=[b];function M(o,s){return e(),a("svg",v,$)}var Z=r(u,[["render",M]]);const L={},B={viewBox:"0 0 1170 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k=t("path",{d:"M690 4.08004C518 -9.91998 231 4.08004 -6 176.361L231 197.08L1170 219.08C1113.33 175.747 909.275 21.928 690 4.08004Z",fill:"white","fill-opacity":"0.1"},null,-1),N=[k];function V(o,s){return e(),a("svg",B,N)}var S=r(L,[["render",V]]);const j={},I={width:"1122",height:"1017",viewBox:"0 0 1122 1017",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R=t("path",{d:"M226.002 466.5C164.935 687.5 188.326 831.5 224.141 1017H1140V-7L0 -109.5C142.5 -7.5 282.085 263.536 226.002 466.5Z",fill:"url(#paint0_linear)","fill-opacity":"0.1"},null,-1),U=t("defs",null,[t("linearGradient",{id:"paint0_linear",x1:"649.5",y1:"-7",x2:"649.5",y2:"1017",gradientUnits:"userSpaceOnUse"},[t("stop",{"stop-color":"rgba(var(--color-primary-500), var(--tw-text-opacity))"}),t("stop",{offset:"1","stop-color":"rgba(var(--color-primary-400), var(--tw-text-opacity))"})])],-1),z=[R,U];function O(o,s){return e(),a("svg",I,z)}var P=r(j,[["render",O]]);const A={class:"grid h-screen h-screen-ios grid-cols-12 overflow-y-hidden bg-gray-100"},D={class:"flex items-center justify-center w-full max-w-sm col-span-12 p-4 mx-auto text-gray-900 md:p-8 md:col-span-6 lg:col-span-4 flex-2 md:pb-48 md:pt-40"},G={class:"w-full"},H={class:"pt-24 mt-0 text-sm not-italic font-medium leading-relaxed text-left text-gray-400 md:pt-40"},E={class:"mb-3"},F={class:"relative flex-col items-center justify-center hidden w-full h-full pl-10 bg-no-repeat bg-cover md:col-span-6 lg:col-span-8 md:flex content-box overflow-hidden"},T=t("div",{class:"pl-20 xl:pl-0 relative z-50"},[t("h1",{class:"hidden mb-3 text-3xl leading-normal text-left text-white xl:text-5xl xl:leading-tight md:none lg:block"},[t("b",{class:"font-bold"},"Simple Invoicing"),i(),t("br"),i(" for Individuals & "),t("br"),i(" Small Businesses "),t("br")]),t("p",{class:"hidden text-sm not-italic font-normal leading-normal text-left text-gray-100 xl:text-base xl:leading-6 md:none lg:block"},[i(" Crater helps you track expenses, record payments & generate beautiful "),t("br"),i(" invoices & estimates. "),t("br")])],-1),Q={setup(o){return(s,Y)=>{const c=h("router-view");return e(),a("div",A,[l(n),t("div",D,[t("div",G,[l(p,{class:"block w-48 h-auto max-w-full mb-32 text-primary-500"}),l(c),t("div",H,[t("p",E," Copyright @ Crater Invoice, Inc. "+C(new Date().getFullYear()),1)])])]),t("div",F,[l(w,{class:"absolute h-full w-full"}),l(Z,{class:"absolute z-10 top-0 right-0 h-[300px] w-[420px]"}),l(P,{class:"absolute h-full w-full right-[7.5%]"}),T,l(S,{class:"absolute z-50 w-full bg-no-repeat content-bottom h-[15vw] lg:h-[22vw] right-[32%] bottom-0"})])])}}};export{Q as default};
import{aQ as Zi,ah as Ji,B as Qi,k as eo,a7 as to,D as ro,a0 as ea,o as ao,e as no,h as io}from"./vendor.01d0adc5.js";import{b as oo}from"./main.832b14c7.js";var ta={exports:{}};/*!
import{_ as c}from"./main.832b14c7.js";import{o as e,e as s,h as o}from"./vendor.01d0adc5.js";const t={},r={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},n=o("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a=o("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),l=[n,a];function i(_,d){return e(),s("svg",r,l)}var p=c(t,[["render",i]]);export{p as L};
import{J as C,aN as M,B as w,L as p,M as $,Q as E,T as L,k as y,r as l,o as c,e as T,f as n,w as u,u as e,l as B,x as _,h as b,i as h,t as I,U,a as j}from"./vendor.01d0adc5.js";import{u as G,a as R}from"./main.832b14c7.js";const A=["onSubmit"],F={class:"mt-5 mb-8"},J={class:"mb-4"},z={setup(O){const k=G(),s=R(),{t:m}=C(),V=M(),d=w(!1);let o=w(!1);const x={email:{required:p.withMessage(m("validation.required"),$),email:p.withMessage(m("validation.email_incorrect"),E)},password:{required:p.withMessage(m("validation.required"),$)}},t=L(x,y(()=>s.loginData)),S=y(()=>o.value?"text":"password");async function q(){if(j.defaults.withCredentials=!0,t.value.$touch(),t.value.$invalid)return!0;d.value=!0;try{d.value=!0,await s.login(s.loginData),V.push("/admin/dashboard"),k.showNotification({type:"success",message:"Logged in successfully."})}catch{d.value=!1}}return(i,a)=>{const g=l("BaseInput"),f=l("BaseInputGroup"),v=l("BaseIcon"),D=l("router-link"),N=l("BaseButton");return c(),T("form",{id:"loginForm",class:"mt-12 text-left",onSubmit:U(q,["prevent"])},[n(f,{error:e(t).email.$error&&e(t).email.$errors[0].$message,label:i.$t("login.email"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).loginData.email=r),invalid:e(t).email.$error,focus:"",type:"email",name:"email",onInput:a[1]||(a[1]=r=>e(t).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(f,{error:e(t).password.$error&&e(t).password.$errors[0].$message,label:i.$t("login.password"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.password,"onUpdate:modelValue":a[4]||(a[4]=r=>e(s).loginData.password=r),invalid:e(t).password.$error,type:e(S),name:"password",onInput:a[5]||(a[5]=r=>e(t).password.$touch())},{right:u(()=>[e(o)?(c(),B(v,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[2]||(a[2]=r=>_(o)?o.value=!e(o):o=!e(o))})):(c(),B(v,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[3]||(a[3]=r=>_(o)?o.value=!e(o):o=!e(o))}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["error","label"]),b("div",F,[b("div",J,[n(D,{to:"forgot-password",class:"text-sm text-primary-400 hover:text-gray-700"},{default:u(()=>[h(I(i.$t("login.forgot_password")),1)]),_:1})])]),n(N,{loading:d.value,type:"submit"},{default:u(()=>[h(I(i.$t("login.login")),1)]),_:1},8,["loading"])],40,A)}}};export{z as default};
var E=Object.defineProperty,G=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var B=(s,a,t)=>a in s?E(s,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[a]=t,b=(s,a)=>{for(var t in a||(a={}))U.call(a,t)&&B(s,t,a[t]);if(D)for(var t of D(a))O.call(a,t)&&B(s,t,a[t]);return s},I=(s,a)=>G(s,L(a));import{aN as P,G as R,J as z,B as _,k as h,L as f,M as k,Q as A,T as F,r as c,o as w,e as J,f as i,w as m,u as e,l as V,h as S,i as q,t as x,m as Q,U as H}from"./vendor.01d0adc5.js";import{u as K}from"./auth.77d12976.js";import"./main.832b14c7.js";const W=["onSubmit"],X={class:"flex items-center justify-between"},oe={setup(s){const a=P(),t=R(),l=K(),{t:g}=z();let p=_(!1);const u=_(!1),C=h(()=>u.value?"text":"password"),j=h(()=>({loginData:{email:{required:f.withMessage(g("validation.required"),k),email:f.withMessage(g("validation.email_incorrect"),A)},password:{required:f.withMessage(g("validation.required"),k)}}})),r=F(j,l);async function M(){if(r.value.loginData.$touch(),r.value.loginData.$invalid)return!0;p.value=!0;let d=I(b({},l.loginData),{company:t.params.company});try{return await l.login(d),p.value=!1,a.push({name:"customer.dashboard"});l.$reset()}catch{p.value=!1}}return(d,o)=>{const $=c("BaseInput"),y=c("BaseInputGroup"),v=c("BaseIcon"),N=c("router-link"),T=c("BaseButton");return w(),J("form",{id:"loginForm",class:"space-y-6",action:"#",method:"POST",onSubmit:H(M,["prevent"])},[i(y,{error:e(r).loginData.email.$error&&e(r).loginData.email.$errors[0].$message,label:d.$t("login.email"),class:"mb-4",required:""},{default:m(()=>[i($,{modelValue:e(l).loginData.email,"onUpdate:modelValue":o[0]||(o[0]=n=>e(l).loginData.email=n),type:"email",invalid:e(r).loginData.email.$error,onInput:o[1]||(o[1]=n=>e(r).loginData.email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),i(y,{error:e(r).loginData.password.$error&&e(r).loginData.password.$errors[0].$message,label:d.$t("login.password"),class:"mb-4",required:""},{default:m(()=>[i($,{modelValue:e(l).loginData.password,"onUpdate:modelValue":o[4]||(o[4]=n=>e(l).loginData.password=n),type:e(C),invalid:e(r).loginData.password.$error,onInput:o[5]||(o[5]=n=>e(r).loginData.password.$touch())},{right:m(()=>[u.value?(w(),V(v,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[2]||(o[2]=n=>u.value=!u.value)})):(w(),V(v,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[3]||(o[3]=n=>u.value=!u.value)}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["error","label"]),S("div",X,[i(N,{to:{name:"customer.forgot-password"},class:"text-sm text-primary-600 hover:text-gray-500"},{default:m(()=>[q(x(d.$t("login.forgot_password")),1)]),_:1},8,["to"])]),S("div",null,[i(T,{loading:e(p),disabled:e(p),type:"submit",class:"w-full justify-center"},{left:m(n=>[i(v,{name:"LockClosedIcon",class:Q(n.class)},null,8,["class"])]),default:m(()=>[q(" "+x(d.$t("login.login")),1)]),_:1},8,["loading","disabled"])])],40,W)}}};export{oe as default};
import{J as j,B as G,a0 as Q,k as B,L as f,M as C,aT as R,Q as A,T as P,D as L,r as c,o as q,e as O,f as l,w as s,u as e,l as V,x as T,h as F,m as z,j as E,i as S,t as k,g as J,U as N,S as X,aj as Z,F as ee}from"./vendor.01d0adc5.js";import{u as x}from"./mail-driver.1b5e2a8f.js";import{c as H}from"./main.832b14c7.js";const ie=["onSubmit"],ne={class:"flex my-10"},K={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j();let m=G(!1);const b=Q(["tls","ssl","starttls"]),w=B(()=>m.value?"text":"password"),t=B(()=>({smtpConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},mail_host:{required:f.withMessage(u("validation.required"),C)},mail_port:{required:f.withMessage(u("validation.required"),C),numeric:f.withMessage(u("validation.numbers_only"),R)},mail_encryption:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:f.withMessage(u("validation.email_incorrect"),A)},from_name:{required:f.withMessage(u("validation.required"),C)}}})),d=P(t,B(()=>i));L(()=>{for(const o in i.smtpConfig)$.configData.hasOwnProperty(o)&&(i.smtpConfig[o]=$.configData[o])});async function I(){return d.value.smtpConfig.$touch(),d.value.smtpConfig.$invalid||D("submit-data",i.smtpConfig),!1}function g(){d.value.smtpConfig.mail_driver.$touch(),D("on-change-driver",i.smtpConfig.mail_driver)}return(o,n)=>{const M=c("BaseMultiselect"),v=c("BaseInputGroup"),y=c("BaseInput"),_=c("BaseIcon"),U=c("BaseInputGrid"),p=c("BaseButton");return q(),O("form",{onSubmit:N(I,["prevent"])},[l(U,null,{default:s(()=>[l(v,{label:o.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_driver.$error&&e(d).smtpConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).smtpConfig.mail_driver,"onUpdate:modelValue":[n[0]||(n[0]=r=>e(i).smtpConfig.mail_driver=r),g],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(d).smtpConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.host"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_host.$error&&e(d).smtpConfig.mail_host.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_host,"onUpdate:modelValue":n[1]||(n[1]=r=>e(i).smtpConfig.mail_host=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_host",invalid:e(d).smtpConfig.mail_host.$error,onInput:n[2]||(n[2]=r=>e(d).smtpConfig.mail_host.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{"content-loading":a.isFetchingInitialData,label:o.$t("settings.mail.username")},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_username,"onUpdate:modelValue":n[3]||(n[3]=r=>e(i).smtpConfig.mail_username=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"db_name"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),l(v,{"content-loading":a.isFetchingInitialData,label:o.$t("settings.mail.password")},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_password,"onUpdate:modelValue":n[6]||(n[6]=r=>e(i).smtpConfig.mail_password=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:e(w),name:"password"},{right:s(()=>[e(m)?(q(),V(_,{key:0,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeOffIcon",onClick:n[4]||(n[4]=r=>T(m)?m.value=!e(m):m=!e(m))})):(q(),V(_,{key:1,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeIcon",onClick:n[5]||(n[5]=r=>T(m)?m.value=!e(m):m=!e(m))}))]),_:1},8,["modelValue","content-loading","type"])]),_:1},8,["content-loading","label"]),l(v,{label:o.$t("settings.mail.port"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_port.$error&&e(d).smtpConfig.mail_port.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_port,"onUpdate:modelValue":n[7]||(n[7]=r=>e(i).smtpConfig.mail_port=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_port",invalid:e(d).smtpConfig.mail_port.$error,onInput:n[8]||(n[8]=r=>e(d).smtpConfig.mail_port.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.encryption"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_encryption.$error&&e(d).smtpConfig.mail_encryption.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).smtpConfig.mail_encryption,"onUpdate:modelValue":n[9]||(n[9]=r=>e(i).smtpConfig.mail_encryption=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,options:e(b),searchable:!0,"show-labels":!1,placeholder:"Select option",invalid:e(d).smtpConfig.mail_encryption.$error,onInput:n[10]||(n[10]=r=>e(d).smtpConfig.mail_encryption.$touch())},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.from_mail.$error&&e(d).smtpConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.from_mail,"onUpdate:modelValue":n[11]||(n[11]=r=>e(i).smtpConfig.from_mail=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(d).smtpConfig.from_mail.$error,onInput:n[12]||(n[12]=r=>e(d).smtpConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.from_name.$error&&e(d).smtpConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.from_name,"onUpdate:modelValue":n[13]||(n[13]=r=>e(i).smtpConfig.from_name=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_name",invalid:e(d).smtpConfig.from_name.$error,onInput:n[14]||(n[14]=r=>e(d).smtpConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",ne,[l(p,{disabled:a.isSaving,"content-loading":a.isFetchingInitialData,loading:a.isSaving,type:"submit",variant:"primary"},{left:s(r=>[a.isSaving?E("",!0):(q(),V(_,{key:0,name:"SaveIcon",class:z(r.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(o.$t("general.save")),1)]),_:1},8,["disabled","content-loading","loading"]),J(o.$slots,"default")])],40,ie)}}},te=["onSubmit"],ae={class:"flex my-10"},oe={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j();let m=G(!1);const b=B(()=>m.value?"text":"password"),w=B(()=>({mailgunConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},mail_mailgun_domain:{required:f.withMessage(u("validation.required"),C)},mail_mailgun_endpoint:{required:f.withMessage(u("validation.required"),C)},mail_mailgun_secret:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:A},from_name:{required:f.withMessage(u("validation.required"),C)}}})),t=P(w,B(()=>i));L(()=>{for(const g in i.mailgunConfig)$.configData.hasOwnProperty(g)&&(i.mailgunConfig[g]=$.configData[g])});async function d(){return t.value.mailgunConfig.$touch(),t.value.mailgunConfig.$invalid||D("submit-data",i.mailgunConfig),!1}function I(){t.value.mailgunConfig.mail_driver.$touch(),D("on-change-driver",i.mailgunConfig.mail_driver)}return(g,o)=>{const n=c("BaseMultiselect"),M=c("BaseInputGroup"),v=c("BaseInput"),y=c("BaseIcon"),_=c("BaseInputGrid"),U=c("BaseButton");return q(),O("form",{onSubmit:N(d,["prevent"])},[l(_,null,{default:s(()=>[l(M,{label:g.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_driver.$error&&e(t).mailgunConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(n,{modelValue:e(i).mailgunConfig.mail_driver,"onUpdate:modelValue":[o[0]||(o[0]=p=>e(i).mailgunConfig.mail_driver=p),I],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(t).mailgunConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.mailgun_domain"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_mailgun_domain.$error&&e(t).mailgunConfig.mail_mailgun_domain.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.mail_mailgun_domain,"onUpdate:modelValue":o[1]||(o[1]=p=>e(i).mailgunConfig.mail_mailgun_domain=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mailgun_domain",invalid:e(t).mailgunConfig.mail_mailgun_domain.$error,onInput:o[2]||(o[2]=p=>e(t).mailgunConfig.mail_mailgun_domain.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.mailgun_secret"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_mailgun_secret.$error&&e(t).mailgunConfig.mail_mailgun_secret.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.mail_mailgun_secret,"onUpdate:modelValue":o[5]||(o[5]=p=>e(i).mailgunConfig.mail_mailgun_secret=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:e(b),name:"mailgun_secret",autocomplete:"off",invalid:e(t).mailgunConfig.mail_mailgun_secret.$error,onInput:o[6]||(o[6]=p=>e(t).mailgunConfig.mail_mailgun_secret.$touch())},{right:s(()=>[e(m)?(q(),V(y,{key:0,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeOffIcon",onClick:o[3]||(o[3]=p=>T(m)?m.value=!e(m):m=!e(m))})):(q(),V(y,{key:1,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeIcon",onClick:o[4]||(o[4]=p=>T(m)?m.value=!e(m):m=!e(m))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.mailgun_endpoint"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_mailgun_endpoint.$error&&e(t).mailgunConfig.mail_mailgun_endpoint.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.mail_mailgun_endpoint,"onUpdate:modelValue":o[7]||(o[7]=p=>e(i).mailgunConfig.mail_mailgun_endpoint=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mailgun_endpoint",invalid:e(t).mailgunConfig.mail_mailgun_endpoint.$error,onInput:o[8]||(o[8]=p=>e(t).mailgunConfig.mail_mailgun_endpoint.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.from_mail.$error&&e(t).mailgunConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.from_mail,"onUpdate:modelValue":o[9]||(o[9]=p=>e(i).mailgunConfig.from_mail=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(t).mailgunConfig.from_mail.$error,onInput:o[10]||(o[10]=p=>e(t).mailgunConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.from_name.$error&&e(t).mailgunConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.from_name,"onUpdate:modelValue":o[11]||(o[11]=p=>e(i).mailgunConfig.from_name=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_name",invalid:e(t).mailgunConfig.from_name.$error,onInput:o[12]||(o[12]=p=>e(t).mailgunConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",ae,[l(U,{disabled:a.isSaving,"content-loading":a.isFetchingInitialData,loading:a.isSaving,variant:"primary",type:"submit"},{left:s(p=>[a.isSaving?E("",!0):(q(),V(y,{key:0,name:"SaveIcon",class:z(p.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(g.$t("general.save")),1)]),_:1},8,["disabled","content-loading","loading"]),J(g.$slots,"default")])],40,te)}}},le=["onSubmit"],re={class:"flex my-10"},se={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j();let m=G(!1);const b=Q(["tls","ssl","starttls"]),w=B(()=>({sesConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},mail_host:{required:f.withMessage(u("validation.required"),C)},mail_port:{required:f.withMessage(u("validation.required"),C),numeric:R},mail_ses_key:{required:f.withMessage(u("validation.required"),C)},mail_ses_secret:{required:f.withMessage(u("validation.required"),C)},mail_encryption:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:f.withMessage(u("validation.email_incorrect"),A)},from_name:{required:f.withMessage(u("validation.required"),C)}}})),t=P(w,B(()=>i)),d=B(()=>m.value?"text":"password");L(()=>{for(const o in i.sesConfig)$.configData.hasOwnProperty(o)&&(i.sesConfig[o]=$.configData[o])});async function I(){return t.value.sesConfig.$touch(),t.value.sesConfig.$invalid||D("submit-data",i.sesConfig),!1}function g(){t.value.sesConfig.mail_driver.$touch(),D("on-change-driver",i.sesConfig.mail_driver)}return(o,n)=>{const M=c("BaseMultiselect"),v=c("BaseInputGroup"),y=c("BaseInput"),_=c("BaseIcon"),U=c("BaseInputGrid"),p=c("BaseButton");return q(),O("form",{onSubmit:N(I,["prevent"])},[l(U,null,{default:s(()=>[l(v,{label:o.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_driver.$error&&e(t).sesConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).sesConfig.mail_driver,"onUpdate:modelValue":[n[0]||(n[0]=r=>e(i).sesConfig.mail_driver=r),g],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(t).sesConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.host"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_host.$error&&e(t).sesConfig.mail_host.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_host,"onUpdate:modelValue":n[1]||(n[1]=r=>e(i).sesConfig.mail_host=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_host",invalid:e(t).sesConfig.mail_host.$error,onInput:n[2]||(n[2]=r=>e(t).sesConfig.mail_host.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.port"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_port.$error&&e(t).sesConfig.mail_port.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_port,"onUpdate:modelValue":n[3]||(n[3]=r=>e(i).sesConfig.mail_port=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_port",invalid:e(t).sesConfig.mail_port.$error,onInput:n[4]||(n[4]=r=>e(t).sesConfig.mail_port.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.encryption"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_encryption.$error&&e(t).sesConfig.mail_encryption.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).sesConfig.mail_encryption,"onUpdate:modelValue":n[5]||(n[5]=r=>e(i).sesConfig.mail_encryption=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,options:e(b),invalid:e(t).sesConfig.mail_encryption.$error,placeholder:"Select option",onInput:n[6]||(n[6]=r=>e(t).sesConfig.mail_encryption.$touch())},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.from_mail.$error&&e(t).sesConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.from_mail,"onUpdate:modelValue":n[7]||(n[7]=r=>e(i).sesConfig.from_mail=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(t).sesConfig.from_mail.$error,onInput:n[8]||(n[8]=r=>e(t).sesConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.from_name.$error&&e(t).sesConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.from_name,"onUpdate:modelValue":n[9]||(n[9]=r=>e(i).sesConfig.from_name=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"name",invalid:e(t).sesConfig.from_name.$error,onInput:n[10]||(n[10]=r=>e(t).sesConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.ses_key"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_ses_key.$error&&e(t).sesConfig.mail_ses_key.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_ses_key,"onUpdate:modelValue":n[11]||(n[11]=r=>e(i).sesConfig.mail_ses_key=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_ses_key",invalid:e(t).sesConfig.mail_ses_key.$error,onInput:n[12]||(n[12]=r=>e(t).sesConfig.mail_ses_key.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.ses_secret"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_ses_secret.$error&&e(t).mail_ses_secret.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_ses_secret,"onUpdate:modelValue":n[15]||(n[15]=r=>e(i).sesConfig.mail_ses_secret=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:e(d),name:"mail_ses_secret",autocomplete:"off",invalid:e(t).sesConfig.mail_ses_secret.$error,onInput:n[16]||(n[16]=r=>e(t).sesConfig.mail_ses_secret.$touch())},{right:s(()=>[e(m)?(q(),V(_,{key:0,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeOffIcon",onClick:n[13]||(n[13]=r=>T(m)?m.value=!e(m):m=!e(m))})):(q(),V(_,{key:1,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeIcon",onClick:n[14]||(n[14]=r=>T(m)?m.value=!e(m):m=!e(m))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",re,[l(p,{disabled:a.isSaving,"content-loading":a.isFetchingInitialData,loading:a.isSaving,variant:"primary",type:"submit"},{left:s(r=>[a.isSaving?E("",!0):(q(),V(_,{key:0,name:"SaveIcon",class:z(r.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(o.$t("general.save")),1)]),_:1},8,["disabled","content-loading","loading"]),J(o.$slots,"default")])],40,le)}}},me=["onSubmit"],de={class:"flex mt-8"},W={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j(),m=B(()=>({basicMailConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:f.withMessage(u("validation.email_incorrect"),A)},from_name:{required:f.withMessage(u("validation.required"),C)}}})),b=P(m,B(()=>i));L(()=>{for(const d in i.basicMailConfig)$.configData.hasOwnProperty(d)&&i.$patch(I=>{I.basicMailConfig[d]=$.configData[d]})});async function w(){return b.value.basicMailConfig.$touch(),b.value.basicMailConfig.$invalid||D("submit-data",i.basicMailConfig),!1}function t(){b.value.basicMailConfig.mail_driver.$touch(),D("on-change-driver",i.basicMailConfig.mail_driver)}return(d,I)=>{const g=c("BaseMultiselect"),o=c("BaseInputGroup"),n=c("BaseInput"),M=c("BaseInputGrid"),v=c("BaseIcon"),y=c("BaseButton");return q(),O("form",{onSubmit:N(w,["prevent"])},[l(M,null,{default:s(()=>[l(o,{label:d.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(b).basicMailConfig.mail_driver.$error&&e(b).basicMailConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(g,{modelValue:e(i).basicMailConfig.mail_driver,"onUpdate:modelValue":[I[0]||(I[0]=_=>e(i).basicMailConfig.mail_driver=_),t],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(b).basicMailConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(o,{label:d.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(b).basicMailConfig.from_mail.$error&&e(b).basicMailConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(n,{modelValue:e(i).basicMailConfig.from_mail,"onUpdate:modelValue":I[1]||(I[1]=_=>e(i).basicMailConfig.from_mail=_),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(b).basicMailConfig.from_mail.$error,onInput:I[2]||(I[2]=_=>e(b).basicMailConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(o,{label:d.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(b).basicMailConfig.from_name.$error&&e(b).basicMailConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(n,{modelValue:e(i).basicMailConfig.from_name,"onUpdate:modelValue":I[3]||(I[3]=_=>e(i).basicMailConfig.from_name=_),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"name",invalid:e(b).basicMailConfig.from_name.$error,onInput:I[4]||(I[4]=_=>e(b).basicMailConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",de,[l(y,{"content-loading":a.isFetchingInitialData,disabled:a.isSaving,loading:a.isSaving,variant:"primary",type:"submit"},{left:s(_=>[a.isSaving?E("",!0):(q(),V(v,{key:0,class:z(_.class),name:"SaveIcon"},null,8,["class"]))]),default:s(()=>[S(" "+k(d.$t("general.save")),1)]),_:1},8,["content-loading","disabled","loading"]),J(d.$slots,"default")])],40,me)}}},ue={class:"flex justify-between w-full"},ge=["onSubmit"],fe={class:"p-4 md:p-8"},ce={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ve={setup(a){let D=G(!1),$=Q({to:"",subject:"",message:""});const i=H(),u=x(),{t:m}=j(),b=B(()=>i.active&&i.componentName==="MailTestModal"),w={formData:{to:{required:f.withMessage(m("validation.required"),C),email:f.withMessage(m("validation.email_incorrect"),A)},subject:{required:f.withMessage(m("validation.required"),C),maxLength:f.withMessage(m("validation.subject_maxlength"),X(100))},message:{required:f.withMessage(m("validation.required"),C),maxLength:f.withMessage(m("validation.message_maxlength"),X(255))}}},t=P(w,{formData:$});function d(){$.id="",$.to="",$.subject="",$.message="",t.value.$reset()}async function I(){if(t.value.formData.$touch(),t.value.$invalid)return!0;D.value=!0,(await u.sendTestMail($)).data&&(g(),D.value=!1)}function g(){i.closeModal(),setTimeout(()=>{i.resetModalData(),d()},300)}return(o,n)=>{const M=c("BaseIcon"),v=c("BaseInput"),y=c("BaseInputGroup"),_=c("BaseTextarea"),U=c("BaseInputGrid"),p=c("BaseButton"),r=c("BaseModal");return q(),V(r,{show:e(b),onClose:g},{header:s(()=>[F("div",ue,[S(k(e(i).title)+" ",1),l(M,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:g})])]),default:s(()=>[F("form",{action:"",onSubmit:N(I,["prevent"])},[F("div",fe,[l(U,{layout:"one-column"},{default:s(()=>[l(y,{label:o.$t("general.to"),error:e(t).formData.to.$error&&e(t).formData.to.$errors[0].$message,variant:"horizontal",required:""},{default:s(()=>[l(v,{ref:(h,Y)=>{Y.to=h},modelValue:e($).to,"onUpdate:modelValue":n[0]||(n[0]=h=>e($).to=h),type:"text",invalid:e(t).formData.to.$error,onInput:n[1]||(n[1]=h=>e(t).formData.to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),l(y,{label:o.$t("general.subject"),error:e(t).formData.subject.$error&&e(t).formData.subject.$errors[0].$message,variant:"horizontal",required:""},{default:s(()=>[l(v,{modelValue:e($).subject,"onUpdate:modelValue":n[2]||(n[2]=h=>e($).subject=h),type:"text",invalid:e(t).formData.subject.$error,onInput:n[3]||(n[3]=h=>e(t).formData.subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),l(y,{label:o.$t("general.message"),error:e(t).formData.message.$error&&e(t).formData.message.$errors[0].$message,variant:"horizontal",required:""},{default:s(()=>[l(_,{modelValue:e($).message,"onUpdate:modelValue":n[4]||(n[4]=h=>e($).message=h),rows:"4",cols:"50",invalid:e(t).formData.message.$error,onInput:n[5]||(n[5]=h=>e(t).formData.message.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),F("div",ce,[l(p,{variant:"primary-outline",type:"button",class:"mr-3",onClick:n[6]||(n[6]=h=>g())},{default:s(()=>[S(k(o.$t("general.cancel")),1)]),_:1}),l(p,{loading:e(D),variant:"primary",type:"submit"},{left:s(h=>[e(D)?E("",!0):(q(),V(M,{key:0,name:"PaperAirplaneIcon",class:z(h.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(o.$t("general.send")),1)]),_:1},8,["loading"])])],40,ge)]),_:1},8,["show"])}}},$e={key:0,class:"mt-14"},ye={setup(a){let D=G(!1),$=G(!1);const i=x(),u=H(),{t:m}=j();w();function b(g){i.mail_driver=g,i.mailConfigData.mail_driver=g}async function w(){$.value=!0,Promise.all([await i.fetchMailDrivers(),await i.fetchMailConfig()]).then(([g])=>{$.value=!1})}const t=B(()=>i.mail_driver=="smtp"?K:i.mail_driver=="mailgun"?oe:i.mail_driver=="sendmail"?W:i.mail_driver=="ses"?se:i.mail_driver=="mail"?W:K);async function d(g){try{return D.value=!0,await i.updateMailConfig(g),D.value=!1,!0}catch(o){console.error(o)}}function I(){u.openModal({title:m("general.test_mail_conf"),componentName:"MailTestModal",size:"sm"})}return(g,o)=>{const n=c("BaseButton"),M=c("BaseSettingCard");return q(),O(ee,null,[l(ve),l(M,{title:g.$t("settings.mail.mail_config"),description:g.$t("settings.mail.mail_config_desc")},{default:s(()=>[e(i)&&e(i).mailConfigData?(q(),O("div",$e,[(q(),V(Z(e(t)),{"config-data":e(i).mailConfigData,"is-saving":e(D),"mail-drivers":e(i).mail_drivers,"is-fetching-initial-data":e($),onOnChangeDriver:o[0]||(o[0]=v=>b(v)),onSubmitData:d},{default:s(()=>[l(n,{variant:"primary-outline",type:"button",class:"ml-2","content-loading":e($),onClick:I},{default:s(()=>[S(k(g.$t("general.test_mail_conf")),1)]),_:1},8,["content-loading"])]),_:1},8,["config-data","is-saving","mail-drivers","is-fetching-initial-data"]))])):E("",!0)]),_:1},8,["title","description"])],64)}}};export{ye as default};
var O=Object.defineProperty;var E=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var x=(d,s,a)=>s in d?O(d,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[s]=a,z=(d,s)=>{for(var a in s||(s={}))R.call(s,a)&&x(d,a,s[a]);if(E)for(var a of E(s))X.call(s,a)&&x(d,a,s[a]);return d};import{a as g,d as H,G as K,J as Q,B as k,a0 as W,k as S,L as w,M as b,N as Y,T as Z,C as ee,D as te,r as f,o as ae,l as oe,w as p,h as I,i as C,t as M,u as o,f as c,m as ne,U as se}from"./vendor.01d0adc5.js";import{h as $,c as re,u as ie,i as ue,k as le}from"./main.832b14c7.js";import{u as ce}from"./payment.372edbf1.js";const de=(d=!1)=>(d?window.pinia.defineStore:H)({id:"notes",state:()=>({notes:[],currentNote:{id:null,type:"",name:"",notes:""}}),getters:{isEdit:a=>!!a.currentNote.id},actions:{resetCurrentNote(){this.currentNote={type:"",name:"",notes:""}},fetchNotes(a){return new Promise((e,l)=>{g.get("/api/v1/notes",{params:a}).then(t=>{this.notes=t.data.data,e(t)}).catch(t=>{$(t),l(t)})})},fetchNote(a){return new Promise((e,l)=>{g.get(`/api/v1/notes/${a}`).then(t=>{this.currentNote=t.data.data,e(t)}).catch(t=>{$(t),l(t)})})},addNote(a){return new Promise((e,l)=>{g.post("/api/v1/notes",a).then(t=>{this.notes.push(t.data),e(t)}).catch(t=>{$(t),l(t)})})},updateNote(a){return new Promise((e,l)=>{g.put(`/api/v1/notes/${a.id}`,a).then(t=>{if(t.data){let y=this.notes.findIndex(u=>u.id===t.data.data.id);this.notes[y]=a.notes}e(t)}).catch(t=>{$(t),l(t)})})},deleteNote(a){return new Promise((e,l)=>{g.delete(`/api/v1/notes/${a}`).then(t=>{let y=this.notes.findIndex(u=>u.id===a);this.notes.splice(y,1),e(t)}).catch(t=>{$(t),l(t)})})}}})();const me={class:"flex justify-between w-full"},pe=["onSubmit"],fe={class:"px-8 py-8 sm:p-6"},ve={class:"z-0 flex justify-end px-4 py-4 border-t border-solid border-gray-light"},ge={setup(d){const s=re(),a=ie(),e=de(),l=ue(),t=ce(),y=le(),u=K(),{t:N}=Q();let v=k(!1);const D=W(["Invoice","Estimate","Payment"]);let h=k(["customer","customerCustom"]);const j=S(()=>s.active&&s.componentName==="NoteModal"),G=S(()=>({currentNote:{name:{required:w.withMessage(N("validation.required"),b),minLength:w.withMessage(N("validation.name_min_length",{count:3}),Y(3))},notes:{required:w.withMessage(N("validation.required"),b)},type:{required:w.withMessage(N("validation.required"),b)}}})),r=Z(G,S(()=>e));ee(()=>e.currentNote.type,n=>{V()}),te(()=>{u.name==="estimates.create"?e.currentNote.type="Estimate":u.name==="invoices.create"?e.currentNote.type="Invoice":e.currentNote.type="Payment"});function V(){h.value=["customer","customerCustom"],e.currentNote.type=="Invoice"&&h.value.push("invoice","invoiceCustom"),e.currentNote.type=="Estimate"&&h.value.push("estimate","estimateCustom"),e.currentNote.type=="Payment"&&h.value.push("payment","paymentCustom")}async function U(){if(r.value.currentNote.$touch(),r.value.currentNote.$invalid)return!0;if(v.value=!0,e.isEdit){let n=z({id:e.currentNote.id},e.currentNote);await e.updateNote(n).then(i=>{v.value=!1,i.data&&(a.showNotification({type:"success",message:N("settings.customization.notes.note_updated")}),s.refreshData&&s.refreshData(),_())}).catch(i=>{v.value=!1})}else await e.addNote(e.currentNote).then(n=>{v.value=!1,n.data&&(a.showNotification({type:"success",message:N("settings.customization.notes.note_added")}),(u.name==="invoices.create"&&n.data.data.type==="Invoice"||u.name==="invoices.edit"&&n.data.data.type==="Invoice")&&l.selectNote(n.data.data),(u.name==="estimates.create"&&n.data.data.type==="Estimate"||u.name==="estimates.edit"&&n.data.data.type==="Estimate")&&y.selectNote(n.data.data),(u.name==="payments.create"&&n.data.data.type==="Payment"||u.name==="payments.edit"&&n.data.data.type==="Payment")&&t.selectNote(n.data.data)),s.refreshData&&s.refreshData(),_()}).catch(n=>{v.value=!1})}function _(){s.closeModal(),setTimeout(()=>{e.resetCurrentNote(),r.value.$reset()},300)}return(n,i)=>{const P=f("BaseIcon"),F=f("BaseInput"),B=f("BaseInputGroup"),L=f("BaseMultiselect"),T=f("BaseCustomInput"),A=f("BaseInputGrid"),q=f("BaseButton"),J=f("BaseModal");return ae(),oe(J,{show:o(j),onClose:_,onOpen:V},{header:p(()=>[I("div",me,[C(M(o(s).title)+" ",1),c(P,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:_})])]),default:p(()=>[I("form",{action:"",onSubmit:se(U,["prevent"])},[I("div",fe,[c(A,{layout:"one-column"},{default:p(()=>[c(B,{label:n.$t("settings.customization.notes.name"),variant:"vertical",error:o(r).currentNote.name.$error&&o(r).currentNote.name.$errors[0].$message,required:""},{default:p(()=>[c(F,{modelValue:o(e).currentNote.name,"onUpdate:modelValue":i[0]||(i[0]=m=>o(e).currentNote.name=m),invalid:o(r).currentNote.name.$error,type:"text",onInput:i[1]||(i[1]=m=>o(r).currentNote.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),c(B,{label:n.$t("settings.customization.notes.type"),error:o(r).currentNote.type.$error&&o(r).currentNote.type.$errors[0].$message,required:""},{default:p(()=>[c(L,{modelValue:o(e).currentNote.type,"onUpdate:modelValue":i[2]||(i[2]=m=>o(e).currentNote.type=m),options:o(D),"value-prop":"type",class:"mt-2"},null,8,["modelValue","options"])]),_:1},8,["label","error"]),c(B,{label:n.$t("settings.customization.notes.notes"),error:o(r).currentNote.notes.$error&&o(r).currentNote.notes.$errors[0].$message,required:""},{default:p(()=>[c(T,{modelValue:o(e).currentNote.notes,"onUpdate:modelValue":i[3]||(i[3]=m=>o(e).currentNote.notes=m),invalid:o(r).currentNote.notes.$error,fields:o(h),onInput:i[4]||(i[4]=m=>o(r).currentNote.notes.$touch())},null,8,["modelValue","invalid","fields"])]),_:1},8,["label","error"])]),_:1})]),I("div",ve,[c(q,{class:"mr-2",variant:"primary-outline",type:"button",onClick:_},{default:p(()=>[C(M(n.$t("general.cancel")),1)]),_:1}),c(q,{loading:o(v),disabled:o(v),variant:"primary",type:"submit"},{left:p(m=>[c(P,{name:"SaveIcon",class:ne(m.class)},null,8,["class"])]),default:p(()=>[C(" "+M(o(e).isEdit?n.$t("general.update"):n.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,pe)]),_:1},8,["show"])}}};export{ge as _,de as u};
import{J as k,G as $,ah as T,r,o as p,l as f,w as t,u as c,f as u,i as S,t as z,j as C,B as E,k as O,e as F,m as G,F as P,a0 as V}from"./vendor.01d0adc5.js";import{j as x,u as I,e as M,c as j,g as D}from"./main.832b14c7.js";import{u as A,_ as H}from"./NoteModal.a07ce50b.js";import"./payment.372edbf1.js";const L={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(g){const d=g,h=x(),_=I(),{t:a}=k(),o=A(),N=$(),y=M(),b=j();T("utils");function w(n){o.fetchNote(n),b.openModal({title:a("settings.customization.notes.edit_note"),componentName:"NoteModal",size:"md",refreshData:d.loadData})}function s(n){h.openDialog({title:a("general.are_you_sure"),message:a("settings.customization.notes.note_confirm_delete"),yesLabel:a("general.yes"),noLabel:a("general.no"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async()=>{(await o.deleteNote(n)).data.success?_.showNotification({type:"success",message:a("settings.customization.notes.deleted_message")}):_.showNotification({type:"error",message:a("settings.customization.notes.already_in_use")}),d.loadData&&d.loadData()})}return(n,e)=>{const i=r("BaseIcon"),m=r("BaseButton"),B=r("BaseDropdownItem"),l=r("BaseDropdown");return p(),f(l,null,{activator:t(()=>[c(N).name==="notes.view"?(p(),f(m,{key:0,variant:"primary"},{default:t(()=>[u(i,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),f(i,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[c(y).hasAbilities(c(D).MANAGE_NOTE)?(p(),f(B,{key:0,onClick:e[0]||(e[0]=v=>w(g.row.id))},{default:t(()=>[u(i,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),S(" "+z(n.$t("general.edit")),1)]),_:1})):C("",!0),c(y).hasAbilities(c(D).MANAGE_NOTE)?(p(),f(B,{key:1,onClick:e[1]||(e[1]=v=>s(g.row.id))},{default:t(()=>[u(i,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),S(" "+z(n.$t("general.delete")),1)]),_:1})):C("",!0)]),_:1})}}},K={setup(g){const{t:d}=k(),h=j();x();const _=A();I();const a=M(),o=E(""),N=O(()=>[{key:"name",label:d("settings.customization.notes.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"type",label:d("settings.customization.notes.type"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function y({page:s,filter:n,sort:e}){let i=V({orderByField:e.fieldName||"created_at",orderBy:e.order||"desc",page:s}),m=await _.fetchNotes(i);return{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:s,totalCount:m.data.meta.total,limit:5}}}async function b(){await h.openModal({title:d("settings.customization.notes.add_note"),componentName:"NoteModal",size:"md",refreshData:o.value&&o.value.refresh})}async function w(){o.value&&o.value.refresh()}return(s,n)=>{const e=r("BaseIcon"),i=r("BaseButton"),m=r("BaseTable"),B=r("BaseSettingCard");return p(),F(P,null,[u(H),u(B,{title:s.$t("settings.customization.notes.title"),description:s.$t("settings.customization.notes.description")},{action:t(()=>[c(a).hasAbilities(c(D).MANAGE_NOTE)?(p(),f(i,{key:0,variant:"primary-outline",onClick:b},{left:t(l=>[u(e,{class:G(l.class),name:"PlusIcon"},null,8,["class"])]),default:t(()=>[S(" "+z(s.$t("settings.customization.notes.add_note")),1)]),_:1})):C("",!0)]),default:t(()=>[u(m,{ref:(l,v)=>{v.table=l,o.value=l},data:y,columns:c(N),class:"mt-14"},{"cell-actions":t(({row:l})=>[u(L,{row:l.data,table:o.value,"load-data":w},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{K as default};
import{B as w,k as d,D as g,o as a,e as c,h as t,u as e,j as m,m as u,t as p,U as y,r as k,f as N,w as C,F as M,y as z,l as B,aM as L}from"./vendor.01d0adc5.js";import{u as v,_ as b}from"./main.832b14c7.js";const S=["onClick"],$={class:"overflow-hidden rounded-lg shadow-xs"},j={class:"p-4"},T={class:"flex items-start"},O={class:"shrink-0"},V={key:0,class:"w-6 h-6 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},I=t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),D=[I],E={key:1,class:"w-6 h-6 text-blue-400",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},F=t("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"},null,-1),A=[F],G={key:2,class:"w-6 h-6 text-red-400",fill:"currentColor",viewBox:"0 0 24 24"},R=t("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1),U=[R],q={class:"flex-1 w-0 ml-3 text-left"},H={class:"flex shrink-0"},J=t("svg",{class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),K=[J],P={props:{notification:{type:Object,default:null}},setup(o){const i=o,f=v();let l=w("");const s=d(()=>i.notification.type=="success"),h=d(()=>i.notification.type=="error"),n=d(()=>i.notification.type=="info");function r(){f.hideNotification(i.notification)}function x(){clearTimeout(l)}function _(){l=setTimeout(()=>{f.hideNotification(i.notification)},i.notification.time||5e3)}return g(()=>{_()}),(Y,Z)=>(a(),c("div",{class:u([e(s)||e(n)?"bg-white":"bg-red-50","max-w-sm mb-3 rounded-lg shadow-lg cursor-pointer pointer-events-auto w-full md:w-96"]),onClick:y(r,["stop"]),onMouseenter:x,onMouseleave:_},[t("div",$,[t("div",j,[t("div",T,[t("div",O,[e(s)?(a(),c("svg",V,D)):m("",!0),e(n)?(a(),c("svg",E,A)):m("",!0),e(h)?(a(),c("svg",G,U)):m("",!0)]),t("div",q,[t("p",{class:u(`text-sm leading-5 font-medium ${e(s)||e(n)?"text-gray-900":"text-red-800"}`)},p(o.notification.title?o.notification.title:e(s)?"Success!":"Error"),3),t("p",{class:u(`mt-1 text-sm leading-5 ${e(s)||e(n)?"text-gray-500":"text-red-700"}`)},p(o.notification.message?o.notification.message:e(s)?"Successful":"Somthing went wrong"),3)]),t("div",H,[t("button",{class:u([e(s)||e(n)?" text-gray-400 focus:text-gray-500":"text-red-400 focus:text-red-500","inline-flex w-5 h-5 transition duration-150 ease-in-out focus:outline-none"]),onClick:r},K,2)])])])])],42,S))}},Q={components:{NotificationItem:P},setup(){const o=v();return{notifications:d(()=>o.notifications)}}},W={class:"fixed inset-0 z-50 flex flex-col items-end justify-start w-full px-4 py-6 pointer-events-none sm:p-6"};function X(o,i,f,l,s,h){const n=k("NotificationItem");return a(),c("div",W,[N(L,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:C(()=>[(a(!0),c(M,null,z(l.notifications,r=>(a(),B(n,{key:r.id,notification:r},null,8,["notification"]))),128))]),_:1})])}var ot=b(Q,[["render",X]]);export{ot as N};
import{B as M,J as k,a0 as q,k as m,L as y,M as E,Q as F,T as U,r as o,o as w,l as S,w as u,h as v,f as d,u as i,m as Y,j,i as D,t as G,U as O,x as B}from"./vendor.01d0adc5.js";import{b as T}from"./main.832b14c7.js";const z=["onSubmit"],J={class:"grid-cols-2 col-span-1 mt-14"},L={class:"divide-y divide-gray-200"},H={setup(Q){const s=T();let r=M(!1);const{t:f}=k(),n=q({notify_invoice_viewed:s.selectedCompanySettings.notify_invoice_viewed,notify_estimate_viewed:s.selectedCompanySettings.notify_estimate_viewed,notification_email:s.selectedCompanySettings.notification_email}),$=m(()=>({notification_email:{required:y.withMessage(f("validation.required"),E),email:y.withMessage(f("validation.email_incorrect"),F)}})),l=U($,m(()=>n)),_=m({get:()=>n.notify_invoice_viewed==="YES",set:async e=>{const t=e?"YES":"NO";let c={settings:{notify_invoice_viewed:t}};n.notify_invoice_viewed=t,await s.updateCompanySettings({data:c,message:"general.setting_updated"})}}),p=m({get:()=>n.notify_estimate_viewed==="YES",set:async e=>{const t=e?"YES":"NO";let c={settings:{notify_estimate_viewed:t}};n.notify_estimate_viewed=t,await s.updateCompanySettings({data:c,message:"general.setting_updated"})}});async function V(){if(l.value.$touch(),l.value.$invalid)return!0;r.value=!0;const e={settings:{notification_email:n.notification_email}};await s.updateCompanySettings({data:e,message:"settings.notification.email_save_message"}),r.value=!1}return(e,t)=>{const c=o("BaseInput"),C=o("BaseInputGroup"),b=o("BaseIcon"),I=o("BaseButton"),N=o("BaseDivider"),g=o("BaseSwitchSection"),h=o("BaseSettingCard");return w(),S(h,{title:e.$t("settings.notification.title"),description:e.$t("settings.notification.description")},{default:u(()=>[v("form",{action:"",onSubmit:O(V,["prevent"])},[v("div",J,[d(C,{error:i(l).notification_email.$error&&i(l).notification_email.$errors[0].$message,label:e.$t("settings.notification.email"),class:"my-2",required:""},{default:u(()=>[d(c,{modelValue:i(n).notification_email,"onUpdate:modelValue":t[0]||(t[0]=a=>i(n).notification_email=a),modelModifiers:{trim:!0},invalid:i(l).notification_email.$error,type:"email",onInput:t[1]||(t[1]=a=>i(l).notification_email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),d(I,{disabled:i(r),loading:i(r),variant:"primary",type:"submit",class:"mt-6"},{left:u(a=>[i(r)?j("",!0):(w(),S(b,{key:0,class:Y(a.class),name:"SaveIcon"},null,8,["class"]))]),default:u(()=>[D(" "+G(e.$tc("settings.notification.save")),1)]),_:1},8,["disabled","loading"])])],40,z),d(N,{class:"mt-6 mb-2"}),v("ul",L,[d(g,{modelValue:i(_),"onUpdate:modelValue":t[2]||(t[2]=a=>B(_)?_.value=a:null),title:e.$t("settings.notification.invoice_viewed"),description:e.$t("settings.notification.invoice_viewed_desc")},null,8,["modelValue","title","description"]),d(g,{modelValue:i(p),"onUpdate:modelValue":t[3]||(t[3]=a=>B(p)?p.value=a:null),title:e.$t("settings.notification.estimate_viewed"),description:e.$t("settings.notification.estimate_viewed_desc")},null,8,["modelValue","title","description"])])]),_:1},8,["title","description"])}}};export{H as default};
import{J as I,B as S,k as p,L as P,M as V,N as C,T as j,r as u,o as k,l as N,w as r,h as c,i as y,t as f,u as t,f as s,m as q,U as x}from"./vendor.01d0adc5.js";import{u as D}from"./payment.372edbf1.js";import{c as L}from"./main.832b14c7.js";const T={class:"flex justify-between w-full"},z=["onSubmit"],G={class:"p-4 sm:p-6"},U={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},F={setup(A){const o=L(),e=D(),{t:v}=I(),l=S(!1),h=p(()=>({currentPaymentMode:{name:{required:P.withMessage(v("validation.required"),V),minLength:P.withMessage(v("validation.name_min_length",{count:3}),C(3))}}})),a=j(h,p(()=>e)),g=p(()=>o.active&&o.componentName==="PaymentModeModal");async function B(){if(a.value.currentPaymentMode.$touch(),a.value.currentPaymentMode.$invalid)return!0;try{const n=e.currentPaymentMode.id?e.updatePaymentMode:e.addPaymentMode;l.value=!0,await n(e.currentPaymentMode),l.value=!1,o.refreshData&&o.refreshData(),d()}catch{return l.value=!1,!0}}function d(){o.closeModal(),setTimeout(()=>{a.value.$reset(),e.currentPaymentMode={id:"",name:null}})}return(n,m)=>{const M=u("BaseIcon"),b=u("BaseInput"),$=u("BaseInputGroup"),_=u("BaseButton"),w=u("BaseModal");return k(),N(w,{show:t(g),onClose:d},{header:r(()=>[c("div",T,[y(f(t(o).title)+" ",1),s(M,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:d})])]),default:r(()=>[c("form",{action:"",onSubmit:x(B,["prevent"])},[c("div",G,[s($,{label:n.$t("settings.payment_modes.mode_name"),error:t(a).currentPaymentMode.name.$error&&t(a).currentPaymentMode.name.$errors[0].$message,required:""},{default:r(()=>[s(b,{modelValue:t(e).currentPaymentMode.name,"onUpdate:modelValue":m[0]||(m[0]=i=>t(e).currentPaymentMode.name=i),invalid:t(a).currentPaymentMode.name.$error,onInput:m[1]||(m[1]=i=>t(a).currentPaymentMode.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),c("div",U,[s(_,{variant:"primary-outline",class:"mr-3",type:"button",onClick:d},{default:r(()=>[y(f(n.$t("general.cancel")),1)]),_:1}),s(_,{loading:l.value,disabled:l.value,variant:"primary",type:"submit"},{left:r(i=>[s(M,{name:"SaveIcon",class:q(i.class)},null,8,["class"])]),default:r(()=>[y(" "+f(t(e).currentPaymentMode.id?n.$t("general.update"):n.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,z)]),_:1},8,["show"])}}};export{F as _};
import{J as D,G as I,ah as x,r as d,o as p,l as b,w as a,u as M,f as t,i as v,t as w,B as $,k as j,e as N,m as z,F as T}from"./vendor.01d0adc5.js";import{u as P}from"./payment.372edbf1.js";import{j as C,u as F,e as H,c as S}from"./main.832b14c7.js";import{_ as L}from"./PaymentModeModal.c3a19345.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(u){const c=u,y=C();F();const{t:s}=D(),o=P(),f=I();H();const _=S();x("utils");function g(e){o.fetchPaymentMode(e),_.openModal({title:s("settings.payment_modes.edit_payment_mode"),componentName:"PaymentModeModal",refreshData:c.loadData&&c.loadData,size:"sm"})}function B(e){y.openDialog({title:s("general.are_you_sure"),message:s("settings.payment_modes.payment_mode_confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async l=>{l&&(await o.deletePaymentMode(e),c.loadData&&c.loadData())})}return(e,l)=>{const n=d("BaseIcon"),i=d("BaseButton"),r=d("BaseDropdownItem"),h=d("BaseDropdown");return p(),b(h,null,{activator:a(()=>[M(f).name==="paymentModes.view"?(p(),b(i,{key:0,variant:"primary"},{default:a(()=>[t(n,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),b(n,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:a(()=>[t(r,{onClick:l[0]||(l[0]=m=>g(u.row.id))},{default:a(()=>[t(n,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),v(" "+w(e.$t("general.edit")),1)]),_:1}),t(r,{onClick:l[1]||(l[1]=m=>B(u.row.id))},{default:a(()=>[t(n,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),v(" "+w(e.$t("general.delete")),1)]),_:1})]),_:1})}}},R={setup(u){const c=S();C();const y=P(),{t:s}=D(),o=$(null),f=j(()=>[{key:"name",label:s("settings.payment_modes.mode_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function _(){o.value&&o.value.refresh()}async function g({page:e,filter:l,sort:n}){let i={orderByField:n.fieldName||"created_at",orderBy:n.order||"desc",page:e},r=await y.fetchPaymentModes(i);return{data:r.data.data,pagination:{totalPages:r.data.meta.last_page,currentPage:e,totalCount:r.data.meta.total,limit:5}}}function B(){c.openModal({title:s("settings.payment_modes.add_payment_mode"),componentName:"PaymentModeModal",refreshData:o.value&&o.value.refresh,size:"sm"})}return(e,l)=>{const n=d("BaseIcon"),i=d("BaseButton"),r=d("BaseTable"),h=d("BaseSettingCard");return p(),N(T,null,[t(L),t(h,{title:e.$t("settings.payment_modes.title"),description:e.$t("settings.payment_modes.description")},{action:a(()=>[t(i,{type:"submit",variant:"primary-outline",onClick:B},{left:a(m=>[t(n,{class:z(m.class),name:"PlusIcon"},null,8,["class"])]),default:a(()=>[v(" "+w(e.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),default:a(()=>[t(r,{ref:(m,k)=>{k.table=m,o.value=m},data:g,columns:M(f),class:"mt-16"},{"cell-actions":a(({row:m})=>[t(O,{row:m.data,table:o.value,"load-data":_},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{R as default};
var J=Object.defineProperty;var C=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var M=(p,d,l)=>d in p?J(p,d,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[d]=l,S=(p,d)=>{for(var l in d||(d={}))L.call(d,l)&&M(p,l,d[l]);if(C)for(var l of C(d))R.call(d,l)&&M(p,l,d[l]);return p};import{J as A,B,a0 as H,k as y,C as K,L as f,M as b,T as Q,r as m,o as D,e as W,f as s,w as u,u as e,m as U,i as z,t as F,h as N,U as x,x as E,l as X,j as ee}from"./vendor.01d0adc5.js";import{b as te,d as ae}from"./main.832b14c7.js";const ne=["onSubmit"],le=["onSubmit"],de={setup(p){const d=te(),l=ae(),{t:g,tm:se}=A();let v=B(!1),$=B(!1),i=B(!1);const a=H(S({},d.selectedCompanySettings));y(()=>l.config.retrospective_edits.map(t=>(t.title=g(t.key),t))),K(()=>a.carbon_date_format,t=>{if(t){const n=l.dateFormats.find(c=>c.carbon_format_value===t);a.moment_date_format=n.moment_format_value}});const k=y({get:()=>a.discount_per_item==="YES",set:async t=>{const n=t?"YES":"NO";let c={settings:{discount_per_item:n}};a.discount_per_item=n,await d.updateCompanySettings({data:c,message:"general.setting_updated"})}}),V=y({get:()=>a.automatically_expire_public_links==="YES",set:async t=>{const n=t?"YES":"NO";a.automatically_expire_public_links=n}}),G=y(()=>({currency:{required:f.withMessage(g("validation.required"),b)},language:{required:f.withMessage(g("validation.required"),b)},carbon_date_format:{required:f.withMessage(g("validation.required"),b)},moment_date_format:{required:f.withMessage(g("validation.required"),b)},time_zone:{required:f.withMessage(g("validation.required"),b)},fiscal_year:{required:f.withMessage(g("validation.required"),b)}})),r=Q(G,y(()=>a));j();async function j(){i.value=!0,Promise.all([l.fetchCurrencies(),l.fetchDateFormats(),l.fetchTimeZones()]).then(([t])=>{i.value=!1})}async function O(){if(r.value.$touch(),r.value.$invalid)return;let t={settings:S({},a)};v.value=!0,delete t.settings.link_expiry_days,await d.updateCompanySettings({data:t,message:"settings.preferences.updated_message"}),v.value=!1}async function P(){$.value=!0,await d.updateCompanySettings({data:{settings:{link_expiry_days:a.link_expiry_days,automatically_expire_public_links:a.automatically_expire_public_links}},message:"settings.preferences.updated_message"}),$.value=!1}return(t,n)=>{const c=m("BaseMultiselect"),_=m("BaseInputGroup"),Y=m("BaseInputGrid"),w=m("BaseIcon"),q=m("BaseButton"),I=m("BaseDivider"),h=m("BaseSwitchSection"),T=m("BaseInput"),Z=m("BaseSettingCard");return D(),W("form",{action:"",class:"relative",onSubmit:x(O,["prevent"])},[s(Z,{title:t.$t("settings.menu_title.preferences"),description:t.$t("settings.preferences.general_settings")},{default:u(()=>[s(Y,{class:"mt-5"},{default:u(()=>[s(_,{"content-loading":e(i),label:t.$tc("settings.preferences.currency"),"help-text":t.$t("settings.preferences.company_currency_unchangeable"),error:e(r).currency.$error&&e(r).currency.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).currency,"onUpdate:modelValue":n[0]||(n[0]=o=>e(a).currency=o),"content-loading":e(i),options:e(l).currencies,label:"name","value-prop":"id",searchable:!0,"track-by":"name",invalid:e(r).currency.$error,disabled:"",class:"w-full"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["content-loading","label","help-text","error"]),s(_,{label:t.$tc("settings.preferences.default_language"),"content-loading":e(i),error:e(r).language.$error&&e(r).language.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).language,"onUpdate:modelValue":n[1]||(n[1]=o=>e(a).language=o),"content-loading":e(i),options:e(l).config.languages,label:"name","value-prop":"code",class:"w-full","track-by":"code",searchable:!0,invalid:e(r).language.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),s(_,{label:t.$tc("settings.preferences.time_zone"),"content-loading":e(i),error:e(r).time_zone.$error&&e(r).time_zone.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).time_zone,"onUpdate:modelValue":n[2]||(n[2]=o=>e(a).time_zone=o),"content-loading":e(i),options:e(l).timeZones,label:"key","value-prop":"value","track-by":"key",searchable:!0,invalid:e(r).time_zone.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),s(_,{label:t.$tc("settings.preferences.date_format"),"content-loading":e(i),error:e(r).carbon_date_format.$error&&e(r).carbon_date_format.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).carbon_date_format,"onUpdate:modelValue":n[3]||(n[3]=o=>e(a).carbon_date_format=o),"content-loading":e(i),options:e(l).dateFormats,label:"display_date","value-prop":"carbon_format_value","track-by":"carbon_format_value",searchable:"",invalid:e(r).carbon_date_format.$error,class:"w-full"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),s(_,{"content-loading":e(i),error:e(r).fiscal_year.$error&&e(r).fiscal_year.$errors[0].$message,label:t.$tc("settings.preferences.fiscal_year"),required:""},{default:u(()=>[s(c,{modelValue:e(a).fiscal_year,"onUpdate:modelValue":n[4]||(n[4]=o=>e(a).fiscal_year=o),"content-loading":e(i),options:e(l).config.fiscal_years,label:"key","value-prop":"value",invalid:e(r).fiscal_year.$error,"track-by":"key",searchable:!0,class:"w-full"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["content-loading","error","label"])]),_:1}),s(q,{"content-loading":e(i),disabled:e(v),loading:e(v),type:"submit",class:"mt-6"},{left:u(o=>[s(w,{name:"SaveIcon",class:U(o.class)},null,8,["class"])]),default:u(()=>[z(" "+F(t.$tc("settings.company_info.save")),1)]),_:1},8,["content-loading","disabled","loading"]),s(I,{class:"mt-6 mb-2"}),N("ul",null,[N("form",{onSubmit:x(P,["prevent"])},[s(h,{modelValue:e(V),"onUpdate:modelValue":n[5]||(n[5]=o=>E(V)?V.value=o:null),title:t.$t("settings.preferences.expire_public_links"),description:t.$t("settings.preferences.expire_setting_description")},null,8,["modelValue","title","description"]),e(V)?(D(),X(_,{key:0,"content-loading":e(i),label:t.$t("settings.preferences.expire_public_links"),class:"mt-2 mb-4"},{default:u(()=>[s(T,{modelValue:e(a).link_expiry_days,"onUpdate:modelValue":n[6]||(n[6]=o=>e(a).link_expiry_days=o),disabled:e(a).automatically_expire_public_links==="NO","content-loading":e(i),type:"number"},null,8,["modelValue","disabled","content-loading"])]),_:1},8,["content-loading","label"])):ee("",!0),s(q,{"content-loading":e(i),disabled:e($),loading:e($),type:"submit",class:"mt-6"},{left:u(o=>[s(w,{name:"SaveIcon",class:U(o.class)},null,8,["class"])]),default:u(()=>[z(" "+F(t.$tc("general.save")),1)]),_:1},8,["content-loading","disabled","loading"])],40,le),s(I,{class:"mt-6 mb-2"}),s(h,{modelValue:e(k),"onUpdate:modelValue":n[7]||(n[7]=o=>E(k)?k.value=o:null),title:t.$t("settings.preferences.discount_per_item"),description:t.$t("settings.preferences.discount_setting_description")},null,8,["modelValue","title","description"])])]),_:1},8,["title","description"])],40,ne)}}};export{de as default};
var Z=Object.defineProperty,ee=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var j=(e,i,u)=>i in e?Z(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,D=(e,i)=>{for(var u in i||(i={}))ie.call(i,u)&&j(e,u,i[u]);if(N)for(var u of N(i))te.call(i,u)&&j(e,u,i[u]);return e},E=(e,i)=>ee(e,ne(i));import{G as P,B as k,a0 as re,k as q,C as O,D as ae,r as g,o as y,e as A,h as v,f as r,u as n,t as L,w as c,l as _,j as B,F as G,$ as oe,J as le,aN as se,L as I,M as p,O as U,aP as ce,T as ue,m as de,i as ge,U as ve}from"./vendor.01d0adc5.js";import{_ as me,a as fe,b as be,c as ye,d as Ie,e as $e,f as we}from"./SalesTax.da1d755f.js";import{t as H,d as _e,b as Re,m as qe,r as pe}from"./main.832b14c7.js";import{_ as Be}from"./ExchangeRateConverter.357f31c9.js";import{_ as he}from"./CreateCustomFields.940787b7.js";import{_ as Se}from"./TaxTypeModal.cf69664d.js";import"./DragIcon.88fb50b8.js";import"./SelectNotePopup.b35e7850.js";import"./NoteModal.a07ce50b.js";import"./payment.372edbf1.js";import"./exchange-rate.45b62b37.js";const Ve={class:"col-span-5 pr-0"},Ce={class:"flex mt-7"},Fe={class:"relative w-20 mt-8"},Le={class:"ml-2"},Te={class:"p-0 mb-1 leading-snug text-left text-black"},Me={class:"p-0 m-0 text-xs leading-tight text-left text-gray-500",style:{"max-width":"480px"}},ke={class:"grid grid-cols-1 col-span-7 gap-4 mt-8 lg:gap-6 lg:mt-0 lg:grid-cols-2"},Ue={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(e){const i=e,u=P(),t=H(),V=_e(),$=k(!1),d=re([{label:"None",value:"NONE"},{label:"Date",value:"DATE"},{label:"Count",value:"COUNT"}]),m=q(()=>t.newRecurringInvoice.selectedFrequency&&t.newRecurringInvoice.selectedFrequency.value==="CUSTOM"),T=q(()=>i.isEdit?V.config.recurring_invoice_status.update_status:V.config.recurring_invoice_status.create_status);O(()=>t.newRecurringInvoice.selectedFrequency,l=>{t.isFetchingInitialSettings||(l&&l.value!=="CUSTOM"?t.newRecurringInvoice.frequency=l.value:t.newRecurringInvoice.frequency=null)}),ae(()=>{u.params.id||f()});function R(l){return t.newRecurringInvoice.limit_by===l}const C=oe(()=>{f()},500);async function f(){const l=t.newRecurringInvoice.frequency;if(!l)return;$.value=!0;let a={starts_at:t.newRecurringInvoice.starts_at,frequency:l};try{await t.fetchRecurringInvoiceFrequencyDate(a)}catch(h){console.error(h),$.value=!1}$.value=!1}return(l,a)=>{const h=g("BaseCustomerSelectPopup"),M=g("BaseSwitch"),w=g("BaseDatePicker"),b=g("BaseInputGroup"),S=g("BaseMultiselect"),s=g("BaseInput");return y(),A(G,null,[v("div",Ve,[r(h,{modelValue:n(t).newRecurringInvoice.customer,"onUpdate:modelValue":a[0]||(a[0]=o=>n(t).newRecurringInvoice.customer=o),valid:e.v.customer_id,"content-loading":e.isLoading,type:"recurring-invoice"},null,8,["modelValue","valid","content-loading"]),v("div",Ce,[v("div",Fe,[r(M,{modelValue:n(t).newRecurringInvoice.send_automatically,"onUpdate:modelValue":a[1]||(a[1]=o=>n(t).newRecurringInvoice.send_automatically=o),class:"absolute -top-4"},null,8,["modelValue"])]),v("div",Le,[v("p",Te,L(l.$t("recurring_invoices.send_automatically")),1),v("p",Me,L(l.$t("recurring_invoices.send_automatically_desc")),1)])])]),v("div",ke,[r(b,{label:l.$t("recurring_invoices.starts_at"),"content-loading":e.isLoading,required:"",error:e.v.starts_at.$error&&e.v.starts_at.$errors[0].$message},{default:c(()=>[r(w,{modelValue:n(t).newRecurringInvoice.starts_at,"onUpdate:modelValue":a[2]||(a[2]=o=>n(t).newRecurringInvoice.starts_at=o),"content-loading":e.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar",invalid:e.v.starts_at.$error,onChange:a[3]||(a[3]=o=>f())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),r(b,{label:l.$t("recurring_invoices.next_invoice_date"),"content-loading":e.isLoading,required:""},{default:c(()=>[r(w,{modelValue:n(t).newRecurringInvoice.next_invoice_at,"onUpdate:modelValue":a[4]||(a[4]=o=>n(t).newRecurringInvoice.next_invoice_at=o),"content-loading":e.isLoading,"calendar-button":!0,disabled:!0,loading:$.value,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading","loading"])]),_:1},8,["label","content-loading"]),r(b,{label:l.$t("recurring_invoices.limit_by"),"content-loading":e.isLoading,class:"lg:mt-0",required:"",error:e.v.limit_by.$error&&e.v.limit_by.$errors[0].$message},{default:c(()=>[r(S,{modelValue:n(t).newRecurringInvoice.limit_by,"onUpdate:modelValue":a[5]||(a[5]=o=>n(t).newRecurringInvoice.limit_by=o),"content-loading":e.isLoading,options:n(d),label:"label",invalid:e.v.limit_by.$error,"value-prop":"value"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),R("DATE")?(y(),_(b,{key:0,label:l.$t("recurring_invoices.limit_date"),"content-loading":e.isLoading,required:R("DATE"),error:e.v.limit_date.$error&&e.v.limit_date.$errors[0].$message},{default:c(()=>[r(w,{modelValue:n(t).newRecurringInvoice.limit_date,"onUpdate:modelValue":a[6]||(a[6]=o=>n(t).newRecurringInvoice.limit_date=o),"content-loading":e.isLoading,invalid:e.v.limit_date.$error,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","required","error"])):B("",!0),R("COUNT")?(y(),_(b,{key:1,label:l.$t("recurring_invoices.count"),"content-loading":e.isLoading,required:R("COUNT"),error:e.v.limit_count.$error&&e.v.limit_count.$errors[0].$message},{default:c(()=>[r(s,{modelValue:n(t).newRecurringInvoice.limit_count,"onUpdate:modelValue":a[7]||(a[7]=o=>n(t).newRecurringInvoice.limit_count=o),"content-loading":e.isLoading,invalid:e.v.limit_count.$error,type:"number"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","required","error"])):B("",!0),r(b,{label:l.$t("recurring_invoices.status"),required:"","content-loading":e.isLoading,error:e.v.status.$error&&e.v.status.$errors[0].$message},{default:c(()=>[r(S,{modelValue:n(t).newRecurringInvoice.status,"onUpdate:modelValue":a[8]||(a[8]=o=>n(t).newRecurringInvoice.status=o),options:n(T),"content-loading":e.isLoading,invalid:e.v.status.$error,placeholder:l.$t("recurring_invoices.select_a_status"),"value-prop":"value",label:"value"},null,8,["modelValue","options","content-loading","invalid","placeholder"])]),_:1},8,["label","content-loading","error"]),r(b,{label:l.$t("recurring_invoices.frequency.select_frequency"),required:"","content-loading":e.isLoading,error:e.v.selectedFrequency.$error&&e.v.selectedFrequency.$errors[0].$message},{default:c(()=>[r(S,{modelValue:n(t).newRecurringInvoice.selectedFrequency,"onUpdate:modelValue":a[9]||(a[9]=o=>n(t).newRecurringInvoice.selectedFrequency=o),"content-loading":e.isLoading,options:n(t).frequencies,label:"label",invalid:e.v.selectedFrequency.$error,object:"",onChange:f},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),n(m)?(y(),_(b,{key:2,label:l.$t("recurring_invoices.frequency.title"),"content-loading":e.isLoading,required:"",error:e.v.frequency.$error&&e.v.frequency.$errors[0].$message},{default:c(()=>[r(s,{modelValue:n(t).newRecurringInvoice.frequency,"onUpdate:modelValue":[a[10]||(a[10]=o=>n(t).newRecurringInvoice.frequency=o),n(C)],"content-loading":e.isLoading,disabled:!n(m),invalid:e.v.frequency.$error,loading:$.value},null,8,["modelValue","content-loading","disabled","invalid","loading","onUpdate:modelValue"])]),_:1},8,["label","content-loading","error"])):B("",!0),r(Be,{store:n(t),"store-prop":"newRecurringInvoice",v:e.v,"is-loading":e.isLoading,"is-edit":e.isEdit,"customer-currency":n(t).newRecurringInvoice.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])])],64)}}},xe=["onSubmit"],Ne={class:"flex"},je={class:"grid-cols-12 gap-8 mt-6 mb-8 lg:grid"},De={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},Ee={class:"w-full relative lg:w-1/2"},Ze={setup(e){const i=H(),u=Re(),t=qe(),V=pe(),$="newRecurringInvoice",{t:d}=le();let m=k(!1);const T=k(["customer","company","customerCustom","invoice","invoiceCustom"]);let R=P(),C=se(),f=q(()=>i.isFetchingInvoice||i.isFetchingInitialSettings),l=q(()=>a.value?d("recurring_invoices.edit_invoice"):d("recurring_invoices.new_invoice")),a=q(()=>R.name==="recurring-invoices.edit");const h=q(()=>u.selectedCompanySettings.sales_tax_us_enabled==="YES"&&V.salesTaxUSEnabled),M={starts_at:{required:I.withMessage(d("validation.required"),p)},status:{required:I.withMessage(d("validation.required"),p)},frequency:{required:I.withMessage(d("validation.required"),p)},limit_by:{required:I.withMessage(d("validation.required"),p)},limit_date:{required:I.withMessage(d("validation.required"),U(function(){return i.newRecurringInvoice.limit_by==="DATE"}))},limit_count:{required:I.withMessage(d("validation.required"),U(function(){return i.newRecurringInvoice.limit_by==="COUNT"}))},selectedFrequency:{required:I.withMessage(d("validation.required"),p)},customer_id:{required:I.withMessage(d("validation.required"),p)},exchange_rate:{required:U(function(){return I.withMessage(d("validation.required"),p),i.showExchangeRate}),decimal:I.withMessage(d("validation.valid_exchange_rate"),ce)}},w=ue(M,q(()=>i.newRecurringInvoice),{$scope:$});i.resetCurrentRecurringInvoice(),i.fetchRecurringInvoiceInitialSettings(a.value),t.resetCustomFields(),w.value.$reset,O(()=>i.newRecurringInvoice.customer,s=>{s&&s.currency?i.newRecurringInvoice.currency=s.currency:i.newRecurringInvoice.currency=u.selectedCompanyCurrency});async function b(){if(w.value.$touch(),w.value.$invalid)return!1;m.value=!0;let s=E(D({},i.newRecurringInvoice),{sub_total:i.getSubTotal,total:i.getTotal,tax:i.getTotalTax});R.params.id?i.updateRecurringInvoice(s).then(o=>{o.data.data&&C.push(`/admin/recurring-invoices/${o.data.data.id}/view`),m.value=!1}).catch(o=>{m.value=!1}):S(s)}function S(s){i.addRecurringInvoice(s).then(o=>{o.data.data&&C.push(`/admin/recurring-invoices/${o.data.data.id}/view`),m.value=!1}).catch(o=>{m.value=!1})}return(s,o)=>{const F=g("BaseBreadcrumbItem"),z=g("BaseBreadcrumb"),x=g("BaseButton"),J=g("router-link"),Y=g("BaseIcon"),K=g("BasePageHeader"),Q=g("BaseScrollPane"),W=g("BasePage");return y(),A(G,null,[r(me),r(fe),r(Se),n(h)&&!n(f)?(y(),_(be,{key:0,store:n(i),"store-prop":"newRecurringInvoice","is-edit":n(a),customer:n(i).newRecurringInvoice.customer},null,8,["store","is-edit","customer"])):B("",!0),r(W,{class:"relative invoice-create-page"},{default:c(()=>[v("form",{onSubmit:ve(b,["prevent"])},[r(K,{title:n(l)},{actions:c(()=>[r(J,{to:`/invoices/pdf/${n(i).newRecurringInvoice.unique_hash}`},{default:c(()=>[s.$route.name==="invoices.edit"?(y(),_(x,{key:0,target:"_blank",class:"mr-3",variant:"primary-outline",type:"button"},{default:c(()=>[v("span",Ne,L(s.$t("general.view_pdf")),1)]),_:1})):B("",!0)]),_:1},8,["to"]),r(x,{loading:n(m),disabled:n(m),variant:"primary",type:"submit"},{left:c(X=>[n(m)?B("",!0):(y(),_(Y,{key:0,name:"SaveIcon",class:de(X.class)},null,8,["class"]))]),default:c(()=>[ge(" "+L(s.$t("recurring_invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:c(()=>[r(z,null,{default:c(()=>[r(F,{title:s.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(F,{title:s.$t("recurring_invoices.title",2),to:"/admin/recurring-invoices"},null,8,["title"]),s.$route.name==="invoices.edit"?(y(),_(F,{key:0,title:s.$t("recurring_invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(y(),_(F,{key:1,title:n(l),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),v("div",je,[r(Ue,{v:n(w),"is-loading":n(f),"is-edit":n(a)},null,8,["v","is-loading","is-edit"])]),r(Q,null,{default:c(()=>[r(ye,{currency:n(i).newRecurringInvoice.currency,"is-loading":n(f),"item-validation-scope":$,store:n(i),"store-prop":"newRecurringInvoice"},null,8,["currency","is-loading","store"]),v("div",De,[v("div",Ee,[r(Ie,{store:n(i),"store-prop":"newRecurringInvoice",fields:T.value,type:"Invoice"},null,8,["store","fields"]),r(he,{type:"Invoice","is-edit":n(a),"is-loading":n(f),store:n(i),"store-prop":"newRecurringInvoice","custom-field-scope":$,class:"mb-6"},null,8,["is-edit","is-loading","store"]),r($e,{store:n(i),"store-prop":"newRecurringInvoice"},null,8,["store"])]),r(we,{currency:n(i).newRecurringInvoice.currency,"is-loading":n(f),store:n(i),"store-prop":"newRecurringInvoice","tax-popup-type":"invoice"},null,8,["currency","is-loading","store"])])]),_:1})],40,xe)]),_:1})],64)}}};export{Ze as default};
import{J as b,G as E,aN as k,ah as C,r as c,o as a,l as n,w as o,u as t,f as r,i as p,t as I,j as v}from"./vendor.01d0adc5.js";import{t as x,u as S,j as V,e as j,g as y}from"./main.832b14c7.js";const G={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(l){const _=l,g=x(),h=S(),N=V(),m=j(),{t:s}=b(),w=E();k(),C("utils");async function B(i=null){N.openDialog({title:s("general.are_you_sure"),message:s("invoices.confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async u=>{u&&await g.deleteMultipleRecurringInvoices(i).then(e=>{e.data.success?(_.table&&_.table.refresh(),g.$patch(d=>{d.selectedRecurringInvoices=[],d.selectAllField=!1}),h.showNotification({type:"success",message:s("recurring_invoices.deleted_message",2)})):e.data.error&&h.showNotification({type:"error",message:e.data.message})})})}return(i,u)=>{const e=c("BaseIcon"),d=c("BaseButton"),f=c("BaseDropdownItem"),R=c("router-link"),D=c("BaseDropdown");return a(),n(D,{"content-loading":t(g).isFetchingViewData},{activator:o(()=>[t(w).name==="recurring-invoices.view"?(a(),n(d,{key:0,variant:"primary"},{default:o(()=>[r(e,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(a(),n(e,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[t(m).hasAbilities(t(y).EDIT_RECURRING_INVOICE)?(a(),n(R,{key:0,to:`/admin/recurring-invoices/${l.row.id}/edit`},{default:o(()=>[r(f,null,{default:o(()=>[r(e,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+I(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):v("",!0),t(w).name!=="recurring-invoices.view"&&t(m).hasAbilities(t(y).VIEW_RECURRING_INVOICE)?(a(),n(R,{key:1,to:`recurring-invoices/${l.row.id}/view`},{default:o(()=>[r(f,null,{default:o(()=>[r(e,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+I(i.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):v("",!0),t(m).hasAbilities(t(y).DELETE_RECURRING_INVOICE)?(a(),n(f,{key:2,onClick:u[0]||(u[0]=$=>B(l.row.id))},{default:o(()=>[r(e,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+I(i.$t("general.delete")),1)]),_:1})):v("",!0)]),_:1},8,["content-loading"])}}};export{G as _};
import{G as S,aN as M,J as E,a0 as j,B as $,k as x,L as m,M as g,Q as C,N as G,P as L,T as N,r as u,o as c,e as P,f as n,w as p,u as e,l as _,x as y,i as U,t as A,U as R}from"./vendor.01d0adc5.js";import{u as D}from"./global.8697213a.js";import{u as O}from"./auth.77d12976.js";import"./main.832b14c7.js";const T=["onSubmit"],K={setup(F){const f=S(),b=M(),B=O(),{t:i}=E(),r=j({email:"",password:"",password_confirmation:""});D();let a=$(!1),v=$(!1);const I=x(()=>({email:{required:m.withMessage(i("validation.required"),g),email:m.withMessage(i("validation.email_incorrect"),C)},password:{required:m.withMessage(i("validation.required"),g),minLength:m.withMessage(i("validation.password_min_length",{count:8}),G(8))},password_confirmation:{sameAsPassword:m.withMessage(i("validation.password_incorrect"),L(r.password))}})),s=N(I,r);async function V(l){if(s.value.$touch(),!s.value.$invalid){let o={email:r.email,password:r.password,password_confirmation:r.password_confirmation,token:f.params.token};v.value=!0;let d=B.resetPassword(o,f.params.company);v.value=!1,d.data&&b.push({name:"customer.login"})}}return(l,o)=>{const d=u("BaseInput"),w=u("BaseInputGroup"),k=u("EyeOffIcon"),h=u("EyeIcon"),q=u("BaseButton");return c(),P("form",{id:"loginForm",onSubmit:R(V,["prevent"])},[n(w,{error:e(s).email.$error&&e(s).email.$errors[0].$message,label:l.$t("login.email"),class:"mb-4",required:""},{default:p(()=>[n(d,{modelValue:e(r).email,"onUpdate:modelValue":o[0]||(o[0]=t=>e(r).email=t),type:"email",name:"email",invalid:e(s).email.$error,onInput:o[1]||(o[1]=t=>e(s).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(w,{error:e(s).password.$error&&e(s).password.$errors[0].$message,label:l.$t("login.password"),class:"mb-4",required:""},{default:p(()=>[n(d,{modelValue:e(r).password,"onUpdate:modelValue":o[4]||(o[4]=t=>e(r).password=t),type:e(a)?"text":"password",name:"password",invalid:e(s).password.$error,onInput:o[5]||(o[5]=t=>e(s).password.$touch())},{right:p(()=>[e(a)?(c(),_(k,{key:0,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[2]||(o[2]=t=>y(a)?a.value=!e(a):a=!e(a))})):(c(),_(h,{key:1,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[3]||(o[3]=t=>y(a)?a.value=!e(a):a=!e(a))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["error","label"]),n(w,{error:e(s).password_confirmation.$error&&e(s).password_confirmation.$errors[0].$message,label:l.$t("login.retype_password"),class:"mb-4",required:""},{default:p(()=>[n(d,{modelValue:e(r).password_confirmation,"onUpdate:modelValue":o[6]||(o[6]=t=>e(r).password_confirmation=t),type:"password",name:"password",invalid:e(s).password_confirmation.$error,onInput:o[7]||(o[7]=t=>e(s).password_confirmation.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(q,{type:"submit",variant:"primary"},{default:p(()=>[U(A(l.$t("login.reset_password")),1)]),_:1})],40,T)}}};export{K as default};
import{J as q,G as I,aN as h,a0 as N,B as S,k as d,M as w,Q as k,N as L,P,T as U,r as f,o as A,e as C,f as n,w as m,u as r,i as E,t as G,U as j,a as D}from"./vendor.01d0adc5.js";import{u as M,h as R}from"./main.832b14c7.js";const T=["onSubmit"],Q={setup(x){const v=M(),{t}=q(),c=I(),$=h(),o=N({email:"",password:"",password_confirmation:""}),u=S(!1),_=d(()=>({email:{required:w,email:k},password:{required:w,minLength:L(8)},password_confirmation:{sameAsPassword:P(o.password)}})),a=U(_,o),g=d(()=>a.value.email.$error?a.value.email.required.$invalid?t("validation.required"):a.value.email.email?t("validation.email_incorrect"):!1:""),b=d(()=>a.value.password.$error?a.value.password.required.$invalid?t("validation.required"):a.value.password.minLength?t("validation.password_min_length",{count:a.value.password.minLength.$params.min}):!1:""),V=d(()=>a.value.password_confirmation.$error?a.value.password_confirmation.sameAsPassword.$invalid?t("validation.password_incorrect"):!1:"");async function y(i){if(a.value.$touch(),!a.value.$invalid)try{let e={email:o.email,password:o.password,password_confirmation:o.password_confirmation,token:c.params.token};u.value=!0;let l=await D.post("/api/v1/auth/reset/password",e);u.value=!1,l.data&&(v.showNotification({type:"success",message:t("login.password_reset_successfully")}),$.push("/login"))}catch(e){R(e),u.value=!1,e.response&&e.response.status===403}}return(i,e)=>{const l=f("BaseInput"),p=f("BaseInputGroup"),B=f("BaseButton");return A(),C("form",{id:"loginForm",onSubmit:j(y,["prevent"])},[n(p,{error:r(g),label:i.$t("login.email"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).email,"onUpdate:modelValue":e[0]||(e[0]=s=>r(o).email=s),invalid:r(a).email.$error,focus:"",type:"email",name:"email",onInput:e[1]||(e[1]=s=>r(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(p,{error:r(b),label:i.$t("login.password"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).password,"onUpdate:modelValue":e[2]||(e[2]=s=>r(o).password=s),invalid:r(a).password.$error,type:"password",name:"password",onInput:e[3]||(e[3]=s=>r(a).password.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(p,{error:r(V),label:i.$t("login.retype_password"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).password_confirmation,"onUpdate:modelValue":e[4]||(e[4]=s=>r(o).password_confirmation=s),invalid:r(a).password_confirmation.$error,type:"password",name:"password",onInput:e[5]||(e[5]=s=>r(a).password_confirmation.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(B,{loading:u.value,type:"submit",variant:"primary"},{default:m(()=>[E(G(i.$t("login.reset_password")),1)]),_:1},8,["loading"])],40,T)}}};export{Q as default};
var te=Object.defineProperty;var J=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var X=(f,n,e)=>n in f?te(f,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):f[n]=e,K=(f,n)=>{for(var e in n||(n={}))se.call(n,e)&&X(f,e,n[e]);if(J)for(var e of J(n))ae.call(n,e)&&X(f,e,n[e]);return f};import{h as L,u as j,j as oe,e as Q,c as P,b as ie}from"./main.832b14c7.js";import{_ as ne,a as D,d as le,J as O,G as re,ah as de,r as g,o as _,l as I,w as m,u as c,f as h,i as C,t as w,j as V,B as z,k as U,L as T,M as W,N as ce,T as ue,h as y,e as E,y as Y,F,m as Z,U as me,V as fe}from"./vendor.01d0adc5.js";const q=(f=!1)=>{const n=f?window.pinia.defineStore:le,{global:e}=window.i18n;return n({id:"role",state:()=>({roles:[],allAbilities:[],selectedRoles:[],currentRole:{id:null,name:"",abilities:[]}}),getters:{isEdit:a=>!!a.currentRole.id,abilitiesList:a=>{let i=a.allAbilities.map(l=>K({modelName:l.model?l.model.substring(l.model.lastIndexOf("\\")+1):"Common",disabled:!1},l));return ne.groupBy(i,"modelName")}},actions:{fetchRoles(a){return new Promise((i,l)=>{D.get("/api/v1/roles",{params:a}).then(t=>{this.roles=t.data.data,i(t)}).catch(t=>{L(t),l(t)})})},fetchRole(a){return new Promise((i,l)=>{D.get(`/api/v1/roles/${a}`).then(t=>{this.currentRole.name=t.data.data.name,this.currentRole.id=t.data.data.id,t.data.data.abilities.forEach(r=>{for(const u in this.abilitiesList)this.abilitiesList[u].forEach(v=>{v.ability===r.name&&this.currentRole.abilities.push(v)})}),i(t)}).catch(t=>{L(t),l(t)})})},addRole(a){const i=j();return new Promise((l,t)=>{D.post("/api/v1/roles",a).then(r=>{this.roles.push(r.data.role),i.showNotification({type:"success",message:e.t("settings.roles.created_message")}),l(r)}).catch(r=>{L(r),t(r)})})},updateRole(a){const i=j();return new Promise((l,t)=>{D.put(`/api/v1/roles/${a.id}`,a).then(r=>{if(r.data){let u=this.roles.findIndex(v=>v.id===r.data.data.id);this.roles[u]=a.role,i.showNotification({type:"success",message:e.t("settings.roles.updated_message")})}l(r)}).catch(r=>{L(r),t(r)})})},fetchAbilities(a){return new Promise((i,l)=>{this.allAbilities.length?i(this.allAbilities):D.get("/api/v1/abilities",{params:a}).then(t=>{this.allAbilities=t.data.abilities,i(t)}).catch(t=>{L(t),l(t)})})},deleteRole(a){const i=j();return new Promise((l,t)=>{D.delete(`/api/v1/roles/${a}`).then(r=>{let u=this.roles.findIndex(v=>v.id===a);this.roles.splice(u,1),i.showNotification({type:"success",message:e.t("settings.roles.deleted_message")}),l(r)}).catch(r=>{L(r),t(r)})})}}})()},pe={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(f){const n=f,e=oe();j();const{t:a}=O(),i=q(),l=re(),t=Q(),r=P();de("utils");async function u(x){Promise.all([await i.fetchAbilities(),await i.fetchRole(x)]).then(()=>{r.openModal({title:a("settings.roles.edit_role"),componentName:"RolesModal",size:"lg",refreshData:n.loadData})})}async function v(x){e.openDialog({title:a("general.are_you_sure"),message:a("settings.roles.confirm_delete"),yesLabel:a("general.ok"),noLabel:a("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async b=>{b&&await i.deleteRole(x).then(R=>{R.data&&n.loadData&&n.loadData()})})}return(x,b)=>{const R=g("BaseIcon"),B=g("BaseButton"),s=g("BaseDropdownItem"),d=g("BaseDropdown");return _(),I(d,null,{activator:m(()=>[c(l).name==="roles.view"?(_(),I(B,{key:0,variant:"primary"},{default:m(()=>[h(R,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(_(),I(R,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:m(()=>[c(t).currentUser.is_owner?(_(),I(s,{key:0,onClick:b[0]||(b[0]=p=>u(f.row.id))},{default:m(()=>[h(R,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),C(" "+w(x.$t("general.edit")),1)]),_:1})):V("",!0),c(t).currentUser.is_owner?(_(),I(s,{key:1,onClick:b[1]||(b[1]=p=>v(f.row.id))},{default:m(()=>[h(R,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),C(" "+w(x.$t("general.delete")),1)]),_:1})):V("",!0)]),_:1})}}},he={class:"flex justify-between w-full"},be=["onSubmit"],ge={class:"px-4 md:px-8 py-4 md:py-6"},_e={class:"flex justify-between"},ye={class:"text-sm not-italic font-medium text-gray-800 px-4 md:px-8 py-1.5"},ve=y("span",{class:"text-sm text-red-500"}," *",-1),we={class:"text-sm not-italic font-medium text-gray-300 px-4 md:px-8 py-1.5"},Be=C(" / "),xe={class:"border-t border-gray-200 py-3"},Re={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 px-8 sm:px-8"},$e={class:"text-sm text-gray-500 border-b border-gray-200 pb-1 mb-2"},Se={key:0,class:"block mt-0.5 text-sm text-red-500"},ke={class:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},Ce={setup(f){const n=P(),e=q(),{t:a}=O();let i=z(!1),l=z(!1);const t=U(()=>n.active&&n.componentName==="RolesModal"),r=U(()=>({name:{required:T.withMessage(a("validation.required"),W),minLength:T.withMessage(a("validation.name_min_length",{count:3}),ce(3))},abilities:{required:T.withMessage(a("validation.at_least_one_ability"),W)}})),u=ue(r,U(()=>e.currentRole));async function v(){if(u.value.$touch(),u.value.$invalid)return!0;try{const s=e.isEdit?e.updateRole:e.addRole;i.value=!0,await s(e.currentRole),i.value=!1,n.refreshData&&n.refreshData(),B()}catch{return i.value=!1,!0}}function x(s){var p,o;if(!e.currentRole.abilities.find($=>$.ability===s.ability)&&((p=s==null?void 0:s.depends_on)==null?void 0:p.length)){R(s);return}(o=s==null?void 0:s.depends_on)==null||o.forEach($=>{Object.keys(e.abilitiesList).forEach(M=>{e.abilitiesList[M].forEach(k=>{$===k.ability&&(k.disabled=!0,e.currentRole.abilities.find(S=>S.ability===$)||e.currentRole.abilities.push(k))})})})}function b(s){let d=[];Object.keys(e.abilitiesList).forEach(p=>{e.abilitiesList[p].forEach(o=>{(o==null?void 0:o.depends_on)&&(d=[...d,...o.depends_on])})}),Object.keys(e.abilitiesList).forEach(p=>{e.abilitiesList[p].forEach(o=>{d.includes(o.ability)&&(s?o.disabled=!0:o.disabled=!1),e.currentRole.abilities.push(o)})}),s||(e.currentRole.abilities=[])}function R(s){s.depends_on.forEach(d=>{Object.keys(e.abilitiesList).forEach(p=>{e.abilitiesList[p].forEach(o=>{let $=e.currentRole.abilities.find(M=>{var k;return(k=M.depends_on)==null?void 0:k.includes(o.ability)});d===o.ability&&!$&&(o.disabled=!1)})})})}function B(){n.closeModal(),setTimeout(()=>{e.currentRole={id:null,name:"",abilities:[]},Object.keys(e.abilitiesList).forEach(s=>{e.abilitiesList[s].forEach(d=>{d.disabled=!1})}),u.value.$reset()},300)}return(s,d)=>{const p=g("BaseIcon"),o=g("BaseInput"),$=g("BaseInputGroup"),M=g("BaseCheckbox"),k=g("BaseButton"),G=g("BaseModal");return _(),I(G,{show:c(t),onClose:B},{header:m(()=>[y("div",he,[C(w(c(n).title)+" ",1),h(p,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:B})])]),default:m(()=>[y("form",{onSubmit:me(v,["prevent"])},[y("div",ge,[h($,{label:s.$t("settings.roles.name"),class:"mt-3",error:c(u).name.$error&&c(u).name.$errors[0].$message,required:"","content-loading":c(l)},{default:m(()=>[h(o,{modelValue:c(e).currentRole.name,"onUpdate:modelValue":d[0]||(d[0]=S=>c(e).currentRole.name=S),invalid:c(u).name.$error,type:"text","content-loading":c(l),onInput:d[1]||(d[1]=S=>c(u).name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"])]),y("div",_e,[y("h6",ye,[C(w(s.$tc("settings.roles.permission",2))+" ",1),ve]),y("div",we,[y("a",{class:"cursor-pointer text-primary-400",onClick:d[2]||(d[2]=S=>b(!0))},w(s.$t("settings.roles.select_all")),1),Be,y("a",{class:"cursor-pointer text-primary-400",onClick:d[3]||(d[3]=S=>b(!1))},w(s.$t("settings.roles.none")),1)])]),y("div",xe,[y("div",Re,[(_(!0),E(F,null,Y(c(e).abilitiesList,(S,H)=>(_(),E("div",{key:H,class:"flex flex-col space-y-1"},[y("p",$e,w(H),1),(_(!0),E(F,null,Y(S,(N,ee)=>(_(),E("div",{key:ee,class:"flex"},[h(M,{modelValue:c(e).currentRole.abilities,"onUpdate:modelValue":[d[4]||(d[4]=A=>c(e).currentRole.abilities=A),A=>x(N)],"set-initial-value":!0,variant:"primary",disabled:N.disabled,label:N.name,value:N},null,8,["modelValue","disabled","label","value","onUpdate:modelValue"])]))),128))]))),128)),c(u).abilities.$error?(_(),E("span",Se,w(c(u).abilities.$errors[0].$message),1)):V("",!0)])]),y("div",ke,[h(k,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:B},{default:m(()=>[C(w(s.$t("general.cancel")),1)]),_:1}),h(k,{loading:c(i),disabled:c(i),variant:"primary",type:"submit"},{left:m(S=>[h(p,{name:"SaveIcon",class:Z(S.class)},null,8,["class"])]),default:m(()=>[C(" "+w(c(e).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,be)]),_:1},8,["show"])}}},Ee={setup(f){const n=P(),e=q(),a=Q(),i=ie(),{t:l}=O(),t=z(null),r=U(()=>[{key:"name",label:l("settings.roles.role_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"created_at",label:l("settings.roles.added_on"),tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function u({page:b,filter:R,sort:B}){let s={orderByField:B.fieldName||"created_at",orderBy:B.order||"desc",company_id:i.selectedCompany.id};return{data:(await e.fetchRoles(s)).data.data}}async function v(){t.value&&t.value.refresh()}async function x(){await e.fetchAbilities(),n.openModal({title:l("settings.roles.add_role"),componentName:"RolesModal",size:"lg",refreshData:t.value&&t.value.refresh})}return(b,R)=>{const B=g("BaseIcon"),s=g("BaseButton"),d=g("BaseTable"),p=g("BaseSettingCard");return _(),E(F,null,[h(Ce),h(p,{title:b.$t("settings.roles.title"),description:b.$t("settings.roles.description")},fe({default:m(()=>[h(d,{ref:(o,$)=>{$.table=o,t.value=o},data:u,columns:c(r),class:"mt-14"},{"cell-created_at":m(({row:o})=>[C(w(o.data.formatted_created_at),1)]),"cell-actions":m(({row:o})=>[c(a).currentUser.is_owner&&o.data.name!=="super admin"?(_(),I(pe,{key:0,row:o.data,table:t.value,"load-data":v},null,8,["row","table"])):V("",!0)]),_:1},8,["columns"])]),_:2},[c(a).currentUser.is_owner?{name:"action",fn:m(()=>[h(s,{variant:"primary-outline",onClick:x},{left:m(o=>[h(B,{name:"PlusIcon",class:Z(o.class)},null,8,["class"])]),default:m(()=>[C(" "+w(b.$t("settings.roles.add_new_role")),1)]),_:1})])}:void 0]),1032,["title","description"])],64)}}};export{Ee as default};
var Ie=Object.defineProperty,Se=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;var pe=(t,s,e)=>s in t?Ie(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,N=(t,s)=>{for(var e in s||(s={}))Te.call(s,e)&&pe(t,e,s[e]);if(me)for(var e of me(s))ke.call(s,e)&&pe(t,e,s[e]);return t},G=(t,s)=>Se(t,Pe(s));import{q as ee,c as H,e as ye,b as te,p as xe,g as ne,T as Ce,k as Me,u as De,d as Ve}from"./main.832b14c7.js";import{D as je,d as qe}from"./DragIcon.88fb50b8.js";import{B as W,a0 as fe,ah as ae,J,k as B,C as re,r as p,o as l,e as v,h as a,t as _,f as n,V as Le,u as o,w as c,i as E,l as j,j as A,G as Ee,A as Z,L as U,M as R,b2 as ge,S as oe,aX as Ae,T as le,x as K,F as Q,y as se,H as he,a7 as Oe,W as Ue,m as X,Y as ze,X as Ne,Z as Fe,N as Ye,D as _e,U as be}from"./vendor.01d0adc5.js";import{_ as Ge}from"./SelectNotePopup.b35e7850.js";const We={class:"flex items-center justify-between mb-3"},Re={class:"flex items-center text-base",style:{flex:"4"}},Xe={class:"pr-2 mb-0",align:"right"},He={class:"absolute left-3.5"},Je={class:"ml-2 text-sm leading-none text-primary-400 cursor-pointer"},Ze=a("br",null,null,-1),Ke={class:"text-sm text-right",style:{flex:"3"}},Qe={class:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},et={props:{ability:{type:String,default:""},store:{type:Object,default:null},storeProp:{type:String,default:""},itemIndex:{type:Number,required:!0},index:{type:Number,required:!0},taxData:{type:Object,required:!0},taxes:{type:Array,default:[]},total:{type:Number,default:0},totalTax:{type:Number,default:0},currency:{type:[Object,String],required:!0},updateItems:{type:Function,default:()=>{}}},emits:["remove","update"],setup(t,{emit:s}){const e=t,d=ee(),w=H(),$=ye(),I=W(null),y=fe(N({},e.taxData));ae("utils");const{t:C}=J(),m=B(()=>d.taxTypes.map(h=>N({},h)).map(h=>(e.taxes.find(x=>x.tax_type_id===h.id)?h.disabled=!0:h.disabled=!1,h))),q=B(()=>y.compound_tax&&e.total?(e.total+e.totalTax)*y.percent/100:e.total&&y.percent?e.total*y.percent/100:0);re(()=>e.total,()=>{T()}),re(()=>e.totalTax,()=>{T()}),e.taxData.tax_type_id>0&&(I.value=d.taxTypes.find(u=>u.id===e.taxData.tax_type_id)),T();function V(u){y.percent=u.percent,y.tax_type_id=u.id,y.compound_tax=u.compound_tax,y.name=u.name,T()}function T(){y.tax_type_id!==0&&s("update",{index:e.index,item:G(N({},y),{amount:q.value})})}function i(){let u={itemIndex:e.itemIndex,taxIndex:e.index};w.openModal({title:C("settings.tax_types.add_tax"),componentName:"TaxTypeModal",data:u,size:"sm"})}function r(u){e.store.$patch(h=>{h[e.storeProp].items[e.itemIndex].taxes.splice(u,1)})}return(u,h)=>{const M=p("BaseIcon"),x=p("BaseMultiselect"),D=p("BaseFormatMoney");return l(),v("div",We,[a("div",Re,[a("label",Xe,_(u.$t("invoices.item.tax")),1),n(x,{modelValue:I.value,"onUpdate:modelValue":[h[0]||(h[0]=k=>I.value=k),h[1]||(h[1]=k=>V(k))],"value-prop":"id",options:o(m),placeholder:u.$t("general.select_a_tax"),"open-direction":"top","track-by":"name",searchable:"",object:"",label:"name"},Le({singlelabel:c(({value:k})=>[a("div",He,_(k.name)+" - "+_(k.percent)+" % ",1)]),option:c(({option:k})=>[E(_(k.name)+" - "+_(k.percent)+" % ",1)]),_:2},[o($).hasAbilities(t.ability)?{name:"action",fn:c(()=>[a("button",{type:"button",class:"flex items-center justify-center w-full px-2 cursor-pointer py-2 bg-gray-200 border-none outline-none",onClick:i},[n(M,{name:"CheckCircleIcon",class:"h-5 text-primary-400"}),a("label",Je,_(u.$t("invoices.add_new_tax")),1)])])}:void 0]),1032,["modelValue","options","placeholder"]),Ze]),a("div",Ke,[n(D,{amount:o(q),currency:t.currency},null,8,["amount","currency"])]),a("div",Qe,[t.taxes.length&&t.index!==t.taxes.length-1?(l(),j(M,{key:0,name:"TrashIcon",class:"h-5 text-gray-700 cursor-pointer",onClick:h[2]||(h[2]=k=>r(t.index))})):A("",!0)])])}}},tt={class:"box-border bg-white border border-gray-200 border-solid rounded-b"},st={colspan:"5",class:"p-0 text-left align-top"},ot={class:"w-full"},nt=a("col",{style:{width:"40%","min-width":"280px"}},null,-1),at=a("col",{style:{width:"10%","min-width":"120px"}},null,-1),rt=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),lt={key:0,style:{width:"15%","min-width":"160px"}},it=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),dt={class:"px-5 py-4 text-left align-top"},ct={class:"flex justify-start"},ut={class:"flex items-center justify-center w-5 h-5 mt-2 text-gray-300 cursor-move handle mr-2"},mt={class:"px-5 py-4 text-right align-top"},pt={class:"px-5 py-4 text-left align-top"},yt={class:"flex flex-col"},xt={class:"flex-auto flex-fill bd-highlight"},ft={class:"relative w-full"},gt={key:0,class:"px-5 py-4 text-left align-top"},ht={class:"flex flex-col"},_t={class:"flex",style:{width:"120px"},role:"group"},bt={class:"flex items-center"},vt={class:"px-5 py-4 text-right align-top"},$t={class:"flex items-center justify-end text-sm"},wt={class:"flex items-center justify-center w-6 h-10 mx-2"},Bt={key:0},It=a("td",{class:"px-5 py-4 text-left align-top"},null,-1),St={colspan:"4",class:"px-5 py-4 text-left align-top"},Pt={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},itemData:{type:Object,default:null},index:{type:Number,default:null},type:{type:String,default:""},loading:{type:Boolean,default:!1},currency:{type:[Object,String],required:!0},invoiceItems:{type:Array,required:!0},itemValidationScope:{type:String,default:""}},emits:["update","remove","itemValidate"],setup(t,{emit:s}){const e=t,d=te(),w=xe();Ee();const{t:$}=J(),I=B({get:()=>e.itemData.quantity,set:g=>{L("quantity",parseFloat(g))}}),y=B({get:()=>{const g=e.itemData.price;return parseFloat(g)>0?g/100:g},set:g=>{if(parseFloat(g)>0){let P=Math.round(g*100);L("price",P)}else L("price",g)}}),C=B(()=>e.itemData.price*e.itemData.quantity),m=B({get:()=>e.itemData.discount,set:g=>{e.itemData.discount_type==="percentage"?L("discount_val",C.value*g/100):L("discount_val",Math.round(g*100)),L("discount",g)}}),q=B(()=>C.value-e.itemData.discount_val),V=B(()=>e.currency?e.currency:d.selectedCompanyCurrency),T=B(()=>e.store[e.storeProp].items.length!=1),i=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?0:g.amount}))),r=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?g.amount:0}))),u=B(()=>i.value+r.value),h={name:{required:U.withMessage($("validation.required"),R)},quantity:{required:U.withMessage($("validation.required"),R),minValue:U.withMessage($("validation.qty_must_greater_than_zero"),ge(0)),maxLength:U.withMessage($("validation.amount_maxlength"),oe(20))},price:{required:U.withMessage($("validation.required"),R),minValue:U.withMessage($("validation.number_length_minvalue"),ge(1)),maxLength:U.withMessage($("validation.price_maxlength"),oe(20))},discount_val:{between:U.withMessage($("validation.discount_maxlength"),Ae(0,B(()=>C.value)))},description:{maxLength:U.withMessage($("validation.notes_maxlength"),oe(65e3))}},M=le(h,B(()=>e.store[e.storeProp].items[e.index]),{$scope:e.itemValidationScope});function x(g){e.store.$patch(O=>{O[e.storeProp].items[e.index].taxes[g.index]=g.item});let P=e.itemData.taxes[e.itemData.taxes.length-1];(P==null?void 0:P.tax_type_id)!==0&&e.store.$patch(O=>{O[e.storeProp].items[e.index].taxes.push(G(N({},Ce),{id:he.raw()}))}),S()}function D(g){L("name",g)}function k(g){e.store.$patch(P=>{if(P[e.storeProp].items[e.index].name=g.name,P[e.storeProp].items[e.index].price=g.price,P[e.storeProp].items[e.index].item_id=g.id,P[e.storeProp].items[e.index].description=g.description,g.unit&&(P[e.storeProp].items[e.index].unit_name=g.unit.name),e.store[e.storeProp].tax_per_item==="YES"&&g.taxes){let O=0;g.taxes.forEach(Y=>{x({index:O,item:N({},Y)}),O++})}P[e.storeProp].exchange_rate&&(P[e.storeProp].items[e.index].price/=P[e.storeProp].exchange_rate)}),w.fetchItems(),S()}function f(){e.itemData.discount_type!=="fixed"&&(L("discount_val",Math.round(e.itemData.discount*100)),L("discount_type","fixed"))}function b(){e.itemData.discount_type!=="percentage"&&(L("discount_val",C.value*e.itemData.discount/100),L("discount_type","percentage"))}function S(){var O,Y;let g=(Y=(O=e.store[e.storeProp])==null?void 0:O.items[e.index])==null?void 0:Y.taxes;g||(g=[]);let P=G(N({},e.store[e.storeProp].items[e.index]),{index:e.index,total:q.value,sub_total:C.value,totalSimpleTax:i.value,totalCompoundTax:r.value,totalTax:u.value,tax:u.value,taxes:[...g]});e.store.updateItem(P)}function L(g,P){e.store.$patch(O=>{O[e.storeProp].items[e.index][g]=P}),S()}return(g,P)=>{const O=p("BaseItemSelect"),Y=p("BaseInput"),z=p("BaseMoney"),ie=p("BaseIcon"),ve=p("BaseButton"),de=p("BaseDropdownItem"),$e=p("BaseDropdown"),ce=p("BaseContentPlaceholdersText"),ue=p("BaseContentPlaceholders"),we=p("BaseFormatMoney");return l(),v("tr",tt,[a("td",st,[a("table",ot,[a("colgroup",null,[nt,at,rt,t.store[t.storeProp].discount_per_item==="YES"?(l(),v("col",lt)):A("",!0),it]),a("tbody",null,[a("tr",null,[a("td",dt,[a("div",ct,[a("div",ut,[n(je)]),n(O,{type:"Invoice",item:t.itemData,invalid:o(M).name.$error,"invalid-description":o(M).description.$error,taxes:t.itemData.taxes,index:t.index,"store-prop":t.storeProp,store:t.store,onSearch:D,onSelect:k},null,8,["item","invalid","invalid-description","taxes","index","store-prop","store"])])]),a("td",mt,[n(Y,{modelValue:o(I),"onUpdate:modelValue":P[0]||(P[0]=F=>K(I)?I.value=F:null),invalid:o(M).quantity.$error,"content-loading":t.loading,type:"number",small:"",min:"0",step:"any",onChange:P[1]||(P[1]=F=>S()),onInput:P[2]||(P[2]=F=>o(M).quantity.$touch())},null,8,["modelValue","invalid","content-loading"])]),a("td",pt,[a("div",yt,[a("div",xt,[a("div",ft,[n(z,{key:o(V),modelValue:o(y),"onUpdate:modelValue":P[3]||(P[3]=F=>K(y)?y.value=F:null),invalid:o(M).price.$error,"content-loading":t.loading,currency:o(V)},null,8,["modelValue","invalid","content-loading","currency"])])])])]),t.store[t.storeProp].discount_per_item==="YES"?(l(),v("td",gt,[a("div",ht,[a("div",_t,[n(Y,{modelValue:o(m),"onUpdate:modelValue":P[4]||(P[4]=F=>K(m)?m.value=F:null),invalid:o(M).discount_val.$error,"content-loading":t.loading,class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue","invalid","content-loading"]),n($e,{position:"bottom-end"},{activator:c(()=>[n(ve,{"content-loading":t.loading,class:"rounded-tr-md rounded-br-md !p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[a("span",bt,[E(_(t.itemData.discount_type=="fixed"?t.currency.symbol:"%")+" ",1),n(ie,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1},8,["content-loading"])]),default:c(()=>[n(de,{onClick:f},{default:c(()=>[E(_(g.$t("general.fixed")),1)]),_:1}),n(de,{onClick:b},{default:c(()=>[E(_(g.$t("general.percentage")),1)]),_:1})]),_:1})])])])):A("",!0),a("td",vt,[a("div",$t,[a("span",null,[t.loading?(l(),j(ue,{key:0},{default:c(()=>[n(ce,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),j(we,{key:1,amount:o(q),currency:o(V)},null,8,["amount","currency"]))]),a("div",wt,[o(T)?(l(),j(ie,{key:0,class:"h-5 text-gray-700 cursor-pointer",name:"TrashIcon",onClick:P[5]||(P[5]=F=>t.store.removeItem(t.index))})):A("",!0)])])])]),t.store[t.storeProp].tax_per_item==="YES"?(l(),v("tr",Bt,[It,a("td",St,[t.loading?(l(),j(ue,{key:0},{default:c(()=>[n(ce,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(!0),v(Q,{key:1},se(t.itemData.taxes,(F,Be)=>(l(),j(et,{key:F.id,index:Be,"item-index":t.index,"tax-data":F,taxes:t.itemData.taxes,"discounted-total":o(q),"total-tax":o(i),total:o(C),currency:t.currency,"update-items":S,ability:o(ne).CREATE_INVOICE,store:t.store,"store-prop":t.storeProp,onUpdate:x},null,8,["index","item-index","tax-data","taxes","discounted-total","total-tax","total","currency","ability","store","store-prop"]))),128))])])):A("",!0)])])])])}}},Tt={class:"text-center item-table min-w-full"},kt=a("col",{style:{width:"40%","min-width":"280px"}},null,-1),Ct=a("col",{style:{width:"10%","min-width":"120px"}},null,-1),Mt=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),Dt={key:0,style:{width:"15%","min-width":"160px"}},Vt=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),jt={class:"bg-white border border-gray-200 border-solid"},qt={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},Lt={key:1,class:"pl-7"},Et={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},At={key:1},Ot={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},Ut={key:1},zt={key:0,class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},Nt={key:1},Ft={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},Yt={key:1,class:"pr-10 column-heading"},Zs={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},currency:{type:[Object,String,null],required:!0},isLoading:{type:Boolean,default:!1},itemValidationScope:{type:String,default:""}},setup(t){const s=t,e=te(),d=B(()=>s.currency?s.currency:e.selectedCompanyCurrency);return(w,$)=>{const I=p("BaseContentPlaceholdersText"),y=p("BaseContentPlaceholders"),C=p("BaseIcon");return l(),v(Q,null,[a("table",Tt,[a("colgroup",null,[kt,Ct,Mt,t.store[t.storeProp].discount_per_item==="YES"?(l(),v("col",Dt)):A("",!0),Vt]),a("thead",jt,[a("tr",null,[a("th",qt,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Lt,_(w.$tc("items.item",2)),1))]),a("th",Et,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",At,_(w.$t("invoices.item.quantity")),1))]),a("th",Ot,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Ut,_(w.$t("invoices.item.price")),1))]),t.store[t.storeProp].discount_per_item==="YES"?(l(),v("th",zt,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Nt,_(w.$t("invoices.item.discount")),1))])):A("",!0),a("th",Ft,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Yt,_(w.$t("invoices.item.amount")),1))])])]),n(o(qe),{modelValue:t.store[t.storeProp].items,"onUpdate:modelValue":$[0]||($[0]=m=>t.store[t.storeProp].items=m),"item-key":"id",tag:"tbody",handle:".handle"},{item:c(({element:m,index:q})=>[n(Pt,{key:m.id,index:q,"item-data":m,loading:t.isLoading,currency:o(d),"item-validation-scope":t.itemValidationScope,"invoice-items":t.store[t.storeProp].items,store:t.store,"store-prop":t.storeProp},null,8,["index","item-data","loading","currency","item-validation-scope","invoice-items","store","store-prop"])]),_:1},8,["modelValue"])]),a("div",{class:"flex items-center justify-center w-full px-6 py-3 text-base border border-t-0 border-gray-200 border-solid cursor-pointer text-primary-400 hover:bg-primary-100",onClick:$[1]||($[1]=(...m)=>t.store.addItem&&t.store.addItem(...m))},[n(C,{name:"PlusCircleIcon",class:"mr-2"}),E(" "+_(w.$t("general.add_new_item")),1)])],64)}}},Gt={class:"flex items-center justify-between w-full mt-2 text-sm"},Wt={class:"font-semibold leading-5 text-gray-500 uppercase"},Rt={class:"flex items-center justify-center text-lg text-black"},Xt={props:{index:{type:Number,required:!0},tax:{type:Object,required:!0},taxes:{type:Array,required:!0},currency:{type:[Object,String],required:!0},store:{type:Object,default:null},data:{type:String,default:""}},emits:["update","remove"],setup(t,{emit:s}){const e=t;ae("$utils");const d=B(()=>e.tax.compound_tax&&e.store.getSubtotalWithDiscount?Math.round((e.store.getSubtotalWithDiscount+e.store.getTotalSimpleTax)*e.tax.percent/100):e.store.getSubtotalWithDiscount&&e.tax.percent?Math.round(e.store.getSubtotalWithDiscount*e.tax.percent/100):0);Oe(()=>{e.store.getSubtotalWithDiscount&&w(),e.store.getTotalSimpleTax&&w()});function w(){s("update",G(N({},e.tax),{amount:d.value}))}return($,I)=>{const y=p("BaseFormatMoney"),C=p("BaseIcon");return l(),v("div",Gt,[a("label",Wt,_(t.tax.name)+" ("+_(t.tax.percent)+" %) ",1),a("label",Rt,[n(y,{amount:t.tax.amount,currency:t.currency},null,8,["amount","currency"]),n(C,{name:"TrashIcon",class:"h-5 ml-2 cursor-pointer",onClick:I[0]||(I[0]=m=>$.$emit("remove",t.tax.id))})])])}}},Ht={class:"w-full mt-4 tax-select"},Jt={class:"relative w-full max-w-md px-4"},Zt={class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5"},Kt={class:"relative bg-white"},Qt={class:"relative p-4"},es={key:0,class:"relative flex flex-col overflow-auto list max-h-36 border-t border-gray-200"},ts=["onClick"],ss={class:"flex justify-between px-2"},os={class:"m-0 text-base font-semibold leading-tight text-gray-700 cursor-pointer"},ns={class:"m-0 text-base font-semibold text-gray-700 cursor-pointer"},as={key:1,class:"flex justify-center p-5 text-gray-400"},rs={class:"text-base text-gray-500 cursor-pointer"},ls={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},is={props:{type:{type:String,default:null},store:{type:Object,default:null},storeProp:{type:String,default:""}},emits:["select:taxType"],setup(t,{emit:s}){const e=t,d=H(),w=ee(),$=ye(),{t:I}=J(),y=W(null),C=B(()=>y.value?w.taxTypes.filter(function(T){return T.name.toLowerCase().indexOf(y.value.toLowerCase())!==-1}):w.taxTypes),m=B(()=>e.store[e.storeProp].taxes);function q(T,i){s("select:taxType",N({},T)),i()}function V(){d.openModal({title:I("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:T=>s("select:taxType",T)})}return(T,i)=>{const r=p("BaseIcon"),u=p("BaseInput");return l(),v("div",Ht,[n(o(Fe),{class:"relative"},{default:c(({isOpen:h})=>[n(o(Ue),{class:X([h?"":"text-opacity-90","flex items-center text-sm font-medium text-primary-400 focus:outline-none focus:border-none"])},{default:c(()=>[n(r,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),E(" "+_(T.$t("settings.tax_types.add_tax")),1)]),_:2},1032,["class"]),a("div",Jt,[n(ze,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:c(()=>[n(o(Ne),{style:{"min-width":"350px","margin-left":"62px",top:"-28px"},class:"absolute z-10 px-4 py-2 -translate-x-full sm:px-0"},{default:c(({close:M})=>[a("div",Zt,[a("div",Kt,[a("div",Qt,[n(u,{modelValue:y.value,"onUpdate:modelValue":i[0]||(i[0]=x=>y.value=x),placeholder:T.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(C).length>0?(l(),v("div",es,[(l(!0),v(Q,null,se(o(C),(x,D)=>(l(),v("div",{key:D,class:X([{"bg-gray-100 cursor-not-allowed opacity-50 pointer-events-none":o(m).find(k=>k.tax_type_id===x.id)},"px-6 py-4 border-b border-gray-200 border-solid cursor-pointer hover:bg-gray-100 hover:cursor-pointer last:border-b-0"]),tabindex:"2",onClick:k=>q(x,M)},[a("div",ss,[a("label",os,_(x.name),1),a("label",ns,_(x.percent)+" % ",1)])],10,ts))),128))])):(l(),v("div",as,[a("label",rs,_(T.$t("general.no_tax_found")),1)]))]),o($).hasAbilities(o(ne).CREATE_TAX_TYPE)?(l(),v("button",{key:0,type:"button",class:"flex items-center justify-center w-full h-10 px-2 py-3 bg-gray-200 border-none outline-none",onClick:V},[n(r,{name:"CheckCircleIcon",class:"text-primary-400"}),a("label",ls,_(T.$t("estimates.add_new_tax")),1)])):A("",!0)])]),_:1})]),_:1})])]),_:1})])}}},ds={class:"px-5 py-4 mt-6 bg-white border border-gray-200 border-solid rounded md:min-w-[390px] min-w-[300px] lg:mt-7"},cs={class:"flex items-center justify-between w-full"},us={key:1,class:"text-sm font-semibold leading-5 text-gray-400 uppercase"},ms={key:3,class:"flex items-center justify-center m-0 text-lg text-black uppercase"},ps={key:1,class:"m-0 text-sm font-semibold leading-5 text-gray-500 uppercase"},ys={key:3,class:"flex items-center justify-center m-0 text-lg text-black uppercase"},xs={key:0,class:"flex items-center justify-between w-full mt-2"},fs={key:1,class:"text-sm font-semibold leading-5 text-gray-400 uppercase"},gs={key:3,class:"flex",style:{width:"140px"},role:"group"},hs={class:"flex items-center"},_s={key:1},bs={class:"flex items-center justify-between w-full pt-2 mt-5 border-t border-gray-200 border-solid"},vs={key:1,class:"m-0 text-sm font-semibold leading-5 text-gray-400 uppercase"},$s={key:3,class:"flex items-center justify-center text-lg uppercase text-primary-400"},Ks={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},taxPopupType:{type:String,default:""},currency:{type:[Object,String],default:""},isLoading:{type:Boolean,default:!1}},setup(t){const s=t,e=W(null);ae("$utils");const d=te(),w=B({get:()=>s.store[s.storeProp].discount,set:i=>{s.store[s.storeProp].discount_type==="percentage"?s.store[s.storeProp].discount_val=Math.round(s.store.getSubTotal*i/100):s.store[s.storeProp].discount_val=Math.round(i*100),s.store[s.storeProp].discount=i}}),$=B({get:()=>s.store[s.storeProp].taxes,set:i=>{s.store.$patch(r=>{r[s.storeProp].taxes=i})}}),I=B(()=>{let i=[];return s.store[s.storeProp].items.forEach(r=>{r.taxes&&r.taxes.forEach(u=>{let h=i.find(M=>M.tax_type_id===u.tax_type_id);h?h.amount+=u.amount:u.tax_type_id&&i.push({tax_type_id:u.tax_type_id,amount:u.amount,percent:u.percent,name:u.name})})}),i}),y=B(()=>s.currency?s.currency:d.selectedCompanyCurrency);function C(){s.store[s.storeProp].discount_type!=="fixed"&&(s.store[s.storeProp].discount_val=Math.round(s.store[s.storeProp].discount*100),s.store[s.storeProp].discount_type="fixed")}function m(){s.store[s.storeProp].discount_type!=="percentage"&&(s.store[s.storeProp].discount_val=s.store.getSubTotal*s.store[s.storeProp].discount/100,s.store[s.storeProp].discount_type="percentage")}function q(i){let r=0;i.compound_tax&&s.store.getSubtotalWithDiscount?r=Math.round((s.store.getSubtotalWithDiscount+s.store.getTotalSimpleTax)*i.percent/100):s.store.getSubtotalWithDiscount&&i.percent&&(r=Math.round(s.store.getSubtotalWithDiscount*i.percent/100));let u=G(N({},ne),{id:he.raw(),name:i.name,percent:i.percent,compound_tax:i.compound_tax,tax_type_id:i.id,amount:r});s.store.$patch(h=>{h[s.storeProp].taxes.push(N({},u))})}function V(i){const r=s.store[s.storeProp].taxes.find(u=>u.id===i.id);r&&Object.assign(r,N({},i))}function T(i){const r=s.store[s.storeProp].taxes.findIndex(u=>u.id===i);s.store.$patch(u=>{u[s.storeProp].taxes.splice(r,1)})}return(i,r)=>{const u=p("BaseContentPlaceholdersText"),h=p("BaseContentPlaceholders"),M=p("BaseFormatMoney"),x=p("BaseInput"),D=p("BaseIcon"),k=p("BaseButton"),f=p("BaseDropdownItem"),b=p("BaseDropdown");return l(),v("div",ds,[a("div",cs,[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",us,_(i.$t("estimates.sub_total")),1)),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",ms,[n(M,{amount:t.store.getSubTotal,currency:o(y)},null,8,["amount","currency"])]))]),(l(!0),v(Q,null,se(o(I),S=>(l(),v("div",{key:S.tax_type_id,class:"flex items-center justify-between w-full"},[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):t.store[t.storeProp].tax_per_item==="YES"?(l(),v("label",ps,_(S.name)+" - "+_(S.percent)+"% ",1)):A("",!0),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):t.store[t.storeProp].tax_per_item==="YES"?(l(),v("label",ys,[n(M,{amount:S.amount,currency:o(y)},null,8,["amount","currency"])])):A("",!0)]))),128)),t.store[t.storeProp].discount_per_item==="NO"||t.store[t.storeProp].discount_per_item===null?(l(),v("div",xs,[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",fs,_(i.$t("estimates.discount")),1)),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(),v("div",gs,[n(x,{modelValue:o(w),"onUpdate:modelValue":r[0]||(r[0]=S=>K(w)?w.value=S:null),class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue"]),n(b,{position:"bottom-end"},{activator:c(()=>[n(k,{class:"rounded-tr-md rounded-br-md p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[a("span",hs,[E(_(t.store[t.storeProp].discount_type=="fixed"?o(y).symbol:"%")+" ",1),n(D,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1})]),default:c(()=>[n(f,{onClick:C},{default:c(()=>[E(_(i.$t("general.fixed")),1)]),_:1}),n(f,{onClick:m},{default:c(()=>[E(_(i.$t("general.percentage")),1)]),_:1})]),_:1})]))])):A("",!0),t.store[t.storeProp].tax_per_item==="NO"||t.store[t.storeProp].tax_per_item===null?(l(),v("div",_s,[(l(!0),v(Q,null,se(o($),(S,L)=>(l(),j(Xt,{key:S.id,index:L,tax:S,taxes:o($),currency:t.currency,store:t.store,onRemove:T,onUpdate:V},null,8,["index","tax","taxes","currency","store"]))),128))])):A("",!0),t.store[t.storeProp].tax_per_item==="NO"||t.store[t.storeProp].tax_per_item===null?(l(),v("div",{key:2,ref:(S,L)=>{L.taxModal=S,e.value=S},class:"float-right pt-2 pb-4"},[n(is,{"store-prop":t.storeProp,store:t.store,type:t.taxPopupType,"onSelect:taxType":q},null,8,["store-prop","store","type"])],512)):A("",!0),a("div",bs,[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",vs,_(i.$t("estimates.total"))+" "+_(i.$t("estimates.amount"))+":",1)),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",$s,[n(M,{amount:t.store.getTotal,currency:o(y)},null,8,["amount","currency"])]))])])}}},ws={class:"flex text-gray-800 font-medium text-sm mb-2"},Bs=a("span",{class:"text-sm text-red-500"}," *",-1),Qs={props:{store:{type:Object,default:null},storeProp:{type:String,default:""}},setup(t){const s=t,e=H(),{t:d}=J();function w(){e.openModal({title:d("general.choose_template"),componentName:"SelectTemplate",data:{templates:s.store.templates,store:s.store,storeProp:s.storeProp}})}return($,I)=>{const y=p("BaseIcon"),C=p("BaseButton");return l(),v("div",null,[a("label",ws,[E(_($.$t("general.select_template"))+" ",1),Bs]),n(C,{type:"button",class:"flex justify-center w-full text-sm lg:w-auto hover:bg-gray-200",variant:"gray",onClick:w},{right:c(m=>[n(y,{name:"PencilIcon",class:X(m.class)},null,8,["class"])]),default:c(()=>[E(" "+_(t.store[t.storeProp].template_name),1)]),_:1})])}}},Is={class:"mb-6"},Ss={class:"z-20 text-sm font-semibold leading-5 text-primary-400 float-right"},Ps={class:"text-gray-800 font-medium mb-4 text-sm"},eo={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},fields:{type:Object,default:null},type:{type:String,default:null}},setup(t){const s=t;function e(d){s.store[s.storeProp].notes=""+d.notes}return(d,w)=>{const $=p("BaseCustomInput");return l(),v("div",Is,[a("div",Ss,[n(Ge,{type:t.type,onSelect:e},null,8,["type"])]),a("label",Ps,_(d.$t("invoices.notes")),1),n($,{modelValue:t.store[t.storeProp].notes,"onUpdate:modelValue":w[0]||(w[0]=I=>t.store[t.storeProp].notes=I),"content-loading":t.store.isFetchingInitialSettings,fields:t.fields,class:"mt-1"},null,8,["modelValue","content-loading","fields"])])}}},Ts={class:"flex justify-between w-full"},ks={class:"px-8 py-8 sm:p-6"},Cs={key:0,class:"grid grid-cols-3 gap-2 p-1 overflow-x-auto"},Ms=["src","alt","onClick"],Ds=["alt","src"],Vs={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},to={setup(t){const s=H(),e=W(""),d=B(()=>s.active&&s.componentName==="SelectTemplate"),w=B(()=>s.title);function $(){s.data.store[s.data.storeProp].template_name?e.value=s.data.store[s.data.storeProp].template_name:e.value=s.data.templates[0]}async function I(){await s.data.store.setTemplate(e.value),C()}function y(){return new URL("/build/img/tick.png",self.location)}function C(){s.closeModal(),setTimeout(()=>{s.$reset()},300)}return(m,q)=>{const V=p("BaseIcon"),T=p("BaseButton"),i=p("BaseModal");return l(),j(i,{show:o(d),onClose:C,onOpen:$},{header:c(()=>[a("div",Ts,[E(_(o(w))+" ",1),n(V,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:C})])]),default:c(()=>[a("div",ks,[o(s).data?(l(),v("div",Cs,[(l(!0),v(Q,null,se(o(s).data.templates,(r,u)=>(l(),v("div",{key:u,class:X([{"border border-solid border-primary-500":e.value===r.name},"relative flex flex-col m-2 border border-gray-200 border-solid cursor-pointer hover:border-primary-300"])},[a("img",{src:r.path,alt:r.name,class:"w-full",onClick:h=>e.value=r.name},null,8,Ms),e.value===r.name?(l(),v("img",{key:0,alt:r.name,class:"absolute z-10 w-5 h-5 text-primary-500",style:{top:"-6px",right:"-5px"},src:y()},null,8,Ds)):A("",!0),a("span",{class:X(["w-full p-1 bg-gray-200 text-sm text-center absolute bottom-0 left-0",{"text-primary-500 bg-primary-100":e.value===r.name,"text-gray-600":e.value!=r.name}])},_(r.name),3)],2))),128))])):A("",!0)]),a("div",Vs,[n(T,{class:"mr-3",variant:"primary-outline",onClick:C},{default:c(()=>[E(_(m.$t("general.cancel")),1)]),_:1}),n(T,{variant:"primary",onClick:q[0]||(q[0]=r=>I())},{left:c(r=>[n(V,{name:"SaveIcon",class:X(r.class)},null,8,["class"])]),default:c(()=>[E(" "+_(m.$t("general.choose")),1)]),_:1})])]),_:1},8,["show"])}}},js={class:"flex justify-between w-full"},qs={class:"item-modal"},Ls=["onSubmit"],Es={class:"px-8 py-8 sm:p-6"},As={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},so={emits:["newItem"],setup(t,{emit:s}){const e=H(),d=xe(),w=te(),$=ee();Me(),De();const{t:I}=J(),y=W(!1),C=W(w.selectedCompanySettings.tax_per_item),m=B(()=>e.active&&e.componentName==="ItemModal"),q=B({get:()=>d.currentItem.price/100,set:x=>{d.currentItem.price=Math.round(x*100)}}),V=B({get:()=>d.currentItem.taxes.map(x=>{if(x)return G(N({},x),{tax_type_id:x.id,tax_name:x.name+" ("+x.percent+"%)"})}),set:x=>{d.$patch(D=>{D.currentItem.taxes=x})}}),T=B(()=>C.value==="YES"),i={name:{required:U.withMessage(I("validation.required"),R),minLength:U.withMessage(I("validation.name_min_length",{count:3}),Ye(3))},description:{maxLength:U.withMessage(I("validation.description_maxlength",{count:255}),oe(255))}},r=le(i,B(()=>d.currentItem)),u=B(()=>$.taxTypes.map(x=>G(N({},x),{tax_name:x.name+" ("+x.percent+"%)"})));_e(()=>{r.value.$reset(),d.fetchItemUnits({limit:"all"})});async function h(){if(r.value.$touch(),r.value.$invalid)return!0;let x=G(N({},d.currentItem),{taxes:d.currentItem.taxes.map(k=>({tax_type_id:k.id,amount:q.value*k.percent/100,percent:k.percent,name:k.name,collective_tax:0}))});y.value=!0,await(d.isEdit?d.updateItem:d.addItem)(x).then(k=>{y.value=!1,k.data.data&&e.data&&e.refreshData(k.data.data),M()})}function M(){e.closeModal(),setTimeout(()=>{d.resetCurrentItem(),e.$reset(),r.value.$reset()},300)}return(x,D)=>{const k=p("BaseIcon"),f=p("BaseInput"),b=p("BaseInputGroup"),S=p("BaseMoney"),L=p("BaseMultiselect"),g=p("BaseTextarea"),P=p("BaseInputGrid"),O=p("BaseButton"),Y=p("BaseModal");return l(),j(Y,{show:o(m),onClose:M},{header:c(()=>[a("div",js,[E(_(o(e).title)+" ",1),n(k,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:M})])]),default:c(()=>[a("div",qs,[a("form",{action:"",onSubmit:be(h,["prevent"])},[a("div",Es,[n(P,{layout:"one-column"},{default:c(()=>[n(b,{label:x.$t("items.name"),required:"",error:o(r).name.$error&&o(r).name.$errors[0].$message},{default:c(()=>[n(f,{modelValue:o(d).currentItem.name,"onUpdate:modelValue":D[0]||(D[0]=z=>o(d).currentItem.name=z),type:"text",invalid:o(r).name.$error,onInput:D[1]||(D[1]=z=>o(r).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),n(b,{label:x.$t("items.price")},{default:c(()=>[n(S,{key:o(w).selectedCompanyCurrency,modelValue:o(q),"onUpdate:modelValue":D[2]||(D[2]=z=>K(q)?q.value=z:null),currency:o(w).selectedCompanyCurrency,class:"relative w-full focus:border focus:border-solid focus:border-primary"},null,8,["modelValue","currency"])]),_:1},8,["label"]),n(b,{label:x.$t("items.unit")},{default:c(()=>[n(L,{modelValue:o(d).currentItem.unit_id,"onUpdate:modelValue":D[3]||(D[3]=z=>o(d).currentItem.unit_id=z),label:"name",options:o(d).itemUnits,"value-prop":"id","can-deselect":!1,"can-clear":!1,placeholder:x.$t("items.select_a_unit"),searchable:"","track-by":"id"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),o(T)?(l(),j(b,{key:0,label:x.$t("items.taxes")},{default:c(()=>[n(L,{modelValue:o(V),"onUpdate:modelValue":D[4]||(D[4]=z=>K(V)?V.value=z:null),options:o(u),label:"name","value-prop":"id",class:"w-full","can-deselect":!1,"can-clear":!1,searchable:"","track-by":"id",object:""},null,8,["modelValue","options"])]),_:1},8,["label"])):A("",!0),n(b,{label:x.$t("items.description"),error:o(r).description.$error&&o(r).description.$errors[0].$message},{default:c(()=>[n(g,{modelValue:o(d).currentItem.description,"onUpdate:modelValue":D[5]||(D[5]=z=>o(d).currentItem.description=z),rows:"4",cols:"50",invalid:o(r).description.$error,onInput:D[6]||(D[6]=z=>o(r).description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),a("div",As,[n(O,{class:"mr-3",variant:"primary-outline",type:"button",onClick:M},{default:c(()=>[E(_(x.$t("general.cancel")),1)]),_:1}),n(O,{loading:y.value,disabled:y.value,variant:"primary",type:"submit"},{left:c(z=>[n(k,{name:"SaveIcon",class:X(z.class)},null,8,["class"])]),default:c(()=>[E(" "+_(o(d).isEdit?x.$t("general.update"):x.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Ls)])]),_:1},8,["show"])}}},Os={class:"flex justify-between w-full"},Us={class:"flex flex-col"},zs={class:"text-sm text-gray-500 mt-1"},Ns=["onSubmit"],Fs={class:"p-4 sm:p-6"},Ys={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Gs={emits:["addTax"],setup(t,{emit:s}){const e=H();Ve();const d=fe({state:"",city:"",address_street_1:"",zip:""}),w=W(!1),$=ee(),{t:I}=J(),y=B(()=>e.active&&e.componentName==="TaxationAddressModal"),C=B(()=>({state:{required:U.withMessage(I("validation.required"),R)},city:{required:U.withMessage(I("validation.required"),R)},address_street_1:{required:U.withMessage(I("validation.required"),R)},zip:{required:U.withMessage(I("validation.required"),R)}})),m=le(C,B(()=>d));async function q(){if(m.value.$touch(),m.value.$invalid)return!0;let i={address:d};e.id&&(i.customer_id=e.id),d.address_street_1=d.address_street_1.replace(/(\r\n|\n|\r)/gm,""),w.value=!0,await $.fetchSalesTax(i).then(r=>{w.value=!1,s("addTax",r.data.data),T()}).catch(r=>{w.value=!1})}function V(){var i,r,u,h;d.state=(i=e==null?void 0:e.data)==null?void 0:i.state,d.city=(r=e==null?void 0:e.data)==null?void 0:r.city,d.address_street_1=(u=e==null?void 0:e.data)==null?void 0:u.address_street_1,d.zip=(h=e==null?void 0:e.data)==null?void 0:h.zip}function T(){e.closeModal()}return(i,r)=>{const u=p("BaseIcon"),h=p("BaseInput"),M=p("BaseInputGroup"),x=p("BaseTextarea"),D=p("BaseInputGrid"),k=p("BaseButton"),f=p("BaseModal");return l(),j(f,{show:o(y),onClose:T,onOpen:V},{header:c(()=>[a("div",Os,[a("div",Us,[E(_(o(e).title)+" ",1),a("p",zs,_(o(e).content),1)]),n(u,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:T})])]),default:c(()=>[a("form",{onSubmit:be(q,["prevent"])},[a("div",Fs,[n(D,{layout:"one-column"},{default:c(()=>[n(M,{required:"",error:o(m).state.$error&&o(m).state.$errors[0].$message,label:i.$t("customers.state")},{default:c(()=>[n(h,{modelValue:o(d).state,"onUpdate:modelValue":r[0]||(r[0]=b=>o(d).state=b),type:"text",name:"shippingState",class:"mt-1 md:mt-0",invalid:o(m).state.$error,onInput:r[1]||(r[1]=b=>o(m).state.$touch()),placeholder:i.$t("settings.taxations.state_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),n(M,{required:"",error:o(m).city.$error&&o(m).city.$errors[0].$message,label:i.$t("customers.city")},{default:c(()=>[n(h,{modelValue:o(d).city,"onUpdate:modelValue":r[2]||(r[2]=b=>o(d).city=b),type:"text",name:"shippingCity",class:"mt-1 md:mt-0",invalid:o(m).city.$error,onInput:r[3]||(r[3]=b=>o(m).city.$touch()),placeholder:i.$t("settings.taxations.city_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),n(M,{required:"",error:o(m).address_street_1.$error&&o(m).address_street_1.$errors[0].$message,label:i.$t("customers.address")},{default:c(()=>[n(x,{modelValue:o(d).address_street_1,"onUpdate:modelValue":r[4]||(r[4]=b=>o(d).address_street_1=b),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:o(m).address_street_1.$error,onInput:r[5]||(r[5]=b=>o(m).address_street_1.$touch()),placeholder:i.$t("settings.taxations.address_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),n(M,{required:"",error:o(m).zip.$error&&o(m).zip.$errors[0].$message,label:i.$t("customers.zip_code")},{default:c(()=>[n(h,{modelValue:o(d).zip,"onUpdate:modelValue":r[6]||(r[6]=b=>o(d).zip=b),invalid:o(m).zip.$error,onInput:r[7]||(r[7]=b=>o(m).zip.$touch()),type:"text",class:"mt-1 md:mt-0",placeholder:i.$t("settings.taxations.zip_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"])]),_:1})]),a("div",Ys,[n(k,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:T},{default:c(()=>[E(_(i.$t("general.cancel")),1)]),_:1}),n(k,{loading:w.value,variant:"primary",type:"submit"},{left:c(b=>[w.value?A("",!0):(l(),j(u,{key:0,name:"SaveIcon",class:X(b.class)},null,8,["class"]))]),default:c(()=>[E(" "+_(i.$t("general.save")),1)]),_:1},8,["loading"])])],40,Ns)]),_:1},8,["show"])}}},oo={props:{isEdit:{type:Boolean,default:null},type:{type:String,default:null},customer:{type:[Object],default:null},store:{type:Object,default:null},storeProp:{type:String,default:null}},setup(t){const s=t,e="Sales Tax",d="MODULE",w=H(),$=te(),I=ee(),{t:y}=J(),C=W(!1),m=B(()=>s.isEdit?s.store[s.storeProp].sales_tax_address_type==="billing":$.selectedCompanySettings.sales_tax_address_type==="billing"),q=B(()=>$.selectedCompanySettings.sales_tax_us_enabled==="YES"),V=B(()=>s.isEdit?s.store[s.storeProp].sales_tax_type==="customer_level":$.selectedCompanySettings.sales_tax_type==="customer_level"),T=B(()=>s.isEdit?s.store[s.storeProp].sales_tax_type==="company_level":$.selectedCompanySettings.sales_tax_type==="company_level"),i=B(()=>{if(V.value&&r.value){let f=m.value?s.customer.billing:s.customer.shipping;return{address:Z.exports.pick(f,["address_street_1","city","state","zip"]),customer_id:s.customer.id}}else if(T.value&&r.value)return{address:Z.exports.pick(address,["address_street_1","city","state","zip"])}}),r=B(()=>{var f,b;if(V.value){let S=m.value?(f=s.customer)==null?void 0:f.billing:(b=s.customer)==null?void 0:b.shipping;return u(S)}else if(T.value)return u($.selectedCompany.address);return!1});re(()=>s.customer,(f,b)=>{if(f&&b&&V.value){h(f,b);return}!r.value&&V.value&&f?setTimeout(()=>{M()},500):V.value&&f?x():V.value&&!f&&k()}),_e(()=>{T.value&&(r.value?x():M())});function u(f){return f?f.address_street_1&&f.city&&f.state&&f.zip:!1}function h(f,b){const S=m.value?f.billing:f.shipping,L=m.value?b.billing:b.shipping,g=Z.exports.pick(S,["address_street_1","city","state","zip"]),P=Z.exports.pick(L,["address_street_1","city","state","zip"]);Z.exports.isEqual(g,P)||x()}function M(){var S,L;if(!q.value)return;let f=null,b="";V.value?m.value?(f=(S=s.customer)==null?void 0:S.billing,b=y("settings.taxations.add_billing_address")):(f=(L=s.customer)==null?void 0:L.shipping,b=y("settings.taxations.add_shipping_address")):(f=$.selectedCompany.address,b=y("settings.taxations.add_company_address")),w.openModal({title:b,content:y("settings.taxations.modal_description"),componentName:"TaxationAddressModal",data:f,id:V.value?s.customer.id:""})}async function x(){!q.value||(C.value=!0,await I.fetchSalesTax(i.value).then(f=>{D(f.data.data),C.value=!1}).catch(f=>{f.response.data.error&&setTimeout(()=>{M()},500),C.value=!1}))}function D(f){f.tax_type_id=f.id;const b=s.store[s.storeProp].taxes.findIndex(S=>S.name===e&&S.type===d);b>-1?Object.assign(s.store[s.storeProp].taxes[b],f):s.store[s.storeProp].taxes.push(f)}function k(){const f=s.store[s.storeProp].taxes.findIndex(S=>S.name===e&&S.type===d);f>-1&&s.store[s.storeProp].taxes.splice(f,1);let b=I.taxTypes.findIndex(S=>S.name===e&&S.type===d);b>-1&&I.taxTypes.splice(b,1)}return(f,b)=>(l(),j(Gs,{onAddTax:D}))}};export{to as _,so as a,oo as b,Zs as c,eo as d,Qs as e,Ks as f};
var P=Object.defineProperty;var b=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(s,t,e)=>t in s?P(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,x=(s,t)=>{for(var e in t||(t={}))A.call(t,e)&&g(s,e,t[e]);if(b)for(var e of b(t))T.call(t,e)&&g(s,e,t[e]);return s};import{B as k,J as F,k as L,r as w,o as l,e as i,f as r,h as n,w as p,u as o,l as O,i as D,t as m,m as U,W,j as N,Y as G,X as J,F as B,y as X,Z as Y}from"./vendor.01d0adc5.js";import{u as Z,_ as q}from"./NoteModal.a07ce50b.js";import{c as H,e as K,g as C}from"./main.832b14c7.js";const Q={class:"w-full"},R={class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5"},ee={class:"relative grid bg-white"},te={class:"relative p-4"},se={key:0,class:"relative flex flex-col overflow-auto list max-h-36"},oe=["onClick"],ae={class:"flex justify-between px-2"},ne={class:"m-0 text-base font-semibold leading-tight text-gray-700 cursor-pointer"},le={key:1,class:"flex justify-center p-5 text-gray-400"},re={class:"text-base text-gray-500"},ie={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},fe={props:{type:{type:String,default:null}},emits:["select"],setup(s,{emit:t}){const e=s;k(null);const{t:I}=F(),c=k(null),S=H(),d=Z(),y=K(),_=L(()=>c.value?d.notes.filter(function(a){return a.name.toLowerCase().indexOf(c.value.toLowerCase())!==-1}):d.notes);async function V(){await d.fetchNotes({filter:{},orderByField:"",orderBy:"",type:e.type?e.type:""})}function j(a,u){t("select",x({},d.notes[a])),c.value=null,u()}function z(){S.openModal({title:I("settings.customization.notes.add_note"),componentName:"NoteModal",size:"lg",data:e.type})}return(a,u)=>{const h=w("BaseIcon"),M=w("BaseInput");return l(),i(B,null,[r(q),n("div",Q,[r(o(Y),null,{default:p(({isOpen:$})=>[o(y).hasAbilities(o(C).VIEW_NOTE)?(l(),O(o(W),{key:0,class:U([$?"":"text-opacity-90","flex items-center z-10 font-medium text-primary-400 focus:outline-none focus:border-none"]),onClick:V},{default:p(()=>[r(h,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),D(" "+m(a.$t("general.insert_note")),1)]),_:2},1032,["class"])):N("",!0),r(G,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:p(()=>[r(o(J),{class:"absolute z-20 px-4 mt-3 sm:px-0 w-screen max-w-full left-0 top-3"},{default:p(({close:E})=>[n("div",R,[n("div",ee,[n("div",te,[r(M,{modelValue:c.value,"onUpdate:modelValue":u[0]||(u[0]=f=>c.value=f),placeholder:a.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(_).length>0?(l(),i("div",se,[(l(!0),i(B,null,X(o(_),(f,v)=>(l(),i("div",{key:v,tabindex:"2",class:"px-6 py-4 border-b border-gray-200 border-solid cursor-pointer hover:bg-gray-100 hover:cursor-pointer last:border-b-0",onClick:ce=>j(v,E)},[n("div",ae,[n("label",ne,m(f.name),1)])],8,oe))),128))])):(l(),i("div",le,[n("label",re,m(a.$t("general.no_note_found")),1)]))]),o(y).hasAbilities(o(C).MANAGE_NOTE)?(l(),i("button",{key:0,type:"button",class:"h-10 flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",onClick:z},[r(h,{name:"CheckCircleIcon",class:"text-primary-400"}),n("label",ie,m(a.$t("settings.customization.notes.add_new_note")),1)])):N("",!0)])]),_:1})]),_:1})]),_:1})])],64)}}};export{fe as _};
import{J as A,B as h,a0 as O,k as C,L as p,M as B,Q as E,T as J,r as d,o as g,l as M,w as l,h as v,i as f,t as $,u as e,f as a,e as N,j as x}from"./vendor.01d0adc5.js";import{c as Q,k as X,u as H,b as K}from"./main.832b14c7.js";import{u as W}from"./mail-driver.1b5e2a8f.js";const Y={class:"flex justify-between w-full"},Z={key:0,action:""},ee={class:"px-8 py-8 sm:p-6"},te={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ae={key:1},oe={class:"my-6 mx-4 border border-gray-200 relative"},re=f(" Edit "),se=["src"],le={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},me={setup(ne){const m=Q(),V=X(),U=H(),k=K();W();const{t:u}=A(),n=h(!1),I=h(""),b=h(!1),P=h(["customer","customerCustom","estimate","estimateCustom","company"]);let o=O({id:null,from:null,to:null,subject:"New Estimate",body:null});const D=C(()=>m.active&&m.componentName==="SendEstimateModal"),q=C(()=>m.data),G={from:{required:p.withMessage(u("validation.required"),B),email:p.withMessage(u("validation.email_incorrect"),E)},to:{required:p.withMessage(u("validation.required"),B),email:p.withMessage(u("validation.email_incorrect"),E)},subject:{required:p.withMessage(u("validation.required"),B)},body:{required:p.withMessage(u("validation.required"),B)}},r=J(G,C(()=>o));function L(){b.value=!1}async function F(){let s=await k.fetchBasicMailConfig();o.id=m.id,s.data&&(o.from=s.data.from_mail),q.value&&(o.to=q.value.customer.email),o.body=k.selectedCompanySettings.estimate_mail_body}async function S(){if(r.value.$touch(),r.value.$invalid)return!0;try{if(n.value=!0,!b.value){const c=await V.previewEstimate(o);n.value=!1,b.value=!0;var s=new Blob([c.data],{type:"text/html"});I.value=URL.createObjectURL(s);return}const t=await V.sendEstimate(o);if(n.value=!1,t.data.success)return y(),!0}catch(t){console.error(t),n.value=!1,U.showNotification({type:"error",message:u("estimates.something_went_wrong")})}}function y(){m.closeModal(),setTimeout(()=>{r.value.$reset(),b.value=!1,I.value=null},300)}return(s,t)=>{const c=d("BaseIcon"),j=d("BaseInput"),w=d("BaseInputGroup"),R=d("BaseCustomInput"),T=d("BaseInputGrid"),_=d("BaseButton"),z=d("BaseModal");return g(),M(z,{show:e(D),onClose:y,onOpen:F},{header:l(()=>[v("div",Y,[f($(e(m).title)+" ",1),a(c,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:y})])]),default:l(()=>[b.value?(g(),N("div",ae,[v("div",oe,[a(_,{class:"absolute top-4 right-4",disabled:n.value,variant:"primary-outline",onClick:L},{default:l(()=>[a(c,{name:"PencilIcon",class:"h-5 mr-2"}),re]),_:1},8,["disabled"]),v("iframe",{src:I.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,se)]),v("div",le,[a(_,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(_,{loading:n.value,disabled:n.value,variant:"primary",type:"button",onClick:S},{default:l(()=>[n.value?x("",!0):(g(),M(c,{key:0,name:"PaperAirplaneIcon",class:"mr-2"})),f(" "+$(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(g(),N("form",Z,[v("div",ee,[a(T,{layout:"one-column"},{default:l(()=>[a(w,{label:s.$t("general.from"),required:"",error:e(r).from.$error&&e(r).from.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).from,"onUpdate:modelValue":t[0]||(t[0]=i=>e(o).from=i),type:"text",invalid:e(r).from.$error,onInput:t[1]||(t[1]=i=>e(r).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.to"),required:"",error:e(r).to.$error&&e(r).to.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).to,"onUpdate:modelValue":t[2]||(t[2]=i=>e(o).to=i),type:"text",invalid:e(r).to.$error,onInput:t[3]||(t[3]=i=>e(r).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.subject"),required:"",error:e(r).subject.$error&&e(r).subject.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).subject,"onUpdate:modelValue":t[4]||(t[4]=i=>e(o).subject=i),type:"text",invalid:e(r).subject.$error,onInput:t[5]||(t[5]=i=>e(r).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.body"),required:""},{default:l(()=>[a(R,{modelValue:e(o).body,"onUpdate:modelValue":t[6]||(t[6]=i=>e(o).body=i),fields:P.value},null,8,["modelValue","fields"])]),_:1},8,["label"])]),_:1})]),v("div",te,[a(_,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(_,{loading:n.value,disabled:n.value,variant:"primary",type:"button",class:"mr-3",onClick:S},{default:l(()=>[n.value?x("",!0):(g(),M(c,{key:0,name:"PhotographIcon",class:"h-5 mr-2"})),f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{me as _};
import{c as O,b as J,u as Q,i as X}from"./main.832b14c7.js";import{J as H,B as I,a0 as K,k as B,L as p,M as h,Q as N,T as W,r as d,o as _,l as M,w as n,h as v,i as f,t as $,u as e,f as a,e as x,m as Y,j as U}from"./vendor.01d0adc5.js";import{u as Z}from"./mail-driver.1b5e2a8f.js";const ee={class:"flex justify-between w-full"},oe={key:0,action:""},te={class:"px-8 py-8 sm:p-6"},ae={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},re={key:1},se={class:"my-6 mx-4 border border-gray-200 relative"},le=f(" Edit "),ne=["src"],ie={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},pe={setup(ue){const c=O(),V=J(),P=Q(),k=X();Z();const{t:u}=H();let i=I(!1);const C=I(""),b=I(!1),D=I(["customer","customerCustom","invoice","invoiceCustom","company"]),r=K({id:null,from:null,to:null,subject:"New Invoice",body:null}),G=B(()=>c.active&&c.componentName==="SendInvoiceModal"),L=B(()=>c.title),q=B(()=>c.data),T={from:{required:p.withMessage(u("validation.required"),h),email:p.withMessage(u("validation.email_incorrect"),N)},to:{required:p.withMessage(u("validation.required"),h),email:p.withMessage(u("validation.email_incorrect"),N)},subject:{required:p.withMessage(u("validation.required"),h)},body:{required:p.withMessage(u("validation.required"),h)}},t=W(T,B(()=>r));function z(){b.value=!1}async function F(){let s=await V.fetchBasicMailConfig();r.id=c.id,s.data&&(r.from=s.data.from_mail),q.value&&(r.to=q.value.customer.email),r.body=V.selectedCompanySettings.invoice_mail_body}async function S(){if(t.value.$touch(),t.value.$invalid)return!0;try{if(i.value=!0,!b.value){const m=await k.previewInvoice(r);i.value=!1,b.value=!0;var s=new Blob([m.data],{type:"text/html"});C.value=URL.createObjectURL(s);return}if((await k.sendInvoice(r)).data.success)return y(),!0}catch(o){console.error(o),i.value=!1,P.showNotification({type:"error",message:u("invoices.something_went_wrong")})}}function y(){c.closeModal(),setTimeout(()=>{t.value.$reset(),b.value=!1,C.value=null},300)}return(s,o)=>{const m=d("BaseIcon"),j=d("BaseInput"),w=d("BaseInputGroup"),R=d("BaseCustomInput"),A=d("BaseInputGrid"),g=d("BaseButton"),E=d("BaseModal");return _(),M(E,{show:e(G),onClose:y,onOpen:F},{header:n(()=>[v("div",ee,[f($(e(L))+" ",1),a(m,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:y})])]),default:n(()=>[b.value?(_(),x("div",re,[v("div",se,[a(g,{class:"absolute top-4 right-4",disabled:e(i),variant:"primary-outline",onClick:z},{default:n(()=>[a(m,{name:"PencilIcon",class:"h-5 mr-2"}),le]),_:1},8,["disabled"]),v("iframe",{src:C.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,ne)]),v("div",ie,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:n(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(g,{loading:e(i),disabled:e(i),variant:"primary",type:"button",onClick:o[7]||(o[7]=l=>S())},{default:n(()=>[e(i)?U("",!0):(_(),M(m,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),f(" "+$(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(_(),x("form",oe,[v("div",te,[a(A,{layout:"one-column",class:"col-span-7"},{default:n(()=>[a(w,{label:s.$t("general.from"),required:"",error:e(t).from.$error&&e(t).from.$errors[0].$message},{default:n(()=>[a(j,{modelValue:e(r).from,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).from=l),type:"text",invalid:e(t).from.$error,onInput:o[1]||(o[1]=l=>e(t).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.to"),required:"",error:e(t).to.$error&&e(t).to.$errors[0].$message},{default:n(()=>[a(j,{modelValue:e(r).to,"onUpdate:modelValue":o[2]||(o[2]=l=>e(r).to=l),type:"text",invalid:e(t).to.$error,onInput:o[3]||(o[3]=l=>e(t).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{error:e(t).subject.$error&&e(t).subject.$errors[0].$message,label:s.$t("general.subject"),required:""},{default:n(()=>[a(j,{modelValue:e(r).subject,"onUpdate:modelValue":o[4]||(o[4]=l=>e(r).subject=l),type:"text",invalid:e(t).subject.$error,onInput:o[5]||(o[5]=l=>e(t).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),a(w,{label:s.$t("general.body"),error:e(t).body.$error&&e(t).body.$errors[0].$message,required:""},{default:n(()=>[a(R,{modelValue:e(r).body,"onUpdate:modelValue":o[6]||(o[6]=l=>e(r).body=l),fields:D.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),v("div",ae,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:n(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(g,{loading:e(i),disabled:e(i),variant:"primary",type:"button",class:"mr-3",onClick:S},{left:n(l=>[e(i)?U("",!0):(_(),M(m,{key:0,class:Y(l.class),name:"PhotographIcon"},null,8,["class"]))]),default:n(()=>[f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{pe as _};
import{j as G,u as R,e as K,c as Y,g as j,b as Z}from"./main.832b14c7.js";import{J as O,G as ee,aN as te,ah as ae,r as d,o as m,l as p,w as o,u as e,f as a,i as y,t as v,j as B,B as E,a0 as oe,k as z,L as k,M as x,Q as F,T as ne,h as M,e as H,m as re}from"./vendor.01d0adc5.js";import{u as W}from"./payment.372edbf1.js";import{u as se}from"./mail-driver.1b5e2a8f.js";const _e={props:{row:{type:Object,default:null},table:{type:Object,default:null},contentLoading:{type:Boolean,default:!1}},setup(w){const I=w,C=G(),_=R(),{t:$}=O(),g=W(),l=ee(),P=te(),c=K(),T=Y(),r=ae("utils");function q(i){C.openDialog({title:$("general.are_you_sure"),message:$("payments.confirm_delete",1),yesLabel:$("general.ok"),noLabel:$("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(async t=>{if(t)return await g.deletePayment({ids:[i]}),P.push("/admin/payments"),I.table&&I.table.refresh(),!0})}function A(){var t;let i=`${window.location.origin}/payments/pdf/${(t=I.row)==null?void 0:t.unique_hash}`;r.copyTextToClipboard(i),_.showNotification({type:"success",message:$("general.copied_pdf_url_clipboard")})}async function D(i){T.openModal({title:$("payments.send_payment"),componentName:"SendPaymentModal",id:i.id,data:i,variant:"lg"})}return(i,t)=>{const b=d("BaseIcon"),L=d("BaseButton"),N=d("BaseDropdown-item"),f=d("BaseDropdownItem"),s=d("router-link"),n=d("BaseDropdown");return m(),p(n,{"content-loading":w.contentLoading},{activator:o(()=>[e(l).name==="payments.view"?(m(),p(L,{key:0,variant:"primary"},{default:o(()=>[a(b,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),p(b,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[e(l).name==="payments.view"&&e(c).hasAbilities(e(j).VIEW_PAYMENT)?(m(),p(N,{key:0,class:"rounded-md",onClick:A},{default:o(()=>[a(b,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.copy_pdf_url")),1)]),_:1})):B("",!0),e(c).hasAbilities(e(j).EDIT_PAYMENT)?(m(),p(s,{key:1,to:`/admin/payments/${w.row.id}/edit`},{default:o(()=>[a(f,null,{default:o(()=>[a(b,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):B("",!0),e(l).name!=="payments.view"&&e(c).hasAbilities(e(j).VIEW_PAYMENT)?(m(),p(s,{key:2,to:`/admin/payments/${w.row.id}/view`},{default:o(()=>[a(f,null,{default:o(()=>[a(b,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):B("",!0),w.row.status!=="SENT"&&e(l).name!=="payments.view"&&e(c).hasAbilities(e(j).SEND_PAYMENT)?(m(),p(f,{key:3,onClick:t[0]||(t[0]=h=>D(w.row))},{default:o(()=>[a(b,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("payments.send_payment")),1)]),_:1})):B("",!0),e(c).hasAbilities(e(j).DELETE_PAYMENT)?(m(),p(f,{key:4,onClick:t[1]||(t[1]=h=>q(w.row.id))},{default:o(()=>[a(b,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.delete")),1)]),_:1})):B("",!0)]),_:1},8,["content-loading"])}}},le={class:"flex justify-between w-full"},ie={key:0,action:""},ue={class:"px-8 py-8 sm:p-6"},de={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},me={key:1},ce={class:"my-6 mx-4 border border-gray-200 relative"},pe=y(" Edit "),ye=["src"],fe={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},$e={setup(w){const I=W(),C=Z(),_=Y(),$=R();se(),G();const{t:g}=O();let l=E(!1);const P=E(""),c=E(!1),T=E(["customer","customerCustom","payments","paymentsCustom","company"]),r=oe({id:null,from:null,to:null,subject:"New Payment",body:null}),q=z(()=>_.active&&_.componentName==="SendPaymentModal"),A=z(()=>_.title),D=z(()=>_.data),i={from:{required:k.withMessage(g("validation.required"),x),email:k.withMessage(g("validation.email_incorrect"),F)},to:{required:k.withMessage(g("validation.required"),x),email:k.withMessage(g("validation.email_incorrect"),F)},subject:{required:k.withMessage(g("validation.required"),x)},body:{required:k.withMessage(g("validation.required"),x)}},t=ne(i,r);function b(){c.value=!1}async function L(){let s=await C.fetchBasicMailConfig();r.id=_.id,s.data&&(r.from=s.data.from_mail),D.value&&(r.to=D.value.customer.email),r.body=C.selectedCompanySettings.payment_mail_body}async function N(){if(t.value.$touch(),t.value.$invalid)return!0;try{if(l.value=!0,!c.value){const h=await I.previewPayment(r);l.value=!1,c.value=!0;var s=new Blob([h.data],{type:"text/html"});P.value=URL.createObjectURL(s);return}if((await I.sendEmail(r)).data.success)return f(),!0}catch{l.value=!1,$.showNotification({type:"error",message:g("payments.something_went_wrong")})}}function f(){setTimeout(()=>{t.value.$reset(),c.value=!1,P.value=null,_.resetModalData()},300)}return(s,n)=>{const h=d("BaseIcon"),U=d("BaseInput"),V=d("BaseInputGroup"),J=d("BaseCustomInput"),Q=d("BaseInputGrid"),S=d("BaseButton"),X=d("BaseModal");return m(),p(X,{show:e(q),onClose:f,onOpen:L},{header:o(()=>[M("div",le,[y(v(e(A))+" ",1),a(h,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:f})])]),default:o(()=>[c.value?(m(),H("div",me,[M("div",ce,[a(S,{class:"absolute top-4 right-4",disabled:e(l),variant:"primary-outline",onClick:b},{default:o(()=>[a(h,{name:"PencilIcon",class:"h-5 mr-2"}),pe]),_:1},8,["disabled"]),M("iframe",{src:P.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,ye)]),M("div",fe,[a(S,{class:"mr-3",variant:"primary-outline",type:"button",onClick:f},{default:o(()=>[y(v(s.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(l),disabled:e(l),variant:"primary",type:"button",onClick:n[7]||(n[7]=u=>N())},{default:o(()=>[e(l)?B("",!0):(m(),p(h,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),y(" "+v(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(m(),H("form",ie,[M("div",ue,[a(Q,{layout:"one-column",class:"col-span-7"},{default:o(()=>[a(V,{label:s.$t("general.from"),required:"",error:e(t).from.$error&&e(t).from.$errors[0].$message},{default:o(()=>[a(U,{modelValue:e(r).from,"onUpdate:modelValue":n[0]||(n[0]=u=>e(r).from=u),type:"text",invalid:e(t).from.$error,onInput:n[1]||(n[1]=u=>e(t).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(V,{label:s.$t("general.to"),required:"",error:e(t).to.$error&&e(t).to.$errors[0].$message},{default:o(()=>[a(U,{modelValue:e(r).to,"onUpdate:modelValue":n[2]||(n[2]=u=>e(r).to=u),type:"text",invalid:e(t).to.$error,onInput:n[3]||(n[3]=u=>e(t).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(V,{error:e(t).subject.$error&&e(t).subject.$errors[0].$message,label:s.$t("general.subject"),required:""},{default:o(()=>[a(U,{modelValue:e(r).subject,"onUpdate:modelValue":n[4]||(n[4]=u=>e(r).subject=u),type:"text",invalid:e(t).subject.$error,onInput:n[5]||(n[5]=u=>e(t).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),a(V,{label:s.$t("general.body"),error:e(t).body.$error&&e(t).body.$errors[0].$message,required:""},{default:o(()=>[a(J,{modelValue:e(r).body,"onUpdate:modelValue":n[6]||(n[6]=u=>e(r).body=u),fields:T.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),M("div",de,[a(S,{class:"mr-3",variant:"primary-outline",type:"button",onClick:f},{default:o(()=>[y(v(s.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(l),disabled:e(l),variant:"primary",type:"button",class:"mr-3",onClick:N},{left:o(u=>[e(l)?B("",!0):(m(),p(h,{key:0,class:re(u.class),name:"PhotographIcon"},null,8,["class"]))]),default:o(()=>[y(" "+v(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{$e as _,_e as a};
var D=Object.defineProperty;var v=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var k=(o,t,e)=>t in o?D(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,w=(o,t)=>{for(var e in t||(t={}))G.call(t,e)&&k(o,e,t[e]);if(v)for(var e of v(t))J.call(t,e)&&k(o,e,t[e]);return o};import{B as y,a as $}from"./BaseListItem.9b6cf3ed.js";import{J as O,k as S,B as x,a0 as U,bb as q,bc as z,a7 as I,r as u,o as n,l as d,w as c,f as l,u as _,h as i,e as j,y as R,aj as V,F as L}from"./vendor.01d0adc5.js";import{u as K}from"./global.8697213a.js";import"./main.832b14c7.js";import"./auth.77d12976.js";const M={class:"w-full mb-6 select-wrapper xl:hidden"},Q={class:"pb-3 lg:col-span-3"},T={class:"space-y-1"},W={class:"flex"},X={class:"hidden mt-1 xl:block min-w-[240px]"},Y={class:"w-full overflow-hidden"},nt={setup(o){const{t}=O(),{useRoute:e,useRouter:P}=window.VueRouter,f=e(),C=P(),m=K(),g=S(()=>m.companySlug);let E=x({});x();const p=U([{link:`/${m.companySlug}/customer/settings/customer-profile`,title:t("settings.account_settings.account_settings"),icon:q},{link:`/${m.companySlug}/customer/settings/address-info`,title:t("settings.menu_title.address_information"),icon:z}]);I(()=>{f.path===`/${m.companySlug}/customer/settings`&&C.push({name:"customer.profile"});const a=p.find(B=>B.link===f.path);E.value=w({},a)}),S(()=>p);function h(a){return f.path.indexOf(a)>-1}return(a,B)=>{const b=u("BaseBreadcrumbItem"),F=u("BaseBreadcrumb"),H=u("BasePageHeader"),N=u("RouterView"),A=u("BasePage");return n(),d(A,null,{default:c(()=>[l(H,{title:a.$tc("settings.setting",2),class:"pb-6"},{default:c(()=>[l(F,null,{default:c(()=>[l(b,{title:a.$t("general.home"),to:`/${_(g)}/customer/dashboard`},null,8,["title","to"]),l(b,{title:a.$tc("settings.setting",2),to:`/${_(g)}/customer/settings/customer-profile`,active:""},null,8,["title","to"])]),_:1})]),_:1},8,["title"]),i("div",M,[i("aside",Q,[i("nav",T,[l($,null,{default:c(()=>[(n(!0),j(L,null,R(_(p),(s,r)=>(n(),d(y,{key:r,title:s.title,to:s.link,active:h(s.link),index:r,class:"py-3"},{icon:c(()=>[(n(),d(V(s.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})])])]),i("div",W,[i("div",X,[l($,null,{default:c(()=>[(n(!0),j(L,null,R(_(p),(s,r)=>(n(),d(y,{key:r,title:s.title,to:s.link,active:h(s.link),index:r,class:"py-3"},{icon:c(()=>[(n(),d(V(s.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",Y,[l(N)])])]),_:1})}}};export{nt as default};
import{J as I,B as M,G as R,aN as y,k as L,a7 as P,r as n,o as r,l as B,w as o,f as t,h as i,u,x as S,e as N,y as $,F as C}from"./vendor.01d0adc5.js";import{d as E}from"./main.832b14c7.js";import{B as F,a as G}from"./BaseListItem.9b6cf3ed.js";const H={class:"w-full mb-6 select-wrapper xl:hidden"},O={class:"flex"},U={class:"hidden mt-1 xl:block min-w-[240px]"},A={class:"w-full overflow-hidden"},D={setup(J){const{t:g}=I();let a=M({});const d=E(),c=R(),m=y(),p=L(()=>d.settingMenu.map(e=>Object.assign({},e,{title:g(e.title)})));P(()=>{c.path==="/admin/settings"&&m.push("/admin/settings/account-settings");const e=p.value.find(l=>l.link===c.path);a.value=e});function h(e){return c.path.indexOf(e)>-1}function b(e){return m.push(e.link)}return(e,l)=>{const _=n("BaseBreadcrumbItem"),v=n("BaseBreadcrumb"),k=n("BasePageHeader"),w=n("BaseMultiselect"),V=n("BaseIcon"),x=n("RouterView"),j=n("BasePage");return r(),B(j,null,{default:o(()=>[t(k,{title:e.$tc("settings.setting",1),class:"mb-6"},{default:o(()=>[t(v,null,{default:o(()=>[t(_,{title:e.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),t(_,{title:e.$tc("settings.setting",2),to:"/admin/settings/account-settings",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),i("div",H,[t(w,{modelValue:u(a),"onUpdate:modelValue":[l[0]||(l[0]=s=>S(a)?a.value=s:a=s),b],options:u(p),"can-deselect":!1,"value-prop":"title","track-by":"title",label:"title",object:""},null,8,["modelValue","options"])]),i("div",O,[i("div",U,[t(G,null,{default:o(()=>[(r(!0),N(C,null,$(u(d).settingMenu,(s,f)=>(r(),B(F,{key:f,title:e.$t(s.title),to:s.link,active:h(s.link),index:f,class:"py-3"},{icon:o(()=>[t(V,{name:s.icon},null,8,["name"])]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",A,[t(x)])])]),_:1})}}};export{D as default};
import{J as C,B as N,k as $,L as p,M as b,N as z,aX as j,S as L,T as U,r as i,o as B,l as g,w as l,h as y,i as x,t as v,u as e,f as o,m as D,j as G,U as E}from"./vendor.01d0adc5.js";import{q as X,c as J,u as A,k as F}from"./main.832b14c7.js";const H={class:"flex justify-between w-full"},K=["onSubmit"],O={class:"p-4 sm:p-6"},P={class:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},Z={setup(Q){const a=X(),u=J();A(),F();const{t:c,tm:R}=C();let d=N(!1);const h=$(()=>({currentTaxType:{name:{required:p.withMessage(c("validation.required"),b),minLength:p.withMessage(c("validation.name_min_length",{count:3}),z(3))},percent:{required:p.withMessage(c("validation.required"),b),between:p.withMessage(c("validation.enter_valid_tax_rate"),j(0,100))},description:{maxLength:p.withMessage(c("validation.description_maxlength",{count:255}),L(255))}}})),r=U(h,$(()=>a));async function w(){if(r.value.currentTaxType.$touch(),r.value.currentTaxType.$invalid)return!0;try{const s=a.isEdit?a.updateTaxType:a.addTaxType;d.value=!0;let t=await s(a.currentTaxType);d.value=!1,u.refreshData&&u.refreshData(t.data.data),m()}catch{return d.value=!1,!0}}function m(){u.closeModal(),setTimeout(()=>{a.resetCurrentTaxType(),r.value.$reset()},300)}return(s,t)=>{const f=i("BaseIcon"),V=i("BaseInput"),T=i("BaseInputGroup"),M=i("BaseMoney"),I=i("BaseTextarea"),S=i("BaseSwitch"),k=i("BaseInputGrid"),_=i("BaseButton"),q=i("BaseModal");return B(),g(q,{show:e(u).active&&e(u).componentName==="TaxTypeModal",onClose:m},{header:l(()=>[y("div",H,[x(v(e(u).title)+" ",1),o(f,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m})])]),default:l(()=>[y("form",{action:"",onSubmit:E(w,["prevent"])},[y("div",O,[o(k,{layout:"one-column"},{default:l(()=>[o(T,{label:s.$t("tax_types.name"),variant:"horizontal",error:e(r).currentTaxType.name.$error&&e(r).currentTaxType.name.$errors[0].$message,required:""},{default:l(()=>[o(V,{modelValue:e(a).currentTaxType.name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(a).currentTaxType.name=n),invalid:e(r).currentTaxType.name.$error,type:"text",onInput:t[1]||(t[1]=n=>e(r).currentTaxType.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.percent"),variant:"horizontal",error:e(r).currentTaxType.percent.$error&&e(r).currentTaxType.percent.$errors[0].$message,required:""},{default:l(()=>[o(M,{modelValue:e(a).currentTaxType.percent,"onUpdate:modelValue":t[2]||(t[2]=n=>e(a).currentTaxType.percent=n),currency:{decimal:".",thousands:",",symbol:"% ",precision:2,masked:!1},invalid:e(r).currentTaxType.percent.$error,class:"relative w-full focus:border focus:border-solid focus:border-primary",onInput:t[3]||(t[3]=n=>e(r).currentTaxType.percent.$touch())},null,8,["modelValue","currency","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.description"),error:e(r).currentTaxType.description.$error&&e(r).currentTaxType.description.$errors[0].$message,variant:"horizontal"},{default:l(()=>[o(I,{modelValue:e(a).currentTaxType.description,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).currentTaxType.description=n),invalid:e(r).currentTaxType.description.$error,rows:"4",cols:"50",onInput:t[5]||(t[5]=n=>e(r).currentTaxType.description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.compound_tax"),variant:"horizontal",class:"flex flex-row-reverse"},{default:l(()=>[o(S,{modelValue:e(a).currentTaxType.compound_tax,"onUpdate:modelValue":t[6]||(t[6]=n=>e(a).currentTaxType.compound_tax=n),class:"flex items-center"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),y("div",P,[o(_,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:m},{default:l(()=>[x(v(s.$t("general.cancel")),1)]),_:1}),o(_,{loading:e(d),disabled:e(d),variant:"primary",type:"submit"},{left:l(n=>[e(d)?G("",!0):(B(),g(f,{key:0,name:"SaveIcon",class:D(n.class)},null,8,["class"]))]),default:l(()=>[x(" "+v(e(a).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,K)]),_:1},8,["show"])}}};export{Z as _};
import{j as H,u as q,q as Y,e as $,c as j,g as f,b as G,r as J}from"./main.832b14c7.js";import{J as M,G as K,ah as V,r as o,o as p,l as g,w as t,u as a,f as n,i as T,t as B,j as N,B as z,k as P,V as O,m as Q,e as W,x as Z}from"./vendor.01d0adc5.js";import{_ as ee}from"./TaxTypeModal.cf69664d.js";const te={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(S){const s=S,b=H();q();const{t:r}=M(),h=Y(),v=K(),m=$(),E=j();V("utils");async function c(d){await h.fetchTaxType(d),E.openModal({title:r("settings.tax_types.edit_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:s.loadData&&s.loadData})}function C(d){b.openDialog({title:r("general.are_you_sure"),message:r("settings.tax_types.confirm_delete"),yesLabel:r("general.ok"),noLabel:r("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async u=>{if(u){if((await h.deleteTaxType(d)).data.success)return s.loadData&&s.loadData(),!0;s.loadData&&s.loadData()}})}return(d,u)=>{const i=o("BaseIcon"),w=o("BaseButton"),D=o("BaseDropdownItem"),k=o("BaseDropdown");return p(),g(k,null,{activator:t(()=>[a(v).name==="tax-types.view"?(p(),g(w,{key:0,variant:"primary"},{default:t(()=>[n(i,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),g(i,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(m).hasAbilities(a(f).EDIT_TAX_TYPE)?(p(),g(D,{key:0,onClick:u[0]||(u[0]=I=>c(S.row.id))},{default:t(()=>[n(i,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),T(" "+B(d.$t("general.edit")),1)]),_:1})):N("",!0),a(m).hasAbilities(a(f).DELETE_TAX_TYPE)?(p(),g(D,{key:1,onClick:u[1]||(u[1]=I=>C(S.row.id))},{default:t(()=>[n(i,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),T(" "+B(d.$t("general.delete")),1)]),_:1})):N("",!0)]),_:1})}}},ae={key:0},le={setup(S){const{t:s}=M(),b=V("utils"),r=G(),h=Y(),v=j(),m=$(),E=J(),c=z(null),C=z(r.selectedCompanySettings.tax_per_item),d=P(()=>[{key:"name",label:s("settings.tax_types.tax_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"compound_tax",label:s("settings.tax_types.compound_tax"),tdClass:"font-medium text-gray-900"},{key:"percent",label:s("settings.tax_types.percent"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),u=P(()=>r.selectedCompanySettings.sales_tax_us_enabled==="YES"&&E.salesTaxUSEnabled),i=P({get:()=>C.value==="YES",set:async l=>{const _=l?"YES":"NO";let y={settings:{tax_per_item:_}};C.value=_,await r.updateCompanySettings({data:y,message:"general.setting_updated"})}});function w(){return m.hasAbilities([f.DELETE_TAX_TYPE,f.EDIT_TAX_TYPE])}async function D({page:l,filter:_,sort:y}){let A={orderByField:y.fieldName||"created_at",orderBy:y.order||"desc",page:l},x=await h.fetchTaxTypes(A);return{data:x.data.data,pagination:{totalPages:x.data.meta.last_page,currentPage:l,totalCount:x.data.meta.total,limit:5}}}async function k(){c.value&&c.value.refresh()}function I(){v.openModal({title:s("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:c.value&&c.value.refresh})}return(l,_)=>{const y=o("BaseIcon"),A=o("BaseButton"),x=o("BaseBadge"),X=o("BaseTable"),L=o("BaseDivider"),U=o("BaseSwitchSection"),F=o("BaseSettingCard");return p(),g(F,{title:l.$t("settings.tax_types.title"),description:l.$t("settings.tax_types.description")},O({default:t(()=>[n(ee),n(X,{ref:(e,R)=>{R.table=e,c.value=e},class:"mt-16",data:D,columns:a(d)},O({"cell-compound_tax":t(({row:e})=>[n(x,{"bg-color":a(b).getBadgeStatusColor(e.data.compound_tax?"YES":"NO").bgColor,color:a(b).getBadgeStatusColor(e.data.compound_tax?"YES":"NO").color},{default:t(()=>[T(B(e.data.compound_tax?"Yes":"No".replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),"cell-percent":t(({row:e})=>[T(B(e.data.percent)+" % ",1)]),_:2},[w()?{name:"cell-actions",fn:t(({row:e})=>[n(te,{row:e.data,table:c.value,"load-data":k},null,8,["row","table"])])}:void 0]),1032,["columns"]),a(m).currentUser.is_owner?(p(),W("div",ae,[n(L,{class:"mt-8 mb-2"}),n(U,{modelValue:a(i),"onUpdate:modelValue":_[0]||(_[0]=e=>Z(i)?i.value=e:null),disabled:a(u),title:l.$t("settings.tax_types.tax_per_item"),description:l.$t("settings.tax_types.tax_setting_description")},null,8,["modelValue","disabled","title","description"])])):N("",!0)]),_:2},[a(m).hasAbilities(a(f).CREATE_TAX_TYPE)?{name:"action",fn:t(()=>[n(A,{type:"submit",variant:"primary-outline",onClick:I},{left:t(e=>[n(y,{class:Q(e.class),name:"PlusIcon"},null,8,["class"])]),default:t(()=>[T(" "+B(l.$t("settings.tax_types.add_new_tax")),1)]),_:1})])}:void 0]),1032,["title","description"])}}};export{le as default};
import{J as R,B as d,a0 as I,a as S,k as J,r as h,o as n,l as D,w,h as t,t as a,u as s,f as v,i as $,j as y,q as O,ag as Y,e as i,F as V,y as q,m as G}from"./vendor.01d0adc5.js";import{u as Q,j as W,b as X,h as T}from"./main.832b14c7.js";import{L as Z}from"./LoadingIcon.cfb2fcf9.js";import{u as ee}from"./exchange-rate.45b62b37.js";const te={class:"pb-8 ml-0"},ae={class:"text-sm not-italic font-medium input-label"},se={class:"box-border flex w-16 p-3 my-2 text-sm text-gray-600 bg-gray-200 border border-gray-200 border-solid rounded-md version"},ne={key:1,class:"mt-4 content"},ie={class:"rounded-md bg-primary-50 p-4 mb-3"},re={class:"flex"},le={class:"shrink-0"},oe={class:"ml-3"},de={class:"text-sm font-medium text-primary-800"},pe={class:"mt-2 text-sm text-primary-700"},ue={class:"text-sm not-italic font-medium input-label"},ce=t("br",null,null,-1),me={class:"box-border flex w-16 p-3 my-2 text-sm text-gray-600 bg-gray-200 border border-gray-200 border-solid rounded-md version"},_e=["innerHTML"],ge={class:"text-sm not-italic font-medium input-label"},fe={class:"w-1/2 mt-2 border-2 border-gray-200 BaseTable-fixed"},he={width:"70%",class:"p-2 text-sm truncate"},ve={width:"30%",class:"p-2 text-sm text-right"},ye={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 bg-green-500 rounded-full"},be={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 bg-red-500 rounded-full"},xe={key:2,class:"relative flex justify-between mt-4 content"},we={class:"m-0 mb-3 font-medium sw-section-title"},ke={class:"mb-8 text-sm leading-snug text-gray-500",style:{"max-width":"480px"}},Be={key:3,class:"w-full p-0 list-none"},Ue={class:"m-0 text-sm leading-8"},Se={class:"flex flex-row items-center"},$e={key:0,class:"mr-3 text-xs text-gray-500"},De={setup(Ce){const k=Q(),z=W(),{t:p,tm:Ne}=R();X(),ee();let b=d(!1),c=d(!1),C=d(""),B=d(""),m=d(null),N=d(null),l=d(!1);const U=I([{translationKey:"settings.update_app.download_zip_file",stepUrl:"/api/v1/update/download",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.unzipping_package",stepUrl:"/api/v1/update/unzip",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.copying_files",stepUrl:"/api/v1/update/copy",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.deleting_files",stepUrl:"/api/v1/update/delete",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.running_migrations",stepUrl:"/api/v1/update/migrate",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.finishing_update",stepUrl:"/api/v1/update/finish",time:null,started:!1,completed:!1}]),x=I({isMinor:Boolean,installed:"",version:""});let E=d(null);window.addEventListener("beforeunload",e=>{l.value&&(e.returnValue="Update is in progress!")}),S.get("/api/v1/app/version").then(e=>{B.value=e.data.version});const F=J(()=>m.value!==null?Object.keys(m.value).every(e=>m.value[e]):!0);function H(e){switch(K(e)){case"pending":return"text-primary-800 bg-gray-200";case"finished":return"text-teal-500 bg-teal-100";case"running":return"text-blue-400 bg-blue-100";case"error":return"text-danger bg-red-200";default:return""}}async function M(){try{c.value=!0;let e=await S.get("/api/v1/check/update");if(c.value=!1,!e.data.version){k.showNotification({title:"Info!",type:"info",message:p("settings.update_app.latest_message")});return}e.data&&(x.isMinor=e.data.is_minor,x.version=e.data.version.version,C.value=e.data.version.description,m.value=e.data.version.extensions,b.value=!0,E.value=e.data.version.minimum_php_version,N.value=e.data.version.deleted_files)}catch(e){b.value=!1,c.value=!1,T(e)}}function j(){z.openDialog({title:p("general.are_you_sure"),message:p("settings.update_app.update_warning"),yesLabel:p("general.ok"),noLabel:p("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async e=>{if(e){let _=null;if(!F.value)return k.showNotification({type:"error",message:"Your current configuration does not match the update requirements. Please try again after all the requirements are fulfilled."}),!0;for(let u=0;u<U.length;u++){let r=U[u];try{l.value=!0,r.started=!0;let g={version:x.version,installed:B.value,deleted_files:N.value,path:_||null},f=await S.post(r.stepUrl,g);r.completed=!0,f.data&&f.data.path&&(_=f.data.path),r.translationKey=="settings.update_app.finishing_update"&&(l.value=!1,k.showNotification({type:"success",message:p("settings.update_app.update_success")}),setTimeout(()=>{location.reload()},3e3))}catch(g){return r.started=!1,r.completed=!0,T(g),A(r.translationKey),!1}}}})}function A(e){if(p(e).value){j();return}l.value=!1}function K(e){return e.started&&e.completed?"finished":e.started&&!e.completed?"running":!e.started&&!e.completed?"pending":"error"}return(e,_)=>{const u=h("BaseButton"),r=h("BaseDivider"),g=h("BaseHeading"),f=h("BaseIcon"),P=h("BaseSettingCard");return n(),D(P,{title:e.$t("settings.update_app.title"),description:e.$t("settings.update_app.description")},{default:w(()=>[t("div",te,[t("label",ae,a(e.$t("settings.update_app.current_version")),1),t("div",se,a(s(B)),1),v(u,{loading:s(c),disabled:s(c)||s(l),variant:"primary-outline",class:"mt-6",onClick:M},{default:w(()=>[$(a(e.$t("settings.update_app.check_update")),1)]),_:1},8,["loading","disabled"]),s(b)?(n(),D(r,{key:0,class:"mt-6 mb-4"})):y("",!0),s(b)?O((n(),i("div",ne,[v(g,{type:"heading-title",class:"mb-2"},{default:w(()=>[$(a(e.$t("settings.update_app.avail_update")),1)]),_:1}),t("div",ie,[t("div",re,[t("div",le,[v(f,{name:"InformationCircleIcon",class:"h-5 w-5 text-primary-400","aria-hidden":"true"})]),t("div",oe,[t("h3",de,a(e.$t("general.note")),1),t("div",pe,[t("p",null,a(e.$t("settings.update_app.update_warning")),1)])])])]),t("label",ue,a(e.$t("settings.update_app.next_version")),1),ce,t("div",me,a(s(x).version),1),t("div",{class:"pl-5 mt-4 mb-8 text-sm leading-snug text-gray-500 update-description",style:{"white-space":"pre-wrap","max-width":"480px"},innerHTML:s(C)},null,8,_e),t("label",ge,a(e.$t("settings.update_app.requirements")),1),t("table",fe,[(n(!0),i(V,null,q(s(m),(o,L)=>(n(),i("tr",{key:L,class:"p-2 border-2 border-gray-200"},[t("td",he,a(L),1),t("td",ve,[o?(n(),i("span",ye)):(n(),i("span",be))])]))),128))]),v(u,{class:"mt-10",variant:"primary",onClick:j},{default:w(()=>[$(a(e.$t("settings.update_app.update")),1)]),_:1})],512)),[[Y,!s(l)]]):y("",!0),s(l)?(n(),i("div",xe,[t("div",null,[t("h6",we,a(e.$t("settings.update_app.update_progress")),1),t("p",ke,a(e.$t("settings.update_app.progress_text")),1)]),v(Z,{class:"absolute right-0 h-6 m-1 animate-spin text-primary-400"})])):y("",!0),s(l)?(n(),i("ul",Be,[(n(!0),i(V,null,q(s(U),o=>(n(),i("li",{key:o.stepUrl,class:"flex justify-between w-full py-3 border-b border-gray-200 border-solid last:border-b-0"},[t("p",Ue,a(e.$t(o.translationKey)),1),t("div",Se,[o.time?(n(),i("span",$e,a(o.time),1)):y("",!0),t("span",{class:G([H(o),"block py-1 text-sm text-center uppercase rounded-full"]),style:{width:"88px"}},a(K(o)),3)])]))),128))])):y("",!0)])]),_:1},8,["title","description"])}}};export{De as default};
import{G as Q,aN as W,J as X,a0 as N,B as Y,ah as Z,k as h,C as ee,A as te,r as d,o as m,l as y,w as o,f as a,h as n,u as r,i as E,t as p,j as B,e as S,y as ae,m as se,F as oe}from"./vendor.01d0adc5.js";import{j as re,u as le,w as V,x as ne}from"./main.832b14c7.js";import{u as ie}from"./estimate.5745bb55.js";import{u as de}from"./global.8697213a.js";import"./auth.77d12976.js";const me={class:"mr-3 text-sm"},ce={class:"mr-3 text-sm"},ue={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 bg-white w-88 xl:block"},_e={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},pe={class:"flex ml-3",role:"group","aria-label":"First group"},fe={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},ye={class:"px-2"},be={class:"px-2"},ge={class:"px-2"},he={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},Be={class:"flex-2"},ve={class:"mb-1 text-md not-italic font-medium leading-5 text-gray-500 capitalize"},xe={class:"flex-1 whitespace-nowrap right"},we={class:"text-sm text-right text-gray-500 non-italic"},ke={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Ee={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Se=["src"],De={setup(Ve){const c=Q(),F=W(),i=ie(),f=de(),j=re(),{tm:I,t:u}=X();let v=N({}),t=N({orderBy:"",orderByField:"",estimate_number:""}),x=Y(!1);Z("utils"),le();const R=h(()=>i.selectedViewEstimate),$=h(()=>t.orderBy==="asc"||t.orderBy==null);h(()=>$.value?I("general.ascending"):I("general.descending"));const C=h(()=>v.unique_hash?`/estimates/pdf/${v.unique_hash}`:!1);ee(c,()=>{D()}),z(),D(),_=te.exports.debounce(_,500);function T(e){return c.params.id==e}async function z(){await i.fetchEstimate({limit:"all"},f.companySlug),setTimeout(()=>{A()},500)}async function D(){if(c&&c.params.id){let e=await i.fetchViewEstimate({id:c.params.id},f.companySlug);e.data&&Object.assign(v,e.data.data)}}function A(){const e=document.getElementById(`estimate-${c.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function _(){let e={};t.estimate_number!==""&&t.estimate_number!==null&&t.estimate_number!==void 0&&(e.estimate_number=t.estimate_number),t.orderBy!==null&&t.orderBy!==void 0&&(e.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(e.orderByField=t.orderByField),x.value=!0;try{let l=await i.searchEstimate(e,f.companySlug);x.value=!1,l.data.data&&(i.estimates=l.data.data)}catch{x.value=!1}}function L(){return t.orderBy==="asc"?(t.orderBy="desc",_(),!0):(t.orderBy="asc",_(),!0)}async function P(){j.openDialog({title:u("general.are_you_sure"),message:u("estimates.confirm_mark_as_accepted",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"primary",size:"lg",hideNoButton:!1}).then(async e=>{let l={slug:f.companySlug,id:c.params.id,status:"ACCEPTED"};e&&(i.acceptEstimate(l),F.push({name:"estimates.dashboard"}))})}async function U(){j.openDialog({title:u("general.are_you_sure"),message:u("estimates.confirm_mark_as_rejected",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"primary",size:"lg",hideNoButton:!1}).then(async e=>{let l={slug:f.companySlug,id:c.params.id,status:"REJECTED"};e&&(i.rejectEstimate(l),F.push({name:"estimates.dashboard"}))})}return(e,l)=>{const b=d("BaseButton"),G=d("BasePageHeader"),g=d("BaseIcon"),q=d("BaseInput"),w=d("BaseRadio"),k=d("BaseInputGroup"),H=d("BaseEstimateStatusBadge"),J=d("BaseFormatMoney"),M=d("router-link"),O=d("BasePage");return m(),y(O,{class:"xl:pl-96"},{default:o(()=>[a(G,{title:r(R).estimate_number},{actions:o(()=>[n("div",me,[r(i).selectedViewEstimate.status==="DRAFT"?(m(),y(b,{key:0,variant:"primary",onClick:P},{default:o(()=>[E(p(e.$t("estimates.accept_estimate")),1)]),_:1})):B("",!0)]),n("div",ce,[r(i).selectedViewEstimate.status==="DRAFT"?(m(),y(b,{key:0,variant:"primary-outline",onClick:U},{default:o(()=>[E(p(e.$t("estimates.reject_estimate")),1)]),_:1})):B("",!0)])]),_:1},8,["title"]),n("div",ue,[n("div",_e,[a(q,{modelValue:r(t).estimate_number,"onUpdate:modelValue":l[0]||(l[0]=s=>r(t).estimate_number=s),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:_},{right:o(()=>[a(g,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"]),n("div",pe,[a(ne,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:o(()=>[a(b,{variant:"gray"},{default:o(()=>[a(g,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:o(()=>[n("div",fe,p(e.$t("general.sort_by")),1),n("div",ye,[a(V,{class:"rounded-md pt-3 hover:rounded-md"},{default:o(()=>[a(k,{class:"-mt-3 font-normal"},{default:o(()=>[a(w,{id:"filter_estimate_date",modelValue:r(t).orderByField,"onUpdate:modelValue":l[1]||(l[1]=s=>r(t).orderByField=s),label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date",onChange:_},null,8,["modelValue","label"])]),_:1})]),_:1})]),n("div",be,[a(V,{class:"rounded-md pt-3 hover:rounded-md"},{default:o(()=>[a(k,{class:"-mt-3 font-normal"},{default:o(()=>[a(w,{id:"filter_due_date",modelValue:r(t).orderByField,"onUpdate:modelValue":[l[2]||(l[2]=s=>r(t).orderByField=s),_],label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),n("div",ge,[a(V,{class:"rounded-md pt-3 hover:rounded-md"},{default:o(()=>[a(k,{class:"-mt-3 font-normal"},{default:o(()=>[a(w,{id:"filter_estimate_number",modelValue:r(t).orderByField,"onUpdate:modelValue":[l[3]||(l[3]=s=>r(t).orderByField=s),_],label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),a(b,{class:"ml-1",variant:"white",onClick:L},{default:o(()=>[r($)?(m(),y(g,{key:0,name:"SortAscendingIcon",class:"h-5"})):(m(),y(g,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),n("div",he,[(m(!0),S(oe,null,ae(r(i).estimates,(s,K)=>(m(),y(M,{id:"estimate-"+s.id,key:K,to:`/${r(f).companySlug}/customer/estimates/${s.id}/view`,class:se(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":T(s.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[n("div",Be,[n("div",ve,p(s.estimate_number),1),a(H,{status:s.status},{default:o(()=>[E(p(s.status),1)]),_:2},1032,["status"])]),n("div",xe,[a(J,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:s.total,currency:s.currency},null,8,["amount","currency"]),n("div",we,p(s.formatted_estimate_date),1)])]),_:2},1032,["id","to","class"]))),128)),r(i).estimates.length?B("",!0):(m(),S("p",ke,p(e.$t("estimates.no_matching_estimates")),1))])]),n("div",Ee,[r(C)?(m(),S("iframe",{key:0,src:r(C),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,Se)):B("",!0)])]),_:1})}}};export{De as default};
import{G as Q,J as W,a0 as P,B as y,ah as X,k as B,C as Y,A as Z,r as d,o as u,l as b,w as n,f as a,u as s,m as z,i as V,t as m,j as k,h as i,e as F,y as ee,F as te}from"./vendor.01d0adc5.js";import{u as oe,w as S,x as ae}from"./main.832b14c7.js";import{u as se}from"./invoice.fd03309f.js";import{u as ne}from"./global.8697213a.js";import"./auth.77d12976.js";const re={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 bg-white w-88 xl:block"},ie={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},le={class:"flex ml-3",role:"group","aria-label":"First group"},de={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},ce={class:"px-2"},ue={class:"px-2"},me={class:"px-2"},pe={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},fe={class:"flex-2"},_e={class:"mb-1 not-italic font-medium leading-5 text-gray-500 capitalize text-md"},ve={class:"flex-1 whitespace-nowrap right"},ye={class:"text-sm text-right text-gray-500 non-italic"},be={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},he={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},ge=["src"],Fe={setup(Be){const p=Q(),l=se(),_=ne(),{tm:$}=W();let h=P({}),o=P({orderBy:"",orderByField:"",invoice_number:""});y(null),y(null);let w=y(!1),N=y(!1);y(!1),X("utils"),oe();const R=B(()=>l.selectedViewInvoice),j=B(()=>o.orderBy==="asc"||o.orderBy==null);B(()=>j.value?$("general.ascending"):$("general.descending"));const C=B(()=>h.unique_hash?`/invoices/pdf/${h.unique_hash}`:!1);Y(p,()=>{D()}),A(),D(),c=Z.exports.debounce(c,500);function U(e){return p.params.id==e}async function A(){await l.fetchInvoices({limit:"all"},_.companySlug),setTimeout(()=>{G()},500)}async function D(){if(p&&p.params.id){let e=await l.fetchViewInvoice({id:p.params.id},_.companySlug);e.data&&Object.assign(h,e.data.data)}}function G(){const e=document.getElementById(`invoice-${p.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function c(){let e={};o.invoice_number!==""&&o.invoice_number!==null&&o.invoice_number!==void 0&&(e.invoice_number=o.invoice_number),o.orderBy!==null&&o.orderBy!==void 0&&(e.orderBy=o.orderBy),o.orderByField!==null&&o.orderByField!==void 0&&(e.orderByField=o.orderByField),w.value=!0;try{let r=await l.searchInvoice(e,_.companySlug);w.value=!1,r.data.data&&(l.invoices=r.data.data)}catch{w.value=!1}}function T(){return o.orderBy==="asc"?(o.orderBy="desc",c(),!0):(o.orderBy="asc",c(),!0)}function q(){router.push({name:"invoice.portal.payment",params:{id:l.selectedViewInvoice.id,company:l.selectedViewInvoice.company.slug}})}return(e,r)=>{const v=d("BaseIcon"),g=d("BaseButton"),E=d("BasePageHeader"),L=d("BaseInput"),I=d("BaseRadio"),x=d("BaseInputGroup"),M=d("BaseInvoiceStatusBadge"),H=d("BaseFormatMoney"),O=d("router-link"),J=d("BasePage");return u(),b(J,{class:"xl:pl-96"},{default:n(()=>[a(E,{title:s(R).invoice_number},{actions:n(()=>{var t,f;return[a(g,{disabled:s(N),variant:"primary-outline",class:"mr-2",tag:"a",href:`/invoices/pdf/${s(h).unique_hash}`,download:""},{left:n(K=>[a(v,{name:"DownloadIcon",class:z(K.class)},null,8,["class"]),V(" "+m(e.$t("invoices.download")),1)]),_:1},8,["disabled","href"]),((f=(t=s(l))==null?void 0:t.selectedViewInvoice)==null?void 0:f.paid_status)!=="PAID"&&s(_).enabledModules.includes("Payments")?(u(),b(g,{key:0,variant:"primary",onClick:q},{default:n(()=>[V(m(e.$t("invoices.pay_invoice")),1)]),_:1})):k("",!0)]}),_:1},8,["title"]),i("div",re,[i("div",ie,[a(L,{modelValue:s(o).invoice_number,"onUpdate:modelValue":r[0]||(r[0]=t=>s(o).invoice_number=t),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:c},{right:n(()=>[a(v,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"]),i("div",le,[a(ae,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:n(()=>[a(g,{variant:"gray"},{default:n(()=>[a(v,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:n(()=>[i("div",de,m(e.$t("general.sort_by")),1),i("div",ce,[a(S,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(I,{id:"filter_invoice_date",modelValue:s(o).orderByField,"onUpdate:modelValue":[r[1]||(r[1]=t=>s(o).orderByField=t),c],label:e.$t("invoices.invoice_date"),name:"filter",size:"sm",value:"invoice_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),i("div",ue,[a(S,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(I,{id:"filter_due_date",modelValue:s(o).orderByField,"onUpdate:modelValue":[r[2]||(r[2]=t=>s(o).orderByField=t),c],label:e.$t("invoices.due_date"),name:"filter",size:"sm",value:"due_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),i("div",me,[a(S,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(I,{id:"filter_invoice_number",modelValue:s(o).orderByField,"onUpdate:modelValue":[r[3]||(r[3]=t=>s(o).orderByField=t),c],label:e.$t("invoices.invoice_number"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),a(g,{class:"ml-1",variant:"white",onClick:T},{default:n(()=>[s(j)?(u(),b(v,{key:0,name:"SortAscendingIcon",class:"h-5"})):(u(),b(v,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),i("div",pe,[(u(!0),F(te,null,ee(s(l).invoices,(t,f)=>(u(),b(O,{id:"invoice-"+t.id,key:f,to:`/${s(_).companySlug}/customer/invoices/${t.id}/view`,class:z(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":U(t.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>[i("div",fe,[i("div",_e,m(t.invoice_number),1),a(M,{status:t.status},{default:n(()=>[V(m(t.status),1)]),_:2},1032,["status"])]),i("div",ve,[a(H,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:t.total,currency:t.currency},null,8,["amount","currency"]),i("div",ye,m(t.formatted_invoice_date),1)])]),_:2},1032,["id","to","class"]))),128)),s(l).invoices.length?k("",!0):(u(),F("p",be,m(e.$t("invoices.no_matching_invoices")),1))])]),i("div",he,[s(C)?(u(),F("iframe",{key:0,ref:(t,f)=>{f.report=t},src:s(C),class:"flex-1 border border-gray-400 border-solid rounded-md",onClick:r[4]||(r[4]=(...t)=>e.ViewReportsPDF&&e.ViewReportsPDF(...t))},null,8,ge)):k("",!0)])]),_:1})}}};export{Fe as default};
var re=Object.defineProperty;var C=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var L=(p,c,s)=>c in p?re(p,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[c]=s,M=(p,c)=>{for(var s in c||(c={}))ne.call(c,s)&&L(p,s,c[s]);if(C)for(var s of C(c))ie.call(c,s)&&L(p,s,c[s]);return p};import{J as de,ah as ue,B as f,G as ce,aN as me,a0 as fe,k as B,C as pe,A as _e,r as d,o as m,e as E,f as a,l as b,w as r,h as u,u as l,i as $,t as g,j as v,F as R,y as ye,m as be}from"./vendor.01d0adc5.js";import{_ as ge}from"./EstimateIndexDropdown.5b4a2113.js";import{c as ve,k as he,u as xe,j as Be,e as Ee,g as z}from"./main.832b14c7.js";import{_ as ke}from"./SendEstimateModal.63b9a1be.js";import{L as Se}from"./LoadingIcon.cfb2fcf9.js";import"./mail-driver.1b5e2a8f.js";const we={class:"mr-3 text-sm"},Te={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},Ie={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},De={class:"mb-6"},Fe={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},$e={class:"px-4 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Ve={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},Ae={class:"flex-2"},je={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Ne={class:"flex-1 whitespace-nowrap right"},Ce={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Le={class:"flex justify-center p-4 items-center"},Me={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Re={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},ze=["src"],We={setup(p){const c=ve(),s=he();xe();const P=Be(),V=Ee(),{t:y}=de();ue("$utils"),f(null),f(null);const i=f(null);f(null);const h=ce();me(),f(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]);const k=f(!1),U=f(!1);f(!1);const A=f(!1),x=f(!1),S=f(!1),t=fe({orderBy:null,orderByField:null,searchText:null}),G=B(()=>i.value.estimate_number),j=B(()=>t.orderBy==="asc"||t.orderBy==null);B(()=>j.value?y("general.ascending"):y("general.descending"));const H=B(()=>`/estimates/pdf/${i.value.unique_hash}`);B(()=>i.value&&i.value.id?estimate.value.id:null),pe(h,(e,n)=>{e.name==="estimates.view"&&N()}),q(),N(),_=_e.exports.debounce(_,500);function J(e){return h.params.id==e}async function q(){x.value=!0,await s.fetchEstimates(h.params.id),x.value=!1,setTimeout(()=>{O()},500)}function O(){const e=document.getElementById(`estimate-${h.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function N(){S.value=!0;let e=await s.fetchEstimate(h.params.id);e.data&&(S.value=!1,i.value=M({},e.data.data))}async function _(){let e="";t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(e+=`search=${t.searchText}&`),t.orderBy!==null&&t.orderBy!==void 0&&(e+=`orderBy=${t.orderBy}&`),t.orderByField!==null&&t.orderByField!==void 0&&(e+=`orderByField=${t.orderByField}`),A.value=!0;let n=await s.searchEstimate(e);A.value=!1,n.data&&(s.estimates=n.data.data)}function W(){return t.orderBy==="asc"?(t.orderBy="desc",_(),!0):(t.orderBy="asc",_(),!0)}async function X(){P.openDialog({title:y("general.are_you_sure"),message:y("estimates.confirm_mark_as_sent"),yesLabel:y("general.ok"),noLabel:y("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(e=>{k.value=!1,e&&(s.markAsSent({id:i.value.id,status:"SENT"}),i.value.status="SENT",k.value=!0),k.value=!1})}async function K(e){c.openModal({title:y("estimates.send_estimate"),componentName:"SendEstimateModal",id:i.value.id,data:i.value})}return(e,n)=>{const w=d("BaseButton"),Q=d("BasePageHeader"),T=d("BaseIcon"),Y=d("BaseInput"),I=d("BaseRadio"),D=d("BaseInputGroup"),F=d("BaseDropdownItem"),Z=d("BaseDropdown"),ee=d("BaseText"),te=d("BaseEstimateStatusBadge"),ae=d("BaseFormatMoney"),se=d("router-link"),oe=d("BasePage");return m(),E(R,null,[a(ke),i.value?(m(),b(oe,{key:0,class:"xl:pl-96 xl:ml-8"},{default:r(()=>[a(Q,{title:l(G)},{actions:r(()=>[u("div",we,[i.value.status==="DRAFT"&&l(V).hasAbilities(l(z).EDIT_ESTIMATE)?(m(),b(w,{key:0,disabled:k.value,"content-loading":S.value,variant:"primary-outline",onClick:X},{default:r(()=>[$(g(e.$t("estimates.mark_as_sent")),1)]),_:1},8,["disabled","content-loading"])):v("",!0)]),i.value.status==="DRAFT"&&l(V).hasAbilities(l(z).SEND_ESTIMATE)?(m(),b(w,{key:0,disabled:U.value,"content-loading":S.value,variant:"primary",class:"text-sm",onClick:K},{default:r(()=>[$(g(e.$t("estimates.send_estimate")),1)]),_:1},8,["disabled","content-loading"])):v("",!0),a(ge,{class:"ml-3",row:i.value},null,8,["row"])]),_:1},8,["title"]),u("div",Te,[u("div",Ie,[u("div",De,[a(Y,{modelValue:l(t).searchText,"onUpdate:modelValue":n[0]||(n[0]=o=>l(t).searchText=o),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:n[1]||(n[1]=o=>_())},{right:r(()=>[a(T,{name:"SearchIcon",class:"text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",Fe,[a(Z,{class:"ml-3",position:"bottom-start","width-class":"w-45","position-class":"left-0"},{activator:r(()=>[a(w,{size:"md",variant:"gray"},{default:r(()=>[a(T,{name:"FilterIcon"})]),_:1})]),default:r(()=>[u("div",$e,g(e.$t("general.sort_by")),1),a(F,{class:"flex px-4 py-2 cursor-pointer"},{default:r(()=>[a(D,{class:"-mt-3 font-normal"},{default:r(()=>[a(I,{id:"filter_estimate_date",modelValue:l(t).orderByField,"onUpdate:modelValue":[n[2]||(n[2]=o=>l(t).orderByField=o),_],label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),a(F,{class:"flex px-4 py-2 cursor-pointer"},{default:r(()=>[a(D,{class:"-mt-3 font-normal"},{default:r(()=>[a(I,{id:"filter_due_date",modelValue:l(t).orderByField,"onUpdate:modelValue":[n[3]||(n[3]=o=>l(t).orderByField=o),_],label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),a(F,{class:"flex px-4 py-2 cursor-pointer"},{default:r(()=>[a(D,{class:"-mt-3 font-normal"},{default:r(()=>[a(I,{id:"filter_estimate_number",modelValue:l(t).orderByField,"onUpdate:modelValue":[n[4]||(n[4]=o=>l(t).orderByField=o),_],label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),a(w,{class:"ml-1",size:"md",variant:"gray",onClick:W},{default:r(()=>[l(j)?(m(),b(T,{key:0,name:"SortAscendingIcon"})):(m(),b(T,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),l(s)&&l(s).estimates?(m(),E("div",Ve,[(m(!0),E(R,null,ye(l(s).estimates,(o,le)=>(m(),E("div",{key:le},[o&&!x.value?(m(),b(se,{key:0,id:"estimate-"+o.id,to:`/admin/estimates/${o.id}/view`,class:be(["flex justify-between side-estimate p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":J(o.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:r(()=>[u("div",Ae,[a(ee,{text:o.customer.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),u("div",je,g(o.estimate_number),1),a(te,{status:o.status,class:"px-1 text-xs"},{default:r(()=>[$(g(o.status),1)]),_:2},1032,["status"])]),u("div",Ne,[a(ae,{amount:o.total,currency:o.customer.currency,class:"block mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900"},null,8,["amount","currency"]),u("div",Ce,g(o.formatted_estimate_date),1)])]),_:2},1032,["id","to","class"])):v("",!0)]))),128)),u("div",Le,[x.value?(m(),b(Se,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):v("",!0)]),!l(s).estimates.length&&!x.value?(m(),E("p",Me,g(e.$t("estimates.no_matching_estimates")),1)):v("",!0)])):v("",!0)]),u("div",Re,[u("iframe",{src:`${l(H)}`,class:"flex-1 border border-gray-400 border-solid rounded-md bg-white frame-style"},null,8,ze)])]),_:1})):v("",!0)],64)}}};export{We as default};
import{G as M,J as O,a0 as P,B as w,ah as J,k as b,C as K,A as Q,r as d,o as c,l as h,w as n,f as a,u as s,m as j,i as W,t as y,h as r,e as V,y as X,F as Y,j as C}from"./vendor.01d0adc5.js";import{u as Z,w as F,x as ee}from"./main.832b14c7.js";import{u as te}from"./payment.b36842df.js";import{u as ae}from"./global.8697213a.js";import"./auth.77d12976.js";const oe={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 bg-white w-88 xl:block"},se={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},ne={class:"flex ml-3",role:"group","aria-label":"First group"},re={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},le={class:"px-2"},de={class:"px-2"},ie={class:"px-2"},me={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},ce={class:"flex-2"},ue={class:"mb-1 text-md not-italic font-medium leading-5 text-gray-500 capitalize"},pe={class:"flex-1 whitespace-nowrap right"},ye={class:"text-sm text-right text-gray-500 non-italic"},fe={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},_e={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},be=["src"],Fe={setup(he){const u=M(),m=te(),f=ae(),{tm:k,t:ge}=O();let _=P({}),e=P({orderBy:"",orderByField:"",payment_number:""}),g=w(!1),z=w(!1);w(!1),J("utils"),Z();const D=b(()=>m.selectedViewPayment),S=b(()=>e.orderBy==="asc"||e.orderBy==null);b(()=>S.value?k("general.ascending"):k("general.descending"));const I=b(()=>_.unique_hash?`/payments/pdf/${_.unique_hash}`:!1);K(u,()=>{$()}),U(),$(),i=Q.exports.debounce(i,500);function N(t){return u.params.id==t}async function U(){await m.fetchPayments({limit:"all"},f.companySlug),setTimeout(()=>{G()},500)}async function $(){if(u&&u.params.id){let t=await m.fetchViewPayment({id:u.params.id},f.companySlug);t.data&&Object.assign(_,t.data.data)}}function G(){const t=document.getElementById(`payment-${u.params.id}`);t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("shake"))}async function i(){let t={};e.payment_number!==""&&e.payment_number!==null&&e.payment_number!==void 0&&(t.payment_number=e.payment_number),e.orderBy!==null&&e.orderBy!==void 0&&(t.orderBy=e.orderBy),e.orderByField!==null&&e.orderByField!==void 0&&(t.orderByField=e.orderByField),g.value=!0;try{let l=await m.searchPayment(t,f.companySlug);g.value=!1,l.data.data&&(m.payments=l.data.data)}catch{g.value=!1}}function T(){return e.orderBy==="asc"?(e.orderBy="desc",i(),!0):(e.orderBy="asc",i(),!0)}return(t,l)=>{const p=d("BaseIcon"),B=d("BaseButton"),q=d("BasePageHeader"),A=d("BaseInput"),v=d("BaseRadio"),x=d("BaseInputGroup"),E=d("BaseFormatMoney"),L=d("router-link"),R=d("BasePage");return c(),h(R,{class:"xl:pl-96"},{default:n(()=>[a(q,{title:s(D).payment_number},{actions:n(()=>[a(B,{disabled:s(z),variant:"primary-outline",tag:"a",download:"",href:`/payments/pdf/${s(_).unique_hash}`},{left:n(o=>[a(p,{name:"DownloadIcon",class:j(o.class)},null,8,["class"]),W(" "+y(t.$t("general.download")),1)]),_:1},8,["disabled","href"])]),_:1},8,["title"]),r("div",oe,[r("div",se,[a(A,{modelValue:s(e).payment_number,"onUpdate:modelValue":l[0]||(l[0]=o=>s(e).payment_number=o),placeholder:t.$t("general.search"),type:"text",variant:"gray",onInput:i},{right:n(()=>[a(p,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"]),r("div",ne,[a(ee,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:n(()=>[a(B,{variant:"gray"},{default:n(()=>[a(p,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:n(()=>[r("div",re,y(t.$t("general.sort_by")),1),r("div",le,[a(F,{class:"rounded-md pt-3 hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(v,{id:"filter_invoice_number",modelValue:s(e).orderByField,"onUpdate:modelValue":[l[1]||(l[1]=o=>s(e).orderByField=o),i],label:t.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",de,[a(F,{class:"rounded-md pt-3 hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(v,{id:"filter_payment_date",modelValue:s(e).orderByField,"onUpdate:modelValue":[l[2]||(l[2]=o=>s(e).orderByField=o),i],label:t.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",ie,[a(F,{class:"rounded-md pt-3 hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(v,{id:"filter_payment_number",modelValue:s(e).orderByField,"onUpdate:modelValue":[l[3]||(l[3]=o=>s(e).orderByField=o),i],label:t.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),a(B,{class:"ml-1",variant:"white",onClick:T},{default:n(()=>[s(S)?(c(),h(p,{key:0,name:"SortAscendingIcon",class:"h-5"})):(c(),h(p,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),r("div",me,[(c(!0),V(Y,null,X(s(m).payments,(o,H)=>(c(),h(L,{id:"payment-"+o.id,key:H,to:`/${s(f).companySlug}/customer/payments/${o.id}/view`,class:j(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":N(o.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>[r("div",ce,[r("div",ue,y(o.payment_number),1)]),r("div",pe,[a(E,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:o.amount,currency:o.currency},null,8,["amount","currency"]),r("div",ye,y(o.formatted_payment_date),1)])]),_:2},1032,["id","to","class"]))),128)),s(m).payments.length?C("",!0):(c(),V("p",fe,y(t.$t("payments.no_matching_payments")),1))])]),r("div",_e,[s(I)?(c(),V("iframe",{key:0,src:s(I),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,be)):C("",!0)])]),_:1})}}};export{Fe as default};
var ne=Object.defineProperty;var L=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var M=(_,m,o)=>m in _?ne(_,m,{enumerable:!0,configurable:!0,writable:!0,value:o}):_[m]=o,z=(_,m)=>{for(var o in m||(m={}))re.call(m,o)&&M(_,o,m[o]);if(L)for(var o of L(m))le.call(m,o)&&M(_,o,m[o]);return _};import{J as ie,ah as de,B as f,G as ce,aN as ue,a0 as me,k as x,C as fe,A as ve,r as c,o as d,e as I,f as a,l as v,w as r,h as u,u as s,i as w,t as b,j as p,F as P,y as pe,m as _e}from"./vendor.01d0adc5.js";import{_ as ye}from"./InvoiceIndexDropdown.a0cb5742.js";import{c as be,i as ge,u as he,e as Be,j as xe,g as F}from"./main.832b14c7.js";import{_ as Ie}from"./SendInvoiceModal.35678ab1.js";import{L as ke}from"./LoadingIcon.cfb2fcf9.js";import"./mail-driver.1b5e2a8f.js";const Ee={class:"text-sm mr-3"},Se={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},we={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},Te={class:"mb-6"},De={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},Ve={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},$e={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},Fe={class:"flex-2"},Ne={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Ae={class:"flex-1 whitespace-nowrap right"},Ce={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},je={class:"flex justify-center p-4 items-center"},Re={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Le={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Me=["src"],We={setup(_){const m=be(),o=ge();he();const T=Be(),U=xe(),{t:g}=ie();de("$utils"),f(null),f(null);const l=f(null);f(null);const k=ce();ue(),f(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]);const E=f(!1),O=f(!1);f(!1);const N=f(!1),h=f(!1),t=me({orderBy:null,orderByField:null,searchText:null}),G=x(()=>l.value.invoice_number),A=x(()=>t.orderBy==="asc"||t.orderBy==null);x(()=>A.value?g("general.ascending"):g("general.descending"));const H=x(()=>`/invoices/pdf/${l.value.unique_hash}`);x(()=>l.value&&l.value.id?invoice.value.id:null),fe(k,(e,i)=>{e.name==="invoices.view"&&j()});async function J(){U.openDialog({title:g("general.are_you_sure"),message:g("invoices.invoice_mark_as_sent"),yesLabel:g("general.ok"),noLabel:g("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(async e=>{E.value=!1,e&&(await o.markAsSent({id:l.value.id,status:"SENT"}),l.value.status="SENT",E.value=!0),E.value=!1})}async function W(e){m.openModal({title:g("invoices.send_invoice"),componentName:"SendInvoiceModal",id:l.value.id,data:l.value})}function q(e){return k.params.id==e}async function C(){h.value=!0,await o.fetchInvoices(),h.value=!1,setTimeout(()=>{X()},500)}function X(){const e=document.getElementById(`invoice-${k.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function j(){let e=await o.fetchInvoice(k.params.id);e.data&&(l.value=z({},e.data.data))}async function y(){let e="";t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(e+=`search=${t.searchText}&`),t.orderBy!==null&&t.orderBy!==void 0&&(e+=`orderBy=${t.orderBy}&`),t.orderByField!==null&&t.orderByField!==void 0&&(e+=`orderByField=${t.orderByField}`),N.value=!0;let i=await o.searchInvoice(e);N.value=!1,i.data&&(o.invoices=i.data.data)}function Y(){return t.orderBy==="asc"?(t.orderBy="desc",y(),!0):(t.orderBy="asc",y(),!0)}return C(),j(),y=ve.exports.debounce(y,500),(e,i)=>{const B=c("BaseButton"),R=c("router-link"),K=c("BasePageHeader"),S=c("BaseIcon"),Q=c("BaseInput"),D=c("BaseRadio"),V=c("BaseInputGroup"),$=c("BaseDropdownItem"),Z=c("BaseDropdown"),ee=c("BaseText"),te=c("BaseEstimateStatusBadge"),ae=c("BaseFormatMoney"),se=c("BasePage");return d(),I(P,null,[a(Ie),l.value?(d(),v(se,{key:0,class:"xl:pl-96 xl:ml-8"},{default:r(()=>[a(K,{title:s(G)},{actions:r(()=>[u("div",Ee,[l.value.status==="DRAFT"&&s(T).hasAbilities(s(F).EDIT_INVOICE)?(d(),v(B,{key:0,disabled:E.value,variant:"primary-outline",onClick:J},{default:r(()=>[w(b(e.$t("invoices.mark_as_sent")),1)]),_:1},8,["disabled"])):p("",!0)]),l.value.status==="DRAFT"&&s(T).hasAbilities(s(F).SEND_INVOICE)?(d(),v(B,{key:0,disabled:O.value,variant:"primary",class:"text-sm",onClick:W},{default:r(()=>[w(b(e.$t("invoices.send_invoice")),1)]),_:1},8,["disabled"])):p("",!0),s(T).hasAbilities(s(F).CREATE_PAYMENT)?(d(),v(R,{key:1,to:`/admin/payments/${e.$route.params.id}/create`},{default:r(()=>[l.value.status==="SENT"||l.value.status==="OVERDUE"||l.value.status==="VIEWED"?(d(),v(B,{key:0,variant:"primary"},{default:r(()=>[w(b(e.$t("invoices.record_payment")),1)]),_:1})):p("",!0)]),_:1},8,["to"])):p("",!0),a(ye,{class:"ml-3",row:l.value,"load-data":C},null,8,["row"])]),_:1},8,["title"]),u("div",Se,[u("div",we,[u("div",Te,[a(Q,{modelValue:s(t).searchText,"onUpdate:modelValue":i[0]||(i[0]=n=>s(t).searchText=n),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:i[1]||(i[1]=n=>y())},{right:r(()=>[a(S,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",De,[a(Z,{class:"ml-3",position:"bottom-start"},{activator:r(()=>[a(B,{size:"md",variant:"gray"},{default:r(()=>[a(S,{name:"FilterIcon"})]),_:1})]),default:r(()=>[u("div",Ve,b(e.$t("general.sort_by")),1),a($,{class:"flex px-1 py-2 cursor-pointer"},{default:r(()=>[a(V,{class:"-mt-3 font-normal"},{default:r(()=>[a(D,{id:"filter_invoice_date",modelValue:s(t).orderByField,"onUpdate:modelValue":[i[2]||(i[2]=n=>s(t).orderByField=n),y],label:e.$t("reports.invoices.invoice_date"),size:"sm",name:"filter",value:"invoice_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),a($,{class:"flex px-1 py-2 cursor-pointer"},{default:r(()=>[a(V,{class:"-mt-3 font-normal"},{default:r(()=>[a(D,{id:"filter_due_date",modelValue:s(t).orderByField,"onUpdate:modelValue":[i[3]||(i[3]=n=>s(t).orderByField=n),y],label:e.$t("invoices.due_date"),value:"due_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),a($,{class:"flex px-1 py-2 cursor-pointer"},{default:r(()=>[a(V,{class:"-mt-3 font-normal"},{default:r(()=>[a(D,{id:"filter_invoice_number",modelValue:s(t).orderByField,"onUpdate:modelValue":[i[4]||(i[4]=n=>s(t).orderByField=n),y],label:e.$t("invoices.invoice_number"),value:"invoice_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),a(B,{class:"ml-1",size:"md",variant:"gray",onClick:Y},{default:r(()=>[s(A)?(d(),v(S,{key:0,name:"SortAscendingIcon"})):(d(),v(S,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),s(o)&&s(o).invoices?(d(),I("div",$e,[(d(!0),I(P,null,pe(s(o).invoices,(n,oe)=>(d(),I("div",{key:oe},[n&&!h.value?(d(),v(R,{key:0,id:"invoice-"+n.id,to:`/admin/invoices/${n.id}/view`,class:_e(["flex justify-between side-invoice p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":q(n.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:r(()=>[u("div",Fe,[a(ee,{text:n.customer.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),u("div",Ne,b(n.invoice_number),1),a(te,{status:n.status,class:"px-1 text-xs"},{default:r(()=>[w(b(n.status),1)]),_:2},1032,["status"])]),u("div",Ae,[a(ae,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:n.total,currency:n.customer.currency},null,8,["amount","currency"]),u("div",Ce,b(n.formatted_invoice_date),1)])]),_:2},1032,["id","to","class"])):p("",!0)]))),128)),u("div",je,[h.value?(d(),v(ke,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):p("",!0)]),!s(o).invoices.length&&!h.value?(d(),I("p",Re,b(e.$t("invoices.no_matching_invoices")),1)):p("",!0)])):p("",!0)]),u("div",Le,[u("iframe",{src:`${s(H)}`,class:"flex-1 border border-gray-400 border-solid bg-white rounded-md frame-style"},null,8,Me)])]),_:1})):p("",!0)],64)}}};export{We as default};
import{G as M,J as O,B as S,a0 as R,A as J,k as T,r as d,o as a,e as v,h as o,f as t,w as n,u as e,t as x,l as p,F as U,y as z,j as h,m as Y,i as D,ah as H,C as K,x as Q,aN as W}from"./vendor.01d0adc5.js";import{l as L,_ as Z,b as ee,j as te,e as se,g as E}from"./main.832b14c7.js";import{L as ae}from"./LoadingIcon.cfb2fcf9.js";import{_ as ne}from"./LineChart.cef8475e.js";import{_ as oe}from"./CustomerIndexDropdown.8fced79d.js";const le={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},re={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},ce={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},ie={class:"px-4 py-3 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},de={class:"px-2"},ue={class:"px-2"},me={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sidebar base-scroll"},_e={class:"flex-1 font-bold text-right whitespace-nowrap"},pe={class:"flex justify-center p-4 items-center"},fe={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},he={setup(V){const y=L(),s=M(),{t:m}=O();let c=S(!1),i=S(!1),l=R({orderBy:"",orderByField:"",searchText:""});f=J.exports.debounce(f,500);const $=T(()=>l.orderBy==="asc"||l.orderBy==null);T(()=>$.value?m("general.ascending"):m("general.descending"));function B(r){return s.params.id==r}async function I(){i.value=!0,await y.fetchCustomers({limit:"all"}),i.value=!1,setTimeout(()=>{g()},500)}function g(){const r=document.getElementById(`customer-${s.params.id}`);r&&(r.scrollIntoView({behavior:"smooth"}),r.classList.add("shake"))}async function f(){let r={};l.searchText!==""&&l.searchText!==null&&l.searchText!==void 0&&(r.display_name=l.searchText),l.orderBy!==null&&l.orderBy!==void 0&&(r.orderBy=l.orderBy),l.orderByField!==null&&l.orderByField!==void 0&&(r.orderByField=l.orderByField),c.value=!0;try{let _=await y.fetchCustomers(r);c.value=!1,_.data&&(y.customers=_.data.data)}catch{c.value=!1}}function w(){return l.orderBy==="asc"?(l.orderBy="desc",f(),!0):(l.orderBy="asc",f(),!0)}return I(),(r,_)=>{const u=d("BaseIcon"),C=d("BaseInput"),k=d("BaseButton"),j=d("BaseRadio"),A=d("BaseInputGroup"),F=d("BaseDropdownItem"),P=d("BaseDropdown"),N=d("BaseText"),G=d("BaseFormatMoney"),X=d("router-link");return a(),v("div",le,[o("div",re,[t(C,{modelValue:e(l).searchText,"onUpdate:modelValue":_[0]||(_[0]=b=>e(l).searchText=b),placeholder:r.$t("general.search"),"container-class":"mb-6",type:"text",variant:"gray",onInput:_[1]||(_[1]=b=>f())},{default:n(()=>[t(u,{name:"SearchIcon",class:"text-gray-500"})]),_:1},8,["modelValue","placeholder"]),o("div",ce,[t(P,{"close-on-select":!1,position:"bottom-start","width-class":"w-40","position-class":"left-0"},{activator:n(()=>[t(k,{variant:"gray"},{default:n(()=>[t(u,{name:"FilterIcon"})]),_:1})]),default:n(()=>[o("div",ie,x(r.$t("general.sort_by")),1),o("div",de,[t(F,{class:"flex px-1 py-2 mt-1 cursor-pointer hover:rounded-md"},{default:n(()=>[t(A,{class:"pt-2 -mt-4"},{default:n(()=>[t(j,{id:"filter_create_date",modelValue:e(l).orderByField,"onUpdate:modelValue":[_[2]||(_[2]=b=>e(l).orderByField=b),f],label:r.$t("customers.create_date"),size:"sm",name:"filter",value:"invoices.created_at"},null,8,["modelValue","label"])]),_:1})]),_:1})]),o("div",ue,[t(F,{class:"flex px-1 cursor-pointer hover:rounded-md"},{default:n(()=>[t(A,{class:"pt-2 -mt-4"},{default:n(()=>[t(j,{id:"filter_display_name",modelValue:e(l).orderByField,"onUpdate:modelValue":[_[3]||(_[3]=b=>e(l).orderByField=b),f],label:r.$t("customers.display_name"),size:"sm",name:"filter",value:"name"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),t(k,{class:"ml-1",size:"md",variant:"gray",onClick:w},{default:n(()=>[e($)?(a(),p(u,{key:0,name:"SortAscendingIcon"})):(a(),p(u,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),o("div",me,[(a(!0),v(U,null,z(e(y).customers,(b,q)=>(a(),v("div",{key:q},[b&&!e(i)?(a(),p(X,{key:0,id:"customer-"+b.id,to:`/admin/customers/${b.id}/view`,class:Y(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":B(b.id)}]),style:{"border-top":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>[o("div",null,[t(N,{text:b.name,length:30,class:"pr-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),b.contact_name?(a(),p(N,{key:0,text:b.contact_name,length:30,class:"mt-1 text-xs not-italic font-medium leading-5 text-gray-600"},null,8,["text"])):h("",!0)]),o("div",_e,[t(G,{amount:b.due_amount,currency:b.currency},null,8,["amount","currency"])])]),_:2},1032,["id","to","class"])):h("",!0)]))),128)),o("div",pe,[e(i)?(a(),p(ae,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):h("",!0)]),!e(y).customers.length&&!e(i)?(a(),v("p",fe,x(r.$t("customers.no_matching_customers")),1)):h("",!0)])])}}},ye={class:"pt-6 mt-5 border-t border-solid lg:pt-8 md:pt-4 border-gray-200"},ge={key:0,class:"text-sm font-bold leading-5 text-black non-italic"},xe={key:0},be={key:1},Be={key:1,class:"text-sm font-bold leading-5 text-black non-italic"},ve={setup(V){const y=L(),s=T(()=>y.selectedViewCustomer),m=T(()=>y.isFetchingViewData),c=T(()=>{var i,l;return((i=s==null?void 0:s.value)==null?void 0:i.fields)?(l=s==null?void 0:s.value)==null?void 0:l.fields:[]});return(i,l)=>{const $=d("BaseHeading"),B=d("BaseDescriptionListItem"),I=d("BaseDescriptionList"),g=d("BaseCustomerAddressDisplay");return a(),v("div",ye,[t($,null,{default:n(()=>[D(x(i.$t("customers.basic_info")),1)]),_:1}),t(I,null,{default:n(()=>{var f,w,r;return[t(B,{"content-loading":e(m),label:i.$t("customers.display_name"),value:(f=e(s))==null?void 0:f.name},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.primary_contact_name"),value:(w=e(s))==null?void 0:w.contact_name},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.email"),value:(r=e(s))==null?void 0:r.email},null,8,["content-loading","label","value"])]}),_:1}),t(I,{class:"mt-5"},{default:n(()=>{var f,w,r,_,u,C,k;return[t(B,{"content-loading":e(m),label:i.$t("wizard.currency"),value:((f=e(s))==null?void 0:f.currency)?`${(r=(w=e(s))==null?void 0:w.currency)==null?void 0:r.code} (${(u=(_=e(s))==null?void 0:_.currency)==null?void 0:u.symbol})`:""},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.phone_number"),value:(C=e(s))==null?void 0:C.phone},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.website"),value:(k=e(s))==null?void 0:k.website},null,8,["content-loading","label","value"])]}),_:1}),e(s).billing||e(s).shipping?(a(),p($,{key:0,class:"mt-8"},{default:n(()=>[D(x(i.$t("customers.address")),1)]),_:1})):h("",!0),t(I,{class:"mt-5"},{default:n(()=>[e(s).billing?(a(),p(B,{key:0,"content-loading":e(m),label:i.$t("customers.billing_address")},{default:n(()=>[t(g,{address:e(s).billing},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0),e(s).shipping?(a(),p(B,{key:1,"content-loading":e(m),label:i.$t("customers.shipping_address")},{default:n(()=>[t(g,{address:e(s).shipping},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0)]),_:1}),e(c).length>0?(a(),p($,{key:1,class:"mt-8"},{default:n(()=>[D(x(i.$t("settings.custom_fields.title")),1)]),_:1})):h("",!0),t(I,{class:"mt-5"},{default:n(()=>[(a(!0),v(U,null,z(e(c),(f,w)=>(a(),p(B,{key:w,"content-loading":e(m),label:f.custom_field.label},{default:n(()=>[f.type==="Switch"?(a(),v("p",ge,[f.default_answer===1?(a(),v("span",xe," Yes ")):(a(),v("span",be," No "))])):(a(),v("p",Be,x(f.default_answer),1))]),_:2},1032,["content-loading","label"]))),128))]),_:1})])}}},$e={},we={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},Ce={class:"flex justify-between mt-1 mb-6"},ke={class:"grid col-span-12 mt-6 text-center xl:mt-0 sm:grid-cols-4 xl:text-right xl:col-span-3 xl:grid-cols-1 xxl:col-span-2"},Te={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Ee={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Ie={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},De={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"};function Ae(V,y){const s=d("BaseContentPlaceholdersText"),m=d("BaseContentPlaceholdersBox"),c=d("BaseContentPlaceholders");return a(),p(c,{class:"grid grid-cols-12"},{default:n(()=>[o("div",we,[o("div",Ce,[t(s,{class:"h-10 w-36",lines:1}),t(s,{class:"h-10 w-40 !mt-0",lines:1})]),t(m,{class:"h-80 xl:h-72 sm:w-full"})]),o("div",ke,[o("div",Te,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})]),o("div",Ee,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})]),o("div",Ie,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})]),o("div",De,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var je=Z($e,[["render",Ae]]);const Se={key:1,class:"grid grid-cols-12"},Ve={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},Fe={class:"flex justify-between mt-1 mb-6"},Pe={class:"flex items-center"},Re={class:"w-40 h-10"},Le={class:"grid col-span-12 mt-6 text-center xl:mt-0 sm:grid-cols-4 xl:text-right xl:col-span-3 xl:grid-cols-1 xxl:col-span-2"},Me={class:"px-6 py-2"},Ne={class:"text-xs leading-5 lg:text-sm"},Oe=o("br",null,null,-1),Ue={key:0,class:"block mt-1 text-xl font-semibold leading-8"},ze={class:"px-6 py-2"},Ye={class:"text-xs leading-5 lg:text-sm"},He=o("br",null,null,-1),Ge={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#00c99c"}},Xe={class:"px-6 py-2"},qe={class:"text-xs leading-5 lg:text-sm"},Je=o("br",null,null,-1),Ke={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#fb7178"}},Qe={class:"px-6 py-2"},We={class:"text-xs leading-5 lg:text-sm"},Ze=o("br",null,null,-1),et={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#5851d8"}},tt={setup(V){ee();const y=L();H("utils");const s=M();let m=S(!1),c=R({}),i=R({}),l=R(["This year","Previous year"]),$=S("This year");const B=T(()=>c.expenseTotals?c.expenseTotals:[]),I=T(()=>c.netProfits?c.netProfits:[]),g=T(()=>c&&c.months?c.months:[]),f=T(()=>c.receiptTotals?c.receiptTotals:[]),w=T(()=>c.invoiceTotals?c.invoiceTotals:[]);K(s,()=>{s.params.id&&r(),$.value="This year"},{immediate:!0});async function r(){m.value=!1;let u=await y.fetchViewCustomer({id:s.params.id});u.data&&(Object.assign(c,u.data.meta.chartData),Object.assign(i,u.data.data)),m.value=!0}async function _(u){let C={id:s.params.id};u==="Previous year"?C.previous_year=!0:C.this_year=!0;let k=await y.fetchViewCustomer(C);return k.data.meta.chartData&&Object.assign(c,k.data.meta.chartData),!0}return(u,C)=>{const k=d("BaseIcon"),j=d("BaseMultiselect"),A=d("BaseFormatMoney"),F=d("BaseCard");return a(),p(F,{class:"flex flex-col mt-6"},{default:n(()=>[e(y).isFetchingViewData?(a(),p(je,{key:0})):(a(),v("div",Se,[o("div",Ve,[o("div",Fe,[o("h6",Pe,[t(k,{name:"ChartSquareBarIcon",class:"h-5 text-primary-400"}),D(" "+x(u.$t("dashboard.monthly_chart.title")),1)]),o("div",Re,[t(j,{modelValue:e($),"onUpdate:modelValue":C[0]||(C[0]=P=>Q($)?$.value=P:$=P),options:e(l),"allow-empty":!1,"show-labels":!1,placeholder:u.$t("dashboard.select_year"),"can-deselect":!1,onSelect:_},null,8,["modelValue","options","placeholder"])])]),e(m)?(a(),p(ne,{key:0,invoices:e(w),expenses:e(B),receipts:e(f),income:e(I),labels:e(g),class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])):h("",!0)]),o("div",Le,[o("div",Me,[o("span",Ne,x(u.$t("dashboard.chart_info.total_sales")),1),Oe,e(m)?(a(),v("span",Ue,[t(A,{amount:e(c).salesTotal,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)]),o("div",ze,[o("span",Ye,x(u.$t("dashboard.chart_info.total_receipts")),1),He,e(m)?(a(),v("span",Ge,[t(A,{amount:e(c).totalExpenses,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)]),o("div",Xe,[o("span",qe,x(u.$t("dashboard.chart_info.total_expense")),1),Je,e(m)?(a(),v("span",Ke,[t(A,{amount:e(c).totalExpenses,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)]),o("div",Qe,[o("span",We,x(u.$t("dashboard.chart_info.net_income")),1),Ze,e(m)?(a(),v("span",et,[t(A,{amount:e(c).netProfit,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)])])])),t(ve)]),_:1})}}},rt={setup(V){H("utils"),te();const y=L(),s=se();O();const m=W(),c=M();S(null);const i=T(()=>y.selectedViewCustomer.customer?y.selectedViewCustomer.customer.name:"");let l=T(()=>y.isFetchingViewData);function $(){return s.hasAbilities([E.CREATE_ESTIMATE,E.CREATE_INVOICE,E.CREATE_PAYMENT,E.CREATE_EXPENSE])}function B(){return s.hasAbilities([E.DELETE_CUSTOMER,E.EDIT_CUSTOMER])}function I(){m.push("/admin/customers")}return(g,f)=>{const w=d("BaseButton"),r=d("router-link"),_=d("BaseIcon"),u=d("BaseDropdownItem"),C=d("BaseDropdown"),k=d("BasePageHeader"),j=d("BasePage");return a(),p(j,{class:"xl:pl-96"},{default:n(()=>[t(k,{title:e(i)},{actions:n(()=>[e(s).hasAbilities(e(E).EDIT_CUSTOMER)?(a(),p(r,{key:0,to:`/admin/customers/${e(c).params.id}/edit`},{default:n(()=>[t(w,{class:"mr-3",variant:"primary-outline","content-loading":e(l)},{default:n(()=>[D(x(g.$t("general.edit")),1)]),_:1},8,["content-loading"])]),_:1},8,["to"])):h("",!0),$()?(a(),p(C,{key:1,position:"bottom-end","content-loading":e(l)},{activator:n(()=>[t(w,{class:"mr-3",variant:"primary","content-loading":e(l)},{default:n(()=>[D(x(g.$t("customers.new_transaction")),1)]),_:1},8,["content-loading"])]),default:n(()=>[e(s).hasAbilities(e(E).CREATE_ESTIMATE)?(a(),p(r,{key:0,to:`/admin/estimates/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,{class:""},{default:n(()=>[t(_,{name:"DocumentIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("estimates.new_estimate")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(s).hasAbilities(e(E).CREATE_INVOICE)?(a(),p(r,{key:1,to:`/admin/invoices/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,null,{default:n(()=>[t(_,{name:"DocumentTextIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("invoices.new_invoice")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(s).hasAbilities(e(E).CREATE_PAYMENT)?(a(),p(r,{key:2,to:`/admin/payments/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,null,{default:n(()=>[t(_,{name:"CreditCardIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("payments.new_payment")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(s).hasAbilities(e(E).CREATE_EXPENSE)?(a(),p(r,{key:3,to:`/admin/expenses/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,null,{default:n(()=>[t(_,{name:"CalculatorIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("expenses.new_expense")),1)]),_:1})]),_:1},8,["to"])):h("",!0)]),_:1},8,["content-loading"])):h("",!0),B()?(a(),p(oe,{key:2,class:Y({"ml-3":e(l)}),row:e(y).selectedViewCustomer,"load-data":I},null,8,["class","row"])):h("",!0)]),_:1},8,["title"]),t(he),t(tt)]),_:1})}}};export{rt as default};
import{J as M,B as b,G as P,aN as U,a0 as W,k as j,A as X,r,o as u,e as R,h as f,f as n,w as o,u as t,t as y,l as p,F as G,y as K,i as C,m as Q,j as I,ah as Y,V as Z,C as ee}from"./vendor.01d0adc5.js";import{c as te,t as A,u as ne,e as z,j as H,g as E}from"./main.832b14c7.js";import{L as ae}from"./LoadingIcon.cfb2fcf9.js";import{_ as oe}from"./InvoiceIndexDropdown.a0cb5742.js";import{_ as re}from"./RecurringInvoiceIndexDropdown.c53e92ab.js";const se={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},ie={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},le={class:"mb-6"},ce={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},ue={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},de={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},me={class:"flex-2"},_e={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},ge={class:"flex-1 whitespace-nowrap right"},ve={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},pe={class:"flex justify-center p-4 items-center"},fe={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},be={setup(O){te();const a=A();ne(),z(),H(),M(),b(null),b(null),b(null);const m=P();U(),b(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]);const l=b(!1),_=b(!1),e=W({orderBy:null,orderByField:null,searchText:null}),B=j(()=>e.orderBy==="asc"||e.orderBy==null);function h(s){return m.params.id==s}async function g(){_.value=!0,await a.fetchRecurringInvoices(),_.value=!1,setTimeout(()=>{k()},500)}function k(){const s=document.getElementById(`recurring-invoice-${m.params.id}`);s&&(s.scrollIntoView({behavior:"smooth"}),s.classList.add("shake"))}async function v(){let s="";e.searchText!==""&&e.searchText!==null&&e.searchText!==void 0&&(s+=`search=${e.searchText}&`),e.orderBy!==null&&e.orderBy!==void 0&&(s+=`orderBy=${e.orderBy}&`),e.orderByField!==null&&e.orderByField!==void 0&&(s+=`orderByField=${e.orderByField}`),l.value=!0;let d=await a.searchRecurringInvoice(s);l.value=!1,d.data&&(a.recurringInvoices=d.data.data)}function x(){return e.orderBy==="asc"?(e.orderBy="desc",v(),!0):(e.orderBy="asc",v(),!0)}return g(),v=X.exports.debounce(v,500),(s,d)=>{const i=r("BaseIcon"),w=r("BaseInput"),D=r("BaseButton"),$=r("BaseRadio"),S=r("BaseInputGroup"),V=r("BaseDropdownItem"),T=r("BaseDropdown"),F=r("BaseText"),N=r("BaseRecurringInvoiceStatusBadge"),L=r("BaseFormatMoney"),q=r("router-link");return u(),R("div",se,[f("div",ie,[f("div",le,[n(w,{modelValue:t(e).searchText,"onUpdate:modelValue":d[0]||(d[0]=c=>t(e).searchText=c),placeholder:s.$t("general.search"),type:"text",variant:"gray",onInput:d[1]||(d[1]=c=>v())},{right:o(()=>[n(i,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),f("div",ce,[n(T,{class:"ml-3",position:"bottom-start"},{activator:o(()=>[n(D,{size:"md",variant:"gray"},{default:o(()=>[n(i,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:o(()=>[f("div",ue,y(s.$t("general.sort_by")),1),n(V,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[n(S,{class:"-mt-3 font-normal"},{default:o(()=>[n($,{id:"filter_next_invoice_date",modelValue:t(e).orderByField,"onUpdate:modelValue":[d[2]||(d[2]=c=>t(e).orderByField=c),v],label:s.$t("recurring_invoices.next_invoice_date"),size:"sm",name:"filter",value:"next_invoice_at"},null,8,["modelValue","label"])]),_:1})]),_:1}),n(V,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[n(S,{class:"-mt-3 font-normal"},{default:o(()=>[n($,{id:"filter_start_date",modelValue:t(e).orderByField,"onUpdate:modelValue":[d[3]||(d[3]=c=>t(e).orderByField=c),v],label:s.$t("recurring_invoices.starts_at"),value:"starts_at",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),n(D,{class:"ml-1",size:"md",variant:"gray",onClick:x},{default:o(()=>[t(B)?(u(),p(i,{key:0,name:"SortAscendingIcon",class:"h-5"})):(u(),p(i,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),t(a)&&t(a).recurringInvoices?(u(),R("div",de,[(u(!0),R(G,null,K(t(a).recurringInvoices,(c,J)=>(u(),R("div",{key:J},[c&&!_.value?(u(),p(q,{key:0,id:"recurring-invoice-"+c.id,to:`/admin/recurring-invoices/${c.id}/view`,class:Q(["flex justify-between side-invoice p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":h(c.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[f("div",me,[n(F,{text:c.customer.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),f("div",_e,y(c.invoice_number),1),n(N,{status:c.status,class:"px-1 text-xs"},{default:o(()=>[C(y(c.status),1)]),_:2},1032,["status"])]),f("div",ge,[n(L,{class:"block mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",amount:c.total,currency:c.customer.currency},null,8,["amount","currency"]),f("div",ve,y(c.formatted_starts_at),1)])]),_:2},1032,["id","to","class"])):I("",!0)]))),128)),f("div",pe,[_.value?(u(),p(ae,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):I("",!0)]),!t(a).recurringInvoices.length&&!_.value?(u(),R("p",fe,y(s.$t("invoices.no_matching_invoices")),1)):I("",!0)])):I("",!0)])}}},ye={class:"relative table-container"},Ie={setup(O){const a=A(),m=b(null);b(null),Y("$utils");const{t:l}=M();b(null),U();const _=z(),e=j(()=>[{key:"invoice_date",label:l("invoices.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"invoice_number",label:l("invoices.invoice")},{key:"customer.name",label:l("invoices.customer")},{key:"status",label:l("invoices.status")},{key:"total",label:l("invoices.total")},{key:"actions",label:l("invoices.action"),tdClass:"text-right text-sm font-medium",thClass:"text-right",sortable:!1}]);function B(){return _.hasAbilities([E.DELETE_INVOICE,E.EDIT_INVOICE,E.VIEW_INVOICE,E.SEND_INVOICE])}return(h,g)=>{const k=r("SendInvoiceModal"),v=r("router-link"),x=r("BaseFormatMoney"),s=r("BaseInvoiceStatusBadge"),d=r("BaseTable");return u(),R(G,null,[n(k),f("div",ye,[n(d,{ref:(i,w)=>{w.table=i,m.value=i},data:t(a).newRecurringInvoice.invoices,columns:t(e),loading:t(a).isFetchingViewData,"placeholder-count":5,class:"mt-5"},Z({"cell-invoice_number":o(({row:i})=>[n(v,{to:{path:`/admin/invoices/${i.data.id}/view`},class:"font-medium text-primary-500"},{default:o(()=>[C(y(i.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-total":o(({row:i})=>[n(x,{amount:i.data.due_amount,currency:i.data.currency},null,8,["amount","currency"])]),"cell-status":o(({row:i})=>[n(s,{status:i.data.status,class:"px-3 py-1"},{default:o(()=>[C(y(i.data.status),1)]),_:2},1032,["status"])]),_:2},[B()?{name:"cell-actions",fn:o(({row:i})=>[n(oe,{row:i.data,table:m.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])],64)}}},Be={setup(O){const a=A(),m=P();let l=j(()=>a.isFetchingViewData);ee(m,()=>{m.params.id&&m.name==="recurring-invoices.view"&&_()},{immediate:!0});async function _(){await a.fetchRecurringInvoice(m.params.id)}return(e,B)=>{const h=r("BaseHeading"),g=r("BaseDescriptionListItem"),k=r("BaseDescriptionList"),v=r("BaseCard");return u(),p(v,{class:"mt-10"},{default:o(()=>[n(h,null,{default:o(()=>[C(y(e.$t("customers.basic_info")),1)]),_:1}),n(k,{class:"mt-5"},{default:o(()=>{var x,s,d,i,w,D,$,S,V,T,F,N,L;return[n(g,{label:e.$t("recurring_invoices.starts_at"),"content-loading":t(l),value:(x=t(a).newRecurringInvoice)==null?void 0:x.formatted_starts_at},null,8,["label","content-loading","value"]),n(g,{label:e.$t("recurring_invoices.next_invoice_date"),"content-loading":t(l),value:(s=t(a).newRecurringInvoice)==null?void 0:s.formatted_next_invoice_at},null,8,["label","content-loading","value"]),((d=t(a).newRecurringInvoice)==null?void 0:d.limit_date)&&((i=t(a).newRecurringInvoice)==null?void 0:i.limit_by)!=="NONE"?(u(),p(g,{key:0,label:e.$t("recurring_invoices.limit_date"),"content-loading":t(l),value:(w=t(a).newRecurringInvoice)==null?void 0:w.limit_date},null,8,["label","content-loading","value"])):I("",!0),((D=t(a).newRecurringInvoice)==null?void 0:D.limit_date)&&(($=t(a).newRecurringInvoice)==null?void 0:$.limit_by)!=="NONE"?(u(),p(g,{key:1,label:e.$t("recurring_invoices.limit_by"),"content-loading":t(l),value:(S=t(a).newRecurringInvoice)==null?void 0:S.limit_by},null,8,["label","content-loading","value"])):I("",!0),((V=t(a).newRecurringInvoice)==null?void 0:V.limit_count)?(u(),p(g,{key:2,label:e.$t("recurring_invoices.limit_count"),value:(T=t(a).newRecurringInvoice)==null?void 0:T.limit_count,"content-loading":t(l)},null,8,["label","value","content-loading"])):I("",!0),((F=t(a).newRecurringInvoice)==null?void 0:F.selectedFrequency)?(u(),p(g,{key:3,label:e.$t("recurring_invoices.frequency.title"),value:(L=(N=t(a).newRecurringInvoice)==null?void 0:N.selectedFrequency)==null?void 0:L.label,"content-loading":t(l)},null,8,["label","value","content-loading"])):I("",!0)]}),_:1}),n(h,{class:"mt-8"},{default:o(()=>[C(y(e.$t("invoices.title",2)),1)]),_:1}),n(Ie)]),_:1})}}},ke={setup(O){H();const a=A(),m=z();M(),U();const l=j(()=>{var e,B;return a.newRecurringInvoice?(B=(e=a.newRecurringInvoice)==null?void 0:e.customer)==null?void 0:B.name:""});function _(){return m.hasAbilities([E.DELETE_RECURRING_INVOICE,E.EDIT_RECURRING_INVOICE])}return(e,B)=>{const h=r("BasePageHeader"),g=r("BasePage");return u(),p(g,{class:"xl:pl-96"},{default:o(()=>[n(h,{title:t(l)},{actions:o(()=>[_()?(u(),p(re,{key:0,row:t(a).newRecurringInvoice},null,8,["row"])):I("",!0)]),_:1},8,["title"]),n(be),n(Be)]),_:1})}}};export{ke as default};
import{G as te,aN as ae,J as se,B as m,a0 as N,ah as oe,k as g,I as ne,C as re,A as le,r as d,o as c,e as p,f as o,w as n,u as t,l as B,i as de,t as _,j as y,h as r,F as C,y as ie,m as ce}from"./vendor.01d0adc5.js";import{c as ue,e as me,j as fe,g as pe}from"./main.832b14c7.js";import{u as _e}from"./payment.372edbf1.js";import{_ as ye,a as be}from"./SendPaymentModal.a713aa7b.js";import{L as he}from"./LoadingIcon.cfb2fcf9.js";import"./mail-driver.1b5e2a8f.js";const ge={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},Be={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},ve={class:"flex ml-3",role:"group","aria-label":"First group"},xe={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},we={class:"px-2"},ke={class:"px-2"},Ie={class:"px-2"},Fe={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid"},Ve={class:"flex-2"},Pe={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},Se={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},je={class:"flex-1 whitespace-nowrap right"},Te={class:"text-sm text-right text-gray-500 non-italic"},De={class:"flex justify-center p-4 items-center"},$e={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Me={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},ze=["src"],Re={setup(Ne){const b=te();ae();const{t:w}=se();m(null),m(null);let f=N({});m(null);let s=N({orderBy:null,orderByField:null,searchText:null}),k=m(!1),L=m(!1);m(!1);let h=m(!1),v=m(!1);oe("utils");const i=_e(),U=ue(),A=me(),E=g(()=>f.payment_number||""),S=g(()=>s.orderBy==="asc"||s.orderBy==null);g(()=>S.value?w("general.ascending"):w("general.descending"));const j=g(()=>f.unique_hash?`/payments/pdf/${f.unique_hash}`:!1);g(()=>{var a;return ne((a=i==null?void 0:i.selectedPayment)==null?void 0:a.payment_date).format("YYYY/MM/DD")}),re(b,()=>{T()}),R(),T(),u=le.exports.debounce(u,500);function Y(a){return b.params.id==a}fe();async function R(){h.value=!0,await i.fetchPayments({limit:"all"}),h.value=!1,setTimeout(()=>{G()},500)}async function T(){if(!b.params.id)return;v.value=!0;let a=await i.fetchPayment(b.params.id);a.data&&(v.value=!1,Object.assign(f,a.data.data))}function G(){const a=document.getElementById(`payment-${b.params.id}`);a&&(a.scrollIntoView({behavior:"smooth"}),a.classList.add("shake"))}async function u(){let a={};s.searchText!==""&&s.searchText!==null&&s.searchText!==void 0&&(a.search=s.searchText),s.orderBy!==null&&s.orderBy!==void 0&&(a.orderBy=s.orderBy),s.orderByField!==null&&s.orderByField!==void 0&&(a.orderByField=s.orderByField),k.value=!0;try{let l=await i.searchPayment(a);k.value=!1,l.data.data&&(i.payments=l.data.data)}catch{k.value=!1}}function q(){return s.orderBy==="asc"?(s.orderBy="desc",u(),!0):(s.orderBy="asc",u(),!0)}async function H(){U.openModal({title:w("payments.send_payment"),componentName:"SendPaymentModal",id:f.id,data:f,variant:"lg"})}return(a,l)=>{const I=d("BaseButton"),O=d("BasePageHeader"),x=d("BaseIcon"),J=d("BaseInput"),F=d("BaseRadio"),V=d("BaseInputGroup"),P=d("BaseDropdownItem"),K=d("BaseDropdown"),Q=d("BaseText"),W=d("BaseFormatMoney"),X=d("router-link"),Z=d("BasePage");return c(),p(C,null,[o(ye),o(Z,{class:"xl:pl-96"},{default:n(()=>{var D,$;return[o(O,{title:t(E)},{actions:n(()=>[t(A).hasAbilities(t(pe).SEND_PAYMENT)?(c(),B(I,{key:0,disabled:t(L),"content-loading":t(v),variant:"primary",onClick:H},{default:n(()=>[de(_(a.$t("payments.send_payment_receipt")),1)]),_:1},8,["disabled","content-loading"])):y("",!0),o(be,{"content-loading":t(v),class:"ml-3",row:t(f)},null,8,["content-loading","row"])]),_:1},8,["title"]),r("div",ge,[r("div",Be,[o(J,{modelValue:t(s).searchText,"onUpdate:modelValue":l[0]||(l[0]=e=>t(s).searchText=e),placeholder:a.$t("general.search"),type:"text",onInput:u},{default:n(()=>[o(x,{name:"SearchIcon",class:"h-5"})]),_:1},8,["modelValue","placeholder"]),r("div",ve,[o(K,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:n(()=>[o(I,{variant:"gray"},{default:n(()=>[o(x,{name:"FilterIcon"})]),_:1})]),default:n(()=>[r("div",xe,_(a.$t("general.sort_by")),1),r("div",we,[o(P,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[o(V,{class:"-mt-3 font-normal"},{default:n(()=>[o(F,{id:"filter_invoice_number",modelValue:t(s).orderByField,"onUpdate:modelValue":[l[1]||(l[1]=e=>t(s).orderByField=e),u],label:a.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",ke,[o(P,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[o(V,{class:"-mt-3 font-normal"},{default:n(()=>[o(F,{modelValue:t(s).orderByField,"onUpdate:modelValue":[l[2]||(l[2]=e=>t(s).orderByField=e),u],label:a.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",Ie,[o(P,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[o(V,{class:"-mt-3 font-normal"},{default:n(()=>[o(F,{id:"filter_payment_number",modelValue:t(s).orderByField,"onUpdate:modelValue":[l[3]||(l[3]=e=>t(s).orderByField=e),u],label:a.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),o(I,{class:"ml-1",size:"md",variant:"gray",onClick:q},{default:n(()=>[t(S)?(c(),B(x,{key:0,name:"SortAscendingIcon"})):(c(),B(x,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),t(i)&&t(i).payments?(c(),p("div",Fe,[(c(!0),p(C,null,ie(t(i).payments,(e,ee)=>(c(),p("div",{key:ee},[e&&!t(h)?(c(),B(X,{key:0,id:"payment-"+e.id,to:`/admin/payments/${e.id}/view`,class:ce(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":Y(e.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>{var M,z;return[r("div",Ve,[o(Q,{text:(M=e==null?void 0:e.customer)==null?void 0:M.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),r("div",Pe,_(e==null?void 0:e.payment_number),1),r("div",Se,_(e==null?void 0:e.invoice_number),1)]),r("div",je,[o(W,{class:"block mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",amount:e==null?void 0:e.amount,currency:(z=e.customer)==null?void 0:z.currency},null,8,["amount","currency"]),r("div",Te,_(e.formatted_payment_date),1)])]}),_:2},1032,["id","to","class"])):y("",!0)]))),128)),r("div",De,[t(h)?(c(),B(he,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):y("",!0)]),!(($=(D=t(i))==null?void 0:D.payments)==null?void 0:$.length)&&!t(h)?(c(),p("p",$e,_(a.$t("payments.no_matching_payments")),1)):y("",!0)])):y("",!0)]),r("div",Me,[t(j)?(c(),p("iframe",{key:0,src:t(j),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,ze)):y("",!0)])]}),_:1})],64)}}};export{Re as default};
import{_ as fe,d as ve,r as ye,u as be,j as xe}from"./main.832b14c7.js";import{r as p,o,l as g,w as u,f as n,h as e,J as ee,t as r,i as k,G as we,B as _,C as ke,k as x,a0 as H,I as te,u as t,e as d,m as v,j as h,y as j,F as $,an as se,ao as $e,b3 as Be,ap as Me,aA as je,aB as F,aC as Ce,az as O,aD as Pe,a as Te}from"./vendor.01d0adc5.js";const Le={},Ie={class:"lg:grid lg:grid-rows-1 lg:grid-cols-7 lg:gap-x-8 lg:gap-y-10 xl:gap-x-16 mt-6"},Se={class:"lg:row-end-1 lg:col-span-4"},Re={class:"max-w-2xl mx-auto mt-10 lg:max-w-none lg:mt-0 lg:row-end-2 lg:row-span-2 lg:col-span-3 w-full"},Ye=e("h3",{class:"sr-only"},"Reviews",-1),He=e("p",{class:"sr-only"},"4 out of 5 stars",-1),De={class:"flex flex-col-reverse"},Ve={class:"mt-4"},ze={class:"mt-10 grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},Ne=e("div",{class:"mt-10"},null,-1),Ue={class:"border-t border-gray-200 mt-10 pt-10"},Ge={class:"border-t border-gray-200 mt-10 pt-10"},Ke={class:"w-full max-w-2xl mx-auto mt-16 lg:max-w-none lg:mt-0 lg:col-span-4"};function qe(C,D){const m=p("BaseContentPlaceholdersText"),B=p("BaseContentPlaceholdersBox"),G=p("BasePage"),L=p("BaseContentPlaceholders");return o(),g(L,{rounded:""},{default:u(()=>[n(G,{class:"bg-white"},{default:u(()=>[n(m,{class:"mt-4 h-8 w-40",lines:1}),n(m,{class:"mt-4 h-8 w-56 mb-4",lines:1}),e("div",Ie,[e("div",Se,[n(B,{class:"h-96 sm:w-full",rounded:""})]),e("div",Re,[e("div",null,[Ye,n(m,{class:"w-32 h-8",lines:1}),He]),e("div",De,[e("div",Ve,[n(m,{class:"w-48 xl:w-80 h-12",lines:1}),n(m,{class:"w-64 xl:w-80 h-8 mt-2",lines:1})])]),e("div",null,[n(m,{class:"w-full h-24 my-10",lines:1})]),e("div",null,[n(m,{class:"w-full h-24 mt-6 mb-6",lines:1})]),e("div",ze,[n(m,{class:"w-full h-14",lines:1})]),Ne,e("div",Ue,[e("div",null,[n(m,{class:"w-24 h-6",lines:1}),n(m,{class:"mt-4 w-full h-20",lines:1})])]),e("div",Ge,[n(m,{class:"h-6 w-24",lines:1}),n(m,{class:"h-10 w-32 mt-4",lines:1})])]),e("div",Ke,[n(B,{class:"h-96 sm:w-full",rounded:""})])])]),_:1})]),_:1})}var Ee=fe(Le,[["render",qe]]);const Ae={class:"relative group"},Fe={class:"aspect-w-4 aspect-h-3 rounded-lg overflow-hidden bg-gray-100"},Oe=["src"],Je={class:"flex items-end opacity-0 p-4 group-hover:opacity-100","aria-hidden":"true"},Qe={class:"w-full bg-white bg-opacity-75 backdrop-filter backdrop-blur py-2 px-4 rounded-md text-sm font-medium text-primary-500 text-center"},We={class:"mt-4 flex items-center justify-between text-base font-medium text-gray-900 space-x-8 cursor-pointer"},Xe={class:"text-primary-500 font-bold"},Ze=e("span",{"aria-hidden":"true",class:"absolute inset-0"},null,-1),et={class:"text-primary-500 font-bold"},tt={props:{data:{type:Object,default:null,required:!0}},setup(C){return ee(),(D,m)=>{const B=p("router-link");return o(),g(B,{class:"relative group",to:`/admin/modules/${C.data.slug}`},{default:u(()=>[e("div",Ae,[e("div",Fe,[e("img",{src:C.data.cover,class:"object-center object-cover"},null,8,Oe),e("div",Je,[e("div",Qe,r(D.$t("modules.view_module")),1)])]),e("div",We,[e("h3",Xe,[Ze,k(" "+r(C.data.name),1)]),e("p",et," $ "+r(C.data.monthly_price/100),1)])])]),_:1},8,["to"])}}},st={class:"lg:grid lg:grid-rows-1 lg:grid-cols-7 lg:gap-x-8 lg:gap-y-10 xl:gap-x-16 mt-6"},lt={class:"lg:row-end-1 lg:col-span-4"},at={class:"flex flex-col-reverse"},ot={class:"hidden mt-6 w-full max-w-2xl mx-auto sm:block lg:max-w-none"},nt={class:"grid grid-cols-3 xl:grid-cols-4 gap-6","aria-orientation":"horizontal",role:"tablist"},rt={class:"absolute inset-0 rounded-md overflow-hidden"},it=["src"],dt=e("span",{class:"ring-transparent absolute inset-0 rounded-md ring-2 ring-offset-2 pointer-events-none","aria-hidden":"true"},null,-1),ut=["onClick"],ct={class:"absolute inset-0 rounded-md overflow-hidden"},mt=["src"],_t=e("span",{class:"ring-transparent absolute inset-0 rounded-md ring-2 ring-offset-2 pointer-events-none","aria-hidden":"true"},null,-1),pt={key:0,class:"aspect-w-4 aspect-h-3"},gt=["src"],ht={key:1,class:"aspect-w-4 aspect-h-3 rounded-lg bg-gray-100 overflow-hidden"},ft=["src"],vt={class:"max-w-2xl mx-auto mt-10 lg:max-w-none lg:mt-0 lg:row-end-2 lg:row-span-2 lg:col-span-3 w-full"},yt=e("h3",{class:"sr-only"},"Reviews",-1),bt={class:"flex items-center"},xt=e("p",{class:"sr-only"},"4 out of 5 stars",-1),wt={class:"flex flex-col-reverse"},kt={class:"mt-4"},$t={class:"text-2xl font-extrabold tracking-tight text-gray-900 sm:text-3xl"},Bt=e("h2",{id:"information-heading",class:"sr-only"}," Product information ",-1),Mt={key:0,class:"text-sm text-gray-500 mt-2"},jt=["innerHTML"],Ct={key:0},Pt=k(" Pricing plans "),Tt={class:"relative bg-white rounded-md -space-y-px"},Lt={class:"flex items-center text-sm"},It=e("span",{class:"rounded-full bg-white w-1.5 h-1.5"},null,-1),St=[It],Rt=["href"],Yt={key:2},Ht={key:0,class:"grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},Dt={key:1},Vt={class:"grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},zt={class:"ml-2"},Nt=e("div",{class:"mt-10"},null,-1),Ut={class:"border-t border-gray-200 mt-10 pt-10"},Gt={class:"text-sm font-medium text-gray-900"},Kt={class:"mt-4 prose prose-sm max-w-none text-gray-500"},qt=["innerHTML"],Et={class:"border-t border-gray-200 mt-10 pt-10"},At=["href"],Ft={key:3,class:"border-t border-gray-200 mt-10 pt-10"},Ot={class:"w-full p-0 list-none"},Jt={class:"m-0 text-sm leading-8"},Qt={class:"flex flex-row items-center"},Wt={key:0,class:"mr-3 text-xs text-gray-500"},Xt={class:"w-full max-w-2xl mx-auto mt-16 lg:max-w-none lg:mt-0 lg:col-span-4"},Zt=e("h3",{class:"sr-only"},"Customer Reviews",-1),es={key:0},ts={class:"flex-none py-10"},ss={class:"inline-flex items-center justify-center h-12 w-12 rounded-full bg-gray-500"},ls={class:"text-lg font-medium leading-none text-white uppercase"},as={class:"font-medium text-gray-900"},os={class:"flex items-center mt-4"},ns=["innerHTML"],rs={key:1,class:"flex w-full items-center justify-center"},is={class:"text-gray-500 mt-10 text-sm"},ds=e("h3",{class:"sr-only"},"Frequently Asked Questions",-1),us={class:"mt-10 font-medium text-gray-900"},cs={class:"mt-2 prose prose-sm max-w-none text-gray-500"},ms=e("h3",{class:"sr-only"},"License",-1),_s=["innerHTML"],ps={key:0,class:"mt-24 sm:mt-32 lg:max-w-none"},gs={class:"flex items-center justify-between space-x-4"},hs={class:"text-lg font-medium text-gray-900"},fs={href:"/admin/modules",class:"whitespace-nowrap text-sm font-medium text-primary-600 hover:text-primary-500"},vs=e("span",{"aria-hidden":"true"}," \u2192",-1),ys={class:"mt-6 grid grid-cols-1 gap-x-8 gap-y-8 sm:grid-cols-2 sm:gap-y-10 lg:grid-cols-4"},bs=e("div",{class:"p-6"},null,-1),ks={setup(C){const D=ve(),m=ye(),B=be(),G=xe(),L=we(),{t:y}=ee();let b=_(!1),V=_(!0),I=_(""),P=_(!1),T=_(!1);_(!1),Q(),ke(()=>L.params.slug,async s=>{Q()});const l=x(()=>m.currentModule.data),z=x(()=>{var M,w;let s=[],i=H({name:y("modules.monthly"),price:((M=l==null?void 0:l.value)==null?void 0:M.monthly_price)/100}),c=H({name:y("modules.yearly"),price:((w=l==null?void 0:l.value)==null?void 0:w.yearly_price)/100});return le.value?s.push(c):ae.value?s.push(i):(s.push(i),s.push(c)),s}),le=x(()=>l.value?l.value.type==="YEARLY":!1),ae=x(()=>l.value?l.value.type==="MONTHLY":!1),oe=x(()=>!!(l.value.installed&&l.value.latest_module_version)),K=x(()=>m.currentModule.meta.modules);let ne=x(()=>{let s=_(l.value.latest_module_version_updated_at),i=_(l.value.installed_module_version_updated_at);const c=i.value?i.value:s.value;return te(c).format("MMMM Do YYYY")}),re=x(()=>{let s=_(l.value.latest_module_version),i=_(l.value.installed_module_version);return i.value?i.value:s.value}),ie=x(()=>parseInt(l.value.average_rating));const de=x(()=>{let s=H([]),i=H({id:null,url:l.value.cover});return s.push(i),l.value.screenshots&&l.value.screenshots.forEach(c=>{s.push(c)}),s}),N=_(!1),q=_(null),U=_(null),E=_(z.value[0]),A=H([{translationKey:"modules.download_zip_file",stepUrl:"/api/v1/modules/download",time:null,started:!1,completed:!1},{translationKey:"modules.unzipping_package",stepUrl:"/api/v1/modules/unzip",time:null,started:!1,completed:!1},{translationKey:"modules.copying_files",stepUrl:"/api/v1/modules/copy",time:null,started:!1,completed:!1},{translationKey:"modules.completing_installation",stepUrl:"/api/v1/modules/complete",time:null,started:!1,completed:!1}]);async function J(){let s=null;for(let i=0;i<A.length;i++){let c=A[i];try{b.value=!0,c.started=!0;let M={version:l.value.latest_module_version,path:s||null,module:l.value.module_name},w=await Te.post(c.stepUrl,M);if(c.completed=!0,w.data&&(s=w.data.path),!w.data.success)return B.showNotification({type:"error",message:ue(w.data.message)}),b.value=!1,c.started=!1,c.completed=!0,!1;c.translationKey=="modules.completing_installation"&&(b.value=!1,B.showNotification({type:"success",message:y("modules.install_success")}),setTimeout(()=>{location.reload()},3e3))}catch{return b.value=!1,c.started=!1,c.completed=!0,!1}}}function ue(s){let i=_("");switch(s){case"module_not_found":i=y("modules.module_not_found");break;case"module_not_purchased":i=y("modules.module_not_purchased");break;case"version_not_supported":i=y("modules.version_not_supported");break;default:i=s;break}return i}async function Q(){!L.params.slug||(V.value=!0,await m.fetchModule(L.params.slug).then(s=>{if(E.value=z.value[0],U.value=l.value.video_link,q.value=l.value.video_thumbnail,U.value){X(),V.value=!1;return}I.value=l.value.cover,V.value=!1}))}function ce(s){switch(W(s)){case"pending":return"text-primary-800 bg-gray-200";case"finished":return"text-teal-500 bg-teal-100";case"running":return"text-blue-400 bg-blue-100";case"error":return"text-danger bg-red-200";default:return""}}function me(){G.openDialog({title:y("general.are_you_sure"),message:y("modules.disable_warning"),yesLabel:y("general.ok"),noLabel:y("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async s=>{if(s){T.value=!0,await m.disableModule(l.value.module_name).then(i=>{if(i.data.success){l.value.enabled=0,T.value=!1;return}}),T.value=!1;return}})}async function _e(){P.value=!0,await m.enableModule(l.value.module_name).then(s=>{s.data.success&&(l.value.enabled=1),P.value=!1}),P.value=!1}function W(s){return s.started&&s.completed?"finished":s.started&&!s.completed?"running":!s.started&&!s.completed?"pending":"error"}function pe(s){N.value=!1,I.value=s}function X(){N.value=!0,I.value=null}return(s,i)=>{const c=p("BaseBreadcrumbItem"),M=p("BaseBreadcrumb"),w=p("BasePageHeader"),Z=p("BaseRating"),S=p("BaseIcon"),R=p("BaseButton"),ge=p("BasePage");return t(V)?(o(),g(Ee,{key:0})):(o(),g(ge,{key:1,class:"bg-white"},{default:u(()=>[n(w,{title:t(l).name},{default:u(()=>[n(M,null,{default:u(()=>[n(c,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),n(c,{title:s.$t("modules.title"),to:"/admin/modules"},null,8,["title"]),n(c,{title:t(l).name,to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),e("div",st,[e("div",lt,[e("div",at,[e("div",ot,[e("div",nt,[q.value&&U.value?(o(),d("button",{key:0,class:v(["relative  md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":N.value}]),type:"button",onClick:X},[e("span",rt,[e("img",{src:q.value,alt:"",class:"w-full h-full object-center object-cover"},null,8,it)]),dt],2)):h("",!0),(o(!0),d($,null,j(t(de),(a,f)=>(o(),d("button",{id:"tabs-1-tab-1",key:f,class:v(["relative  md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":t(I)===a.url}]),type:"button",onClick:Y=>pe(a.url)},[e("span",ct,[e("img",{src:a.url,alt:"",class:"w-full h-full object-center object-cover"},null,8,mt)]),_t],10,ut))),128))])]),N.value?(o(),d("div",pt,[e("iframe",{src:U.value,class:"sm:rounded-lg",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},`
import{a as l}from"./vendor.01d0adc5.js";import{u as n,v as m}from"./main.832b14c7.js";const u=e=>{const t=p(),a=n();if(!e.response)a.showNotification({type:"error",message:"Please check your internet connection or wait until servers are back online."});else if(e.response.data&&(e.response.statusText==="Unauthorized"||e.response.data===" Unauthorized.")){const s=e.response.data.message?e.response.data.message:"Unauthorized";i(s),t.logout()}else if(e.response.data.errors){const s=JSON.parse(JSON.stringify(e.response.data.errors));for(const o in s)d(s[o][0])}else e.response.data.error?d(e.response.data.error):d(e.response.data.message)},d=e=>{switch(e){case"These credentials do not match our records.":i("errors.login_invalid_credentials");break;case"The email has already been taken.":i("validation.email_already_taken");break;case"invalid_credentials":i("errors.invalid_credentials");break;case"Email could not be sent to this email address.":i("errors.email_could_not_be_sent");break;case"not_allowed":i("errors.not_allowed");break;default:i(e,!1);break}},i=(e,t=!0)=>{const{global:a}=window.i18n;n().showNotification({type:"error",message:t?a.t(e):e})},{defineStore:f}=window.pinia,{global:r}=window.i18n,p=f({id:"customerAuth",state:()=>({loginData:{email:"",password:"",device_name:"xyz",company:""}}),actions:{login(e){const t=n(!0);return new Promise((a,s)=>{l.get("/sanctum/csrf-cookie").then(o=>{o&&l.post(`/${e.company}/customer/login`,e).then(c=>{t.showNotification({type:"success",message:r.tm("general.login_successfully")}),a(c),setTimeout(()=>{this.loginData.email="",this.loginData.password=""},1e3)}).catch(c=>{u(c),s(c)})})})},forgotPassword(e){const t=n(!0);return new Promise((a,s)=>{l.post(`/api/v1/${e.company}/customer/auth/password/email`,e).then(o=>{o.data&&t.showNotification({type:"success",message:r.tm("general.send_mail_successfully")}),a(o)}).catch(o=>{o.response&&o.response.status===403?t.showNotification({type:"error",message:r.tm("errors.email_could_not_be_sent")}):u(o),s(o)})})},resetPassword(e,t){return new Promise((a,s)=>{l.post(`/api/v1/${t}/customer/auth/reset/password`,e).then(o=>{o.data&&n(!0).showNotification({type:"success",message:r.tm("login.password_reset_successfully")}),a(o)}).catch(o=>{o.response&&o.response.status===403&&notificationStore.showNotification({type:"error",message:r.tm("validation.email_incorrect")}),s(o)})})},logout(e){return new Promise((t,a)=>{l.get(`${e}/customer/logout`).then(s=>{n().showNotification({type:"success",message:r.tm("general.logged_out_successfully")}),m.push({name:"customer.login"}),t(s)}).catch(s=>{u(s),a(s)})})}}});export{u as h,p as u};
import{a as o,d as f}from"./vendor.01d0adc5.js";import{h as s,u as r}from"./main.832b14c7.js";const y=(g=!1)=>{const h=g?window.pinia.defineStore:f,{global:n}=window.i18n;return h({id:"category",state:()=>({categories:[],currentCategory:{id:null,name:"",description:""}}),getters:{isEdit:t=>!!t.currentCategory.id},actions:{fetchCategories(t){return new Promise((a,i)=>{o.get("/api/v1/categories",{params:t}).then(e=>{this.categories=e.data.data,a(e)}).catch(e=>{s(e),i(e)})})},fetchCategory(t){return new Promise((a,i)=>{o.get(`/api/v1/categories/${t}`).then(e=>{this.currentCategory=e.data.data,a(e)}).catch(e=>{s(e),i(e)})})},addCategory(t){return new Promise((a,i)=>{o.post("/api/v1/categories",t).then(e=>{this.categories.push(e.data.data),r().showNotification({type:"success",message:n.t("settings.expense_category.created_message")}),a(e)}).catch(e=>{s(e),i(e)})})},updateCategory(t){return new Promise((a,i)=>{o.put(`/api/v1/categories/${t.id}`,t).then(e=>{if(e.data){let c=this.categories.findIndex(u=>u.id===e.data.data.id);this.categories[c]=t.categories,r().showNotification({type:"success",message:n.t("settings.expense_category.updated_message")})}a(e)}).catch(e=>{s(e),i(e)})})},deleteCategory(t){return new Promise(a=>{o.delete(`/api/v1/categories/${t}`).then(i=>{let e=this.categories.findIndex(d=>d.id===t);this.categories.splice(e,1),r().showNotification({type:"success",message:n.t("settings.expense_category.deleted_message")}),a(i)}).catch(i=>{s(i),console.error(i)})})}}})()};export{y as u};
import{a,d as l}from"./vendor.01d0adc5.js";import{h as o,u as r}from"./main.832b14c7.js";const v=(k=!1)=>{const f=k?window.pinia.defineStore:l,{global:n}=window.i18n;return f({id:"disk",state:()=>({disks:[],diskDrivers:[],diskConfigData:null,selected_driver:"local",doSpaceDiskConfig:{name:"",selected_driver:"doSpaces",key:"",secret:"",region:"",bucket:"",endpoint:"",root:""},dropBoxDiskConfig:{name:"",selected_driver:"dropbox",token:"",key:"",secret:"",app:""},localDiskConfig:{name:"",selected_driver:"local",root:""},s3DiskConfigData:{name:"",selected_driver:"s3",key:"",secret:"",region:"",bucket:"",root:""}}),getters:{getDiskDrivers:t=>t.diskDrivers},actions:{fetchDiskEnv(t){return new Promise((s,e)=>{a.get(`/api/v1/disks/${t.disk}`).then(i=>{s(i)}).catch(i=>{o(i),e(i)})})},fetchDisks(t){return new Promise((s,e)=>{a.get("/api/v1/disks",{params:t}).then(i=>{this.disks=i.data.data,s(i)}).catch(i=>{o(i),e(i)})})},fetchDiskDrivers(){return new Promise((t,s)=>{a.get("/api/v1/disk/drivers").then(e=>{this.diskConfigData=e.data,this.diskDrivers=e.data.drivers,t(e)}).catch(e=>{o(e),s(e)})})},deleteFileDisk(t){return new Promise((s,e)=>{a.delete(`/api/v1/disks/${t}`).then(i=>{if(i.data.success){let d=this.disks.findIndex(c=>c.id===t);this.disks.splice(d,1),r().showNotification({type:"success",message:n.t("settings.disk.deleted_message")})}s(i)}).catch(i=>{o(i),e(i)})})},updateDisk(t){return new Promise((s,e)=>{a.put(`/api/v1/disks/${t.id}`,t).then(i=>{if(i.data){let d=this.disks.findIndex(c=>c.id===i.data.data);this.disks[d]=t.disks,r().showNotification({type:"success",message:n.t("settings.disk.success_set_default_disk")})}s(i)}).catch(i=>{o(i),e(i)})})},createDisk(t){return new Promise((s,e)=>{a.post("/api/v1/disks",t).then(i=>{i.data&&r().showNotification({type:"success",message:n.t("settings.disk.success_create")}),this.disks.push(i.data),s(i)}).catch(i=>{o(i),e(i)})})}}})()};export{v as u};
import{u as h}from"./main.832b14c7.js";import{a as n}from"./vendor.01d0adc5.js";import{h as r}from"./auth.77d12976.js";const{defineStore:d}=window.pinia,p=d({id:"customerEstimateStore",state:()=>({estimates:[],totalEstimates:0,selectedViewEstimate:[]}),actions:{fetchEstimate(s,e){return new Promise((a,i)=>{n.get(`/api/v1/${e}/customer/estimates`,{params:s}).then(t=>{this.estimates=t.data.data,this.totalEstimates=t.data.meta.estimateTotalCount,a(t)}).catch(t=>{r(t),i(t)})})},fetchViewEstimate(s,e){return new Promise((a,i)=>{n.get(`/api/v1/${e}/customer/estimates/${s.id}`,{params:s}).then(t=>{this.selectedViewEstimate=t.data.data,a(t)}).catch(t=>{r(t),i(t)})})},searchEstimate(s,e){return new Promise((a,i)=>{n.get(`/api/v1/${e}/customer/estimates`,{params:s}).then(t=>{this.estimates=t.data,a(t)}).catch(t=>{r(t),i(t)})})},acceptEstimate({slug:s,id:e,status:a}){return new Promise((i,t)=>{n.post(`/api/v1/${s}/customer/estimate/${e}/status`,{status:a}).then(o=>{let m=this.estimates.findIndex(c=>c.id===e);this.estimates[m]&&(this.estimates[m].status="ACCEPTED",h(!0).showNotification({type:"success",message:global.t("estimates.marked_as_accepted_message")})),i(o)}).catch(o=>{r(o),t(o)})})},rejectEstimate({slug:s,id:e,status:a}){return new Promise((i,t)=>{n.post(`/api/v1/${s}/customer/estimate/${e}/status`,{status:a}).then(o=>{let m=this.estimates.findIndex(c=>c.id===e);this.estimates[m]&&(this.estimates[m].status="REJECTED",h(!0).showNotification({type:"success",message:global.t("estimates.marked_as_rejected_message")})),i(o)}).catch(o=>{r(o),t(o)})})}}});export{p as u};
import{a as i,d as g}from"./vendor.01d0adc5.js";import{h as c,u as v}from"./main.832b14c7.js";const f=(u=!1)=>{const o=u?window.pinia.defineStore:g,{global:n}=window.i18n,s=v();return o({id:"exchange-rate",state:()=>({supportedCurrencies:[],drivers:[],activeUsedCurrencies:[],providers:[],currencies:null,currentExchangeRate:{id:null,driver:"",key:"",active:!0,currencies:[]},currencyConverter:{type:"",url:""},bulkCurrencies:[]}),getters:{isEdit:r=>!!r.currentExchangeRate.id},actions:{fetchProviders(r){return new Promise((a,t)=>{i.get("/api/v1/exchange-rate-providers",{params:r}).then(e=>{this.providers=e.data.data,a(e)}).catch(e=>{c(e),t(e)})})},fetchDefaultProviders(){return new Promise((r,a)=>{i.get("/api/v1/config?key=exchange_rate_drivers").then(t=>{this.drivers=t.data.exchange_rate_drivers,r(t)}).catch(t=>{c(t),a(t)})})},fetchProvider(r){return new Promise((a,t)=>{i.get(`/api/v1/exchange-rate-providers/${r}`).then(e=>{this.currentExchangeRate=e.data.data,this.currencyConverter=e.data.data.driver_config,a(e)}).catch(e=>{c(e),t(e)})})},addProvider(r){return new Promise((a,t)=>{i.post("/api/v1/exchange-rate-providers",r).then(e=>{s.showNotification({type:"success",message:n.t("settings.exchange_rate.created_message")}),a(e)}).catch(e=>{c(e),t(e)})})},updateProvider(r){return new Promise((a,t)=>{i.put(`/api/v1/exchange-rate-providers/${r.id}`,r).then(e=>{s.showNotification({type:"success",message:n.t("settings.exchange_rate.updated_message")}),a(e)}).catch(e=>{c(e),t(e)})})},deleteExchangeRate(r){return new Promise((a,t)=>{i.delete(`/api/v1/exchange-rate-providers/${r}`).then(e=>{let d=this.drivers.findIndex(h=>h.id===r);this.drivers.splice(d,1),e.data.success?s.showNotification({type:"success",message:n.t("settings.exchange_rate.deleted_message")}):s.showNotification({type:"error",message:n.t("settings.exchange_rate.error")}),a(e)}).catch(e=>{c(e),t(e)})})},fetchCurrencies(r){return new Promise((a,t)=>{i.get("/api/v1/supported-currencies",{params:r}).then(e=>{this.supportedCurrencies=e.data.supportedCurrencies,a(e)}).catch(e=>{c(e),t(e)})})},fetchActiveCurrency(r){return new Promise((a,t)=>{i.get("/api/v1/used-currencies",{params:r}).then(e=>{this.activeUsedCurrencies=e.data.activeUsedCurrencies,a(e)}).catch(e=>{c(e),t(e)})})},fetchBulkCurrencies(){return new Promise((r,a)=>{i.get("/api/v1/currencies/used").then(t=>{this.bulkCurrencies=t.data.currencies.map(e=>(e.exchange_rate=null,e)),r(t)}).catch(t=>{c(t),a(t)})})},updateBulkExchangeRate(r){return new Promise((a,t)=>{i.post("/api/v1/currencies/bulk-update-exchange-rate",r).then(e=>{a(e)}).catch(e=>{c(e),t(e)})})},getCurrentExchangeRate(r){return new Promise((a,t)=>{i.get(`/api/v1/currencies/${r}/exchange-rate`).then(e=>{a(e)}).catch(e=>{t(e)})})},getCurrencyConverterServers(){return new Promise((r,a)=>{i.get("/api/v1/config?key=currency_converter_servers").then(t=>{r(t)}).catch(t=>{c(t),a(t)})})},checkForActiveProvider(r){return new Promise((a,t)=>{i.get(`/api/v1/currencies/${r}/active-provider`).then(e=>{a(e)}).catch(e=>{t(e)})})}}})()};export{f as u};
var _=Object.defineProperty;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var f=(l,c,a)=>c in l?_(l,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[c]=a,x=(l,c)=>{for(var a in c||(c={}))w.call(c,a)&&f(l,a,c[a]);if(u)for(var a of u(c))y.call(c,a)&&f(l,a,c[a]);return l};import{I as F,a as d,d as S}from"./vendor.01d0adc5.js";import{h as o,s as m,u as r}from"./main.832b14c7.js";var E={expense_category_id:null,expense_date:F().format("YYYY-MM-DD"),amount:100,notes:"",attachment_receipt:null,customer_id:"",currency_id:"",payment_method_id:"",receiptFiles:[],customFields:[],fields:[],in_use:!1,selectedCurrency:null};const D=(l=!1)=>{const c=l?window.pinia.defineStore:S,{global:a}=window.i18n;return c({id:"expense",state:()=>({expenses:[],totalExpenses:0,selectAllField:!1,selectedExpenses:[],paymentModes:[],showExchangeRate:!1,currentExpense:x({},E)}),getters:{getCurrentExpense:t=>t.currentExpense,getSelectedExpenses:t=>t.selectedExpenses},actions:{resetCurrentExpenseData(){this.currentExpense=x({},E)},fetchExpenses(t){return new Promise((n,i)=>{d.get("/api/v1/expenses",{params:t}).then(e=>{this.expenses=e.data.data,this.totalExpenses=e.data.meta.expense_total_count,n(e)}).catch(e=>{o(e),i(e)})})},fetchExpense(t){return new Promise((n,i)=>{d.get(`/api/v1/expenses/${t}`).then(e=>{e.data&&(Object.assign(this.currentExpense,e.data.data),this.currentExpense.selectedCurrency=e.data.data.currency,e.data.data.attachment_receipt?m.isImageFile(e.data.data.attachment_receipt_meta.mime_type)?this.currentExpense.receiptFiles=[{image:`/expenses/${t}/receipt`}]:this.currentExpense.receiptFiles=[{type:"document",name:e.data.data.attachment_receipt_meta.file_name}]:this.currentExpense.receiptFiles=[]),n(e)}).catch(e=>{o(e),i(e)})})},addExpense(t){const n=m.toFormData(t);return new Promise((i,e)=>{d.post("/api/v1/expenses",n).then(s=>{this.expenses.push(s.data),r().showNotification({type:"success",message:a.t("expenses.created_message")}),i(s)}).catch(s=>{o(s),e(s)})})},updateExpense({id:t,data:n}){const i=r(),e=m.toFormData(n);return e.append("_method","PUT"),new Promise(s=>{d.post(`/api/v1/expenses/${t}`,e).then(p=>{let h=this.expenses.findIndex(g=>g.id===p.data.id);this.expenses[h]=n.expense,i.showNotification({type:"success",message:a.t("expenses.updated_message")}),s(p)})}).catch(s=>{o(s),reject(s)})},setSelectAllState(t){this.selectAllField=t},selectExpense(t){this.selectedExpenses=t,this.selectedExpenses.length===this.expenses.length?this.selectAllField=!0:this.selectAllField=!1},selectAllExpenses(t){if(this.selectedExpenses.length===this.expenses.length)this.selectedExpenses=[],this.selectAllField=!1;else{let n=this.expenses.map(i=>i.id);this.selectedExpenses=n,this.selectAllField=!0}},deleteExpense(t){const n=r();return new Promise((i,e)=>{d.post("/api/v1/expenses/delete",t).then(s=>{let p=this.expenses.findIndex(h=>h.id===t);this.expenses.splice(p,1),n.showNotification({type:"success",message:a.tc("expenses.deleted_message",1)}),i(s)}).catch(s=>{o(s),e(s)})})},deleteMultipleExpenses(){const t=r();return new Promise((n,i)=>{d.post("/api/v1/expenses/delete",{ids:this.selectedExpenses}).then(e=>{this.selectedExpenses.forEach(s=>{let p=this.expenses.findIndex(h=>h.id===s.id);this.expenses.splice(p,1)}),t.showNotification({type:"success",message:a.tc("expenses.deleted_message",2)}),n(e)}).catch(e=>{o(e),i(e)})})},fetchPaymentModes(t){return new Promise((n,i)=>{d.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,n(e)}).catch(e=>{o(e),i(e)})})}}})()};export{D as u};
var p=Object.defineProperty,g=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var l=(e,a,t)=>a in e?p(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,i=(e,a)=>{for(var t in a||(a={}))S.call(a,t)&&l(e,t,a[t]);if(c)for(var t of c(a))b.call(a,t)&&l(e,t,a[t]);return e},d=(e,a)=>g(e,f(a));import{h as r}from"./auth.77d12976.js";import{u as y}from"./main.832b14c7.js";import{a as u}from"./vendor.01d0adc5.js";var m={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null};const{defineStore:w}=window.pinia,U=w({id:"customerUserStore",state:()=>({customers:[],userForm:{avatar:null,name:"",email:"",password:"",company:"",confirm_password:"",billing:i({},m),shipping:i({},m)}}),actions:{copyAddress(){this.userForm.shipping=d(i({},this.userForm.billing),{type:"shipping"})},fetchCurrentUser(){const e=h();return new Promise((a,t)=>{u.get(`/api/v1/${e.companySlug}/customer/me`).then(s=>{Object.assign(this.userForm,s.data.data),a(s)}).catch(s=>{r(s),t(s)})})},updateCurrentUser({data:e,message:a}){const t=h();return new Promise((s,o)=>{u.post(`/api/v1/${t.companySlug}/customer/profile`,e).then(n=>{this.userForm=n.data.data,t.currentUser=n.data.data,s(n),a&&y(!0).showNotification({type:"success",message:a})}).catch(n=>{r(n),o(n)})})}}}),{defineStore:_}=window.pinia,h=_({id:"CustomerPortalGlobalStore",state:()=>({languages:[],currency:null,isAppLoaded:!1,countries:[],getDashboardDataLoaded:!1,currentUser:null,companySlug:"",mainMenu:null,enabledModules:[]}),actions:{bootstrap(e){this.companySlug=e;const a=U();return new Promise((t,s)=>{u.get(`/api/v1/${e}/customer/bootstrap`).then(o=>{this.currentUser=o.data.data,this.mainMenu=o.data.meta.menu,this.currency=o.data.data.currency,this.enabledModules=o.data.meta.modules,Object.assign(a.userForm,o.data.data),window.i18n.locale=o.data.default_language,this.isAppLoaded=!0,t(o)}).catch(o=>{r(o),s(o)})})},fetchCountries(){return new Promise((e,a)=>{this.countries.length?e(this.countries):u.get(`/api/v1/${this.companySlug}/customer/countries`).then(t=>{this.countries=t.data.data,e(t)}).catch(t=>{r(t),a(t)})})}}});export{U as a,h as u};
import{h as a}from"./auth.77d12976.js";import{a as n}from"./vendor.01d0adc5.js";const{defineStore:s}=window.pinia,h=s({id:"customerInvoiceStore",state:()=>({totalInvoices:0,invoices:[],selectedViewInvoice:[]}),actions:{fetchInvoices(e,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices`,{params:e}).then(t=>{this.invoices=t.data.data,this.totalInvoices=t.data.meta.invoiceTotalCount,o(t)}).catch(t=>{a(t),c(t)})})},fetchViewInvoice(e,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices/${e.id}`,{params:e}).then(t=>{this.selectedViewInvoice=t.data.data,o(t)}).catch(t=>{a(t),c(t)})})},searchInvoice(e,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices`,{params:e}).then(t=>{this.invoices=t.data,o(t)}).catch(t=>{a(t),c(t)})})}}});export{h as u};
import{a as r,d}from"./vendor.01d0adc5.js";import{h as m,u as n}from"./main.832b14c7.js";const u=(l=!1)=>{const c=l?window.pinia.defineStore:d,{global:s}=window.i18n;return c({id:"mail-driver",state:()=>({mailConfigData:null,mail_driver:"smtp",mail_drivers:[],basicMailConfig:{mail_driver:"",mail_host:"",from_mail:"",from_name:""},mailgunConfig:{mail_driver:"",mail_mailgun_domain:"",mail_mailgun_secret:"",mail_mailgun_endpoint:"",from_mail:"",from_name:""},sesConfig:{mail_driver:"",mail_host:"",mail_port:null,mail_ses_key:"",mail_ses_secret:"",mail_encryption:"tls",from_mail:"",from_name:""},smtpConfig:{mail_driver:"",mail_host:"",mail_port:null,mail_username:"",mail_password:"",mail_encryption:"tls",from_mail:"",from_name:""}}),actions:{fetchMailDrivers(){return new Promise((t,e)=>{r.get("/api/v1/mail/drivers").then(i=>{i.data&&(this.mail_drivers=i.data),t(i)}).catch(i=>{m(i),e(i)})})},fetchMailConfig(){return new Promise((t,e)=>{r.get("/api/v1/mail/config").then(i=>{i.data&&(this.mailConfigData=i.data,this.mail_driver=i.data.mail_driver),t(i)}).catch(i=>{m(i),e(i)})})},updateMailConfig(t){return new Promise((e,i)=>{r.post("/api/v1/mail/config",t).then(a=>{const o=n();a.data.success?o.showNotification({type:"success",message:s.t("wizard.success."+a.data.success)}):o.showNotification({type:"error",message:s.t("wizard.errors."+a.data.error)}),e(a)}).catch(a=>{m(a),i(a)})})},sendTestMail(t){return new Promise((e,i)=>{r.post("/api/v1/mail/test",t).then(a=>{const o=n();a.data.success?o.showNotification({type:"success",message:s.t("general.send_mail_successfully")}):o.showNotification({type:"error",message:s.t("validation.something_went_wrong")}),e(a)}).catch(a=>{m(a),i(a)})})}}})()};export{u};
var Tt=Object.defineProperty,It=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var Xe=(s,r,i)=>r in s?Tt(s,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[r]=i,R=(s,r)=>{for(var i in r||(r={}))Rt.call(r,i)&&Xe(s,i,r[i]);if(Je)for(var i of Je(r))Ft.call(r,i)&&Xe(s,i,r[i]);return s},W=(s,r)=>It(s,$t(r));import{a as f,d as X,_ as oe,c as Mt,b as Vt,r as C,o as l,e as _,f as u,F as Q,g as F,n as Ce,h as c,w as g,i as K,t as w,j as S,k as D,l as T,u as d,m as A,p as pe,q as xe,v as Bt,s as le,x as J,y as ae,z as Qe,A as Ot,B as q,C as ge,D as ze,E as Lt,G as fe,H as Y,I as ye,J as Se,K as et,L as te,M as tt,N as Ve,O as at,P as Ut,Q as Kt,R as qt,S as Ae,T as Zt,U as re,V as Wt,W as Ht,X as Gt,Y as Ee,Z as Yt,$ as Jt,a0 as Be,a1 as st,a2 as Ne,a3 as nt,a4 as Xt,a5 as it,a6 as ot,a7 as rt,a8 as Qt,a9 as ea,aa as ta,ab as aa,ac as sa,ad as na,ae as ia,af as oa,ag as dt,ah as ra,ai as lt,aj as da,ak as la,al as ca,am as _a,an as ct,ao as ua,ap as ma,aq as pa,ar as ga,as as fa,at as ha,au as va,av as Oe,aw as _t,ax as ut,ay as ya,az as ba,aA as ka,aB as wa,aC as xa,aD as za,aE as Le,aF as Sa,aG as ja,aH as Pa,aI as Da,aJ as Ca,aK as Aa,aL as Ea}from"./vendor.01d0adc5.js";var Ue={get(s){return localStorage.getItem(s)?localStorage.getItem(s):null},set(s,r){localStorage.setItem(s,r)},remove(s){localStorage.removeItem(s)}};window.Ls=Ue;window.axios=f;f.defaults.withCredentials=!0;f.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"};f.interceptors.request.use(function(s){const r=Ue.get("selectedCompany"),i=Ue.get("auth.token");return i&&(s.headers.common.Authorization=i),r&&(s.headers.common.company=r),s});const M=(s=!1)=>(s?window.pinia.defineStore:X)({id:"notification",state:()=>({active:!1,autoHide:!0,notifications:[]}),actions:{showNotification(i){this.notifications.push(W(R({},i),{id:(Math.random().toString(36)+Date.now().toString(36)).substr(2)}))},hideNotification(i){this.notifications=this.notifications.filter(a=>a.id!=i.id)}}})(),Na=(s=!1)=>(s?window.pinia.defineStore:X)({id:"auth",state:()=>({status:"",loginData:{email:"",password:"",remember:""}}),actions:{login(i){return new Promise((a,t)=>{f.get("/sanctum/csrf-cookie").then(n=>{n&&f.post("/login",i).then(e=>{a(e),setTimeout(()=>{this.loginData.email="",this.loginData.password=""},1e3)}).catch(e=>{v(e),t(e)})})})},logout(){return new Promise((i,a)=>{f.get("/auth/logout").then(t=>{M().showNotification({type:"success",message:"Logged out successfully."}),window.router.push("/login"),i(t)}).catch(t=>{v(t),window.router.push("/"),a(t)})})}}})(),v=s=>{var a;const r=Na(),i=M();if(!s.response)i.showNotification({type:"error",message:"Please check your internet connection or wait until servers are back online."});else if(s.response.data&&(s.response.statusText==="Unauthorized"||s.response.data===" Unauthorized.")){const t=s.response.data.message?s.response.data.message:"Unauthorized";B(t),r.logout()}else if(s.response.data.errors){const t=JSON.parse(JSON.stringify(s.response.data.errors));for(const n in t)Te(t[n][0])}else s.response.data.error?typeof s.response.data.error=="boolean"?Te((a=s.response.data)==null?void 0:a.message):Te(s.response.data.error):Te(s.response.data.message)},Te=s=>{switch(s){case"These credentials do not match our records.":B("errors.login_invalid_credentials");break;case"invalid_key":B("errors.invalid_provider_key");break;case"This feature is available on Starter plan and onwards!":B("errors.starter_plan");break;case"taxes_attached":B("settings.tax_types.already_in_use");break;case"expense_attached":B("settings.expense_category.already_in_use");break;case"payments_attached":B("settings.payment_modes.already_in_use");break;case"role_attached_to_users":B("settings.roles.already_in_use");break;case"items_attached":B("settings.customization.items.already_in_use");break;case"payment_attached_message":B("invoices.payment_attached_message");break;case"The email has already been taken.":B("validation.email_already_taken");break;case"Relation estimateItems exists.":B("items.item_attached_message");break;case"Relation invoiceItems exists.":B("items.item_attached_message");break;case"Relation taxes exists.":B("settings.tax_types.already_in_use");break;case"Relation taxes exists.":B("settings.tax_types.already_in_use");break;case"Relation payments exists.":B("errors.payment_attached");break;case"The estimate number has already been taken.":B("errors.estimate_number_used");break;case"The payment number has already been taken.":B("errors.estimate_number_used");break;case"The invoice number has already been taken.":B("errors.invoice_number_used");break;case"The name has already been taken.":B("errors.name_already_taken");break;case"total_invoice_amount_must_be_more_than_paid_amount":B("invoices.invalid_due_amount_message");break;case"you_cannot_edit_currency":B("customers.edit_currency_not_allowed");break;case"receipt_does_not_exist":B("errors.receipt_does_not_exist");break;case"customer_cannot_be_changed_after_payment_is_added":B("errors.customer_cannot_be_changed_after_payment_is_added");break;case"invalid_credentials":B("errors.invalid_credentials");break;case"not_allowed":B("errors.not_allowed");break;case"invalid_key":B("errors.invalid_key");break;case"invalid_state":B("errors.invalid_state");break;case"invalid_city":B("errors.invalid_city");break;case"invalid_postal_code":B("errors.invalid_postal_code");break;case"invalid_format":B("errors.invalid_format");break;case"api_error":B("errors.api_error");break;case"feature_not_enabled":B("errors.feature_not_enabled");break;case"request_limit_met":B("errors.request_limit_met");break;case"address_incomplete":B("errors.address_incomplete");break;case"invalid_address":B("errors.invalid_address");break;case"Email could not be sent to this email address.":B("errors.email_could_not_be_sent");break;default:B(s,!1);break}},B=(s,r=!0)=>{const{global:i}=window.i18n;M().showNotification({type:"error",message:r?i.t(s):s})},je=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"user",state:()=>({currentUser:null,currentAbilities:[],currentUserSettings:{},userForm:{name:"",email:"",password:"",confirm_password:"",language:""}}),getters:{currentAbilitiesCount:a=>a.currentAbilities.length},actions:{updateCurrentUser(a){return new Promise((t,n)=>{f.put("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,Object.assign(this.userForm,e.data.data),M().showNotification({type:"success",message:i.t("settings.account_settings.updated_message")}),t(e)}).catch(e=>{v(e),n(e)})})},fetchCurrentUser(a){return new Promise((t,n)=>{f.get("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,this.userForm=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},uploadAvatar(a){return new Promise((t,n)=>{f.post("/api/v1/me/upload-avatar",a).then(e=>{this.currentUser.avatar=e.data.data.avatar,t(e)}).catch(e=>{v(e),n(e)})})},fetchUserSettings(a){return new Promise((t,n)=>{f.get("/api/v1/me/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},updateUserSettings(a){return new Promise((t,n)=>{f.put("/api/v1/me/settings",a).then(e=>{a.settings.language&&(this.currentUserSettings.language=a.settings.language,i.locale=a.settings.language),t(e)}).catch(e=>{v(e),n(e)})})},hasAbilities(a){return!!this.currentAbilities.find(t=>t.name==="*"?!0:typeof a=="string"?t.name===a:!!a.find(n=>t.name===n))},hasAllAbilities(a){let t=!0;return this.currentAbilities.filter(n=>{!!a.find(o=>n.name===o)||(t=!1)}),t}}})()},_e=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"company",state:()=>({companies:[],selectedCompany:null,selectedCompanySettings:{},selectedCompanyCurrency:null}),actions:{setSelectedCompany(a){window.Ls.set("selectedCompany",a.id),this.selectedCompany=a},fetchBasicMailConfig(){return new Promise((a,t)=>{f.get("/api/v1/company/mail/config").then(n=>{a(n)}).catch(n=>{v(n),t(n)})})},updateCompany(a){return new Promise((t,n)=>{f.put("/api/v1/company",a).then(e=>{M().showNotification({type:"success",message:i.t("settings.company_info.updated_message")}),this.selectedCompany=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},updateCompanyLogo(a){return new Promise((t,n)=>{f.post("/api/v1/company/upload-logo",a).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},addNewCompany(a){return new Promise((t,n)=>{f.post("/api/v1/companies",a).then(e=>{M().showNotification({type:"success",message:i.t("company_switcher.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},fetchCompany(a){return new Promise((t,n)=>{f.get("/api/v1/current-company",a).then(e=>{Object.assign(this.companyForm,e.data.data.address),this.companyForm.name=e.data.data.name,t(e)}).catch(e=>{v(e),n(e)})})},fetchUserCompanies(){return new Promise((a,t)=>{f.get("/api/v1/companies").then(n=>{a(n)}).catch(n=>{v(n),t(n)})})},fetchCompanySettings(a){return new Promise((t,n)=>{f.get("/api/v1/company/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},updateCompanySettings({data:a,message:t}){return new Promise((n,e)=>{f.post("/api/v1/company/settings",a).then(o=>{Object.assign(this.selectedCompanySettings,a.settings),t&&M().showNotification({type:"success",message:i.t(t)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteCompany(a){return new Promise((t,n)=>{f.post("/api/v1/companies/delete",a).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},setDefaultCurrency(a){this.defaultCurrency=a.currency}}})()},Ta=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"modules",state:()=>({currentModule:{},modules:[],apiToken:null,currentUser:{api_token:null},enableModules:[]}),getters:{salesTaxUSEnabled:a=>a.enableModules.includes("SalesTaxUS")},actions:{fetchModules(a){return new Promise((t,n)=>{f.get("/api/v1/modules").then(e=>{this.modules=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchModule(a){return new Promise((t,n)=>{f.get(`/api/v1/modules/${a}`).then(e=>{e.data.error==="invalid_token"?(this.currentModule={},this.modules=[],this.apiToken=null,this.currentUser.api_token=null,window.router.push("/admin/modules")):this.currentModule=e.data,t(e)}).catch(e=>{v(e),n(e)})})},checkApiToken(a){return new Promise((t,n)=>{f.get(`/api/v1/modules/check?api_token=${a}`).then(e=>{const o=M();e.data.error==="invalid_token"&&o.showNotification({type:"error",message:i.t("modules.invalid_api_token")}),t(e)}).catch(e=>{v(e),n(e)})})},disableModule(a){return new Promise((t,n)=>{f.post(`/api/v1/modules/${a}/disable`).then(e=>{const o=M();e.data.success&&o.showNotification({type:"success",message:i.t("modules.module_disabled")}),t(e)}).catch(e=>{v(e),n(e)})})},enableModule(a){return new Promise((t,n)=>{f.post(`/api/v1/modules/${a}/enable`).then(e=>{const o=M();e.data.success&&o.showNotification({type:"success",message:i.t("modules.module_enabled")}),t(e)}).catch(e=>{v(e),n(e)})})}}})()},Ie=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"global",state:()=>({config:null,globalSettings:null,timeZones:[],dateFormats:[],currencies:[],countries:[],languages:[],fiscalYears:[],mainMenu:[],settingMenu:[],isAppLoaded:!1,isSidebarOpen:!1,areCurrenciesLoading:!1,downloadReport:null}),getters:{menuGroups:a=>Object.values(oe.groupBy(a.mainMenu,"group"))},actions:{bootstrap(){return new Promise((a,t)=>{f.get("/api/v1/bootstrap").then(n=>{const e=_e(),o=je(),m=Ta();this.mainMenu=n.data.main_menu,this.settingMenu=n.data.setting_menu,this.config=n.data.config,this.globalSettings=n.data.global_settings,o.currentUser=n.data.current_user,o.currentUserSettings=n.data.current_user_settings,o.currentAbilities=n.data.current_user_abilities,m.apiToken=n.data.global_settings.api_token,m.enableModules=n.data.modules,e.companies=n.data.companies,e.selectedCompany=n.data.current_company,e.setSelectedCompany(n.data.current_company),e.selectedCompanySettings=n.data.current_company_settings,e.selectedCompanyCurrency=n.data.current_company_currency,i.locale=n.data.current_user_settings.language||"en",this.isAppLoaded=!0,a(n)}).catch(n=>{v(n),t(n)})})},fetchCurrencies(){return new Promise((a,t)=>{this.currencies.length||this.areCurrenciesLoading?a(this.currencies):(this.areCurrenciesLoading=!0,f.get("/api/v1/currencies").then(n=>{this.currencies=n.data.data.filter(e=>e.name=`${e.code} - ${e.name}`),this.areCurrenciesLoading=!1,a(n)}).catch(n=>{v(n),this.areCurrenciesLoading=!1,t(n)}))})},fetchConfig(a){return new Promise((t,n)=>{f.get("/api/v1/config",{params:a}).then(e=>{e.data.languages?this.languages=e.data.languages:this.fiscalYears=e.data.fiscal_years,t(e)}).catch(e=>{v(e),n(e)})})},fetchDateFormats(){return new Promise((a,t)=>{this.dateFormats.length?a(this.dateFormats):f.get("/api/v1/date/formats").then(n=>{this.dateFormats=n.data.date_formats,a(n)}).catch(n=>{v(n),t(n)})})},fetchTimeZones(){return new Promise((a,t)=>{this.timeZones.length?a(this.timeZones):f.get("/api/v1/timezones").then(n=>{this.timeZones=n.data.time_zones,a(n)}).catch(n=>{v(n),t(n)})})},fetchCountries(){return new Promise((a,t)=>{this.countries.length?a(this.countries):f.get("/api/v1/countries").then(n=>{this.countries=n.data.data,a(n)}).catch(n=>{v(n),t(n)})})},fetchPlaceholders(a){return new Promise((t,n)=>{f.get("/api/v1/number-placeholders",{params:a}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},setSidebarVisibility(a){this.isSidebarOpen=a},setIsAppLoaded(a){this.isAppLoaded=a},updateGlobalSettings({data:a,message:t}){return new Promise((n,e)=>{f.post("/api/v1/settings",a).then(o=>{Object.assign(this.globalSettings,a.settings),t&&M().showNotification({type:"success",message:i.t(t)}),n(o)}).catch(o=>{v(o),e(o)})})}}})()},Ia="modulepreload",mt={},$a="/build/",j=function(r,i){return!i||i.length===0?r():Promise.all(i.map(a=>{if(a=`${$a}${a}`,a in mt)return;mt[a]=!0;const t=a.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${n}`))return;const e=document.createElement("link");if(e.rel=t?"stylesheet":Ia,t||(e.as="script",e.crossOrigin=""),e.href=a,document.head.appendChild(e),t)return new Promise((o,m)=>{e.addEventListener("load",o),e.addEventListener("error",m)})})).then(()=>r())};var O={DASHBOARD:"dashboard",CREATE_CUSTOMER:"create-customer",DELETE_CUSTOMER:"delete-customer",EDIT_CUSTOMER:"edit-customer",VIEW_CUSTOMER:"view-customer",CREATE_ITEM:"create-item",DELETE_ITEM:"delete-item",EDIT_ITEM:"edit-item",VIEW_ITEM:"view-item",CREATE_TAX_TYPE:"create-tax-type",DELETE_TAX_TYPE:"delete-tax-type",EDIT_TAX_TYPE:"edit-tax-type",VIEW_TAX_TYPE:"view-tax-type",CREATE_ESTIMATE:"create-estimate",DELETE_ESTIMATE:"delete-estimate",EDIT_ESTIMATE:"edit-estimate",VIEW_ESTIMATE:"view-estimate",SEND_ESTIMATE:"send-estimate",CREATE_INVOICE:"create-invoice",DELETE_INVOICE:"delete-invoice",EDIT_INVOICE:"edit-invoice",VIEW_INVOICE:"view-invoice",SEND_INVOICE:"send-invoice",CREATE_RECURRING_INVOICE:"create-recurring-invoice",DELETE_RECURRING_INVOICE:"delete-recurring-invoice",EDIT_RECURRING_INVOICE:"edit-recurring-invoice",VIEW_RECURRING_INVOICE:"view-recurring-invoice",CREATE_PAYMENT:"create-payment",DELETE_PAYMENT:"delete-payment",EDIT_PAYMENT:"edit-payment",VIEW_PAYMENT:"view-payment",SEND_PAYMENT:"send-payment",CREATE_EXPENSE:"create-expense",DELETE_EXPENSE:"delete-expense",EDIT_EXPENSE:"edit-expense",VIEW_EXPENSE:"view-expense",CREATE_CUSTOM_FIELDS:"create-custom-field",DELETE_CUSTOM_FIELDS:"delete-custom-field",EDIT_CUSTOM_FIELDS:"edit-custom-field",VIEW_CUSTOM_FIELDS:"view-custom-field",CREATE_ROLE:"create-role",DELETE_ROLE:"delete-role",EDIT_ROLE:"edit-role",VIEW_ROLE:"view-role",VIEW_EXCHANGE_RATE:"view-exchange-rate-provider",CREATE_EXCHANGE_RATE:"create-exchange-rate-provider",EDIT_EXCHANGE_RATE:"edit-exchange-rate-provider",DELETE_EXCHANGE_RATE:"delete-exchange-rate-provider",VIEW_FINANCIAL_REPORT:"view-financial-reports",MANAGE_NOTE:"manage-all-notes",VIEW_NOTE:"view-all-notes"};const Ra=()=>j(()=>import("./LayoutInstallation.cb149016.js"),["assets/LayoutInstallation.cb149016.js","assets/NotificationRoot.9c69192b.js","assets/vendor.01d0adc5.js"]),pt=()=>j(()=>import("./Login.983aaf9c.js"),["assets/Login.983aaf9c.js","assets/vendor.01d0adc5.js"]),Fa=()=>j(()=>import("./LayoutBasic.9356da77.js"),["assets/LayoutBasic.9356da77.js","assets/vendor.01d0adc5.js","assets/exchange-rate.45b62b37.js","assets/users.936a04ee.js","assets/NotificationRoot.9c69192b.js","assets/index.esm.998a6eeb.js"]),Ma=()=>j(()=>import("./LayoutLogin.ff8102a9.js"),["assets/LayoutLogin.ff8102a9.js","assets/NotificationRoot.9c69192b.js","assets/vendor.01d0adc5.js"]),Va=()=>j(()=>import("./ResetPassword.d74cc4af.js"),["assets/ResetPassword.d74cc4af.js","assets/vendor.01d0adc5.js"]),Ba=()=>j(()=>import("./ForgotPassword.0995a53b.js"),["assets/ForgotPassword.0995a53b.js","assets/vendor.01d0adc5.js"]),Oa=()=>j(()=>import("./Dashboard.82801319.js"),["assets/Dashboard.82801319.js","assets/EstimateIcon.4571f94d.js","assets/vendor.01d0adc5.js","assets/LineChart.cef8475e.js","assets/InvoiceIndexDropdown.a0cb5742.js","assets/EstimateIndexDropdown.5b4a2113.js"]),La=()=>j(()=>import("./Index.e2a0d22a.js"),["assets/Index.e2a0d22a.js","assets/vendor.01d0adc5.js","assets/CustomerIndexDropdown.8fced79d.js","assets/AstronautIcon.948728ac.js"]),gt=()=>j(()=>import("./Create.475a76c5.js"),["assets/Create.475a76c5.js","assets/vendor.01d0adc5.js","assets/CreateCustomFields.940787b7.js"]),Ua=()=>j(()=>import("./View.e4530ad0.js"),["assets/View.e4530ad0.js","assets/vendor.01d0adc5.js","assets/LoadingIcon.cfb2fcf9.js","assets/LineChart.cef8475e.js","assets/CustomerIndexDropdown.8fced79d.js"]),Ka=()=>j(()=>import("./SettingsIndex.a567c11a.js"),["assets/SettingsIndex.a567c11a.js","assets/vendor.01d0adc5.js","assets/BaseListItem.9b6cf3ed.js"]),qa=()=>j(()=>import("./AccountSetting.da52ee4f.js"),["assets/AccountSetting.da52ee4f.js","assets/vendor.01d0adc5.js"]),Za=()=>j(()=>import("./CompanyInfoSettings.7205fcd8.js"),["assets/CompanyInfoSettings.7205fcd8.js","assets/vendor.01d0adc5.js"]),Wa=()=>j(()=>import("./PreferencesSetting.1aed7c20.js"),["assets/PreferencesSetting.1aed7c20.js","assets/vendor.01d0adc5.js"]),Ha=()=>j(()=>import("./CustomizationSetting.737665c8.js"),["assets/CustomizationSetting.737665c8.js","assets/vendor.01d0adc5.js","assets/DragIcon.88fb50b8.js","assets/payment.372edbf1.js","assets/ItemUnitModal.076e3ed4.js"]),Ga=()=>j(()=>import("./NotificationsSetting.11df416b.js"),["assets/NotificationsSetting.11df416b.js","assets/vendor.01d0adc5.js"]),Ya=()=>j(()=>import("./TaxTypesSetting.fd3301df.js"),["assets/TaxTypesSetting.fd3301df.js","assets/vendor.01d0adc5.js","assets/TaxTypeModal.cf69664d.js"]),Ja=()=>j(()=>import("./PaymentsModeSetting.dcc78254.js"),["assets/PaymentsModeSetting.dcc78254.js","assets/vendor.01d0adc5.js","assets/payment.372edbf1.js","assets/PaymentModeModal.c3a19345.js"]),Xa=()=>j(()=>import("./CustomFieldsSetting.501ee588.js"),["assets/CustomFieldsSetting.501ee588.js","assets/vendor.01d0adc5.js"]),Qa=()=>j(()=>import("./NotesSetting.e9205a98.js"),["assets/NotesSetting.e9205a98.js","assets/vendor.01d0adc5.js","assets/NoteModal.a07ce50b.js","assets/NoteModal.3245b7d3.css","assets/payment.372edbf1.js"]),es=()=>j(()=>import("./ExpenseCategorySetting.c1ee4ee9.js"),["assets/ExpenseCategorySetting.c1ee4ee9.js","assets/category.c27e9638.js","assets/vendor.01d0adc5.js","assets/CategoryModal.9d414df9.js"]),ts=()=>j(()=>import("./ExchangeRateProviderSetting.9a85b8a9.js"),["assets/ExchangeRateProviderSetting.9a85b8a9.js","assets/exchange-rate.45b62b37.js","assets/vendor.01d0adc5.js","assets/BaseTable.440de545.js"]),as=()=>j(()=>import("./MailConfigSetting.bed82965.js"),["assets/MailConfigSetting.bed82965.js","assets/vendor.01d0adc5.js","assets/mail-driver.1b5e2a8f.js"]),ss=()=>j(()=>import("./FileDiskSetting.d58a523e.js"),["assets/FileDiskSetting.d58a523e.js","assets/disk.3cfd12a4.js","assets/vendor.01d0adc5.js"]),ns=()=>j(()=>import("./BackupSetting.55f66228.js"),["assets/BackupSetting.55f66228.js","assets/vendor.01d0adc5.js","assets/disk.3cfd12a4.js"]),is=()=>j(()=>import("./UpdateAppSetting.6d85b6d6.js"),["assets/UpdateAppSetting.6d85b6d6.js","assets/UpdateAppSetting.7d8b987a.css","assets/vendor.01d0adc5.js","assets/LoadingIcon.cfb2fcf9.js","assets/exchange-rate.45b62b37.js"]),os=()=>j(()=>import("./RolesSettings.eab2dae6.js"),["assets/RolesSettings.eab2dae6.js","assets/vendor.01d0adc5.js"]),rs=()=>j(()=>import("./Index.e62ad0f6.js"),["assets/Index.e62ad0f6.js","assets/vendor.01d0adc5.js"]),ft=()=>j(()=>import("./Create.2eca81af.js"),["assets/Create.2eca81af.js","assets/vendor.01d0adc5.js","assets/ItemUnitModal.076e3ed4.js"]),ds=()=>j(()=>import("./Index.e0ef1077.js"),["assets/Index.e0ef1077.js","assets/vendor.01d0adc5.js","assets/expense.e774182e.js","assets/category.c27e9638.js"]),ht=()=>j(()=>import("./Create.d23f75f8.js"),["assets/Create.d23f75f8.js","assets/vendor.01d0adc5.js","assets/expense.e774182e.js","assets/category.c27e9638.js","assets/CreateCustomFields.940787b7.js","assets/CategoryModal.9d414df9.js","assets/ExchangeRateConverter.357f31c9.js","assets/exchange-rate.45b62b37.js"]),ls=()=>j(()=>import("./Index.009ded38.js"),["assets/Index.009ded38.js","assets/vendor.01d0adc5.js","assets/users.936a04ee.js","assets/AstronautIcon.948728ac.js"]),vt=()=>j(()=>import("./Create.475841f0.js"),["assets/Create.475841f0.js","assets/vendor.01d0adc5.js","assets/index.esm.998a6eeb.js","assets/users.936a04ee.js"]),cs=()=>j(()=>import("./Index.d9ed68a7.js"),["assets/Index.d9ed68a7.js","assets/vendor.01d0adc5.js","assets/ObservatoryIcon.1877bd3e.js","assets/EstimateIndexDropdown.5b4a2113.js","assets/SendEstimateModal.63b9a1be.js","assets/mail-driver.1b5e2a8f.js"]),yt=()=>j(()=>import("./EstimateCreate.74ff5f87.js"),["assets/EstimateCreate.74ff5f87.js","assets/vendor.01d0adc5.js","assets/SalesTax.da1d755f.js","assets/DragIcon.88fb50b8.js","assets/SelectNotePopup.b35e7850.js","assets/NoteModal.a07ce50b.js","assets/NoteModal.3245b7d3.css","assets/payment.372edbf1.js","assets/CreateCustomFields.940787b7.js","assets/ExchangeRateConverter.357f31c9.js","assets/exchange-rate.45b62b37.js","assets/TaxTypeModal.cf69664d.js"]),_s=()=>j(()=>import("./View.bd09940e.js"),["assets/View.bd09940e.js","assets/vendor.01d0adc5.js","assets/EstimateIndexDropdown.5b4a2113.js","assets/SendEstimateModal.63b9a1be.js","assets/mail-driver.1b5e2a8f.js","assets/LoadingIcon.cfb2fcf9.js"]),us=()=>j(()=>import("./Index.4e4fe99e.js"),["assets/Index.4e4fe99e.js","assets/vendor.01d0adc5.js","assets/payment.372edbf1.js","assets/CapsuleIcon.dc769b69.js","assets/SendPaymentModal.a713aa7b.js","assets/mail-driver.1b5e2a8f.js"]),Ke=()=>j(()=>import("./Create.7565e912.js"),["assets/Create.7565e912.js","assets/vendor.01d0adc5.js","assets/ExchangeRateConverter.357f31c9.js","assets/exchange-rate.45b62b37.js","assets/payment.372edbf1.js","assets/SelectNotePopup.b35e7850.js","assets/NoteModal.a07ce50b.js","assets/NoteModal.3245b7d3.css","assets/CreateCustomFields.940787b7.js","assets/PaymentModeModal.c3a19345.js"]),ms=()=>j(()=>import("./View.9d1371a6.js"),["assets/View.9d1371a6.js","assets/vendor.01d0adc5.js","assets/payment.372edbf1.js","assets/SendPaymentModal.a713aa7b.js","assets/mail-driver.1b5e2a8f.js","assets/LoadingIcon.cfb2fcf9.js"]),ps=()=>j(()=>import("./404.5c5416a6.js"),["assets/404.5c5416a6.js","assets/vendor.01d0adc5.js"]),gs=()=>j(()=>import("./Index.2bd1ee98.js"),["assets/Index.2bd1ee98.js","assets/vendor.01d0adc5.js","assets/MoonwalkerIcon.ab503573.js","assets/InvoiceIndexDropdown.a0cb5742.js","assets/SendInvoiceModal.35678ab1.js","assets/mail-driver.1b5e2a8f.js"]),bt=()=>j(()=>import("./InvoiceCreate.1070946f.js"),["assets/InvoiceCreate.1070946f.js","assets/vendor.01d0adc5.js","assets/SalesTax.da1d755f.js","assets/DragIcon.88fb50b8.js","assets/SelectNotePopup.b35e7850.js","assets/NoteModal.a07ce50b.js","assets/NoteModal.3245b7d3.css","assets/payment.372edbf1.js","assets/ExchangeRateConverter.357f31c9.js","assets/exchange-rate.45b62b37.js","assets/CreateCustomFields.940787b7.js","assets/TaxTypeModal.cf69664d.js"]),fs=()=>j(()=>import("./View.8105b510.js"),["assets/View.8105b510.js","assets/vendor.01d0adc5.js","assets/InvoiceIndexDropdown.a0cb5742.js","assets/SendInvoiceModal.35678ab1.js","assets/mail-driver.1b5e2a8f.js","assets/LoadingIcon.cfb2fcf9.js"]),hs=()=>j(()=>import("./Index.b07c0ccb.js"),["assets/Index.b07c0ccb.js","assets/vendor.01d0adc5.js","assets/SendInvoiceModal.35678ab1.js","assets/mail-driver.1b5e2a8f.js","assets/RecurringInvoiceIndexDropdown.c53e92ab.js","assets/MoonwalkerIcon.ab503573.js"]),kt=()=>j(()=>import("./RecurringInvoiceCreate.6dc9a09d.js"),["assets/RecurringInvoiceCreate.6dc9a09d.js","assets/vendor.01d0adc5.js","assets/SalesTax.da1d755f.js","assets/DragIcon.88fb50b8.js","assets/SelectNotePopup.b35e7850.js","assets/NoteModal.a07ce50b.js","assets/NoteModal.3245b7d3.css","assets/payment.372edbf1.js","assets/ExchangeRateConverter.357f31c9.js","assets/exchange-rate.45b62b37.js","assets/CreateCustomFields.940787b7.js","assets/TaxTypeModal.cf69664d.js"]),vs=()=>j(()=>import("./View.07e96e55.js"),["assets/View.07e96e55.js","assets/vendor.01d0adc5.js","assets/LoadingIcon.cfb2fcf9.js","assets/InvoiceIndexDropdown.a0cb5742.js","assets/RecurringInvoiceIndexDropdown.c53e92ab.js"]),ys=()=>j(()=>import("./Index.b248ed67.js"),["assets/Index.b248ed67.js","assets/vendor.01d0adc5.js"]),bs=()=>j(()=>import("./Installation.6e376b8f.js"),["assets/Installation.6e376b8f.js","assets/vendor.01d0adc5.js","assets/mail-driver.1b5e2a8f.js"]),ks=()=>j(()=>import("./Index.d59517a0.js"),["assets/Index.d59517a0.js","assets/vendor.01d0adc5.js"]),ws=()=>j(()=>import("./View.da3f3d2d.js"),["assets/View.da3f3d2d.js","assets/vendor.01d0adc5.js"]),xs=()=>j(()=>import("./InvoicePublicPage.e8730ff3.js"),["assets/InvoicePublicPage.e8730ff3.js","assets/vendor.01d0adc5.js"]);var zs=[{path:"/installation",component:Ra,meta:{requiresAuth:!1},children:[{path:"/installation",component:bs,name:"installation"}]},{path:"/customer/invoices/view/:hash",component:xs,name:"invoice.public"},{path:"/",component:Ma,meta:{requiresAuth:!1,redirectIfAuthenticated:!0},children:[{path:"",component:pt},{path:"login",name:"login",component:pt},{path:"forgot-password",component:Ba,name:"forgot-password"},{path:"/reset-password/:token",component:Va,name:"reset-password"}]},{path:"/admin",component:Fa,meta:{requiresAuth:!0},children:[{path:"dashboard",name:"dashboard",meta:{ability:O.DASHBOARD},component:Oa},{path:"customers",meta:{ability:O.VIEW_CUSTOMER},component:La},{path:"customers/create",name:"customers.create",meta:{ability:O.CREATE_CUSTOMER},component:gt},{path:"customers/:id/edit",name:"customers.edit",meta:{ability:O.EDIT_CUSTOMER},component:gt},{path:"customers/:id/view",name:"customers.view",meta:{ability:O.VIEW_CUSTOMER},component:Ua},{path:"payments",meta:{ability:O.VIEW_PAYMENT},component:us},{path:"payments/create",name:"payments.create",meta:{ability:O.CREATE_PAYMENT},component:Ke},{path:"payments/:id/create",name:"invoice.payments.create",meta:{ability:O.CREATE_PAYMENT},component:Ke},{path:"payments/:id/edit",name:"payments.edit",meta:{ability:O.EDIT_PAYMENT},component:Ke},{path:"payments/:id/view",name:"payments.view",meta:{ability:O.VIEW_PAYMENT},component:ms},{path:"settings",name:"settings",component:Ka,children:[{path:"account-settings",name:"account.settings",component:qa},{path:"company-info",name:"company.info",meta:{isOwner:!0},component:Za},{path:"preferences",name:"preferences",meta:{isOwner:!0},component:Wa},{path:"customization",name:"customization",meta:{isOwner:!0},component:Ha},{path:"notifications",name:"notifications",meta:{isOwner:!0},component:Ga},{path:"roles-settings",name:"roles.settings",meta:{isOwner:!0},component:os},{path:"exchange-rate-provider",name:"exchange.rate.provider",meta:{ability:O.VIEW_EXCHANGE_RATE},component:ts},{path:"tax-types",name:"tax.types",meta:{ability:O.VIEW_TAX_TYPE},component:Ya},{path:"notes",name:"notes",meta:{ability:O.VIEW_ALL_NOTES},component:Qa},{path:"payment-mode",name:"payment.mode",component:Ja},{path:"custom-fields",name:"custom.fields",meta:{ability:O.VIEW_CUSTOM_FIELDS},component:Xa},{path:"expense-category",name:"expense.category",meta:{ability:O.VIEW_EXPENSE},component:es},{path:"mail-configuration",name:"mailconfig",meta:{isOwner:!0},component:as},{path:"file-disk",name:"file-disk",meta:{isOwner:!0},component:ss},{path:"backup",name:"backup",meta:{isOwner:!0},component:ns},{path:"update-app",name:"updateapp",meta:{isOwner:!0},component:is}]},{path:"items",meta:{ability:O.VIEW_ITEM},component:rs},{path:"items/create",name:"items.create",meta:{ability:O.CREATE_ITEM},component:ft},{path:"items/:id/edit",name:"items.edit",meta:{ability:O.EDIT_ITEM},component:ft},{path:"expenses",meta:{ability:O.VIEW_EXPENSE},component:ds},{path:"expenses/create",name:"expenses.create",meta:{ability:O.CREATE_EXPENSE},component:ht},{path:"expenses/:id/edit",name:"expenses.edit",meta:{ability:O.EDIT_EXPENSE},component:ht},{path:"users",name:"users.index",meta:{isOwner:!0},component:ls},{path:"users/create",meta:{isOwner:!0},name:"users.create",component:vt},{path:"users/:id/edit",name:"users.edit",meta:{isOwner:!0},component:vt},{path:"estimates",name:"estimates.index",meta:{ability:O.VIEW_ESTIMATE},component:cs},{path:"estimates/create",name:"estimates.create",meta:{ability:O.CREATE_ESTIMATE},component:yt},{path:"estimates/:id/view",name:"estimates.view",meta:{ability:O.VIEW_ESTIMATE},component:_s},{path:"estimates/:id/edit",name:"estimates.edit",meta:{ability:O.EDIT_ESTIMATE},component:yt},{path:"invoices",name:"invoices.index",meta:{ability:O.VIEW_INVOICE},component:gs},{path:"invoices/create",name:"invoices.create",meta:{ability:O.CREATE_INVOICE},component:bt},{path:"invoices/:id/view",name:"invoices.view",meta:{ability:O.VIEW_INVOICE},component:fs},{path:"invoices/:id/edit",name:"invoices.edit",meta:{ability:O.EDIT_INVOICE},component:bt},{path:"recurring-invoices",name:"recurring-invoices.index",meta:{ability:O.VIEW_RECURRING_INVOICE},component:hs},{path:"recurring-invoices/create",name:"recurring-invoices.create",meta:{ability:O.CREATE_RECURRING_INVOICE},component:kt},{path:"recurring-invoices/:id/view",name:"recurring-invoices.view",meta:{ability:O.VIEW_RECURRING_INVOICE},component:vs},{path:"recurring-invoices/:id/edit",name:"recurring-invoices.edit",meta:{ability:O.EDIT_RECURRING_INVOICE},component:kt},{path:"modules",name:"modules.index",meta:{isOwner:!0},component:ks},{path:"modules/:slug",name:"modules.view",meta:{isOwner:!0},component:ws},{path:"reports",meta:{ability:O.VIEW_FINANCIAL_REPORT},component:ys}]},{path:"/:catchAll(.*)",component:ps}];const Ss=()=>j(()=>import("./LayoutBasic.93ba7a34.js"),["assets/LayoutBasic.93ba7a34.js","assets/auth.77d12976.js","assets/vendor.01d0adc5.js","assets/global.8697213a.js","assets/NotificationRoot.9c69192b.js"]),js=()=>j(()=>import("./LayoutLogin.2470450f.js"),["assets/LayoutLogin.2470450f.js","assets/NotificationRoot.9c69192b.js","assets/vendor.01d0adc5.js"]),wt=()=>j(()=>import("./Login.ac27c54a.js"),["assets/Login.ac27c54a.js","assets/vendor.01d0adc5.js","assets/auth.77d12976.js"]),Ps=()=>j(()=>import("./ForgotPassword.3e4f7a08.js"),["assets/ForgotPassword.3e4f7a08.js","assets/vendor.01d0adc5.js","assets/auth.77d12976.js"]),Ds=()=>j(()=>import("./ResetPassword.5e8676a5.js"),["assets/ResetPassword.5e8676a5.js","assets/vendor.01d0adc5.js","assets/global.8697213a.js","assets/auth.77d12976.js"]),Cs=()=>j(()=>import("./Dashboard.63b9cd0b.js"),["assets/Dashboard.63b9cd0b.js","assets/EstimateIcon.4571f94d.js","assets/vendor.01d0adc5.js","assets/global.8697213a.js","assets/auth.77d12976.js","assets/BaseTable.440de545.js"]),As=()=>j(()=>import("./Index.783e6ec5.js"),["assets/Index.783e6ec5.js","assets/vendor.01d0adc5.js","assets/invoice.fd03309f.js","assets/auth.77d12976.js","assets/BaseTable.440de545.js","assets/global.8697213a.js","assets/MoonwalkerIcon.ab503573.js"]),Es=()=>j(()=>import("./View.323e6604.js"),["assets/View.323e6604.js","assets/vendor.01d0adc5.js","assets/invoice.fd03309f.js","assets/auth.77d12976.js","assets/global.8697213a.js"]),Ns=()=>j(()=>import("./Index.2e179c87.js"),["assets/Index.2e179c87.js","assets/vendor.01d0adc5.js","assets/BaseTable.440de545.js","assets/global.8697213a.js","assets/auth.77d12976.js","assets/estimate.5745bb55.js","assets/ObservatoryIcon.1877bd3e.js"]),Ts=()=>j(()=>import("./View.a394d4d6.js"),["assets/View.a394d4d6.js","assets/vendor.01d0adc5.js","assets/estimate.5745bb55.js","assets/auth.77d12976.js","assets/global.8697213a.js"]),Is=()=>j(()=>import("./Index.16cd769b.js"),["assets/Index.16cd769b.js","assets/vendor.01d0adc5.js","assets/BaseTable.440de545.js","assets/CapsuleIcon.dc769b69.js","assets/payment.b36842df.js","assets/auth.77d12976.js","assets/global.8697213a.js"]),$s=()=>j(()=>import("./View.9e3aab31.js"),["assets/View.9e3aab31.js","assets/vendor.01d0adc5.js","assets/payment.b36842df.js","assets/auth.77d12976.js","assets/global.8697213a.js"]),Rs=()=>j(()=>import("./SettingsIndex.137f25aa.js"),["assets/SettingsIndex.137f25aa.js","assets/BaseListItem.9b6cf3ed.js","assets/vendor.01d0adc5.js","assets/global.8697213a.js","assets/auth.77d12976.js"]),Fs=()=>j(()=>import("./CustomerSettings.e1586718.js"),["assets/CustomerSettings.e1586718.js","assets/vendor.01d0adc5.js","assets/global.8697213a.js","assets/auth.77d12976.js"]),Ms=()=>j(()=>import("./AddressInformation.1c2a332c.js"),["assets/AddressInformation.1c2a332c.js","assets/vendor.01d0adc5.js","assets/global.8697213a.js","assets/auth.77d12976.js"]);var Vs=[{path:"/:company/customer",component:js,meta:{redirectIfAuthenticated:!0},children:[{path:"",component:wt},{path:"login",component:wt,name:"customer.login"},{path:"forgot-password",component:Ps,name:"customer.forgot-password"},{path:"reset/password/:token",component:Ds,name:"customer.reset-password"}]},{path:"/:company/customer",component:Ss,meta:{requiresAuth:!0},children:[{path:"dashboard",component:Cs,name:"customer.dashboard"},{path:"invoices",component:As,name:"invoices.dashboard"},{path:"invoices/:id/view",component:Es,name:"customer.invoices.view"},{path:"estimates",component:Ns,name:"estimates.dashboard"},{path:"estimates/:id/view",component:Ts,name:"customer.estimates.view"},{path:"payments",component:Is,name:"payments.dashboard"},{path:"payments/:id/view",component:$s,name:"customer.payments.view"},{path:"settings",component:Rs,name:"customer",children:[{path:"customer-profile",component:Fs,name:"customer.profile"},{path:"address-info",component:Ms,name:"customer.address.info"}]}]}];let qe=[];qe=qe.concat(zs,Vs);const $e=Mt({history:Vt(),linkActiveClass:"active",routes:qe});$e.beforeEach((s,r,i)=>{const a=je(),t=Ie();let n=s.meta.ability;const{isAppLoaded:e}=t;n&&e&&s.meta.requiresAuth?a.hasAbilities(n)?i():i({name:"account.settings"}):s.meta.isOwner&&e?a.currentUser.is_owner?i():i({name:"dashboard"}):i()});var ee=(s,r)=>{const i=s.__vccOpts||s;for(const[a,t]of r)i[a]=t;return i};const Bs={};function Os(s,r){const i=C("router-view"),a=C("BaseDialog");return l(),_(Q,null,[u(i),u(a)],64)}var Ls=ee(Bs,[["render",Os]]);const Us={dashboard:"Dashboard",customers:"Customers",items:"Items",invoices:"Invoices","recurring-invoices":"Recurring Invoices",expenses:"Expenses",estimates:"Estimates",payments:"Payments",reports:"Reports",settings:"Settings",logout:"Logout",users:"Users",modules:"Modules"},Ks={add_company:"Add Company",view_pdf:"View PDF",copy_pdf_url:"Copy PDF Url",download_pdf:"Download PDF",save:"Save",create:"Create",cancel:"Cancel",update:"Update",deselect:"Deselect",download:"Download",from_date:"From Date",to_date:"To Date",from:"From",to:"To",ok:"Ok",yes:"Yes",no:"No",sort_by:"Sort By",ascending:"Ascending",descending:"Descending",subject:"Subject",body:"Body",message:"Message",send:"Send",preview:"Preview",go_back:"Go Back",back_to_login:"Back to Login?",home:"Home",filter:"Filter",delete:"Delete",edit:"Edit",view:"View",add_new_item:"Add New Item",clear_all:"Clear All",showing:"Showing",of:"of",actions:"Actions",subtotal:"SUBTOTAL",discount:"DISCOUNT",fixed:"Fixed",percentage:"Percentage",tax:"TAX",total_amount:"TOTAL AMOUNT",bill_to:"Bill to",ship_to:"Ship to",due:"Due",draft:"Draft",sent:"Sent",all:"All",select_all:"Select All",select_template:"Select Template",choose_file:"Click here to choose a file",choose_template:"Choose a template",choose:"Choose",remove:"Remove",select_a_status:"Select a status",select_a_tax:"Select a tax",search:"Search",are_you_sure:"Are you sure?",list_is_empty:"List is empty.",no_tax_found:"No tax found!",four_zero_four:"404",you_got_lost:"Whoops! You got Lost!",go_home:"Go Home",test_mail_conf:"Test Mail Configuration",send_mail_successfully:"Mail sent successfully",setting_updated:"Setting updated successfully",select_state:"Select state",select_country:"Select Country",select_city:"Select City",street_1:"Street 1",street_2:"Street 2",action_failed:"Action Failed",retry:"Retry",choose_note:"Choose Note",no_note_found:"No Note Found",insert_note:"Insert Note",copied_pdf_url_clipboard:"Copied PDF url to clipboard!",copied_url_clipboard:"Copied url to clipboard!",docs:"Docs",do_you_wish_to_continue:"Do you wish to continue?",note:"Note",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully"},qs={select_year:"Select year",cards:{due_amount:"Amount Due",customers:"Customers",invoices:"Invoices",estimates:"Estimates",payments:"Payments"},chart_info:{total_sales:"Sales",total_receipts:"Receipts",total_expense:"Expenses",net_income:"Net Income",year:"Select year"},monthly_chart:{title:"Sales & Expenses"},recent_invoices_card:{title:"Due Invoices",due_on:"Due On",customer:"Customer",amount_due:"Amount Due",actions:"Actions",view_all:"View All"},recent_estimate_card:{title:"Recent Estimates",date:"Date",customer:"Customer",amount_due:"Amount Due",actions:"Actions",view_all:"View All"}},Zs={name:"Name",description:"Description",percent:"Percent",compound_tax:"Compound Tax"},Ws={search:"Search...",customers:"Customers",users:"Users",no_results_found:"No Results Found"},Hs={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},Gs={today:"Today",this_week:"This Week",this_month:"This Month",this_quarter:"This Quarter",this_year:"This Year",previous_week:"Previous Week",previous_month:"Previous Month",previous_quarter:"Previous Quarter",previous_year:"Previous Year",custom:"Custom"},Ys={title:"Customers",prefix:"Prefix",add_customer:"Add Customer",contacts_list:"Customer List",name:"Name",mail:"Mail | Mails",statement:"Statement",display_name:"Display Name",primary_contact_name:"Primary Contact Name",contact_name:"Contact Name",amount_due:"Amount Due",email:"Email",address:"Address",phone:"Phone",website:"Website",overview:"Overview",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",enable_portal:"Enable Portal",country:"Country",state:"State",city:"City",zip_code:"Zip Code",added_on:"Added On",action:"Action",password:"Password",confirm_password:"Confirm Password",street_number:"Street Number",primary_currency:"Primary Currency",description:"Description",add_new_customer:"Add New Customer",save_customer:"Save Customer",update_customer:"Update Customer",customer:"Customer | Customers",new_customer:"New Customer",edit_customer:"Edit Customer",basic_info:"Basic Info",portal_access:"Portal Access",portal_access_text:"Would you like to allow this customer to login to the Customer Portal?",portal_access_url:"Customer Portal Login URL",portal_access_url_help:"Please copy & forward the above given URL to your customer for providing access.",billing_address:"Billing Address",shipping_address:"Shipping Address",copy_billing_address:"Copy from Billing",no_customers:"No customers yet!",no_customers_found:"No customers found!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"This section will contain the list of customers.",primary_display_name:"Primary Display Name",select_currency:"Select currency",select_a_customer:"Select a customer",type_or_click:"Type or click to select",new_transaction:"New Transaction",no_matching_customers:"There are no matching customers!",phone_number:"Phone Number",create_date:"Create Date",confirm_delete:"You will not be able to recover this customer and all the related Invoices, Estimates and Payments. | You will not be able to recover these customers and all the related Invoices, Estimates and Payments.",created_message:"Customer created successfully",updated_message:"Customer updated successfully",address_updated_message:"Address Information Updated succesfully",deleted_message:"Customer deleted successfully | Customers deleted successfully",edit_currency_not_allowed:"Cannot change currency once transactions created."},Js={title:"Items",items_list:"Items List",name:"Name",unit:"Unit",description:"Description",added_on:"Added On",price:"Price",date_of_creation:"Date Of Creation",not_selected:"No item selected",action:"Action",add_item:"Add Item",save_item:"Save Item",update_item:"Update Item",item:"Item | Items",add_new_item:"Add New Item",new_item:"New Item",edit_item:"Edit Item",no_items:"No items yet!",list_of_items:"This section will contain the list of items.",select_a_unit:"select unit",taxes:"Taxes",item_attached_message:"Cannot delete an item which is already in use",confirm_delete:"You will not be able to recover this Item | You will not be able to recover these Items",created_message:"Item created successfully",updated_message:"Item updated successfully",deleted_message:"Item deleted successfully | Items deleted successfully"},Xs={title:"Estimates",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"Estimate | Estimates",estimates_list:"Estimates List",days:"{days} Days",months:"{months} Month",years:"{years} Year",all:"All",paid:"Paid",unpaid:"Unpaid",customer:"CUSTOMER",ref_no:"REF NO.",number:"NUMBER",amount_due:"AMOUNT DUE",partially_paid:"Partially Paid",total:"Total",discount:"Discount",sub_total:"Sub Total",estimate_number:"Estimate Number",ref_number:"Ref Number",contact:"Contact",add_item:"Add an Item",date:"Date",due_date:"Due Date",expiry_date:"Expiry Date",status:"Status",add_tax:"Add Tax",amount:"Amount",action:"Action",notes:"Notes",tax:"Tax",estimate_template:"Template",convert_to_invoice:"Convert to Invoice",mark_as_sent:"Mark as Sent",send_estimate:"Send Estimate",resend_estimate:"Resend Estimate",record_payment:"Record Payment",add_estimate:"Add Estimate",save_estimate:"Save Estimate",confirm_conversion:"This estimate will be used to create a new Invoice.",conversion_message:"Invoice created successful",confirm_send_estimate:"This estimate will be sent via email to the customer",confirm_mark_as_sent:"This estimate will be marked as sent",confirm_mark_as_accepted:"This estimate will be marked as Accepted",confirm_mark_as_rejected:"This estimate will be marked as Rejected",no_matching_estimates:"There are no matching estimates!",mark_as_sent_successfully:"Estimate marked as sent successfully",send_estimate_successfully:"Estimate sent successfully",errors:{required:"Field is required"},accepted:"Accepted",rejected:"Rejected",expired:"Expired",sent:"Sent",draft:"Draft",viewed:"Viewed",declined:"Declined",new_estimate:"New Estimate",add_new_estimate:"Add New Estimate",update_Estimate:"Update Estimate",edit_estimate:"Edit Estimate",items:"items",Estimate:"Estimate | Estimates",add_new_tax:"Add New Tax",no_estimates:"No estimates yet!",list_of_estimates:"This section will contain the list of estimates.",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",marked_as_accepted_message:"Estimate marked as accepted",marked_as_rejected_message:"Estimate marked as rejected",confirm_delete:"You will not be able to recover this Estimate | You will not be able to recover these Estimates",created_message:"Estimate created successfully",updated_message:"Estimate updated successfully",deleted_message:"Estimate deleted successfully | Estimates deleted successfully",something_went_wrong:"something went wrong",item:{title:"Item Title",description:"Description",quantity:"Quantity",price:"Price",discount:"Discount",total:"Total",total_discount:"Total Discount",sub_total:"Sub Total",tax:"Tax",amount:"Amount",select_an_item:"Type or click to select an item",type_item_description:"Type Item Description (optional)"}},Qs={title:"Invoices",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Invoices List",invoice_information:"Invoice Information",days:"{days} Days",months:"{months} Month",years:"{years} Year",all:"All",paid:"Paid",unpaid:"Unpaid",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CUSTOMER",paid_status:"PAID STATUS",ref_no:"REF NO.",number:"NUMBER",amount_due:"AMOUNT DUE",partially_paid:"Partially Paid",total:"Total",discount:"Discount",sub_total:"Sub Total",invoice:"Invoice | Invoices",invoice_number:"Invoice Number",ref_number:"Ref Number",contact:"Contact",add_item:"Add an Item",date:"Date",due_date:"Due Date",status:"Status",add_tax:"Add Tax",amount:"Amount",action:"Action",notes:"Notes",view:"View",send_invoice:"Send Invoice",resend_invoice:"Resend Invoice",invoice_template:"Invoice Template",conversion_message:"Invoice cloned successful",template:"Select Template",mark_as_sent:"Mark as sent",confirm_send_invoice:"This invoice will be sent via email to the customer",invoice_mark_as_sent:"This invoice will be marked as sent",confirm_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",confirm_send:"This invoice will be sent via email to the customer",invoice_date:"Invoice Date",record_payment:"Record Payment",add_new_invoice:"Add New Invoice",update_expense:"Update Expense",edit_invoice:"Edit Invoice",new_invoice:"New Invoice",save_invoice:"Save Invoice",update_invoice:"Update Invoice",add_new_tax:"Add New Tax",no_invoices:"No Invoices yet!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",list_of_invoices:"This section will contain the list of invoices.",select_invoice:"Select Invoice",no_matching_invoices:"There are no matching invoices!",mark_as_sent_successfully:"Invoice marked as sent successfully",invoice_sent_successfully:"Invoice sent successfully",cloned_successfully:"Invoice cloned successfully",clone_invoice:"Clone Invoice",confirm_clone:"This invoice will be cloned into a new Invoice",item:{title:"Item Title",description:"Description",quantity:"Quantity",price:"Price",discount:"Discount",total:"Total",total_discount:"Total Discount",sub_total:"Sub Total",tax:"Tax",amount:"Amount",select_an_item:"Type or click to select an item",type_item_description:"Type Item Description (optional)"},payment_attached_message:"One of the selected invoices already have a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal",confirm_delete:"You will not be able to recover this Invoice | You will not be able to recover these Invoices",created_message:"Invoice created successfully",updated_message:"Invoice updated successfully",deleted_message:"Invoice deleted successfully | Invoices deleted successfully",marked_as_sent_message:"Invoice marked as sent successfully",something_went_wrong:"something went wrong",invalid_due_amount_message:"Total Invoice amount cannot be less than total paid amount for this Invoice. Please update the invoice or delete the associated payments to continue."},en={title:"Recurring Invoices",invoices_list:"Recurring Invoices List",days:"{days} Days",months:"{months} Month",years:"{years} Year",all:"All",paid:"Paid",unpaid:"Unpaid",viewed:"Viewed",overdue:"Overdue",active:"Active",completed:"Completed",customer:"CUSTOMER",paid_status:"PAID STATUS",ref_no:"REF NO.",number:"NUMBER",amount_due:"AMOUNT DUE",partially_paid:"Partially Paid",total:"Total",discount:"Discount",sub_total:"Sub Total",invoice:"Recurring Invoice | Recurring Invoices",invoice_number:"Recurring Invoice Number",next_invoice_date:"Next Invoice Date",ref_number:"Ref Number",contact:"Contact",add_item:"Add an Item",date:"Date",limit_by:"Limit by",limit_date:"Limit Date",limit_count:"Limit Count",count:"Count",status:"Status",select_a_status:"Select a status",working:"Working",on_hold:"On Hold",complete:"Completed",add_tax:"Add Tax",amount:"Amount",action:"Action",notes:"Notes",view:"View",basic_info:"Basic Info",send_invoice:"Send Recurring Invoice",auto_send:"Auto Send",resend_invoice:"Resend Recurring Invoice",invoice_template:"Recurring Invoice Template",conversion_message:"Recurring Invoice cloned successful",template:"Template",mark_as_sent:"Mark as sent",confirm_send_invoice:"This recurring invoice will be sent via email to the customer",invoice_mark_as_sent:"This recurring invoice will be marked as sent",confirm_send:"This recurring invoice will be sent via email to the customer",starts_at:"Start Date",due_date:"Invoice Due Date",record_payment:"Record Payment",add_new_invoice:"Add New Recurring Invoice",update_expense:"Update Expense",edit_invoice:"Edit Recurring Invoice",new_invoice:"New Recurring Invoice",send_automatically:"Send Automatically",send_automatically_desc:"Enable this, if you would like to send the invoice automatically to the customer when its created.",save_invoice:"Save Recurring Invoice",update_invoice:"Update Recurring Invoice",add_new_tax:"Add New Tax",no_invoices:"No Recurring Invoices yet!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",list_of_invoices:"This section will contain the list of recurring invoices.",select_invoice:"Select Invoice",no_matching_invoices:"There are no matching recurring invoices!",mark_as_sent_successfully:"Recurring Invoice marked as sent successfully",invoice_sent_successfully:"Recurring Invoice sent successfully",cloned_successfully:"Recurring Invoice cloned successfully",clone_invoice:"Clone Recurring Invoice",confirm_clone:"This recurring invoice will be cloned into a new Recurring Invoice",item:{title:"Item Title",description:"Description",quantity:"Quantity",price:"Price",discount:"Discount",total:"Total",total_discount:"Total Discount",sub_total:"Sub Total",tax:"Tax",amount:"Amount",select_an_item:"Type or click to select an item",type_item_description:"Type Item Description (optional)"},frequency:{title:"Frequency",select_frequency:"Select Frequency",minute:"Minute",hour:"Hour",day_month:"Day of month",month:"Month",day_week:"Day of week"},confirm_delete:"You will not be able to recover this Invoice | You will not be able to recover these Invoices",created_message:"Recurring Invoice created successfully",updated_message:"Recurring Invoice updated successfully",deleted_message:"Recurring Invoice deleted successfully | Recurring Invoices deleted successfully",marked_as_sent_message:"Recurring Invoice marked as sent successfully",user_email_does_not_exist:"User email does not exist",something_went_wrong:"something went wrong",invalid_due_amount_message:"Total Recurring Invoice amount cannot be less than total paid amount for this Recurring Invoice. Please update the invoice or delete the associated payments to continue."},tn={title:"Payments",payments_list:"Payments List",record_payment:"Record Payment",customer:"Customer",date:"Date",amount:"Amount",action:"Action",payment_number:"Payment Number",payment_mode:"Payment Mode",invoice:"Invoice",note:"Note",add_payment:"Add Payment",new_payment:"New Payment",edit_payment:"Edit Payment",view_payment:"View Payment",add_new_payment:"Add New Payment",send_payment_receipt:"Send Payment Receipt",send_payment:"Send Payment",save_payment:"Save Payment",update_payment:"Update Payment",payment:"Payment | Payments",no_payments:"No payments yet!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"There are no matching payments!",list_of_payments:"This section will contain the list of payments.",select_payment_mode:"Select payment mode",confirm_mark_as_sent:"This estimate will be marked as sent",confirm_send_payment:"This payment will be sent via email to the customer",send_payment_successfully:"Payment sent successfully",something_went_wrong:"something went wrong",confirm_delete:"You will not be able to recover this Payment | You will not be able to recover these Payments",created_message:"Payment created successfully",updated_message:"Payment updated successfully",deleted_message:"Payment deleted successfully | Payments deleted successfully",invalid_amount_message:"Payment amount is invalid"},an={title:"Expenses",expenses_list:"Expenses List",select_a_customer:"Select a customer",expense_title:"Title",customer:"Customer",currency:"Currency",contact:"Contact",category:"Category",from_date:"From Date",to_date:"To Date",expense_date:"Date",description:"Description",receipt:"Receipt",amount:"Amount",action:"Action",not_selected:"Not selected",note:"Note",category_id:"Category Id",date:"Date",add_expense:"Add Expense",add_new_expense:"Add New Expense",save_expense:"Save Expense",update_expense:"Update Expense",download_receipt:"Download Receipt",edit_expense:"Edit Expense",new_expense:"New Expense",expense:"Expense | Expenses",no_expenses:"No expenses yet!",list_of_expenses:"This section will contain the list of expenses.",confirm_delete:"You will not be able to recover this Expense | You will not be able to recover these Expenses",created_message:"Expense created successfully",updated_message:"Expense updated successfully",deleted_message:"Expense deleted successfully | Expenses deleted successfully",categories:{categories_list:"Categories List",title:"Title",name:"Name",description:"Description",amount:"Amount",actions:"Actions",add_category:"Add Category",new_category:"New Category",category:"Category | Categories",select_a_category:"Select a category"}},sn={email:"Email",password:"Password",forgot_password:"Forgot Password?",or_signIn_with:"or Sign in with",login:"Login",register:"Register",reset_password:"Reset Password",password_reset_successfully:"Password Reset Successfully",enter_email:"Enter email",enter_password:"Enter Password",retype_password:"Retype Password"},nn={buy_now:"Buy Now",install:"Install",price:"Price",download_zip_file:"Download ZIP file",unzipping_package:"Unzipping Package",copying_files:"Copying Files",deleting_files:"Deleting Unused files",completing_installation:"Completing Installation",update_failed:"Update Failed",install_success:"Module has been installed successfully!",customer_reviews:"Reviews",license:"License",faq:"FAQ",monthly:"Monthly",yearly:"Yearly",updated:"Updated",version:"Version",disable:"Disable",module_disabled:"Module Disabled",enable:"Enable",module_enabled:"Module Enabled",update_to:"Update To",module_updated:"Module Updated Successfully!",title:"Modules",module:"Module | Modules",api_token:"API token",invalid_api_token:"Invalid API Token.",other_modules:"Other Modules",view_all:"View All",no_reviews_found:"There are no reviews for this module yet!",module_not_purchased:"Module Not Purchased",module_not_found:"Module Not Found",version_not_supported:"This module version doesn't support the current version of Crater",last_updated:"Last Updated On",connect_installation:"Connect your installation",api_token_description:"Login to {url} and connect this installation by entering the API Token. Your purchased modules will show up here after the connection is established.",view_module:"View Module",update_available:"Update Available",purchased:"Purchased",installed:"Installed",no_modules_installed:"No Modules Installed Yet!",disable_warning:"All the settings for this particular will be reverted.",what_you_get:"What you get"},on={title:"Users",users_list:"Users List",name:"Name",description:"Description",added_on:"Added On",date_of_creation:"Date Of Creation",action:"Action",add_user:"Add User",save_user:"Save User",update_user:"Update User",user:"User | Users",add_new_user:"Add New User",new_user:"New User",edit_user:"Edit User",no_users:"No users yet!",list_of_users:"This section will contain the list of users.",email:"Email",phone:"Phone",password:"Password",user_attached_message:"Cannot delete an item which is already in use",confirm_delete:"You will not be able to recover this User | You will not be able to recover these Users",created_message:"User created successfully",updated_message:"User updated successfully",deleted_message:"User deleted successfully | Users deleted successfully",select_company_role:"Select Role for {company}",companies:"Companies"},rn={title:"Report",from_date:"From Date",to_date:"To Date",status:"Status",paid:"Paid",unpaid:"Unpaid",download_pdf:"Download PDF",view_pdf:"View PDF",update_report:"Update Report",report:"Report | Reports",profit_loss:{profit_loss:"Profit & Loss",to_date:"To Date",from_date:"From Date",date_range:"Select Date Range"},sales:{sales:"Sales",date_range:"Select Date Range",to_date:"To Date",from_date:"From Date",report_type:"Report Type"},taxes:{taxes:"Taxes",to_date:"To Date",from_date:"From Date",date_range:"Select Date Range"},errors:{required:"Field is required"},invoices:{invoice:"Invoice",invoice_date:"Invoice Date",due_date:"Due Date",amount:"Amount",contact_name:"Contact Name",status:"Status"},estimates:{estimate:"Estimate",estimate_date:"Estimate Date",due_date:"Due Date",estimate_number:"Estimate Number",ref_number:"Ref Number",amount:"Amount",contact_name:"Contact Name",status:"Status"},expenses:{expenses:"Expenses",category:"Category",date:"Date",amount:"Amount",to_date:"To Date",from_date:"From Date",date_range:"Select Date Range"}},dn={menu_title:{account_settings:"Account Settings",company_information:"Company Information",customization:"Customization",preferences:"Preferences",notifications:"Notifications",tax_types:"Tax Types",expense_category:"Expense Categories",update_app:"Update App",backup:"Backup",file_disk:"File Disk",custom_fields:"Custom Fields",payment_modes:"Payment Modes",notes:"Notes",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:"  You can update Your Address information using form below."},title:"Settings",setting:"Settings | Settings",general:"General",language:"Language",primary_currency:"Primary Currency",timezone:"Time Zone",date_format:"Date Format",currencies:{title:"Currencies",currency:"Currency | Currencies",currencies_list:"Currencies List",select_currency:"Select Currency",name:"Name",code:"Code",symbol:"Symbol",precision:"Precision",thousand_separator:"Thousand Separator",decimal_separator:"Decimal Separator",position:"Position",position_of_symbol:"Position Of Symbol",right:"Right",left:"Left",action:"Action",add_currency:"Add Currency"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},pdf:{title:"PDF Setting",footer_text:"Footer Text",pdf_layout:"PDF Layout"},company_info:{company_info:"Company info",company_name:"Company Name",company_logo:"Company Logo",section_description:"Information about your company that will be displayed on invoices, estimates and other documents created by Crater.",phone:"Phone",country:"Country",state:"State",city:"City",address:"Address",zip:"Zip",save:"Save",delete:"Delete",updated_message:"Company information updated successfully",delete_company:"Delete Company",delete_company_description:"Once you delete your company, you will lose all the data and files associated with it permanently.",are_you_absolutely_sure:"Are you absolutely sure?",delete_company_modal_desc:"This action cannot be undone. This will permanently delete {company} and all of its associated data.",delete_company_modal_label:"Please type {company} to confirm"},custom_fields:{title:"Custom Fields",section_description:"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.",add_custom_field:"Add Custom Field",edit_custom_field:"Edit Custom Field",field_name:"Field Name",label:"Label",type:"Type",name:"Name",slug:"Slug",required:"Required",placeholder:"Placeholder",help_text:"Help Text",default_value:"Default Value",prefix:"Prefix",starting_number:"Starting Number",model:"Model",help_text_description:"Enter some text to help users understand the purpose of this custom field.",suffix:"Suffix",yes:"Yes",no:"No",order:"Order",custom_field_confirm_delete:"You will not be able to recover this Custom Field",already_in_use:"Custom Field is already in use",deleted_message:"Custom Field deleted successfully",options:"options",add_option:"Add Options",add_another_option:"Add another option",sort_in_alphabetical_order:"Sort in Alphabetical Order",add_options_in_bulk:"Add options in bulk",use_predefined_options:"Use Predefined Options",select_custom_date:"Select Custom Date",select_relative_date:"Select Relative Date",ticked_by_default:"Ticked by default",updated_message:"Custom Field updated successfully",added_message:"Custom Field added successfully",press_enter_to_add:"Press enter to add new option",model_in_use:"Cannot update model for fields which are already in use.",type_in_use:"Cannot update type for fields which are already in use."},customization:{customization:"customization",updated_message:"Company information updated successfully",save:"Save",insert_fields:"Insert Fields",learn_custom_format:"Learn how to use custom format",add_new_component:"Add New Component",component:"Component",Parameter:"Parameter",series:"Series",series_description:"To set a static prefix/postfix like 'INV' across your company. It supports character length of up to 6 chars.",series_param_label:"Series Value",delimiter:"Delimiter",delimiter_description:"Single character for specifying the boundary between 2 separate components. By default its set to -",delimiter_param_label:"Delimiter Value",date_format:"Date Format",date_format_description:"A local date and time field which accepts a format parameter. The default format: 'Y' renders the current year.",date_format_param_label:"Format",sequence:"Sequence",sequence_description:"Consecutive sequence of numbers across your company. You can specify the length on the given parameter.",sequence_param_label:"Sequence Length",customer_series:"Customer Series",customer_series_description:"To set a different prefix/postfix for each customer.",customer_sequence:"Customer Sequence",customer_sequence_description:"Consecutive sequence of numbers for each of your customer.",customer_sequence_param_label:"Sequence Length",random_sequence:"Random Sequence",random_sequence_description:"Random alphanumeric string. You can specify the length on the given parameter.",random_sequence_param_label:"Sequence Length",invoices:{title:"Invoices",invoice_number_format:"Invoice Number Format",invoice_number_format_description:"Customize how your invoice number gets generated automatically when you create a new invoice.",preview_invoice_number:"Preview Invoice Number",due_date:"Due Date",due_date_description:"Specify how due date is automatically set when you create an invoice.",due_date_days:"Invoice Due after days",set_due_date_automatically:"Set Due Date Automatically",set_due_date_automatically_description:"Enable this if you wish to set due date automatically when you create a new invoice.",default_formats:"Default Formats",default_formats_description:"Below given formats are used to fill up the fields automatically on invoice creation.",default_invoice_email_body:"Default Invoice Email Body",company_address_format:"Company Address Format",shipping_address_format:"Shipping Address Format",billing_address_format:"Billing Address Format",invoice_email_attachment:"Send invoices as attachments",invoice_email_attachment_setting_description:"Enable this if you want to send invoices as email attachment. Please note that 'View Invoice' button in emails will not be displayed anymore when enabled.",invoice_settings_updated:"Invoice Settings updated successfully",retrospective_edits:"Retrospective Edits",allow:"Allow",disable_on_invoice_partial_paid:"Disable after partial payment is recorded",disable_on_invoice_paid:"Disable after full payment is recorded",disable_on_invoice_sent:"Disable after invoice is sent",retrospective_edits_description:" Based on your country's laws or your preference, you can restrict users from editing finalised invoices."},estimates:{title:"Estimates",estimate_number_format:"Estimate Number Format",estimate_number_format_description:"Customize how your estimate number gets generated automatically when you create a new estimate.",preview_estimate_number:"Preview Estimate Number",expiry_date:"Expiry Date",expiry_date_description:"Specify how expiry date is automatically set when you create an estimate.",expiry_date_days:"Estimate Expires after days",set_expiry_date_automatically:"Set Expiry Date Automatically",set_expiry_date_automatically_description:"Enable this if you wish to set expiry date automatically when you create a new estimate.",default_formats:"Default Formats",default_formats_description:"Below given formats are used to fill up the fields automatically on estimate creation.",default_estimate_email_body:"Default Estimate Email Body",company_address_format:"Company Address Format",shipping_address_format:"Shipping Address Format",billing_address_format:"Billing Address Format",estimate_email_attachment:"Send estimates as attachments",estimate_email_attachment_setting_description:"Enable this if you want to send the estimates as an email attachment. Please note that 'View Estimate' button in emails will not be displayed anymore when enabled.",estimate_settings_updated:"Estimate Settings updated successfully",convert_estimate_options:"Estimate Convert Action",convert_estimate_description:"Specify what happens to the estimate after it gets converted to an invoice.",no_action:"No action",delete_estimate:"Delete estimate",mark_estimate_as_accepted:"Mark estimate as accepted"},payments:{title:"Payments",payment_number_format:"Payment Number Format",payment_number_format_description:"Customize how your payment number gets generated automatically when you create a new payment.",preview_payment_number:"Preview Payment Number",default_formats:"Default Formats",default_formats_description:"Below given formats are used to fill up the fields automatically on payment creation.",default_payment_email_body:"Default Payment Email Body",company_address_format:"Company Address Format",from_customer_address_format:"From Customer Address Format",payment_email_attachment:"Send payments as attachments",payment_email_attachment_setting_description:"Enable this if you want to send the payment receipts as an email attachment. Please note that 'View Payment' button in emails will not be displayed anymore when enabled.",payment_settings_updated:"Payment Settings updated successfully"},items:{title:"Items",units:"Units",add_item_unit:"Add Item Unit",edit_item_unit:"Edit Item Unit",unit_name:"Unit Name",item_unit_added:"Item Unit Added",item_unit_updated:"Item Unit Updated",item_unit_confirm_delete:"You will not be able to recover this Item unit",already_in_use:"Item Unit is already in use",deleted_message:"Item Unit deleted successfully"},notes:{title:"Notes",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"Notes",type:"Type",add_note:"Add Note",add_new_note:"Add New Note",name:"Name",edit_note:"Edit Note",note_added:"Note added successfully",note_updated:"Note Updated successfully",note_confirm_delete:"You will not be able to recover this Note",already_in_use:"Note is already in use",deleted_message:"Note deleted successfully"}},account_settings:{profile_picture:"Profile Picture",name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password",account_settings:"Account Settings",save:"Save",section_description:"You can update your name, email & password using the form below.",updated_message:"Account Settings updated successfully"},user_profile:{name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password"},notification:{title:"Notifications",email:"Send Notifications to",description:"Which email notifications would you like to receive when something changes?",invoice_viewed:"Invoice viewed",invoice_viewed_desc:"When your customer views the invoice sent via crater dashboard.",estimate_viewed:"Estimate viewed",estimate_viewed_desc:"When your customer views the estimate sent via crater dashboard.",save:"Save",email_save_message:"Email saved successfully",please_enter_email:"Please Enter Email"},roles:{title:"Roles",description:"Manage the roles & permissions of this company",save:"Save",add_new_role:"Add New Role",role_name:"Role Name",added_on:"Added on",add_role:"Add Role",edit_role:"Edit Role",name:"Name",permission:"Permission | Permissions",select_all:"Select All",none:"None",confirm_delete:"You will not be able to recover this Role",created_message:"Role created successfully",updated_message:"Role updated successfully",deleted_message:"Role deleted successfully",already_in_use:"Role is already in use"},exchange_rate:{exchange_rate:"Exchange Rate",title:"Fix Currency Exchange issues",description:"Please enter exchange rate of all the currencies mentioned below to help Crater properly calculate the amounts in {currency}.",drivers:"Drivers",new_driver:"Add New Provider",edit_driver:"Edit Provider",select_driver:"Select Driver",update:"select exchange rate ",providers_description:"Configure your exchange rate providers here to automatically fetch the latest exchange rate on transactions.",key:"API Key",name:"Name",driver:"Driver",is_default:"IS DEFAULT",currency:"Currencies",exchange_rate_confirm_delete:"You will not be able to recover this driver",created_message:"Provider Created successfully",updated_message:"Provider Updated Successfully",deleted_message:"Provider Deleted Successfully",error:" You cannot Delete Active Driver",default_currency_error:"This currency is already used in one of the Active Provider",exchange_help_text:"Enter exchange rate to convert from {currency} to {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"Currency Converter",server:"Server",url:"URL",active:"Active",currency_help_text:"This provider will only be used on above selected currencies",currency_in_used:"The following currencies are already active on another provider. Please remove these currencies from selection to activate this provider again."},tax_types:{title:"Tax Types",add_tax:"Add Tax",edit_tax:"Edit Tax",description:"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.",add_new_tax:"Add New Tax",tax_settings:"Tax Settings",tax_per_item:"Tax Per Item",tax_name:"Tax Name",compound_tax:"Compound Tax",percent:"Percent",action:"Action",tax_setting_description:"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.",created_message:"Tax type created successfully",updated_message:"Tax type updated successfully",deleted_message:"Tax type deleted successfully",confirm_delete:"You will not be able to recover this Tax Type",already_in_use:"Tax is already in use"},payment_modes:{title:"Payment Modes",description:"Modes of transaction for payments",add_payment_mode:"Add Payment Mode",edit_payment_mode:"Edit Payment Mode",mode_name:"Mode Name",payment_mode_added:"Payment Mode Added",payment_mode_updated:"Payment Mode Updated",payment_mode_confirm_delete:"You will not be able to recover this Payment Mode",already_in_use:"Payment Mode is already in use",deleted_message:"Payment Mode deleted successfully"},expense_category:{title:"Expense Categories",action:"Action",description:"Categories are required for adding expense entries. You can Add or Remove these categories according to your preference.",add_new_category:"Add New Category",add_category:"Add Category",edit_category:"Edit Category",category_name:"Category Name",category_description:"Description",created_message:"Expense Category created successfully",deleted_message:"Expense category deleted successfully",updated_message:"Expense category updated successfully",confirm_delete:"You will not be able to recover this Expense Category",already_in_use:"Category is already in use"},preferences:{currency:"Currency",default_language:"Default Language",time_zone:"Time Zone",fiscal_year:"Financial Year",date_format:"Date Format",discount_setting:"Discount Setting",discount_per_item:"Discount Per Item ",discount_setting_description:"Enable this if you want to add Discount to individual invoice items. By default, Discount is added directly to the invoice.",expire_public_links:"Automatically Expire Public Links",expire_setting_description:"Specify whether you would like to expire all the links sent by application to view invoices, estimates & payments, etc after a specified duration.",save:"Save",preference:"Preference | Preferences",general_settings:"Default preferences for the system.",updated_message:"Preferences updated successfully",select_language:"Select Language",select_time_zone:"Select Time Zone",select_date_format:"Select Date Format",select_financial_year:"Select Financial Year",recurring_invoice_status:"Recurring Invoice Status",create_status:"Create Status",active:"Active",on_hold:"On Hold",update_status:"Update Status",completed:"Completed",company_currency_unchangeable:"Company currency cannot be changed"},update_app:{title:"Update App",description:"You can easily update Crater by checking for a new update by clicking the button below",check_update:"Check for updates",avail_update:"New Update available",next_version:"Next version",requirements:"Requirements",update:"Update Now",update_progress:"Update in progress...",progress_text:"It will just take a few minutes. Please do not refresh the screen or close the window before the update finishes",update_success:"App has been updated! Please wait while your browser window gets reloaded automatically.",latest_message:"No update available! You are on the latest version.",current_version:"Current Version",download_zip_file:"Download ZIP file",unzipping_package:"Unzipping Package",copying_files:"Copying Files",deleting_files:"Deleting Unused files",running_migrations:"Running Migrations",finishing_update:"Finishing Update",update_failed:"Update Failed",update_failed_text:"Sorry! Your update failed on : {step} step",update_warning:"All of the application files and default template files will be overwritten when you update the application using this utility. Please take a backup of your templates & database before updating."},backup:{title:"Backup | Backups",description:"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database",new_backup:"Add New Backup",create_backup:"Create Backup",select_backup_type:"Select Backup Type",backup_confirm_delete:"You will not be able to recover this Backup",path:"path",new_disk:"New Disk",created_at:"created at",size:"size",dropbox:"dropbox",local:"local",healthy:"healthy",amount_of_backups:"amount of backups",newest_backups:"newest backups",used_storage:"used storage",select_disk:"Select Disk",action:"Action",deleted_message:"Backup deleted successfully",created_message:"Backup created successfully",invalid_disk_credentials:"Invalid credential of selected disk"},disk:{title:"File Disk | File Disks",description:"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.",created_at:"created at",dropbox:"dropbox",name:"Name",driver:"Driver",disk_type:"Type",disk_name:"Disk Name",new_disk:"Add New Disk",filesystem_driver:"Filesystem Driver",local_driver:"local Driver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Default Driver",is_default:"IS DEFAULT",set_default_disk:"Set Default Disk",set_default_disk_confirm:"This disk will be set as default and all the new PDFs will be saved on this disk",success_set_default_disk:"Disk set as default successfully",save_pdf_to_disk:"Save PDFs to Disk",disk_setting_description:" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.",select_disk:"Select Disk",disk_settings:"Disk Settings",confirm_delete:"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater",action:"Action",edit_file_disk:"Edit File Disk",success_create:"Disk added successfully",success_update:"Disk updated successfully",error:"Disk addition failed",deleted_message:"File Disk deleted successfully",disk_variables_save_successfully:"Disk Configured Successfully",disk_variables_save_error:"Disk configuration failed.",invalid_disk_credentials:"Invalid credential of selected disk"},taxations:{add_billing_address:"Enter Billing Address",add_shipping_address:"Enter Shipping Address",add_company_address:"Enter Company Address",modal_description:"The information below is required in order to fetch sales tax.",add_address:"Add Address for fetching sales tax.",address_placeholder:"Example: 123, My Street",city_placeholder:"Example: Los Angeles",state_placeholder:"Example: CA",zip_placeholder:"Example: 90024",invalid_address:"Please provide valid address details."}},ln={account_info:"Account Information",account_info_desc:"Below details will be used to create the main Administrator account. Also you can change the details anytime after logging in.",name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password",save_cont:"Save & Continue",company_info:"Company Information",company_info_desc:"This information will be displayed on invoices. Note that you can edit this later on settings page.",company_name:"Company Name",company_logo:"Company Logo",logo_preview:"Logo Preview",preferences:"Company Preferences",preferences_desc:"Specify the default preferences for this company.",currency_set_alert:"The company's currency cannot be changed later.",country:"Country",state:"State",city:"City",address:"Address",street:"Street1 | Street2",phone:"Phone",zip_code:"Zip Code",go_back:"Go Back",currency:"Currency",language:"Language",time_zone:"Time Zone",fiscal_year:"Financial Year",date_format:"Date Format",from_address:"From Address",username:"Username",next:"Next",continue:"Continue",skip:"Skip",database:{database:"Site URL & Database",connection:"Database Connection",host:"Database Host",port:"Database Port",password:"Database Password",app_url:"App URL",app_domain:"App Domain",username:"Database Username",db_name:"Database Name",db_path:"Database Path",desc:"Create a database on your server and set the credentials using the form below."},permissions:{permissions:"Permissions",permission_confirm_title:"Are you sure you want to continue?",permission_confirm_desc:"Folder permission check failed",permission_desc:"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},verify_domain:{title:"Domain Verification",desc:"Crater uses Session based authentication which requires domain verification for security purposes. Please enter the domain on which you will be accessing your web application.",app_domain:"App Domain",verify_now:"Verify Now",success:"Domain Verify Successfully.",failed:"Domain verification failed. Please enter valid domain name.",verify_and_continue:"Verify And Continue"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},req:{system_req:"System Requirements",php_req_version:"Php (version {version} required)",check_req:"Check Requirements",system_req_desc:"Crater has a few server requirements. Make sure that your server has the required php version and all the extensions mentioned below."},errors:{migrate_failed:"Migrate Failed",database_variables_save_error:"Cannot write configuration to .env file. Please check its file permissions",mail_variables_save_error:"Email configuration failed.",connection_failed:"Database connection failed",database_should_be_empty:"Database should be empty"},success:{mail_variables_save_successfully:"Email configured successfully",database_variables_save_successfully:"Database configured successfully."}},cn={invalid_phone:"Invalid Phone Number",invalid_url:"Invalid url (ex: http://www.craterapp.com)",invalid_domain_url:"Invalid url (ex: craterapp.com)",required:"Field is required",email_incorrect:"Incorrect Email.",email_already_taken:"The email has already been taken.",email_does_not_exist:"User with given email doesn't exist",item_unit_already_taken:"This item unit name has already been taken",payment_mode_already_taken:"This payment mode name has already been taken",send_reset_link:"Send Reset Link",not_yet:"Not yet? Send it again",password_min_length:"Password must contain {count} characters",name_min_length:"Name must have at least {count} letters.",prefix_min_length:"Prefix must have at least {count} letters.",enter_valid_tax_rate:"Enter valid tax rate",numbers_only:"Numbers Only.",characters_only:"Characters Only.",password_incorrect:"Passwords must be identical",password_length:"Password must be {count} character long.",qty_must_greater_than_zero:"Quantity must be greater than zero.",price_greater_than_zero:"Price must be greater than zero.",payment_greater_than_zero:"Payment must be greater than zero.",payment_greater_than_due_amount:"Entered Payment is more than due amount of this invoice.",quantity_maxlength:"Quantity should not be greater than 20 digits.",price_maxlength:"Price should not be greater than 20 digits.",price_minvalue:"Price should be greater than 0.",amount_maxlength:"Amount should not be greater than 20 digits.",amount_minvalue:"Amount should be greater than 0.",discount_maxlength:"Discount should not be greater than max discount",description_maxlength:"Description should not be greater than 255 characters.",subject_maxlength:"Subject should not be greater than 100 characters.",message_maxlength:"Message should not be greater than 255 characters.",maximum_options_error:"Maximum  of {max} options selected. First remove a selected option to select another.",notes_maxlength:"Notes should not be greater than 65,000 characters.",address_maxlength:"Address should not be greater than 255 characters.",ref_number_maxlength:"Ref Number should not be greater than 255 characters.",prefix_maxlength:"Prefix should not be greater than 5 characters.",something_went_wrong:"something went wrong",number_length_minvalue:"Number length should be greater than 0",at_least_one_ability:"Please select atleast one Permission.",valid_driver_key:"Please enter a valid {driver} key.",valid_exchange_rate:"Please enter a valid exchange rate.",company_name_not_same:"Company name must match with given name."},_n={starter_plan:"This feature is available on Starter plan and onwards!",invalid_provider_key:"Please Enter Valid Provider API Key.",estimate_number_used:"The estimate number has already been taken.",invoice_number_used:"The invoice number has already been taken.",payment_attached:"This invoice already has a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal.",payment_number_used:"The payment number has already been taken.",name_already_taken:"The name has already been taken.",receipt_does_not_exist:"Receipt does not exist.",customer_cannot_be_changed_after_payment_is_added:"Customer cannot be change after payment is added",invalid_credentials:"Invalid  Credentials.",not_allowed:"Not Allowed",login_invalid_credentials:"These credentials do not match our records.",enter_valid_cron_format:"Please enter a valid cron format",email_could_not_be_sent:"Email could not be sent to this email address.",invalid_address:"Please enter a valid address.",invalid_key:"Please enter valid key.",invalid_state:"Please enter a valid state.",invalid_city:"Please enter a valid city.",invalid_postal_code:"Please enter a valid zip.",invalid_format:"Please enter valid query string format.",api_error:"Server not responding.",feature_not_enabled:"Feature not enabled.",request_limit_met:"Api request limit exceeded.",address_incomplete:"Incomplete Address"},un="Estimate",mn="Estimate Number",pn="Estimate Date",gn="Expiry date",fn="Invoice",hn="Invoice Number",vn="Invoice Date",yn="Due date",bn="Notes",kn="Items",wn="Quantity",xn="Price",zn="Discount",Sn="Amount",jn="Subtotal",Pn="Total",Dn="Payment",Cn="PAYMENT RECEIPT",An="Payment Date",En="Payment Number",Nn="Payment Mode",Tn="Amount Received",In="EXPENSES REPORT",$n="TOTAL EXPENSE",Rn="PROFIT & LOSS REPORT",Fn="Sales Customer Report",Mn="Sales Item Report",Vn="Tax Summary Report",Bn="INCOME",On="NET PROFIT",Ln="Sales Report: By Customer",Un="TOTAL SALES",Kn="Sales Report: By Item",qn="TAX REPORT",Zn="TOTAL TAX",Wn="Tax Types",Hn="Expenses",Gn="Bill to,",Yn="Ship to,",Jn="Received from:",Xn="Tax";var Qn={navigation:Us,general:Ks,dashboard:qs,tax_types:Zs,global_search:Ws,company_switcher:Hs,dateRange:Gs,customers:Ys,items:Js,estimates:Xs,invoices:Qs,recurring_invoices:en,payments:tn,expenses:an,login:sn,modules:nn,users:on,reports:rn,settings:dn,wizard:ln,validation:cn,errors:_n,pdf_estimate_label:un,pdf_estimate_number:mn,pdf_estimate_date:pn,pdf_estimate_expire_date:gn,pdf_invoice_label:fn,pdf_invoice_number:hn,pdf_invoice_date:vn,pdf_invoice_due_date:yn,pdf_notes:bn,pdf_items_label:kn,pdf_quantity_label:wn,pdf_price_label:xn,pdf_discount_label:zn,pdf_amount_label:Sn,pdf_subtotal:jn,pdf_total:Pn,pdf_payment_label:Dn,pdf_payment_receipt_label:Cn,pdf_payment_date:An,pdf_payment_number:En,pdf_payment_mode:Nn,pdf_payment_amount_received_label:Tn,pdf_expense_report_label:In,pdf_total_expenses_label:$n,pdf_profit_loss_label:Rn,pdf_sales_customers_label:Fn,pdf_sales_items_label:Mn,pdf_tax_summery_label:Vn,pdf_income_label:Bn,pdf_net_profit_label:On,pdf_customer_sales_report:Ln,pdf_total_sales_label:Un,pdf_item_sales_label:Kn,pdf_tax_report_label:qn,pdf_total_tax_label:Zn,pdf_tax_types_label:Wn,pdf_expenses_label:Hn,pdf_bill_to:Gn,pdf_ship_to:Yn,pdf_received_from:Jn,pdf_tax_label:Xn};const ei={dashboard:"Tableau de bord",customers:"Clients",items:"Articles",invoices:"Factures",expenses:"D\xE9penses",estimates:"Devis",payments:"Paiements",reports:"Rapports",settings:"Param\xE8tres",logout:"Se d\xE9connecter",users:"Utilisateurs"},ti={add_company:"Ajouter une entreprise",view_pdf:"Voir PDF",copy_pdf_url:"Copier l'URL du PDF",download_pdf:"T\xE9l\xE9charger le PDF",save:"Sauvegarder",create:"Cr\xE9er",cancel:"Annuler",update:"Mise \xE0 jour",deselect:"Retirer",download:"T\xE9l\xE9charger",from_date:"A partir de la date",to_date:"\xC0 ce jour",from:"De",to:"\xC0",sort_by:"Trier par",ascending:"Ascendant",descending:"Descendant",subject:"mati\xE8re",body:"Corps du message",message:"Message",send:"Envoyer",go_back:"Retourner",back_to_login:"Retour \xE0 l'\xE9cran de connexion ?",home:"Accueil",filter:"Filtre",delete:"Effacer",edit:"Modifier",view:"Voir",add_new_item:"Ajoute un nouvel objet",clear_all:"Tout effacer",showing:"Montant",of:"de",actions:"Actions",subtotal:"SOUS-TOTAL",discount:"REMISE",fixed:"Fix\xE9e",percentage:"Pourcentage",tax:"IMP\xD4T",total_amount:"MONTANT TOTAL",bill_to:"facturer",ship_to:"Envoyez \xE0",due:"D\xFB",draft:"Brouillon",sent:"Envoy\xE9e",all:"Tout",select_all:"Tout s\xE9lectionner",choose_file:"Cliquez ici pour choisir un fichier",choose_template:"Choisissez un mod\xE8le",choose:"Choisir",remove:"Retirer",powered_by:"Propuls\xE9 par",bytefury:"Bytefury",select_a_status:"S\xE9lectionnez un statut",select_a_tax:"S\xE9lectionnez une taxe",search:"Rechercher",are_you_sure:"\xCAtes-vous s\xFBr ?",list_is_empty:"La liste est vide.",no_tax_found:"Aucune taxe trouv\xE9e !",four_zero_four:"404",you_got_lost:"Oups! Vous vous \xEAtes perdus!",go_home:"Retour \xE0 l'accueil",test_mail_conf:"Tester la configuration",send_mail_successfully:"Mail envoy\xE9 avec succ\xE8s",setting_updated:"Param\xE8tres mis \xE0 jour avec succ\xE8s",select_state:"S\xE9lectionnez l'\xE9tat",select_country:"Choisissez le pays",select_city:"S\xE9lectionnez une ville",street_1:"Rue 1",street_2:"Rue # 2",action_failed:"Action : \xE9chou\xE9",retry:"R\xE9essayez",choose_note:"Choisissez une note",no_note_found:"Aucune note trouv\xE9e",insert_note:"Ins\xE9rer une note"},ai={select_year:"S\xE9lectionnez l'ann\xE9e",cards:{due_amount:"Montant d\xFB",customers:"Clients",invoices:"Factures",estimates:"Devis"},chart_info:{total_sales:"Ventes",total_receipts:"Re\xE7us",total_expense:"D\xE9penses",net_income:"Revenu net",year:"S\xE9lectionnez l'ann\xE9e"},monthly_chart:{title:"Recettes et d\xE9penses"},recent_invoices_card:{title:"Factures d\xFBes",due_on:"Due le",customer:"Client",amount_due:"Montant d\xFB",actions:"Actions",view_all:"Voir tout"},recent_estimate_card:{title:"Devis r\xE9cents",date:"Date",customer:"Client",amount_due:"Montant d\xFB",actions:"Actions",view_all:"Voir tout"}},si={name:"Nom",description:"Description",percent:"Pourcent",compound_tax:"Taxe compos\xE9e"},ni={search:"Rechercher...",customers:"Les clients",users:"Utilisateurs",no_results_found:"Aucun r\xE9sultat"},ii={title:"Clients",add_customer:"Ajouter un client",contacts_list:"Liste de clients",name:"Nom",mail:"Email | Emails",statement:"Statement",display_name:"Statut et Nom de la soci\xE9t\xE9",primary_contact_name:"Nom du contact principal",contact_name:"Nom du contact",amount_due:"Montant d\xFB",email:"Email",address:"Adresse",phone:"T\xE9l\xE9phone",website:"Site Internet",overview:"Aper\xE7u",enable_portal:"Activer le portail",country:"Pays",state:"\xC9tat",city:"Ville",zip_code:"Code postal",added_on:"Ajout\xE9 le",action:"action",password:"Mot de passe",street_number:"Num\xE9ro de rue",primary_currency:"Devise principale",description:"Description",add_new_customer:"Ajouter un nouveau client",save_customer:"Enregistrer le client",update_customer:"Mettre \xE0 jour le client",customer:"Client | Clients",new_customer:"Nouveau client",edit_customer:"Modifier le client",basic_info:"Informations de base",billing_address:"Adresse de facturation",shipping_address:"Adresse de livraison",copy_billing_address:"Copier depuis l'adresse de facturation",no_customers:"Vous n\u2019avez pas encore de clients !",no_customers_found:"Aucun client !",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Cette section contiendra la liste des clients.",primary_display_name:"Nom d'affichage principal",select_currency:"S\xE9lectionnez la devise",select_a_customer:"S\xE9lectionnez un client",type_or_click:"Tapez ou cliquez pour s\xE9lectionner",new_transaction:"Nouvelle transaction",no_matching_customers:"Il n'y a aucun client correspondant !",phone_number:"Num\xE9ro de t\xE9l\xE9phone",create_date:"Date de cr\xE9ation",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce client et les devis, factures et paiements associ\xE9s. | Vous ne serez pas en mesure de r\xE9cup\xE9rer ces clients et les devis, factures et paiements associ\xE9s.",created_message:"Client cr\xE9\xE9 avec succ\xE8s",updated_message:"Client mis \xE0 jour avec succ\xE8s",deleted_message:"Client supprim\xE9 avec succ\xE8s | Les clients supprim\xE9s avec succ\xE8s"},oi={title:"Articles",items_list:"Liste d'articles",name:"Nom",unit:"Unit\xE9",description:"Description",added_on:"Ajout\xE9 le",price:"Prix",date_of_creation:"Date de cr\xE9ation",not_selected:"No item selected",action:"action",add_item:"Ajouter un article",save_item:"Enregistrer l'article",update_item:"Mettre \xE0 jour l'article",item:"Article | Articles",add_new_item:"Ajoute un nouvel objet",new_item:"Nouvel article",edit_item:"Modifier larticle",no_items:"Aucun article !",list_of_items:"Cette section contiendra la liste des \xE9l\xE9ments.",select_a_unit:"S\xE9lectionnez l'unit\xE9",taxes:"Taxes",item_attached_message:"Impossible de supprimer un article d\xE9j\xE0 utilis\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cet article | Vous ne pourrez pas r\xE9cup\xE9rer ces objets",created_message:"Article cr\xE9\xE9 avec succ\xE8s",updated_message:"Article mis \xE0 jour avec succ\xE8s",deleted_message:"Article supprim\xE9 avec succ\xE8s | Articles supprim\xE9s avec succ\xE8s"},ri={title:"Devis",estimate:"Devis | Devis",estimates_list:"Liste des devis",days:"jours jours",months:"mois mois",years:"ann\xE9es Ann\xE9e",all:"Tout",paid:"Pay\xE9",unpaid:"Non pay\xE9",customer:"Client",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT D\xDB",partially_paid:"Partiellement pay\xE9",total:"Total",discount:"Remise",sub_total:"Sous-total",estimate_number:"N\xB0",ref_number:"Num\xE9ro de r\xE9f\xE9rence",contact:"Contact",add_item:"Ajouter un article",date:"Date",due_date:"Date d'\xE9ch\xE9ance",expiry_date:"Date d'expiration",status:"Statut",add_tax:"Ajouter une taxe",amount:"Montant",action:"action",notes:"Remarques",tax:"Taxe",estimate_template:"Mod\xE8le de devis",convert_to_invoice:"Convertir en facture",mark_as_sent:"Marquer comme envoy\xE9",send_estimate:"Envoyer le devis",resend_estimate:"Renvoyer le devis",record_payment:"Enregistrer un paiement",add_estimate:"Ajouter un devis",save_estimate:"Sauvegarder le devis",confirm_conversion:"Vous souhaitez convertir ce devis en facture?",conversion_message:"Conversion r\xE9ussie",confirm_send_estimate:"Ce devis sera envoy\xE9e par courrier \xE9lectronique au client.",confirm_mark_as_sent:"Ce devis sera marqu\xE9 comme envoy\xE9",confirm_mark_as_accepted:"Ce devis sera marqu\xE9 comme accept\xE9",confirm_mark_as_rejected:"Ce devis sera marqu\xE9 comme rejet\xE9",no_matching_estimates:"Aucune estimation correspondante !",mark_as_sent_successfully:"Devis marqu\xE9e comme envoy\xE9e avec succ\xE8s",send_estimate_successfully:"Devis envoy\xE9 avec succ\xE8s",errors:{required:"Champ requis"},accepted:"Accept\xE9",rejected:"Rejected",sent:"Envoy\xE9",draft:"Brouillon",declined:"Refus\xE9",new_estimate:"Nouveau devis",add_new_estimate:"Ajouter un devis",update_Estimate:"Mise \xE0 jour du devis",edit_estimate:"Modifier le devis",items:"articles",Estimate:"Devis | Devis",add_new_tax:"Ajouter une taxe",no_estimates:"Aucune estimation pour le moment !",list_of_estimates:"Cette section contiendra la liste des devis.",mark_as_rejected:"Marquer comme rejet\xE9",mark_as_accepted:"Marquer comme accept\xE9",marked_as_accepted_message:"Devis marqu\xE9 comme accept\xE9",marked_as_rejected_message:"Devis marqu\xE9 comme rejet\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce devis | Vous ne pourrez pas r\xE9cup\xE9rer ces devis",created_message:"Devis cr\xE9\xE9 avec succ\xE8s",updated_message:"Devis mise \xE0 jour avec succ\xE8s",deleted_message:"Devis supprim\xE9 | Devis supprim\xE9s",something_went_wrong:"quelque chose a mal tourn\xE9",item:{title:"Titre de l'article",description:"Description",quantity:"Quantit\xE9",price:"Prix",discount:"Remise",total:"Total",total_discount:"Remise totale",sub_total:"Sous-total",tax:"Taxe",amount:"Montant",select_an_item:"Tapez ou cliquez pour s\xE9lectionner un article",type_item_description:"Taper la description de l'article (facultatif)"}},di={title:"Factures",invoices_list:"Liste des factures",days:"jours jours",months:"mois mois",years:"years ann\xE9es",all:"Toutes",paid:"Pay\xE9",unpaid:"Non pay\xE9",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENT",paid_status:"STATUT DU PAIEMENT",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT D\xDB",partially_paid:"Partiellement pay\xE9",total:"Total",discount:"Remise",sub_total:"Sous-total",invoice:"Facture | Factures",invoice_number:"Num\xE9ro de facture",ref_number:"Num\xE9ro de r\xE9f\xE9rence",contact:"Contact",add_item:"Ajouter un article",date:"Date",due_date:"Date d'\xE9ch\xE9ance",status:"Statut",add_tax:"Ajouter une taxe",amount:"Montant",action:"action",notes:"Remarques",view:"Voir",send_invoice:"Envoyer une facture",resend_invoice:"Renvoyer la facture",invoice_template:"Mod\xE8le de facture",template:"Mod\xE8le",mark_as_sent:"Marquer comme envoy\xE9e",confirm_send_invoice:"Cette facture sera envoy\xE9e par email au client",invoice_mark_as_sent:"Cette facture sera marqu\xE9e comme envoy\xE9",confirm_send:"Cette facture sera envoy\xE9e par courrier \xE9lectronique au client.",invoice_date:"Date de facturation",record_payment:"Enregistrer un paiement",add_new_invoice:"Ajouter une facture",update_expense:"Enregistrer la d\xE9pense",edit_invoice:"Modifier la facture",new_invoice:"Nouvelle facture",save_invoice:"Enregistrer la facture",update_invoice:"Mettre \xE0 jour la facture",add_new_tax:"Ajouter une taxe",no_invoices:"Aucune facture pour le moment !",list_of_invoices:"Cette section contiendra la liste des factures.",select_invoice:"S\xE9lectionnez facture",no_matching_invoices:"Aucune facture correspondante !",mark_as_sent_successfully:"Facture marqu\xE9e comme envoy\xE9e avec succ\xE8s",invoice_sent_successfully:"Facture envoy\xE9e avec succ\xE8s",cloned_successfully:"Facture clon\xE9e avec succ\xE8s",clone_invoice:"Dupliquer la facture",confirm_clone:"Cette facture sera dupliqu\xE9e dans une nouvelle facture",item:{title:"Titre de l'article",description:"Description",quantity:"Quantit\xE9",price:"Prix",discount:"Remise",total:"Total",total_discount:"Remise totale",sub_total:"Sous-total",tax:"Taxe",amount:"Montant",select_an_item:"Tapez ou cliquez pour s\xE9lectionner un \xE9l\xE9ment",type_item_description:"Tapez la description de l'article (facultatif)"},confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette facture | Vous ne pourrez pas r\xE9cup\xE9rer ces factures",created_message:"Facture cr\xE9\xE9e avec succ\xE8s",updated_message:"Facture mise \xE0 jour avec succ\xE8s",deleted_message:"La facture a \xE9t\xE9 supprim\xE9e | Les factures ont \xE9t\xE9 supprim\xE9es",marked_as_sent_message:"Facture supprim\xE9e avec succ\xE8s | Factures supprim\xE9es avec succ\xE8s",something_went_wrong:"quelque chose a mal tourn\xE9",invalid_due_amount_message:"Le paiement entr\xE9 est sup\xE9rieur au montant total d\xFB pour cette facture. Veuillez v\xE9rifier et r\xE9essayer"},li={title:"Paiements",payments_list:"Liste de paiements",record_payment:"Enregistrer un paiement",customer:"Client",date:"Date",amount:"Montant",action:"action",payment_number:"N\xB0",payment_mode:"Mode de paiement",invoice:"Facture",note:"Remarque",add_payment:"Ajouter un paiement",new_payment:"Nouveau paiement",edit_payment:"Modifier le paiement",view_payment:"Voir le paiement",add_new_payment:"Ajouter un paiement",send_payment_receipt:"Envoyer le re\xE7u",send_payment:"Envoyer le paiement",save_payment:"Enregistrer le paiement",update_payment:"Mettre \xE0 jour le paiement",payment:"Paiement | Paiements",no_payments:"Aucun paiement pour le moment !",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Il n'y a aucun paiement correspondant !",list_of_payments:"Cette section contiendra la liste des paiements",select_payment_mode:"S\xE9lectionnez le moyen de paiement",confirm_mark_as_sent:"Ce devis sera marqu\xE9 comme envoy\xE9",confirm_send_payment:"Ce paiement sera envoy\xE9 par email au client",send_payment_successfully:"Paiement envoy\xE9 avec succ\xE8s",something_went_wrong:"quelque chose a mal tourn\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce paiement | Vous ne pourrez pas r\xE9cup\xE9rer ces paiements",created_message:"Paiement cr\xE9\xE9 avec succ\xE8s",updated_message:"Paiement mis \xE0 jour avec succ\xE8s",deleted_message:"Paiement supprim\xE9 avec succ\xE8s | Paiements supprim\xE9s avec succ\xE8s",invalid_amount_message:"Le montant du paiement est invalide"},ci={title:"D\xE9penses",expenses_list:"Liste des d\xE9penses",select_a_customer:"S\xE9lectionnez un client",expense_title:"Titre",customer:"Client",contact:"Contact",category:"Cat\xE9gorie",from_date:"A partir de la date",to_date:"\xC0 ce jour",expense_date:"Date",description:"Description",receipt:"Re\xE7u",amount:"Montant",action:"action",not_selected:"Not selected",note:"Remarque",category_id:"Identifiant de cat\xE9gorie",date:"Date",add_expense:"Ajouter une d\xE9pense",add_new_expense:"Ajouter une nouvelle d\xE9pense",save_expense:"Enregistrer la d\xE9pense",update_expense:"Mettre \xE0 jour la d\xE9pense",download_receipt:"T\xE9l\xE9charger le re\xE7u",edit_expense:"Modifier la d\xE9pense",new_expense:"Nouvelle d\xE9pense",expense:"D\xE9pense | D\xE9penses",no_expenses:"Pas de d\xE9penses pour le moment !",list_of_expenses:"Cette section contiendra la liste des d\xE9penses.",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette d\xE9pense | Vous ne pourrez pas r\xE9cup\xE9rer ces d\xE9penses",created_message:"D\xE9pense cr\xE9\xE9e avec succ\xE8s",updated_message:"D\xE9pense mise \xE0 jour avec succ\xE8s",deleted_message:"D\xE9pense supprim\xE9e avec succ\xE8s | D\xE9penses supprim\xE9es avec succ\xE8s",categories:{categories_list:"Liste des cat\xE9gories",title:"Titre",name:"Nom",description:"Description",amount:"Montant",actions:"Actions",add_category:"Ajouter une cat\xE9gorie",new_category:"Nouvelle cat\xE9gorie",category:"Cat\xE9gorie | Cat\xE9gories",select_a_category:"Choisissez une cat\xE9gorie"}},_i={email:"Email",password:"Mot de passe",forgot_password:"Mot de passe oubli\xE9 ?",or_signIn_with:"ou connectez-vous avec",login:"S'identifier",register:"S'inscrire",reset_password:"R\xE9initialiser le mot de passe",password_reset_successfully:"R\xE9initialisation du mot de passe r\xE9ussie",enter_email:"Entrer l'email",enter_password:"Entrer le mot de passe",retype_password:"Retaper le mot de passe"},ui={title:"Utilisateurs",users_list:"Liste des utilisateurs",name:"Nom",description:"Description",added_on:"Ajout\xE9 le",date_of_creation:"Date de cr\xE9ation",action:"action",add_user:"Ajouter un utilisateur",save_user:"Enregistrer l'utilisateur",update_user:"Mettre \xE0 jour l'utilisateur",user:"Utilisateur | Utilisateurs",add_new_user:"Ajouter un nouvel utilisateur",new_user:"Nouvel utilisateur",edit_user:"Modifier l'utilisateur",no_users:"Pas encore d'utilisateurs !",list_of_users:"Cette section contiendra la liste des utilisateurs.",email:"Email",phone:"T\xE9l\xE9phone",password:"Mot de passe",user_attached_message:"Impossible de supprimer un \xE9l\xE9ment d\xE9j\xE0 utilis\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cet utilisateur | Vous ne pourrez pas r\xE9cup\xE9rer ces utilisateurs",created_message:"L'utilisateur a \xE9t\xE9 cr\xE9\xE9 avec succ\xE8s",updated_message:"L'utilisateur a bien \xE9t\xE9 mis \xE0 jour",deleted_message:"Utilisateur supprim\xE9 avec succ\xE8s | Utilisateur a bien \xE9t\xE9 supprim\xE9"},mi={title:"Rapport",from_date:"\xC0 partir du",to_date:"Jusqu'au",status:"Statut",paid:"Pay\xE9",unpaid:"Non pay\xE9",download_pdf:"T\xE9l\xE9charger le PDF",view_pdf:"Voir le PDF",update_report:"Mettre \xE0 jour le rapport",report:"Rapport | Rapports",profit_loss:{profit_loss:"B\xE9n\xE9fices & Pertes",to_date:"Au",from_date:"Du",date_range:"S\xE9lectionner une plage de dates"},sales:{sales:"Ventes",date_range:"S\xE9lectionner une plage de dates",to_date:"\xC0 ce jour",from_date:"A partir de la date",report_type:"Type de rapport"},taxes:{taxes:"Les taxes",to_date:"\xC0 ce jour",from_date:"\xC0 partir du",date_range:"S\xE9lectionner une plage de dates"},errors:{required:"Champ requis"},invoices:{invoice:"Facture",invoice_date:"Date de facturation",due_date:"Date d\xE9ch\xE9ance",amount:"Montant ",contact_name:"Nom du contact",status:"Statut"},estimates:{estimate:"Devis",estimate_date:"Date du devis",due_date:"Date d'\xE9ch\xE9ance",estimate_number:"N\xB0",ref_number:"Num\xE9ro de r\xE9f\xE9rence",amount:"Montant",contact_name:"Nom du contact",status:"Statut"},expenses:{expenses:"D\xE9penses",category:"Cat\xE9gorie",date:"Date",amount:"Montant",to_date:"Jusqu'au",from_date:"\xC0 partir du",date_range:"S\xE9lectionner une plage de dates"}},pi={menu_title:{account_settings:"Param\xE8tres du compte",company_information:"Informations sur la soci\xE9t\xE9",customization:"Personnalisation",preferences:"Pr\xE9f\xE9rences",notifications:"Notifications",tax_types:"Types de taxe",expense_category:"Cat\xE9gories de d\xE9penses",update_app:"Mise \xE0 jour de l'application",backup:"Sauvegarde",file_disk:"Espace de stockage",custom_fields:"Champs personnalis\xE9s",payment_modes:"Moyens de paiement",notes:"Remarques"},title:"Param\xE8tres",setting:"Param\xE8tres | Param\xE8tres",general:"Param\xE8tres g\xE9n\xE9raux",language:"Langue",primary_currency:"Devise principale",timezone:"Fuseau horaire",date_format:"Format de date",currencies:{title:"Devises",currency:"Devise | Devises",currencies_list:"Liste des devises",select_currency:"S\xE9lectionnez la devise",name:"Nom",code:"Code\xA0",symbol:"Symbole",precision:"Pr\xE9cision",thousand_separator:"S\xE9parateur de milliers",decimal_separator:"S\xE9parateur d\xE9cimal",position:"Position",position_of_symbol:"Position du symbole",right:"Droite",left:"Gauche",action:"action",add_currency:"Ajouter une devise"},mail:{host:"Adresse du serveur",port:"Port",driver:"Pilote de courrier",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domaine",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mot de passe",username:"Nom d'utilisateur",mail_config:"Configuration des emails",from_name:"Nom de l'exp\xE9diteur",from_mail:"Email de l'exp\xE9diteur",encryption:"Chiffrement",mail_config_desc:"Vous pouvez modifier ci-dessous les param\xE8tres d'envoi des emails. Vous pourrez modifier \xE0 tout moment."},pdf:{title:"Param\xE8tre PDF",footer_text:"Pied de page",pdf_layout:"Mise en page PDF"},company_info:{company_info:"Information de l'entreprise",company_name:"Nom de l'entreprise",company_logo:"Logo de l'entreprise",section_description:"Informations sur votre entreprise qui figureront sur les factures, devis et autres documents cr\xE9\xE9s par Crater.",phone:"T\xE9l\xE9phone",country:"Pays",state:"\xC9tat",city:"Ville",address:"Adresse",zip:"Code postal",save:"Sauvegarder",updated_message:"Informations sur la soci\xE9t\xE9 mises \xE0 jour avec succ\xE8s"},custom_fields:{title:"Champs personnalis\xE9s",section_description:"Personnalisez vos factures, devis et re\xE7us de paiement avec vos propres champs. Assurez-vous d'utiliser les champs ajout\xE9s ci-dessous sur les formats d'adresse sur la page des param\xE8tres de personnalisation.",add_custom_field:"Ajouter un champ personnalis\xE9",edit_custom_field:"Modifier un champ personnalis\xE9",field_name:"Nom du champs",label:"\xC9tiquette",type:"Type\xA0",name:"Nom",required:"Obligatoire",placeholder:"Espace r\xE9serv\xE9",help_text:"Texte d'aide",default_value:"Valeur par d\xE9faut",prefix:"Pr\xE9fixe",starting_number:"Num\xE9ro de d\xE9part",model:"Mod\xE8le",help_text_description:"Saisissez du texte pour aider les utilisateurs \xE0 comprendre l'objectif de ce champ personnalis\xE9.",suffix:"Suffixe",yes:"Oui",no:"Non",order:"Ordre",custom_field_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce champ personnalis\xE9",already_in_use:"Le champ personnalis\xE9 est d\xE9j\xE0 utilis\xE9",deleted_message:"Champ personnalis\xE9 supprim\xE9 avec succ\xE8s",options:"les options",add_option:"Ajouter des options",add_another_option:"Ajouter une autre option",sort_in_alphabetical_order:"Trier par ordre alphab\xE9tique",add_options_in_bulk:"Ajouter des options en masse",use_predefined_options:"Utiliser des options pr\xE9d\xE9finies",select_custom_date:"S\xE9lectionnez une date personnalis\xE9e",select_relative_date:"S\xE9lectionnez la date relative",ticked_by_default:"Coch\xE9 par d\xE9faut",updated_message:"Champ personnalis\xE9 mis \xE0 jour avec succ\xE8s",added_message:"Champ personnalis\xE9 ajout\xE9 avec succ\xE8s"},customization:{customization:"Personnalisation",save:"Sauvegarder",addresses:{title:"Adresses",section_description:"Vous pouvez d\xE9finir le format de l'adresse de facturation et de livraison du client (affich\xE9 en PDF uniquement). ",customer_billing_address:"Adresse de paiement",customer_shipping_address:"Adresse de livraison",company_address:"Adresse de l'entreprise",insert_fields:"Ajouter des champs",contact:"Contact",address:"Adresse",display_name:"Nom",primary_contact_name:"Nom du contact principal",email:"Email",website:"Site Internet",name:"Nom",country:"Pays",state:"Etat",city:"Ville",company_name:"Nom de l'entreprise",address_street_1:"Rue",address_street_2:"Compl\xE9ment",phone:"T\xE9l\xE9phone",zip_code:"Code postal",address_setting_updated:"Adresse mise \xE0 jour avec succ\xE8s"},updated_message:"Informations de l'entreprise mises \xE0 jour",invoices:{title:"Factures",notes:"Remarques",invoice_prefix:"Pr\xE9fixe",default_invoice_email_body:"Corps de l'e-mail de la facture par d\xE9faut",invoice_settings:"Param\xE8tres",autogenerate_invoice_number:"G\xE9n\xE9rer automatiquement le num\xE9ro de facture",autogenerate_invoice_number_desc:"D\xE9sactivez cette option si vous ne souhaitez pas g\xE9n\xE9rer automatiquement les num\xE9ros de facture \xE0 chaque fois que vous en cr\xE9ez une nouvelle.",enter_invoice_prefix:"Ajouter le pr\xE9fixe de facture",terms_and_conditions:"Termes et conditions",company_address_format:"Format d'adresse de l'entreprise",shipping_address_format:"Format d'adresse d'exp\xE9dition",billing_address_format:"Format d'adresse de facturation",invoice_settings_updated:"Param\xE8tres de facturation mis \xE0 jour"},estimates:{title:"Devis",estimate_prefix:"Pr\xE9fixe des devis",default_estimate_email_body:"Corps de l'e-mail estim\xE9 par d\xE9faut",estimate_settings:"Param\xE8tre",autogenerate_estimate_number:"G\xE9n\xE9rer automatiquement le num\xE9ro de devis",estimate_setting_description:"D\xE9sactivez cette option si vous ne souhaitez pas g\xE9n\xE9rer automatiquement les num\xE9ros de devis \xE0 chaque fois que vous en cr\xE9ez un nouveau.",enter_estimate_prefix:"Entrez le pr\xE9fixe d'estimation",estimate_setting_updated:"Param\xE8tres de devis mis \xE0 jour",company_address_format:"Format d'adresse de l'entreprise",billing_address_format:"Format d'adresse de facturation",shipping_address_format:"Format d'adresse d'exp\xE9dition"},payments:{title:"Paiements",description:"Modes de transaction pour les paiements",payment_prefix:"Pr\xE9fixe",default_payment_email_body:"Corps de l'e-mail de paiement par d\xE9faut",payment_settings:"Param\xE8tres",autogenerate_payment_number:"G\xE9n\xE9rer automatiquement le num\xE9ro de paiement",payment_setting_description:"D\xE9sactivez cette option si vous ne souhaitez pas g\xE9n\xE9rer automatiquement les num\xE9ros de paiement \xE0 chaque fois que vous en cr\xE9ez un nouveau.",enter_payment_prefix:"Entrez le pr\xE9fixe de paiement",payment_setting_updated:"Les param\xE8tres de paiement ont bien \xE9t\xE9 mis \xE0 jour",payment_modes:"Moyens de paiement",add_payment_mode:"Ajouter un mode de paiement",edit_payment_mode:"Modifier le moyen de paiement",mode_name:"Nom",payment_mode_added:"Moyen de paiement ajout\xE9",payment_mode_updated:"Moyen de paiement mis \xE0 jour",payment_mode_confirm_delete:"\xCAtes-vous sur de supprimer ce moyen de paiement",already_in_use:"Ce moyen de paiement existe d\xE9j\xE0",deleted_message:"Moyen de paiement supprim\xE9 avec succ\xE8s",company_address_format:"Format d'adresse de l'entreprise",from_customer_address_format:"\xC0 partir du format d'adresse client"},items:{title:"Articles",units:"Unit\xE9s",add_item_unit:"Ajouter une unit\xE9",edit_item_unit:"Modifier l'unit\xE9 d'\xE9l\xE9ment",unit_name:"Nom",item_unit_added:"Unit\xE9 ajout\xE9e",item_unit_updated:"Unit\xE9 mis \xE0 jour",item_unit_confirm_delete:"\xCAtes-vous sur de supprimer cette unit\xE9 ?",already_in_use:"Cette unit\xE9 existe d\xE9j\xE0",deleted_message:"Unit\xE9 supprim\xE9e avec succ\xE8s"},notes:{title:"Remarques",description:"Gagnez du temps en cr\xE9ant des notes et en les r\xE9utilisant sur vos factures, devis et paiements.",notes:"Remarques",type:"Type\xA0",add_note:"Ajouter une note",add_new_note:"Ajouter une nouvelle note",name:"Nom",edit_note:"Modifier la note",note_added:"Note ajout\xE9e",note_updated:"Note mise \xE0 jour",note_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette note",already_in_use:"La note est d\xE9j\xE0 utilis\xE9e",deleted_message:"Note supprim\xE9e avec succ\xE8s"}},account_settings:{profile_picture:"Image de profil",name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",account_settings:"Param\xE8tres du compte",save:"Sauvegarder",section_description:"Vous pouvez mettre \xE0 jour votre nom, votre email et votre mot de passe en utilisant le formulaire ci-dessous.",updated_message:"Param\xE8tres du compte mis \xE0 jour avec succ\xE8s"},user_profile:{name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe"},notification:{title:"Notification",email:"Envoyer des notifications \xE0",description:"Quelles notifications par courrier \xE9lectronique souhaitez-vous recevoir lorsque quelque chose change?",invoice_viewed:"Facture consult\xE9e",invoice_viewed_desc:"Lorsque le client visualise la facture envoy\xE9e via le tableau de bord de Neptune.",estimate_viewed:"Devis consult\xE9",estimate_viewed_desc:"Lorsque le client visualise le devis envoy\xE9 via le tableau de bord de Neptune.",save:"Sauvegarder",email_save_message:"Email enregistr\xE9 avec succ\xE8s",please_enter_email:"Veuillez entrer un email"},tax_types:{title:"Types de taxe",add_tax:"Ajouter une taxe",edit_tax:"Modifier la taxe",description:"Vous pouvez ajouter ou supprimer des taxes \xE0 votre guise. Crater prend en charge les taxes sur les articles individuels ainsi que sur la facture.",add_new_tax:"Ajouter une nouvelle taxe",tax_settings:"Param\xE8tres de taxe",tax_per_item:"Taxe par article",tax_name:"Nom de la taxe",compound_tax:"Taxe compos\xE9e",percent:"Pourcentage",action:"action",tax_setting_description:"Activez cette option si vous souhaitez ajouter des taxes \xE0 des postes de facture individuels. Par d\xE9faut, les taxes sont ajout\xE9es directement \xE0 la facture.",created_message:"Type de taxe cr\xE9\xE9 avec succ\xE8s",updated_message:"Type de taxe mis \xE0 jour avec succ\xE8s",deleted_message:"Type de taxe supprim\xE9 avec succ\xE8s",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce type de taxe",already_in_use:"La taxe est d\xE9j\xE0 utilis\xE9e"},expense_category:{title:"Cat\xE9gories de d\xE9penses",action:"action",description:"Des cat\xE9gories sont requises pour ajouter des entr\xE9es de d\xE9penses. Vous pouvez ajouter ou supprimer ces cat\xE9gories selon vos pr\xE9f\xE9rences.",add_new_category:"Ajouter une nouvelle cat\xE9gorie",add_category:"Ajouter une cat\xE9gorie",edit_category:"Modifier la cat\xE9gorie",category_name:"Nom de cat\xE9gorie",category_description:"Description",created_message:"Cat\xE9gorie de d\xE9penses cr\xE9\xE9e avec succ\xE8s",deleted_message:"La cat\xE9gorie de d\xE9penses a \xE9t\xE9 supprim\xE9e avec succ\xE8s",updated_message:"Cat\xE9gorie de d\xE9penses mise \xE0 jour avec succ\xE8s",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette cat\xE9gorie de d\xE9penses",already_in_use:"La cat\xE9gorie est d\xE9j\xE0 utilis\xE9e"},preferences:{currency:"Devise",default_language:"Langue par d\xE9faut",time_zone:"Fuseau horaire",fiscal_year:"Exercice fiscal",date_format:"Format de date",discount_setting:"R\xE9glage de remise",discount_per_item:"Remise par article",discount_setting_description:"Activez cette option si vous souhaitez ajouter une remise \xE0 des postes de facture individuels. Par d\xE9faut, les remises sont ajout\xE9es directement \xE0 la facture.",save:"Sauvegarder",preference:"Pr\xE9f\xE9rence | Pr\xE9f\xE9rences",general_settings:"Pr\xE9f\xE9rences par d\xE9faut pour le syst\xE8me.",updated_message:"Pr\xE9f\xE9rences mises \xE0 jour avec succ\xE8s",select_language:"Choisir la langue",select_time_zone:"S\xE9lectionnez le fuseau horaire",select_date_format:"S\xE9lectionnez le format de date",select_financial_year:"s\xE9lectionner lexercice"},update_app:{title:"Mise \xE0 jour de l'application",description:"Vous pouvez facilement mettre \xE0 jour Crater en cliquant sur le bouton ci-dessous",check_update:"V\xE9rifier les mises \xE0 jour",avail_update:"Nouvelle mise \xE0 jour disponible",next_version:"Version suivante",requirements:"Sp\xE9cifications requises",update:"Mettre \xE0 jour maintenant",update_progress:"Mise \xE0 jour en cours...",progress_text:"Cela ne prendra que quelques minutes. Veuillez ne pas actualiser ou fermer la fen\xEAtre avant la fin de la mise \xE0 jour",update_success:"App a \xE9t\xE9 mis \xE0 jour ! Veuillez patienter pendant le rechargement automatique de la fen\xEAtre de votre navigateur.",latest_message:"Pas de mise a jour disponible ! Vous \xEAtes sur la derni\xE8re version.",current_version:"Version actuelle",download_zip_file:"T\xE9l\xE9charger le fichier ZIP",unzipping_package:"D\xE9zipper le package",copying_files:"Copie de fichiers en cours",running_migrations:"Migrations en cours",finishing_update:"Finalisation de la mise \xE0 jour",update_failed:"\xC9chec de la mise \xE0 jour",update_failed_text:"D\xE9sol\xE9 ! Votre mise \xE0 jour a \xE9chou\xE9 \xE0: {step} \xE9tape"},backup:{title:"Sauvegarde | Sauvegardes",description:"La sauvegarde est un fichier ZIP qui contient tous les fichiers des r\xE9pertoires que vous sp\xE9cifiez, ainsi qu'un export de la base de donn\xE9es",new_backup:"Ajouter une nouvelle sauvegarde",create_backup:"Cr\xE9er une sauvegarde",select_backup_type:"S\xE9lectionnez le type de sauvegarde",backup_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette sauvegarde",path:"chemin",new_disk:"Nouvel espace de stockage",created_at:"cr\xE9\xE9 \xE0",size:"taille",dropbox:"dropbox",local:"local",healthy:"en bonne sant\xE9",amount_of_backups:"nombre de sauvegardes",newest_backups:"derni\xE8res sauvegardes",used_storage:"Stockage utilis\xE9",select_disk:"S\xE9lectionnez l'espace de stockage",action:"action",deleted_message:"Sauvegarde supprim\xE9e avec succ\xE8s",created_message:"Sauvegarde cr\xE9\xE9e avec succ\xE8s",invalid_disk_credentials:"Informations d'identification invalides de l'espace de stockage"},disk:{title:"Espace de stockage | Espaces de stockage",description:"Par d\xE9faut, Crater utilisera votre disque local pour enregistrer les sauvegardes, l'avatar et d'autres fichiers image. Vous pouvez configurer plusieurs pilotes de disque comme DigitalOcean, S3 et Dropbox selon vos pr\xE9f\xE9rences.",created_at:"cr\xE9\xE9 \xE0",dropbox:"dropbox",name:"Nom",driver:"Pilote",disk_type:"Type\xA0",disk_name:"Nom",new_disk:"Ajouter un nouvel espace de stockage",filesystem_driver:"Pilote du syst\xE8me de fichiers",local_driver:"pilote local",local_root:"r\xE9pertoire local",public_driver:"Pilote public",public_root:"R\xE9pertoire public",public_url:"URL publique",public_visibility:"Visibilit\xE9 publique",media_driver:"Pilote multim\xE9dia",media_root:"R\xE9pertoire m\xE9dia",aws_driver:"Pilote AWS",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"R\xE9gion AWS",aws_bucket:"Bucket",aws_root:"R\xE9pertoire",do_spaces_type:"Type",do_spaces_key:"Key",do_spaces_secret:"Secret",do_spaces_region:"R\xE9gion",do_spaces_bucket:"Bucket",do_spaces_endpoint:"Endpoint",do_spaces_root:"R\xE9pertoire",dropbox_type:"Type",dropbox_token:"Token",dropbox_key:"Key",dropbox_secret:"Secret",dropbox_app:"Application",dropbox_root:"R\xE9pertoire",default_driver:"Fournisseur par d\xE9faut",is_default:"Par d\xE9faut",set_default_disk:"D\xE9finir l'espace par d\xE9faut",success_set_default_disk:"L'espace par d\xE9faut d\xE9fini avec succ\xE8s",save_pdf_to_disk:"Enregistrer les PDF sur le disque",disk_setting_description:"Activez cette option si vous souhaitez enregistrer automatiquement une copie de chaque facture, devis et re\xE7u de paiement PDF sur votre disque par d\xE9faut. L'activation de cette option r\xE9duira le temps de chargement lors de l'affichage des PDF.",select_disk:"S\xE9lectionnez le stockage",disk_settings:"Param\xE8tres de stockage",confirm_delete:"Vos fichiers et dossiers existants sur le disque sp\xE9cifi\xE9 ne seront pas affect\xE9s, mais la configuration de votre disque sera supprim\xE9e de Crater",action:"action",edit_file_disk:"Modifier le disque de fichiers",success_create:"Disque ajout\xE9 avec succ\xE8s",success_update:"Disque mis \xE0 jour avec succ\xE8s",error:"L'ajout de disque a \xE9chou\xE9",deleted_message:"Stockage supprim\xE9",disk_variables_save_successfully:"Stockage configur\xE9 avec succ\xE8s",disk_variables_save_error:"La configuration du stockage a \xE9chou\xE9.",invalid_disk_credentials:"Informations d'identification non valides du stockage s\xE9lectionn\xE9"}},gi={account_info:"Information du compte",account_info_desc:"Les d\xE9tails ci-dessous seront utilis\xE9s pour cr\xE9er le compte administrateur principal. Aussi, vous pouvez modifier les d\xE9tails \xE0 tout moment apr\xE8s la connexion.",name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",save_cont:"Enregistrer et poursuivre",company_info:"Informations sur la soci\xE9t\xE9",company_info_desc:"Ces informations seront affich\xE9es sur les factures. Notez que vous pouvez \xE9diter ceci plus tard sur la page des param\xE8tres.",company_name:"Nom de l'entreprise",company_logo:"Logo de l'entreprise",logo_preview:"Aper\xE7u du logo",preferences:"Pr\xE9f\xE9rences",preferences_desc:"Pr\xE9f\xE9rences par d\xE9faut du syst\xE8me.",country:"Pays",state:"\xC9tat",city:"Ville",address:"Adresse",street:"Rue 1 | Rue 2",phone:"T\xE9l\xE9phone",zip_code:"Code postal",go_back:"Revenir",currency:"Devise",language:"Langue",time_zone:"Fuseau horaire",fiscal_year:"Exercice fiscal",date_format:"Format de date",from_address:"De l'adresse",username:"Nom d'utilisateur",next:"Suivant",continue:"Poursuivre",skip:"Ignorer",database:{database:"URL du site et base de donn\xE9es",connection:"Connexion \xE0 la base de donn\xE9es",host:"Serveur de la base de donn\xE9es",port:"Port de la base de donn\xE9es",password:"Mot de passe de la base de donn\xE9es",app_url:"Application URL",app_domain:"Nom de domaine",username:"Nom d'utilisateur de la base de donn\xE9es",db_name:"Nom de la base de donn\xE9es",db_path:"Emplacement de la base de donn\xE9es",desc:"Cr\xE9ez une base de donn\xE9es sur votre serveur et d\xE9finissez les informations d'identification \xE0 l'aide du formulaire ci-dessous."},permissions:{permissions:"Permissions",permission_confirm_title:"\xCAtes-vous certain de vouloir continuer ?",permission_confirm_desc:"La v\xE9rification des permissions du dossier a \xE9chou\xE9",permission_desc:"Vous trouverez ci-dessous la liste des permissions de dossier requises pour le fonctionnement de l'application. Si la v\xE9rification des permissions \xE9choue, veillez mettre \xE0 jour vos permissions de dossier."},mail:{host:"Serveur email",port:"Port",driver:"Fournisseur d'email",secret:"Secret",mailgun_secret:"Secret",mailgun_domain:"Nom de domaine",mailgun_endpoint:"Endpoint",ses_secret:"Secret",ses_key:"Key",password:"Mot de passe",username:"Nom d'utilisateur",mail_config:"Configuration des emails",from_name:"Nom de messagerie",from_mail:"Email de l'exp\xE9diteur",encryption:"Chiffrement des emails",mail_config_desc:"Les d\xE9tails ci-dessous seront utilis\xE9s pour mettre \xE0 jour le fournisseur de messagerie. Vous pourrez modifier ceux-ci \xE0 tout moment apr\xE8s la connexion."},req:{system_req:"Configuration requise",php_req_version:"Php (version {version} n\xE9cessaire)",check_req:"V\xE9rifier les pr\xE9requis",system_req_desc:"Crater a quelques pr\xE9requis. Assurez-vous que votre serveur dispose de la version Php requise et de toutes les extensions mentionn\xE9es ci-dessous."},errors:{migrate_failed:"\xC9chec de la migration",database_variables_save_error:"Impossible de cr\xE9er le fichier de configuration. Veuillez v\xE9rifier les permissions du r\xE9pertoire",mail_variables_save_error:"La configuration du courrier \xE9lectronique a \xE9chou\xE9.",connection_failed:"La connexion \xE0 la base de donn\xE9es a \xE9chou\xE9",database_should_be_empty:"La base de donn\xE9es devrait \xEAtre vide"},success:{mail_variables_save_successfully:"Email configur\xE9 avec succ\xE8s",database_variables_save_successfully:"Base de donn\xE9es configur\xE9e avec succ\xE8s."}},fi={invalid_phone:"Num\xE9ro de t\xE9l\xE9phone invalide",invalid_url:"URL invalide (ex: http://www.craterapp.com)",invalid_domain_url:"URL invalide (ex: craterapp.com)",required:"Champ requis",email_incorrect:"Adresse Email incorrecte.",email_already_taken:"Un compte est d\xE9j\xE0 associ\xE9 \xE0 cette adresse e-mail.",email_does_not_exist:"Cet utilisateur n'existe pas",item_unit_already_taken:"Cette unit\xE9 est d\xE9j\xE0 \xE9t\xE9 utilis\xE9e",payment_mode_already_taken:"Ce moyen de paiement est d\xE9j\xE0 utilis\xE9",send_reset_link:"Envoyer le lien de r\xE9initialisation",not_yet:"Pas encore re\xE7u ? R\xE9essayer",password_min_length:"Le mot de passe doit contenir {nombre} caract\xE8res",name_min_length:"Le nom doit avoir au moins {count} lettres.",enter_valid_tax_rate:"Entrez un taux de taxe valide",numbers_only:"Chiffres uniquement.",characters_only:"Caract\xE8res seulement.",password_incorrect:"Les mots de passe doivent \xEAtre identiques",password_length:"Le mot de passe doit comporter au moins {count} caract\xE8res.",qty_must_greater_than_zero:"La quantit\xE9 doit \xEAtre sup\xE9rieure \xE0 z\xE9ro.",price_greater_than_zero:"Le prix doit \xEAtre sup\xE9rieur \xE0 z\xE9ro.",payment_greater_than_zero:"Le paiement doit \xEAtre sup\xE9rieur \xE0 z\xE9ro.",payment_greater_than_due_amount:"Le paiement saisi est plus \xE9lev\xE9 que le montant d\xFB de cette facture.",quantity_maxlength:"La quantit\xE9 ne doit pas d\xE9passer 20 chiffres.",price_maxlength:"Le prix ne doit pas d\xE9passer 20 chiffres.",price_minvalue:"Le prix doit \xEAtre sup\xE9rieur \xE0 0.",amount_maxlength:"Le montant ne doit pas d\xE9passer 20 chiffres.",amount_minvalue:"Le montant doit \xEAtre sup\xE9rieur \xE0 0.",description_maxlength:"La description ne doit pas d\xE9passer 255 caract\xE8res.",subject_maxlength:"L'objet ne doit pas d\xE9passer 100 caract\xE8res.",message_maxlength:"Le message ne doit pas d\xE9passer 255 caract\xE8res.",maximum_options_error:"Maximum de {max} options s\xE9lectionn\xE9es. Commencez par supprimer une option s\xE9lectionn\xE9e pour en s\xE9lectionner une autre.",notes_maxlength:"Les notes ne doivent pas d\xE9passer 255 caract\xE8res.",address_maxlength:"L'adresse ne doit pas d\xE9passer 255 caract\xE8res.",ref_number_maxlength:"Le num\xE9ro de r\xE9f\xE9rence ne doit pas d\xE9passer 255 caract\xE8res.",prefix_maxlength:"Le pr\xE9fixe ne doit pas d\xE9passer 5 caract\xE8res.",something_went_wrong:"quelque chose a mal tourn\xE9"},hi="Devis",vi="N\xB0",yi="Date du devis",bi="Date d'expiration",ki="Facture",wi="Num\xE9ro de facture",xi="Date",zi="Date d\u2019\xE9ch\xE9ance",Si="Remarques",ji="Articles",Pi="Quantit\xE9",Di="Prix",Ci="Remise",Ai="Montant",Ei="Sous-total",Ni="Total",Ti="Payment",Ii="Re\xE7u de paiement",$i="Date de paiement",Ri="N\xB0",Fi="Moyen de paiement",Mi="Montant re\xE7u",Vi="RAPPORT DE D\xC9PENSES",Bi="TOTAL DES D\xC9PENSES",Oi="RAPPORT DES B\xC9N\xC9FICES ET DES PERTES",Li="Sales Customer Report",Ui="Sales Item Report",Ki="Tax Summary Report",qi="REVENU",Zi="B\xC9N\xC9FICE NET",Wi="Rapport de ventes : par client",Hi="TOTAL DES VENTES",Gi="Rapport des ventes : par article",Yi="RAPPORT DES TAXES",Ji="TOTAL DES TAXES",Xi="Types de taxe",Qi="D\xE9penses",eo="facturer,",to="Envoyer \xE0,",ao="Re\xE7u de :",so="Tax";var no={navigation:ei,general:ti,dashboard:ai,tax_types:si,global_search:ni,customers:ii,items:oi,estimates:ri,invoices:di,payments:li,expenses:ci,login:_i,users:ui,reports:mi,settings:pi,wizard:gi,validation:fi,pdf_estimate_label:hi,pdf_estimate_number:vi,pdf_estimate_date:yi,pdf_estimate_expire_date:bi,pdf_invoice_label:ki,pdf_invoice_number:wi,pdf_invoice_date:xi,pdf_invoice_due_date:zi,pdf_notes:Si,pdf_items_label:ji,pdf_quantity_label:Pi,pdf_price_label:Di,pdf_discount_label:Ci,pdf_amount_label:Ai,pdf_subtotal:Ei,pdf_total:Ni,pdf_payment_label:Ti,pdf_payment_receipt_label:Ii,pdf_payment_date:$i,pdf_payment_number:Ri,pdf_payment_mode:Fi,pdf_payment_amount_received_label:Mi,pdf_expense_report_label:Vi,pdf_total_expenses_label:Bi,pdf_profit_loss_label:Oi,pdf_sales_customers_label:Li,pdf_sales_items_label:Ui,pdf_tax_summery_label:Ki,pdf_income_label:qi,pdf_net_profit_label:Zi,pdf_customer_sales_report:Wi,pdf_total_sales_label:Hi,pdf_item_sales_label:Gi,pdf_tax_report_label:Yi,pdf_total_tax_label:Ji,pdf_tax_types_label:Xi,pdf_expenses_label:Qi,pdf_bill_to:eo,pdf_ship_to:to,pdf_received_from:ao,pdf_tax_label:so};const io={dashboard:"Tablero",customers:"Clientes",items:"Art\xEDculos",invoices:"Facturas",expenses:"Gastos",estimates:"Presupuestos",payments:"Pagos",reports:"Informes",settings:"Configuraciones",logout:"Cerrar sesi\xF3n",users:"Usuarios"},oo={add_company:"A\xF1adir empresa",view_pdf:"Ver PDF",copy_pdf_url:"Copiar direcci\xF3n URL del archivo PDF",download_pdf:"Descargar PDF",save:"Guardar",create:"Crear",cancel:"Cancelar",update:"Actualizar",deselect:"Deseleccionar",download:"Descargar",from_date:"Desde la fecha",to_date:"Hasta la fecha",from:"De",to:"A",sort_by:"Ordenar por",ascending:"Ascendente",descending:"Descendente",subject:"Sujeta",body:"Cuerpo",message:"Mensaje",send:"Enviar",go_back:"Volver",back_to_login:"\xBFVolver al inicio de sesi\xF3n?",home:"Inicio",filter:"Filtrar",delete:"Eliminar",edit:"Editar",view:"Ver",add_new_item:"Agregar \xEDtem nuevo",clear_all:"Limpiar todo",showing:"Mostrando",of:"de",actions:"Acciones",subtotal:"SUBTOTAL",discount:"DESCUENTO",fixed:"Fijo",percentage:"Porcentaje",tax:"IMPUESTO",total_amount:"CANTIDAD TOTAL",bill_to:"Cobrar a",ship_to:"Enviar a",due:"Debido",draft:"Borrador",sent:"Enviado",all:"Todas",select_all:"Seleccionar todo",choose_file:"Haga clic aqu\xED para elegir un archivo",choose_template:"Elige una plantilla",choose:"Escoger",remove:"Eliminar",powered_by:"Impulsado por",bytefury:"Bytefury",select_a_status:"Selecciona un estado",select_a_tax:"Selecciona un impuesto",search:"Buscar",are_you_sure:"\xBFEst\xE1s seguro?",list_is_empty:"La lista esta vac\xEDa.",no_tax_found:"\xA1No se encontraron impuestos!",four_zero_four:"404",you_got_lost:"Whoops! \xA1Te perdiste!",go_home:"Volver al Inicio",test_mail_conf:"Probar configuraci\xF3n de correo",send_mail_successfully:"El correo enviado con \xE9xito",setting_updated:"Configuraci\xF3n actualizada con \xE9xito",select_state:"Seleccionar estado",select_country:"Seleccionar pa\xEDs",select_city:"Seleccionar ciudad",street_1:"Calle 1",street_2:"Calle 2",action_failed:"Accion Fallida",retry:"Procesar de nuevo",choose_note:"Elegir nota",no_note_found:"No se encontr\xF3 ninguna nota",insert_note:"Insertar una nota"},ro={select_year:"Seleccionar a\xF1o",cards:{due_amount:"Cantidad Debida",customers:"Clientes",invoices:"Facturas",estimates:"Presupuestos"},chart_info:{total_sales:"Ventas",total_receipts:"Ingresos",total_expense:"Gastos",net_income:"Ingresos netos",year:"Seleccione a\xF1o"},monthly_chart:{title:"Gastos de venta"},recent_invoices_card:{title:"Facturas adeudadas",due_on:"Debido a",customer:"Cliente",amount_due:"Cantidad Debida",actions:"Acciones",view_all:"Ver todo"},recent_estimate_card:{title:"Presupuestos recientes",date:"Fecha",customer:"Cliente",amount_due:"Cantidad Debida",actions:"Acciones",view_all:"Ver todo"}},lo={name:"Nombre",description:"Descripci\xF3n",percent:"Por ciento",compound_tax:"Impuesto compuesto"},co={search:"Buscar...",customers:"Clientes",users:"Usuarios",no_results_found:"No se encontraron resultados"},_o={title:"Clientes",add_customer:"Agregar cliente",contacts_list:"Lista de clientes",name:"Nombre",mail:"Correo | Correos",statement:"Declaraci\xF3n",display_name:"Nombre para mostrar",primary_contact_name:"Nombre de contacto primario",contact_name:"Nombre de contacto",amount_due:"Cantidad Debida",email:"Correo electr\xF3nico",address:"Direcci\xF3n",phone:"Tel\xE9fono",website:"Sitio web",overview:"Descripci\xF3n general",enable_portal:"Habilitar Portal",country:"Pa\xEDs",state:"Estado",city:"Ciudad",zip_code:"C\xF3digo postal",added_on:"A\xF1adido el",action:"Acci\xF3n",password:"Contrase\xF1a",street_number:"N\xFAmero de calle",primary_currency:"Moneda primaria",description:"Descripci\xF3n",add_new_customer:"Agregar nuevo cliente",save_customer:"Guardar cliente",update_customer:"Actualizar cliente",customer:"Cliente | Clientes",new_customer:"Nuevo cliente",edit_customer:"Editar cliente",basic_info:"Informaci\xF3n b\xE1sica",billing_address:"Direcci\xF3n de Facturaci\xF3n",shipping_address:"Direcci\xF3n de Env\xEDo",copy_billing_address:"Copia de facturaci\xF3n",no_customers:"\xA1A\xFAn no hay clientes!",no_customers_found:"\xA1No se encontraron clientes!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Esta secci\xF3n contendr\xE1 la lista de clientes.",primary_display_name:"Nombre de visualizaci\xF3n principal",select_currency:"Seleccione el tipo de moneda",select_a_customer:"Selecciona un cliente",type_or_click:"Escriba o haga clic para seleccionar",new_transaction:"Nueva transacci\xF3n",no_matching_customers:"\xA1No hay clientes coincidentes!",phone_number:"N\xFAmero de tel\xE9fono",create_date:"Fecha de Creaci\xF3n",confirm_delete:"No podr\xE1 recuperar este cliente y todas las facturas, estimaciones y pagos relacionados. | No podr\xE1 recuperar estos clientes y todas las facturas, estimaciones y pagos relacionados.",created_message:"Cliente creado con \xE9xito",updated_message:"Cliente actualizado con \xE9xito",deleted_message:"Cliente eliminado correctamente | Clientes eliminados exitosamente"},uo={title:"Art\xEDculos",items_list:"Lista de art\xEDculos",name:"Nombre",unit:"Unidad",description:"Descripci\xF3n",added_on:"A\xF1adido",price:"Precio",date_of_creation:"Fecha de creaci\xF3n",not_selected:"No item selected",action:"Acci\xF3n",add_item:"A\xF1adir art\xEDculo",save_item:"Guardar art\xEDculo",update_item:"Actualizar elemento",item:"Art\xEDculo | Art\xEDculos",add_new_item:"Agregar \xEDtem nuevo",new_item:"Nuevo art\xEDculo",edit_item:"Editar elemento",no_items:"\xA1A\xFAn no hay art\xEDculos!",list_of_items:"Esta secci\xF3n contendr\xE1 la lista de art\xEDculos.",select_a_unit:"seleccionar unidad",taxes:"Impuestos",item_attached_message:"No se puede eliminar un elemento que ya est\xE1 en uso.",confirm_delete:"No podr\xE1 recuperar este art\xEDculo | No podr\xE1s recuperar estos elementos",created_message:"Art\xEDculo creado con \xE9xito",updated_message:"Art\xEDculo actualizado con \xE9xito",deleted_message:"Elemento eliminado con \xE9xito | Elementos eliminados correctamente"},mo={title:"Presupuestos",estimate:"Presupuesto | Presupuestos",estimates_list:"Lista de presupuestos",days:"d\xEDas D\xEDas",months:"meses Mes",years:"a\xF1os A\xF1o",all:"Todas",paid:"Pagada",unpaid:"No pagado",customer:"CLIENTE",ref_no:"N\xDAMERO DE REFERENCIA.",number:"N\xDAMERO",amount_due:"CANTIDAD DEBIDA",partially_paid:"Parcialmente pagado",total:"Total",discount:"Descuento",sub_total:"Subtotal",estimate_number:"N\xFAmero de Presupuesto",ref_number:"N\xFAmero de referencia",contact:"Contacto",add_item:"Agregar un art\xEDculo",date:"Fecha",due_date:"Fecha de vencimiento",expiry_date:"Fecha de caducidad",status:"Estado",add_tax:"Agregar impuesto",amount:"Cantidad",action:"Acci\xF3n",notes:"Notas",tax:"Impuesto",estimate_template:"Plantilla de presupuesto",convert_to_invoice:"Convertir a factura",mark_as_sent:"Marcar como enviado",send_estimate:"Enviar presupuesto",resend_estimate:"Reenviar estimado",record_payment:"Registro de pago",add_estimate:"Agregar presupuesto",save_estimate:"Guardar presupuesto",confirm_conversion:"\xBFQuiere convertir este presupuesto en una factura?",conversion_message:"Conversi\xF3n exitosa",confirm_send_estimate:"Este presupuesto se enviar\xE1 por correo electr\xF3nico al cliente",confirm_mark_as_sent:"Este presupuesto se marcar\xE1 como enviado",confirm_mark_as_accepted:"Este presupuesto se marcar\xE1 como Aceptado",confirm_mark_as_rejected:"Este presupuesto se marcar\xE1 como Rechazado",no_matching_estimates:"\xA1No hay presupuestos coincidentes!",mark_as_sent_successfully:"Presupuesto marcado como enviado correctamente",send_estimate_successfully:"Presupuesto enviado con \xE9xito",errors:{required:"Se requiere campo"},accepted:"Aceptado",rejected:"Rejected",sent:"Enviado",draft:"Borrador",declined:"Rechazado",new_estimate:"Nuevo presupuesto",add_new_estimate:"A\xF1adir nuevo presupuesto",update_Estimate:"Actualizar presupuesto",edit_estimate:"Editar presupuesto",items:"art\xEDculos",Estimate:"Presupuestos | Presupuestos",add_new_tax:"Agregar nuevo impuesto",no_estimates:"\xA1A\xFAn no hay presupuestos!",list_of_estimates:"Esta secci\xF3n contendr\xE1 la lista de presupuestos.",mark_as_rejected:"Marcar como rechazado",mark_as_accepted:"Marcar como aceptado",marked_as_accepted_message:"Presupuesto marcado como aceptado",marked_as_rejected_message:"Presupuesto marcado como rechazado",confirm_delete:"No podr\xE1 recuperar este presupuesto | No podr\xE1 recuperar estos presupuestos",created_message:"Presupuesto creada con \xE9xito",updated_message:"Presupuesto actualizada con \xE9xito",deleted_message:"Presupuesto eliminada con \xE9xito | Presupuestos eliminadas exitosamente",something_went_wrong:"Algo fue mal",item:{title:"T\xEDtulo del art\xEDculo",description:"Descripci\xF3n",quantity:"Cantidad",price:"Precio",discount:"Descuento",total:"Total",total_discount:"Descuento total",sub_total:"Subtotal",tax:"Impuesto",amount:"Cantidad",select_an_item:"Escriba o haga clic para seleccionar un elemento",type_item_description:"Descripci\xF3n del tipo de elemento(opcional)"}},po={title:"Facturas",invoices_list:"Lista de facturas",days:"d\xEDas D\xEDas",months:"meses Mes",years:"a\xF1os A\xF1o",all:"Todas",paid:"Pagada",unpaid:"No pagado",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENTE",paid_status:"ESTADO PAGADO",ref_no:"N\xDAMERO DE REFERENCIA.",number:"N\xDAMERO",amount_due:"CANTIDAD DEBIDA",partially_paid:"Parcialmente pagado",total:"Total",discount:"Descuento",sub_total:"Subtotal",invoice:"Factura | Facturas",invoice_number:"Numero de factura",ref_number:"N\xFAmero de referencia",contact:"Contacto",add_item:"Agregar un art\xEDculo",date:"Fecha",due_date:"Fecha de vencimiento",status:"Estado",add_tax:"Agregar impuesto",amount:"Cantidad",action:"Acci\xF3n",notes:"Notas",view:"Ver",send_invoice:"Enviar la factura",resend_invoice:"Reenviar factura",invoice_template:"Plantilla de factura",template:"Modelo",mark_as_sent:"Marcar como enviada",confirm_send_invoice:"Esta factura ser\xE1 enviada por email al cliente",invoice_mark_as_sent:"Esta factura se marcar\xE1 como enviada",confirm_send:"Estas facturas se enviar\xE1n por correo electr\xF3nico al cliente.",invoice_date:"Fecha de la factura",record_payment:"Registro de pago",add_new_invoice:"A\xF1adir nueva factura",update_expense:"Actualizar gasto",edit_invoice:"Editar factura",new_invoice:"Nueva factura",save_invoice:"Guardar factura",update_invoice:"Actualizar factura",add_new_tax:"Agregar nuevo impuesto",no_invoices:"\xA1A\xFAn no hay facturas!",list_of_invoices:"Esta secci\xF3n contendr\xE1 la lista de facturas.",select_invoice:"Seleccionar factura",no_matching_invoices:"\xA1No hay facturas coincidentes con la selecci\xF3n!",mark_as_sent_successfully:"Factura marcada como enviada con \xE9xito",invoice_sent_successfully:"Factura enviada exitosamente",cloned_successfully:"Factura clonada exitosamente",clone_invoice:"Factura de clonaci\xF3n",confirm_clone:"Esta factura se clonar\xE1 en una nueva factura.",item:{title:"T\xEDtulo del art\xEDculo",description:"Descripci\xF3n",quantity:"Cantidad",price:"Precio",discount:"Descuento",total:"Total",total_discount:"Descuento total",sub_total:"Subtotal",tax:"Impuesto",amount:"Cantidad",select_an_item:"Escriba o haga clic para seleccionar un elemento",type_item_description:"Descripci\xF3n del tipo de elemento (opcional)"},confirm_delete:"No podr\xE1 recuperar esta factura | No podr\xE1 recuperar estas facturas",created_message:"Factura creada exitosamente",updated_message:"Factura actualizada exitosamente",deleted_message:"Factura eliminada con \xE9xito | Facturas borradas exitosamente",marked_as_sent_message:"Factura marcada como enviada con \xE9xito",something_went_wrong:"Algo fue mal",invalid_due_amount_message:"El pago ingresado es mayor que la cantidad total debida por esta factura. Por favor verificalo y vuelve a intentarlo"},go={title:"Pagos",payments_list:"Lista de pagos",record_payment:"Registro de pago",customer:"Cliente",date:"Fecha",amount:"Cantidad",action:"Acci\xF3n",payment_number:"Numero de pago",payment_mode:"Modo de pago",invoice:"Factura",note:"Nota",add_payment:"Agregar pago",new_payment:"Nuevo pago",edit_payment:"Editar pago",view_payment:"Ver pago",add_new_payment:"Agregar nuevo pago",send_payment_receipt:"Enviar recibo de pago",send_payment:"Enviar pago",save_payment:"Guardar pago",update_payment:"Actualizar pago",payment:"Pago | Pagos",no_payments:"\xA1A\xFAn no hay pagos!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"\xA1No hay pagos equivalentes!",list_of_payments:"Esta secci\xF3n contendr\xE1 la lista de pagos.",select_payment_mode:"Seleccionar modo de pago",confirm_mark_as_sent:"Este presupuesto se marcar\xE1 como enviado",confirm_send_payment:"Este pago se enviar\xE1 por correo electr\xF3nico al cliente",send_payment_successfully:"Pago enviado correctamente",something_went_wrong:"Algo fue mal",confirm_delete:"No podr\xE1 recuperar este pago | No podr\xE1 recuperar estos pagos",created_message:"Pago creado con \xE9xito",updated_message:"Pago actualizado con \xE9xito",deleted_message:"Pago eliminado con \xE9xito | Pagos eliminados exitosamente",invalid_amount_message:"El importe del pago no es v\xE1lido."},fo={title:"Gastos",expenses_list:"Lista de gastos",select_a_customer:"Selecciona un cliente",expense_title:"T\xEDtulo",customer:"Cliente",contact:"Contacto",category:"Categor\xEDa",from_date:"Desde la fecha",to_date:"Hasta la fecha",expense_date:"Fecha",description:"Descripci\xF3n",receipt:"Recibo",amount:"Cantidad",action:"Acci\xF3n",not_selected:"Not selected",note:"Nota",category_id:"Categoria ID",date:"Fecha de gastos",add_expense:"A\xF1adir gastos",add_new_expense:"A\xF1adir nuevo gasto",save_expense:"Guardar gasto",update_expense:"Actualizar gasto",download_receipt:"Descargar recibo",edit_expense:"Editar gasto",new_expense:"Nuevo gasto",expense:"Gastos | Gastos",no_expenses:"\xA1No hay gastos todav\xEDa!",list_of_expenses:"Esta secci\xF3n contendr\xE1 la lista de gastos.",confirm_delete:"No podr\xE1 recuperar este gasto | No podr\xE1 recuperar estos gastos",created_message:"Gastos creados exitosamente",updated_message:"Gastos actualizados con \xE9xito",deleted_message:"Gastos eliminados con \xE9xito | Gastos eliminados exitosamente",categories:{categories_list:"Lista de categor\xEDas",title:"T\xEDtulo",name:"Nombre",description:"Descripci\xF3n",amount:"Cantidad",actions:"Comportamiento",add_category:"a\xF1adir categor\xEDa",new_category:"Nueva categor\xEDa",category:"Categor\xEDa | Categorias",select_a_category:"Seleccione una categor\xEDa"}},ho={email:"Correo electr\xF3nico",password:"Contrase\xF1a",forgot_password:"\xBFOlvidaste tu contrase\xF1a?",or_signIn_with:"o Inicia sesi\xF3n con",login:"Iniciar sesi\xF3n",register:"Registro",reset_password:"Restablecer la contrase\xF1a",password_reset_successfully:"Contrase\xF1a reestablecida con \xE9xito",enter_email:"Escriba el correo electr\xF3nico",enter_password:"Escriba la contrase\xF1a",retype_password:"Reescriba la contrase\xF1a"},vo={title:"Usuarios",users_list:"Lista de usuarios",name:"Nombre",description:"Descripci\xF3n",added_on:"A\xF1adido",date_of_creation:"Fecha de creaci\xF3n",action:"Acci\xF3n",add_user:"Agregar usuario",save_user:"Guardar usuario",update_user:"Actualizar usuario",user:"Usuario | Usuarios",add_new_user:"Agregar Nuevo Usuario",new_user:"Nuevo usuario",edit_user:"Editar usuario",no_users:"\xA1A\xFAn no hay usuarios!",list_of_users:"Esta secci\xF3n contendr\xE1 la lista de usuarios.",email:"Correo",phone:"Tel\xE9fono",password:"Contrase\xF1a",user_attached_message:"No se puede eliminar un elemento que ya est\xE1 en uso.",confirm_delete:"No podr\xE1 recuperar este Usuario | No podr\xE1 recuperar estos Usuarios",created_message:"Usuario creado satisfactoriamente",updated_message:"Usuario actualizado satisfactoriamente",deleted_message:"Usuario eliminado exitosamente | Usuario eliminado correctamente"},yo={title:"Informe",from_date:"A partir de la fecha",to_date:"Hasta la fecha",status:"Estado",paid:"Pagada",unpaid:"No pagado",download_pdf:"Descargar PDF",view_pdf:"Ver PDF",update_report:"Informe de actualizaci\xF3n",report:"Informe | Informes",profit_loss:{profit_loss:"P\xE9rdida de beneficios",to_date:"Hasta la fecha",from_date:"A partir de la fecha",date_range:"Seleccionar rango de fechas"},sales:{sales:"Ventas",date_range:"Seleccionar rango de fechas",to_date:"Hasta la fecha",from_date:"A partir de la fecha",report_type:"Tipo de informe"},taxes:{taxes:"Impuestos",to_date:"Hasta la fecha",from_date:"A partir de la fecha",date_range:"Seleccionar rango de fechas"},errors:{required:"Se requiere campo"},invoices:{invoice:"Factura",invoice_date:"Fecha de la factura",due_date:"Fecha de vencimiento",amount:"Cantidad",contact_name:"Nombre de contacto",status:"Estado"},estimates:{estimate:"Presupuestar",estimate_date:"Fecha presupuesto",due_date:"Fecha de vencimiento",estimate_number:"N\xFAmero de Presupuesto",ref_number:"N\xFAmero de referencia",amount:"Cantidad",contact_name:"Nombre de contacto",status:"Estado"},expenses:{expenses:"Gastos",category:"Categor\xEDa",date:"Fecha",amount:"Cantidad",to_date:"Hasta la fecha",from_date:"A partir de la fecha",date_range:"Seleccionar rango de fechas"}},bo={menu_title:{account_settings:"Configuraciones de la cuenta",company_information:"Informaci\xF3n de la empresa",customization:"Personalizaci\xF3n",preferences:"Preferencias",notifications:"Notificaciones",tax_types:"Tipos de impuestos",expense_category:"Categor\xEDas de gastos",update_app:"Actualizar aplicaci\xF3n",backup:"Copias de seguridad",file_disk:"Disco de archivo",custom_fields:"Campos Personalizados",payment_modes:"Modos de pago",notes:"Notas"},title:"Configuraciones",setting:"Configuraciones | Configuraciones",general:"General",language:"Idioma",primary_currency:"Moneda primaria",timezone:"Zona horaria",date_format:"Formato de fecha",currencies:{title:"Monedas",currency:"Moneda | Monedas",currencies_list:"Lista de monedas",select_currency:"Seleccione el tipo de moneda",name:"Nombre",code:"C\xF3digo",symbol:"S\xEDmbolo",precision:"Precisi\xF3n",thousand_separator:"Separador de miles",decimal_separator:"Separador decimal",position:"Posici\xF3n",position_of_symbol:"Posici\xF3n del s\xEDmbolo",right:"Derecho",left:"Izquierda",action:"Acci\xF3n",add_currency:"Agregar moneda"},mail:{host:"Host de correo",port:"Puerto de correo",driver:"Conductor de correo",secret:"Secreto",mailgun_secret:"Mailgun Secreto",mailgun_domain:"Domino",mailgun_endpoint:"Mailgun endpoint",ses_secret:"Secreto SES",ses_key:"Clave SES",password:"Contrase\xF1a de correo",username:"Nombre de usuario de correo",mail_config:"Configuraci\xF3n de correo",from_name:"Del nombre del correo",from_mail:"Desde la direcci\xF3n de correo",encryption:"Cifrado de correo",mail_config_desc:"Los detalles a continuaci\xF3n se utilizar\xE1n para actualizar el entorno de correo. Tambi\xE9n puede cambiar los detalles en cualquier momento despu\xE9s de iniciar sesi\xF3n."},pdf:{title:"Configuraci\xF3n de PDF",footer_text:"Texto de pie de p\xE1gina",pdf_layout:"Dise\xF1o PDF"},company_info:{company_info:"Informaci\xF3n de la compa\xF1\xEDa",company_name:"Nombre de Empresa",company_logo:"Logo de la compa\xF1\xEDa",section_description:"Informaci\xF3n sobre su empresa que se mostrar\xE1 en las facturas, presupuestos y otros documentos creados por Crater.",phone:"Tel\xE9fono",country:"Pa\xEDs",state:"Estado",city:"Ciudad",address:"Direcci\xF3n",zip:"C\xF3digo Postal",save:"Guardar",updated_message:"Informaci\xF3n de la empresa actualizada con \xE9xito"},custom_fields:{title:"Campos Personalizados",section_description:"Personalice sus facturas, estimaciones y recibos de pago en sus propios campos. Aseg\xFArese de usar los siguientes campos a\xF1adidos en los formatos de direcci\xF3n de la p\xE1gina de configuraci\xF3n de personalizaci\xF3n.",add_custom_field:"Agregar campo personalizado",edit_custom_field:"Editar campo personalizado",field_name:"Nombre del campo",label:"Etiqueta",type:"Tipo",name:"Nombre",required:"Necesaria",placeholder:"Marcador de posici\xF3n",help_text:"texto de ayuda",default_value:"Valor por defecto",prefix:"Prefijo",starting_number:"N\xFAmero inicial",model:"Modelo",help_text_description:"Ingrese un texto para ayudar a los usuarios a comprender el prop\xF3sito de este campo personalizado.",suffix:"Sufijo",yes:"si",no:"No",order:"Orden",custom_field_confirm_delete:"No podr\xE1 recuperar este campo personalizado",already_in_use:"El campo personalizado ya est\xE1 en uso",deleted_message:"Campo personalizado eliminado correctamente",options:"opciones",add_option:"Agregar opciones",add_another_option:"Agregar otra opci\xF3n",sort_in_alphabetical_order:"Ordenar en orden alfab\xE9tico",add_options_in_bulk:"Agregar opciones a granel",use_predefined_options:"Usar opciones predefinidas",select_custom_date:"Seleccionar fecha personalizada",select_relative_date:"Seleccionar fecha relativa",ticked_by_default:"Marcada por defecto",updated_message:"Campo personalizado actualizado correctamente",added_message:"Campo personalizado agregado correctamente"},customization:{customization:"Personalizaci\xF3n",save:"Guardar",addresses:{title:"Direcciones",section_description:"Puede configurar la Direcci\xF3n de facturaci\xF3n del cliente y el Formato de direcci\xF3n de env\xEDo del cliente (solo se muestra en PDF).",customer_billing_address:"Direcci\xF3n de facturaci\xF3n del cliente",customer_shipping_address:"Direcci\xF3n de env\xEDo del cliente",company_address:"Direcci\xF3n de la compa\xF1ia",insert_fields:"Insertar campos",contact:"Contacto",address:"Direcci\xF3n",display_name:"Nombre para mostrar",primary_contact_name:"Nombre de contacto principal",email:"Correo electr\xF3nico",website:"Sitio web",name:"Nombre",country:"Pa\xEDs",state:"Estado",city:"Ciudad",company_name:"Nombre de la compa\xF1ia",address_street_1:"Direcci\xF3n de la calle 1",address_street_2:"Direcci\xF3n de la calle 2",phone:"Telefono",zip_code:"Codigo postal",address_setting_updated:"Configuraci\xF3n de direcci\xF3n actualizada correctamente"},updated_message:"Informaci\xF3n de la empresa actualizada con \xE9xito",invoices:{title:"Facturas",notes:"Notas",invoice_prefix:"Prefijo de las facturas",default_invoice_email_body:"Cuerpo predeterminado del correo electr\xF3nico de la factura",invoice_settings:"Ajustes de facturas",autogenerate_invoice_number:"Autogenerar n\xFAmero de factura",autogenerate_invoice_number_desc:"Desactive esto, si no desea generar autom\xE1ticamente n\xFAmeros de factura cada vez que cree una nueva factura.",enter_invoice_prefix:"Introduzca el prefijo de factura",terms_and_conditions:"T\xE9rminos y Condiciones",company_address_format:"Formato de direcci\xF3n de la empresa",shipping_address_format:"Formato de la direcci\xF3n de env\xEDo",billing_address_format:"Formato de direcci\xF3n de facturaci\xF3n",invoice_settings_updated:"Configuraci\xF3n de factura actualizada correctamente"},estimates:{title:"Estimaciones",estimate_prefix:"Prefijo de los presupuestos",default_estimate_email_body:"Cuerpo predeterminado estimado del correo electr\xF3nico",estimate_settings:"Ajustes de presupuestos",autogenerate_estimate_number:"Autogenerar n\xFAmero de presupuesto",estimate_setting_description:"Desactive esto, si no desea generar autom\xE1ticamente n\xFAmeros de presupuesto cada vez que cree un nuevo presupuesto.",enter_estimate_prefix:"Introduzca el prefijo de presupuesto",estimate_setting_updated:"Configuraci\xF3n de presupuestos actualizada correctamente",company_address_format:"Formato de direcci\xF3n de la empresa",billing_address_format:"Formato de la direcci\xF3n de facturaci\xF3n",shipping_address_format:"Formato de direcci\xF3n de env\xEDo"},payments:{title:"Pagos",description:"Modos de transacci\xF3n de pagos",payment_prefix:"Prefijo de los pagos",default_payment_email_body:"Cuerpo predeterminado del correo electr\xF3nico del pago",payment_settings:"Ajustes de pagos",autogenerate_payment_number:"Autogenerar n\xFAmero de pago",payment_setting_description:"Desactive esto, si no desea generar autom\xE1ticamente n\xFAmeros de pago cada vez que cree un nuevo pago.",enter_payment_prefix:"Introduzca el prefijo de pago",payment_setting_updated:"Configuraci\xF3n de pagos actualizada correctamente",payment_modes:"Modos de pago",add_payment_mode:"Agregar modo de pago",edit_payment_mode:"Editar modo de pago",mode_name:"Nombre del modo",payment_mode_added:"Modo de pago agregado",payment_mode_updated:"Modo de pago actualizado",payment_mode_confirm_delete:"No podr\xE1 recuperar este modo de pago",already_in_use:"El modo de pago ya est\xE1 en uso",deleted_message:"Modo de pago eliminado correctamente",company_address_format:"Formato de direcci\xF3n de la empresa",from_customer_address_format:"Desde el formato de direcci\xF3n del cliente"},items:{title:"Art\xEDculos",units:"unidades",add_item_unit:"Agregar unidad de art\xEDculo",edit_item_unit:"Editar unidad de art\xEDculo",unit_name:"Nombre de la unidad",item_unit_added:"Unidad de art\xEDculo agregada",item_unit_updated:"Unidad de art\xEDculo actualizada",item_unit_confirm_delete:"No podr\xE1s recuperar esta unidad de art\xEDculo",already_in_use:"Unidad de art\xEDculo ya est\xE1 en uso",deleted_message:"Unidad de elemento eliminada correctamente"},notes:{title:"Notas",description:"Ahorre tiempo creando notas y reutiliz\xE1ndolas en sus facturas, c\xE1lculos y pagos.",notes:"Notas",type:"Tipo",add_note:"Agregar nota",add_new_note:"Agregar nueva nota",name:"Nombre",edit_note:"Editar nota",note_added:"Nota agregada correctamente",note_updated:"Nota actualizada correctamente",note_confirm_delete:"No podr\xE1 recuperar esta nota",already_in_use:"Nota ya est\xE1 en uso",deleted_message:"Nota eliminada correctamente"}},account_settings:{profile_picture:"Foto de perfil",name:"Nombre",email:"Correo electr\xF3nico",password:"Contrase\xF1a",confirm_password:"Confirmar contrase\xF1a",account_settings:"Configuraciones de la cuenta",save:"Guardar",section_description:"Puede actualizar su nombre, correo electr\xF3nico y contrase\xF1a utilizando el siguiente formulario.",updated_message:"Configuraci\xF3n de la cuenta actualizada correctamente"},user_profile:{name:"Nombre",email:"Correo electr\xF3nico",password:"Contrase\xF1a",confirm_password:"Confirmar contrase\xF1a"},notification:{title:"Notificaci\xF3n",email:"Enviar notificaciones a",description:"\xBFQu\xE9 notificaciones por correo electr\xF3nico le gustar\xEDa recibir cuando algo cambia?",invoice_viewed:"Factura vista",invoice_viewed_desc:"Cuando su cliente vio la factura enviada a trav\xE9s del panel de control de Crater.",estimate_viewed:"Presupuesto visto",estimate_viewed_desc:"Cuando su cliente vio el presupuesto enviado a trav\xE9s del panel de control de Crater.",save:"Guardar",email_save_message:"Correo electr\xF3nico guardado con \xE9xito",please_enter_email:"Por favor, introduzca su correo electr\xF3nico"},tax_types:{title:"Tipos de impuestos",add_tax:"Agregar impuesto",edit_tax:"Editar impuesto",description:"Puede agregar o eliminar impuestos a su gusto. Crater admite impuestos sobre art\xEDculos individuales, as\xED como sobre la factura.",add_new_tax:"Agregar nuevo impuesto",tax_settings:"Configuraciones de impuestos",tax_per_item:"Impuesto por art\xEDculo",tax_name:"Nombre del impuesto",compound_tax:"Impuesto compuesto",percent:"Porcentaje",action:"Acci\xF3n",tax_setting_description:"Habil\xEDtelo si desea agregar impuestos a art\xEDculos de factura de forma individual. Por defecto, los impuestos se agregan directamente a la factura.",created_message:"Tipo de impuesto creado con \xE9xito",updated_message:"Tipo de impuesto actualizado correctamente",deleted_message:"Tipo de impuesto eliminado correctamente",confirm_delete:"No podr\xE1 recuperar este tipo de impuesto",already_in_use:"El impuesto ya est\xE1 en uso."},expense_category:{title:"Categor\xEDas de gastos",action:"Acci\xF3n",description:"Se requieren categor\xEDas para agregar entradas de gastos. Puede Agregar o Eliminar estas categor\xEDas seg\xFAn su preferencia.",add_new_category:"A\xF1adir nueva categoria",add_category:"A\xF1adir categor\xEDa",edit_category:"Editar categoria",category_name:"nombre de la categor\xEDa",category_description:"Descripci\xF3n",created_message:"Categor\xEDa de gastos creada con \xE9xito",deleted_message:"Categor\xEDa de gastos eliminada correctamente",updated_message:"Categor\xEDa de gastos actualizada con \xE9xito",confirm_delete:"No podr\xE1 recuperar esta categor\xEDa de gastos",already_in_use:"La categor\xEDa ya est\xE1 en uso."},preferences:{currency:"Moneda",default_language:"Idioma predeterminado",time_zone:"Zona horaria",fiscal_year:"A\xF1o financiero",date_format:"Formato de fecha",discount_setting:"Ajuste de descuento",discount_per_item:"Descuento por art\xEDculo",discount_setting_description:"Habil\xEDtelo si desea agregar Descuento a art\xEDculos de factura individuales. Por defecto, los descuentos se agregan directamente a la factura.",save:"Guardar",preference:"Preferencia | Preferencias",general_settings:"Preferencias predeterminadas para el sistema.",updated_message:"Preferencias actualizadas exitosamente",select_language:"seleccione el idioma",select_time_zone:"selecciona la zona horaria",select_date_format:"Seleccionar formato de fecha",select_financial_year:"seleccione a\xF1o financiero"},update_app:{title:"Actualizar aplicaci\xF3n",description:"actualizar la descripci\xF3n de la aplicaci\xF3n",check_update:"Buscar actualizaciones",avail_update:"Nueva actualizaci\xF3n disponible",next_version:"Pr\xF3xima versi\xF3n",requirements:"Requisitos",update:"Actualizar",update_progress:"Actualizaci\xF3n en progreso...",progress_text:"Solo tomar\xE1 unos minutos. No actualice la pantalla ni cierre la ventana antes de que finalice la actualizaci\xF3n.",update_success:"\xA1La aplicaci\xF3n ha sido actualizada! Espere mientras la ventana de su navegador se vuelve a cargar autom\xE1ticamente.",latest_message:"\xA1Actualizaci\xF3n no disponible! Est\xE1s en la \xFAltima versi\xF3n.",current_version:"Versi\xF3n actual",download_zip_file:"Descargar archivo ZIP",unzipping_package:"Descomprimir paquete",copying_files:"Copiando documentos",running_migrations:"Ejecutar migraciones",finishing_update:"Actualizaci\xF3n final",update_failed:"Actualizaci\xF3n fallida",update_failed_text:"\xA1Lo siento! Su actualizaci\xF3n fall\xF3 el: {step} paso"},backup:{title:"Copia de seguridad | Copias de seguridad",description:"La copia de seguridad es un archivo comprimido zip que contiene todos los archivos en los directorios que especifiques junto con tu base de datos",new_backup:"Agregar nueva copia de seguridad",create_backup:"Crear copia de seguridad",select_backup_type:"Seleccione Tipo de Copia de Seguridad",backup_confirm_delete:"No podr\xE1 recuperar esta copia de seguridad",path:"ruta",new_disk:"Nuevo Disco",created_at:"creado el",size:"tama\xF1o",dropbox:"dropbox",local:"local",healthy:"saludable",amount_of_backups:"cantidad de copias de seguridad",newest_backups:"copias de seguridad m\xE1s recientes",used_storage:"almacenamiento utilizado",select_disk:"Seleccionar Disco",action:"Acci\xF3n",deleted_message:"Copia de seguridad eliminada exitosamente",created_message:"Copia de seguridad creada satisfactoriamente",invalid_disk_credentials:"Credencial no v\xE1lida del disco seleccionado"},disk:{title:"Disco de archivos | Discos de archivos",description:"Por defecto, Crater utilizar\xE1 su disco local para guardar copias de seguridad, avatar y otros archivos de imagen. Puede configurar varios controladores de disco como DigitalOcean, S3 y Dropbox seg\xFAn sus preferencias.",created_at:"creado el",dropbox:"dropbox",name:"Nombre",driver:"Controlador",disk_type:"Tipo",disk_name:"Nombre del disco",new_disk:"Agregar nuevo disco",filesystem_driver:"Controlador del sistema de archivos",local_driver:"controlador local",local_root:"ra\xEDz local",public_driver:"Controlador p\xFAblico",public_root:"Ra\xEDz p\xFAblica",public_url:"URL p\xFAblica",public_visibility:"Visibilidad p\xFAblica",media_driver:"Controlador multimedia",media_root:"Ra\xEDz multimedia",aws_driver:"Controlador AWS",aws_key:"Clave AWS",aws_secret:"Secreto AWS",aws_region:"Regi\xF3n de AWS",aws_bucket:"Cubo AWS",aws_root:"Ra\xEDz AWS",do_spaces_type:"Hacer Espacios tipo",do_spaces_key:"Disponer espacios",do_spaces_secret:"Disponer espacios secretos",do_spaces_region:"Disponer regi\xF3n de espacios",do_spaces_bucket:"Disponer espacios",do_spaces_endpoint:"Disponer espacios extremos",do_spaces_root:"Disponer espacios en la ra\xEDz",dropbox_type:"Tipo de Dropbox",dropbox_token:"Token de DropBox",dropbox_key:"Clave Dropbox",dropbox_secret:"Dropbox Secret",dropbox_app:"Aplicaci\xF3n Dropbox",dropbox_root:"Ra\xEDz Dropbox",default_driver:"Controlador por defecto",is_default:"ES PREDETERMINADO",set_default_disk:"Establecer disco predeterminado",success_set_default_disk:"Disco establecido correctamente como predeterminado",save_pdf_to_disk:"Guardar PDFs a disco",disk_setting_description:" Habilite esto, si desea guardar autom\xE1ticamente una copia en formato pdf de cada factura, c\xE1lculo y recibo de pago en su disco predeterminado. Al activar esta opci\xF3n, se reducir\xE1 el tiempo de carga al visualizar los archivos PDFs.",select_disk:"Seleccionar Disco",disk_settings:"Configuraci\xF3n del disco",confirm_delete:"Los archivos y carpetas existentes en el disco especificado no se ver\xE1n afectados, pero su configuraci\xF3n de disco ser\xE1 eliminada de Crater",action:"Acci\xF3n",edit_file_disk:"Editar disco de ficheros",success_create:"Disco a\xF1adido satisfactoriamente",success_update:"Disco actualizado satisfactoriamente",error:"Error al a\xF1adir disco",deleted_message:"Disco de archivo borrado correctamente",disk_variables_save_successfully:"Disco configurado correctamente",disk_variables_save_error:"La configuraci\xF3n del disco ha fallado.",invalid_disk_credentials:"Credencial no v\xE1lida del disco seleccionado"}},ko={account_info:"Informaci\xF3n de la cuenta",account_info_desc:"Los detalles a continuaci\xF3n se utilizar\xE1n para crear la cuenta principal de administrador. Tambi\xE9n puede cambiar los detalles en cualquier momento despu\xE9s de iniciar sesi\xF3n.",name:"Nombre",email:"Correo",password:"Contrase\xF1a",confirm_password:"Confirmar contrase\xF1a",save_cont:"Guardar y continuar",company_info:"Informaci\xF3n de la empresa",company_info_desc:"Esta informaci\xF3n se mostrar\xE1 en las facturas. Tenga en cuenta que puede editar esto m\xE1s adelante en la p\xE1gina de configuraci\xF3n.",company_name:"nombre de empresa",company_logo:"Logo de la compa\xF1\xEDa",logo_preview:"Vista previa del logotipo",preferences:"Preferencias",preferences_desc:"Preferencias predeterminadas para el sistema.",country:"Pa\xEDs",state:"Estado",city:"Ciudad",address:"Direcci\xF3n",street:"Calle1 | Calle2",phone:"Tel\xE9fono",zip_code:"C\xF3digo postal",go_back:"Regresa",currency:"Moneda",language:"Idioma",time_zone:"Zona horaria",fiscal_year:"A\xF1o financiero",date_format:"Formato de fecha",from_address:"Desde la Direcci\xF3n",username:"Nombre de usuario",next:"Siguiente",continue:"Continuar",skip:"Saltar",database:{database:"URL del sitio y base de datose",connection:"Conexi\xF3n de base de datos",host:"Host de la base de datos",port:"Puerto de la base de datos",password:"Contrase\xF1a de la base de datos",app_url:"URL de la aplicaci\xF3n",app_domain:"Dominio",username:"Nombre de usuario de la base de datos",db_name:"Nombre de la base de datos",db_path:"Ruta de la base de datos",desc:"Cree una base de datos en su servidor y establezca las credenciales utilizando el siguiente formulario."},permissions:{permissions:"Permisos",permission_confirm_title:"\xBFEst\xE1s seguro de que quieres continuar?",permission_confirm_desc:"Error de verificaci\xF3n de permisos de carpeta",permission_desc:"A continuaci\xF3n se muestra la lista de permisos de carpeta necesarios para que la aplicaci\xF3n funcione. Si la verificaci\xF3n de permisos falla, aseg\xFArese de actualizar los permisos de su carpeta."},mail:{host:"Host de correo",port:"Puerto de correo",driver:"Conductor de correo",secret:"Secreto",mailgun_secret:"Mailgun Secreto",mailgun_domain:"Dominio",mailgun_endpoint:"Mailgun endpoint",ses_secret:"Secreto SES",ses_key:"Clave SES",password:"Contrase\xF1a de correo",username:"Nombre de usuario de correo",mail_config:"Configuraci\xF3n de correo",from_name:"Del nombre del correo",from_mail:"Desde la direcci\xF3n de correo",encryption:"Cifrado de correo",mail_config_desc:"Los detalles a continuaci\xF3n se utilizar\xE1n para actualizar el entorno de correo. Tambi\xE9n puede cambiar los detalles en cualquier momento despu\xE9s de iniciar sesi\xF3n."},req:{system_req:"Requisitos del sistema",php_req_version:"Php (versi\xF3n {version} necesario)",check_req:"Consultar requisitos",system_req_desc:"Crater tiene algunos requisitos de servidor. Aseg\xFArese de que su servidor tenga la versi\xF3n de php requerida y todas las extensiones mencionadas a continuaci\xF3n."},errors:{migrate_failed:"La migraci\xF3n fall\xF3",database_variables_save_error:"No se puede conectar a la base de datos con los valores proporcionados.",mail_variables_save_error:"La configuraci\xF3n del correo electr\xF3nico ha fallado.",connection_failed:"Conexi\xF3n de base de datos fallida",database_should_be_empty:"La base de datos debe estar vac\xEDa"},success:{mail_variables_save_successfully:"Correo electr\xF3nico configurado correctamente",database_variables_save_successfully:"Base de datos configurada con \xE9xito."}},wo={invalid_phone:"Numero de telefono invalido",invalid_url:"URL no v\xE1lida (por ejemplo, http://www.crater.com)",invalid_domain_url:"URL no v\xE1lida (por ejemplo, crater.com)",required:"Se requiere campo",email_incorrect:"Email incorrecto.",email_already_taken:"Este email ya est\xE1 en uso",email_does_not_exist:"El usuario con el correo electr\xF3nico dado no existe",item_unit_already_taken:"El nombre de la unidad ya est\xE1 en uso",payment_mode_already_taken:"El modo de pago ya ha sido tomado",send_reset_link:"Enviar enlace de restablecimiento",not_yet:"\xBFA\xFAn no? Env\xEDalo de nuevo",password_min_length:"La contrase\xF1a debe contener {count} caracteres",name_min_length:"El nombre debe tener al menos {count} letras.",enter_valid_tax_rate:"Ingrese una tasa impositiva v\xE1lida",numbers_only:"Solo n\xFAmeros.",characters_only:"Solo caracteres.",password_incorrect:"Las contrase\xF1as deben ser id\xE9nticas",password_length:"La contrase\xF1a debe tener 5 caracteres de longitud.",qty_must_greater_than_zero:"La cantidad debe ser mayor que cero.",price_greater_than_zero:"El precio debe ser mayor que cero.",payment_greater_than_zero:"El pago debe ser mayor que cero.",payment_greater_than_due_amount:"El pago ingresado es mayor a la cantidad debida de esta factura.",quantity_maxlength:"La cantidad no debe ser mayor de 20 d\xEDgitos.",price_maxlength:"El precio no debe ser mayor de 20 d\xEDgitos.",price_minvalue:"El precio debe ser mayor que 0 d\xEDgitos",amount_maxlength:"La cantidad no debe ser mayor de 20 d\xEDgitos.",amount_minvalue:"La cantidad debe ser mayor que 0 d\xEDgitos",description_maxlength:"La descripci\xF3n no debe tener m\xE1s de 255 caracteres.",subject_maxlength:"El asunto no debe tener m\xE1s de 100 caracteres.",message_maxlength:"El mensaje no debe tener m\xE1s de 255 caracteres.",maximum_options_error:"M\xE1ximo de {max} opciones seleccionadas. Primero elimine una opci\xF3n seleccionada para seleccionar otra.",notes_maxlength:"Las notas no deben tener m\xE1s de 255 caracteres.",address_maxlength:"La direcci\xF3n no debe tener m\xE1s de 255 caracteres.",ref_number_maxlength:"El n\xFAmero de referencia no debe tener m\xE1s de 255 caracteres.",prefix_maxlength:"El prefijo no debe tener m\xE1s de 5 caracteres.",something_went_wrong:"Algo fue mal"},xo="Presupuestar",zo="N\xFAmero de Presupuesto",So="Fecha presupuesto",jo="Fecha de caducidad",Po="Factura",Do="Numero de factura",Co="Fecha de la factura",Ao="Fecha final",Eo="Notas",No="Art\xEDculos",To="Cantidad",Io="Precio",$o="Descuento",Ro="Cantidad",Fo="Subtotal",Mo="Total",Vo="Payment",Bo="RECIBO DE PAGO",Oo="Fecha de pago",Lo="Numero de pago",Uo="Modo de pago",Ko="Monto Recibido",qo="INFORME DE GASTOS",Zo="GASTO TOTAL",Wo="INFORME PERDIDAS & GANANCIAS",Ho="Sales Customer Report",Go="Sales Item Report",Yo="Tax Summary Report",Jo="INGRESO",Xo="GANANCIA NETA",Qo="Informe de ventas: Por cliente",er="VENTAS TOTALES",tr="Informe de ventas: por art\xEDculo",ar="INFORME DE IMPUESTOS",sr="TOTAL IMPUESTOS",nr="Tipos de impuestos",ir="Gastos",or="Cobrar a,",rr="Enviar a,",dr="Recibido desde:",lr="Imposto";var cr={navigation:io,general:oo,dashboard:ro,tax_types:lo,global_search:co,customers:_o,items:uo,estimates:mo,invoices:po,payments:go,expenses:fo,login:ho,users:vo,reports:yo,settings:bo,wizard:ko,validation:wo,pdf_estimate_label:xo,pdf_estimate_number:zo,pdf_estimate_date:So,pdf_estimate_expire_date:jo,pdf_invoice_label:Po,pdf_invoice_number:Do,pdf_invoice_date:Co,pdf_invoice_due_date:Ao,pdf_notes:Eo,pdf_items_label:No,pdf_quantity_label:To,pdf_price_label:Io,pdf_discount_label:$o,pdf_amount_label:Ro,pdf_subtotal:Fo,pdf_total:Mo,pdf_payment_label:Vo,pdf_payment_receipt_label:Bo,pdf_payment_date:Oo,pdf_payment_number:Lo,pdf_payment_mode:Uo,pdf_payment_amount_received_label:Ko,pdf_expense_report_label:qo,pdf_total_expenses_label:Zo,pdf_profit_loss_label:Wo,pdf_sales_customers_label:Ho,pdf_sales_items_label:Go,pdf_tax_summery_label:Yo,pdf_income_label:Jo,pdf_net_profit_label:Xo,pdf_customer_sales_report:Qo,pdf_total_sales_label:er,pdf_item_sales_label:tr,pdf_tax_report_label:ar,pdf_total_tax_label:sr,pdf_tax_types_label:nr,pdf_expenses_label:ir,pdf_bill_to:or,pdf_ship_to:rr,pdf_received_from:dr,pdf_tax_label:lr};const _r={dashboard:"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",items:"\u0627\u0644\u0623\u0635\u0646\u0627\u0641",invoices:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",expenses:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",estimates:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",payments:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",reports:"\u0627\u0644\u062A\u0642\u0627\u0631\u064A\u0631",settings:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",logout:"\u062E\u0631\u0648\u062C",users:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646"},ur={add_company:"\u0623\u0636\u0641 \u0634\u0631\u0643\u0629",view_pdf:"\u0639\u0631\u0636 PDF",copy_pdf_url:"Copy PDF Url",download_pdf:"\u062A\u0646\u0632\u064A\u0644 PDF",save:"\u062D\u0641\u0638",create:"\u062E\u0644\u0642",cancel:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",update:"\u062A\u062D\u062F\u064A\u062B",deselect:"Deselect",download:"\u062A\u0646\u0632\u064A\u0644",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",to_date:"\u0625\u0644\u0649 \u062A\u0627\u0631\u064A\u062E",from:"\u0645\u0646",to:"\u0625\u0644\u0649",sort_by:"\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628",ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",descending:"\u062A\u0646\u0627\u0632\u0644\u064A",subject:"\u0645\u0648\u0636\u0648\u0639",body:"\u0627\u0644\u062C\u0633\u0645",message:"\u0631\u0633\u0627\u0644\u0629",send:"\u0625\u0631\u0633\u0627\u0644",go_back:"\u0625\u0644\u0649 \u0627\u0644\u062E\u0644\u0641",back_to_login:"\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644\u061F",home:"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",filter:"\u062A\u0635\u0641\u064A\u0629",delete:"\u062D\u0630\u0641",edit:"\u062A\u0639\u062F\u064A\u0644",view:"\u0639\u0631\u0636",add_new_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641 \u062C\u062F\u064A\u062F",clear_all:"\u0645\u0633\u062D \u0627\u0644\u0643\u0644",showing:"\u0639\u0631\u0636",of:"\u0645\u0646",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",subtotal:"\u0627\u0644\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0641\u0631\u0639\u064A",discount:"\u062E\u0635\u0645",fixed:"\u062B\u0627\u0628\u062A",percentage:"\u0646\u0633\u0628\u0629",tax:"\u0636\u0631\u064A\u0628\u0629",total_amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",bill_to:"\u0645\u0637\u0644\u0648\u0628 \u0645\u0646",ship_to:"\u064A\u0634\u062D\u0646 \u0625\u0644\u0649",due:"\u0648\u0627\u062C\u0628\u0629 \u0627\u0644\u0633\u062F\u0627\u062F",draft:"\u0645\u0633\u0648\u062F\u0629",sent:"\u0645\u0631\u0633\u0644\u0629",all:"\u0627\u0644\u0643\u0644",select_all:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0644",choose_file:"\u0627\u0636\u063A\u0637 \u0647\u0646\u0627 \u0644\u0627\u062E\u062A\u064A\u0627\u0631 \u0645\u0644\u0641",choose_template:"\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0642\u0627\u0644\u0628",choose:"\u0627\u062E\u062A\u0631",remove:"\u0625\u0632\u0627\u0644\u0629",powered_by:"\u062A\u0635\u0645\u064A\u0645",bytefury:"\u0628\u0627\u062A\u0631\u0641\u0648\u0631\u064A",select_a_status:"\u0627\u062E\u062A\u0631 \u0627\u0644\u062D\u0627\u0644\u0629",select_a_tax:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",search:"\u0628\u062D\u062B",are_you_sure:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F?",list_is_empty:"\u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0641\u0627\u0631\u063A\u0629.",no_tax_found:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0636\u0631\u064A\u0628\u0629!",four_zero_four:"404",you_got_lost:"\u0639\u0641\u0648\u0627\u064B! \u064A\u0628\u062F\u0648 \u0623\u0646\u0643 \u0642\u062F \u062A\u0647\u062A!",go_home:"\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",test_mail_conf:"\u0627\u062E\u062A\u0628\u0627\u0631 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F",send_mail_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0628\u0646\u062C\u0627\u062D",setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0628\u0646\u062C\u0627\u062D",select_state:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",select_country:"\u0627\u062E\u062A\u0631 \u0627\u0644\u062F\u0648\u0644\u0629",select_city:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u062F\u064A\u0646\u0629",street_1:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 1",street_2:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 2",action_failed:"\u0641\u0634\u0644\u062A \u0627\u0644\u0639\u0645\u0644\u064A\u0629",retry:"\u0623\u0639\u062F \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",choose_note:"\u0627\u062E\u062A\u0631 \u0645\u0644\u0627\u062D\u0638\u0629",no_note_found:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",insert_note:"\u0623\u062F\u062E\u0644 \u0645\u0644\u0627\u062D\u0638\u0629"},mr={select_year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629",cards:{due_amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",invoices:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",estimates:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A"},chart_info:{total_sales:"\u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",total_receipts:"\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u062F\u062E\u0644",total_expense:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",net_income:"\u0635\u0627\u0641\u064A \u0627\u0644\u062F\u062E\u0644",year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629"},monthly_chart:{title:"\u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A \u0648\u0627\u0644\u0646\u0641\u0642\u0627\u062A"},recent_invoices_card:{title:"\u0641\u0648\u0627\u062A\u064A\u0631 \u0645\u0633\u062A\u062D\u0642\u0629",due_on:"\u0645\u0633\u062A\u062D\u0642\u0629 \u0641\u064A",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",view_all:"\u0639\u0631\u0636 \u0627\u0644\u0643\u0644"},recent_estimate_card:{title:"\u0623\u062D\u062F\u062B \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",view_all:"\u0639\u0631\u0636 \u0627\u0644\u0643\u0644"}},pr={name:"\u0627\u0644\u0627\u0633\u0645",description:"\u0627\u0644\u0648\u0635\u0641",percent:"\u0646\u0633\u0628\u0647 \u0645\u0626\u0648\u064A\u0647",compound_tax:"\u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0627\u0644\u0645\u0631\u0643\u0628\u0629"},gr={search:"\u0628\u062D\u062B...",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",users:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",no_results_found:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0646\u062A\u0627\u0626\u062C"},fr={title:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",add_customer:"\u0625\u0636\u0627\u0641\u0629 \u0639\u0645\u064A\u0644",contacts_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0639\u0645\u0644\u0627\u0621",name:"\u0627\u0644\u0627\u0633\u0645",mail:"\u0627\u0644\u0628\u0631\u064A\u062F",statement:"\u0627\u0644\u0628\u064A\u0627\u0646",display_name:"\u0627\u0633\u0645 \u0627\u0644\u0639\u0631\u0636",primary_contact_name:"\u0627\u0633\u0645 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",contact_name:"\u0627\u0633\u0645 \u062A\u0648\u0627\u0635\u0644 \u0622\u062E\u0631",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",website:"\u0645\u0648\u0642\u0639 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A",overview:"\u0627\u0633\u062A\u0639\u0631\u0627\u0636",enable_portal:"Enable Portal",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",zip_code:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",added_on:"\u0623\u0636\u064A\u0641 \u0641\u064A",action:"\u0625\u062C\u0631\u0627\u0621",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",street_number:"\u0631\u0642\u0645 \u0627\u0644\u0634\u0627\u0631\u0639",primary_currency:"\u0627\u0644\u0639\u0645\u0644\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",description:"\u0627\u0644\u0648\u0635\u0641",add_new_customer:"\u0625\u0636\u0627\u0641\u0629 \u0639\u0645\u064A\u0644 \u062C\u062F\u064A\u062F",save_customer:"\u062D\u0641\u0638 \u0627\u0644\u0639\u0645\u064A\u0644",update_customer:"\u062A\u062D\u062F\u064A\u062B \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0639\u0645\u064A\u0644",customer:"\u0639\u0645\u064A\u0644 | \u0639\u0645\u0644\u0627\u0621",new_customer:"\u0639\u0645\u064A\u0644 \u062C\u062F\u064A\u062F",edit_customer:"\u062A\u0639\u062F\u064A\u0644 \u0639\u0645\u064A\u0644",basic_info:"\u0645\u0639\u0644\u0648\u0627\u062A \u0623\u0633\u0627\u0633\u064A\u0629",billing_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u062A\u0631\u0629",shipping_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646",copy_billing_address:"\u0646\u0633\u062E \u0645\u0646 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u062A\u0631\u0629",no_customers:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0639\u0645\u0644\u0627\u0621 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",no_customers_found:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u0621!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"\u0633\u0648\u0641 \u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0639\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0639\u0645\u0644\u0627\u0621.",primary_display_name:"\u0627\u0633\u0645 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",select_currency:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0639\u0645\u0644\u0629",select_a_customer:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0639\u0645\u064A\u0644",type_or_click:"\u0627\u0643\u062A\u0628 \u0623\u0648 \u0627\u0636\u063A\u0637 \u0644\u0644\u0627\u062E\u062A\u064A\u0627\u0631",new_transaction:"\u0645\u0639\u0627\u0645\u0644\u0629 \u062C\u062F\u064A\u062F\u0629",no_matching_customers:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0639\u0645\u0644\u0627\u0621 \u0645\u0637\u0627\u0628\u0642\u064A\u0646!",phone_number:"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641",create_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0625\u0646\u0634\u0627\u0621",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0630\u0627 \u0627\u0644\u0639\u0645\u064A\u0644 \u0648\u062C\u0645\u064A\u0639 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0648\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0648\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629. | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0624\u0644\u0627\u0621 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0648\u062C\u0645\u064A\u0639 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0648\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0648\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629.",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0639\u0645\u064A\u0644 \u0628\u0646\u062C\u0627\u062D"},hr={title:"\u0627\u0644\u0623\u0635\u0646\u0627\u0641",items_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0623\u0635\u0646\u0627\u0641",name:"\u0627\u0644\u0627\u0633\u0645",unit:"\u0627\u0644\u0648\u062D\u062F\u0629",description:"\u0627\u0644\u0648\u0635\u0641",added_on:"\u0623\u0636\u064A\u0641 \u0641\u064A",price:"\u0627\u0644\u0633\u0639\u0631",date_of_creation:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0625\u0646\u0634\u0627\u0621",not_selected:"No item selected",action:"\u0625\u062C\u0631\u0627\u0621",add_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641",save_item:"\u062D\u0641\u0638 \u0627\u0644\u0635\u0646\u0641",update_item:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0635\u0646\u0641",item:"\u0635\u0646\u0641 | \u0623\u0635\u0646\u0627\u0641",add_new_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641 \u062C\u062F\u064A\u062F",new_item:"\u062C\u062F\u064A\u062F \u0635\u0646\u0641",edit_item:"\u062A\u062D\u062F\u064A\u062B \u0635\u0646\u0641",no_items:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0623\u0635\u0646\u0627\u0641 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_items:"\u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0633\u0648\u0641 \u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0623\u0635\u0646\u0627\u0641.",select_a_unit:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0648\u062D\u062F\u0629",taxes:"\u0627\u0644\u0636\u0631\u0627\u0626\u0628",item_attached_message:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u062D\u0630\u0641 \u0627\u0644\u0635\u0646\u0641 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0627 \u0627\u0644\u0635\u0646\u0641 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u0623\u0635\u0646\u0627\u0641",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0635\u0646\u0641 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0635\u0646\u0641 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0635\u0646\u0641 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0623\u0635\u0646\u0627\u0641 \u0628\u0646\u062C\u0627\u062D"},vr={title:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",estimate:"\u062A\u0642\u062F\u064A\u0631 | \u062A\u0642\u062F\u064A\u0631\u0627\u062A",estimates_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",days:"{days} \u0623\u064A\u0627\u0645",months:"{months} \u0623\u0634\u0647\u0631",years:"{years} \u0633\u0646\u0648\u0627\u062A",all:"\u0627\u0644\u0643\u0644",paid:"\u0645\u062F\u0641\u0648\u0639",unpaid:"\u063A\u064A\u0631 \u0645\u062F\u0641\u0648\u0639",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",ref_no:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639.",number:"\u0627\u0644\u0631\u0642\u0645",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",partially_paid:"\u0645\u062F\u0641\u0648\u0639 \u062C\u0632\u0626\u064A\u0627",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",discount:"\u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",estimate_number:"\u0631\u0642\u0645 \u062A\u0642\u062F\u064A\u0631",ref_number:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639",contact:"\u062A\u0648\u0627\u0635\u0644",add_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641",date:"\u062A\u0627\u0631\u064A\u062E",due_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",expiry_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0629",status:"\u0627\u0644\u062D\u0627\u0644\u0629",add_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",tax:"\u0636\u0631\u064A\u0628\u0629",estimate_template:"\u0642\u0627\u0644\u0628",convert_to_invoice:"\u062A\u062D\u0648\u064A\u0644 \u0625\u0644\u0649 \u0641\u0627\u062A\u0648\u0631\u0629",mark_as_sent:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644",send_estimate:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",resend_estimate:"\u0625\u0639\u0627\u062F\u0629 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",record_payment:"\u062A\u0633\u062C\u064A\u0644 \u0645\u062F\u0641\u0648\u0627\u062A",add_estimate:"\u0625\u0636\u0627\u0641\u0629 \u062A\u0642\u062F\u064A\u0631",save_estimate:"\u062D\u0641\u0638 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_conversion:"\u0647\u0644 \u062A\u0631\u064A\u062F \u062A\u062D\u0648\u064A\u0644 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0625\u0644\u0649 \u0641\u0627\u062A\u0648\u0631\u0629\u061F",conversion_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",confirm_send_estimate:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0625\u0644\u0649 \u0627\u0644\u0639\u0645\u064A\u0644",confirm_mark_as_sent:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_mark_as_accepted:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0642\u0628\u0648\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_mark_as_rejected:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0641\u0648\u0636 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",no_matching_estimates:"\u0644\u0627 \u064A\u0648\u062C\u062F \u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629!",mark_as_sent_successfully:"\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644 \u0628\u0646\u062C\u0627\u062D",send_estimate_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",errors:{required:"\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628"},accepted:"\u0645\u0642\u0628\u0648\u0644",rejected:"Rejected",sent:"\u0645\u0631\u0633\u0644",draft:"\u0645\u0633\u0648\u062F\u0629",declined:"\u0645\u0631\u0641\u0648\u0636",new_estimate:"\u062A\u0642\u062F\u064A\u0631 \u062C\u062F\u064A\u062F",add_new_estimate:"\u0625\u0636\u0627\u0641\u0629 \u062A\u0642\u062F\u064A\u0631 \u062C\u062F\u064A\u062F",update_Estimate:"\u062A\u062D\u062F\u064A\u062B \u062A\u0642\u062F\u064A\u0631",edit_estimate:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",items:"\u0627\u0644\u0623\u0635\u0646\u0627\u0641",Estimate:"\u062A\u0642\u062F\u064A\u0631 | \u062A\u0642\u062F\u064A\u0631\u0627\u062A",add_new_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629 \u062C\u062F\u064A\u062F\u0629",no_estimates:"\u0644\u0627 \u064A\u0648\u062C\u062F \u062A\u0642\u062F\u064A\u0631\u0627\u062A \u062D\u0627\u0644\u064A\u0627\u064B!",list_of_estimates:"\u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0633\u0648\u0641 \u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A.",mark_as_rejected:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0641\u0648\u0636",mark_as_accepted:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0642\u0631\u0648\u0621",marked_as_accepted_message:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0643\u0645\u0642\u0628\u0648\u0644",marked_as_rejected_message:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0643\u0645\u0631\u0641\u0648\u0636",confirm_delete:"\u0644\u0646 \u062A\u0633\u062A\u0637\u064A\u0639 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 | \u0644\u0646 \u062A\u0633\u062A\u0637\u064A\u0639 \u0625\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0647 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0628\u0646\u062C\u0627\u062D",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!",item:{title:"\u0627\u0633\u0645 \u0627\u0644\u0635\u0646\u0641",description:"\u0627\u0644\u0648\u0635\u0641",quantity:"\u0627\u0644\u0643\u0645\u064A\u0629",price:"\u0627\u0644\u0633\u0639\u0631",discount:"\u0627\u0644\u062E\u0635\u0645",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",total_discount:"\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",tax:"\u0627\u0644\u0636\u0631\u064A\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",select_an_item:"\u0627\u0643\u062A\u0628 \u0623\u0648 \u0627\u062E\u062A\u0631 \u0627\u0644\u0635\u0646\u0641",type_item_description:"\u0627\u0643\u062A\u0628 \u0648\u0635\u0641 \u0627\u0644\u0635\u0646\u0641 (\u0627\u062E\u062A\u064A\u0627\u0631\u064A)"}},yr={title:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",invoices_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",days:"{days} \u0623\u064A\u0627\u0645",months:"{months} \u0623\u0634\u0647\u0631",years:"{years} \u0633\u0646\u0648\u0627\u062A",all:"\u0627\u0644\u0643\u0644",paid:"\u0645\u062F\u0641\u0648\u0639",unpaid:"\u063A\u064A\u0631 \u0645\u062F\u0641\u0648\u0639",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",paid_status:"\u062D\u0627\u0644\u0629 \u0627\u0644\u062F\u0641\u0639",ref_no:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639.",number:"\u0627\u0644\u0631\u0642\u0645",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",partially_paid:"\u0645\u062F\u0641\u0648\u0639 \u062C\u0632\u0626\u064A\u0627\u064B",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",discount:"\u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",invoice:"\u0641\u0627\u062A\u0648\u0631\u0629 | \u0641\u0648\u0627\u062A\u064A\u0631",invoice_number:"\u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",ref_number:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639",contact:"\u062A\u0648\u0627\u0635\u0644",add_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",due_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",status:"\u0627\u0644\u062D\u0627\u0644\u0629",add_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",view:"\u0639\u0631\u0636",send_invoice:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",resend_invoice:"\u0625\u0639\u0627\u062F\u0629 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",invoice_template:"\u0642\u0627\u0644\u0628 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",template:"\u0642\u0627\u0644\u0628",mark_as_sent:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644",confirm_send_invoice:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0623\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0625\u0644\u0649 \u0627\u0644\u0639\u0645\u064A\u0644",invoice_mark_as_sent:"\u0633\u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0643\u0645\u0631\u0633\u0644\u0629",confirm_send:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0623\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0625\u0644\u0649 \u0627\u0644\u0639\u0645\u064A\u0644",invoice_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",record_payment:"\u062A\u0633\u062C\u064A\u0644 \u0645\u062F\u0641\u0648\u0639\u0627\u062A",add_new_invoice:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629",update_expense:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0635\u0631\u0648\u0641\u0627\u062A",edit_invoice:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",new_invoice:"\u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629",save_invoice:"\u062D\u0641\u0638 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",update_invoice:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",add_new_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629 \u062C\u062F\u064A\u062F\u0629",no_invoices:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0641\u0648\u0627\u062A\u064A\u0631 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_invoices:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 .",select_invoice:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",no_matching_invoices:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0641\u0648\u0627\u062A\u064A\u0631 \u0645\u0637\u0627\u0628\u0642\u0629!",mark_as_sent_successfully:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0643\u0645\u0631\u0633\u0644\u0629 \u0628\u0646\u062C\u0627\u062D",invoice_sent_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",cloned_successfully:"\u062A\u0645 \u0627\u0633\u062A\u0646\u0633\u0627\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",clone_invoice:"\u0627\u0633\u062A\u0646\u0633\u0627\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",confirm_clone:"\u0633\u064A\u062A\u0645 \u0627\u0633\u062A\u0646\u0633\u0627\u062E \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0641\u064A \u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629",item:{title:"\u0627\u0633\u0645 \u0627\u0644\u0635\u0646\u0641",description:"\u0627\u0644\u0648\u0635\u0641",quantity:"\u0627\u0644\u0643\u0645\u064A\u0629",price:"\u0627\u0644\u0633\u0639\u0631",discount:"\u0627\u0644\u062E\u0635\u0645",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",total_discount:"\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",tax:"\u0627\u0644\u0636\u0631\u064A\u0628\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",select_an_item:"\u0627\u0643\u062A\u0628 \u0623\u0648 \u0627\u0646\u0642\u0631 \u0644\u0627\u062E\u062A\u064A\u0627\u0631 \u0635\u0646\u0641",type_item_description:"\u0648\u0635\u0641 \u0627\u0644\u0635\u0646\u0641 (\u0627\u062E\u062A\u064A\u0627\u0631\u064A)"},confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0639\u062F \u0647\u0630\u0647 \u0627\u0644\u0625\u062C\u0631\u0627\u0621 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0628\u0639\u062F \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",marked_as_sent_message:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!",invalid_due_amount_message:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0646\u0647\u0627\u0626\u064A \u0644\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0644\u0627 \u064A\u0645\u0643\u0646 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0642\u0644 \u0645\u0646 \u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628 \u0644\u0647\u0627. \u0631\u062C\u0627\u0621\u0627\u064B \u062D\u062F\u062B \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0623\u0648 \u0642\u0645 \u0628\u062D\u0630\u0641 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u0631\u062A\u0628\u0637\u0629 \u0628\u0647\u0627 \u0644\u0644\u0627\u0633\u062A\u0645\u0631\u0627\u0631."},br={title:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",payments_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",record_payment:"\u062A\u0633\u062C\u064A\u0644 \u062F\u0641\u0639\u0629",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",payment_number:"\u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",payment_mode:"\u0646\u0648\u0639 \u0627\u0644\u062F\u0641\u0639\u0629",invoice:"\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",note:"\u0645\u0644\u0627\u062D\u0638\u0629",add_payment:"\u0625\u0636\u0627\u0641\u0629 \u062F\u0641\u0639\u0629",new_payment:"\u062F\u0641\u0639\u0629 \u062C\u062F\u064A\u062F\u0629",edit_payment:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u062F\u0641\u0639\u0629",view_payment:"\u0639\u0631\u0636 \u0627\u0644\u062F\u0641\u0639\u0629",add_new_payment:"\u0625\u0636\u0627\u0641\u0629 \u062F\u0641\u0639\u0629 \u062C\u062F\u064A\u062F\u0629",send_payment_receipt:"Send Payment Receipt",send_payment:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062F\u0641\u0639\u0629",save_payment:"\u062D\u0641\u0638 \u0627\u0644\u062F\u0641\u0639\u0629",update_payment:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062F\u0641\u0639\u0629",payment:"\u062F\u0641\u0639\u0629 | \u0645\u062F\u0641\u0648\u0639\u0627\u062A",no_payments:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629!",list_of_payments:"\u0633\u0648\u0641 \u062A\u062D\u062A\u0648\u064A \u0647\u0630\u0647 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0639\u0644\u0649 \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631.",select_payment_mode:"\u0627\u062E\u062A\u0631 \u0637\u0631\u064A\u0642\u0629 \u0627\u0644\u062F\u0641\u0639",confirm_mark_as_sent:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_send_payment:"This payment will be sent via email to the customer",send_payment_successfully:"Payment sent successfully",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!",confirm_delete:"\u0644\u0646 \u062A\u0643\u0648\u0646 \u0642\u0627\u062F\u0631 \u0639\u0644\u0649 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u062F\u0641\u0639\u0629 | \u0644\u0646 \u062A\u0643\u0648\u0646 \u0642\u0627\u062F\u0631\u0627\u064B \u0639\u0644\u0649 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0628\u0646\u062C\u0627\u062D",invalid_amount_message:"\u0642\u064A\u0645\u0629 \u0627\u0644\u062F\u0641\u0639\u0629 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D\u0629!"},kr={title:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",expenses_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",select_a_customer:"\u062D\u062F\u062F \u0639\u0645\u064A\u0644\u0627\u064B",expense_title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",contact:"\u062A\u0648\u0627\u0635\u0644",category:"\u0627\u0644\u0641\u0626\u0629",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",expense_date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",description:"\u0627\u0644\u0648\u0635\u0641",receipt:"\u0633\u0646\u062F \u0627\u0644\u0642\u0628\u0636",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",not_selected:"Not selected",note:"\u0645\u0644\u0627\u062D\u0638\u0629",category_id:"\u0631\u0645\u0632 \u0627\u0644\u0641\u0626\u0629",date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0646\u0641\u0642\u0627\u062A",add_expense:"\u0623\u0636\u0641 \u0646\u0641\u0642\u0627\u062A",add_new_expense:"\u0623\u0636\u0641 \u0646\u0641\u0642\u0627\u062A \u062C\u062F\u064A\u062F\u0629",save_expense:"\u062D\u0641\u0638 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",update_expense:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0641\u0642\u0627\u062A",download_receipt:"\u062A\u0646\u0632\u064A\u0644 \u0627\u0644\u0633\u0646\u062F",edit_expense:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",new_expense:"\u0646\u0641\u0642\u0627\u062A \u062C\u062F\u064A\u062F\u0629",expense:"\u0625\u0646\u0641\u0627\u0642 | \u0646\u0641\u0642\u0627\u062A",no_expenses:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0646\u0641\u0642\u0627\u062A \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_expenses:"\u0647\u0630\u0647 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0633\u062A\u062D\u062A\u0648\u064A \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0627 \u0627\u0644\u0625\u0646\u0641\u0627\u0642 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",categories:{categories_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0626\u0627\u062A",title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",name:"\u0627\u0644\u0627\u0633\u0645",description:"\u0627\u0644\u0648\u0635\u0641",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",add_category:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0626\u0645\u0629",new_category:"\u0641\u0626\u0629 \u062C\u062F\u064A\u062F\u0629",category:"\u0641\u0626\u0629 | \u0641\u0626\u0627\u062A",select_a_category:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0641\u0626\u0629"}},wr={email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",forgot_password:"\u0646\u0633\u064A\u062A \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\u061F",or_signIn_with:"\u0623\u0648 \u0633\u062C\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0648\u0627\u0633\u0637\u0629",login:"\u062F\u062E\u0648\u0644",register:"\u062A\u0633\u062C\u064A\u0644",reset_password:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",password_reset_successfully:"\u062A\u0645 \u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0646\u062C\u0627\u062D",enter_email:"\u0623\u062F\u062E\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",enter_password:"\u0623\u0643\u062A\u0628 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",retype_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631"},xr={title:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",users_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646",name:"\u0627\u0633\u0645",description:"\u0648\u0635\u0641",added_on:"\u0648\u0623\u0636\u0627\u0641 \u0641\u064A",date_of_creation:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062E\u0644\u0642",action:"\u0639\u0645\u0644",add_user:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0633\u062A\u062E\u062F\u0645",save_user:"\u062D\u0641\u0638 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",update_user:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",user:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",add_new_user:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0633\u062A\u062E\u062F\u0645 \u062C\u062F\u064A\u062F",new_user:"\u0645\u0633\u062A\u062E\u062F\u0645 \u062C\u062F\u064A\u062F",edit_user:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0639\u0636\u0648",no_users:"\u0644\u0627 \u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_users:"\u0633\u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0639\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646.",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",phone:"\u0647\u0627\u062A\u0641",password:"\u0643\u0644\u0645\u0647 \u0627\u0644\u0633\u0631",user_attached_message:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u062D\u0630\u0641 \u0639\u0646\u0635\u0631 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0630\u0627 \u0627\u0644\u0639\u0646\u0635\u0631 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0624\u0644\u0627\u0621 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D"},zr={title:"\u062A\u0642\u0631\u064A\u0631",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",status:"\u0627\u0644\u062D\u0627\u0644\u0629",paid:"\u0645\u062F\u0641\u0648\u0639",unpaid:"\u063A\u064A\u0631 \u0645\u062F\u0641\u0648\u0639",download_pdf:"\u062A\u0646\u0632\u064A\u0644 PDF",view_pdf:"\u0639\u0631\u0636 PDF",update_report:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0642\u0631\u064A\u0631",report:"\u062A\u0642\u0631\u064A\u0631 | \u062A\u0642\u0627\u0631\u064A\u0631",profit_loss:{profit_loss:"\u0627\u0644\u062E\u0633\u0627\u0626\u0631 \u0648\u0627\u0644\u0623\u0631\u0628\u0627\u062D",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E"},sales:{sales:"\u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",report_type:"\u0646\u0648\u0639 \u0627\u0644\u062A\u0642\u0631\u064A\u0631"},taxes:{taxes:"\u0627\u0644\u0636\u0631\u0627\u0626\u0628",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E"},errors:{required:"\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628"},invoices:{invoice:"\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",invoice_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",due_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",contact_name:"\u0627\u0633\u0645 \u0627\u0644\u062A\u0648\u0627\u0635\u0644",status:"\u0627\u0644\u062D\u0627\u0644\u0629"},estimates:{estimate:"\u062A\u0642\u062F\u064A\u0631",estimate_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062A\u0642\u062F\u064A\u0631",due_date:"\u0645\u0633\u062A\u062D\u0642 \u0628\u062A\u0627\u0631\u064A\u062E",estimate_number:"\u0631\u0642\u0645 \u0645\u0633\u062A\u062D\u0642",ref_number:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",contact_name:"\u0627\u0633\u0645 \u0627\u0644\u062A\u0648\u0627\u0635\u0644",status:"\u0627\u0644\u062D\u0627\u0644\u0629"},expenses:{expenses:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",category:"\u0627\u0644\u0641\u0626\u0629",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E"}},Sr={menu_title:{account_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062D\u0633\u0627\u0628",company_information:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0645\u0646\u0634\u0623\u0629",customization:"\u062A\u062E\u0635\u064A\u0635",preferences:"\u062A\u0641\u0636\u064A\u0644\u0627\u062A",notifications:"\u062A\u0646\u0628\u064A\u0647\u0627\u062A",tax_types:"\u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",expense_category:"\u0641\u0626\u0627\u062A \u0627\u0644\u0646\u0641\u0642\u0627\u062A",update_app:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645",backup:"\u062F\u0639\u0645",file_disk:"\u0642\u0631\u0635 \u0627\u0644\u0645\u0644\u0641",custom_fields:"\u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u0645\u062E\u0635\u0635\u0629",payment_modes:"\u0637\u0631\u0642 \u0627\u0644\u062F\u0641\u0639",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A"},title:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A",setting:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A | \u0625\u0639\u062F\u0627\u062F\u0627\u062A",general:"\u0639\u0627\u0645",language:"\u0627\u0644\u0644\u063A\u0629",primary_currency:"\u0627\u0644\u0639\u0645\u0644\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",timezone:"\u0627\u0644\u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",date_format:"\u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",currencies:{title:"\u0627\u0644\u0639\u0645\u0644\u0627\u062A",currency:"\u0627\u0644\u0639\u0645\u0644\u0629 | \u0627\u0644\u0639\u0645\u0644\u0627\u062A",currencies_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0639\u0645\u0644\u0627\u062A",select_currency:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0639\u0645\u0644\u0629",name:"\u0627\u0644\u0627\u0633\u0645",code:"\u0627\u0644\u0645\u0631\u062C\u0639",symbol:"\u0627\u0644\u0631\u0645\u0632",precision:"\u0627\u0644\u062F\u0642\u0629",thousand_separator:"\u0641\u0627\u0635\u0644 \u0627\u0644\u0622\u0644\u0627\u0641",decimal_separator:"\u0627\u0644\u0641\u0627\u0635\u0644\u0629 \u0627\u0644\u0639\u0634\u0631\u064A\u0629",position:"\u0627\u0644\u0645\u0648\u0642\u0639",position_of_symbol:"\u0645\u0648\u0642\u0639 \u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",right:"\u064A\u0645\u064A\u0646",left:"\u064A\u0633\u0627\u0631",action:"\u0625\u062C\u0631\u0627\u0621",add_currency:"\u0623\u0636\u0641 \u0639\u0645\u0644\u0629"},mail:{host:"\u062E\u0627\u062F\u0645 \u0627\u0644\u0628\u0631\u064A\u062F",port:"\u0645\u0646\u0641\u0630 \u0627\u0644\u0628\u0631\u064A\u062F",driver:"\u0645\u0634\u063A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F",secret:"\u0633\u0631\u064A",mailgun_secret:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A \u0644\u0640 Mailgun",mailgun_domain:"\u0627\u0644\u0645\u062C\u0627\u0644",mailgun_endpoint:"\u0627\u0644\u0646\u0647\u0627\u064A\u0629 \u0627\u0644\u0637\u0631\u0641\u064A\u0629 \u0644\u0640 Mailgun",ses_secret:"SES \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A",ses_key:"SES \u0645\u0641\u062A\u0627\u062D",password:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0644\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",mail_config:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",from_name:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0631\u0633\u0644",from_mail:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0644\u0645\u0631\u0633\u0644",encryption:"\u0635\u064A\u063A\u0629 \u0627 \u0644\u062A\u0634\u0641\u064A\u0631",mail_config_desc:"\u0623\u062F\u0646\u0627\u0647 \u0647\u0648 \u0646\u0645\u0648\u0630\u062C \u0644\u062A\u0643\u0648\u064A\u0646 \u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0646 \u0627\u0644\u062A\u0637\u0628\u064A\u0642. \u064A\u0645\u0643\u0646\u0643 \u0623\u064A\u0636\u064B\u0627 \u062A\u0647\u064A\u0626\u0629 \u0645\u0648\u0641\u0631\u064A \u0627\u0644\u062C\u0647\u0627\u062A \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629 \u0645\u062B\u0644 Sendgrid \u0648 SES \u0625\u0644\u062E."},pdf:{title:"PDF \u0625\u0639\u062F\u0627\u062F\u0627\u062A",footer_text:"\u0646\u0635 \u0627\u0644\u062A\u0630\u064A\u064A\u0644",pdf_layout:"\u0627\u062A\u062C\u0627\u0647 \u0635\u0641\u062D\u0629 PDF"},company_info:{company_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629",company_name:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0631\u0643\u0629",company_logo:"\u0634\u0639\u0627\u0631 \u0627\u0644\u0634\u0631\u0643\u0629",section_description:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0639\u0646 \u0634\u0631\u0643\u062A\u0643 \u0633\u064A\u062A\u0645 \u0639\u0631\u0636\u0647\u0627 \u0639\u0644\u0649 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0648\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0648\u0627\u0644\u0645\u0633\u062A\u0646\u062F\u0627\u062A \u0627\u0644\u0623\u062E\u0631\u0649.",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",zip:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",save:"\u062D\u0641\u0638",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629 \u0628\u0646\u062C\u0627\u062D"},custom_fields:{title:"\u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u0645\u062E\u0635\u0635\u0629",section_description:"\u0642\u0645 \u0628\u062A\u062E\u0635\u064A\u0635 \u0641\u0648\u0627\u062A\u064A\u0631\u0643 \u0648\u062A\u0642\u062F\u064A\u0631\u0627\u062A\u0643 \u0648\u0625\u064A\u0635\u0627\u0644\u0627\u062A \u0627\u0644\u062F\u0641\u0639 \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643. \u062A\u0623\u0643\u062F \u0645\u0646 \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u0645\u0636\u0627\u0641\u0629 \u0623\u062F\u0646\u0627\u0647 \u0641\u064A \u062A\u0646\u0633\u064A\u0642\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 \u0641\u064A \u0635\u0641\u062D\u0629 \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062A\u062E\u0635\u064A\u0635.",add_custom_field:"\u0625\u0636\u0627\u0641\u0629 \u062D\u0642\u0644 \u0645\u062E\u0635\u0635",edit_custom_field:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635",field_name:"\u0627\u0633\u0645 \u0627\u0644\u062D\u0642\u0644",label:"\u0636\u0639 \u0627\u0644\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0646\u0627\u0633\u0628\u0629",type:"\u0646\u0648\u0639",name:"\u0627\u0633\u0645",required:"\u0645\u0637\u0644\u0648\u0628",placeholder:"\u0639\u0646\u0635\u0631 \u0646\u0627\u0626\u0628",help_text:"\u0646\u0635 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629",default_value:"\u0627\u0644\u0642\u064A\u0645\u0629 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629",prefix:"\u0627\u062E\u062A\u0635\u0627\u0631",starting_number:"\u0631\u0642\u0645 \u0627\u0644\u0628\u062F\u0627\u064A\u0629",model:"\u0646\u0645\u0648\u0630\u062C",help_text_description:"\u0623\u062F\u062E\u0644 \u0628\u0639\u0636 \u0627\u0644\u0646\u0635 \u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u0639\u0644\u0649 \u0641\u0647\u0645 \u0627\u0644\u063A\u0631\u0636 \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635.",suffix:"\u0644\u0627\u062D\u0642\u0629",yes:"\u0646\u0639\u0645",no:"\u0644\u0627",order:"\u0637\u0644\u0628",custom_field_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635",already_in_use:"\u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0628\u0646\u062C\u0627\u062D",options:"\u062E\u064A\u0627\u0631\u0627\u062A",add_option:"\u0623\u0636\u0641 \u062E\u064A\u0627\u0631\u0627\u062A",add_another_option:"\u0623\u0636\u0641 \u062E\u064A\u0627\u0631\u064B\u0627 \u0622\u062E\u0631",sort_in_alphabetical_order:"\u0641\u0631\u0632 \u062D\u0633\u0628 \u0627\u0644\u062A\u0631\u062A\u064A\u0628 \u0627\u0644\u0623\u0628\u062C\u062F\u064A",add_options_in_bulk:"\u0623\u0636\u0641 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0628\u0634\u0643\u0644 \u0645\u062C\u0645\u0651\u0639",use_predefined_options:"\u0627\u0633\u062A\u062E\u062F\u0645 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u0645\u0633\u0628\u0642\u064B\u0627",select_custom_date:"\u062D\u062F\u062F \u0627\u0644\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0645\u062E\u0635\u0635",select_relative_date:"\u062D\u062F\u062F \u0627\u0644\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0646\u0633\u0628\u064A",ticked_by_default:"\u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F\u0647 \u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0628\u0646\u062C\u0627\u062D",added_message:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0628\u0646\u062C\u0627\u062D"},customization:{customization:"\u0627\u0644\u062A\u062E\u0635\u064A\u0635",save:"\u062D\u0641\u0638",addresses:{title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",section_description:"\u064A\u0645\u0643\u0646\u0643 \u0636\u0628\u0637 \u0639\u0646\u0648\u0627\u0646 \u0625\u0631\u0633\u0627\u0644 \u0641\u0648\u0627\u062A\u064A\u0631 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0648\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0634\u062D\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 (\u0645\u0639\u0631\u0648\u0636 \u0641\u064A PDF \u0641\u0642\u0637).",customer_billing_address:"\u0639\u0646\u0648\u0627\u0646 \u0641\u0648\u0627\u062A\u064A\u0631 \u0627\u0644\u0639\u0645\u064A\u0644",customer_shipping_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646 \u0644\u0644\u0639\u0645\u064A\u0644",company_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",insert_fields:"\u0623\u0636\u0641 \u062D\u0642\u0644",contact:"\u062A\u0648\u0627\u0635\u0644",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",display_name:"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0638\u0627\u0647\u0631",primary_contact_name:"\u0645\u0633\u0624\u0648\u0644 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",website:"\u0645\u0648\u0642\u0639 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A",name:"\u0627\u0644\u0627\u0633\u0645",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",company_name:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0631\u0643\u0629",address_street_1:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 1",address_street_2:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 2",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",zip_code:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",address_setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0628\u0646\u062C\u0627\u062D"},updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629 \u0628\u0646\u062C\u0627\u062D",invoices:{title:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",invoice_prefix:"\u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",default_invoice_email_body:"\u0646\u0635 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0644\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",invoice_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",autogenerate_invoice_number:"\u062A\u0631\u0642\u064A\u0645 \u0622\u0644\u064A \u0644\u0644\u0641\u0627\u062A\u0648\u0631\u0629",autogenerate_invoice_number_desc:"\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0622\u0644\u064A \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0646\u0634\u0627\u0621 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627 \u0641\u064A \u0643\u0644 \u0645\u0631\u0629 \u062A\u0642\u0648\u0645 \u0641\u064A\u0647\u0627 \u0628\u0625\u0646\u0634\u0627\u0621 \u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629.",enter_invoice_prefix:"\u0623\u062F\u062E\u0644 \u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",terms_and_conditions:"\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u0637",company_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",shipping_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646",billing_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",invoice_settings_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D"},estimates:{title:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",estimate_prefix:"\u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",default_estimate_email_body:"\u062A\u0642\u062F\u064A\u0631 \u0646\u0635 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",estimate_settings:"\u0625\u0639\u062F\u0627\u062F\u062A \u0627\u0644\u062A\u0642\u062F\u064A\u0631",autogenerate_estimate_number:"\u062A\u0631\u0642\u064A\u0645 \u0622\u0644\u064A \u0644\u0644\u062A\u0642\u062F\u064A\u0631",estimate_setting_description:"\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0622\u0644\u064A \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0646\u0634\u0627\u0621 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627 \u0641\u064A \u0643\u0644 \u0645\u0631\u0629 \u062A\u0642\u0648\u0645 \u0641\u064A\u0647\u0627 \u0628\u0625\u0646\u0634\u0627\u0621 \u062A\u0642\u062F\u064A\u0631 \u062C\u062F\u064A\u062F.",enter_estimate_prefix:"\u0623\u062F\u062E\u0644 \u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",estimate_setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",company_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",billing_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",shipping_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646"},payments:{title:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",description:"Modes of transaction for payments",payment_prefix:"\u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",default_payment_email_body:"\u0646\u0635 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0644\u062F\u0641\u0639 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",payment_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062F\u0641\u0639\u0629",autogenerate_payment_number:"\u062A\u0631\u0642\u064A\u0645 \u0622\u0644\u064A \u0644\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",payment_setting_description:"\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0622\u0644\u064A \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0646\u0634\u0627\u0621 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u062F\u0641\u0639\u0629 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627 \u0641\u064A \u0643\u0644 \u0645\u0631\u0629 \u062A\u0642\u0648\u0645 \u0641\u064A\u0647\u0627 \u0628\u0625\u0646\u0634\u0627\u0621 \u062F\u0641\u0639\u0629 \u062C\u062F\u064A\u062F\u0629.",enter_payment_prefix:"\u0623\u062F\u062E\u0644 \u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",payment_setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",payment_modes:"\u0637\u0631\u0642 \u0627\u0644\u062F\u0641\u0639",add_payment_mode:"\u0623\u0636\u0641 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",edit_payment_mode:"\u062A\u062D\u0631\u064A\u0631 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",mode_name:"\u0627\u0633\u0645 \u0627\u0644\u0648\u0636\u0639",payment_mode_added:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",payment_mode_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",payment_mode_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639 \u0647\u0630\u0627",already_in_use:"\u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639 \u0628\u0646\u062C\u0627\u062D",company_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",from_customer_address_format:"\u0645\u0646 \u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0639\u0645\u064A\u0644"},items:{title:"\u0627\u0644\u0639\u0646\u0627\u0635\u0631",units:"\u0627\u0644\u0648\u062D\u062F\u0627\u062A",add_item_unit:"\u0625\u0636\u0627\u0641\u0629 \u0648\u062D\u062F\u0629 \u0639\u0646\u0635\u0631",edit_item_unit:"\u062A\u062D\u0631\u064A\u0631 \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0627\u0635\u0631",unit_name:"\u0625\u0633\u0645 \u0627\u0644\u0648\u062D\u062F\u0629",item_unit_added:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631",item_unit_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631",item_unit_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 \u0647\u0630\u0647",already_in_use:"\u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 \u0628\u0646\u062C\u0627\u062D"},notes:{title:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",type:"\u0646\u0648\u0639",add_note:"\u0627\u0636\u0641 \u0645\u0644\u0627\u062D\u0638\u0629",add_new_note:"\u0623\u0636\u0641 \u0645\u0644\u0627\u062D\u0638\u0629 \u062C\u062F\u064A\u062F\u0629",name:"\u0627\u0633\u0645",edit_note:"\u062A\u062D\u0631\u064A\u0631 \u0645\u0630\u0643\u0631\u0629",note_added:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",note_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",note_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0647 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",already_in_use:"\u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629 \u0628\u0646\u062C\u0627\u062D"}},account_settings:{profile_picture:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062E\u0635\u064A",name:"\u0627\u0644\u0627\u0633\u0645",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",confirm_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",account_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0633\u0627\u0628",save:"\u062D\u0641\u0638",section_description:"\u064A\u0645\u0643\u0646\u0643 \u062A\u062D\u062F\u064A\u062B \u0627\u0633\u0645\u0643 \u0648\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0648\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0623\u062F\u0646\u0627\u0647.",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062D\u0633\u0627\u0628 \u0628\u0646\u062C\u0627\u062D"},user_profile:{name:"\u0627\u0644\u0627\u0633\u0645",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",confirm_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631"},notification:{title:"\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A",email:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A \u0625\u0644\u0649",description:"\u0645\u0627 \u0647\u064A \u0625\u0634\u0639\u0627\u0631\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0627\u0644\u062A\u064A \u062A\u0631\u063A\u0628 \u0641\u064A \u062A\u0644\u0642\u064A\u0647\u0627 \u0639\u0646\u062F\u0645\u0627 \u064A\u062A\u063A\u064A\u0631 \u0634\u064A\u0621 \u0645\u0627\u061F",invoice_viewed:"\u062A\u0645 \u0639\u0631\u0636 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",invoice_viewed_desc:"\u0639\u0646\u062F\u0645\u0627 \u064A\u0633\u062A\u0639\u0631\u0636 \u0639\u0645\u064A\u0644\u0643 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0645\u0631\u0633\u0644\u0629 \u0639\u0628\u0631 \u0627\u0644\u0634\u0627\u0634\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629.",estimate_viewed:"\u062A\u0645 \u0639\u0631\u0636 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",estimate_viewed_desc:"\u0639\u0646\u062F\u0645\u0627 \u064A\u0633\u062A\u0639\u0631\u0636 \u0639\u0645\u064A\u0644\u0643 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0627\u0644\u0645\u0631\u0633\u0644\u0629 \u0639\u0628\u0631 \u0627\u0644\u0634\u0627\u0634\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629.",save:"\u062D\u0641\u0638",email_save_message:"\u062A\u0645 \u062D\u0641\u0638 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0628\u0646\u062C\u0627\u062D",please_enter_email:"\u0641\u0636\u0644\u0627\u064B \u0623\u062F\u062E\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A"},tax_types:{title:"\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0636\u0631\u0627\u0626\u0628",add_tax:"\u0623\u0636\u0641 \u0636\u0631\u064A\u0628\u0629",edit_tax:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",description:"\u064A\u0645\u0643\u0646\u0643 \u0625\u0636\u0627\u0641\u0629 \u0623\u0648 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0636\u0631\u0627\u0626\u0628 \u0643\u0645\u0627 \u064A\u062D\u0644\u0648 \u0644\u0643. \u0627\u0644\u0646\u0638\u0627\u0645 \u064A\u062F\u0639\u0645 \u0627\u0644\u0636\u0631\u0627\u0626\u0628 \u0639\u0644\u0649 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0631\u062F\u064A\u0629 \u0648\u0643\u0630\u0644\u0643 \u0639\u0644\u0649 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",add_new_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629 \u062C\u062F\u064A\u062F\u0629",tax_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0636\u0631\u064A\u0628\u0629",tax_per_item:"\u0636\u0631\u064A\u0628\u0629 \u0639\u0644\u0649 \u0627\u0644\u0635\u0646\u0641",tax_name:"\u0627\u0633\u0645 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",compound_tax:"\u0636\u0631\u064A\u0628\u0629 \u0645\u062C\u0645\u0639\u0629",percent:"\u0646\u0633\u0628\u0629 \u0645\u0624\u0648\u064A\u0629",action:"\u0625\u062C\u0631\u0627\u0621",tax_setting_description:"\u0642\u0645 \u0628\u062A\u0645\u0643\u064A\u0646 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u0627\u0626\u0628 \u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0641\u0631\u062F\u064A\u0629. \u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A \u060C \u062A\u0636\u0627\u0641 \u0627\u0644\u0636\u0631\u0627\u0626\u0628 \u0645\u0628\u0627\u0634\u0631\u0629 \u0625\u0644\u0649 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0646\u062C\u0627\u062D",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0629 \u0647\u0630\u0627",already_in_use:"\u0636\u0631\u064A\u0628\u0629 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645"},expense_category:{title:"\u0641\u0626\u0627\u062A \u0627\u0644\u0646\u0641\u0642\u0627\u062A",action:"\u0625\u062C\u0631\u0627\u0621",description:"\u0627\u0644\u0641\u0626\u0627\u062A \u0645\u0637\u0644\u0648\u0628\u0629 \u0644\u0625\u0636\u0627\u0641\u0629 \u0625\u062F\u062E\u0627\u0644\u0627\u062A \u0627\u0644\u0646\u0641\u0642\u0627\u062A. \u064A\u0645\u0643\u0646\u0643 \u0625\u0636\u0627\u0641\u0629 \u0623\u0648 \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0647 \u0627\u0644\u0641\u0626\u0627\u062A \u0648\u0641\u0642\u064B\u0627 \u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A\u0643.",add_new_category:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0626\u0629 \u062C\u062F\u064A\u062F\u0629",add_category:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0626\u0629",edit_category:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0641\u0626\u0629",category_name:"\u0627\u0633\u0645 \u0627\u0644\u0641\u0626\u0629",category_description:"\u0627\u0644\u0648\u0635\u0641",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0647\u0630\u0627",already_in_use:"\u0646\u0648\u0639 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645"},preferences:{currency:"\u0627\u0644\u0639\u0645\u0644\u0629",default_language:"\u0627\u0644\u0644\u063A\u0629 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629",time_zone:"\u0627\u0644\u0645\u0646\u0637\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",fiscal_year:"\u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629",date_format:"\u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",discount_setting:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062E\u0635\u0645",discount_per_item:"\u062E\u0635\u0645 \u0639\u0644\u0649 \u0627\u0644\u0635\u0646\u0641 ",discount_setting_description:"\u0642\u0645 \u0628\u062A\u0645\u0643\u064A\u0646 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0625\u0636\u0627\u0641\u0629 \u062E\u0635\u0645 \u0625\u0644\u0649 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0641\u0631\u062F\u064A\u0629. \u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A \u060C \u064A\u062A\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u062E\u0635\u0645 \u0645\u0628\u0627\u0634\u0631\u0629 \u0625\u0644\u0649 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",save:"\u062D\u0641\u0638",preference:"\u062A\u0641\u0636\u064A\u0644 | \u062A\u0641\u0636\u064A\u0644\u0627\u062A",general_settings:"\u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629 \u0644\u0644\u0646\u0638\u0627\u0645.",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A \u0628\u0646\u062C\u0627\u062D",select_language:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0644\u063A\u0629",select_time_zone:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u0646\u0637\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",select_date_format:"Select Date Format",select_financial_year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629"},update_app:{title:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645",description:"\u064A\u0645\u0643\u0646\u0643 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645 \u0628\u0633\u0647\u0648\u0644\u0629 \u0639\u0646 \u0637\u0631\u064A\u0642 \u0627\u0644\u0628\u062D\u062B \u0639\u0646 \u062A\u062D\u062F\u064A\u062B \u062C\u062F\u064A\u062F \u0628\u0627\u0644\u0646\u0642\u0631 \u0641\u0648\u0642 \u0627\u0644\u0632\u0631 \u0623\u062F\u0646\u0627\u0647",check_update:"\u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u0644\u062A\u062D\u062F\u064A\u062B\u0627\u062A",avail_update:"\u062A\u062D\u062F\u064A\u062B \u062C\u062F\u064A\u062F \u0645\u062A\u0648\u0641\u0631",next_version:"\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u062C\u062F\u064A\u062F\u0629",requirements:"Requirements",update:"\u062D\u062F\u062B \u0627\u0644\u0622\u0646",update_progress:"\u0642\u064A\u062F \u0627\u0644\u062A\u062D\u062F\u064A\u062B...",progress_text:"\u0633\u0648\u0641 \u064A\u0633\u062A\u063A\u0631\u0642 \u0627\u0644\u062A\u062D\u062F\u064A\u062B \u0628\u0636\u0639 \u062F\u0642\u0627\u0626\u0642. \u064A\u0631\u062C\u0649 \u0639\u062F\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0634\u0627\u0634\u0629 \u0623\u0648 \u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0642\u0628\u0644 \u0627\u0646\u062A\u0647\u0627\u0621 \u0627\u0644\u062A\u062D\u062F\u064A\u062B",update_success:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645! \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631 \u062D\u062A\u0649 \u064A\u062A\u0645 \u0625\u0639\u0627\u062F\u0629 \u062A\u062D\u0645\u064A\u0644 \u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0645\u062A\u0635\u0641\u062D \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627.",latest_message:"\u0644\u0627 \u064A\u0648\u062C\u062F \u062A\u062D\u062F\u064A\u062B\u0627\u062A \u0645\u062A\u0648\u0641\u0631\u0629! \u0644\u062F\u064A\u0643 \u062D\u0627\u0644\u064A\u0627\u064B \u0623\u062D\u062F\u062B \u0646\u0633\u062E\u0629.",current_version:"\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u062D\u0627\u0644\u064A\u0629",download_zip_file:"\u062A\u0646\u0632\u064A\u0644 \u0645\u0644\u0641 ZIP",unzipping_package:"\u062D\u0632\u0645\u0629 \u0641\u0643 \u0627\u0644\u0636\u063A\u0637",copying_files:"\u0646\u0633\u062E \u0627\u0644\u0645\u0644\u0641\u0627\u062A",running_migrations:"\u0625\u062F\u0627\u0631\u0629 \u0639\u0645\u0644\u064A\u0627\u062A \u0627\u0644\u062A\u0631\u062D\u064A\u0644",finishing_update:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0634\u0637\u064A\u0628",update_failed:"\u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u062F\u064A\u062B",update_failed_text:"\u0622\u0633\u0641! \u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u0641\u064A: {step} \u062E\u0637\u0648\u0629"},backup:{title:"\u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A | \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",description:"\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0647\u064A \u0645\u0644\u0641 \u0645\u0636\u063A\u0648\u0637 \u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u062C\u0645\u064A\u0639 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0641\u064A \u0627\u0644\u062F\u0644\u0627\u0626\u0644 \u0627\u0644\u062A\u064A \u062A\u062D\u062F\u062F\u0647\u0627 \u0645\u0639 \u062A\u0641\u0631\u064A\u063A \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643",new_backup:"\u0625\u0636\u0627\u0641\u0629 \u0646\u0633\u062E\u0629 \u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u062C\u062F\u064A\u062F\u0629",create_backup:"\u0627\u0646\u0634\u0626 \u0646\u0633\u062E\u0629 \u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",select_backup_type:"\u062D\u062F\u062F \u0646\u0648\u0639 \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A",backup_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0647 \u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",path:"\u0645\u0633\u0627\u0631",new_disk:"\u0642\u0631\u0635 \u062C\u062F\u064A\u062F",created_at:"\u0623\u0646\u0634\u0626\u062A \u0641\u064A",size:"size",dropbox:"\u0628\u0635\u0646\u062F\u0648\u0642 \u0627\u0644\u0625\u0633\u0642\u0627\u0637",local:"\u0645\u062D\u0644\u064A",healthy:"\u0635\u062D\u064A",amount_of_backups:"\u0643\u0645\u064A\u0629 \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",newest_backups:"\u0623\u062D\u062F\u062B \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",used_storage:"\u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",select_disk:"\u062D\u062F\u062F \u0627\u0644\u0642\u0631\u0635",action:"\u0639\u0645\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0628\u0646\u062C\u0627\u062D",created_message:"Backup created successfully",invalid_disk_credentials:"\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0639\u062A\u0645\u0627\u062F \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u0629 \u0644\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u062F\u062F"},disk:{title:"\u0642\u0631\u0635 \u0627\u0644\u0645\u0644\u0641\u0627\u062A | \u0623\u0642\u0631\u0627\u0635 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",description:"\u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A \u060C \u0633\u062A\u0633\u062A\u062E\u062F\u0645 Crater \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u0644\u064A \u0644\u062D\u0641\u0638 \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0648\u0627\u0644\u0623\u0641\u0627\u062A\u0627\u0631 \u0648\u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0635\u0648\u0631 \u0627\u0644\u0623\u062E\u0631\u0649. \u064A\u0645\u0643\u0646\u0643 \u062A\u0643\u0648\u064A\u0646 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0628\u0631\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0642\u0631\u0635 \u0645\u062B\u0644 DigitalOcean \u0648 S3 \u0648 Dropbox \u0648\u0641\u0642\u064B\u0627 \u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A\u0643.",created_at:"\u0623\u0646\u0634\u0626\u062A \u0641\u064A",dropbox:"\u0628\u0635\u0646\u062F\u0648\u0642 \u0627\u0644\u0625\u0633\u0642\u0627\u0637",name:"\u0627\u0633\u0645",driver:"\u0633\u0627\u0626\u0642",disk_type:"\u0646\u0648\u0639",disk_name:"\u0627\u0633\u0645 \u0627\u0644\u0642\u0631\u0635",new_disk:"\u0625\u0636\u0627\u0641\u0629 \u0642\u0631\u0635 \u062C\u062F\u064A\u062F",filesystem_driver:"\u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0646\u0638\u0627\u0645 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",local_driver:"\u0633\u0627\u0626\u0642 \u0645\u062D\u0644\u064A",local_root:"\u0627\u0644\u062C\u0630\u0631 \u0627\u0644\u0645\u062D\u0644\u064A",public_driver:"\u0633\u0627\u0626\u0642 \u0639\u0627\u0645",public_root:"\u0627\u0644\u062C\u0630\u0631 \u0627\u0644\u0639\u0627\u0645",public_url:"URL \u0627\u0644\u0639\u0627\u0645",public_visibility:"\u0627\u0644\u0631\u0624\u064A\u0629 \u0627\u0644\u0639\u0627\u0645\u0629",media_driver:"\u0633\u0627\u0626\u0642 \u0648\u0633\u0627\u0626\u0637",media_root:"\u062C\u0630\u0631 \u0627\u0644\u0648\u0633\u0627\u0626\u0637",aws_driver:"\u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 AWS",aws_key:"\u0645\u0641\u062A\u0627\u062D AWS",aws_secret:"AWS Secret",aws_region:"\u0645\u0646\u0637\u0642\u0629 AWS",aws_bucket:"\u062D\u0627\u0648\u064A\u0629 AWS",aws_root:"AWS \u0627\u0644\u062C\u0630\u0631",do_spaces_type:"\u0647\u0644 \u0646\u0648\u0639 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A",do_spaces_key:"\u0645\u0641\u062A\u0627\u062D Do Spaces",do_spaces_secret:"\u0647\u0644 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A \u0633\u0631\u064A\u0629",do_spaces_region:"\u0647\u0644 \u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A",do_spaces_bucket:"\u0647\u0644 \u062F\u0644\u0648 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A",do_spaces_endpoint:"\u0642\u0645 \u0628\u0639\u0645\u0644 \u0646\u0642\u0637\u0629 \u0646\u0647\u0627\u064A\u0629 \u0644\u0644\u0645\u0633\u0627\u0641\u0627\u062A",do_spaces_root:"\u0639\u0645\u0644 \u0627\u0644\u062C\u0630\u0631 \u0644\u0644\u0645\u0633\u0627\u0641\u0627\u062A",dropbox_type:"\u0646\u0648\u0639 Dropbox",dropbox_token:"\u0631\u0645\u0632 Dropbox",dropbox_key:"\u0645\u0641\u062A\u0627\u062D Dropbox",dropbox_secret:"Dropbox Secret",dropbox_app:"\u062A\u0637\u0628\u064A\u0642 Dropbox",dropbox_root:"\u062C\u0630\u0631 Dropbox",default_driver:"\u0628\u0631\u0646\u0627\u0645\u062C \u0627\u0644\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",is_default:"\u0623\u0645\u0631 \u0627\u0641\u062A\u0631\u0627\u0636\u064A",set_default_disk:"\u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",success_set_default_disk:"Disk set as default successfully",save_pdf_to_disk:"\u062D\u0641\u0638 \u0645\u0644\u0641\u0627\u062A PDF \u0639\u0644\u0649 \u0627\u0644\u0642\u0631\u0635",disk_setting_description:"\u0642\u0645 \u0628\u062A\u0645\u0643\u064A\u0646 \u0647\u0630\u0627 \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u063A\u0628 \u0641\u064A \u062D\u0641\u0638 \u0646\u0633\u062E\u0629 \u0645\u0646 \u0643\u0644 \u0641\u0627\u062A\u0648\u0631\u0629 \u060C \u062A\u0642\u062F\u064A\u0631 \u0648\u0625\u064A\u0635\u0627\u0644 \u062F\u0641\u0639 PDF \u0639\u0644\u0649 \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627. \u0633\u064A\u0624\u062F\u064A \u062A\u0634\u063A\u064A\u0644 \u0647\u0630\u0627 \u0627\u0644\u062E\u064A\u0627\u0631 \u0625\u0644\u0649 \u062A\u0642\u0644\u064A\u0644 \u0648\u0642\u062A \u0627\u0644\u062A\u062D\u0645\u064A\u0644 \u0639\u0646\u062F \u0639\u0631\u0636 \u0645\u0644\u0641\u0627\u062A PDF.",select_disk:"\u062D\u062F\u062F \u0627\u0644\u0642\u0631\u0635",disk_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0642\u0631\u0635",confirm_delete:"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater",action:"\u0639\u0645\u0644",edit_file_disk:"Edit File Disk",success_create:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",success_update:"Disk updated successfully",error:"\u0641\u0634\u0644 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0631\u0635",deleted_message:"File Disk deleted successfully",disk_variables_save_successfully:"\u062A\u0645 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",disk_variables_save_error:"\u0641\u0634\u0644 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0642\u0631\u0635.",invalid_disk_credentials:"\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0639\u062A\u0645\u0627\u062F \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u0629 \u0644\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u062F\u062F"}},jr={account_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u062D\u0633\u0627\u0628",account_info_desc:"\u0633\u064A\u062A\u0645 \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644 \u0623\u062F\u0646\u0627\u0647 \u0644\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u0627\u0644\u0645\u0633\u0624\u0648\u0644 \u0627\u0644\u0631\u0626\u064A\u0633\u064A. \u0643\u0645\u0627 \u064A\u0645\u0643\u0646\u0643 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644 \u0641\u064A \u0623\u064A \u0648\u0642\u062A \u0628\u0639\u062F \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644.",name:"\u0627\u0644\u0627\u0633\u0645",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",confirm_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",save_cont:"\u062D\u0641\u0638 \u0648\u0627\u0633\u062A\u0645\u0631\u0627\u0631",company_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629",company_info_desc:"\u0633\u064A\u062A\u0645 \u0639\u0631\u0636 \u0647\u0630\u0647 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631. \u0644\u0627\u062D\u0638 \u0623\u0646\u0647 \u064A\u0645\u0643\u0646\u0643 \u062A\u0639\u062F\u064A\u0644 \u0647\u0630\u0627 \u0644\u0627\u062D\u0642\u064B\u0627 \u0641\u064A \u0635\u0641\u062D\u0629 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A.",company_name:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0631\u0643\u0629",company_logo:"\u0634\u0639\u0627\u0631 \u0627\u0644\u0634\u0631\u0643\u0629",logo_preview:"\u0627\u0633\u062A\u0639\u0631\u0627\u0636 \u0627\u0644\u0634\u0639\u0627\u0631",preferences:"\u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A",preferences_desc:"\u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629 \u0644\u0644\u0646\u0638\u0627\u0645",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",street:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 1 | \u0627\u0644\u0639\u0646\u0648\u0627\u0646 2",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",zip_code:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",go_back:"\u0644\u0644\u062E\u0644\u0641",currency:"\u0627\u0644\u0639\u0645\u0644\u0629",language:"\u0627\u0644\u0644\u063A\u0629",time_zone:"\u0627\u0644\u0645\u0646\u0637\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",fiscal_year:"\u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629",date_format:"\u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",from_address:"\u0645\u0646 \u0627\u0644\u0639\u0646\u0648\u0627\u0646",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",next:"\u0627\u0644\u062A\u0627\u0644\u064A",continue:"\u0627\u0633\u062A\u0645\u0631\u0627\u0631",skip:"\u062A\u062E\u0637\u064A",database:{database:"\u0639\u0646\u0648\u0627\u0646 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",connection:"\u0627\u062A\u0635\u0627\u0644 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",host:"\u062E\u0627\u062F\u0645 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",port:"\u0645\u0646\u0641\u0630 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",password:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",app_url:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A \u0644\u0644\u0646\u0638\u0627\u0645",app_domain:"App Domain",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0644\u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",db_name:"\u0633\u0645 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",db_path:"Database Path",desc:"\u0642\u0645 \u0628\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0639\u062F\u0629 \u0628\u064A\u0627\u0646\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u062E\u0627\u062F\u0645 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u0648\u062A\u0639\u064A\u064A\u0646 \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0627\u0639\u062A\u0645\u0627\u062F \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0623\u062F\u0646\u0627\u0647."},permissions:{permissions:"\u0627\u0644\u0623\u0630\u0648\u0646\u0627\u062A",permission_confirm_title:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u0627\u0644\u0627\u0633\u062A\u0645\u0631\u0627\u0631\u061F",permission_confirm_desc:"\u0641\u0634\u0644 \u0641\u062D\u0635 \u0623\u0630\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062C\u0644\u062F",permission_desc:"\u0641\u064A\u0645\u0627 \u064A\u0644\u064A \u0642\u0627\u0626\u0645\u0629 \u0623\u0630\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062C\u0644\u062F \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u062D\u062A\u0649 \u064A\u0639\u0645\u0644 \u0627\u0644\u062A\u0637\u0628\u064A\u0642. \u0641\u064A \u062D\u0627\u0644\u0629 \u0641\u0634\u0644 \u0641\u062D\u0635 \u0627\u0644\u0625\u0630\u0646 \u060C \u062A\u0623\u0643\u062F \u0645\u0646 \u062A\u062D\u062F\u064A\u062B \u0623\u0630\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062C\u0644\u062F."},mail:{host:"\u062E\u0627\u062F\u0645 \u0627\u0644\u0628\u0631\u064A\u062F",port:"\u0645\u0646\u0641\u0630 \u0627\u0644\u0628\u0631\u064A\u062F",driver:"\u0645\u0634\u063A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F",secret:"\u0633\u0631\u064A",mailgun_secret:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A \u0644\u0640 Mailgun",mailgun_domain:"\u0627\u0644\u0645\u062C\u0627\u0644",mailgun_endpoint:"\u0627\u0644\u0646\u0647\u0627\u064A\u0629 \u0627\u0644\u0637\u0631\u0641\u064A\u0629 \u0644\u0640 Mailgun",ses_secret:"SES \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A",ses_key:"SES \u0645\u0641\u062A\u0627\u062D",password:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0644\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",mail_config:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",from_name:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0631\u0633\u0644",from_mail:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0644\u0645\u0631\u0633\u0644",encryption:"\u0635\u064A\u063A\u0629 \u0627 \u0644\u062A\u0634\u0641\u064A\u0631",mail_config_desc:"\u0623\u062F\u0646\u0627\u0647 \u0647\u0648 \u0646\u0645\u0648\u0630\u062C \u0644\u062A\u0643\u0648\u064A\u0646 \u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0646 \u0627\u0644\u062A\u0637\u0628\u064A\u0642. \u064A\u0645\u0643\u0646\u0643 \u0623\u064A\u0636\u064B\u0627 \u062A\u0647\u064A\u0626\u0629 \u0645\u0648\u0641\u0631\u064A \u0627\u0644\u062C\u0647\u0627\u062A \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629 \u0645\u062B\u0644 Sendgrid \u0648 SES \u0625\u0644\u062E."},req:{system_req:"\u0645\u062A\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u0646\u0638\u0627\u0645",php_req_version:"Php (\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 {version} \u0628\u062D\u062F \u0623\u062F\u0646\u0649)",check_req:"\u0641\u062D\u0635 \u0645\u062A\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u0646\u0638\u0627\u0645",system_req_desc:"\u064A\u062D\u062A\u0648\u064A \u0627\u0644\u0646\u0638\u0627\u0645 \u0639\u0644\u0649 \u0628\u0639\u0636 \u0645\u062A\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u062E\u0627\u062F\u0645. \u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646 \u062E\u0627\u062F\u0645\u0643 \u0644\u062F\u064A\u0647 \u0646\u0633\u062E\u0629 php \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u0648\u062C\u0645\u064A\u0639 \u0627\u0644\u0627\u0645\u062A\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0645\u0630\u0643\u0648\u0631\u0629 \u0623\u062F\u0646\u0627\u0647."},errors:{migrate_failed:"\u0641\u0634\u0644 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062C\u062F\u0627\u0648\u0644",database_variables_save_error:"\u063A\u064A\u0631 \u0642\u0627\u062F\u0631 \u0639\u0644\u0649 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0642\u064A\u0645 \u0627\u0644\u0645\u0642\u062F\u0645\u0629.",mail_variables_save_error:"\u0641\u0634\u0644 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A.",connection_failed:"\u0641\u0634\u0644 \u0627\u062A\u0635\u0627\u0644 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",database_should_be_empty:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0641\u0627\u0631\u063A\u0629"},success:{mail_variables_save_successfully:"\u062A\u0645 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0628\u0646\u062C\u0627\u062D",database_variables_save_successfully:"\u062A\u0645 \u062A\u0643\u0648\u064A\u0646 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0628\u0646\u062C\u0627\u062D."}},Pr={invalid_phone:"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D",invalid_url:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0646\u062A\u0631\u0646\u062A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D (\u0645\u062B\u0627\u0644: http://www.craterapp.com)",invalid_domain_url:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0646\u062A\u0631\u0646\u062A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D (\u0645\u062B\u0627\u0644: craterapp.com)",required:"\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628",email_incorrect:"\u0628\u0631\u064A\u062F \u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D.",email_already_taken:"\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0633\u062A\u062E\u062F\u0645 \u0645\u0633\u0628\u0642\u0627\u064B",email_does_not_exist:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0643\u0633\u062A\u062E\u062F\u0645 \u0628\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",item_unit_already_taken:"\u0648\u062D\u062F\u0629 \u0627\u0644\u0628\u0646\u062F \u0642\u062F \u0627\u062A\u062E\u0630\u062A \u0628\u0627\u0644\u0641\u0639\u0644",payment_mode_already_taken:"\u0644\u0642\u062F \u062A\u0645 \u0628\u0627\u0644\u0641\u0639\u0644 \u0623\u062E\u0630 \u0637\u0631\u064A\u0642\u0629 \u0627\u0644\u062F\u0641\u0639",send_reset_link:"\u0623\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",not_yet:"\u0644\u064A\u0633 \u0628\u0639\u062F\u061F \u0623\u0639\u062F \u0627\u0644\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0622\u0646..",password_min_length:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u064A\u062C\u0628 \u0623\u0646 \u062A\u062A\u0643\u0648\u0646 \u0645\u0646 {count} \u0623\u062D\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644",name_min_length:"\u0627\u0644\u0627\u0633\u0645 \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0643\u0648\u0646 \u0645\u0646 {count} \u0623\u062D\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644",enter_valid_tax_rate:"\u0623\u062F\u062E\u0644 \u0645\u0639\u062F\u0644 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0634\u0643\u0644 \u0635\u062D\u064A\u062D",numbers_only:"\u0623\u0631\u0642\u0627\u0645 \u0641\u0642\u0637.",characters_only:"\u062D\u0631\u0648\u0641 \u0641\u0642\u0637.",password_incorrect:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0643\u0644\u0645\u0627\u062A \u0627\u0644\u0645\u0631\u0648\u0631 \u0645\u062A\u0637\u0627\u0628\u0642\u0629",password_length:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0637\u0648\u0644 {count} \u062D\u0631\u0641.",qty_must_greater_than_zero:"\u0627\u0644\u0643\u0645\u064A\u0629 \u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",price_greater_than_zero:"\u0627\u0644\u0633\u0639\u0631 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",payment_greater_than_zero:"\u0627\u0644\u062F\u0641\u0639\u0629 \u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",payment_greater_than_due_amount:"\u0645\u0628\u0644\u063A \u0627\u0644\u062F\u0641\u0639\u0629 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0633\u062A\u062D\u0642 \u0644\u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",quantity_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u062A\u0632\u064A\u062F \u0627\u0644\u0643\u0645\u064A\u0629 \u0639\u0646 20 \u0631\u0642\u0645\u0627\u064B.",price_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0633\u0639\u0631 \u0639\u0646 20 \u0631\u0642\u0645\u0627\u064B.",price_minvalue:"\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0627\u0644\u0633\u0639\u0631 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",amount_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0645\u0628\u0644\u063A \u0639\u0646 20 \u0631\u0642\u0645\u0627\u064B.",amount_minvalue:"\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0627\u0644\u0645\u0628\u0644\u063A \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",description_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0648\u0635\u0641 \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",subject_maxlength:"Subject should not be greater than 100 characters.",message_maxlength:"Message should not be greater than 255 characters.",maximum_options_error:"\u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0639\u0644\u0649 \u0647\u0648 {max} \u062E\u064A\u0627\u0631\u0627\u062A. \u0642\u0645 \u0628\u0625\u0632\u0627\u0644\u0629 \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0644\u062A\u062D\u062F\u064A\u062F \u062E\u064A\u0627\u0631 \u0622\u062E\u0631.",notes_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0627\u062A \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",address_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",ref_number_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639\u064A \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",prefix_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u062A\u0632\u064A\u062F \u0627\u0644\u0628\u0627\u062F\u0626\u0629 \u0639\u0646 5 \u0623\u062D\u0631\u0641.",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!"},Dr="\u062A\u0642\u062F\u064A\u0631",Cr="\u0631\u0642\u0645 \u062A\u0642\u062F\u064A\u0631",Ar="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062A\u0642\u062F\u064A\u0631",Er="Expiry date",Nr="\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",Tr="\u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",Ir="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",$r="Due date",Rr="\u0645\u0644\u0627\u062D\u0638\u0627\u062A",Fr="\u0627\u0644\u0623\u0635\u0646\u0627\u0641",Mr="\u0627\u0644\u0643\u0645\u064A\u0629",Vr="\u0627\u0644\u0633\u0639\u0631",Br="\u0627\u0644\u062E\u0635\u0645",Or="\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",Lr="Subtotal",Ur="\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",Kr="Payment",qr="PAYMENT RECEIPT",Zr="Payment Date",Wr="\u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",Hr="\u0646\u0648\u0639 \u0627\u0644\u062F\u0641\u0639\u0629",Gr="Amount Received",Yr="EXPENSES REPORT",Jr="TOTAL EXPENSE",Xr="PROFIT & LOSS REPORT",Qr="Sales Customer Report",ed="Sales Item Report",td="Tax Summary Report",ad="INCOME",sd="NET PROFIT",nd="Sales Report: By Customer",id="TOTAL SALES",od="Sales Report: By Item",rd="TAX REPORT",dd="TOTAL TAX",ld="\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0636\u0631\u0627\u0626\u0628",cd="\u0627\u0644\u0646\u0641\u0642\u0627\u062A",_d="\u0645\u0637\u0644\u0648\u0628 \u0645\u0646,",ud="\u064A\u0634\u062D\u0646 \u0625\u0644\u0649,",md="Received from:",pd="\u0636\u0631\u064A\u0628\u0629";var gd={navigation:_r,general:ur,dashboard:mr,tax_types:pr,global_search:gr,customers:fr,items:hr,estimates:vr,invoices:yr,payments:br,expenses:kr,login:wr,users:xr,reports:zr,settings:Sr,wizard:jr,validation:Pr,pdf_estimate_label:Dr,pdf_estimate_number:Cr,pdf_estimate_date:Ar,pdf_estimate_expire_date:Er,pdf_invoice_label:Nr,pdf_invoice_number:Tr,pdf_invoice_date:Ir,pdf_invoice_due_date:$r,pdf_notes:Rr,pdf_items_label:Fr,pdf_quantity_label:Mr,pdf_price_label:Vr,pdf_discount_label:Br,pdf_amount_label:Or,pdf_subtotal:Lr,pdf_total:Ur,pdf_payment_label:Kr,pdf_payment_receipt_label:qr,pdf_payment_date:Zr,pdf_payment_number:Wr,pdf_payment_mode:Hr,pdf_payment_amount_received_label:Gr,pdf_expense_report_label:Yr,pdf_total_expenses_label:Jr,pdf_profit_loss_label:Xr,pdf_sales_customers_label:Qr,pdf_sales_items_label:ed,pdf_tax_summery_label:td,pdf_income_label:ad,pdf_net_profit_label:sd,pdf_customer_sales_report:nd,pdf_total_sales_label:id,pdf_item_sales_label:od,pdf_tax_report_label:rd,pdf_total_tax_label:dd,pdf_tax_types_label:ld,pdf_expenses_label:cd,pdf_bill_to:_d,pdf_ship_to:ud,pdf_received_from:md,pdf_tax_label:pd};const fd={dashboard:"\xDCbersicht",customers:"Kunden",items:"Artikel",invoices:"Rechnungen",expenses:"Kosten",estimates:"Kostenvoranschl\xE4ge",payments:"Zahlungen",reports:"Berichte",settings:"Einstellungen",logout:"Abmelden",users:"Benutzer"},hd={add_company:"Unternehmen hinzuf\xFCgen",view_pdf:"PDF anzeigen",copy_pdf_url:"PDF-Link kopieren",download_pdf:"PDF herunterladen",save:"Speichern",create:"Erstellen",cancel:"Abbrechen",update:"Aktualisieren",deselect:"Abw\xE4hlen",download:"Herunterladen",from_date:"Von Datum",to_date:"bis Datum",from:"Von",to:"bis",sort_by:"Sortieren nach",ascending:"Aufsteigend",descending:"Absteigend",subject:"Betreff",body:"Inhalt",message:"Nachricht",send:"Absenden",go_back:"zur\xFCck",back_to_login:"Zur\xFCck zum Login?",home:"Startseite",filter:"Filter",delete:"L\xF6schen",edit:"Bearbeiten",view:"Anzeigen",add_new_item:"Artikel hinzuf\xFCgen",clear_all:"Alle entfernen",showing:"Anzeigen",of:"von",actions:"Aktionen",subtotal:"ZWISCHENSUMME",discount:"RABATT",fixed:"Festsatz",percentage:"Prozentsatz",tax:"Steuer",total_amount:"GESAMTSUMME",bill_to:"Rechnungsempf\xE4nger",ship_to:"Versand ein",due:"F\xE4llig",draft:"Entwurf",sent:"Gesendet",all:"Alle",select_all:"Alle ausw\xE4hlen",choose_file:"Klicken Sie hier, um eine Datei auszuw\xE4hlen",choose_template:"W\xE4hlen Sie eine Vorlage",choose:"W\xE4hlen",remove:"Entfernen",powered_by:"Betrieben durch",bytefury:"Bytefury",select_a_status:"Status w\xE4hlen",select_a_tax:"Steuersatz w\xE4hlen",search:"Suchen",are_you_sure:"Sind Sie sicher?",list_is_empty:"Liste ist leer.",no_tax_found:"Kein Steuersatz gefunden!",four_zero_four:"Vier hundert vier",you_got_lost:"Hoppla! Du hast dich verirrt!",go_home:"Geh zur\xFCck",test_mail_conf:"E-Mail Konfiguration testen",send_mail_successfully:"E-Mail versendet erfolgreich",setting_updated:"Einstellungen erfolgreich aktualisiert",select_state:"Bundesland w\xE4hlen",select_country:"Land w\xE4hlen",select_city:"Stadt w\xE4hlen",street_1:"Stra\xDFe",street_2:"Zusatz Strasse",action_failed:"Aktion fehlgeschlagen",retry:"Wiederholen",choose_note:"Notiz ausw\xE4hlen",no_note_found:"Keine Notizen gefunden",insert_note:"Notiz einf\xFCgen"},vd={select_year:"Jahr w\xE4hlen",cards:{due_amount:"Offene Betr\xE4ge",customers:"Kunden",invoices:"Rechnungen",estimates:"Kostenvoranschl\xE4ge"},chart_info:{total_sales:"Auftr\xE4ge gesamt",total_receipts:"Zahlungen gesamt",total_expense:"Kosten gesamt",net_income:"Einnahmen Netto",year:"Jahr"},monthly_chart:{title:"Umsatz & Kosten"},recent_invoices_card:{title:"F\xE4llige Rechnungen",due_on:"F\xE4llig am",customer:"Kunden",amount_due:"Offener Betrag",actions:"Aktionen",view_all:"Alle Anzeigen"},recent_estimate_card:{title:"Aktuelle Kostenvoranschl\xE4ge",date:"Datum",customer:"Kunden",amount_due:"Betrag",actions:"Aktionen",view_all:"Alle Anzeigen"}},yd={name:"Name",description:"Beschreibung",percent:"Prozent",compound_tax:"zusammengesetzte Steuer"},bd={search:"Suchen...",customers:"Kunden",users:"Benutzer",no_results_found:"Keine Ergebnisse gefunden"},kd={title:"Kunden",add_customer:"Kunde hinzuf\xFCgen",contacts_list:"Kunden-Liste",name:"Name",mail:"E-Mail| E-Mails",statement:"Stellungnahme",display_name:"Anzeige Name",primary_contact_name:"Ansprechpartner",contact_name:"Kontakt Name",amount_due:"Offener Betrag",email:"E-Mail",address:"Adresse",phone:"Telefon",website:"Webseite",overview:"\xDCbersicht",enable_portal:"Kunden-Portal aktivieren",country:"Land",state:"Bundesland",city:"Stadt",zip_code:"PLZ",added_on:"Hinzugef\xFCgt am",action:"Aktion",password:"Passwort",street_number:"Hausnummer",primary_currency:"Prim\xE4re W\xE4hrung",description:"Beschreibung",add_new_customer:"Neuen Kunden hinzuf\xFCgen",save_customer:"Kunde speichern",update_customer:"Kunden \xE4ndern",customer:"Kunde | Kunden",new_customer:"Neuer Kunde",edit_customer:"Kunde bearbeiten",basic_info:"Basisinformation",billing_address:"Rechnungsadresse",shipping_address:"Versand-Adresse",copy_billing_address:"Rechnungsadresse kopieren",no_customers:"Noch keine Kunden!",no_customers_found:"Keine Kunden gefunden!",no_contact:"Kein Kontakt",no_contact_name:"Kein Kontaktname",list_of_customers:"Dieser Abschnitt enth\xE4lt die Liste der Kunden.",primary_display_name:"Prim\xE4rer Anzeige Name",select_currency:"W\xE4hrung w\xE4hlen",select_a_customer:"W\xE4hlen Sie einen Kunden",type_or_click:"Eingeben oder anklicken zum ausw\xE4hlen",new_transaction:"Neue Transaktion",no_matching_customers:"Es gibt keine passenden Kunden!",phone_number:"Telefonnummer",create_date:"Erstellungsdatum",confirm_delete:"Sie k\xF6nnen diesen Kunden und alle zugeh\xF6rigen Rechnungen, Sch\xE4tzungen und Zahlungen nicht wiederherstellen. | Sie k\xF6nnen diesen Kunden und alle zugeh\xF6rigen Rechnungen, Sch\xE4tzungen und Zahlungen nicht wiederherstellen.",created_message:"Benutzer erfolgreich erstellt",updated_message:"Kunde erfolgreich aktualisiert",deleted_message:"Kunden erfolgreich gel\xF6scht | Kunden erfolgreich gel\xF6scht"},wd={title:"Artikel",items_list:"Artikel-Liste",name:"Name",unit:"Einheit",description:"Beschreibung",added_on:"Hinzugef\xFCgt am",price:"Preis",date_of_creation:"Erstellt am",not_selected:"Keine ausgew\xE4hlt",action:"Aktion",add_item:"Artikel hinzuf\xFCgen",save_item:"Artikel speichern",update_item:"Artikel \xE4ndern",item:"Artikel | Artikel",add_new_item:"Neuen Artikel hinzuf\xFCgen",new_item:"Neuer Artikel",edit_item:"Artikel bearbeiten",no_items:"Keine Artikel vorhanden!",list_of_items:"Dieser Abschnitt enth\xE4lt die Liste der Artikel.",select_a_unit:"w\xE4hlen Sie die Einheit",taxes:"Steuern",item_attached_message:"Ein Artikel der bereits verwendet wird kann nicht gel\xF6scht werden",confirm_delete:"Sie k\xF6nnen diesen Artikel nicht wiederherstellen | Sie k\xF6nnen diese Artikel nicht wiederherstellen",created_message:"Artikel erfolgreich erstellt",updated_message:"Artikel erfolgreich aktualisiert",deleted_message:"Artikel erfolgreich gel\xF6scht | Artikel erfolgreich gel\xF6scht"},xd={title:"Kostenvoranschl\xE4ge",estimate:"Kostenvoranschlag | Kostenvoranschl\xE4ge",estimates_list:"Liste Kostenvoranschl\xE4ge",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahre",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlte",customer:"KUNDEN",ref_no:"REF. - NR.",number:"ANZAHL",amount_due:"OFFENER BETRAG",partially_paid:"Teilweise bezahlt",total:"Gesamt",discount:"Rabatt",sub_total:"Zwischensumme",estimate_number:"Kostenvoran. Nummer",ref_number:"Ref-Nummer",contact:"Kontakt",add_item:"F\xFCgen Sie ein Artikel hinzu",date:"Datum",due_date:"F\xE4lligkeit",expiry_date:"Zahlungsziel",status:"Status",add_tax:"Steuer hinzuf\xFCgen",amount:"Summe",action:"Aktion",notes:"Hinweise",tax:"Steuer",estimate_template:"Vorlage",convert_to_invoice:"Konvertieren in Rechnung",mark_as_sent:"Als gesendet markieren",send_estimate:"Kostenvoranschlag senden",resend_estimate:"Kostenvoranschlag erneut senden",record_payment:"Zahlung erfassen",add_estimate:"Kostenvoranschlag hinzuf\xFCgen",save_estimate:"Kostenvoranschlag speichern",confirm_conversion:"Sie m\xF6chten, konvertieren Sie diese Sch\xE4tzung in die Rechnung?",conversion_message:"Rechnung erfolgreich erstellt",confirm_send_estimate:"Der Kostenvoranschlag wird per E-Mail an den Kunden gesendet",confirm_mark_as_sent:"Dieser Kostenvoranschlag wird als gesendet markiert",confirm_mark_as_accepted:"Dieser Kostenvoranschlag wird als angenommen markiert",confirm_mark_as_rejected:"Dieser Kostenvoranschlag wird als abgelehnt markiert",no_matching_estimates:"Es gibt keine \xFCbereinstimmenden Kostenvoranschl\xE4ge!",mark_as_sent_successfully:"Kostenvoranschlag als gesendet markiert.",send_estimate_successfully:"Kostenvoranschlag erfolgreich gesendet",errors:{required:"Feld ist erforderlich"},accepted:"Angenommen",rejected:"Abgelehnt",sent:"Gesendet",draft:"Entwurf",declined:"Abgelehnt",new_estimate:"Neuer Kostenvoranschlag",add_new_estimate:"Neuen Kostenvoranschlag hinzuf\xFCgen",update_Estimate:"Kostenvoranschlag aktualisieren",edit_estimate:"Kostenvoranschlag \xE4ndern",items:"Artikel",Estimate:"Kostenvoranschlag | Kostenvoranschl\xE4ge",add_new_tax:"neuen Steuersatz hinzuf\xFCgen",no_estimates:"Keine Kostenvoranschl\xE4ge vorhanden!",list_of_estimates:"Dieser Abschnitt enth\xE4lt die Liste der Kostenvoranschl\xE4ge.",mark_as_rejected:"Markiert als abgelehnt",mark_as_accepted:"Markiert als angenommen",marked_as_accepted_message:"Kostenvoranschlag als angenommen markiert",marked_as_rejected_message:"Kostenvoranschlag als abgelehnt markiert",confirm_delete:"Der Kostenvoranschlag kann nicht wiederhergestellt werden | Die Kostenvoranschl\xE4ge k\xF6nnen nicht wiederhergestellt werden",created_message:"Kostenvoranschlag erfolgreich erstellt",updated_message:"Kostenvoranschlag erfolgreich aktualisiert",deleted_message:"Kostenvoranschlag erfolgreich gel\xF6scht | Kostenvoranschl\xE4ge erfolgreich gel\xF6scht",something_went_wrong:"Da ging etwas schief",item:{title:"Titel",description:"Beschreibung",quantity:"Menge",price:"Preis",discount:"Rabatt",total:"Gesamt",total_discount:"Rabatt Gesamt",sub_total:"Zwischensumme",tax:"Steuer",amount:"Summe",select_an_item:"W\xE4hlen Sie einen Artikel",type_item_description:"Artikel Beschreibung (optional)"}},zd={title:"Rechnungen",invoices_list:"Liste der Rechnungen",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahre",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlt",viewed:"Gesehen",overdue:"\xDCberf\xE4llig",completed:"Abgeschlossen",customer:"KUNDEN",paid_status:"BEZAHLT-STATUS",ref_no:"REF. - NR.",number:"ANZAHL",amount_due:"OFFENER BETRAG",partially_paid:"Teilzahlung",total:"Gesamt",discount:"Rabatt",sub_total:"Zwischensumme",invoice:"Rechnung | Rechnungen",invoice_number:"Rechnungsnummer",ref_number:"Ref-Nummer",contact:"Kontakt",add_item:"F\xFCgen Sie ein Artikel hinzu",date:"Datum",due_date:"F\xE4lligkeit",status:"Status",add_tax:"Steuersatz hinzuf\xFCgen",amount:"Summe",action:"Aktion",notes:"Hinweise",view:"Anzeigen",send_invoice:"Rechnung senden",resend_invoice:"Rechnung erneut senden",invoice_template:"Rechnungs-Vorlage",template:"Vorlage",mark_as_sent:"Als gesendet markieren",confirm_send_invoice:"Diese Rechnung wird per E-Mail an den Kunden gesendet",invoice_mark_as_sent:"Diese Rechnung wird als gesendet markiert",confirm_send:"Diese Rechnung wird per E-Mail an den Kunden gesendet",invoice_date:"Rechnungsdatum",record_payment:"Zahlung erfassen",add_new_invoice:"Neue Rechnung hinzuf\xFCgen",update_expense:"Kosten aktualisieren",edit_invoice:"Rechnung bearbeiten",new_invoice:"Neue Rechnung",save_invoice:"Rechnung speichern",update_invoice:"Rechnung \xE4ndern",add_new_tax:"Neuen Steuersatz hinzuf\xFCgen",no_invoices:"Keine Rechnungen vorhanden!",list_of_invoices:"Dieser Abschnitt enth\xE4lt die Liste der Rechnungen.",select_invoice:"W\xE4hlen Sie eine Rechnung",no_matching_invoices:"Es gibt keine entsprechenden Rechnungen!",mark_as_sent_successfully:"Rechnung gekennzeichnet als erfolgreich gesendet",invoice_sent_successfully:"Rechnung erfolgreich versendet",cloned_successfully:"Rechnung erfolgreich kopiert",clone_invoice:"Rechnung kopieren",confirm_clone:"Diese Rechnung wird kopiert",item:{title:"Titel",description:"Beschreibung",quantity:"Menge",price:"Preis",discount:"Rabatt",total:"Gesamt",total_discount:"Rabatt Gesamt",sub_total:"Zwischensumme",tax:"Steuer",amount:"Summe",select_an_item:"Geben Sie oder w\xE4hlen Sie ein Artikel",type_item_description:"Artikel Beschreibung (optional)"},confirm_delete:"Sie k\xF6nnen diese Rechnung nicht wiederherstellen. | Sie k\xF6nnen diese Rechnungen nicht wiederherstellen.",created_message:"Rechnung erfolgreich erstellt",updated_message:"Rechnung erfolgreich aktualisiert",deleted_message:"Rechnung erfolgreich gel\xF6scht | Rechnungen erfolgreich gel\xF6scht",marked_as_sent_message:"Rechnung als erfolgreich gesendet markiert",something_went_wrong:"Da ist etwas schief gelaufen",invalid_due_amount_message:"Der Gesamtrechnungsbetrag darf nicht kleiner sein als der f\xFCr diese Rechnung bezahlte Gesamtbetrag. Bitte aktualisieren Sie die Rechnung oder l\xF6schen Sie die zugeh\xF6rigen Zahlungen um fortzufahren."},Sd={title:"Zahlungen",payments_list:"Liste der Zahlungen",record_payment:"Zahlung eintragen",customer:"Kunden",date:"Datum",amount:"Summe",action:"Aktion",payment_number:"Zahlungsnummer",payment_mode:"Zahlungsart",invoice:"Rechnung",note:"Hinweis",add_payment:"Zahlung hinzuf\xFCgen",new_payment:"Neue Zahlung",edit_payment:"Zahlung bearbeiten",view_payment:"Zahlung anzeigen",add_new_payment:"Neue Zahlung hinzuf\xFCgen",send_payment_receipt:"Zahlungsbeleg senden",send_payment:"Senden Sie die Zahlung",save_payment:"Zahlung speichern",update_payment:"Zahlung \xE4ndern",payment:"Zahlung | Zahlungen",no_payments:"Keine Zahlungen vorhanden!",not_selected:"Nicht ausgew\xE4hlt",no_invoice:"Keine Rechnung",no_matching_payments:"Es gibt keine passenden Zahlungen!",list_of_payments:"Dieser Abschnitt enth\xE4lt die Liste der Zahlungen.",select_payment_mode:"W\xE4hlen Sie den Zahlungsmodus",confirm_mark_as_sent:"Dieser Kostenvoranschlag wird als gesendet markiert",confirm_send_payment:"Diese Zahlung wird per E-Mail an den Kunden gesendet",send_payment_successfully:"Zahlung erfolgreich gesendet",something_went_wrong:"Da ist etwas schief gelaufen",confirm_delete:"Sie k\xF6nnen diese Zahlung nicht wiederherstellen. | Sie k\xF6nnen diese Zahlungen nicht wiederherstellen.",created_message:"Zahlung erfolgreich erstellt",updated_message:"Zahlung erfolgreich aktualisiert",deleted_message:"Zahlung erfolgreich gel\xF6scht | Zahlungen erfolgreich gel\xF6scht",invalid_amount_message:"Zahlungsbetrag ist ung\xFCltig"},jd={title:"Aufwendungen/Ausgaben",expenses_list:"Liste der Ausgaben",select_a_customer:"W\xE4hlen Sie einen Kunden",expense_title:"Titel",customer:"Kundin",contact:"Kontakt",category:"Kategorie",from_date:"Von Datum",to_date:"bis Datum",expense_date:"Datum",description:"Beschreibung",receipt:"Eingang",amount:"Summe",not_selected:"Nicht ausgew\xE4hlt",action:"Aktion",note:"Hinweis",category_id:"Kategorie-Id",date:"Aufwandsdatum",add_expense:"Aufwendung hinzuf\xFCgen",add_new_expense:"Neue Aufwendung hinzuf\xFCgen",save_expense:"Aufwendung speichern",update_expense:"Aufwendung aktualisieren",download_receipt:"Quittung herunterladen",edit_expense:"Aufwendung \xE4ndern",new_expense:"Neue Aufwendung",expense:"Aufwendung | Aufwendungen",no_expenses:"Noch keine Ausgaben!",list_of_expenses:"Dieser Abschnitt enth\xE4lt die Liste der Ausgaben.",confirm_delete:"Sie k\xF6nnen diese Ausgabe nicht wiederherstellen. | Sie k\xF6nnen diese Ausgaben nicht wiederherstellen.",created_message:"Aufwand erfolgreich erstellt",updated_message:"Aufwand erfolgreich aktualisiert",deleted_message:"Aufwand erfolgreich gel\xF6scht | Aufwand erfolgreich gel\xF6scht",categories:{categories_list:"Liste der Kategorien",title:"Titel",name:"Name",description:"Beschreibung",amount:"Summe",actions:"Aktionen",add_category:"Kategorie hinzuf\xFCgen",new_category:"Neue Kategorie",category:"Kategorie | Kategorien",select_a_category:"W\xE4hlen Sie eine Kategorie"}},Pd={email:"E-Mail",password:"Passwort",forgot_password:"Passwort vergessen?",or_signIn_with:"oder Anmelden mit",login:"Anmelden",register:"Registrieren",reset_password:"Passwort zur\xFCcksetzen",password_reset_successfully:"Passwort erfolgreich zur\xFCckgesetzt",enter_email:"Geben Sie Ihre E-Mail ein",enter_password:"Geben Sie das Passwort ein",retype_password:"Passwort best\xE4tigen"},Dd={title:"Benutzer",users_list:"Benutzerliste",name:"Name",description:"Beschreibung",added_on:"Hinzugef\xFCgt am",date_of_creation:"Erstellt am",action:"Aktion",add_user:"Benutzer hinzuf\xFCgen",save_user:"Benutzer speichern",update_user:"Benutzer aktualisieren",user:"Benutzer",add_new_user:"Neuen Benutzer hinzuf\xFCgen",new_user:"Neuer Benutzer",edit_user:"Benutzer bearbeiten",no_users:"Noch keine Benutzer!",list_of_users:"Dieser Abschnitt enth\xE4lt die Liste der Benutzer.",email:"E-Mail",phone:"Telefon",password:"Passwort",user_attached_message:"Ein Artikel der bereits verwendet wird kann nicht gel\xF6scht werden",confirm_delete:"Sie werden diesen Benutzer nicht wiederherstellen k\xF6nnen | Sie werden nicht in der Lage sein, diese Benutzer wiederherzustellen",created_message:"Benutzer erfolgreich erstellt",updated_message:"Benutzer wurde erfolgreich aktualisiert",deleted_message:"Benutzer erfolgreich gel\xF6scht | Benutzer erfolgreich gel\xF6scht"},Cd={title:"Bericht",from_date:"Ab Datum",to_date:"bis Datum",status:"Status",paid:"Bezahlt",unpaid:"Unbezahlt",download_pdf:"PDF herunterladen",view_pdf:"PDF anzeigen",update_report:"Bericht aktualisieren",report:"Bericht | Berichte",profit_loss:{profit_loss:"Gewinn & Verlust",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"},sales:{sales:"Umsatz",date_range:"Datumsbereich ausw\xE4hlen",to_date:"bis Datum",from_date:"Ab Datum",report_type:"Berichtstyp"},taxes:{taxes:"Steuern",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"},errors:{required:"Feld ist erforderlich"},invoices:{invoice:"Rechnung",invoice_date:"Rechnungsdatum",due_date:"F\xE4lligkeit",amount:"Summe",contact_name:"Ansprechpartner",status:"Status"},estimates:{estimate:"Kostenvoranschlag",estimate_date:"Datum Kostenvoranschlag",due_date:"F\xE4lligkeit",estimate_number:"Kostenvoranschlag-Nr.",ref_number:"Ref-Nummer",amount:"Summe",contact_name:"Ansprechpartner",status:"Status"},expenses:{expenses:"Aufwendungen",category:"Kategorie",date:"Datum",amount:"Summe",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"}},Ad={menu_title:{account_settings:"Konto-Einstellungen",company_information:"Informationen zum Unternehmen",customization:"Anpassung",preferences:"Einstellungen",notifications:"Benachrichtigungen",tax_types:"Steuers\xE4tze",expense_category:"Ausgabenkategorien",update_app:"Applikation aktualisieren",backup:"Sicherung",file_disk:"Dateispeicher",custom_fields:"Benutzerdefinierte Felder",payment_modes:"Zahlungsarten",notes:"Hinweise"},title:"Einstellungen",setting:"Einstellung | Einstellungen",general:"Allgemeine",language:"Sprache",primary_currency:"Prim\xE4re W\xE4hrung",timezone:"Zeitzone",date_format:"Datum-Format",currencies:{title:"W\xE4hrungen",currency:"W\xE4hrung | W\xE4hrungen",currencies_list:"W\xE4hrungen Liste",select_currency:"W\xE4hrung w\xE4hlen",name:"Name",code:"Code",symbol:"Symbol",precision:"Pr\xE4zision",thousand_separator:"Tausendertrennzeichen",decimal_separator:"Dezimal-Trennzeichen",position:"Position",position_of_symbol:"Position des W\xE4hrungssymbol",right:"Rechts",left:"Links",action:"Aktion",add_currency:"W\xE4hrung einf\xFCgen"},mail:{host:"E-Mail Mailserver",port:"E-Mail Port",driver:"E-Mail Treiber",secret:"Verschl\xFCsselung",mailgun_secret:"Mailgun Verschl\xFCsselung",mailgun_domain:"Mailgun Adresse",mailgun_endpoint:"Mailgun-Endpunkt",ses_secret:"SES Verschl\xFCsselung",ses_key:"SES-Taste",password:"E-Mail-Kennwort",username:"E-Mail-Benutzername",mail_config:"E-Mail-Konfiguration",from_name:"Von E-Mail-Namen",from_mail:"Von E-Mail-Adresse",encryption:"E-Mail-Verschl\xFCsselung",mail_config_desc:"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails \xFCber die App. Sie k\xF6nnen auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},pdf:{title:"PDF-Einstellung",footer_text:"Fu\xDFzeile Text",pdf_layout:"PDF-Layout"},company_info:{company_info:"Firmeninfo",company_name:"Name des Unternehmens",company_logo:"Firmenlogo",section_description:"Informationen zu Ihrem Unternehmen, die auf Rechnungen, Kostenvoranschl\xE4gen und anderen von Crater erstellten Dokumenten angezeigt werden.",phone:"Telefon",country:"Land",state:"Bundesland",city:"Stadt",address:"Adresse",zip:"PLZ",save:"Speichern",updated_message:"Unternehmensinformationen wurden erfolgreich aktualisiert"},custom_fields:{title:"Benutzerdefinierte Felder",section_description:"Passen Sie Ihre Rechnungen, Kostenvoranschl\xE4ge und Zahlungseinnahmen mit Ihren eigenen Feldern an. Benutzen Sie die unten aufgef\xFChrten Felder in den Adressformaten auf der Seite Anpassungseinstellungen.",add_custom_field:"Benutzerdefiniertes Feld hinzuf\xFCgen",edit_custom_field:"Benutzerdefiniertes Feld bearbeiten",field_name:"Feldname",label:"Etikette",type:"Art",name:"Name",required:"Erforderlich",placeholder:"Platzhalter",help_text:"Hilfstext",default_value:"Standardwert",prefix:"Pr\xE4fix",starting_number:"Startnummer",model:"Modell",help_text_description:"Geben Sie einen Text ein, damit Benutzer den Zweck dieses benutzerdefinierten Felds verstehen.",suffix:"Vorzeichen",yes:"Ja",no:"Nein",order:"Auftrag",custom_field_confirm_delete:"Sie k\xF6nnen dieses benutzerdefinierte Feld nicht wiederherstellen",already_in_use:"Benutzerdefiniertes Feld wird bereits verwendet",deleted_message:"Benutzerdefiniertes Feld erfolgreich gel\xF6scht",options:"Optionen",add_option:"Optionen hinzuf\xFCgen",add_another_option:"F\xFCgen Sie eine weitere Option hinzu",sort_in_alphabetical_order:"In alphabetischer Reihenfolge sortieren",add_options_in_bulk:"F\xFCgen Sie Optionen in gro\xDFen Mengen hinzu",use_predefined_options:"Verwenden Sie vordefinierte Optionen",select_custom_date:"W\xE4hlen Sie Benutzerdefiniertes Datum",select_relative_date:"W\xE4hlen Sie Relatives Datum",ticked_by_default:"Standardm\xE4\xDFig aktiviert",updated_message:"Benutzerdefiniertes Feld erfolgreich aktualisiert",added_message:"Benutzerdefiniertes Feld erfolgreich hinzugef\xFCgt"},customization:{customization:"Anpassung",save:"Speichern",addresses:{title:"Adressen",section_description:"Sie k\xF6nnen die Rechnungsadresse und das Versandadressenformat des Kunden festlegen (nur in PDF angezeigt). ",customer_billing_address:"Rechnungsadresse des Kunden",customer_shipping_address:"Versand-Adresse des Kunden",company_address:"Firma Adresse",insert_fields:"Felder einf\xFCgen",contact:"Kontakt",address:"Adresse",display_name:"Anzeigename",primary_contact_name:"Ansprechpartner",email:"E-Mail",website:"Webseite",name:"Name",country:"Land",state:"Bundesland",city:"Stadt",company_name:"Name des Unternehmens",address_street_1:"Strasse",address_street_2:"Zusatz Strasse",phone:"Telefon",zip_code:"PLZ",address_setting_updated:"Adresse-Einstellung erfolgreich aktualisiert"},updated_message:"Unternehmensinformationen wurden erfolgreich aktualisiert",invoices:{title:"Rechnungen",notes:"Hinweise",invoice_prefix:"Rechnung Pr\xE4fix",invoice_number_length:"Rechnungsnummerl\xE4nge",default_invoice_email_body:"Standard Rechnung E-Mail Inhalt",invoice_settings:"Rechnungseinstellungen",autogenerate_invoice_number:"Rechnungsnummer automatisch generieren",autogenerate_invoice_number_desc:"Deaktivieren Sie diese Option, wenn Sie Rechnungsnummern nicht jedes Mal automatisch generieren m\xF6chten, wenn Sie eine neue Rechnung erstellen.",enter_invoice_prefix:"Rechnungspr\xE4fix eingeben",terms_and_conditions:"Allgemeine Gesch\xE4ftsbedingungen",company_address_format:"Firmenadressformat",shipping_address_format:"Versandadressen Format",billing_address_format:"Rechnungsadressen Format",invoice_settings_updated:"Rechnungseinstellung erfolgreich aktualisiert"},estimates:{title:"Kostenvoranschl\xE4ge",estimate_prefix:"Kostenvoranschlag Pr\xE4fix",estimate_number_length:"Angebotsnummerl\xE4nge",default_estimate_email_body:"Rechnung - E-Mail Text",estimate_settings:"Einstellungen Kostenvoranschlag",autogenerate_estimate_number:"Kostenvoranschlagsnummer automatisch generieren",estimate_setting_description:"Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie einen neue Kostenvoranschlag erstellen, automatisch eine Sch\xE4tzung generieren m\xF6chten.",enter_estimate_prefix:"Geben Sie das Kostenvoranschlag Pr\xE4fix ein",estimate_setting_updated:"Einstellungen Kostenvoranschl\xE4ge erfolgreich aktualisiert",company_address_format:"Firmenadresse Format",billing_address_format:"Rechnungsadressen Format",shipping_address_format:"Versandadressen Format"},payments:{title:"Zahlungen",description:"Transaktionsmodi f\xFCr Zahlungen",payment_prefix:"Zahlung Pr\xE4fix",payment_number_length:"Zahlungsnummerl\xE4nge",default_payment_email_body:"Zahlung - E-Mail Text",payment_settings:"Zahlung Einstellungen",autogenerate_payment_number:"Zahlungsnummer automatisch generieren",payment_setting_description:"Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie eine neue Zahlung erstellen, automatisch Zahlungsnummern generieren m\xF6chten.",enter_payment_prefix:"Zahlungspr\xE4fix eingeben",payment_setting_updated:"Zahlungseinstellung erfolgreich aktualisiert",payment_modes:"Zahlungsarten",add_payment_mode:"Zahlungsmethode hinzuf\xFCgen",edit_payment_mode:"Zahlungsmodus bearbeiten",mode_name:"Methodenname",payment_mode_added:"Zahlungsmethode hinzugef\xFCgt",payment_mode_updated:"Zahlungsmethode aktualisiert",payment_mode_confirm_delete:"Du kannst diese Zahlungsmethode nicht wiederherstellen",already_in_use:"Zahlungsmethode bereits in Verwendung",deleted_message:"Zahlungsmethode erfolgreich",company_address_format:"Firmenadressformat",from_customer_address_format:"Rechnungsadressen Format"},items:{title:"Artikel",units:"Einheiten",add_item_unit:"Artikeleinheit hinzuf\xFCgen",edit_item_unit:"Elementeinheit bearbeiten",unit_name:"Einheitname",item_unit_added:"Artikeleinheit hinzugef\xFCgt",item_unit_updated:"Artikeleinheit aktualisiert",item_unit_confirm_delete:"Du kannst diese Artikeleinheit nicht wiederherstellen",already_in_use:"Diese Artikeleinheit ist bereits in Verwendung",deleted_message:"Artikeleinheit erfolgreich gel\xF6scht"},notes:{title:"Hinweise",description:"Sparen Sie Zeit, indem Sie Notizen erstellen und diese auf Ihren Rechnungen, Kostenvoranschl\xE4gen und Zahlungen wiederverwenden.",notes:"Hinweise",type:"Art",add_note:"Notiz hinzuf\xFCgen",add_new_note:"Neue Notiz hinzuf\xFCgen",name:"Name",edit_note:"Notiz bearbeiten",note_added:"Notiz erfolgreich hinzugef\xFCgt",note_updated:"Notiz erfolgreich aktualisiert",note_confirm_delete:"Dieser Hinweis wird unwiderruflich gel\xF6scht",already_in_use:"Hinweis bereits in verwendet",deleted_message:"Notiz erfolgreich gel\xF6scht"}},account_settings:{profile_picture:"Profil Bild",name:"Name",email:"E-Mail",password:"Passwort",confirm_password:"Kennwort Best\xE4tigen",account_settings:"Konto-Einstellungen",save:"Speichern",section_description:"Sie k\xF6nnen Ihren Namen, Ihre E-Mail-Adresse und Ihr Passwort mit dem folgenden Formular aktualisieren.",updated_message:"Kontoeinstellungen erfolgreich aktualisiert"},user_profile:{name:"Name",email:"E-Mail",password:"Passwort",confirm_password:"Kennwort best\xE4tigen"},notification:{title:"Benachrichtigung",email:"Benachrichtigungen senden an",description:"Welche E-Mail-Benachrichtigungen m\xF6chten Sie erhalten wenn sich etwas \xE4ndert?",invoice_viewed:"Rechnung angezeigt",invoice_viewed_desc:"Wenn Ihr Kunde die gesendete Rechnung anzeigt bekommt.",estimate_viewed:"Kostenvoranschlag angesehen",estimate_viewed_desc:"Wenn Ihr Kunde den gesendeten Kostenvoranschlag anzeigt bekommt.",save:"Speichern",email_save_message:"Email erfolgreich gespeichert",please_enter_email:"Bitte E-Mail eingeben"},tax_types:{title:"Steuers\xE4tze",add_tax:"Steuers\xE4tze hinzuf\xFCgen",edit_tax:"Steuer bearbeiten",description:"Sie k\xF6nnen Steuern nach Belieben hinzuf\xFCgen oder entfernen. Crater unterst\xFCtzt Steuern auf einzelne Artikel sowie auf die Rechnung.",add_new_tax:"Neuen Steuersatz hinzuf\xFCgen",tax_settings:"Einstellungen Steuersatz",tax_per_item:"Steuersatz pro Artikel",tax_name:"Name des Steuersatzes",compound_tax:"zusammengesetzte Steuer",percent:"Prozent",action:"Aktion",tax_setting_description:"Aktivieren Sie diese Option, wenn Sie den Steuersatz zu einzelnen Rechnungspositionen hinzuf\xFCgen m\xF6chten. Standardm\xE4\xDFig wird der Steuersatz direkt zur Rechnung hinzugef\xFCgt.",created_message:"Steuersatz erfolgreich erstellt",updated_message:"Steuersatz erfolgreich aktualisiert",deleted_message:"Steuersatz erfolgreich gel\xF6scht",confirm_delete:"Sie k\xF6nnen diesen Steuersatz nicht wiederherstellen",already_in_use:"Steuersatz wird bereits verwendet"},expense_category:{title:"Kategorien Kosten",action:"Aktion",description:"F\xFCr das Hinzuf\xFCgen von Ausgabeneintr\xE4gen sind Kategorien erforderlich. Sie k\xF6nnen diese Kategorien nach Ihren W\xFCnschen hinzuf\xFCgen oder entfernen.",add_new_category:"Neue Kategorie hinzuf\xFCgen",add_category:"Kategorie hinzuf\xFCgen",edit_category:"Kategorie bearbeiten",category_name:"Kategorie Name",category_description:"Beschreibung",created_message:"Ausgabenkategorie erfolgreich erstellt",deleted_message:"Ausgabenkategorie erfolgreich gel\xF6scht",updated_message:"Ausgabenkategorie erfolgreich aktualisiert",confirm_delete:"Sie k\xF6nnen diese Ausgabenkategorie nicht wiederherstellen",already_in_use:"Kategorie wird bereits verwendet"},preferences:{currency:"W\xE4hrung",default_language:"Standardsprache",time_zone:"Zeitzone",fiscal_year:"Gesch\xE4ftsjahr",date_format:"Datum-Format",discount_setting:"Einstellung Rabatt",discount_per_item:"Rabatt pro Artikel ",discount_setting_description:"Aktivieren Sie diese Option, wenn Sie einzelnen Rechnungspositionen einen Rabatt hinzuf\xFCgen m\xF6chten. Standardm\xE4\xDFig wird der Rabatt direkt zur Rechnung hinzugef\xFCgt.",save:"Speichern",preference:"Pr\xE4ferenz | Pr\xE4ferenzen",general_settings:"Standardeinstellungen f\xFCr das System.",updated_message:"Einstellungen erfolgreich aktualisiert",select_language:"Sprache ausw\xE4hlen",select_time_zone:"Zeitzone ausw\xE4hlen",select_date_format:"W\xE4hle das Datumsformat",select_financial_year:"Gesch\xE4ftsjahr ausw\xE4hlen"},update_app:{title:"Applikation aktualisieren",description:"Sie k\xF6nnen Crater ganz einfach aktualisieren, indem Sie auf die Schaltfl\xE4che unten klicken, um nach einem neuen Update zu suchen.",check_update:"Nach Updates suchen",avail_update:"Neues Update verf\xFCgbar",next_version:"N\xE4chste Version",requirements:"Voraussetzungen",update:"Jetzt aktualisieren",update_progress:"Update l\xE4uft ...",progress_text:"Es dauert nur ein paar Minuten. Bitte aktualisieren Sie den Bildschirm nicht und schlie\xDFen Sie das Fenster nicht, bevor das Update abgeschlossen ist.",update_success:"App wurde aktualisiert! Bitte warten Sie, w\xE4hrend Ihr Browserfenster automatisch neu geladen wird.",latest_message:"Kein Update verf\xFCgbar! Du bist auf der neuesten Version.",current_version:"Aktuelle Version",download_zip_file:"Laden Sie die ZIP-Datei herunter",unzipping_package:"Paket entpacken",copying_files:"Dateien kopieren",running_migrations:"Ausf\xFChren von Migrationen",finishing_update:"Update beenden",update_failed:"Update fehlgeschlagen",update_failed_text:"Es tut uns leid! Ihr Update ist am folgenden Schritt fehlgeschlagen: {step}"},backup:{title:"Sicherung | Sicherungen",description:"Die Sicherung ist eine ZIP-Datei, die alle Dateien der ausgew\xE4hlten Pfade und eine Kopie der Datenbank enth\xE4lt",new_backup:"Neues Backup",create_backup:"Datensicherung erstellen",select_backup_type:"W\xE4hlen Sie den Sicherungs-Typ",backup_confirm_delete:"Dieses Backup wird unwiderruflich gel\xF6scht",path:"Pfad",new_disk:"Speicher hinzuf\xFCgen",created_at:"erstellt am",size:"Gr\xF6\xDFe",dropbox:"Dropbox",local:"Lokal",healthy:"intakt",amount_of_backups:"Menge an Sicherungen",newest_backups:"Neuste Sicherung",used_storage:"Verwendeter Speicher",select_disk:"Speicher ausw\xE4hlen",action:"Aktion",deleted_message:"Sicherung erfolgreich gel\xF6scht",created_message:"Backup erfolgreich erstellt",invalid_disk_credentials:"Ung\xFCltige Anmeldeinformationen f\xFCr ausgew\xE4hlten Speicher"},disk:{title:"Dateispeicher | Dateispeicher",description:"Standardm\xE4\xDFig verwendet Crater Ihre lokale Festplatte zum Speichern von Sicherungen, Avatar und anderen Bilddateien. Sie k\xF6nnen mehr als einen Speicherort wie DigitalOcean, S3 und Dropbox nach Ihren W\xFCnschen konfigurieren.",created_at:"erstellt am",dropbox:"Dropbox",name:"Name",driver:"Treiber",disk_type:"Art",disk_name:"Speicher Bezeichnung",new_disk:"Speicher hinzuf\xFCgen",filesystem_driver:"Dateisystem-Treiber",local_driver:"Lokaler Treiber",local_root:"lokaler Pfad",public_driver:"\xD6ffentlicher Treiber",public_root:"\xD6ffentlicher Pfad",public_url:"\xD6ffentliche URL",public_visibility:"\xD6ffentliche Sichtbarkeit",media_driver:"Medientreiber",media_root:"Medienpfad",aws_driver:"AWS-Treiber",aws_key:"AWS-Schl\xFCssel",aws_secret:"AWS-Geheimnis",aws_region:"AWS-Region",aws_bucket:"AWS Bucket",aws_root:"AWS-Pfad",do_spaces_type:"Do Spaces-Typ",do_spaces_key:"Do Spaces-Schl\xFCssel",do_spaces_secret:"Do Spaces-Geheimnis",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Standard-Treiber",is_default:"Standard",set_default_disk:"Als Standard festlegen",success_set_default_disk:"Speicher wurde als Standard festgelegt",save_pdf_to_disk:"PDFs auf Festplatte speichern",disk_setting_description:" Aktivieren Sie dies, um eine Kopie von jeder Rechnung, jedem Kostenvoranschlag & jedem Zahlungsbelegung als PDF automatisch auf ihrem Standard-Speicher abzulegen. Wenn Sie diese Option aktivieren, verringert sich die Ladezeit beim Betrachten der PDFs.",select_disk:"Speicherort ausw\xE4hlen",disk_settings:"Speichermedienkonfiguration",confirm_delete:"Ihre existierenden Dateien und Ordner auf der angegebenen Festplatte werden nicht beeinflusst, aber Dieser Speicherort wird aus Crater gel\xF6scht",action:"Aktion",edit_file_disk:"Edit File Disk",success_create:"Speicher erfolgreich hinzugef\xFCgt",success_update:"Speicher erfolgreich bearbeitet",error:"Hinzuf\xFCgen des Speichers gescheitert",deleted_message:"Speicher erfolgreich gel\xF6scht",disk_variables_save_successfully:"Speicher erfolgreich konfiguriert",disk_variables_save_error:"Konfiguration des Speicher gescheitert",invalid_disk_credentials:"Ung\xFCltige Anmeldeinformationen f\xFCr ausgew\xE4hlten Speicher"}},Ed={account_info:"Account-Informationen",account_info_desc:"Die folgenden Details werden zum Erstellen des Hauptadministratorkontos verwendet. Sie k\xF6nnen die Details auch jederzeit nach dem Anmelden \xE4ndern.",name:"Name",email:"E-Mail",password:"Passwort",confirm_password:"Passwort best\xE4tigen",save_cont:"Speichern und weiter",company_info:"Unternehmensinformationen",company_info_desc:"Diese Informationen werden auf Rechnungen angezeigt. Beachten Sie, dass Sie diese sp\xE4ter auf der Einstellungsseite bearbeiten k\xF6nnen.",company_name:"Firmenname",company_logo:"Firmenlogo",logo_preview:"Vorschau Logo",preferences:"Einstellungen",preferences_desc:"Standardeinstellungen f\xFCr das System.",country:"Land",state:"Bundesland",city:"Stadt",address:"Adresse",street:"Stra\xDFe1 | Stra\xDFe2",phone:"Telefon",zip_code:"Postleitzahl",go_back:"Zur\xFCck",currency:"W\xE4hrung",language:"Sprache",time_zone:"Zeitzone",fiscal_year:"Gesch\xE4ftsjahr",date_format:"Datumsformat",from_address:"Absender",username:"Benutzername",next:"Weiter",continue:"Weiter",skip:"\xDCberspringen",database:{database:"URL der Seite & Datenbank",connection:"Datenbank Verbindung",host:"Datenbank Host",port:"Datenbank Port",password:"Datenbank Passwort",app_url:"App-URL",app_domain:"Domain der App",username:"Datenbank Benutzername",db_name:"Datenbank Name",db_path:"Datenbankpfad",desc:"Erstellen Sie eine Datenbank auf Ihrem Server und legen Sie die Anmeldeinformationen mithilfe des folgenden Formulars fest."},permissions:{permissions:"Berechtigungen",permission_confirm_title:"Sind Sie sicher, dass Sie fortfahren m\xF6chten?",permission_confirm_desc:"Pr\xFCfung der Berechtigung der Ordner fehlgeschlagen.",permission_desc:"Unten finden Sie eine Liste der Ordnerberechtigungen, die erforderlich sind, damit die App funktioniert. Wenn die Berechtigungspr\xFCfung fehlschl\xE4gt, m\xFCssen Sie Ihre Ordnerberechtigungen aktualisieren."},mail:{host:"E-Mail-Host",port:"E-Mail-Port",driver:"E-Mail-Treiber",secret:"Verschl\xFCsselung",mailgun_secret:"Mailgun Verschl\xFCsselung",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun-Endpunkt",ses_secret:"SES Verschl\xFCsselung",ses_key:"SES-Taste",password:"E-Mail-Passwort",username:"E-Mail-Benutzername",mail_config:"E-Mail-Konfiguration",from_name:"Von E-Mail-Absendername",from_mail:"Von E-Mail-Absenderadresse",encryption:"E-Mail-Verschl\xFCsselung",mail_config_desc:"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails \xFCber die App. Sie k\xF6nnen auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},req:{system_req:"System Anforderungen",php_req_version:"Php (version {version} erforderlich)",check_req:"Anforderungen pr\xFCfen",system_req_desc:"Crater hat einige Serveranforderungen. Stellen Sie sicher, dass Ihr Server die erforderliche PHP-Version und alle unten genannten Erweiterungen hat."},errors:{migrate_failed:"Migration ist Fehlgeschlagen",database_variables_save_error:"Konfiguration kann nicht in EN.env-Datei geschrieben werden. Bitte \xFCberpr\xFCfen Sie die Dateiberechtigungen.",mail_variables_save_error:"E-Mail-Konfiguration fehlgeschlagen.",connection_failed:"Datenbankverbindung fehlgeschlagen",database_should_be_empty:"Datenbank sollte leer sein"},success:{mail_variables_save_successfully:"E-Mail erfolgreich konfiguriert",database_variables_save_successfully:"Datenbank erfolgreich konfiguriert."}},Nd={invalid_phone:"Ung\xFCltige Telefonnummer",invalid_url:"Ung\xFCltige URL (Bsp.: http://www.craterapp.com)",invalid_domain_url:"Ung\xFCltige URL (Bsp.: craterapp.com)",required:"Feld ist erforderlich",email_incorrect:"Falsche E-Mail.",email_already_taken:"Die E-Mail ist bereits vergeben.",email_does_not_exist:"Benutzer mit der angegebenen E-Mail existiert nicht",item_unit_already_taken:"Die Artikeleinheit wurde bereits vergeben",payment_mode_already_taken:"Der Zahlungsmodus wurde bereits verwendet",send_reset_link:"Link zum Zur\xFCcksetzen senden",not_yet:"Noch erhalten? Erneut senden",password_min_length:"Password mu\xDF {count} Zeichen enthalten",name_min_length:"Name muss mindestens {count} Zeichen enthalten.",enter_valid_tax_rate:"Geben Sie einen g\xFCltige Steuersatz ein",numbers_only:"Nur Zahlen.",characters_only:"Nur Zeichen.",password_incorrect:"Passw\xF6rter m\xFCssen identisch sein",password_length:"Passwort muss {count} Zeichen lang sein.",qty_must_greater_than_zero:"Die Menge muss gr\xF6\xDFer als 0 sein.",price_greater_than_zero:"Preis muss gr\xF6\xDFer als 0 sein.",payment_greater_than_zero:"Die Zahlung muss gr\xF6\xDFer als 0 sein.",payment_greater_than_due_amount:"Die eingegebene Zahlung ist mehr als der f\xE4llige Betrag dieser Rechnung.",quantity_maxlength:"Die Menge sollte nicht gr\xF6\xDFer als 20 Ziffern sein.",price_maxlength:"Der Preis sollte nicht gr\xF6\xDFer als 20 Ziffern sein.",price_minvalue:"Der Preis sollte gr\xF6\xDFer als 0 sein.",amount_maxlength:"Der Betrag sollte nicht gr\xF6\xDFer als 20 Ziffern sein.",amount_minvalue:"Betrag sollte gr\xF6\xDFer als 0 sein.",description_maxlength:"Die Beschreibung sollte nicht l\xE4nger als 255 Zeichen sein.",subject_maxlength:"Der Betreff sollte nicht l\xE4nger als 100 Zeichen sein.",message_maxlength:"Die Nachricht sollte nicht l\xE4nger als 255 Zeichen sein.",maximum_options_error:"Maximal {max} Optionen ausgew\xE4hlt. Entfernen Sie zuerst eine ausgew\xE4hlte Option, um eine andere auszuw\xE4hlen.",notes_maxlength:"Notizen sollten nicht l\xE4nger als 255 Zeichen sein.",address_maxlength:"Die Adresse sollte nicht l\xE4nger als 255 Zeichen sein.",ref_number_maxlength:"Ref Number sollte nicht l\xE4nger als 255 Zeichen sein.",prefix_maxlength:"Das Pr\xE4fix sollte nicht l\xE4nger als 5 Zeichen sein.",something_went_wrong:"Da ist etwas schief gelaufen",number_length_minvalue:"Nummernl\xE4nge sollte gr\xF6\xDFer als 0 sein"},Td="Kostenvoranschlag",Id="Kostenvoran. Nummer",$d="Datum Kostenvoranschlag",Rd="Ablaufdatum",Fd="Rechnung",Md="Rechnungsnummer",Vd="Rechnungsdatum",Bd="F\xE4lligkeitsdatum",Od="Hinweise",Ld="Artikel",Ud="Menge",Kd="Preis",qd="Rabatt",Zd="Summe",Wd="Zwischensumme",Hd="Gesamt",Gd="Zahlung",Yd="Zahlungsbeleg",Jd="Zahlungsdatum",Xd="Zahlungsnummer",Qd="Zahlungsart",el="Betrag erhalten",tl="Ausgaben Bericht",al="Gesamtausgaben",sl="Gewinn & Verlust Bericht",nl="Kundenverkaufs Bericht",il="Artikelverkaufs Bericht",ol="Steuer Bericht",rl="Einkommen",dl="Nettogewinn",ll="Umsatzbericht: Nach Kunde",cl="GESAMTUMSATZ",_l="Umsatzbericht: Nach Artikel",ul="Umsatzsteuer BERICHT",ml="Gesamte Umsatzsteuer",pl="Steuers\xE4tze",gl="Gesamtausgaben",fl="Rechnungsempf\xE4nger,",hl="Versand an,",vl="Erhalten von:",yl="Skat";var bl={navigation:fd,general:hd,dashboard:vd,tax_types:yd,global_search:bd,customers:kd,items:wd,estimates:xd,invoices:zd,payments:Sd,expenses:jd,login:Pd,users:Dd,reports:Cd,settings:Ad,wizard:Ed,validation:Nd,pdf_estimate_label:Td,pdf_estimate_number:Id,pdf_estimate_date:$d,pdf_estimate_expire_date:Rd,pdf_invoice_label:Fd,pdf_invoice_number:Md,pdf_invoice_date:Vd,pdf_invoice_due_date:Bd,pdf_notes:Od,pdf_items_label:Ld,pdf_quantity_label:Ud,pdf_price_label:Kd,pdf_discount_label:qd,pdf_amount_label:Zd,pdf_subtotal:Wd,pdf_total:Hd,pdf_payment_label:Gd,pdf_payment_receipt_label:Yd,pdf_payment_date:Jd,pdf_payment_number:Xd,pdf_payment_mode:Qd,pdf_payment_amount_received_label:el,pdf_expense_report_label:tl,pdf_total_expenses_label:al,pdf_profit_loss_label:sl,pdf_sales_customers_label:nl,pdf_sales_items_label:il,pdf_tax_summery_label:ol,pdf_income_label:rl,pdf_net_profit_label:dl,pdf_customer_sales_report:ll,pdf_total_sales_label:cl,pdf_item_sales_label:_l,pdf_tax_report_label:ul,pdf_total_tax_label:ml,pdf_tax_types_label:pl,pdf_expenses_label:gl,pdf_bill_to:fl,pdf_ship_to:hl,pdf_received_from:vl,pdf_tax_label:yl};const kl={dashboard:"\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9",customers:"\u304A\u5BA2\u69D8",items:"\u30A2\u30A4\u30C6\u30E0",invoices:"\u8ACB\u6C42\u66F8",expenses:"\u7D4C\u8CBB",estimates:"\u898B\u7A4D\u308A",payments:"\u652F\u6255\u3044",reports:"\u30EC\u30DD\u30FC\u30C8",settings:"\u8A2D\u5B9A",logout:"\u30ED\u30B0\u30A2\u30A6\u30C8",users:"\u30E6\u30FC\u30B6\u30FC"},wl={add_company:"\u4F1A\u793E\u3092\u8FFD\u52A0",view_pdf:"PDF\u3092\u898B\u308B",copy_pdf_url:"PDFURL\u3092\u30B3\u30D4\u30FC\u3059\u308B",download_pdf:"PDF\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",save:"\u30BB\u30FC\u30D6",create:"\u4F5C\u6210\u3059\u308B",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",update:"\u66F4\u65B0",deselect:"\u9078\u629E\u3092\u89E3\u9664",download:"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",from_date:"\u65E5\u4ED8\u304B\u3089",to_date:"\u73FE\u5728\u307E\u3067",from:"\u304B\u3089",to:"\u306B",sort_by:"\u4E26\u3073\u66FF\u3048",ascending:"\u4E0A\u6607",descending:"\u964D\u9806",subject:"\u4EF6\u540D",body:"\u4F53",message:"\u30E1\u30C3\u30BB\u30FC\u30B8",send:"\u9001\u4FE1",go_back:"\u623B\u308B",back_to_login:"\u30ED\u30B0\u30A4\u30F3\u306B\u623B\u308B\uFF1F",home:"\u30DB\u30FC\u30E0\u30DB\u30FC\u30E0",filter:"\u30D5\u30A3\u30EB\u30BF",delete:"\u524A\u9664",edit:"\u7DE8\u96C6",view:"\u898B\u308B",add_new_item:"\u65B0\u3057\u3044\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",clear_all:"\u3059\u3079\u3066\u30AF\u30EA\u30A2",showing:"\u8868\u793A\u4E2D",of:"\u306E",actions:"\u884C\u52D5",subtotal:"\u5C0F\u8A08",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",fixed:"\u4FEE\u7E55",percentage:"\u30D1\u30FC\u30BB\u30F3\u30C6\u30FC\u30B8",tax:"\u7A0E\u91D1",total_amount:"\u5408\u8A08\u91D1\u984D",bill_to:"\u8ACB\u6C42\u66F8\u9001\u4ED8\u5148",ship_to:"\u9001\u308A\u5148",due:"\u671F\u9650",draft:"\u30C9\u30E9\u30D5\u30C8",sent:"\u9001\u4FE1\u6E08\u307F",all:"\u3059\u3079\u3066",select_all:"\u3059\u3079\u3066\u9078\u629E",choose_file:"\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3059\u308B\u306B\u306F\u3001\u3053\u3053\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044",choose_template:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",choose:"\u9078\u629E",remove:"\u524A\u9664\u3059\u308B",powered_by:"\u642D\u8F09",bytefury:"Bytefury",select_a_status:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u9078\u629E",select_a_tax:"\u7A0E\u91D1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",search:"\u63A2\u3059",are_you_sure:"\u672C\u6C17\u3067\u3059\u304B\uFF1F",list_is_empty:"\u30EA\u30B9\u30C8\u306F\u7A7A\u3067\u3059\u3002",no_tax_found:"\u7A0E\u91D1\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF01",four_zero_four:"404",you_got_lost:"\u304A\u3063\u3068\uFF01\u3042\u306A\u305F\u306F\u8FF7\u5B50\u306B\u306A\u308A\u307E\u3057\u305F\uFF01",go_home:"\u5BB6\u306B\u5E30\u308B",test_mail_conf:"\u30E1\u30FC\u30EB\u69CB\u6210\u306E\u30C6\u30B9\u30C8",send_mail_successfully:"\u30E1\u30FC\u30EB\u306F\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",setting_updated:"\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",select_state:"\u72B6\u614B\u3092\u9078\u629E",select_country:"\u56FD\u3092\u9078\u629E",select_city:"\u90FD\u5E02\u3092\u9078\u629E",street_1:"\u30B9\u30C8\u30EA\u30FC\u30C81",street_2:"2\u4E01\u76EE",action_failed:"\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u5931\u6557\u3057\u307E\u3057\u305F",retry:"\u30EA\u30C8\u30E9\u30A4",choose_note:"\u6CE8\u3092\u9078\u629E",no_note_found:"\u30E1\u30E2\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",insert_note:"\u30E1\u30E2\u3092\u633F\u5165",copied_pdf_url_clipboard:"PDF\u306EURL\u3092\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\uFF01"},xl={select_year:"\u5E74\u3092\u9078\u629E",cards:{due_amount:"\u6599\u91D1",customers:"\u304A\u5BA2\u69D8",invoices:"\u8ACB\u6C42\u66F8",estimates:"\u898B\u7A4D\u308A"},chart_info:{total_sales:"\u8CA9\u58F2",total_receipts:"\u9818\u53CE\u66F8",total_expense:"\u7D4C\u8CBB",net_income:"\u5F53\u671F\u7D14\u5229\u76CA",year:"\u5E74\u3092\u9078\u629E"},monthly_chart:{title:"\u8CA9\u58F2"},recent_invoices_card:{title:"\u671F\u65E5\u8ACB\u6C42\u66F8",due_on:"\u671F\u9650",customer:"\u304A\u5BA2\u69D8",amount_due:"\u6599\u91D1",actions:"\u884C\u52D5",view_all:"\u3059\u3079\u3066\u8868\u793A"},recent_estimate_card:{title:"\u6700\u8FD1\u306E\u898B\u7A4D\u3082\u308A",date:"\u65E5\u4ED8",customer:"\u304A\u5BA2\u69D8",amount_due:"\u6599\u91D1",actions:"\u884C\u52D5",view_all:"\u3059\u3079\u3066\u8868\u793A"}},zl={name:"\u540D\u524D",description:"\u8AAC\u660E",percent:"\u30D1\u30FC\u30BB\u30F3\u30C8",compound_tax:"\u8907\u5408\u7A0E"},Sl={search:"\u63A2\u3059...",customers:"\u304A\u5BA2\u69D8",users:"\u30E6\u30FC\u30B6\u30FC",no_results_found:"\u7D50\u679C\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},jl={title:"\u304A\u5BA2\u69D8",add_customer:"\u9867\u5BA2\u3092\u8FFD\u52A0",contacts_list:"\u9867\u5BA2\u30EA\u30B9\u30C8",name:"\u540D\u524D",mail:"\u30E1\u30FC\u30EB|\u30E1\u30FC\u30EB",statement:"\u30B9\u30C6\u30FC\u30C8\u30E1\u30F3\u30C8",display_name:"\u8868\u793A\u540D",primary_contact_name:"\u4E3B\u306A\u9023\u7D61\u5148\u540D",contact_name:"\u9023\u7D61\u5148",amount_due:"\u6599\u91D1",email:"E\u30E1\u30FC\u30EB",address:"\u4F4F\u6240",phone:"\u96FB\u8A71",website:"\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8",overview:"\u6982\u8981\u6982\u8981",enable_portal:"\u30DD\u30FC\u30BF\u30EB\u3092\u6709\u52B9\u306B\u3059\u308B",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",zip_code:"\u90F5\u4FBF\u756A\u53F7",added_on:"\u8FFD\u52A0\u3055\u308C\u305F",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",street_number:"\u8857\u8DEF\u756A\u53F7",primary_currency:"\u4E00\u6B21\u901A\u8CA8",description:"\u8AAC\u660E",add_new_customer:"\u65B0\u898F\u9867\u5BA2\u306E\u8FFD\u52A0",save_customer:"\u9867\u5BA2\u3092\u6551\u3046",update_customer:"\u9867\u5BA2\u306E\u66F4\u65B0",customer:"\u9867\u5BA2|\u304A\u5BA2\u69D8",new_customer:"\u65B0\u898F\u9867\u5BA2",edit_customer:"\u9867\u5BA2\u306E\u7DE8\u96C6",basic_info:"\u57FA\u672C\u60C5\u5831",billing_address:"\u8ACB\u6C42\u5148\u4F4F\u6240",shipping_address:"\u304A\u5C4A\u3051\u5148\u306E\u4F4F\u6240",copy_billing_address:"\u8ACB\u6C42\u304B\u3089\u30B3\u30D4\u30FC",no_customers:"\u307E\u3060\u304A\u5BA2\u69D8\u306F\u3044\u307E\u305B\u3093\uFF01",no_customers_found:"\u9867\u5BA2\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF01",no_contact:"\u63A5\u89E6\u7121\u3057",no_contact_name:"\u9023\u7D61\u5148\u540D\u306A\u3057",list_of_customers:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u9867\u5BA2\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",primary_display_name:"\u4E00\u6B21\u8868\u793A\u540D",select_currency:"\u901A\u8CA8\u3092\u9078\u629E",select_a_customer:"\u9867\u5BA2\u3092\u9078\u629E\u3059\u308B",type_or_click:"\u5165\u529B\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u9078\u629E",new_transaction:"\u65B0\u3057\u3044\u30C8\u30E9\u30F3\u30B6\u30AF\u30B7\u30E7\u30F3",no_matching_customers:"\u4E00\u81F4\u3059\u308B\u9867\u5BA2\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",phone_number:"\u96FB\u8A71\u756A\u53F7",create_date:"\u65E5\u4ED8\u3092\u4F5C\u6210\u3057\u307E\u3059",confirm_delete:"\u3053\u306E\u9867\u5BA2\u304A\u3088\u3073\u95A2\u9023\u3059\u308B\u3059\u3079\u3066\u306E\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3001\u304A\u3088\u3073\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002 |\u3053\u308C\u3089\u306E\u9867\u5BA2\u304A\u3088\u3073\u95A2\u9023\u3059\u308B\u3059\u3079\u3066\u306E\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3001\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",created_message:"\u9867\u5BA2\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u304A\u5BA2\u69D8\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u304A\u5BA2\u69D8\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u9867\u5BA2\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},Pl={title:"\u30A2\u30A4\u30C6\u30E0",items_list:"\u30A2\u30A4\u30C6\u30E0\u30EA\u30B9\u30C8",name:"\u540D\u524D",unit:"\u5358\u4F4D",description:"\u8AAC\u660E",added_on:"\u8FFD\u52A0\u3055\u308C\u305F",price:"\u4FA1\u683C",date_of_creation:"\u4F5C\u6210\u65E5",not_selected:"\u30A2\u30A4\u30C6\u30E0\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",add_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0",save_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u4FDD\u5B58",update_item:"\u30A2\u30A4\u30C6\u30E0\u306E\u66F4\u65B0",item:"\u30A2\u30A4\u30C6\u30E0|\u30A2\u30A4\u30C6\u30E0",add_new_item:"\u65B0\u3057\u3044\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",new_item:"\u65B0\u5546\u54C1",edit_item:"\u30A2\u30A4\u30C6\u30E0\u306E\u7DE8\u96C6",no_items:"\u307E\u3060\u30A2\u30A4\u30C6\u30E0\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_items:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u30A2\u30A4\u30C6\u30E0\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",select_a_unit:"\u30E6\u30CB\u30C3\u30C8\u3092\u9078\u629E",taxes:"\u7A0E\u91D1",item_attached_message:"\u3059\u3067\u306B\u4F7F\u7528\u4E2D\u306E\u30A2\u30A4\u30C6\u30E0\u306F\u524A\u9664\u3067\u304D\u307E\u305B\u3093",confirm_delete:"\u3053\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},Dl={title:"\u898B\u7A4D\u308A",estimate:"\u898B\u7A4D\u3082\u308A|\u898B\u7A4D\u308A",estimates_list:"\u898B\u7A4D\u3082\u308A\u30EA\u30B9\u30C8",days:"{days}\u65E5",months:"{months}\u6708",years:"{years}\u5E74",all:"\u3059\u3079\u3066",paid:"\u6709\u6599",unpaid:"\u672A\u6255\u3044",customer:"\u304A\u5BA2\u69D8",ref_no:"\u53C2\u7167\u756A\u53F7",number:"\u6570",amount_due:"\u6599\u91D1",partially_paid:"\u90E8\u5206\u7684\u306B\u652F\u6255\u308F\u308C\u305F",total:"\u5408\u8A08",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",sub_total:"\u5C0F\u8A08",estimate_number:"\u898B\u7A4D\u3082\u308A\u756A\u53F7",ref_number:"\u53C2\u7167\u756A\u53F7",contact:"\u9023\u7D61\u5148",add_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",date:"\u65E5\u4ED8",due_date:"\u671F\u65E5",expiry_date:"\u6709\u52B9\u671F\u9650",status:"\u72B6\u614B",add_tax:"\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",notes:"\u30CE\u30FC\u30C8",tax:"\u7A0E\u91D1",estimate_template:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",convert_to_invoice:"\u8ACB\u6C42\u66F8\u306B\u5909\u63DB",mark_as_sent:"\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",send_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u9001\u4FE1",resend_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u518D\u9001",record_payment:"\u652F\u6255\u3044\u306E\u8A18\u9332",add_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",save_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u4FDD\u5B58",confirm_conversion:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u3001\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u3092\u4F5C\u6210\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002",conversion_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",confirm_send_estimate:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u3001\u96FB\u5B50\u30E1\u30FC\u30EB\u3067\u304A\u5BA2\u69D8\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",confirm_mark_as_sent:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_mark_as_accepted:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u627F\u8A8D\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_mark_as_rejected:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u62D2\u5426\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",no_matching_estimates:"\u4E00\u81F4\u3059\u308B\u898B\u7A4D\u3082\u308A\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",mark_as_sent_successfully:"\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u305F\u3068\u30DE\u30FC\u30AF\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A",send_estimate_successfully:"\u898B\u7A4D\u3082\u308A\u306F\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",errors:{required:"\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u5FC5\u9808\u9805\u76EE\u3067\u3059"},accepted:"\u627F\u8A8D\u6E08\u307F",rejected:"\u62D2\u5426\u3055\u308C\u307E\u3057\u305F",sent:"\u9001\u4FE1\u6E08\u307F",draft:"\u30C9\u30E9\u30D5\u30C8",declined:"\u8F9E\u9000",new_estimate:"\u65B0\u3057\u3044\u898B\u7A4D\u3082\u308A",add_new_estimate:"\u65B0\u3057\u3044\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",update_Estimate:"\u898B\u7A4D\u3082\u308A\u3092\u66F4\u65B0",edit_estimate:"\u898B\u7A4D\u3082\u308A\u306E\u7DE8\u96C6",items:"\u30A2\u30A4\u30C6\u30E0",Estimate:"\u898B\u7A4D\u3082\u308A|\u898B\u7A4D\u308A",add_new_tax:"\u65B0\u3057\u3044\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",no_estimates:"\u307E\u3060\u898B\u7A4D\u3082\u308A\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_estimates:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u898B\u7A4D\u3082\u308A\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",mark_as_rejected:"\u62D2\u5426\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",mark_as_accepted:"\u627F\u8A8D\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",marked_as_accepted_message:"\u627F\u8A8D\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A",marked_as_rejected_message:"\u62D2\u5426\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A",confirm_delete:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u898B\u7A4D\u3082\u308A\u3092\u5FA9\u5143\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u898B\u7A4D\u3082\u308A\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u898B\u7A4D\u3082\u308A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u63A8\u5B9A\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u63A8\u5B9A\u5024\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F",item:{title:"\u30A2\u30A4\u30C6\u30E0\u30BF\u30A4\u30C8\u30EB",description:"\u8AAC\u660E",quantity:"\u91CF",price:"\u4FA1\u683C",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",total:"\u5408\u8A08",total_discount:"\u5408\u8A08\u5272\u5F15",sub_total:"\u5C0F\u8A08",tax:"\u7A0E\u91D1",amount:"\u91CF",select_an_item:"\u5165\u529B\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30A2\u30A4\u30C6\u30E0\u3092\u9078\u629E\u3057\u307E\u3059",type_item_description:"\u30BF\u30A4\u30D7\u30A2\u30A4\u30C6\u30E0\u8AAC\u660E\uFF08\u30AA\u30D7\u30B7\u30E7\u30F3\uFF09"}},Cl={title:"\u8ACB\u6C42\u66F8",invoices_list:"\u8ACB\u6C42\u66F8\u30EA\u30B9\u30C8",days:"{days}\u65E5",months:"{months}\u6708",years:"{years}\u5E74",all:"\u3059\u3079\u3066",paid:"\u6709\u6599",unpaid:"\u672A\u6255\u3044",viewed:"\u95B2\u89A7\u6E08\u307F",overdue:"\u5EF6\u6EDE",completed:"\u5B8C\u4E86",customer:"\u304A\u5BA2\u69D8",paid_status:"\u6709\u6599\u30B9\u30C6\u30FC\u30BF\u30B9",ref_no:"\u53C2\u7167\u756A\u53F7",number:"\u6570",amount_due:"\u6599\u91D1",partially_paid:"\u90E8\u5206\u7684\u306B\u652F\u6255\u308F\u308C\u305F",total:"\u5408\u8A08",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",sub_total:"\u5C0F\u8A08",invoice:"\u8ACB\u6C42\u66F8|\u8ACB\u6C42\u66F8",invoice_number:"\u8ACB\u6C42\u66F8\u756A\u53F7",ref_number:"\u53C2\u7167\u756A\u53F7",contact:"\u9023\u7D61\u5148",add_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",date:"\u65E5\u4ED8",due_date:"\u671F\u65E5",status:"\u72B6\u614B",add_tax:"\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",notes:"\u30CE\u30FC\u30C8",view:"\u898B\u308B",send_invoice:"\u8ACB\u6C42\u66F8\u3092\u9001\u308A\u307E\u3059",resend_invoice:"\u8ACB\u6C42\u66F8\u3092\u518D\u9001\u3059\u308B",invoice_template:"\u8ACB\u6C42\u66F8\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",template:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",mark_as_sent:"\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",confirm_send_invoice:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u30E1\u30FC\u30EB\u3067\u304A\u5BA2\u69D8\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",invoice_mark_as_sent:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_send:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u30E1\u30FC\u30EB\u3067\u304A\u5BA2\u69D8\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",invoice_date:"\u8ACB\u6C42\u66F8\u306E\u65E5\u4ED8",record_payment:"\u652F\u6255\u3044\u306E\u8A18\u9332",add_new_invoice:"\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u3092\u8FFD\u52A0\u3059\u308B",update_expense:"\u7D4C\u8CBB\u306E\u66F4\u65B0",edit_invoice:"\u8ACB\u6C42\u66F8\u306E\u7DE8\u96C6",new_invoice:"\u65B0\u3057\u3044\u8ACB\u6C42\u66F8",save_invoice:"\u8ACB\u6C42\u66F8\u3092\u4FDD\u5B58\u3059\u308B",update_invoice:"\u8ACB\u6C42\u66F8\u3092\u66F4\u65B0\u3059\u308B",add_new_tax:"\u65B0\u3057\u3044\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",no_invoices:"\u8ACB\u6C42\u66F8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_invoices:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u8ACB\u6C42\u66F8\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",select_invoice:"\u8ACB\u6C42\u66F8\u3092\u9078\u629E",no_matching_invoices:"\u4E00\u81F4\u3059\u308B\u8ACB\u6C42\u66F8\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",mark_as_sent_successfully:"\u6B63\u5E38\u306B\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u8ACB\u6C42\u66F8",invoice_sent_successfully:"\u8ACB\u6C42\u66F8\u306F\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",cloned_successfully:"\u8ACB\u6C42\u66F8\u306E\u30AF\u30ED\u30FC\u30F3\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",clone_invoice:"\u30AF\u30ED\u30FC\u30F3\u8ACB\u6C42\u66F8",confirm_clone:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u306B\u8907\u88FD\u3055\u308C\u307E\u3059",item:{title:"\u30A2\u30A4\u30C6\u30E0\u30BF\u30A4\u30C8\u30EB",description:"\u8AAC\u660E",quantity:"\u91CF",price:"\u4FA1\u683C",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",total:"\u5408\u8A08",total_discount:"\u5408\u8A08\u5272\u5F15",sub_total:"\u5C0F\u8A08",tax:"\u7A0E\u91D1",amount:"\u91CF",select_an_item:"\u5165\u529B\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30A2\u30A4\u30C6\u30E0\u3092\u9078\u629E\u3057\u307E\u3059",type_item_description:"\u30BF\u30A4\u30D7\u30A2\u30A4\u30C6\u30E0\u8AAC\u660E\uFF08\u30AA\u30D7\u30B7\u30E7\u30F3\uFF09"},confirm_delete:"\u3053\u306E\u8ACB\u6C42\u66F8\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u8ACB\u6C42\u66F8\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",created_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u8ACB\u6C42\u66F8\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",marked_as_sent_message:"\u6B63\u5E38\u306B\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u8ACB\u6C42\u66F8",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F",invalid_due_amount_message:"\u8ACB\u6C42\u66F8\u306E\u5408\u8A08\u91D1\u984D\u306F\u3001\u3053\u306E\u8ACB\u6C42\u66F8\u306E\u652F\u6255\u3044\u7DCF\u984D\u3088\u308A\u5C11\u306A\u304F\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002\u7D9A\u884C\u3059\u308B\u306B\u306F\u3001\u8ACB\u6C42\u66F8\u3092\u66F4\u65B0\u3059\u308B\u304B\u3001\u95A2\u9023\u3059\u308B\u652F\u6255\u3044\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},Al={title:"\u652F\u6255\u3044",payments_list:"\u652F\u6255\u3044\u30EA\u30B9\u30C8",record_payment:"\u652F\u6255\u3044\u306E\u8A18\u9332",customer:"\u304A\u5BA2\u69D8",date:"\u65E5\u4ED8",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",payment_number:"\u652F\u6255\u3044\u756A\u53F7",payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9",invoice:"\u8ACB\u6C42\u66F8",note:"\u6CE8\u610F",add_payment:"\u652F\u6255\u3044\u3092\u8FFD\u52A0\u3059\u308B",new_payment:"\u65B0\u898F\u652F\u6255\u3044",edit_payment:"\u652F\u6255\u3044\u306E\u7DE8\u96C6",view_payment:"\u652F\u6255\u3044\u3092\u8868\u793A",add_new_payment:"\u65B0\u3057\u3044\u652F\u6255\u3044\u3092\u8FFD\u52A0\u3059\u308B",send_payment_receipt:"\u9818\u53CE\u66F8\u3092\u9001\u308B",send_payment:"\u652F\u6255\u3044\u3092\u9001\u308B",save_payment:"\u652F\u6255\u3044\u3092\u7BC0\u7D04\u3059\u308B",update_payment:"\u652F\u6255\u3044\u306E\u66F4\u65B0",payment:"\u652F\u6255\u3044|\u652F\u6255\u3044",no_payments:"\u307E\u3060\u652F\u6255\u3044\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",not_selected:"\u9078\u629E\u3055\u308C\u3066\u3044\u306A\u3044",no_invoice:"\u8ACB\u6C42\u66F8\u306A\u3057",no_matching_payments:"\u4E00\u81F4\u3059\u308B\u652F\u6255\u3044\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_payments:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u652F\u6255\u3044\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",select_payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u3092\u9078\u629E\u3057\u307E\u3059",confirm_mark_as_sent:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_send_payment:"\u3053\u306E\u652F\u6255\u3044\u306F\u96FB\u5B50\u30E1\u30FC\u30EB\u3067\u9867\u5BA2\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",send_payment_successfully:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F",confirm_delete:"\u3053\u306E\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",invalid_amount_message:"\u304A\u652F\u6255\u3044\u91D1\u984D\u304C\u7121\u52B9\u3067\u3059"},El={title:"\u7D4C\u8CBB",expenses_list:"\u7D4C\u8CBB\u30EA\u30B9\u30C8",select_a_customer:"\u9867\u5BA2\u3092\u9078\u629E\u3059\u308B",expense_title:"\u984C\u540D",customer:"\u304A\u5BA2\u69D8",contact:"\u9023\u7D61\u5148",category:"\u30AB\u30C6\u30B4\u30EA\u30FC",from_date:"\u65E5\u4ED8\u304B\u3089",to_date:"\u73FE\u5728\u307E\u3067",expense_date:"\u65E5\u4ED8",description:"\u8AAC\u660E",receipt:"\u9818\u53CE\u66F8",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",not_selected:"\u9078\u629E\u3055\u308C\u3066\u3044\u306A\u3044",note:"\u6CE8\u610F",category_id:"\u30AB\u30C6\u30B4\u30EAID",date:"\u65E5\u4ED8",add_expense:"\u7D4C\u8CBB\u3092\u8FFD\u52A0\u3059\u308B",add_new_expense:"\u65B0\u3057\u3044\u7D4C\u8CBB\u3092\u8FFD\u52A0\u3059\u308B",save_expense:"\u7D4C\u8CBB\u3092\u7BC0\u7D04",update_expense:"\u7D4C\u8CBB\u306E\u66F4\u65B0",download_receipt:"\u9818\u53CE\u66F8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",edit_expense:"\u7D4C\u8CBB\u306E\u7DE8\u96C6",new_expense:"\u65B0\u3057\u3044\u7D4C\u8CBB",expense:"\u7D4C\u8CBB|\u7D4C\u8CBB",no_expenses:"\u307E\u3060\u8CBB\u7528\u306F\u304B\u304B\u308A\u307E\u305B\u3093\uFF01",list_of_expenses:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u7D4C\u8CBB\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",confirm_delete:"\u3053\u306E\u8CBB\u7528\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u8CBB\u7528\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",created_message:"\u7D4C\u8CBB\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u7D4C\u8CBB\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u7D4C\u8CBB\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u7D4C\u8CBB\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",categories:{categories_list:"\u30AB\u30C6\u30B4\u30EA\u30EA\u30B9\u30C8",title:"\u984C\u540D",name:"\u540D\u524D",description:"\u8AAC\u660E",amount:"\u91CF",actions:"\u884C\u52D5",add_category:"\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0",new_category:"\u65B0\u305F\u306A\u30AB\u30C6\u30B4\u30EA\u30FC",category:"\u30AB\u30C6\u30B4\u30EA|\u30AB\u30C6\u30B4\u30EA",select_a_category:"\u30AB\u30C6\u30B4\u30EA\u30FC\u3092\u9078\u3076"}},Nl={email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",forgot_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u304A\u5FD8\u308C\u3067\u3059\u304B\uFF1F",or_signIn_with:"\u307E\u305F\u306F\u3067\u30B5\u30A4\u30F3\u30A4\u30F3",login:"\u30ED\u30B0\u30A4\u30F3",register:"\u767B\u9332",reset_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u8A2D\u5B9A\u3059\u308B",password_reset_successfully:"\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u6B63\u5E38\u306B\u30EA\u30BB\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F",enter_email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066",enter_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3059\u308B",retype_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},Tl={title:"\u30E6\u30FC\u30B6\u30FC",users_list:"\u30E6\u30FC\u30B6\u30FC\u30EA\u30B9\u30C8",name:"\u540D\u524D",description:"\u8AAC\u660E",added_on:"\u8FFD\u52A0\u3055\u308C\u305F",date_of_creation:"\u4F5C\u6210\u65E5",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",add_user:"\u30E6\u30FC\u30B6\u30FC\u3092\u8FFD\u52A0\u3059\u308B",save_user:"\u30E6\u30FC\u30B6\u30FC\u3092\u4FDD\u5B58",update_user:"\u30E6\u30FC\u30B6\u30FC\u306E\u66F4\u65B0",user:"\u30E6\u30FC\u30B6\u30FC|\u30E6\u30FC\u30B6\u30FC",add_new_user:"\u65B0\u3057\u3044\u30E6\u30FC\u30B6\u30FC\u3092\u8FFD\u52A0",new_user:"\u65B0\u3057\u3044\u30E6\u30FC\u30B6\u30FC",edit_user:"\u30E6\u30FC\u30B6\u30FC\u306E\u7DE8\u96C6",no_users:"\u307E\u3060\u30E6\u30FC\u30B6\u30FC\u306F\u3044\u307E\u305B\u3093\uFF01",list_of_users:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",email:"E\u30E1\u30FC\u30EB",phone:"\u96FB\u8A71",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",user_attached_message:"\u3059\u3067\u306B\u4F7F\u7528\u4E2D\u306E\u30A2\u30A4\u30C6\u30E0\u306F\u524A\u9664\u3067\u304D\u307E\u305B\u3093",confirm_delete:"\u3053\u306E\u30E6\u30FC\u30B6\u30FC\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u30E6\u30FC\u30B6\u30FC\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},Il={title:"\u5831\u544A\u3059\u308B",from_date:"\u65E5\u4ED8\u304B\u3089",to_date:"\u73FE\u5728\u307E\u3067",status:"\u72B6\u614B",paid:"\u6709\u6599",unpaid:"\u672A\u6255\u3044",download_pdf:"PDF\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",view_pdf:"PDF\u3092\u898B\u308B",update_report:"\u30EC\u30DD\u30FC\u30C8\u306E\u66F4\u65B0",report:"\u30EC\u30DD\u30FC\u30C8|\u30EC\u30DD\u30FC\u30C8",profit_loss:{profit_loss:"\u5229\u76CA",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E"},sales:{sales:"\u8CA9\u58F2",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",report_type:"\u30EC\u30DD\u30FC\u30C8\u30BF\u30A4\u30D7"},taxes:{taxes:"\u7A0E\u91D1",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E"},errors:{required:"\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u5FC5\u9808\u9805\u76EE\u3067\u3059"},invoices:{invoice:"\u8ACB\u6C42\u66F8",invoice_date:"\u8ACB\u6C42\u66F8\u306E\u65E5\u4ED8",due_date:"\u671F\u65E5",amount:"\u91CF",contact_name:"\u9023\u7D61\u5148",status:"\u72B6\u614B"},estimates:{estimate:"\u898B\u7A4D\u3082\u308A",estimate_date:"\u898B\u7A4D\u3082\u308A\u65E5",due_date:"\u671F\u65E5",estimate_number:"\u898B\u7A4D\u3082\u308A\u756A\u53F7",ref_number:"\u53C2\u7167\u756A\u53F7",amount:"\u91CF",contact_name:"\u9023\u7D61\u5148",status:"\u72B6\u614B"},expenses:{expenses:"\u7D4C\u8CBB",category:"\u30AB\u30C6\u30B4\u30EA\u30FC",date:"\u65E5\u4ED8",amount:"\u91CF",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E"}},$l={menu_title:{account_settings:"\u30A2\u30AB\u30A6\u30F3\u30C8\u8A2D\u5B9A",company_information:"\u4F1A\u793E\u60C5\u5831",customization:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",preferences:"\u74B0\u5883\u8A2D\u5B9A",notifications:"\u901A\u77E5",tax_types:"\u7A0E\u306E\u7A2E\u985E",expense_category:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA",update_app:"\u30A2\u30D7\u30EA\u3092\u66F4\u65B0",backup:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",file_disk:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF",custom_fields:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9",payment_modes:"\u652F\u6255\u3044\u30E2\u30FC\u30C9",notes:"\u30CE\u30FC\u30C8"},title:"\u8A2D\u5B9A",setting:"\u8A2D\u5B9A|\u8A2D\u5B9A",general:"\u4E00\u822C",language:"\u8A00\u8A9E",primary_currency:"\u4E00\u6B21\u901A\u8CA8",timezone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",date_format:"\u65E5\u4ED8\u5F62\u5F0F",currencies:{title:"\u901A\u8CA8",currency:"\u901A\u8CA8|\u901A\u8CA8",currencies_list:"\u901A\u8CA8\u30EA\u30B9\u30C8",select_currency:"\u901A\u8CA8\u3092\u9078\u629E",name:"\u540D\u524D",code:"\u30B3\u30FC\u30C9",symbol:"\u30B7\u30F3\u30DC\u30EB",precision:"\u7CBE\u5EA6",thousand_separator:"\u30B5\u30A6\u30B6\u30F3\u30C9\u30BB\u30D1\u30EC\u30FC\u30BF\u30FC",decimal_separator:"\u5C0F\u6570\u70B9\u8A18\u53F7",position:"\u30DD\u30B8\u30B7\u30E7\u30F3",position_of_symbol:"\u30B7\u30F3\u30DC\u30EB\u306E\u4F4D\u7F6E",right:"\u6B63\u3057\u3044",left:"\u5DE6",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",add_currency:"\u901A\u8CA8\u3092\u8FFD\u52A0\u3059\u308B"},mail:{host:"\u30E1\u30FC\u30EB\u30DB\u30B9\u30C8",port:"\u30E1\u30FC\u30EB\u30DD\u30FC\u30C8",driver:"\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC",secret:"\u79D8\u5BC6",mailgun_secret:"\u30E1\u30FC\u30EB\u30AC\u30F3\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",mailgun_domain:"\u30C9\u30E1\u30A4\u30F3",mailgun_endpoint:"Mailgun\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8",ses_secret:"SES\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",ses_key:"SES\u30AD\u30FC",password:"\u30E1\u30FC\u30EB\u30D1\u30B9\u30EF\u30FC\u30C9",username:"\u30E1\u30FC\u30EB\u30E6\u30FC\u30B6\u30FC\u540D",mail_config:"\u30E1\u30FC\u30EB\u8A2D\u5B9A",from_name:"\u30E1\u30FC\u30EB\u540D\u304B\u3089",from_mail:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304B\u3089",encryption:"\u30E1\u30FC\u30EB\u306E\u6697\u53F7\u5316",mail_config_desc:"\u4EE5\u4E0B\u306F\u3001\u30A2\u30D7\u30EA\u304B\u3089\u30E1\u30FC\u30EB\u3092\u9001\u4FE1\u3059\u308B\u305F\u3081\u306E\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC\u3092\u69CB\u6210\u3059\u308B\u305F\u3081\u306E\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002 Sendgrid\u3001SES\u306A\u3069\u306E\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u69CB\u6210\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002"},pdf:{title:"PDF\u8A2D\u5B9A",footer_text:"\u30D5\u30C3\u30BF\u30FC\u30C6\u30AD\u30B9\u30C8",pdf_layout:"PDF\u30EC\u30A4\u30A2\u30A6\u30C8"},company_info:{company_info:"\u4F1A\u793E\u60C5\u5831",company_name:"\u4F1A\u793E\u540D",company_logo:"\u4F1A\u793E\u306E\u30ED\u30B4",section_description:"Crater\u306B\u3088\u3063\u3066\u4F5C\u6210\u3055\u308C\u305F\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3001\u304A\u3088\u3073\u305D\u306E\u4ED6\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306B\u8868\u793A\u3055\u308C\u308B\u4F1A\u793E\u306B\u95A2\u3059\u308B\u60C5\u5831\u3002",phone:"\u96FB\u8A71",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",address:"\u4F4F\u6240",zip:"\u30B8\u30C3\u30D7",save:"\u30BB\u30FC\u30D6",updated_message:"\u4F1A\u793E\u60C5\u5831\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},custom_fields:{title:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9",section_description:"\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3059\u308B",add_custom_field:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u8FFD\u52A0",edit_custom_field:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u7DE8\u96C6",field_name:"\u30D5\u30A3\u30FC\u30EB\u30C9\u540D",label:"\u30E9\u30D9\u30EB",type:"\u30BF\u30A4\u30D7",name:"\u540D\u524D",required:"\u5FC5\u9808",placeholder:"\u30D7\u30EC\u30FC\u30B9\u30DB\u30EB\u30C0\u30FC",help_text:"\u30D8\u30EB\u30D7\u30C6\u30AD\u30B9\u30C8",default_value:"\u30C7\u30D5\u30A9\u30EB\u30C8\u5024",prefix:"\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9",starting_number:"\u958B\u59CB\u756A\u53F7",model:"\u30E2\u30C7\u30EB",help_text_description:"\u30E6\u30FC\u30B6\u30FC\u304C\u3053\u306E\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u76EE\u7684\u3092\u7406\u89E3\u3067\u304D\u308B\u3088\u3046\u306B\u3001\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",suffix:"\u30B5\u30D5\u30A3\u30C3\u30AF\u30B9",yes:"\u306F\u3044",no:"\u756A\u53F7",order:"\u6CE8\u6587",custom_field_confirm_delete:"\u3053\u306E\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",options:"\u30AA\u30D7\u30B7\u30E7\u30F3",add_option:"\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u8FFD\u52A0",add_another_option:"\u5225\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u8FFD\u52A0\u3059\u308B",sort_in_alphabetical_order:"\u30A2\u30EB\u30D5\u30A1\u30D9\u30C3\u30C8\u9806\u306B\u4E26\u3079\u66FF\u3048\u308B",add_options_in_bulk:"\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u307E\u3068\u3081\u3066\u8FFD\u52A0\u3059\u308B",use_predefined_options:"\u4E8B\u524D\u5B9A\u7FA9\u3055\u308C\u305F\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3059\u308B",select_custom_date:"\u30AB\u30B9\u30BF\u30E0\u65E5\u4ED8\u3092\u9078\u629E",select_relative_date:"\u76F8\u5BFE\u65E5\u4ED8\u3092\u9078\u629E",ticked_by_default:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u30C1\u30A7\u30C3\u30AF\u3055\u308C\u3066\u3044\u307E\u3059",updated_message:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",added_message:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F"},customization:{customization:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",save:"\u30BB\u30FC\u30D6",addresses:{title:"\u4F4F\u6240",section_description:"\u9867\u5BA2\u306E\u8ACB\u6C42\u5148\u4F4F\u6240\u3068\u9867\u5BA2\u306E\u914D\u9001\u5148\u4F4F\u6240\u306E\u5F62\u5F0F\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u3059\uFF08PDF\u3067\u306E\u307F\u8868\u793A\uFF09\u3002",customer_billing_address:"\u9867\u5BA2\u306E\u8ACB\u6C42\u5148\u4F4F\u6240",customer_shipping_address:"\u304A\u5BA2\u69D8\u306E\u914D\u9001\u5148\u4F4F\u6240",company_address:"\u4F1A\u793E\u306E\u4F4F\u6240",insert_fields:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u633F\u5165",contact:"\u9023\u7D61\u5148",address:"\u4F4F\u6240",display_name:"\u8868\u793A\u540D",primary_contact_name:"\u4E3B\u306A\u9023\u7D61\u5148\u540D",email:"E\u30E1\u30FC\u30EB",website:"\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8",name:"\u540D\u524D",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",company_name:"\u4F1A\u793E\u540D",address_street_1:"\u4F4F\u6240\u901A\u308A1",address_street_2:"\u30A2\u30C9\u30EC\u30B9\u30B9\u30C8\u30EA\u30FC\u30C82",phone:"\u96FB\u8A71",zip_code:"\u90F5\u4FBF\u756A\u53F7",address_setting_updated:"\u30A2\u30C9\u30EC\u30B9\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},updated_message:"\u4F1A\u793E\u60C5\u5831\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",invoices:{title:"\u8ACB\u6C42\u66F8",notes:"\u30CE\u30FC\u30C8",invoice_prefix:"\u8ACB\u6C42\u66F8\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9",default_invoice_email_body:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u8ACB\u6C42\u66F8\u30E1\u30FC\u30EB\u672C\u6587",invoice_settings:"\u8ACB\u6C42\u66F8\u306E\u8A2D\u5B9A",autogenerate_invoice_number:"\u8ACB\u6C42\u66F8\u756A\u53F7\u306E\u81EA\u52D5\u751F\u6210",autogenerate_invoice_number_desc:"\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u3092\u4F5C\u6210\u3059\u308B\u305F\u3073\u306B\u8ACB\u6C42\u66F8\u756A\u53F7\u3092\u81EA\u52D5\u751F\u6210\u3057\u305F\u304F\u306A\u3044\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u7121\u52B9\u306B\u3057\u307E\u3059\u3002",invoice_email_attachment:"\u8ACB\u6C42\u66F8\u3092\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B",invoice_email_attachment_setting_description:"\u8ACB\u6C42\u66F8\u3092\u96FB\u5B50\u30E1\u30FC\u30EB\u306E\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u30E1\u30FC\u30EB\u306E[\u8ACB\u6C42\u66F8\u306E\u8868\u793A]\u30DC\u30BF\u30F3\u3092\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enter_invoice_prefix:"\u8ACB\u6C42\u66F8\u306E\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",terms_and_conditions:"\u898F\u7D04\u3068\u6761\u4EF6",company_address_format:"\u4F1A\u793E\u306E\u4F4F\u6240\u5F62\u5F0F",shipping_address_format:"\u914D\u9001\u5148\u4F4F\u6240\u306E\u5F62\u5F0F",billing_address_format:"\u8ACB\u6C42\u5148\u4F4F\u6240\u306E\u5F62\u5F0F",invoice_settings_updated:"\u8ACB\u6C42\u66F8\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},estimates:{title:"\u898B\u7A4D\u308A",estimate_prefix:"\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u306E\u898B\u7A4D\u3082\u308A",default_estimate_email_body:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u898B\u7A4D\u3082\u308A\u30E1\u30FC\u30EB\u672C\u6587",estimate_settings:"\u898B\u7A4D\u3082\u308A\u306E\u8A2D\u5B9A",autogenerate_estimate_number:"\u898B\u7A4D\u3082\u308A\u756A\u53F7\u306E\u81EA\u52D5\u751F\u6210",estimate_setting_description:"\u65B0\u3057\u3044\u898B\u7A4D\u3082\u308A\u3092\u4F5C\u6210\u3059\u308B\u305F\u3073\u306B\u898B\u7A4D\u3082\u308A\u756A\u53F7\u3092\u81EA\u52D5\u751F\u6210\u3057\u305F\u304F\u306A\u3044\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u7121\u52B9\u306B\u3057\u307E\u3059\u3002",estimate_email_attachment:"\u898B\u7A4D\u3082\u308A\u3092\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B",estimate_email_attachment_setting_description:"\u898B\u7A4D\u3082\u308A\u3092\u96FB\u5B50\u30E1\u30FC\u30EB\u306E\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u30E1\u30FC\u30EB\u306E[\u898B\u7A4D\u3082\u308A\u3092\u8868\u793A]\u30DC\u30BF\u30F3\u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enter_estimate_prefix:"\u63A8\u5B9A\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u3092\u5165\u529B\u3057\u307E\u3059",estimate_setting_updated:"\u898B\u7A4D\u3082\u308A\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",company_address_format:"\u4F1A\u793E\u306E\u4F4F\u6240\u5F62\u5F0F",billing_address_format:"\u8ACB\u6C42\u5148\u4F4F\u6240\u306E\u5F62\u5F0F",shipping_address_format:"\u914D\u9001\u5148\u4F4F\u6240\u306E\u5F62\u5F0F"},payments:{title:"\u652F\u6255\u3044",description:"\u652F\u6255\u3044\u306E\u53D6\u5F15\u30E2\u30FC\u30C9",payment_prefix:"\u652F\u6255\u3044\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9",default_payment_email_body:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u652F\u6255\u3044\u30E1\u30FC\u30EB\u672C\u6587",payment_settings:"\u652F\u6255\u3044\u8A2D\u5B9A",autogenerate_payment_number:"\u652F\u6255\u3044\u756A\u53F7\u306E\u81EA\u52D5\u751F\u6210",payment_setting_description:"\u65B0\u3057\u3044\u652F\u6255\u3044\u3092\u4F5C\u6210\u3059\u308B\u305F\u3073\u306B\u652F\u6255\u3044\u756A\u53F7\u3092\u81EA\u52D5\u751F\u6210\u3057\u305F\u304F\u306A\u3044\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u7121\u52B9\u306B\u3057\u307E\u3059\u3002",payment_email_attachment:"\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u652F\u6255\u3044\u3092\u9001\u4FE1\u3059\u308B",payment_email_attachment_setting_description:"\u9818\u53CE\u66F8\u3092\u30E1\u30FC\u30EB\u306E\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u30E1\u30FC\u30EB\u306E[\u652F\u6255\u3044\u306E\u8868\u793A]\u30DC\u30BF\u30F3\u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enter_payment_prefix:"\u652F\u6255\u3044\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",payment_setting_updated:"\u652F\u6255\u3044\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",payment_modes:"\u652F\u6255\u3044\u30E2\u30FC\u30C9",add_payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u306E\u8FFD\u52A0",edit_payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u306E\u7DE8\u96C6",mode_name:"\u30E2\u30FC\u30C9\u540D",payment_mode_added:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u304C\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",payment_mode_updated:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",payment_mode_confirm_delete:"\u3053\u306E\u652F\u6255\u3044\u30E2\u30FC\u30C9\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",company_address_format:"\u4F1A\u793E\u306E\u4F4F\u6240\u5F62\u5F0F",from_customer_address_format:"\u9867\u5BA2\u306E\u4F4F\u6240\u5F62\u5F0F\u304B\u3089"},items:{title:"\u30A2\u30A4\u30C6\u30E0",units:"\u5358\u4F4D",add_item_unit:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u3092\u8FFD\u52A0",edit_item_unit:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u306E\u7DE8\u96C6",unit_name:"\u30E6\u30CB\u30C3\u30C8\u540D",item_unit_added:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u304C\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",item_unit_updated:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",item_unit_confirm_delete:"\u3053\u306E\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},notes:{title:"\u30CE\u30FC\u30C8",description:"\u30E1\u30E2\u3092\u4F5C\u6210\u3057\u3066\u8ACB\u6C42\u66F8\u3084\u898B\u7A4D\u3082\u308A\u306B\u518D\u5229\u7528\u3059\u308B\u3053\u3068\u3067\u6642\u9593\u3092\u7BC0\u7D04\u3067\u304D\u307E\u3059",notes:"\u30CE\u30FC\u30C8",type:"\u30BF\u30A4\u30D7",add_note:"\u30E1\u30E2\u3092\u8FFD\u52A0",add_new_note:"\u65B0\u3057\u3044\u30E1\u30E2\u3092\u8FFD\u52A0",name:"\u540D\u524D",edit_note:"\u30E1\u30E2\u3092\u7DE8\u96C6",note_added:"\u30E1\u30E2\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",note_updated:"\u6CE8\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",note_confirm_delete:"\u3053\u306E\u30E1\u30E2\u3092\u5FA9\u5143\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30CE\u30FC\u30C8\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u30E1\u30E2\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"}},account_settings:{profile_picture:"\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u306E\u5199\u771F",name:"\u540D\u524D",email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirm_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8A8D\u8A3C\u3059\u308B",account_settings:"\u30A2\u30AB\u30A6\u30F3\u30C8\u8A2D\u5B9A",save:"\u30BB\u30FC\u30D6",section_description:"\u3042\u306A\u305F\u306F\u3042\u306A\u305F\u306E\u540D\u524D\u3001\u96FB\u5B50\u30E1\u30FC\u30EB\u3092\u66F4\u65B0\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059",updated_message:"\u30A2\u30AB\u30A6\u30F3\u30C8\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},user_profile:{name:"\u540D\u524D",email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirm_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8A8D\u8A3C\u3059\u308B"},notification:{title:"\u901A\u77E5",email:"\u306B\u901A\u77E5\u3092\u9001\u4FE1\u3059\u308B",description:"\u4F55\u304B\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306B\u3069\u306E\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308A\u305F\u3044\u3067\u3059\u304B\uFF1F",invoice_viewed:"\u8ACB\u6C42\u66F8\u3092\u8868\u793A",invoice_viewed_desc:"\u9867\u5BA2\u304C\u30AF\u30EC\u30FC\u30BF\u30FC\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u4ECB\u3057\u3066\u9001\u4FE1\u3055\u308C\u305F\u8ACB\u6C42\u66F8\u3092\u8868\u793A\u3057\u305F\u3068\u304D\u3002",estimate_viewed:"\u95B2\u89A7\u3057\u305F\u898B\u7A4D\u3082\u308A",estimate_viewed_desc:"\u9867\u5BA2\u304C\u30AF\u30EC\u30FC\u30BF\u30FC\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u4ECB\u3057\u3066\u9001\u4FE1\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A\u3092\u8868\u793A\u3057\u305F\u3068\u304D\u3002",save:"\u30BB\u30FC\u30D6",email_save_message:"\u30E1\u30FC\u30EB\u304C\u6B63\u5E38\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3057\u305F",please_enter_email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},tax_types:{title:"\u7A0E\u306E\u7A2E\u985E",add_tax:"\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",edit_tax:"\u7A0E\u91D1\u306E\u7DE8\u96C6",description:"\u5FC5\u8981\u306B\u5FDC\u3058\u3066\u7A0E\u91D1\u3092\u8FFD\u52A0\u307E\u305F\u306F\u524A\u9664\u3067\u304D\u307E\u3059\u3002\u30AF\u30EC\u30FC\u30BF\u30FC\u306F\u3001\u8ACB\u6C42\u66F8\u3060\u3051\u3067\u306A\u304F\u3001\u500B\u3005\u306E\u30A2\u30A4\u30C6\u30E0\u306B\u5BFE\u3059\u308B\u7A0E\u91D1\u3082\u30B5\u30DD\u30FC\u30C8\u3057\u3066\u3044\u307E\u3059\u3002",add_new_tax:"\u65B0\u3057\u3044\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",tax_settings:"\u7A0E\u8A2D\u5B9A",tax_per_item:"\u30A2\u30A4\u30C6\u30E0\u3054\u3068\u306E\u7A0E\u91D1",tax_name:"\u7A0E\u540D",compound_tax:"\u8907\u5408\u7A0E",percent:"\u30D1\u30FC\u30BB\u30F3\u30C8",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",tax_setting_description:"\u500B\u3005\u306E\u8ACB\u6C42\u66F8\u30A2\u30A4\u30C6\u30E0\u306B\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001\u7A0E\u91D1\u306F\u8ACB\u6C42\u66F8\u306B\u76F4\u63A5\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002",created_message:"\u7A0E\u30BF\u30A4\u30D7\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u7A0E\u30BF\u30A4\u30D7\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u7A0E\u30BF\u30A4\u30D7\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",confirm_delete:"\u3053\u306E\u7A0E\u30BF\u30A4\u30D7\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u7A0E\u91D1\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059"},expense_category:{title:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",description:"\u7D4C\u8CBB\u30A8\u30F3\u30C8\u30EA\u3092\u8FFD\u52A0\u3059\u308B\u306B\u306F\u3001\u30AB\u30C6\u30B4\u30EA\u304C\u5FC5\u8981\u3067\u3059\u3002\u597D\u307F\u306B\u5FDC\u3058\u3066\u3001\u3053\u308C\u3089\u306E\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0\u307E\u305F\u306F\u524A\u9664\u3067\u304D\u307E\u3059\u3002",add_new_category:"\u65B0\u3057\u3044\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0",add_category:"\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0",edit_category:"\u30AB\u30C6\u30B4\u30EA\u306E\u7DE8\u96C6",category_name:"\u7A2E\u5225\u540D",category_description:"\u8AAC\u660E",created_message:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",updated_message:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",confirm_delete:"\u3053\u306E\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30AB\u30C6\u30B4\u30EA\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059"},preferences:{currency:"\u901A\u8CA8",default_language:"\u65E2\u5B9A\u306E\u8A00\u8A9E",time_zone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",fiscal_year:"\u4F1A\u8A08\u5E74\u5EA6",date_format:"\u65E5\u4ED8\u5F62\u5F0F",discount_setting:"\u5272\u5F15\u8A2D\u5B9A",discount_per_item:"\u30A2\u30A4\u30C6\u30E0\u3054\u3068\u306E\u5272\u5F15",discount_setting_description:"\u500B\u3005\u306E\u8ACB\u6C42\u66F8\u30A2\u30A4\u30C6\u30E0\u306B\u5272\u5F15\u3092\u8FFD\u52A0\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001\u5272\u5F15\u306F\u8ACB\u6C42\u66F8\u306B\u76F4\u63A5\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002",save:"\u30BB\u30FC\u30D6",preference:"\u597D\u307F|\u74B0\u5883\u8A2D\u5B9A",general_settings:"\u30B7\u30B9\u30C6\u30E0\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u8A2D\u5B9A\u3002",updated_message:"\u30D7\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",select_language:"\u8A00\u8A9E\u3092\u9078\u629E\u3059\u308B",select_time_zone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3\u3092\u9078\u629E",select_date_format:"\u65E5\u4ED8\u5F62\u5F0F\u306E\u9078\u629E",select_financial_year:"\u4F1A\u8A08\u5E74\u5EA6\u3092\u9078\u629E"},update_app:{title:"\u30A2\u30D7\u30EA\u3092\u66F4\u65B0",description:"\u4E0B\u306E\u30DC\u30BF\u30F3\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65B0\u3057\u3044\u66F4\u65B0\u3092\u78BA\u8A8D\u3059\u308B\u3053\u3068\u3067\u3001\u30AF\u30EC\u30FC\u30BF\u30FC\u3092\u7C21\u5358\u306B\u66F4\u65B0\u3067\u304D\u307E\u3059\u3002",check_update:"\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3092\u78BA\u8A8D\u3059\u308B",avail_update:"\u65B0\u3057\u3044\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u304C\u5229\u7528\u53EF\u80FD",next_version:"\u6B21\u306E\u30D0\u30FC\u30B8\u30E7\u30F3",requirements:"\u8981\u4EF6",update:"\u4ECA\u3059\u3050\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8",update_progress:"\u66F4\u65B0\u4E2D...",progress_text:"\u307B\u3093\u306E\u6570\u5206\u304B\u304B\u308A\u307E\u3059\u3002\u66F4\u65B0\u304C\u5B8C\u4E86\u3059\u308B\u524D\u306B\u3001\u753B\u9762\u3092\u66F4\u65B0\u3057\u305F\u308A\u3001\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u9589\u3058\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",update_success:"\u30A2\u30D7\u30EA\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F\uFF01\u30D6\u30E9\u30A6\u30B6\u30A6\u30A3\u30F3\u30C9\u30A6\u304C\u81EA\u52D5\u7684\u306B\u518D\u8AAD\u307F\u8FBC\u307F\u3055\u308C\u308B\u307E\u3067\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002",latest_message:"\u5229\u7528\u53EF\u80FD\u306A\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u306F\u3042\u308A\u307E\u305B\u3093\uFF01\u3042\u306A\u305F\u306F\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059\u3002",current_version:"\u73FE\u884C\u7248",download_zip_file:"ZIP\u30D5\u30A1\u30A4\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3059\u308B",unzipping_package:"\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u89E3\u51CD",copying_files:"\u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30D4\u30FC",deleting_files:"\u672A\u4F7F\u7528\u30D5\u30A1\u30A4\u30EB\u306E\u524A\u9664",running_migrations:"\u79FB\u884C\u306E\u5B9F\u884C",finishing_update:"\u66F4\u65B0\u306E\u7D42\u4E86",update_failed:"\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F",update_failed_text:"\u3054\u3081\u3093\u306A\u3055\u3044\uFF01\u66F4\u65B0\u304C\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{step} step"},backup:{title:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7|\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",description:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306F\u3001\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306E\u30C0\u30F3\u30D7\u3068\u3068\u3082\u306B\u3001\u6307\u5B9A\u3057\u305F\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u5185\u306E\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u542B\u3080zip\u30D5\u30A1\u30A4\u30EB\u3067\u3059\u3002",new_backup:"\u65B0\u3057\u3044\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B",create_backup:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u4F5C\u6210\u3059\u308B",select_backup_type:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u307E\u3059",backup_confirm_delete:"\u3053\u306E\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",path:"\u9053",new_disk:"\u65B0\u3057\u3044\u30C7\u30A3\u30B9\u30AF",created_at:"\u3067\u4F5C\u6210\u3055\u308C\u305F",size:"\u30B5\u30A4\u30BA",dropbox:"\u30C9\u30ED\u30C3\u30D7\u30DC\u30C3\u30AF\u30B9",local:"\u5730\u5143",healthy:"\u5143\u6C17",amount_of_backups:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u91CF",newest_backups:"\u6700\u65B0\u306E\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",used_storage:"\u4F7F\u7528\u6E08\u307F\u30B9\u30C8\u30EC\u30FC\u30B8",select_disk:"\u30C7\u30A3\u30B9\u30AF\u3092\u9078\u629E",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",deleted_message:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",created_message:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",invalid_disk_credentials:"\u9078\u629E\u3057\u305F\u30C7\u30A3\u30B9\u30AF\u306E\u8CC7\u683C\u60C5\u5831\u304C\u7121\u52B9\u3067\u3059"},disk:{title:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF|\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF",description:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001Crater\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3001\u30A2\u30D0\u30BF\u30FC\u3001\u305D\u306E\u4ED6\u306E\u753B\u50CF\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3059\u308B\u305F\u3081\u306B\u30ED\u30FC\u30AB\u30EB\u30C7\u30A3\u30B9\u30AF\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u597D\u307F\u306B\u5FDC\u3058\u3066\u3001DigitalOcean\u3001S3\u3001Dropbox\u306A\u3069\u306E\u8907\u6570\u306E\u30C7\u30A3\u30B9\u30AF\u30C9\u30E9\u30A4\u30D0\u30FC\u3092\u69CB\u6210\u3067\u304D\u307E\u3059\u3002",created_at:"\u3067\u4F5C\u6210\u3055\u308C\u305F",dropbox:"\u30C9\u30ED\u30C3\u30D7\u30DC\u30C3\u30AF\u30B9",name:"\u540D\u524D",driver:"\u904B\u8EE2\u8005",disk_type:"\u30BF\u30A4\u30D7",disk_name:"\u30C7\u30A3\u30B9\u30AF\u540D",new_disk:"\u65B0\u3057\u3044\u30C7\u30A3\u30B9\u30AF\u3092\u8FFD\u52A0\u3059\u308B",filesystem_driver:"\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u30C9\u30E9\u30A4\u30D0\u30FC",local_driver:"\u30ED\u30FC\u30AB\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC",local_root:"\u30ED\u30FC\u30AB\u30EB\u30EB\u30FC\u30C8",public_driver:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30C9\u30E9\u30A4\u30D0\u30FC",public_root:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30EB\u30FC\u30C8",public_url:"\u30D1\u30D6\u30EA\u30C3\u30AFURL",public_visibility:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30D3\u30B8\u30D3\u30EA\u30C6\u30A3",media_driver:"\u30E1\u30C7\u30A3\u30A2\u30C9\u30E9\u30A4\u30D0\u30FC",media_root:"\u30E1\u30C7\u30A3\u30A2\u30EB\u30FC\u30C8",aws_driver:"AWS\u30C9\u30E9\u30A4\u30D0\u30FC",aws_key:"AWS\u30AD\u30FC",aws_secret:"AWS\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",aws_region:"AWS\u30EA\u30FC\u30B8\u30E7\u30F3",aws_bucket:"AWS\u30D0\u30B1\u30C3\u30C8",aws_root:"AWS\u30EB\u30FC\u30C8",do_spaces_type:"\u30B9\u30DA\u30FC\u30B9\u30BF\u30A4\u30D7\u3092\u5B9F\u884C\u3057\u307E\u3059",do_spaces_key:"\u30B9\u30DA\u30FC\u30B9\u30AD\u30FC\u3092\u5B9F\u884C\u3057\u307E\u3059",do_spaces_secret:"\u30B9\u30DA\u30FC\u30B9\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3092\u884C\u3046",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"\u30B9\u30DA\u30FC\u30B9\u30D0\u30B1\u30C3\u30C8\u3092\u884C\u3046",do_spaces_endpoint:"\u30B9\u30DA\u30FC\u30B9\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3092\u5B9F\u884C",do_spaces_root:"\u30B9\u30DA\u30FC\u30B9\u30EB\u30FC\u30C8\u3092\u5B9F\u884C\u3057\u307E\u3059",dropbox_type:"Dropbox\u30BF\u30A4\u30D7",dropbox_token:"Dropbox\u30C8\u30FC\u30AF\u30F3",dropbox_key:"Dropbox\u30AD\u30FC",dropbox_secret:"Dropbox\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",dropbox_app:"Dropbox\u30A2\u30D7\u30EA",dropbox_root:"Dropbox\u30EB\u30FC\u30C8",default_driver:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30C9\u30E9\u30A4\u30D0\u30FC",is_default:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3059",set_default_disk:"\u30C7\u30D5\u30A9\u30EB\u30C8\u30C7\u30A3\u30B9\u30AF\u306E\u8A2D\u5B9A",set_default_disk_confirm:"\u3053\u306E\u30C7\u30A3\u30B9\u30AF\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3068\u3057\u3066\u8A2D\u5B9A\u3055\u308C\u3001\u3059\u3079\u3066\u306E\u65B0\u3057\u3044PDF\u304C\u3053\u306E\u30C7\u30A3\u30B9\u30AF\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059",success_set_default_disk:"\u30C7\u30A3\u30B9\u30AF\u304C\u30C7\u30D5\u30A9\u30EB\u30C8\u3068\u3057\u3066\u6B63\u5E38\u306B\u8A2D\u5B9A\u3055\u308C\u307E\u3057\u305F",save_pdf_to_disk:"PDF\u3092\u30C7\u30A3\u30B9\u30AF\u306B\u4FDD\u5B58",disk_setting_description:"\u5404\u8ACB\u6C42\u66F8\u306E\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u898B\u7A4D\u3082\u308A",select_disk:"\u30C7\u30A3\u30B9\u30AF\u3092\u9078\u629E",disk_settings:"\u30C7\u30A3\u30B9\u30AF\u8A2D\u5B9A",confirm_delete:"\u65E2\u5B58\u306E\u30D5\u30A1\u30A4\u30EB",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",edit_file_disk:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF\u306E\u7DE8\u96C6",success_create:"\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",success_update:"\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",error:"\u30C7\u30A3\u30B9\u30AF\u306E\u8FFD\u52A0\u306B\u5931\u6557\u3057\u307E\u3057\u305F",deleted_message:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",disk_variables_save_successfully:"\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u69CB\u6210\u3055\u308C\u307E\u3057\u305F",disk_variables_save_error:"\u30C7\u30A3\u30B9\u30AF\u69CB\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",invalid_disk_credentials:"\u9078\u629E\u3057\u305F\u30C7\u30A3\u30B9\u30AF\u306E\u8CC7\u683C\u60C5\u5831\u304C\u7121\u52B9\u3067\u3059"}},Rl={account_info:"\u53E3\u5EA7\u60C5\u5831",account_info_desc:"\u4EE5\u4E0B\u306E\u8A73\u7D30\u306F\u3001\u30E1\u30A4\u30F3\u306E\u7BA1\u7406\u8005\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u6210\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002\u307E\u305F\u3001\u30ED\u30B0\u30A4\u30F3\u5F8C\u306F\u3044\u3064\u3067\u3082\u8A73\u7D30\u3092\u5909\u66F4\u3067\u304D\u307E\u3059\u3002",name:"\u540D\u524D",email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirm_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8A8D\u8A3C\u3059\u308B",save_cont:"\u30BB\u30FC\u30D6",company_info:"\u4F1A\u793E\u60C5\u5831",company_info_desc:"\u3053\u306E\u60C5\u5831\u306F\u8ACB\u6C42\u66F8\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u3053\u308C\u306F\u5F8C\u3067\u8A2D\u5B9A\u30DA\u30FC\u30B8\u3067\u7DE8\u96C6\u3067\u304D\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",company_name:"\u4F1A\u793E\u540D",company_logo:"\u4F1A\u793E\u306E\u30ED\u30B4",logo_preview:"\u30ED\u30B4\u30D7\u30EC\u30D3\u30E5\u30FC",preferences:"\u74B0\u5883\u8A2D\u5B9A",preferences_desc:"\u30B7\u30B9\u30C6\u30E0\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u8A2D\u5B9A\u3002",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",address:"\u4F4F\u6240",street:"Street1 | 2\u4E01\u76EE",phone:"\u96FB\u8A71",zip_code:"\u90F5\u4FBF\u756A\u53F7",go_back:"\u623B\u308B",currency:"\u901A\u8CA8",language:"\u8A00\u8A9E",time_zone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",fiscal_year:"\u4F1A\u8A08\u5E74\u5EA6",date_format:"\u65E5\u4ED8\u5F62\u5F0F",from_address:"\u5DEE\u51FA\u4EBA\u4F4F\u6240",username:"\u30E6\u30FC\u30B6\u30FC\u540D",next:"\u6B21",continue:"\u7D99\u7D9A\u3059\u308B",skip:"\u30B9\u30AD\u30C3\u30D7",database:{database:"\u30B5\u30A4\u30C8\u306EURL",connection:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u63A5\u7D9A",host:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30DB\u30B9\u30C8",port:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30DD\u30FC\u30C8",password:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30D1\u30B9\u30EF\u30FC\u30C9",app_url:"\u30A2\u30D7\u30EA\u306EURL",app_domain:"\u30A2\u30D7\u30EA\u30C9\u30E1\u30A4\u30F3",username:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30E6\u30FC\u30B6\u30FC\u540D",db_name:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D",db_path:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30D1\u30B9",desc:"\u30B5\u30FC\u30D0\u30FC\u4E0A\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210\u3057\u3001\u4EE5\u4E0B\u306E\u30D5\u30A9\u30FC\u30E0\u3092\u4F7F\u7528\u3057\u3066\u8CC7\u683C\u60C5\u5831\u3092\u8A2D\u5B9A\u3057\u307E\u3059\u3002"},permissions:{permissions:"\u6A29\u9650",permission_confirm_title:"\u7D9A\u884C\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",permission_confirm_desc:"\u30D5\u30A9\u30EB\u30C0\u306E\u30A2\u30AF\u30BB\u30B9\u8A31\u53EF\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F",permission_desc:"\u4EE5\u4E0B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u6A5F\u80FD\u3059\u308B\u305F\u3081\u306B\u5FC5\u8981\u306A\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u30A2\u30AF\u30BB\u30B9\u8A31\u53EF\u306E\u30EA\u30B9\u30C8\u3067\u3059\u3002\u6A29\u9650\u30C1\u30A7\u30C3\u30AF\u306B\u5931\u6557\u3057\u305F\u5834\u5408\u306F\u3001\u5FC5\u305A\u30D5\u30A9\u30EB\u30C0\u306E\u6A29\u9650\u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},mail:{host:"\u30E1\u30FC\u30EB\u30DB\u30B9\u30C8",port:"\u30E1\u30FC\u30EB\u30DD\u30FC\u30C8",driver:"\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC",secret:"\u79D8\u5BC6",mailgun_secret:"\u30E1\u30FC\u30EB\u30AC\u30F3\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",mailgun_domain:"\u30C9\u30E1\u30A4\u30F3",mailgun_endpoint:"Mailgun\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8",ses_secret:"SES\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",ses_key:"SES\u30AD\u30FC",password:"\u30E1\u30FC\u30EB\u30D1\u30B9\u30EF\u30FC\u30C9",username:"\u30E1\u30FC\u30EB\u30E6\u30FC\u30B6\u30FC\u540D",mail_config:"\u30E1\u30FC\u30EB\u8A2D\u5B9A",from_name:"\u30E1\u30FC\u30EB\u540D\u304B\u3089",from_mail:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304B\u3089",encryption:"\u30E1\u30FC\u30EB\u306E\u6697\u53F7\u5316",mail_config_desc:"\u4EE5\u4E0B\u306F\u3001\u30A2\u30D7\u30EA\u304B\u3089\u30E1\u30FC\u30EB\u3092\u9001\u4FE1\u3059\u308B\u305F\u3081\u306E\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC\u3092\u69CB\u6210\u3059\u308B\u305F\u3081\u306E\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002 Sendgrid\u3001SES\u306A\u3069\u306E\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u69CB\u6210\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002"},req:{system_req:"\u30B7\u30B9\u30C6\u30E0\u8981\u6C42",php_req_version:"PHP\uFF08\u30D0\u30FC\u30B8\u30E7\u30F3{version}\u304C\u5FC5\u8981\uFF09",check_req:"\u8981\u4EF6\u3092\u78BA\u8A8D\u3059\u308B",system_req_desc:"\u30AF\u30EC\u30FC\u30BF\u30FC\u306B\u306F\u3044\u304F\u3064\u304B\u306E\u30B5\u30FC\u30D0\u30FC\u8981\u4EF6\u304C\u3042\u308A\u307E\u3059\u3002\u30B5\u30FC\u30D0\u30FC\u306B\u5FC5\u8981\u306Aphp\u30D0\u30FC\u30B8\u30E7\u30F3\u3068\u4EE5\u4E0B\u306B\u8A18\u8F09\u3055\u308C\u3066\u3044\u308B\u3059\u3079\u3066\u306E\u62E1\u5F35\u6A5F\u80FD\u304C\u3042\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},errors:{migrate_failed:"\u79FB\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F",database_variables_save_error:"\u69CB\u6210\u3092.env\u30D5\u30A1\u30A4\u30EB\u306B\u66F8\u304D\u8FBC\u3081\u307E\u305B\u3093\u3002\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30AF\u30BB\u30B9\u8A31\u53EF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",mail_variables_save_error:"\u96FB\u5B50\u30E1\u30FC\u30EB\u306E\u69CB\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",connection_failed:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u63A5\u7D9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F",database_should_be_empty:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306F\u7A7A\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"},success:{mail_variables_save_successfully:"\u96FB\u5B50\u30E1\u30FC\u30EB\u304C\u6B63\u5E38\u306B\u69CB\u6210\u3055\u308C\u307E\u3057\u305F",database_variables_save_successfully:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u6B63\u5E38\u306B\u69CB\u6210\u3055\u308C\u307E\u3057\u305F\u3002"}},Fl={invalid_phone:"\u7121\u52B9\u306A\u96FB\u8A71\u756A\u53F7",invalid_url:"\u7121\u52B9\u306AURL\uFF08\u4F8B\uFF1Ahttp\uFF1A//www.craterapp.com\uFF09",invalid_domain_url:"\u7121\u52B9\u306AURL\uFF08\u4F8B\uFF1Acraterapp.com\uFF09",required:"\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u5FC5\u9808\u9805\u76EE\u3067\u3059",email_incorrect:"\u8AA4\u3063\u305F\u30E1\u30FC\u30EB\u3002",email_already_taken:"\u30E1\u30FC\u30EB\u306F\u3059\u3067\u306B\u53D6\u3089\u308C\u3066\u3044\u307E\u3059\u3002",email_does_not_exist:"\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u6301\u3064\u30E6\u30FC\u30B6\u30FC\u306F\u5B58\u5728\u3057\u307E\u305B\u3093",item_unit_already_taken:"\u3053\u306E\u30A2\u30A4\u30C6\u30E0\u306E\u30E6\u30CB\u30C3\u30C8\u540D\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",payment_mode_already_taken:"\u3053\u306E\u652F\u6255\u3044\u30E2\u30FC\u30C9\u540D\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",send_reset_link:"\u30EA\u30BB\u30C3\u30C8\u30EA\u30F3\u30AF\u3092\u9001\u4FE1\u3059\u308B",not_yet:"\u672A\u3060\u306B\uFF1F\u3082\u3046\u4E00\u5EA6\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044",password_min_length:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306B\u306F{count}\u6587\u5B57\u3092\u542B\u3081\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",name_min_length:"\u540D\u524D\u306B\u306F\u5C11\u306A\u304F\u3068\u3082{count}\u6587\u5B57\u304C\u5FC5\u8981\u3067\u3059\u3002",enter_valid_tax_rate:"\u6709\u52B9\u306A\u7A0E\u7387\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",numbers_only:"\u6570\u5B57\u306E\u307F\u3002",characters_only:"\u6587\u5B57\u306E\u307F\u3002",password_incorrect:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u540C\u4E00\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",password_length:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306F{count}\u6587\u5B57\u306E\u9577\u3055\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",qty_must_greater_than_zero:"\u6570\u91CF\u306F\u30BC\u30ED\u3088\u308A\u5927\u304D\u304F\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002",price_greater_than_zero:"\u4FA1\u683C\u306F\u30BC\u30ED\u3088\u308A\u5927\u304D\u304F\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002",payment_greater_than_zero:"\u652F\u6255\u3044\u306F\u30BC\u30ED\u3088\u308A\u5927\u304D\u304F\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002",payment_greater_than_due_amount:"\u5165\u529B\u3055\u308C\u305F\u652F\u6255\u3044\u306F\u3001\u3053\u306E\u8ACB\u6C42\u66F8\u306E\u652F\u6255\u984D\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",quantity_maxlength:"\u6570\u91CF\u306F20\u6841\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",price_maxlength:"\u4FA1\u683C\u306F20\u6841\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",price_minvalue:"\u4FA1\u683C\u306F0\u3088\u308A\u5927\u304D\u304F\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",amount_maxlength:"\u91D1\u984D\u306F20\u6841\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",amount_minvalue:"\u91D1\u984D\u306F0\u3088\u308A\u5927\u304D\u304F\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",description_maxlength:"\u8AAC\u660E\u306F65,000\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",subject_maxlength:"\u4EF6\u540D\u306F100\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",message_maxlength:"\u30E1\u30C3\u30BB\u30FC\u30B8\u306F255\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",maximum_options_error:"\u9078\u629E\u3055\u308C\u305F{max}\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u6700\u5927\u6570\u3002\u307E\u305A\u3001\u9078\u629E\u3057\u305F\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u524A\u9664\u3057\u3066\u3001\u5225\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u307E\u3059\u3002",notes_maxlength:"\u30E1\u30E2\u306F65,000\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",address_maxlength:"\u30A2\u30C9\u30EC\u30B9\u306F255\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",ref_number_maxlength:"\u53C2\u7167\u756A\u53F7\u306F255\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",prefix_maxlength:"\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u306F5\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F"},Ml="\u898B\u7A4D\u3082\u308A",Vl="\u898B\u7A4D\u3082\u308A\u756A\u53F7",Bl="\u898B\u7A4D\u3082\u308A\u65E5",Ol="\u6709\u52B9\u671F\u9650",Ll="\u8ACB\u6C42\u66F8",Ul="\u8ACB\u6C42\u66F8\u756A\u53F7",Kl="\u8ACB\u6C42\u66F8\u306E\u65E5\u4ED8",ql="\u671F\u65E5",Zl="\u30CE\u30FC\u30C8",Wl="\u30A2\u30A4\u30C6\u30E0",Hl="\u91CF",Gl="\u4FA1\u683C",Yl="\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",Jl="\u91CF",Xl="\u5C0F\u8A08",Ql="\u5408\u8A08",ec="\u652F\u6255\u3044",tc="\u304A\u652F\u6255\u3044\u306E\u9818\u53CE\u66F8",ac="\u652F\u6255\u671F\u65E5",sc="\u652F\u6255\u3044\u756A\u53F7",nc="\u652F\u6255\u3044\u30E2\u30FC\u30C9",ic="\u3082\u3089\u3063\u305F\u5206\u91CF",oc="\u7D4C\u8CBB\u5831\u544A\u66F8",rc="\u7DCF\u7D4C\u8CBB",dc="\u5229\u76CA",lc="\u30BB\u30FC\u30EB\u30B9\u30AB\u30B9\u30BF\u30DE\u30FC\u30EC\u30DD\u30FC\u30C8",cc="\u8CA9\u58F2\u30A2\u30A4\u30C6\u30E0\u30EC\u30DD\u30FC\u30C8",_c="\u7A0E\u6982\u8981\u30EC\u30DD\u30FC\u30C8",uc="\u6240\u5F97",mc="\u7D14\u5229\u76CA",pc="\u8CA9\u58F2\u30EC\u30DD\u30FC\u30C8\uFF1A\u9867\u5BA2\u5225",gc="\u7DCF\u58F2\u4E0A\u9AD8",fc="\u8CA9\u58F2\u30EC\u30DD\u30FC\u30C8\uFF1A\u30A2\u30A4\u30C6\u30E0\u5225",hc="\u7A0E\u30EC\u30DD\u30FC\u30C8",vc="\u7DCF\u7A0E",yc="\u7A0E\u306E\u7A2E\u985E",bc="\u7D4C\u8CBB",kc="\u8ACB\u6C42\u66F8\u9001\u4ED8\u5148\u3001",wc="\u9001\u308A\u5148\u3001",xc="\u304B\u3089\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF1A",zc="\u7A0E";var Sc={navigation:kl,general:wl,dashboard:xl,tax_types:zl,global_search:Sl,customers:jl,items:Pl,estimates:Dl,invoices:Cl,payments:Al,expenses:El,login:Nl,users:Tl,reports:Il,settings:$l,wizard:Rl,validation:Fl,pdf_estimate_label:Ml,pdf_estimate_number:Vl,pdf_estimate_date:Bl,pdf_estimate_expire_date:Ol,pdf_invoice_label:Ll,pdf_invoice_number:Ul,pdf_invoice_date:Kl,pdf_invoice_due_date:ql,pdf_notes:Zl,pdf_items_label:Wl,pdf_quantity_label:Hl,pdf_price_label:Gl,pdf_discount_label:Yl,pdf_amount_label:Jl,pdf_subtotal:Xl,pdf_total:Ql,pdf_payment_label:ec,pdf_payment_receipt_label:tc,pdf_payment_date:ac,pdf_payment_number:sc,pdf_payment_mode:nc,pdf_payment_amount_received_label:ic,pdf_expense_report_label:oc,pdf_total_expenses_label:rc,pdf_profit_loss_label:dc,pdf_sales_customers_label:lc,pdf_sales_items_label:cc,pdf_tax_summery_label:_c,pdf_income_label:uc,pdf_net_profit_label:mc,pdf_customer_sales_report:pc,pdf_total_sales_label:gc,pdf_item_sales_label:fc,pdf_tax_report_label:hc,pdf_total_tax_label:vc,pdf_tax_types_label:yc,pdf_expenses_label:bc,pdf_bill_to:kc,pdf_ship_to:wc,pdf_received_from:xc,pdf_tax_label:zc};const jc={dashboard:"Panel zarz\u0105dzania",customers:"Kontrahenci",items:"Pozycje",invoices:"Faktury",expenses:"Wydatki",estimates:"Oferty",payments:"P\u0142atno\u015Bci",reports:"Raporty",settings:"Ustawienia",logout:"Wyloguj",users:"U\u017Cytkownicy"},Pc={add_company:"Dodaj firm\u0119",view_pdf:"Wy\u015Bwietl PDF",copy_pdf_url:"Kopiuj adres URL PDF",download_pdf:"\u015Aci\u0105gnij PDF",save:"Zapisz",create:"Stw\xF3rz",cancel:"Anuluj",update:"Zaktualizuj",deselect:"Odznacz",download:"Pobierz",from_date:"Od daty",to_date:"Do daty",from:"Od",to:"Do",sort_by:"Sortuj wed\u0142ug",ascending:"Rosn\u0105co",descending:"Malej\u0105co",subject:"Temat",body:"Tre\u015B\u0107",message:"Wiadomo\u015B\u0107",send:"Wy\u015Blij",go_back:"Wstecz",back_to_login:"Wr\xF3\u0107 do logowania?",home:"Strona g\u0142\xF3wna",filter:"Filtr",delete:"Usu\u0144",edit:"Edytuj",view:"Widok",add_new_item:"Dodaj now\u0105 pozycj\u0119",clear_all:"Wyczy\u015B\u0107 wszystko",showing:"Wy\u015Bwietlanie",of:"z",actions:"Akcje",subtotal:"SUMA CZ\u0118\u015ACIOWA",discount:"RABAT",fixed:"Sta\u0142y",percentage:"Procentowo",tax:"PODATEK",total_amount:"\u0141\u0104CZNA KWOTA",bill_to:"P\u0142atnik",ship_to:"Wy\u015Blij do",due:"Nale\u017Cno\u015B\u0107",draft:"Wersja robocza",sent:"Wys\u0142ano",all:"Wszystko",select_all:"Zaznacz wszystkie",choose_file:"Kliknij tutaj, aby wybra\u0107 plik",choose_template:"Wybierz szablon",choose:"Wybierz",remove:"Usu\u0144",powered_by:"Wspierane przez",bytefury:"Bytefury",select_a_status:"Wybierz status",select_a_tax:"Wybierz podatek",search:"Wyszukaj",are_you_sure:"Czy jeste\u015B pewien?",list_is_empty:"Lista jest pusta.",no_tax_found:"Nie znaleziono podatku!",four_zero_four:"404",you_got_lost:"Ups! Zgubi\u0142e\u015B si\u0119!",go_home:"Wr\xF3\u0107 do strony g\u0142\xF3wnej",test_mail_conf:"Konfiguracja poczty testowej",send_mail_successfully:"Wiadomo\u015B\u0107 wys\u0142ana pomy\u015Blnie",setting_updated:"Ustawienia zosta\u0142y zaktualizowane",select_state:"Wybierz wojew\xF3dztwo",select_country:"Wybierz kraj",select_city:"Wybierz miasto",street_1:"Adres 1",street_2:"Adres 2",action_failed:"Niepowodzenie",retry:"Spr\xF3buj ponownie",choose_note:"Wybierz notatk\u0119",no_note_found:"Nie znaleziono notatki",insert_note:"Wstaw notatk\u0119",copied_pdf_url_clipboard:"Skopiowano adres URL pliku PDF do schowka!"},Dc={select_year:"Wybierz rok",cards:{due_amount:"Do zap\u0142aty",customers:"Kontrahenci",invoices:"Faktury",estimates:"Oferty"},chart_info:{total_sales:"Sprzeda\u017C",total_receipts:"Przychody",total_expense:"Wydatki",net_income:"Doch\xF3d netto",year:"Wybierz rok"},weekly_invoices:{title:"Faktury tygodniowe"},monthly_chart:{title:"Sprzeda\u017C i wydatki"},recent_invoices_card:{title:"Nale\u017Cne faktury",due_on:"Termin p\u0142atno\u015Bci",customer:"Kontrahent",amount_due:"Do zap\u0142aty",actions:"Akcje",view_all:"Zobacz wszsytkie"},recent_estimate_card:{title:"Najnowsze oferty",date:"Data",customer:"Kontrahent",amount_due:"Do zap\u0142aty",actions:"Akcje",view_all:"Zobacz wszsytkie"}},Cc={name:"Nazwa",description:"Opis",percent:"Procent",compound_tax:"Podatek z\u0142o\u017Cony"},Ac={search:"Wyszukaj...",customers:"Kontrahenci",users:"U\u017Cytkownicy",no_results_found:"Nie znaleziono wynik\xF3w"},Ec={title:"Kontrahenci",add_customer:"Dodaj kontrahenta",contacts_list:"Lista kontrahent\xF3w",name:"Nazwa",mail:"Poczta | Poczta",statement:"Komunikat",display_name:"Widoczna nazwa",primary_contact_name:"G\u0142\xF3wna osoba kontaktowa",contact_name:"Nazwa kontaktu",amount_due:"Do zap\u0142aty",email:"E-mail",address:"Adres",phone:"Telefon",website:"Strona internetowa",overview:"Przegl\u0105d",enable_portal:"W\u0142\u0105cz portal",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",zip_code:"Kod pocztowy",added_on:"Dodano dnia",action:"Akcja",password:"Has\u0142a",street_number:"Numer ulicy",primary_currency:"Waluta g\u0142\xF3wna",description:"Opis",add_new_customer:"Dodaj nowego kontrahenta",save_customer:"Zapisz kontrahenta",update_customer:"Aktualizuj kontrahenta",customer:"Kontrahent | Kontrahenci",new_customer:"Nowy kontrahent",edit_customer:"Edytuj kontrahenta",basic_info:"Podstawowe informacje",billing_address:"Adres do faktury",shipping_address:"Adres dostawy",copy_billing_address:"Kopiuj z rachunku",no_customers:"Brak kontrahent\xF3w!",no_customers_found:"Nie znaleziono kontrahent\xF3w!",no_contact:"Brak kontaktu",no_contact_name:"Brak nazwy kontaktu",list_of_customers:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 kontrahent\xF3w.",primary_display_name:"G\u0142\xF3wna nazwa wy\u015Bwietlana",select_currency:"Wybierz walut\u0119",select_a_customer:"Wybierz kontrahenta",type_or_click:"Wpisz lub kliknij aby wybra\u0107",new_transaction:"Nowa transakcja",no_matching_customers:"Brak pasuj\u0105cych kontrahent\xF3w!",phone_number:"Numer telefonu",create_date:"Data utworzenia",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego kontrahenta i wszystkich powi\u0105zanych faktur, ofert i p\u0142atno\u015Bci. | Nie b\u0119dziesz w stanie odzyska\u0107 tych kontrahent\xF3w i wszystkich powi\u0105zanych faktur, ofert i p\u0142atno\u015Bci.",created_message:"Kontrahent zosta\u0142 utworzony poprawnie",updated_message:"Kontrahent zosta\u0142 zaktualizowany poprawnie",deleted_message:"Kontrahent zosta\u0142 usuni\u0119ty pomy\u015Blnie | Kontrahenci zostali usuni\u0119ci pomy\u015Blnie"},Nc={title:"Pozycje",items_list:"Lista artyku\u0142\xF3w",name:"Nazwa",unit:"Jednostka",description:"Opis",added_on:"Dodane",price:"Cena",date_of_creation:"Data utworzenia",not_selected:"Nie wybrano element\xF3w",action:"Akcja",add_item:"Dodaj pozycj\u0119",save_item:"Zapisz element",update_item:"Aktualizuj element",item:"Pozycja | Pozycje",add_new_item:"Dodaj now\u0105 pozycj\u0119",new_item:"Nowy produkt",edit_item:"Edytuj element",no_items:"Brak element\xF3w!",list_of_items:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 pozycji.",select_a_unit:"wybierz jednostk\u0119",taxes:"Podatki",item_attached_message:"Nie mo\u017Cna usun\u0105\u0107 elementu, kt\xF3ry jest ju\u017C u\u017Cywany",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej pozycji | Nie b\u0119dziesz w stanie odzyska\u0107 tych pozycji",created_message:"Element zosta\u0142 pomy\u015Blnie zaktualizowany",updated_message:"Element zosta\u0142 pomy\u015Blnie zaktualizowany",deleted_message:"Pozycja usuni\u0119ta pomy\u015Blnie | Pozycje usuni\u0119te pomy\u015Blnie"},Tc={title:"Oferty",estimate:"Oferta | Oferty",estimates_list:"Lista ofert",days:"{days} Dni",months:"{months} Miesi\u0105c",years:"{years} Rok",all:"Wszystkie",paid:"Zap\u0142acone",unpaid:"Niezap\u0142acone",customer:"KONTRAHENT",ref_no:"NR REF.",number:"NUMER",amount_due:"DO ZAP\u0141ATY",partially_paid:"Cz\u0119\u015Bciowo op\u0142acona",total:"Razem",discount:"Rabat",sub_total:"Podsumowanie",estimate_number:"Numer oferty",ref_number:"Numer referencyjny",contact:"Kontakt",add_item:"Dodaj pozycj\u0119",date:"Data",due_date:"Data wa\u017Cno\u015Bci",expiry_date:"Data wyga\u015Bni\u0119cia",status:"Status",add_tax:"Dodaj podatek",amount:"Kwota",action:"Akcja",notes:"Notatki",tax:"Podatek",estimate_template:"Szablon",convert_to_invoice:"Konwertuj do faktury",mark_as_sent:"Oznacz jako wys\u0142ane",send_estimate:"Wy\u015Blij ofert\u0119",resend_estimate:"Wy\u015Blij ponownie ofert\u0119",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",add_estimate:"Dodaj ofert\u0119",save_estimate:"Zapisz ofert\u0119",confirm_conversion:"Ta oferta zostanie u\u017Cyta do utworzenia nowej faktury.",conversion_message:"Faktura zosta\u0142a utworzona pomy\u015Blnie",confirm_send_estimate:"Ta oferta zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do kontrahenta",confirm_mark_as_sent:"Ta oferta zostanie oznaczona jako wys\u0142ana",confirm_mark_as_accepted:"Ta oferta zostanie oznaczona jako zatwierdzona",confirm_mark_as_rejected:"Ta oferta zostanie oznaczona jako odrzucona",no_matching_estimates:"Brak pasuj\u0105cych ofert!",mark_as_sent_successfully:"Oferta oznaczona jako wys\u0142ana pomy\u015Blnie",send_estimate_successfully:"Kalkulacja wys\u0142ana pomy\u015Blnie",errors:{required:"To pole jest wymagane"},accepted:"Zaakceptowano",rejected:"Odrzucono",sent:"Wys\u0142ano",draft:"Wersja robocza",declined:"Odrzucony",new_estimate:"Nowa oferta",add_new_estimate:"Dodaj now\u0105 ofert\u0119",update_Estimate:"Zaktualizuj ofert\u0119",edit_estimate:"Edytuj ofert\u0119",items:"pozycje",Estimate:"Oferta | Oferty",add_new_tax:"Dodaj nowy podatek",no_estimates:"Nie ma jeszcze ofert!",list_of_estimates:"Ta sekcja b\u0119dzie zawiera\u0142a list\u0119 ofert.",mark_as_rejected:"Oznacz jako odrzucon\u0105",mark_as_accepted:"Oznacz jako zaakceptowan\u0105",marked_as_accepted_message:"Oferty oznaczone jako zaakceptowane",marked_as_rejected_message:"Oferty oznaczone jako odrzucone",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej oferty | Nie b\u0119dziesz w stanie odzyska\u0107 tych ofert",created_message:"Oferta utworzona pomy\u015Blnie",updated_message:"Oferta zaktualizowana pomy\u015Blnie",deleted_message:"Oferta usuni\u0119ta pomy\u015Blnie | Oferty usuni\u0119te pomy\u015Blnie",user_email_does_not_exist:"E-mail u\u017Cytkownika nie istnieje",something_went_wrong:"co\u015B posz\u0142o nie tak",item:{title:"Tytu\u0142 pozycji",description:"Opis",quantity:"Ilo\u015B\u0107",price:"Cena",discount:"Rabat",total:"Razem",total_discount:"Rabat \u0142\u0105cznie",sub_total:"Podsumowanie",tax:"Podatek",amount:"Kwota",select_an_item:"Wpisz lub kliknij aby wybra\u0107 element",type_item_description:"Opis pozycji (opcjonalnie)"}},Ic={title:"Faktury",invoices_list:"Lista faktur",days:"{days} Dni",months:"{months} Miesi\u0105c",years:"{years} Rok",all:"Wszystko",paid:"Zap\u0142acono",unpaid:"Nie zap\u0142acono",viewed:"Przejrzane",overdue:"Zaleg\u0142e",completed:"Uko\u0144czone",customer:"KONTRAHENT",paid_status:"STATUS P\u0141ATNO\u015ACI",ref_no:"NR REF.",number:"NUMER",amount_due:"DO ZAP\u0141ATY",partially_paid:"Cz\u0119\u015Bciowo op\u0142acona",total:"Razem",discount:"Rabat",sub_total:"Podsumowanie",invoice:"Faktura | Faktury",invoice_number:"Numer faktury",ref_number:"Numer referencyjny",contact:"Kontakt",add_item:"Dodaj pozycj\u0119",date:"Data",due_date:"Termin p\u0142atno\u015Bci",status:"Status",add_tax:"Dodaj podatek",amount:"Kwota",action:"Akcja",notes:"Notatki",view:"Widok",send_invoice:"Wy\u015Blij faktur\u0119",resend_invoice:"Wy\u015Blij faktur\u0119 ponownie",invoice_template:"Szablon faktury",template:"Szablon",mark_as_sent:"Oznacz jako wys\u0142ane",confirm_send_invoice:"Ta faktura zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do kontrahenta",invoice_mark_as_sent:"Ta faktura zostanie oznaczona jako wys\u0142ana",confirm_send:"Ta faktura zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do kontrahenta",invoice_date:"Data faktury",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",add_new_invoice:"Dodaj now\u0105 faktur\u0119",update_expense:"Zaktualizuj wydatki",edit_invoice:"Edytuj faktur\u0119",new_invoice:"Nowa faktura",save_invoice:"Zapisz faktur\u0119",update_invoice:"Zaktualizuj faktur\u0119",add_new_tax:"Dodaj nowy podatek",no_invoices:"Brak faktur!",list_of_invoices:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 faktur.",select_invoice:"Wybierz faktur\u0119",no_matching_invoices:"Brak pasuj\u0105cych faktur!",mark_as_sent_successfully:"Faktura oznaczona jako wys\u0142ana pomy\u015Blnie",send_invoice_successfully:"Faktura wys\u0142ana pomy\u015Blnie",cloned_successfully:"Faktura sklonowana pomy\u015Blnie",clone_invoice:"Sklonuj faktur\u0119",confirm_clone:"Ta faktura zostanie sklonowana do nowej faktury",item:{title:"Tytu\u0142 pozycji",description:"Opis",quantity:"Ilo\u015B\u0107",price:"Cena",discount:"Rabat",total:"Razem",total_discount:"Rabat \u0142\u0105cznie",sub_total:"Podsumowanie",tax:"Podatek",amount:"Kwota",select_an_item:"Wpisz lub kliknij aby wybra\u0107 element",type_item_description:"Opis pozycji (opcjonalnie)"},payment_attached_message:"Jedna z wybranych faktur ma do\u0142\u0105czon\u0105 p\u0142atno\u015B\u0107. Upewnij si\u0119, \u017Ce najpierw usuniesz za\u0142\u0105czone p\u0142atno\u015Bci, aby kontynuowa\u0107 usuwanie",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej faktury | Nie b\u0119dziesz w stanie odzyska\u0107 tych faktur",created_message:"Faktura zosta\u0142a utworzona pomy\u015Blnie",updated_message:"Faktura zosta\u0142a pomy\u015Blnie zaktualizowana",deleted_message:"Faktura usuni\u0119ta pomy\u015Blnie | Faktury usuni\u0119te pomy\u015Blnie",marked_as_sent_message:"Faktura oznaczona jako wys\u0142ana pomy\u015Blnie",user_email_does_not_exist:"E-mail u\u017Cytkownika nie istnieje",something_went_wrong:"co\u015B posz\u0142o nie tak",invalid_due_amount_message:"Ca\u0142kowita kwota faktury nie mo\u017Ce by\u0107 mniejsza ni\u017C ca\u0142kowita kwota zap\u0142acona za t\u0119 faktur\u0119. Prosz\u0119 zaktualizowa\u0107 faktur\u0119 lub usun\u0105\u0107 powi\u0105zane p\u0142atno\u015Bci, aby kontynuowa\u0107."},$c={title:"Noty kredytowe",credit_notes_list:"Lista not kredytowych",credit_notes:"Noty kredytowe",contact:"Kontakt",date:"Data",amount:"Kwota",action:"Akcja",credit_number:"Numer kredytu",notes:"Notatki",confirm_delete:"Czy na pewno chcesz usun\u0105\u0107 notatk\u0119 kredytow\u0105?",item:{title:"Tytu\u0142 pozycji",description:"Opis",quantity:"Ilo\u015B\u0107",price:"Cena",discount:"Rabat",total:"Razem",total_discount:"Rabat \u0142\u0105cznie",sub_total:"Podsumowanie",tax:"Podatek"}},Rc={title:"P\u0142atno\u015Bci",payments_list:"Lista p\u0142atno\u015Bci",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",customer:"Kontrahent",date:"Data",amount:"Kwota",action:"Akcja",payment_number:"Numer p\u0142atno\u015Bci",payment_mode:"Metoda p\u0142atno\u015Bci",invoice:"Faktura",note:"Notatka",add_payment:"Dodaj p\u0142atno\u015B\u0107",new_payment:"Nowa p\u0142atno\u015B\u0107",edit_payment:"Edytuj p\u0142atno\u015B\u0107",view_payment:"Wy\u015Bwietl p\u0142atno\u015B\u0107",add_new_payment:"Dodaj now\u0105 p\u0142atno\u015B\u0107",send_payment_receipt:"Wy\u015Blij potwierdzenie p\u0142atno\u015Bci",send_payment:"Wy\u015Blij p\u0142atno\u015B\u0107",save_payment:"Zapisz p\u0142atno\u015B\u0107",update_payment:"Zaktualizuj p\u0142atno\u015B\u0107",payment:"P\u0142atno\u015B\u0107 | P\u0142atno\u015Bci",no_payments:"Nie ma jeszcze p\u0142atno\u015Bci!",not_selected:"Nie wybrano",no_invoice:"Brak faktury",no_matching_payments:"Brak pasuj\u0105cych p\u0142atno\u015Bci!",list_of_payments:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 p\u0142atno\u015Bci.",select_payment_mode:"Wybierz spos\xF3b p\u0142atno\u015Bci",confirm_mark_as_sent:"Ta oferta zostanie oznaczona jako wys\u0142ana",confirm_send_payment:"Ta p\u0142atno\u015B\u0107 zostanie wys\u0142ana e-mailem do kontrahenta",send_payment_successfully:"P\u0142atno\u015B\u0107 wys\u0142ana pomy\u015Blnie",user_email_does_not_exist:"E-mail u\u017Cytkownika nie istnieje",something_went_wrong:"co\u015B posz\u0142o nie tak",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej p\u0142atno\u015Bci | Nie b\u0119dziesz w stanie odzyska\u0107 tych p\u0142atno\u015Bci",created_message:"P\u0142atno\u015B\u0107 zosta\u0142a pomy\u015Blnie utworzona",updated_message:"P\u0142atno\u015B\u0107 zosta\u0142a pomy\u015Blnie zaktualizowana",deleted_message:"P\u0142atno\u015B\u0107 usuni\u0119ta pomy\u015Blnie | P\u0142atno\u015Bci usuni\u0119te pomy\u015Blnie",invalid_amount_message:"Kwota p\u0142atno\u015Bci jest nieprawid\u0142owa"},Fc={title:"Wydatki",expenses_list:"Lista wydatk\xF3w",select_a_customer:"Wybierz kontrahenta",expense_title:"Tytu\u0142",customer:"Kontrahent",contact:"Kontakt",category:"Kategoria",from_date:"Od daty",to_date:"Do daty",expense_date:"Data",description:"Opis",receipt:"Potwierdzenie",amount:"Kwota",action:"Akcja",not_selected:"Nie wybrano",note:"Notatka",category_id:"Identyfikator kategorii",date:"Data",add_expense:"Dodaj wydatek",add_new_expense:"Dodaj nowy wydatek",save_expense:"Zapisz wydatek",update_expense:"Zaktualizuj wydatek",download_receipt:"Pobierz potwierdzenie wp\u0142aty",edit_expense:"Edytuj wydatek",new_expense:"Nowy wydatek",expense:"Wydatek | Wydatki",no_expenses:"Nie ma jeszcze wydatk\xF3w!",list_of_expenses:"Ta sekcja b\u0119dzie zawiera\u0142a list\u0119 wydatk\xF3w.",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego wydatku | Nie b\u0119dziesz w stanie odzyska\u0107 tych wydatk\xF3w",created_message:"Wydatek utworzony pomy\u015Blnie",updated_message:"Wydatek zaktualizowany pomy\u015Blnie",deleted_message:"Wydatek usuni\u0119ty pomy\u015Blnie | Wydatki usuni\u0119te pomy\u015Blnie",categories:{categories_list:"Lista kategorii",title:"Tytu\u0142",name:"Nazwa",description:"Opis",amount:"Kwota",actions:"Akcje",add_category:"Dodaj kategori\u0119",new_category:"Nowa kategoria",category:"Kategoria | Kategorie",select_a_category:"Wybierz kategori\u0119"}},Mc={email:"E-mail",password:"Has\u0142o",forgot_password:"Nie pami\u0119tasz has\u0142a?",or_signIn_with:"lub zaloguj si\u0119 przez",login:"Logowanie",register:"Rejestracja",reset_password:"Resetuj has\u0142o",password_reset_successfully:"Has\u0142o zosta\u0142o pomy\u015Blnie zresetowane",enter_email:"Wprowad\u017A adres e-mail",enter_password:"Wprowad\u017A has\u0142o",retype_password:"Wprowad\u017A has\u0142o ponownie",login_placeholder:"mail@example.com"},Vc={title:"U\u017Cytkownicy",users_list:"Lista u\u017Cytkownik\xF3w",name:"Nazwa",description:"Opis",added_on:"Dodano dnia",date_of_creation:"Data utworzenia",action:"Akcja",add_user:"Dodaj u\u017Cytkownika",save_user:"Zapisz u\u017Cytkownika",update_user:"Zaktualizuj u\u017Cytkownika",user:"U\u017Cytkownik | U\u017Cytkownicy",add_new_user:"Dodaj nowego u\u017Cytkownika",new_user:"Nowy u\u017Cytkownik",edit_user:"Edytuj u\u017Cytkownika",no_users:"Brak u\u017Cytkownik\xF3w!",list_of_users:"Ta sekcja b\u0119dzie zawiera\u0142a list\u0119 u\u017Cytkownik\xF3w.",email:"Email",phone:"Telefon",password:"Has\u0142o",user_attached_message:"Nie mo\u017Cna usun\u0105\u0107 elementu, kt\xF3ry jest ju\u017C w u\u017Cyciu",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego u\u017Cytkownika | Nie b\u0119dziesz w stanie odzyska\u0107 tych u\u017Cytkownik\xF3w",created_message:"U\u017Cytkownik zosta\u0142 utworzony pomy\u015Blnie",updated_message:"U\u017Cytkownik zosta\u0142 zaktualizowany pomy\u015Blnie",deleted_message:"U\u017Cytkownik usuni\u0119ty pomy\u015Blnie | U\u017Cytkownicy usuni\u0119ci pomy\u015Blnie"},Bc={title:"Raport",from_date:"Od daty",to_date:"Do daty",status:"Status",paid:"Zap\u0142acono",unpaid:"Nie zap\u0142acono",download_pdf:"Pobierz plik PDF",view_pdf:"Podgl\u0105d PDF",update_report:"Aktualizuj raport",report:"Raport | Raporty",profit_loss:{profit_loss:"Zyski i straty",to_date:"Do daty",from_date:"Od daty",date_range:"Wybierz zakres dat"},sales:{sales:"Sprzeda\u017C",date_range:"Wybierz zakres dat",to_date:"Do daty",from_date:"Od daty",report_type:"Typ raportu"},taxes:{taxes:"Podatki",to_date:"Do daty",from_date:"Od daty",date_range:"Wybierz zakres dat"},errors:{required:"To pole jest wymagane"},invoices:{invoice:"Faktura",invoice_date:"Data faktury",due_date:"Termin p\u0142atno\u015Bci",amount:"Kwota",contact_name:"Nazwa kontaktu",status:"Status"},estimates:{estimate:"Oferta",estimate_date:"Data oferty",due_date:"Data wa\u017Cno\u015Bci",estimate_number:"Numer oferty",ref_number:"Numer referencyjny",amount:"Kwota",contact_name:"Nazwa kontaktu",status:"Status"},expenses:{expenses:"Wydatki",category:"Kategoria",date:"Data",amount:"Kwota",to_date:"Do daty",from_date:"Od daty",date_range:"Wybierz zakres dat"}},Oc={menu_title:{account_settings:"Ustawienia konta",company_information:"Informacje o firmie",customization:"Dostosowywanie",preferences:"Opcje",notifications:"Powiadomienia",tax_types:"Rodzaje podatku",expense_category:"Kategorie wydatku",update_app:"Aktualizuj aplikacj\u0119",backup:"Kopia zapasowa",file_disk:"Dysk plik\xF3w",custom_fields:"Pola niestandardowe",payment_modes:"Rodzaje p\u0142atno\u015Bci",notes:"Notatki"},title:"Ustawienia",setting:"Ustawienia | Ustawienia",general:"Og\xF3lne",language:"J\u0119zyk",primary_currency:"Waluta g\u0142\xF3wna",timezone:"Strefa czasowa",date_format:"Format daty",currencies:{title:"Waluty",currency:"Waluta | Waluty",currencies_list:"Lista walut",select_currency:"Wybierz walut\u0119",name:"Nazwa",code:"Kod",symbol:"Symbol",precision:"Dok\u0142adno\u015B\u0107",thousand_separator:"Separator tysi\u0119cy",decimal_separator:"Separator dziesi\u0119tny",position:"Pozycja",position_of_symbol:"Po\u0142o\u017Cenie symbolu",right:"Do prawej",left:"Do lewej",action:"Akcja",add_currency:"Dodaj walut\u0119"},mail:{host:"Adres hosta poczty",port:"Port poczty",driver:"Sterownik poczty",secret:"Tajny klucz",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domena",mailgun_endpoint:"Punkt dost\u0119powy Mailgun",ses_secret:"Tajny klucz SES",ses_key:"Klucz SES",password:"Has\u0142o poczty",username:"Nazwa u\u017Cytkownika poczty",mail_config:"Konfiguracja poczty",from_name:"Nazwa nadawcy",from_mail:"Adres e-mail nadawcy",encryption:"Szyfrowanie poczty",mail_config_desc:"Poni\u017Cej znajduje si\u0119 formularz konfiguracji sterownika poczty e-mail do wysy\u0142ania wiadomo\u015Bci e-mail z aplikacji. Mo\u017Cesz r\xF3wnie\u017C skonfigurowa\u0107 zewn\u0119trznych dostawc\xF3w takich jak Sendgrid, SES itp."},pdf:{title:"Ustawienia PDF",footer_text:"Teks stopki",pdf_layout:"Szablon PDF"},company_info:{company_info:"Dane firmy",company_name:"Nazwa firmy",company_logo:"Logo firmy",section_description:"Informacje o Twojej firmie, kt\xF3re b\u0119d\u0105 wy\u015Bwietlane na fakturach, ofertach i innych dokumentach stworzonych przez Crater.",phone:"Telefon",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",address:"Adres",zip:"Kod pocztowy",save:"Zapisz",updated_message:"Informacje o firmie zosta\u0142y pomy\u015Blnie zaktualizowane"},custom_fields:{title:"Pola niestandardowe",section_description:"Dostosuj swoje faktury, oferty i wp\u0142ywy p\u0142atno\u015Bci w\u0142asnymi polami. Upewnij si\u0119, \u017Ce u\u017Cywasz poni\u017Cszych p\xF3l w formatach adresowych na stronie ustawie\u0144 dostosowywania.",add_custom_field:"Dodaj pole niestandardowe",edit_custom_field:"Edytuj pole niestandardowe",field_name:"Nazwa pola",label:"Etykieta",type:"Typ",name:"Nazwa",required:"Wymagane",placeholder:"Symbol zast\u0119pczy",help_text:"Tekst pomocy",default_value:"Warto\u015B\u0107 domy\u015Blna",prefix:"Prefiks",starting_number:"Numer pocz\u0105tkowy",model:"Model",help_text_description:"Wprowad\u017A jaki\u015B tekst, aby pom\xF3c u\u017Cytkownikom zrozumie\u0107 cel tego pola niestandardowego.",suffix:"Sufiks",yes:"Tak",no:"Nie",order:"Zam\xF3wienie",custom_field_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego niestandardowego pola",already_in_use:"Pole niestandardowe jest ju\u017C w u\u017Cyciu",deleted_message:"Pole niestandardowe zosta\u0142o usuni\u0119te pomy\u015Blnie",options:"opcje",add_option:"Dodaj opcje",add_another_option:"Dodaj inn\u0105 opcj\u0119",sort_in_alphabetical_order:"Sortuj wed\u0142ug kolejno\u015Bci alfabetycznej",add_options_in_bulk:"Dodaj opcje zbiorcze",use_predefined_options:"U\u017Cyj predefiniowanych opcji",select_custom_date:"Wybierz niestandardow\u0105 dat\u0119",select_relative_date:"Wybierz dat\u0119 wzgl\u0119dn\u0105",ticked_by_default:"Zaznaczone domy\u015Blnie",updated_message:"Pole niestandardowe zosta\u0142o zaktualizowane pomy\u015Blnie",added_message:"Pole niestandardowe zosta\u0142o dodane pomy\u015Blnie"},customization:{customization:"dostosowywanie",save:"Zapisz",addresses:{title:"Adresy",section_description:"Mo\u017Cesz ustawi\u0107 adres rozliczeniowy kontrahenta i format adresu dostawy kontrahenta (tylko w formacie PDF). ",customer_billing_address:"Adres rozliczeniowy kontrahenta",customer_shipping_address:"Adres dostawy kontrahenta",company_address:"Adres firmy",insert_fields:"Wstaw pola",contact:"Kontakt",address:"Adres",display_name:"Widoczna nazwa",primary_contact_name:"G\u0142\xF3wna osoba kontaktowa",email:"Email",website:"Strona internetowa",name:"Nazwa",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",company_name:"Nazwa firmy",address_street_1:"Ulica 1",address_street_2:"Ulica 2",phone:"Telefon",zip_code:"Kod pocztowy",address_setting_updated:"Ustawienia adresu zosta\u0142y pomy\u015Blnie zaktualizowane"},updated_message:"Informacje o firmie zosta\u0142y pomy\u015Blnie zaktualizowane",invoices:{title:"Faktury",notes:"Notatki",invoice_prefix:"Prefiks faktury",invoice_number_length:"D\u0142ugo\u015B\u0107 numeru faktury",default_invoice_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila faktury",invoice_settings:"Ustawienia faktury",autogenerate_invoice_number:"Automatycznie generuj numer faktury",invoice_setting_description:"Wy\u0142\u0105cz to, je\u015Bli nie chcesz automatycznie generowa\u0107 numer\xF3w faktur za ka\u017Cdym razem, gdy tworzysz now\u0105 faktur\u0119.",invoice_email_attachment:"Wy\u015Blij faktury jako za\u0142\u0105czniki",invoice_email_attachment_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz wysy\u0142a\u0107 faktury jako za\u0142\u0105cznik e-mail. Pami\u0119taj, \u017Ce przycisk 'Zobacz faktur\u0119' w wiadomo\u015Bciach e-mail nie b\u0119dzie ju\u017C wy\u015Bwietlany, gdy jest w\u0142\u0105czony.",enter_invoice_prefix:"Wprowad\u017A prefiks faktury",terms_and_conditions:"Zasady i warunki",company_address_format:"Format adresu firmy",shipping_address_format:"Format adresu dostawy",billing_address_format:"Format adresu do faktury",invoice_setting_updated:"Ustawienia faktury zosta\u0142y pomy\u015Blnie zaktualizowane"},estimates:{title:"Oferty",estimate_prefix:"Prefiks oferty",estimate_number_length:"D\u0142ugo\u015B\u0107 numeru oferty",default_estimate_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila oferty",estimate_settings:"Ustawienia oferty",autogenerate_estimate_number:"Automatycznie generuj numer oferty",estimate_setting_description:"Wy\u0142\u0105cz to, je\u015Bli nie chcesz automatycznie generowa\u0107 numer\xF3w ofert za ka\u017Cdym razem, gdy tworzysz now\u0105 ofert\u0119.",estimate_email_attachment:"Wy\u015Blij oferty jako za\u0142\u0105czniki",estimate_email_attachment_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz wysy\u0142a\u0107 oferty jako za\u0142\u0105cznik e-mail. Pami\u0119taj, \u017Ce przycisk 'Zobacz ofert\u0119' w wiadomo\u015Bciach e-mail nie b\u0119dzie ju\u017C wy\u015Bwietlany, gdy jest w\u0142\u0105czony.",enter_estimate_prefix:"Wprowad\u017A prefiks oferty",estimate_setting_updated:"Ustawienia oferty zosta\u0142y pomy\u015Blnie zaktualizowane",company_address_format:"Format adresu firmy",billing_address_format:"Format adresu do faktury",shipping_address_format:"Format adresu dostawy"},payments:{title:"P\u0142atno\u015Bci",description:"Sposoby transakcji dla p\u0142atno\u015Bci",payment_prefix:"Prefiks p\u0142atno\u015Bci",payment_number_length:"D\u0142ugo\u015B\u0107 numeru p\u0142atno\u015Bci",default_payment_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila p\u0142atno\u015Bci",payment_settings:"Ustawienia p\u0142atno\u015Bci",autogenerate_payment_number:"Automatycznie generuj numer p\u0142atno\u015Bci",payment_setting_description:"Wy\u0142\u0105cz to, je\u015Bli nie chcesz automatycznie generowa\u0107 numer\xF3w p\u0142atno\u015Bci za ka\u017Cdym razem, gdy tworzysz now\u0105 p\u0142atno\u015B\u0107.",payment_email_attachment:"Wy\u015Blij p\u0142atno\u015Bci jako za\u0142\u0105czniki",payment_email_attachment_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz wysy\u0142a\u0107 p\u0142atno\u015Bci jako za\u0142\u0105cznik e-mail. Pami\u0119taj, \u017Ce przycisk 'Zobacz p\u0142atno\u015B\u0107' w wiadomo\u015Bciach e-mail nie b\u0119dzie ju\u017C wy\u015Bwietlany, gdy jest w\u0142\u0105czony.",enter_payment_prefix:"Wprowad\u017A prefiks p\u0142atno\u015Bci",payment_setting_updated:"Ustawienia p\u0142atno\u015Bci zosta\u0142y pomy\u015Blnie zaktualizowane",payment_modes:"Rodzaje p\u0142atno\u015Bci",add_payment_mode:"Dodaj metod\u0119 p\u0142atno\u015Bci",edit_payment_mode:"Edytuj metod\u0119 p\u0142atno\u015Bci",mode_name:"Metoda p\u0142atno\u015Bci",payment_mode_added:"Dodano metod\u0119 p\u0142atno\u015Bci",payment_mode_updated:"Zaktualizowano metod\u0119 p\u0142atno\u015Bci",payment_mode_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej metody p\u0142atno\u015Bci",already_in_use:"Metoda p\u0142atno\u015Bci jest ju\u017C w u\u017Cyciu",deleted_message:"Metoda p\u0142atno\u015Bci zosta\u0142a pomy\u015Blnie usuni\u0119ta",company_address_format:"Format adresu firmy",from_customer_address_format:"Format adresu nadawcy"},items:{title:"Pozycje",units:"Jednostki",add_item_unit:"Dodaj jednostk\u0119",edit_item_unit:"Edytuj jednostk\u0119",unit_name:"Nazwa jednostki",item_unit_added:"Dodano jednostk\u0119",item_unit_updated:"Zaktualizowano jednostk\u0119",item_unit_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej jednostki przedmiotu",already_in_use:"Jednostka pozycji jest ju\u017C w u\u017Cyciu",deleted_message:"Jednostka pozycji zosta\u0142a usuni\u0119ta pomy\u015Blnie"},notes:{title:"Notatki",description:"Oszcz\u0119dzaj czas, tworz\u0105c notatki i ponownie u\u017Cywaj\u0105c ich na fakturach, ofertach i p\u0142atno\u015Bciach.",notes:"Notatki",type:"Typ",add_note:"Dodaj notatk\u0119",add_new_note:"Dodaj now\u0105 notatk\u0119",name:"Nazwa",edit_note:"Edytuj notatk\u0119",note_added:"Notatka zosta\u0142a dodana pomy\u015Blnie",note_updated:"Notatka zaktualizowana pomy\u015Blnie",note_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej notatki",already_in_use:"Notatka jest ju\u017C w u\u017Cyciu",deleted_message:"Notatka zosta\u0142a usuni\u0119ta pomy\u015Blnie"}},account_settings:{profile_picture:"Zdj\u0119cie profilowe",name:"Nazwa",email:"Email",password:"Has\u0142o",confirm_password:"Potwierd\u017A has\u0142o",account_settings:"Ustawienia konta",save:"Zapisz",section_description:"Mo\u017Cesz zaktualizowa\u0107 swoje imi\u0119, e-mail i has\u0142o u\u017Cywaj\u0105c poni\u017Cszego formularza.",updated_message:"Ustawienia konta zosta\u0142y pomy\u015Blnie zaktualizowane"},user_profile:{name:"Nazwa",email:"Email",password:"Has\u0142o",confirm_password:"Potwierd\u017A has\u0142o"},notification:{title:"Powiadomienie",email:"Wy\u015Blij powiadomienie do",description:"Kt\xF3re powiadomienia e-mail chcesz otrzymywa\u0107 kiedy co\u015B si\u0119 zmieni?",invoice_viewed:"Faktura wy\u015Bwietlona",invoice_viewed_desc:"Kiedy klient wy\u015Bwietli faktur\u0119 wys\u0142an\u0105 za po\u015Brednictwem kokpitu Cratera.",estimate_viewed:"Oferta wy\u015Bwietlona",estimate_viewed_desc:"Kiedy klient wy\u015Bwietli ofert\u0119 wys\u0142an\u0105 za po\u015Brednictwem kokpitu Cratera.",save:"Zapisz",email_save_message:"Wiadomo\u015B\u0107 zapisana pomy\u015Blnie",please_enter_email:"Prosz\u0119 wpisa\u0107 adres e-mail"},tax_types:{title:"Rodzaje opodatkowania",add_tax:"Dodaj podatek",edit_tax:"Edytuj podatek",description:"Mo\u017Cesz dodawa\u0107 lub usuwa\u0107 podatki. Crater obs\u0142uguje podatki od poszczeg\xF3lnych produkt\xF3w, jak r\xF3wnie\u017C na fakturze.",add_new_tax:"Dodaj nowy podatek",tax_settings:"Ustawienia podatku",tax_per_item:"Podatek na produkt",tax_name:"Nazwa podatku",compound_tax:"Podatek z\u0142o\u017Cony",percent:"Procent",action:"Akcja",tax_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz doda\u0107 podatki do poszczeg\xF3lnych element\xF3w faktury. Domy\u015Blnie podatki s\u0105 dodawane bezpo\u015Brednio do ca\u0142ej faktury.",created_message:"Typ podatku zosta\u0142 pomy\u015Blnie utworzony",updated_message:"Typ podatku zosta\u0142 pomy\u015Blnie zaktualizowany",deleted_message:"Typ podatku zosta\u0142 pomy\u015Blnie usuni\u0119ty",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego typu podatku",already_in_use:"Ten podatek jest w u\u017Cyciu"},expense_category:{title:"Kategorie wydatk\xF3w",action:"Akcja",description:"Kategorie s\u0105 wymagane do dodawania wpis\xF3w wydatk\xF3w. Mo\u017Cesz doda\u0107 lub usun\u0105\u0107 te kategorie zgodnie ze swoimi preferencjami.",add_new_category:"Dodaj now\u0105 kategori\u0119",add_category:"Dodaj kategori\u0119",edit_category:"Edytuj kategori\u0119",category_name:"Nazwa kategorii",category_description:"Opis",created_message:"Kategoria wydatk\xF3w zosta\u0142a utworzona pomy\u015Blnie",deleted_message:"Kategoria wydatk\xF3w zosta\u0142a usuni\u0119ta pomy\u015Blnie",updated_message:"Kategoria wydatk\xF3w zaktualizowana pomy\u015Blnie",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej kategorii wydatk\xF3w",already_in_use:"Kategoria jest ju\u017C w u\u017Cyciu"},preferences:{currency:"Waluta",default_language:"Domy\u015Blny j\u0119zyk",time_zone:"Strefa czasowa",fiscal_year:"Rok finansowy",date_format:"Format daty",discount_setting:"Ustawienia rabatu",discount_per_item:"Rabat na produkt ",discount_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz doda\u0107 rabat do poszczeg\xF3lnych element\xF3w faktury. Domy\u015Blnie rabat jest dodawany bezpo\u015Brednio do ca\u0142ej faktury.",save:"Zapisz",preference:"Preferencje | Preferencje",general_settings:"Domy\u015Blne ustawienia systemu.",updated_message:"Preferencje pomy\u015Blnie zaktualizowane",select_language:"Wybierz j\u0119zyk",select_time_zone:"Ustaw stref\u0119 czasow\u0105",select_date_format:"Wybierz format daty",select_financial_year:"Wybierz rok podatkowy"},update_app:{title:"Aktualizuj aplikacj\u0119",description:"Mo\u017Cesz \u0142atwo zaktualizowa\u0107 Cratera poprzez klikni\u0119cie przycisku poni\u017Cej",check_update:"Sprawd\u017A czy s\u0105 dost\u0119pne nowe aktualizacje",avail_update:"Dost\u0119pna nowa aktualizacja",next_version:"Nowa wersja",requirements:"Wymagania",update:"Aktualizuj teraz",update_progress:"Aktualizacja w toku...",progress_text:"To zajmie tylko kilka minut. Prosz\u0119 nie od\u015Bwie\u017Ca\u0107 ekranu ani zamyka\u0107 okna przed zako\u0144czeniem aktualizacji",update_success:"Aplikacja zosta\u0142a zaktualizowana! Prosz\u0119 czeka\u0107, a\u017C okno przegl\u0105darki zostanie automatycznie prze\u0142adowane.",latest_message:"Brak dost\u0119pnych aktualizacji! Posiadasz najnowsz\u0105 wersj\u0119.",current_version:"Aktualna wersja",download_zip_file:"Pobierz plik ZIP",unzipping_package:"Rozpakuj pakiet",copying_files:"Kopiowanie plik\xF3w",deleting_files:"Usuwanie nieu\u017Cywanych plik\xF3w",running_migrations:"Uruchamianie migracji",finishing_update:"Ko\u0144czenie aktualizacji",update_failed:"Aktualizacja nie powiod\u0142a si\u0119",update_failed_text:"Przepraszamy! Twoja aktualizacja nie powiod\u0142a si\u0119 w kroku: {step}"},backup:{title:"Kopia zapasowa | Kopie zapasowe",description:"Kopia zapasowa jest plikiem zipfile zawieraj\u0105cym wszystkie pliki w katalogach kt\xF3re podasz wraz z zrzutem bazy danych",new_backup:"Dodaj now\u0105 kopi\u0119 zapasow\u0105",create_backup:"Utw\xF3rz kopi\u0119 zapasow\u0105",select_backup_type:"Wybierz typ kopii zapasowej",backup_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej kopii zapasowej",path:"\u015Bcie\u017Cka",new_disk:"Nowy dysk",created_at:"utworzono w",size:"rozmiar",dropbox:"dropbox",local:"lokalny",healthy:"zdrowy",amount_of_backups:"liczba kopii zapasowych",newest_backups:"najnowsza kopia zapasowa",used_storage:"zu\u017Cyta pami\u0119\u0107",select_disk:"Wybierz dysk",action:"Akcja",deleted_message:"Kopia zapasowa usuni\u0119ta pomy\u015Blnie",created_message:"Kopia zapasowa utworzona pomy\u015Blnie",invalid_disk_credentials:"Nieprawid\u0142owe dane uwierzytelniaj\u0105ce wybranego dysku"},disk:{title:"Dysk plik\xF3w | Dyski plik\xF3w",description:"Domy\u015Blnie Crater u\u017Cyje twojego lokalnego dysku do zapisywania kopii zapasowych, awatara i innych plik\xF3w obrazu. Mo\u017Cesz skonfigurowa\u0107 wi\u0119cej ni\u017C jeden serwer dysku, taki jak DigitalOcean, S3 i Dropbox, zgodnie z Twoimi preferencjami.",created_at:"utworzono w",dropbox:"dropbox",name:"Nazwa",driver:"Sterownik",disk_type:"Typ",disk_name:"Nazwa dysku",new_disk:"Dodaj nowy dysk",filesystem_driver:"Sterownik systemu plik\xF3w",local_driver:"lokalny sterownik",local_root:"g\u0142\xF3wny katalog lokalny",public_driver:"Publiczny sterownik",public_root:"Publiczny g\u0142\xF3wny katalog",public_url:"Publiczny URL",public_visibility:"Widoczno\u015B\u0107 publiczna",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"Sterownik AWS",aws_key:"Klucz AWS",aws_secret:"Tajny klucz AWS",aws_region:"Region AWS",aws_bucket:"Zasobnik AWS",aws_root:"Katalog g\u0142\xF3wny AWS",do_spaces_type:"Typ Do Spaces",do_spaces_key:"Klucz Do Spaces",do_spaces_secret:"Tajny klucz Do Spaces",do_spaces_region:"Region Do Spaces",do_spaces_bucket:"Zasobnik Do Spaces",do_spaces_endpoint:"Punkt dost\u0119powy Do Spaces",do_spaces_root:"Katalog g\u0142\xF3wny Do Spaces",dropbox_type:"Typ Dropbox",dropbox_token:"Token Dropbox",dropbox_key:"Klucz Dropbox",dropbox_secret:"Tajny klucz Dropbox",dropbox_app:"Aplikacja Dropbox",dropbox_root:"Root Dropbox",default_driver:"Domy\u015Blny sterownik",is_default:"JEST DOMY\u015ALNY",set_default_disk:"Ustaw domy\u015Blny dysk",set_default_disk_confirm:"Ten dysk zostanie ustawiony jako domy\u015Blny, a wszystkie nowe pliki PDF zostan\u0105 zapisane na tym dysku",success_set_default_disk:"Dysk zosta\u0142 pomy\u015Blnie ustawiony jako domy\u015Blny",save_pdf_to_disk:"Zapisz pliki PDF na dysku",disk_setting_description:" W\u0142\u0105cz t\u0119 opcj\u0119, je\u015Bli chcesz automatycznie zapisa\u0107 kopi\u0119 ka\u017Cdej faktury, oferty i potwierdzenia p\u0142atno\u015Bci PDF na swoim domy\u015Blnym dysku. W\u0142\u0105czenie tej opcji spowoduje skr\xF3cenie czasu \u0142adowania podczas przegl\u0105dania PDF.",select_disk:"Wybierz dysk",disk_settings:"Ustawienia dysku",confirm_delete:"Twoje istniej\u0105ce pliki i foldery na okre\u015Blonym dysku nie zostan\u0105 zmienione, ale konfiguracja twojego dysku zostanie usuni\u0119ta z Cratera",action:"Akcja",edit_file_disk:"Edytuj dysk plk\xF3w",success_create:"Dysk dodany pomy\u015Blnie",success_update:"Dysk zaktualizowany pomy\u015Blnie",error:"B\u0142\u0105d dodawania dysku",deleted_message:"Dysk plik\xF3w zosta\u0142 usuni\u0119ty pomy\u015Blnie",disk_variables_save_successfully:"Dysk skonfigurowany pomy\u015Blnie",disk_variables_save_error:"Konfiguracja dysku nieudana.",invalid_disk_credentials:"Nieprawid\u0142owe dane uwierzytelniaj\u0105ce wybranego dysku"}},Lc={account_info:"Informacje o koncie",account_info_desc:"Poni\u017Csze szczeg\xF3\u0142y zostan\u0105 u\u017Cyte do utworzenia g\u0142\xF3wnego konta administratora. Mo\u017Cesz tak\u017Ce zmieni\u0107 szczeg\xF3\u0142y w dowolnym momencie po zalogowaniu.",name:"Nazwa",email:"E-mail",password:"Has\u0142o",confirm_password:"Potwierd\u017A has\u0142o",save_cont:"Zapisz i kontynuuj",company_info:"Informacje o firmie",company_info_desc:"Ta informacja b\u0119dzie wy\u015Bwietlana na fakturach. Pami\u0119taj, \u017Ce mo\u017Cesz to p\xF3\u017Aniej edytowa\u0107 na stronie ustawie\u0144.",company_name:"Nazwa firmy",company_logo:"Logo firmy",logo_preview:"Podgl\u0105d loga",preferences:"Preferencje",preferences_desc:"Domy\u015Blne preferencje dla systemu.",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",address:"Adres",street:"Ulica1 | Ulica2",phone:"Telefon",zip_code:"Kod pocztowy",go_back:"Wstecz",currency:"Waluta",language:"J\u0119zyk",time_zone:"Strefa czasowa",fiscal_year:"Rok finansowy",date_format:"Format daty",from_address:"Adres nadawcy",username:"Nazwa u\u017Cytkownika",next:"Nast\u0119pny",continue:"Kontynuuj",skip:"Pomi\u0144",database:{database:"Adres URL witryny i baza danych",connection:"Po\u0142\u0105czenie z baz\u0105 danych",host:"Host bazy danych",port:"Port bazy danych",password:"Has\u0142o bazy danych",app_url:"Adres aplikacji",app_domain:"Domena aplikacji",username:"Nazwa u\u017Cytkownika bazy danych",db_name:"Nazwa bazy danych",db_path:"\u015Acie\u017Cka do bazy danych",desc:"Utw\xF3rz baz\u0119 danych na swoim serwerze i ustaw dane logowania za pomoc\u0105 poni\u017Cszego formularza."},permissions:{permissions:"Uprawnienia",permission_confirm_title:"Czy na pewno chcesz kontynuowa\u0107?",permission_confirm_desc:"Sprawdzanie uprawnie\u0144 do katalogu nie powiod\u0142o si\u0119",permission_desc:"Poni\u017Cej znajduje si\u0119 lista uprawnie\u0144 folder\xF3w, kt\xF3re s\u0105 wymagane do dzia\u0142ania aplikacji. Je\u015Bli sprawdzenie uprawnie\u0144 nie powiedzie si\u0119, upewnij si\u0119, \u017Ce zaktualizujesz uprawnienia folderu."},verify_domain:{title:"Weryfikacja domeny",desc:"Crater u\u017Cywa uwierzytelniania opartego na sesji, kt\xF3re wymaga weryfikacji domeny dla cel\xF3w bezpiecze\u0144stwa. Wprowad\u017A domen\u0119, na kt\xF3rej b\u0119dziesz mie\u0107 dost\u0119p do swojej aplikacji internetowej.",app_domain:"Domena aplikacji",verify_now:"Potwierd\u017A teraz",success:"Pomy\u015Blnie zweryfikowano domen\u0119.",verify_and_continue:"Weryfikuj i kontynuuj"},mail:{host:"Adres hosta poczty",port:"Port poczty",driver:"Spos\xF3b wysy\u0142ania wiadomo\u015Bci e-mail",secret:"Tajny klucz",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domena",mailgun_endpoint:"Punkt dost\u0119powy Mailgun",ses_secret:"Tajny klucz SES",ses_key:"Klucz SES",password:"Has\u0142o poczty",username:"Nazwa u\u017Cytkownika poczty",mail_config:"Konfiguracja poczty",from_name:"Nazwa nadawcy",from_mail:"Adres e-mail nadawcy",encryption:"Szyfrowanie poczty",mail_config_desc:"Poni\u017Cej znajduje si\u0119 formularz konfiguracji sterownika poczty e-mail do wysy\u0142ania wiadomo\u015Bci e-mail z aplikacji. Mo\u017Cesz r\xF3wnie\u017C skonfigurowa\u0107 zewn\u0119trznych dostawc\xF3w takich jak Sendgrid, SES itp."},req:{system_req:"Wymagania systemowe",php_req_version:"Minimalna wersja Php (wymagana wersja {version})",check_req:"Sprawd\u017A wymagania",system_req_desc:"Crater posiada kilka wymaga\u0144 serwera. Upewnij si\u0119, \u017Ce Tw\xF3j serwer ma wymagan\u0105 wersj\u0119 php oraz wszystkie rozszerzenia wymienione poni\u017Cej."},errors:{migrate_failed:"Migracja nie powiod\u0142a si\u0119",domain_verification_failed:"Weryfikacja domeny nie powiod\u0142a si\u0119",database_variables_save_error:"Nie mo\u017Cna zapisa\u0107 konfiguracji do pliku .env. Prosz\u0119 sprawdzi\u0107 jego uprawnienia",mail_variables_save_error:"Konfiguracja email nie powiod\u0142a si\u0119.",connection_failed:"B\u0142\u0105d po\u0142\u0105czenia z baz\u0105 danych",database_should_be_empty:"Baza danych powinna by\u0107 pusta"},success:{mail_variables_save_successfully:"Email zosta\u0142 skonfigurowany pomy\u015Blnie",domain_variable_save_successfully:"Domena zosta\u0142a skonfigurowana pomy\u015Blnie",database_variables_save_successfully:"Baza danych zosta\u0142a skonfigurowana poprawnie."}},Uc={copyright_crater:"Copyright @ Crater - 2020",super_simple_invoicing:"Super proste fakturowanie",for_freelancer:"dla Freelancer\xF3w i",small_businesses:"Mikroprzedsi\u0119biorstw ",crater_help:"Crater pomaga \u015Bledzi\u0107 Twoje wydatki, zapisywa\u0107 p\u0142atno\u015Bci i generowa\u0107 pi\u0119kne",invoices_and_estimates:"faktury i oferty z mo\u017Cliwo\u015Bci\u0105 wyboru wielu szablon\xF3w."},Kc={invalid_phone:"Nieprawid\u0142owy numer telefonu",invalid_url:"Nieprawid\u0142owy adres url (np. http://www.crater.com)",invalid_domain_url:"Nieprawid\u0142owy adres url (np. crater.com)",required:"Pole jest wymagane",email_incorrect:"Niepoprawny email.",email_already_taken:"Ten adres e-mail jest ju\u017C zaj\u0119ty.",email_does_not_exist:"U\u017Cytkownik z podanym adresem email nie istnieje",item_unit_already_taken:"Ta nazwa jednostki zosta\u0142a ju\u017C zaj\u0119ta",payment_mode_already_taken:"Ta nazwa trybu p\u0142atno\u015Bci zosta\u0142a ju\u017C zaj\u0119ta",send_reset_link:"Wy\u015Blij link do resetowania has\u0142a",not_yet:"Jeszcze nie? Wy\u015Blij ponownie",password_min_length:"Has\u0142o musi zawiera\u0107 co najmniej {count} znak\xF3w",name_min_length:"Nazwa u\u017Cytkownika musi zawiera\u0107 co najmniej {count} znak\xF3w.",enter_valid_tax_rate:"Wprowad\u017A poprawn\u0105 stawk\u0119 podatku",numbers_only:"Tylko liczby.",characters_only:"Tylko znaki.",password_incorrect:"Has\u0142a musz\u0105 by\u0107 identyczne",password_length:"Has\u0142o musi zawiera\u0107 {count} znak\xF3w.",qty_must_greater_than_zero:"Ilo\u015B\u0107 musi by\u0107 wi\u0119ksza ni\u017C zero.",price_greater_than_zero:"Cena musi by\u0107 wi\u0119ksza ni\u017C zero.",payment_greater_than_zero:"P\u0142atno\u015B\u0107 musi by\u0107 wi\u0119ksza ni\u017C zero.",payment_greater_than_due_amount:"Wprowadzona p\u0142atno\u015B\u0107 to wi\u0119cej ni\u017C nale\u017Cna kwota tej faktury.",quantity_maxlength:"Ilo\u015B\u0107 nie powinna by\u0107 wi\u0119ksza ni\u017C 20 cyfr.",price_maxlength:"Cena nie powinna by\u0107 wi\u0119ksza ni\u017C 20 cyfr.",price_minvalue:"Cena powinna by\u0107 wi\u0119ksza ni\u017C 0.",amount_maxlength:"Kwota nie powinna by\u0107 wi\u0119ksza ni\u017C 20 cyfr.",amount_minvalue:"Kwota powinna by\u0107 wi\u0119ksza ni\u017C 0.",description_maxlength:"Opis nie powinien przekracza\u0107 65 000 znak\xF3w.",subject_maxlength:"Temat nie powinien by\u0107 d\u0142u\u017Cszy ni\u017C 100 znak\xF3w.",message_maxlength:"Wiadomo\u015B\u0107 nie powinna by\u0107 d\u0142u\u017Csza ni\u017C 255 znak\xF3w.",maximum_options_error:"Wybrano maksymalnie {max} opcji. Najpierw usu\u0144 wybran\u0105 opcj\u0119, aby wybra\u0107 inn\u0105.",notes_maxlength:"Notatki nie powinny by\u0107 wi\u0119ksze ni\u017C 65 000 znak\xF3w.",address_maxlength:"Adres nie powinien mie\u0107 wi\u0119cej ni\u017C 255 znak\xF3w.",ref_number_maxlength:"Numer referencyjny nie mo\u017Ce by\u0107 d\u0142u\u017Cszy ni\u017C 255 znak\xF3w.",prefix_maxlength:"Prefiks nie powinien by\u0107 d\u0142u\u017Cszy ni\u017C 5 znak\xF3w.",something_went_wrong:"co\u015B posz\u0142o nie tak",number_length_minvalue:"D\u0142ugo\u015B\u0107 numeru powinna by\u0107 wi\u0119ksza ni\u017C 0"},qc="Oferta",Zc="Numer oferty",Wc="Data oferty",Hc="Termin wa\u017Cno\u015Bci",Gc="Faktura",Yc="Numer faktury",Jc="Data faktury",Xc="Termin",Qc="Notatki",e_="Pozycje",t_="Ilo\u015B\u0107",a_="Cena",s_="Rabat",n_="Kwota",i_="Suma cz\u0119\u015Bciowa",o_="Razem",r_="P\u0142atno\u015B\u0107",d_="POTWIERDZENIE P\u0141ATNO\u015ACI",l_="Data p\u0142atno\u015Bci",c_="Numer p\u0142atno\u015Bci",__="Metoda p\u0142atno\u015Bci",u_="Kwota otrzymana",m_="SPRAWOZDANIE Z WYDATK\xD3W",p_="WYDATKI OG\xD3\u0141EM",g_="RAPORT ZYSK\xD3W I STRAT",f_="Raport sprzeda\u017Cy obs\u0142ugi kontrahenta",h_="Raport dotycz\u0105cy przedmiotu sprzeda\u017Cy",v_="Raport podsumowania podatku",y_="PRZYCH\xD3D",b_="ZYSK NETTO",k_="Raport sprzeda\u017Cy: Wed\u0142ug Kontrahenta",w_="CA\u0141KOWITA SPRZEDA\u017B",x_="Raport sprzeda\u017Cy: Wed\u0142ug produktu",z_="RAPORT PODATKOWY",S_="CA\u0141KOWITY PODATEK",j_="Rodzaje podatku",P_="Wydatki",D_="Wystawiono dla",C_="Wysy\u0142ka do",A_="Otrzymane od:";var E_={navigation:jc,general:Pc,dashboard:Dc,tax_types:Cc,global_search:Ac,customers:Ec,items:Nc,estimates:Tc,invoices:Ic,credit_notes:$c,payments:Rc,expenses:Fc,login:Mc,users:Vc,reports:Bc,settings:Oc,wizard:Lc,layout_login:Uc,validation:Kc,pdf_estimate_label:qc,pdf_estimate_number:Zc,pdf_estimate_date:Wc,pdf_estimate_expire_date:Hc,pdf_invoice_label:Gc,pdf_invoice_number:Yc,pdf_invoice_date:Jc,pdf_invoice_due_date:Xc,pdf_notes:Qc,pdf_items_label:e_,pdf_quantity_label:t_,pdf_price_label:a_,pdf_discount_label:s_,pdf_amount_label:n_,pdf_subtotal:i_,pdf_total:o_,pdf_payment_label:r_,pdf_payment_receipt_label:d_,pdf_payment_date:l_,pdf_payment_number:c_,pdf_payment_mode:__,pdf_payment_amount_received_label:u_,pdf_expense_report_label:m_,pdf_total_expenses_label:p_,pdf_profit_loss_label:g_,pdf_sales_customers_label:f_,pdf_sales_items_label:h_,pdf_tax_summery_label:v_,pdf_income_label:y_,pdf_net_profit_label:b_,pdf_customer_sales_report:k_,pdf_total_sales_label:w_,pdf_item_sales_label:x_,pdf_tax_report_label:z_,pdf_total_tax_label:S_,pdf_tax_types_label:j_,pdf_expenses_label:P_,pdf_bill_to:D_,pdf_ship_to:C_,pdf_received_from:A_};const N_={dashboard:"Painel",customers:"Clientes",items:"Itens",invoices:"Faturas",expenses:"Despesas",estimates:"Or\xE7amentos",payments:"Pagamentos",reports:"Relat\xF3rios",settings:"Configura\xE7\xF5es",logout:"Encerrar sess\xE3o"},T_={view_pdf:"Ver PDF",download_pdf:"Baixar PDF",save:"Salvar",cancel:"Cancelar",update:"Atualizar",deselect:"Desmarcar",download:"Baixar",from_date:"A partir da Data",to_date:"At\xE9 a Data",from:"De",to:"Para",sort_by:"Ordenar por",ascending:"Crescente",descending:"Descendente",subject:"Sujeita",body:"Corpo",message:"Mensagem",go_back:"Voltar",back_to_login:"Voltar ao Login",home:"Home",filter:"Filtrar",delete:"Excluir",edit:"Editar",view:"Ver",add_new_item:"Adicionar novo item",clear_all:"Limpar tudo",showing:"Mostrando",of:"de",actions:"A\xE7\xF5es",subtotal:"Total parcial",discount:"Desconto",fixed:"Fixado",percentage:"Porcentagem",tax:"Imposto",total_amount:"Quantidade Total",bill_to:"Cobrar a",ship_to:"Envie a",due:"Vencida",draft:"Rascunho",sent:"Enviado",all:"Todos",select_all:"Selecionar tudo",choose_file:"Escolha um arquivo.",choose_template:"Escolha um modelo",choose:"Escolher",remove:"Excluir",powered_by:"Distribu\xEDdo por",bytefury:"Bytefury",select_a_status:"Selecione um status",select_a_tax:"Selecione um Imposto",search:"Buscar",are_you_sure:"Tem certeza?",list_is_empty:"Lista est\xE1 vazia.",no_tax_found:"Imposto n\xE3o encontrado!",four_zero_four:"404",you_got_lost:"Ops! Se perdeu!",go_home:"Ir para Home",test_mail_conf:"Testar configura\xE7\xE3o de email",send_mail_successfully:"Correio enviado com sucesso",setting_updated:"Configura\xE7\xE3o atualizada com sucesso",select_state:"Selecione Estado",select_country:"Selecionar pais",select_city:"Selecionar cidade",street_1:"Rua 1",street_2:"Rua # 2",action_failed:"A\xE7\xE3o: Falhou",retry:"Atualiza\xE7\xE3o falhou"},I_={select_year:"Selecione Ano",cards:{due_amount:"Montante devido",customers:"Clientes",invoices:"Faturas",estimates:"Or\xE7amentos"},chart_info:{total_sales:"Vendas",total_receipts:"Receitas",total_expense:"Despesas",net_income:"Resultado l\xEDquido",year:"Selecione Ano"},monthly_chart:{title:"Vendas e Despesas"},recent_invoices_card:{title:"Faturas vencidas",due_on:"vencido em",customer:"Cliente",amount_due:"Valor Devido",actions:"A\xE7\xF5es",view_all:"Ver todos"},recent_estimate_card:{title:"Or\xE7amentos Recentes",date:"Data",customer:"Cliente",amount_due:"Valor Devido",actions:"A\xE7\xF5es",view_all:"Ver todos"}},$_={name:"Nome",description:"Descri\xE7\xE3o",percent:"Porcentagem",compound_tax:"Imposto compuesto"},R_={title:"Clientes",add_customer:"Adicionar cliente",contacts_list:"Lista de clientes",name:"Nome",display_name:"Nome de exibi\xE7\xE3o",primary_contact_name:"Nome do contato principal",contact_name:"Nome de Contato",amount_due:"Valor Devido",email:"Email",address:"Endere\xE7o",phone:"Telefone",website:"Site",country:"Pais",state:"Estado",city:"Cidade",zip_code:"C\xF3digo postal",added_on:"Adicionado",action:"A\xE7\xE3o",password:"Senha",street_number:"N\xFAmero",primary_currency:"Moeda principal",add_new_customer:"Adicionar novo cliente",save_customer:"Salvar cliente",update_customer:"Atualizar cliente",customer:"Cliente | Clientes",new_customer:"Novo cliente",edit_customer:"Editar cliente",basic_info:"Informa\xE7\xE3o basica",billing_address:"Endere\xE7o de cobran\xE7a",shipping_address:"Endere\xE7o de entrega",copy_billing_address:"C\xF3pia de faturamento",no_customers:"Ainda n\xE3o h\xE1 clientes!",no_customers_found:"Clientes n\xE3o encontrados!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Esta se\xE7\xE3o conter\xE1 a lista de clientes.",primary_display_name:"Nome de exibi\xE7\xE3o principal",select_currency:"Selecione o tipo de moeda",select_a_customer:"Selecione um cliente",type_or_click:"Digite ou clique para selecionar",new_transaction:"Nova transa\xE7\xE3o",no_matching_customers:"N\xE3o h\xE1 clientes correspondentes!",phone_number:"N\xFAmero de telefone",create_date:"Criar Data",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este cliente e todas as faturas, estimativas e pagamentos relacionados. | Voc\xEA n\xE3o poder\xE1 recuperar esses clientes e todas as faturas, estimativas e pagamentos relacionados.",created_message:"Cliente criado com sucesso",updated_message:"Cliente atualizado com sucesso",deleted_message:"Cliente exclu\xEDdo com sucesso | Clientes exclu\xEDdos com sucesso"},F_={title:"Itens",items_list:"Lista de Itens",name:"Nome",unit:"Unidade",description:"Descri\xE7\xE3o",added_on:"Adicionado",price:"Pre\xE7o",date_of_creation:"Data de cria\xE7\xE3o",not_selected:"No item selected",action:"A\xE7\xE3o",add_item:"Adicionar item",save_item:"Salvar item",update_item:"Atualizar item",item:"Item | Itens",add_new_item:"Adicionar novo item",new_item:"Novo item",edit_item:"Editar item",no_items:"Ainda n\xE3o existe itens",list_of_items:"Esta se\xE7\xE3o conter\xE1 a lista de itens.",select_a_unit:"Seleciona unidade",taxes:"Impostos",item_attached_message:"N\xE3o \xE9 poss\xEDvel excluir um item que j\xE1 est\xE1 em uso.",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este item | Voc\xEA n\xE3o poder\xE1 recuperar esses itens",created_message:"Item criado com sucesso",updated_message:"Item atualizado com sucesso",deleted_message:"Item exclu\xEDdo com sucesso | Itens Exclu\xEDdos com sucesso"},M_={title:"Or\xE7amentos",estimate:"Or\xE7amento | Or\xE7amentos",estimates_list:"Lista de or\xE7amentos",days:"{dias} dias",months:"{meses} M\xEAs",years:"{Anos} Ano",all:"Todos",paid:"Pago",unpaid:"N\xE3o pago",customer:"CLIENTE",ref_no:"N\xDAMERO DE REFER\xCANCIA.",number:"N\xDAMERO",amount_due:"Valor Devido",partially_paid:"Pago parcialmente",total:"Total",discount:"Desconto",sub_total:"Subtotal",estimate_number:"Numero do Or\xE7amento",ref_number:"Refer\xEAncia",contact:"Contato",add_item:"Adicionar Item",date:"Data",due_date:"Data de Vencimento",expiry_date:"Data de expira\xE7\xE3o",status:"Status",add_tax:"Adicionar Imposto",amount:"Montante",action:"A\xE7\xE3o",notes:"Observa\xE7\xF5es",tax:"Imposto",estimate_template:"Modelo de or\xE7amento",convert_to_invoice:"Converter em fatura",mark_as_sent:"Marcar como enviado",send_estimate:"Enviar or\xE7amento",record_payment:"Registro de pago",add_estimate:"Adicionar or\xE7amento",save_estimate:"Salvar Or\xE7amento",confirm_conversion:"Deseja converter este or\xE7amento em uma fatura?",conversion_message:"Conver\xE7\xE3o realizada com sucesso",confirm_send_estimate:"Este or\xE7amento ser\xE1 enviado por email ao cliente",confirm_mark_as_sent:"Este or\xE7amento ser\xE1 marcado como enviado",confirm_mark_as_accepted:"Este or\xE7amento ser\xE1 marcado como Aceito",confirm_mark_as_rejected:"Este or\xE7amento ser\xE1 marcado como Rejeitado",no_matching_estimates:"N\xE3o h\xE1 or\xE7amentos correspondentes!",mark_as_sent_successfully:"Or\xE7amento como marcado como enviado com sucesso",send_estimate_successfully:"Or\xE7amento enviado com sucesso",errors:{required:"Campo obrigat\xF3rio"},accepted:"Aceito",rejected:"Rejected",sent:"Enviado",draft:"Rascunho",declined:"Rejeitado",new_estimate:"Novo or\xE7amento",add_new_estimate:"Adicionar novo or\xE7amento",update_Estimate:"Atualizar or\xE7amento",edit_estimate:"Editar or\xE7amento",items:"art\xEDculos",Estimate:"Or\xE7amento | Or\xE7amentos",add_new_tax:"Adicionar novo imposto",no_estimates:"Ainda n\xE3o h\xE1 orcamentos",list_of_estimates:"Esta se\xE7\xE3o cont\xE9m a lista de or\xE7amentos.",mark_as_rejected:"Marcar como rejeitado",mark_as_accepted:"Marcar como aceito",marked_as_accepted_message:"Or\xE7amento marcado como aceito",marked_as_rejected_message:"Or\xE7amento marcado como rejeitado",confirm_delete:"N\xE3o poder\xE1 recuperar este or\xE7amento | N\xE3o poder\xE1 recuperar estes or\xE7amentos",created_message:"Or\xE7amento criado com sucesso",updated_message:"Or\xE7amento atualizado com sucesso",deleted_message:"Or\xE7amento exclu\xEDdo com sucesso | Or\xE7amentos exclu\xEDdos com sucesso",something_went_wrong:"Algo deu errado",item:{title:"Titulo do item",description:"Descri\xE7\xE3o",quantity:"Quantidade",price:"Pre\xE7o",discount:"Desconto",total:"Total",total_discount:"Desconto total",sub_total:"Subtotal",tax:"Imposto",amount:"Montante",select_an_item:"Escreva ou clique para selecionar um item",type_item_description:"Tipo Item Descri\xE7\xE3o (opcional)"}},V_={title:"Faturas",invoices_list:"Lista de faturas",days:"{dias} dias",months:"{meses} M\xEAs",years:"{anos} Ano",all:"Todas",paid:"Paga",unpaid:"N\xE3o Paga",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENTE",paid_status:"STATUS PAGAMENTO",ref_no:"REFER\xCANCIA",number:"N\xDAMERO",amount_due:"VALOR DEVIDO",partially_paid:"Parcialmente pago",total:"Total",discount:"Desconto",sub_total:"Subtotal",invoice:"Fatura | Faturas",invoice_number:"N\xFAmero da fatura",ref_number:"Refer\xEAncia",contact:"Contato",add_item:"Adicionar um item",date:"Data",due_date:"Data de Vencimento",status:"Status",add_tax:"Adicionar imposto",amount:"Montante",action:"A\xE7\xE3o",notes:"Observa\xE7\xF5es",view:"Ver",send_invoice:"Enviar Fatura",invoice_template:"Modelo da Fatura",template:"Modelo",mark_as_sent:"Marcar como enviada",confirm_send_invoice:"Esta fatura ser\xE1 enviada por e-mail ao cliente",invoice_mark_as_sent:"Esta fatura ser\xE1 marcada como enviada",confirm_send:"Esta fatura ser\xE1 enviada por e-mail ao cliente",invoice_date:"Data da Fatura",record_payment:"Gravar Pagamento",add_new_invoice:"Adicionar Nova Fatura",update_expense:"Atualizar Despesa",edit_invoice:"Editar Fatura",new_invoice:"Nova Fatura",save_invoice:"Salvar Fatura",update_invoice:"Atualizar Fatura",add_new_tax:"Adicionar novo Imposto",no_invoices:"Ainda n\xE3o h\xE1 faturas!",list_of_invoices:"Esta se\xE7\xE3o conter\xE1 a lista de faturas.",select_invoice:"Selecionar Fatura",no_matching_invoices:"N\xE3o h\xE1 faturas correspondentes!",mark_as_sent_successfully:"Fatura marcada como enviada com sucesso",invoice_sent_successfully:"Fatura enviada com sucesso",cloned_successfully:"Fatura clonada com sucesso",clone_invoice:"Clonar fatura",confirm_clone:"Esta fatura ser\xE1 clonada em uma nova fatura",item:{title:"Titulo do Item",description:"Descri\xE7\xE3o",quantity:"Quantidade",price:"Pre\xE7o",discount:"Desconto",total:"Total",total_discount:"Desconto Total",sub_total:"SubTotal",tax:"Imposto",amount:"Montante",select_an_item:"Digite ou clique para selecionar um item",type_item_description:"Tipo Descri\xE7\xE3o do item (opcional)"},confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta fatura | Voc\xEA n\xE3o poder\xE1 recuperar essas faturas",created_message:"Fatura criada com sucesso",updated_message:"Fatura atualizada com sucesso",deleted_message:"Fatura exclu\xEDda com sucesso | Faturas exclu\xEDdas com sucesso",marked_as_sent_message:"Fatura marcada como enviada com sucesso",something_went_wrong:"Algo deu errado",invalid_due_amount_message:"O valor total da fatura n\xE3o pode ser menor que o valor total pago para esta fatura. Atualize a fatura ou exclua os pagamentos associados para continuar."},B_={title:"Pagamentos",payments_list:"Lista de Pagamentos",record_payment:"Gravar Pagamento",customer:"Cliente",date:"Data",amount:"Montante",action:"A\xE7\xE3o",payment_number:"N\xFAmero do Pagamento",payment_mode:"Forma de Pagamento",invoice:"Fatura",note:"Observa\xE7\xE3o",add_payment:"Adicionar Pagamento",new_payment:"Novo Pagamento",edit_payment:"Editar Pagamento",view_payment:"Ver Pagamento",add_new_payment:"Adicionar novo Pagamento",send_payment_receipt:"Enviar recibo de pagamento",save_payment:"Salvar Pagamento",send_payment:"Mande o pagamento",update_payment:"Atualizar Pagamento",payment:"Pagamento | Pagamentos",no_payments:"Ainda sem pagamentos!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"N\xE3o h\xE1 pagamentos correspondentes!",list_of_payments:"Esta se\xE7\xE3o conter\xE1 a lista de pagamentos.",select_payment_mode:"Selecione a forma de pagamento",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este Pagamento | Voc\xEA n\xE3o poder\xE1 recuperar esses Pagamentos",created_message:"Pagamento criado com sucesso",updated_message:"Pagamento atualizado com sucesso",deleted_message:"Pagamento exclu\xEDdo com sucesso | Pagamentos exclu\xEDdos com sucesso",invalid_amount_message:"O valor do pagamento \xE9 inv\xE1lido"},O_={title:"Despesas",expenses_list:"Lista de Despesas",expense_title:"T\xEDtulo",contact:"Contato",category:"Categoria",customer:"Cliente",from_date:"A partir da Data",to_date:"At\xE9 a Data",expense_date:"Data",description:"Descri\xE7\xE3o",receipt:"Receita",amount:"Montante",action:"A\xE7\xE3o",not_selected:"Not selected",note:"Observa\xE7\xE3o",category_id:"Categoria",date:"Data da Despesa",add_expense:"Adicionar Despesa",add_new_expense:"Adicionar Nova Despesa",save_expense:"Salvar Despesa",update_expense:"Atualizar Despesa",download_receipt:"Baixar Receita",edit_expense:"Editar Despesa",new_expense:"Nova Despesa",expense:"Despesa | Despesas",no_expenses:"Ainda sem Despesas!",list_of_expenses:"Esta se\xE7\xE3o conter\xE1 a lista de despesas.",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta despesa | Voc\xEA n\xE3o poder\xE1 recuperar essas despesas",created_message:"Despesa criada com sucesso",updated_message:"Despesa atualizada com sucesso",deleted_message:"Despesas exclu\xEDdas com sucesso | Despesas exclu\xEDdas com sucesso",categories:{categories_list:"Lista de Categorias",title:"T\xEDtulo",name:"Nome",description:"Descri\xE7\xE3o",amount:"Montante",actions:"A\xE7\xF5es",add_category:"Adicionar Categoria",new_category:"Nova Categoria",category:"Categoria | Categorias",select_a_category:"Selecionar uma Categoria"}},L_={email:"Email",password:"Senha",forgot_password:"Esqueceu a senha?",or_signIn_with:"ou Entre com",login:"Entrar",register:"Registre-se",reset_password:"Resetar Senha",password_reset_successfully:"Senha redefinida com sucesso",enter_email:"Digite email",enter_password:"Digite a senha",retype_password:"Confirme a Senha"},U_={title:"Relat\xF3rio",from_date:"A partir da Data",to_date:"At\xE9 a Data",status:"Status",paid:"Pago",unpaid:"N\xE3o Pago",download_pdf:"Baixar PDF",view_pdf:"Ver PDF",update_report:"Atualizar Relat\xF3rio",report:"Relat\xF3rio | Relat\xF3rios",profit_loss:{profit_loss:"Perda de lucro",to_date:"At\xE9 a Data",from_date:"A partir da Data",date_range:"Selecionar per\xEDodo"},sales:{sales:"Vendas",date_range:"Selecionar per\xEDodo",to_date:"At\xE9 a Data",from_date:"A partir da Data",report_type:"Tipo de Relat\xF3rio"},taxes:{taxes:"Impostos",to_date:"At\xE9 a Data",from_date:"A partir da Data",date_range:"Selecionar per\xEDodo"},errors:{required:"Campo obrigat\xF3rio"},invoices:{invoice:"Fatura",invoice_date:"Data da Fatura",due_date:"Data de Vencimento",amount:"Montante",contact_name:"Nome de Contato",status:"Status"},estimates:{estimate:"Or\xE7amento",estimate_date:"Data do Or\xE7amento",due_date:"Data de Vencimento",estimate_number:"N\xFAmero do Or\xE7amento",ref_number:"Refer\xEAncia",amount:"Montante",contact_name:"Nome de Contato",status:"Status"},expenses:{expenses:"Despesas",category:"Categoria",date:"Data",amount:"Montante",to_date:"At\xE9 a Data",from_date:"A partir da Data",date_range:"Selecionar per\xEDodo"}},K_={menu_title:{account_settings:"Configura\xE7\xF5es da conta",company_information:"Informa\xE7\xF5es da Empresa",customization:"Personalizar",preferences:"Prefer\xEAncias",notifications:"Notifica\xE7\xF5es",tax_types:"Tipos de Impostos",expense_category:"Categorias de Despesas",update_app:"Atualizar Aplicativo",custom_fields:"Os campos personalizados"},title:"Configura\xE7\xF5es",setting:"Configura\xE7\xE3o | Configura\xE7\xF5es",general:"Geral",language:"Idioma",primary_currency:"Mo\xE9da Principal",timezone:"Fuso hor\xE1rio",date_format:"Formato de data",currencies:{title:"Moedas",currency:"Moeda | Moedas",currencies_list:"Moedas",select_currency:"Selecione uma Moeda",name:"Nome",code:"C\xF3digo",symbol:"S\xEDmbolo",precision:"Precis\xE3o",thousand_separator:"Separador de Milhar",decimal_separator:"Separador Decimal",position:"Posi\xE7\xE3o",position_of_symbol:"Posi\xE7\xE3o do S\xEDmbolo",right:"Direita",left:"Esquerda",action:"A\xE7\xE3o",add_currency:"Adicionar Moeda"},mail:{host:"Host de Email",port:"Porta de Email",driver:"Mail Driver",secret:"Segredo",mailgun_secret:"Mailgun Segredo",mailgun_domain:"Dom\xEDnio",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Segredo",ses_key:"SES Chave",password:"Senha do Email",username:"Nome de Usu\xE1rio do Email",mail_config:"Configura\xE7\xE3o de Email",from_name:"Do Nome de Email",from_mail:"Do Endere\xE7o de Email",encryption:"Criptografia de Email",mail_config_desc:"Abaixo est\xE1 o formul\xE1rio para configurar o driver de email para enviar emails do aplicativo. Voc\xEA tamb\xE9m pode configurar provedores de terceiros como Sendgrid, SES etc."},pdf:{title:"Configura\xE7\xF5es de PDF",footer_text:"Texto do Rodap\xE9",pdf_layout:"Layout de PDF"},company_info:{company_info:"Informa\xE7\xE3o da Empresa",company_name:"Nome da Empresa",company_logo:"Logotipo da Empresa",section_description:"Informa\xE7\xF5es sobre sua empresa que ser\xE3o exibidas em Faturas, Or\xE7amentos e outros documentos criados pela Crater.",phone:"Telefone",country:"Pais",state:"Estado",city:"Cidade",address:"Endere\xE7o",zip:"CEP",save:"Salvar",updated_message:"Informa\xE7\xF5es da Empresa atualizadas com sucesso"},custom_fields:{title:"Os campos personalizados",add_custom_field:"Adicionar campo personalizado",edit_custom_field:"Editar campo personalizado",field_name:"Nome do campo",type:"Tipo",name:"Nome",required:"Requeridas",label:"R\xF3tulo",placeholder:"Placeholder",help_text:"Texto de ajuda",default_value:"Valor padr\xE3o",prefix:"Prefixo",starting_number:"N\xFAmero inicial",model:"Modelo",help_text_description:"Digite algum texto para ajudar os usu\xE1rios a entender a finalidade desse campo personalizado.",suffix:"Sufixo",yes:"sim",no:"N\xE3o",order:"Ordem",custom_field_confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este campo personalizado",already_in_use:"O campo personalizado j\xE1 est\xE1 em uso",deleted_message:"Campo personalizado exclu\xEDdo com sucesso",options:"op\xE7\xF5es",add_option:"Adicionar op\xE7\xF5es",add_another_option:"Adicione outra op\xE7\xE3o",sort_in_alphabetical_order:"Classificar em ordem alfab\xE9tica",add_options_in_bulk:"Adicionar op\xE7\xF5es em massa",use_predefined_options:"Use Predefined Options",select_custom_date:"Selecionar data personalizada",select_relative_date:"Selecionar data relativa",ticked_by_default:"Marcado por padr\xE3o",updated_message:"Campo personalizado atualizado com sucesso",added_message:"Campo personalizado adicionado com sucesso"},customization:{customization:"Personalizar",save:"Salvar",addresses:{title:"Endere\xE7o",section_description:"Voc\xEA pode definir o endere\xE7o de cobran\xE7a do cliente e o formato do endere\xE7o de entrega do cliente (exibido apenas em PDF).",customer_billing_address:"Endere\xE7o de Cobran\xE7a do Cliente",customer_shipping_address:"Endere\xE7o de Entrega do Cliente",company_address:"Endere\xE7o da Empresa",insert_fields:"Inserir Campos",contact:"Contato",address:"Endere\xE7o",display_name:"Nome em Exibi\xE7\xE3o",primary_contact_name:"Nome do Contato Principal",email:"Email",website:"Website",name:"Nome",country:"Pais",state:"Estado",city:"Cidade",company_name:"Nome da Empresa",address_street_1:"Endere\xE7o Rua 1",address_street_2:"Endere\xE7o Rua 2",phone:"Telefone",zip_code:"CEP",address_setting_updated:"Configura\xE7\xE3o de Endere\xE7o Atualizada com Sucesso"},updated_message:"Informa\xE7\xF5es da Empresa atualizadas com sucesso",invoices:{title:"Faturas",notes:"Notas",invoice_prefix:"Fatura Prefixo",invoice_settings:"Configra\xE7\xF5es da Fatura",autogenerate_invoice_number:"Gerar automaticamente o n\xFAmero da Fatura",autogenerate_invoice_number_desc:"Desative isso, se voc\xEA n\xE3o deseja gerar automaticamente n\xFAmeros da Fatura sempre que criar uma nova.",enter_invoice_prefix:"Digite o prefixo da Fatura",terms_and_conditions:"Termos e Condi\xE7\xF5es",invoice_settings_updated:"Configura\xE7\xE3o da Fatura atualizada com sucesso"},estimates:{title:"Or\xE7amentos",estimate_prefix:"Or\xE7amento Prefixo",estimate_settings:"Configura\xE7\xF5es do Or\xE7amento",autogenerate_estimate_number:"Gerar automaticamente o n\xFAmero do Or\xE7amento",estimate_setting_description:"Desative isso, se voc\xEA n\xE3o deseja gerar automaticamente n\xFAmeros do Or\xE7amento sempre que criar um novo.",enter_estimate_prefix:"Digite o prefixo do Or\xE7amento",estimate_setting_updated:"Configura\xE7\xE3o do Or\xE7amento atualizada com sucesso"},payments:{title:"Pagamentos",payment_prefix:"Pagamento Prefixo",payment_settings:"Configura\xE7\xF5es de Pagamento",autogenerate_payment_number:"Gerar automaticamente n\xFAmero do Pagamento",payment_setting_description:"Desative isso, se voc\xEA n\xE3o deseja gerar automaticamente n\xFAmeros do Pagamento sempre que criar um novo.",enter_payment_prefix:"Digite o Prefixo do Pagamento",payment_setting_updated:"Configura\xE7\xF5es de Pagamento atualizada com sucesso",payment_mode:"Modo de pagamento",add_payment_mode:"Adicionar modo de pagamento",edit_payment_mode:"Editar modo de pagamento",mode_name:"Nome do modo",payment_mode_added:"Modo de pagamento adicionado",payment_mode_updated:"Modo de pagamento atualizado",payment_mode_confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este modo de pagamento",already_in_use:"O modo de pagamento j\xE1 est\xE1 em uso",deleted_message:"Modo de pagamento exclu\xEDdo com sucesso"},items:{title:"Itens",units:"unidades",add_item_unit:"Adicionar unidade de item",edit_item_unit:"Editar unidade de item",unit_name:"Nome da unidade",item_unit_added:"Item Unit Added",item_unit_updated:"Item Unit Updated",item_unit_confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta unidade de item",already_in_use:"A unidade do item j\xE1 est\xE1 em uso",deleted_message:"Unidade de item exclu\xEDda com sucesso"}},account_settings:{profile_picture:"Foto do Perfil",name:"Nome",email:"Email",password:"Senha",confirm_password:"Confirmar Senha",account_settings:"Configura\xE7\xF5es da conta",save:"Salvar",section_description:"Voc\xEA pode atualizar seu nome, email e senha usando o formul\xE1rio abaixo.",updated_message:"Configura\xE7\xF5es da conta atualizadas com sucesso"},user_profile:{name:"Nome",email:"Email",password:"Password",confirm_password:"Confirmar Senha"},notification:{title:"Notifica\xE7\xE3o",email:"Enviar Notifica\xE7\xF5es para",description:"Quais notifica\xE7\xF5es por email voc\xEA gostaria de receber quando algo mudar?",invoice_viewed:"Fatura Visualizada",invoice_viewed_desc:"Quando o seu cliente visualiza uma Fatura enviada pelo painel do Crater.",estimate_viewed:"Or\xE7amento Visualizado",estimate_viewed_desc:"Quando o seu cliente visualiza um Or\xE7amento enviada pelo painel do Crater.",save:"Salvar",email_save_message:"E-mail salvo com sucesso",please_enter_email:"Por favor digite um E-mail"},tax_types:{title:"Tipos de Impostos",add_tax:"Adicionar Imposto",edit_tax:"Editar imposto",description:"Voc\xEA pode adicionar ou remover impostos conforme desejar. O Crater suporta impostos sobre itens individuais e tamb\xE9m na Fatura.",add_new_tax:"Adicionar Novo Imposto",tax_settings:"Configura\xE7\xF5es de Impostos",tax_per_item:"Imposto por Item",tax_name:"Nome do Imposto",compound_tax:"Imposto Composto",percent:"Porcentagem",action:"A\xE7\xE3o",tax_setting_description:"Habilite isso se desejar adicionar Impostos a itens da Fatura Idividualmente. Por padr\xE3o, os impostos s\xE3o adicionados diretamente \xE0 Fatura.",created_message:"Tipo de Imposto criado com sucesso",updated_message:"Tipo de Imposto Atualizado com sucesso",deleted_message:"Tipo de Imposto Deletado com sucesso",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este tipo de Imposto",already_in_use:"O Imposto j\xE1 est\xE1 em uso"},expense_category:{title:"Categoria de Despesa",action:"A\xE7\xE3o",description:"As Categorias s\xE3o necess\xE1rias para adicionar entradas de Despesas. Voc\xEA pode adicionar ou remover essas Categorias de acordo com sua prefer\xEAncia.",add_new_category:"Adicionar Nova Categoria",add_category:"Adicionar categoria",edit_category:"Editar categoria",category_name:"Nome da Categoria",category_description:"Descri\xE7\xE3o",created_message:"Categoria de Despesa criada com sucesso",deleted_message:"Categoria de Despesa exclu\xEDda com sucesso",updated_message:"Categoria de Despesa atualizada com sucesso",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta Categoria de Despesa",already_in_use:"A categoria j\xE1 est\xE1 em uso"},preferences:{currency:"Moeda",language:"Idioma",time_zone:"Fuso Hor\xE1rio",fiscal_year:"Ano Financeiro",date_format:"Formato da Data",discount_setting:"Configura\xE7\xE3o de Desconto",discount_per_item:"Desconto por Item ",discount_setting_description:"Habilite isso se desejar adicionar desconto a itens de Fatura individualmente. Por padr\xE3o, o desconto \xE9 adicionado diretamente \xE0 Fatura.",save:"Salvar",preference:"Prefer\xEAncia | Prefer\xEAncias",general_settings:"Prefer\xEAncias padr\xE3o para o sistema.",updated_message:"Prefer\xEAncias atualizadas com sucesso",select_language:"Selecione um Idioma",select_time_zone:"Selecione um fuso hor\xE1rio",select_date_formate:"Selecione um formato de data",select_financial_year:"Selecione o ano financeiro"},update_app:{title:"Atualizar Aplicativo",description:"Voc\xEA pode atualizar facilmente o Crater, verifique se h\xE0 novas atualiza\xE7\xF5es, clicando no bot\xE3o abaixo",check_update:"Verifique se h\xE1 atualiza\xE7\xF5es",avail_update:"Nova atualiza\xE7\xE3o dispon\xEDvel",next_version:"Pr\xF3xima vers\xE3o",update:"Atualizar agora",update_progress:"Atualiza\xE7\xE3o em progresso...",progress_text:"Levar\xE1 apenas alguns minutos. N\xE3o atualize a tela ou feche a janela antes que a atualiza\xE7\xE3o seja conclu\xEDda",update_success:"O aplicativo foi atualizado! Aguarde enquanto a janela do navegador \xE9 recarregada automaticamente.",latest_message:"Nenhuma atualiza\xE7\xE3o dispon\xEDvel! Voc\xEA est\xE1 na vers\xE3o mais recente.",current_version:"Vers\xE3o Atual",download_zip_file:"Baixar arquivo ZIP",unzipping_package:"Descompactando o pacote",copying_files:"Copiando arquivos",running_migrations:"Executando migra\xE7\xF5es",finishing_update:"Atualiza\xE7\xE3o de acabamento",update_failed:"Atualiza\xE7\xE3o falhou",update_failed_text:"Desculpa! Sua atualiza\xE7\xE3o falhou em: {step} step"}},q_={account_info:"Informa\xE7\xE3o da conta",account_info_desc:"Os detalhes abaixo ser\xE3o usados para criar a conta principal do administrador. Al\xE9m disso, voc\xEA pode alterar os detalhes a qualquer momento ap\xF3s o login.",name:"Nome",email:"Email",password:"Senha",confirm_password:"Confirmar Senha",save_cont:"Salvar e Continuar",company_info:"Informa\xE7\xE3o da Empresa",company_info_desc:"Esta informa\xE7\xE3o ser\xE1 exibida nas Faturas. Observe que voc\xEA pode editar isso mais tarde na p\xE1gina de configura\xE7\xF5es.",company_name:"Nome da Empresa",company_logo:"Logotipo da Empresa",logo_preview:"Previsualizar Logotipo",preferences:"Prefer\xEAncias",preferences_desc:"Prefer\xEAncias padr\xE3o para o sistema.",country:"Pais",state:"Estado",city:"Cidade",address:"Endere\xE7o",street:"Rua 1 | Rua 2",phone:"Telefone",zip_code:"CEP",go_back:"Voltar",currency:"Moeda",language:"Idioma",time_zone:"Fuso Hor\xE1rio",fiscal_year:"Ano Financeiro",date_format:"Formato de Data",from_address:"Do Endere\xE7o",username:"Nome de Usu\xE1rio",next:"Pr\xF3ximo",continue:"Continuar",skip:"Pular",database:{database:"URL do Site e Base de Dados",connection:"Conex\xE3o da Base de Dados",host:"Host da Base de Dados",port:"Porta da Base de Dados",password:"Senha da Base de Dados",app_url:"URL do Aplicativo",username:"Usu\xE1rio da Base de Dados",db_name:"Nome da Base de Dados",desc:"Crie um Banco de Dados no seu servidor e defina as credenciais usando o formul\xE1rio abaixo."},permissions:{permissions:"Permiss\xF5es",permission_confirm_title:"Voc\xEA tem certeza que quer continuar?",permission_confirm_desc:"Falha na verifica\xE7\xE3o de permiss\xE3o da pasta",permission_desc:"Abaixo est\xE1 a lista de permiss\xF5es de pasta que s\xE3o necess\xE1rias para que o aplicativo funcione. Se a verifica\xE7\xE3o da permiss\xE3o falhar, atualize as permiss\xF5es da pasta."},mail:{host:"Host do email",port:"Porta do email",driver:"Driver do email",secret:"Segredo",mailgun_secret:"Segredo do Mailgun",mailgun_domain:"Dom\xEDnio",mailgun_endpoint:"Endpoint do Mailgun",ses_secret:"Segredo do SES",ses_key:"Chave SES",password:"Senha do email",username:"Nome do Usu\xE1rio do email",mail_config:"Configura\xE7\xE3o de email",from_name:"Nome do email",from_mail:"Endere\xE7o de email",encryption:"Criptografia de email",mail_config_desc:"Abaixo est\xE1 o formul\xE1rio para configurar o driver de email que ser\xE1 usado para enviar emails do aplicativo. Voc\xEA tamb\xE9m pode configurar provedores de terceiros como Sendgrid, SES etc."},req:{system_req:"Requisitos de Sistema",php_req_version:"PHP (vers\xE3o {version} obrigat\xF3ria)",check_req:"Verificar Requisitos",system_req_desc:"O Crater tem alguns requisitos de servidor. Verifique se o seu servidor possui a vers\xE3o do PHP necess\xE1ria e todas as extens\xF5es mencionadas abaixo."},errors:{migrate_failed:"Falha na migra\xE7\xE3o",database_variables_save_error:"N\xE3o \xE9 poss\xEDvel gravar a configura\xE7\xE3o no arquivo .env. Por favor, verifique suas permiss\xF5es de arquivo",mail_variables_save_error:"A configura\xE7\xE3o do email falhou.",connection_failed:"Falha na conex\xE3o com o banco de dados",database_should_be_empty:"O banco de dados deve estar vazio"},success:{mail_variables_save_successfully:"Email configurado com sucesso",database_variables_save_successfully:"Banco de dados configurado com sucesso."}},Z_={invalid_phone:"N\xFAmero de telefone inv\xE1lido",invalid_url:"url inv\xE1lidas (ex: http://www.craterapp.com)",required:"Campo obrigat\xF3rio",email_incorrect:"E-mail incorreto",email_already_taken:"O email j\xE1 foi recebido.",email_does_not_exist:"O usu\xE1rio com determinado email n\xE3o existe",send_reset_link:"Enviar link de redefini\xE7\xE3o",not_yet:"Ainda n\xE3o? Envie novamente",password_min_length:"A senha deve conter {count} caracteres",name_min_length:"O nome deve ter pelo menos {count} letras.",enter_valid_tax_rate:"Insira uma taxa de imposto v\xE1lida",numbers_only:"Apenas N\xFAmeros.",characters_only:"Apenas Caracteres.",password_incorrect:"As senhas devem ser id\xEAnticas",password_length:"A senha deve ter {count} caracteres.",qty_must_greater_than_zero:"A quantidade deve ser maior que zero.",price_greater_than_zero:"O pre\xE7o deve ser maior que zero.",payment_greater_than_zero:"O pagamento deve ser maior que zero.",payment_greater_than_due_amount:"O pagamento inserido \xE9 mais do que o valor devido desta fatura.",quantity_maxlength:"A quantidade n\xE3o deve exceder 20 d\xEDgitos.",price_maxlength:"O pre\xE7o n\xE3o deve ser superior a 20 d\xEDgitos.",price_minvalue:"O pre\xE7o deve ser maior que 0.",amount_maxlength:"Montante n\xE3o deve ser superior a 20 d\xEDgitos.",amount_minvalue:"Montante deve ser maior que zero",description_maxlength:"A descri\xE7\xE3o n\xE3o deve ter mais que 255 caracteres.",maximum_options_error:"M\xE1ximo de {max} op\xE7\xF5es selecionadas. Primeiro remova uma op\xE7\xE3o selecionada para selecionar outra.",notes_maxlength:"As anota\xE7\xF5es n\xE3o devem ter mais que 255 caracteres.",address_maxlength:"O endere\xE7o n\xE3o deve ter mais que 255 caracteres.",ref_number_maxlength:"O n\xFAmero de refer\xEAncia n\xE3o deve ter mais que 255 caracteres.",prefix_maxlength:"O prefixo n\xE3o deve ter mais que 5 caracteres."};var W_={navigation:N_,general:T_,dashboard:I_,tax_types:$_,customers:R_,items:F_,estimates:M_,invoices:V_,payments:B_,expenses:O_,login:L_,reports:U_,settings:K_,wizard:q_,validation:Z_};const H_={dashboard:"Dashboard",customers:"Clienti",items:"Commesse",invoices:"Fatture",expenses:"Spese",estimates:"Preventivi",payments:"Pagamenti",reports:"Reports",settings:"Configurazione",logout:"Logout",users:"Users"},G_={add_company:"Add Company",view_pdf:"Vedi PDF",copy_pdf_url:"Copy PDF Url",download_pdf:"Scarica PDF",save:"Salva",create:"Create",cancel:"Elimina",update:"Aggiorna",deselect:"Deseleziona",download:"Download",from_date:"Dalla Data",to_date:"Alla Data",from:"Da",to:"A",sort_by:"Ordina per",ascending:"Crescente",descending:"Decrescente",subject:"Oggetto",body:"Corpo",message:"Messaggio",send:"Send",go_back:"Torna indietro",back_to_login:"Torna al Login?",home:"Home",filter:"Filtro",delete:"Elimina",edit:"Modifica",view:"Visualizza",add_new_item:"Aggiungi nuova Commessa",clear_all:"Pulisci tutto",showing:"Showing",of:"di",actions:"Azioni",subtotal:"SUBTOTALE",discount:"SCONTO",fixed:"Fissato",percentage:"Percentuale",tax:"TASSA",total_amount:"AMMONTARE TOTALE",bill_to:"Fattura a",ship_to:"Invia a",due:"Dovuto",draft:"Bozza",sent:"Inviata",all:"Tutte",select_all:"Seleziona tutto",choose_file:"Clicca per selezionare un file",choose_template:"Scegli un modello",choose:"Scegli",remove:"Rimuovi",powered_by:"Prodotto da",bytefury:"Bytefury",select_a_status:"Seleziona uno Stato",select_a_tax:"Seleziona una Tassa",search:"Cerca",are_you_sure:"Sei sicuro/a?",list_is_empty:"La lista \xE8 vuota.",no_tax_found:"Nessuna Tassa trovata!",four_zero_four:"404",you_got_lost:"Hoops! Ti sei perso",go_home:"Vai alla Home",test_mail_conf:"Configurazione della mail di test",send_mail_successfully:"Mail inviata con successo",setting_updated:"Configurazioni aggiornate con successo",select_state:"Seleziona lo Stato",select_country:"Seleziona Paese",select_city:"Seleziona Citt\xE0",street_1:"Indirizzo 1",street_2:"Indirizzo 2",action_failed:"Errore",retry:"Retry",choose_note:"Choose Note",no_note_found:"No Note Found",insert_note:"Insert Note"},Y_={select_year:"Seleziona anno",cards:{due_amount:"Somma dovuta",customers:"Clienti",invoices:"Fatture",estimates:"Preventivi"},chart_info:{total_sales:"Vendite",total_receipts:"Ricevute",total_expense:"Uscite",net_income:"Guadagno netto",year:"Seleziona anno"},monthly_chart:{title:"Entrate & Uscite"},recent_invoices_card:{title:"Fatture insolute",due_on:"Data di scadenza",customer:"Cliente",amount_due:"Ammontare dovuto",actions:"Azioni",view_all:"Vedi tutto"},recent_estimate_card:{title:"Preventivi recenti",date:"Data",customer:"Cliente",amount_due:"Ammontare dovuto",actions:"Azioni",view_all:"Vedi tutto"}},J_={name:"Nome",description:"Descrizione",percent:"Percento",compound_tax:"Tassa composta"},X_={search:"Search...",customers:"Clienti",users:"Users",no_results_found:"No Results Found"},Q_={title:"Clienti",add_customer:"Aggiungi cliente",contacts_list:"Lista clienti",name:"Nome",mail:"Mail | Mails",statement:"Statement",display_name:"Mostra nome",primary_contact_name:"Riferimento",contact_name:"Nome Contatto",amount_due:"Ammontare dovuto",email:"Email",address:"Indirizzo",phone:"Telefono",website:"Sito web",overview:"Overview",enable_portal:"Enable Portal",country:"Paese",state:"Stato",city:"Citt\xE0",zip_code:"Codice Postale",added_on:"Aggiunto il",action:"Azione",password:"Password",street_number:"Numero Civico",primary_currency:"Val\xF9ta Principale",description:"Descrizione",add_new_customer:"Aggiungi nuovo Cliente",save_customer:"Salva Cliente",update_customer:"Aggiorna Cliente",customer:"Cliente | Clienti",new_customer:"Nuovo cliente",edit_customer:"Modifica Cliente",basic_info:"Informazioni",billing_address:"Indirizzo di Fatturazione",shipping_address:"Indirizzo di Spedizione",copy_billing_address:"Copia da Fatturazione",no_customers:"Ancora nessun Cliente!",no_customers_found:"Nessun cliente trovato!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Qui ci sar\xE0 la lista dei tuoi clienti",primary_display_name:"Mostra il Nome Principale",select_currency:"Selezione Val\xF9ta",select_a_customer:"Seleziona Cliente",type_or_click:"Scrivi o clicca per selezionare",new_transaction:"Nuova transazione",no_matching_customers:"Non ci sono clienti corrispondenti!",phone_number:"Numero di telefono",create_date:"Crea data",confirm_delete:"Non sarai in grado di recuperare questo cliente e tutte le relative fatture, stime e pagamenti. | Non sarai in grado di recuperare questi clienti e tutte le relative fatture, stime e pagamenti.",created_message:"Cliente creato con successo",updated_message:"Cliente aggiornato con successo",deleted_message:"Cliente cancellato con successo | Clienti cancellati con successo"},eu={title:"Commesse",items_list:"Lista Commesse",name:"Nome",unit:"Unit\xE0/Tipo",description:"Descrizione",added_on:"Aggiunto il",price:"Prezzo",date_of_creation:"Data di creazione",not_selected:"No item selected",action:"Azione",add_item:"Aggiungi Commessa",save_item:"Salva",update_item:"Aggiorna",item:"Commessa | Commesse",add_new_item:"Aggiungi nuova Commessa",new_item:"Nuova Commessa",edit_item:"Modifica Commessa",no_items:"Ancora nessuna commessa!",list_of_items:"Qui ci sar\xE0 la lista delle commesse.",select_a_unit:"Seleziona",taxes:"Imposte",item_attached_message:"Non puoi eliminare una Commessa che \xE8 gi\xE0 attiva",confirm_delete:"Non potrai ripristinare la Commessa | Non potrai ripristinare le Commesse",created_message:"Commessa creata con successo",updated_message:"Commessa aggiornata con successo",deleted_message:"Commessa eliminata con successo | Commesse eliminate con successo"},tu={title:"Preventivi",estimate:"Preventivo | Preventivi",estimates_list:"Lista Preventivi",days:"{days} Giorni",months:"{months} Mese",years:"{years} Anno",all:"Tutti",paid:"Pagato",unpaid:"Non pagato",customer:"CLIENTE",ref_no:"RIF N.",number:"NUMERO",amount_due:"AMMONTARE DOVUTO",partially_paid:"Pagamento Parziale",total:"Totale",discount:"Sconto",sub_total:"Sub Totale",estimate_number:"Preventivo Numero",ref_number:"Numero di Rif.",contact:"Contatto",add_item:"Aggiungi un item",date:"Data",due_date:"Data di pagamento",expiry_date:"Data di scadenza",status:"Stato",add_tax:"Aggiungi Imposta",amount:"Ammontare",action:"Azione",notes:"Note",tax:"Imposta",estimate_template:"Modello",convert_to_invoice:"Converti in Fattura",mark_as_sent:"Segna come Inviata",send_estimate:"Invia preventivo",resend_estimate:"Resend Estimate",record_payment:"Registra Pagamento",add_estimate:"Aggiungi Preventivo",save_estimate:"Salva Preventivo",confirm_conversion:"Questo preventivo verr\xE0 usato per generare una nuova fattura.",conversion_message:"Fattura creata",confirm_send_estimate:"Questo preventivo verr\xE0 inviato al cliente via mail",confirm_mark_as_sent:"Questo preventivo verr\xE0 contrassegnato come inviato",confirm_mark_as_accepted:"Questo preventivo verr\xE0 contrassegnato come Accettato",confirm_mark_as_rejected:"Questo preventivo verr\xE0 contrassegnato come Rifiutato",no_matching_estimates:"Nessun preventivo trovato!",mark_as_sent_successfully:"Preventivo contrassegnato come inviato con successo",send_estimate_successfully:"Preventivo inviato con successo",errors:{required:"Campo obbligatorio"},accepted:"Accettato",rejected:"Rejected",sent:"Inviato",draft:"Bozza",declined:"Rifiutato",new_estimate:"Nuovo Preventivo",add_new_estimate:"Crea Nuovo Preventivo",update_Estimate:"Aggiorna preventivo",edit_estimate:"Modifica Preventivo",items:"Commesse",Estimate:"Preventivo | Preventivi",add_new_tax:"Aggiungi una nuova tassa/imposta",no_estimates:"Ancora nessun preventivo!",list_of_estimates:"Questa sezione conterr\xE0 la lista dei preventivi.",mark_as_rejected:"Segna come Rifiutato",mark_as_accepted:"Segna come Accettato",marked_as_accepted_message:"Preventivo contrassegnato come accettato",marked_as_rejected_message:"Preventivo contrassegnato come rifiutato",confirm_delete:"Non potrai pi\xF9 recuperare questo preventivo | Non potrai pi\xF9 recuperare questi preventivi",created_message:"Preventivo creato con successo",updated_message:"Preventivo modificato con successo",deleted_message:"Preventivo eliminato con successo | Preventivi eliminati con successo",something_went_wrong:"Si \xE8 verificato un errore",item:{title:"Titolo Commessa",description:"Descrizione",quantity:"Quantit\xE0",price:"Prezzo",discount:"Sconto",total:"Totale",total_discount:"Sconto Totale",sub_total:"Sub Totale",tax:"Tasse",amount:"Ammontare",select_an_item:"Scrivi o clicca per selezionare un item",type_item_description:"Scrivi una Descrizione (opzionale)"}},au={title:"Fatture",invoices_list:"Lista Fatture",days:"{days} Giorni",months:"{months} Mese",years:"{years} Anno",all:"Tutti",paid:"Pagato",unpaid:"Insoluto",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENTE",paid_status:"STATO DI PAGAMENTO",ref_no:"RIF N.",number:"NUMERO",amount_due:"AMMONTARE DOVUTO",partially_paid:"Parzialmente Pagata",total:"Totale",discount:"Sconto",sub_total:"Sub Totale",invoice:"Fattura | Fatture",invoice_number:"Numero Fattura",ref_number:"Rif Numero",contact:"Contatto",add_item:"Aggiungi Commessa/Item",date:"Data",due_date:"Data di pagamento",status:"Stato",add_tax:"Aggiungi Imposta",amount:"Ammontare",action:"Azione",notes:"Note",view:"Vedi",send_invoice:"Invia Fattura",resend_invoice:"Resend Invoice",invoice_template:"Modello Fattura",template:"Modello",mark_as_sent:"Segna come inviata",confirm_send_invoice:"Questa fattura sar\xE0 inviata via Mail al Cliente",invoice_mark_as_sent:"Questa fattura sar\xE0 contrassegnata come inviata",confirm_send:"Questa fattura sar\xE0 inviata via Mail al Cliente",invoice_date:"Data fattura",record_payment:"Registra Pagamento",add_new_invoice:"Aggiungi nuova Fattura",update_expense:"Aggiorna Costo",edit_invoice:"Modifica Fattura",new_invoice:"Nuova Fattura",save_invoice:"Salva fattura",update_invoice:"Aggiorna Fattura",add_new_tax:"Aggiungi tassa/imposta",no_invoices:"Ancora nessuna fattura!",list_of_invoices:"Questa sezione conterr\xE0 la lista delle Fatture.",select_invoice:"Seleziona Fattura",no_matching_invoices:"Nessuna fattura trovata!",mark_as_sent_successfully:"Fattura contassegnata come inviata con successo",invoice_sent_successfully:"Fattura inviata con successo",cloned_successfully:"Fattura copiata con successo",clone_invoice:"Clona Fattura",confirm_clone:"Questa fattura verr\xE0 clonata in una nuova fattura",item:{title:"Titolo Commessa",description:"Descrizione",quantity:"Quantit\xE0",price:"Prezzo",discount:"Sconto",total:"Totale",total_discount:"Sconto Totale",sub_total:"Sub Totale",tax:"Tassa",amount:"Ammontare",select_an_item:"Scrivi o clicca per selezionare un item",type_item_description:"Scrivi una descrizione (opzionale)"},confirm_delete:"Non potrai recuperare la Fattura cancellata | Non potrai recuperare le Fatture cancellate",created_message:"Fattura creata con successo",updated_message:"Fattura aggiornata con successo",deleted_message:"Fattura cancellata con successo | Fatture cancellate con successo",marked_as_sent_message:"Fattura contrassegnata come inviata con successo",something_went_wrong:"Si \xE8 verificato un errore",invalid_due_amount_message:"L'ammontare totale della fattura non pu\xF2 essere inferiore all'ammontare totale pagato per questa fattura. Modifica la fattura o cancella i pagamenti associati per continuare."},su={title:"Pagamenti",payments_list:"Lista Pagamenti",record_payment:"Registra Pagamento",customer:"Cliente",date:"Data",amount:"Ammontare",action:"Azione",payment_number:"Numero di pagamento",payment_mode:"Modalit\xE0 di Pagamento",invoice:"Fattura",note:"Nota",add_payment:"Aggiungi Pagamento",new_payment:"Nuovo Pagamento",edit_payment:"Modifica Pagamento",view_payment:"Vedi Pagamento",add_new_payment:"Aggiungi nuovo pagamento",send_payment_receipt:"Invia ricevuta di pagamento",send_payment:"Inviare il pagamento",save_payment:"Salva pagamento",update_payment:"Aggiorna pagamento",payment:"Pagamento | Pagamenti",no_payments:"Ancora nessun pagamento!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Non ci sono pagamenti!",list_of_payments:"Questa sezione conterr\xE0 la lista dei pagamenti.",select_payment_mode:"Seleziona modalit\xE0 di pagamento",confirm_mark_as_sent:"Questo preventivo verr\xE0 contrassegnato come inviato",confirm_send_payment:"Questo pagamento verr\xE0 inviato via email al cliente",send_payment_successfully:"Pagamento inviato con successo",something_went_wrong:"si \xE8 verificato un errore",confirm_delete:"Non potrai recuperare questo pagamento | Non potrai recuperare questi pagamenti",created_message:"Pagamento creato con successo",updated_message:"Pagamento aggiornato con successo",deleted_message:"Pagamento cancellato con successo | Pagamenti cancellati con successo",invalid_amount_message:"L'ammontare del pagamento non \xE8 valido"},nu={title:"Spese",expenses_list:"Lista Costi",select_a_customer:"Seleziona Cliente",expense_title:"Titolo",customer:"Cliente",contact:"Contatto",category:"Categoria",from_date:"Dalla Data",to_date:"Alla Data",expense_date:"Data",description:"Descrizione",receipt:"Ricevuta",amount:"Ammontare",action:"Azione",not_selected:"Not selected",note:"Nota",category_id:"Id categoria",date:"Data Spesa",add_expense:"Aggiungi Spesa",add_new_expense:"Aggiungi nuova Spesa",save_expense:"Salva la Spesa",update_expense:"Aggiorna Spesa",download_receipt:"Scarica la Ricevuta",edit_expense:"Modifica Spesa",new_expense:"Nuova Spesa",expense:"Spesa | Spese",no_expenses:"Ancora nessuna spesa!",list_of_expenses:"Questa sezione conterr\xE0 la lista delle Spese.",confirm_delete:"Non potrai recuperare questa spesa | Non potrai recuperare queste spese",created_message:"Spesa creata con successo",updated_message:"Spesa modificata con successo",deleted_message:"Spesa cancellata con successo | Spese cancellate con successo",categories:{categories_list:"Lista categorie",title:"Titolo",name:"Nome",description:"Descrizione",amount:"Ammontare",actions:"Azioni",add_category:"Aggiungi Categoria",new_category:"Nuova Categoria",category:"Categoria | Categorie",select_a_category:"Seleziona Categoria"}},iu={email:"Email",password:"Password",forgot_password:"Password dimenticata?",or_signIn_with:"o fai login con",login:"Login",register:"Registrati",reset_password:"Resetta Password",password_reset_successfully:"Password Resettata con successo",enter_email:"Inserisci email",enter_password:"Inserisci Password",retype_password:"Ridigita Password"},ou={title:"Users",users_list:"Users List",name:"Nome",description:"Descrizione",added_on:"Aggiunto il",date_of_creation:"Data di creazione",action:"Azione",add_user:"Add User",save_user:"Save User",update_user:"Update User",user:"User | Users",add_new_user:"Add New User",new_user:"New User",edit_user:"Edit User",no_users:"No users yet!",list_of_users:"This section will contain the list of users.",email:"Email",phone:"Telefono",password:"Password",user_attached_message:"Non puoi eliminare una Commessa che \xE8 gi\xE0 attiva",confirm_delete:"You will not be able to recover this User | You will not be able to recover these Users",created_message:"User created successfully",updated_message:"User updated successfully",deleted_message:"User deleted successfully | User deleted successfully"},ru={title:"Report",from_date:"Da",to_date:"A",status:"Stato",paid:"Pagato",unpaid:"Non pagato",download_pdf:"Scarica PDF",view_pdf:"Vedi PDF",update_report:"Aggiorna Report",report:"Report | Reports",profit_loss:{profit_loss:"Guadagni & Perdite",to_date:"A",from_date:"Da",date_range:"Seleziona intervallo date"},sales:{sales:"Vendite",date_range:"Seleziona intervallo date",to_date:"A",from_date:"Da",report_type:"Tipo di report"},taxes:{taxes:"Tasse",to_date:"Alla data",from_date:"Dalla data",date_range:"Seleziona intervallo date"},errors:{required:"Campo obbligatorio"},invoices:{invoice:"Fattura",invoice_date:"Data fattura",due_date:"Data di pagamento",amount:"Ammontare",contact_name:"Nome contatto",status:"Stato"},estimates:{estimate:"Preventivo",estimate_date:"Data preventivo",due_date:"Data di pagamento",estimate_number:"Numero di preventivo",ref_number:"Numero di Rif.",amount:"Ammontare",contact_name:"Nome contatto",status:"Stato"},expenses:{expenses:"Spese",category:"Categoria",date:"Data",amount:"Ammontare",to_date:"Alla data",from_date:"Dalla data",date_range:"Seleziona intervallo date"}},du={menu_title:{account_settings:"Impostazioni Account",company_information:"Informazioni Azienda",customization:"Personalizzazione",preferences:"Opzioni",notifications:"Notifiche",tax_types:"Tupi di Tasse",expense_category:"Categorie di spesa",update_app:"Aggiorna App",backup:"Backup",file_disk:"File Disk",custom_fields:"Campi personalizzati",payment_modes:"Payment Modes",notes:"Note"},title:"Impostazioni",setting:"Opzione | Impostazioni",general:"Generale",language:"Lingua",primary_currency:"Valuta Principale",timezone:"Time Zone",date_format:"Formato data",currencies:{title:"Valute",currency:"Val\xF9ta | Valute",currencies_list:"Lista valute",select_currency:"Seleziona Val\xF9ta",name:"Nome",code:"Codice",symbol:"Simbolo",precision:"Precisione",thousand_separator:"Separatore migliaia",decimal_separator:"Separatore decimali",position:"Posizione",position_of_symbol:"Posizione del Simbolo",right:"Destra",left:"Sinistra",action:"Azione",add_currency:"Aggiungi Val\xF9ta"},mail:{host:"Mail Host",port:"Mail - Porta",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Configurazione Mail",from_name:"Nome Mittente Mail",from_mail:"Indirizzo Mittente Mail",encryption:"Tipo di cifratura Mail",mail_config_desc:"Form per Configurazione Driver Mail per invio mail dall'App. Puoi anche configurare providers di terze parti come Sendgrid, SES, etc.."},pdf:{title:"Configurazione PDF",footer_text:"Testo Footer",pdf_layout:"Layout PDF"},company_info:{company_info:"Info azienda",company_name:"Nome azienda",company_logo:"Logo azienda",section_description:"Informazioni sulla tua azienda che saranno mostrate in fattura, preventivi ed altri documenti creati dell'applicazione.",phone:"Telefono",country:"Paese",state:"Stato",city:"Citt\xE0",address:"Indirizzo",zip:"CAP",save:"Salva",updated_message:"Informazioni Azienda aggiornate con successo."},custom_fields:{title:"Campi personalizzati",section_description:"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.",add_custom_field:"Aggiungi campo personalizzato",edit_custom_field:"Modifica campo personalizzato",field_name:"Nome campo",label:"Etichetta",type:"genere",name:"Nome",required:"Necessaria",placeholder:"segnaposto",help_text:"Testo guida",default_value:"Valore predefinito",prefix:"Prefisso",starting_number:"Numero iniziale",model:"Modella",help_text_description:"Inserisci del testo per aiutare gli utenti a comprendere lo scopo di questo campo personalizzato.",suffix:"Suffisso",yes:"s\xEC",no:"No",order:"Ordine",custom_field_confirm_delete:"Non sarai in grado di recuperare questo campo personalizzato",already_in_use:"Il campo personalizzato \xE8 gi\xE0 in uso",deleted_message:"Campo personalizzato eliminato correttamente",options:"opzioni",add_option:"Aggiungi opzioni",add_another_option:"Aggiungi un'altra opzione",sort_in_alphabetical_order:"Ordina in ordine alfabetico",add_options_in_bulk:"Aggiungi opzioni in blocco",use_predefined_options:"Usa opzioni predefinite",select_custom_date:"Seleziona la data personalizzata",select_relative_date:"Seleziona la data relativa",ticked_by_default:"Contrassegnato per impostazione predefinita",updated_message:"Campo personalizzato aggiornato correttamente",added_message:"Campo personalizzato aggiunto correttamente"},customization:{customization:"personalizzazione",save:"Salva",addresses:{title:"Indirizzi",section_description:"Puoi settare l'indirizzo di fatturazione del Cliente e/o il formato dell'indirizzo di spedizione (Mostrato solo sul PDF). ",customer_billing_address:"Indirizzo Fatturazione Cliente",customer_shipping_address:"Indirizzo spedizione Cliente",company_address:"Indirizzo Azienda",insert_fields:"Inserisci Campi",contact:"Contatto",address:"Indirizzo",display_name:"Mostra nome",primary_contact_name:"Nome contatto primario",email:"Email",website:"Sito web",name:"Nome",country:"Paese",state:"Stato",city:"Citt\xE0",company_name:"Nome Azienda",address_street_1:"Indirizzo 1",address_street_2:"Indirizzo 2",phone:"Telefono",zip_code:"CAP/ZIP Code",address_setting_updated:"Indirizzo aggiornato con Successo"},updated_message:"Info azienda aggiornate con successo",invoices:{title:"Fatture",notes:"Note",invoice_prefix:"Prefisso Fattura",default_invoice_email_body:"Default Invoice Email Body",invoice_settings:"Impostazioni fattura",autogenerate_invoice_number:"Auto genera numero di fattura",autogenerate_invoice_number_desc:"Disabilita, se non vuoi auto-generare i numeri delle fatture ogni volta che crei una nuova fattura.",enter_invoice_prefix:"Inserisci prefisso fattura",terms_and_conditions:"Termini e Condizioni",company_address_format:"Company Address Format",shipping_address_format:"Shipping Address Format",billing_address_format:"Billing Address Format",invoice_settings_updated:"Impostazioni fatture aggiornate con successo"},estimates:{title:"Preventivi",estimate_prefix:"Prefisso Preventivi",default_estimate_email_body:"Default Estimate Email Body",estimate_settings:"Impostazioni Preventivi",autogenerate_estimate_number:"Auto-genera Numero di preventivo",estimate_setting_description:"Disabilita, se non vuoi autogenerare il numero di preventivo ogni volta che ne viene creato uno nuovo.",enter_estimate_prefix:"Inserisci prefisso preventivo",estimate_setting_updated:"Impostazioni preventivi aggiornate con successo",company_address_format:"Company Address Format",billing_address_format:"Billing Address Format",shipping_address_format:"Shipping Address Format"},payments:{title:"Pagamenti",description:"Modes of transaction for payments",payment_prefix:"Prefisso Pagamento",default_payment_email_body:"Default Payment Email Body",payment_settings:"Impostazioni Pagamento",autogenerate_payment_number:"Auto genera il numero di Pagamento",payment_setting_description:"Disabilita, se non vuoi autogenerare il numero di pagamento ogni volta che ne viene creato uno nuovo.",enter_payment_prefix:"Inserisci prefisso di pagamento",payment_setting_updated:"Impostazioni di pagamento aggiornate con successo",payment_modes:"Payment Modes",add_payment_mode:"Aggiungi modalit\xE0 di pagamento",edit_payment_mode:"Modifica modalit\xE0 di pagamento",mode_name:"Nome modalit\xE0",payment_mode_added:"Modalit\xE0 di pagamento aggiunta",payment_mode_updated:"Modalit\xE0 di pagamento aggiornata",payment_mode_confirm_delete:"Non potrai ripristinare la modalit\xE0 di pagamento",already_in_use:"Modalit\xE0 di pagamento gi\xE0 in uso",deleted_message:"Payment Mode deleted successfully",company_address_format:"Company Address Format",from_customer_address_format:"From Customer Address Format"},items:{title:"Commesse",units:"unit\xE0",add_item_unit:"Aggiungi Unit\xE0 Item",edit_item_unit:"Modifica unit\xE0 articolo",unit_name:"Nome",item_unit_added:"Unit\xE0 aggiunta",item_unit_updated:"Unit\xE0 aggiornata",item_unit_confirm_delete:"Non potrai ripristinare questa unit\xE0 Item",already_in_use:"Unit\xE0 Item gi\xE0 in uso",deleted_message:"Unit\xE0 item eliminata con successo"},notes:{title:"Note",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"Note",type:"genere",add_note:"Add Note",add_new_note:"Add New Note",name:"Nome",edit_note:"Edit Note",note_added:"Note added successfully",note_updated:"Note Updated successfully",note_confirm_delete:"You will not be able to recover this Note",already_in_use:"Note is already in use",deleted_message:"Note deleted successfully"}},account_settings:{profile_picture:"Immagine profilo",name:"Nome",email:"Email",password:"Password",confirm_password:"Conferma Password",account_settings:"Impostazioni Account",save:"Salva",section_description:"Puoi aggiornare nome email e password utilizzando il form qui sotto.",updated_message:"Impostazioni account aggiornate con successo"},user_profile:{name:"Nome",email:"Email",password:"Password",confirm_password:"Conferma Password"},notification:{title:"Notifica",email:"Invia notifiche a",description:"Quali notifiche email vorresti ricevere quando qualcosa cambia?",invoice_viewed:"Fattura visualizzata",invoice_viewed_desc:"Quando il cliente visualizza la fattura inviata via dashboard applicazione.",estimate_viewed:"Preventivo visualizzato",estimate_viewed_desc:"Quando il cliente visualizza il preventivo inviato dall'applicazione.",save:"Salva",email_save_message:"Email salvata con successo",please_enter_email:"Inserisci Email"},tax_types:{title:"Tipi di Imposta",add_tax:"Aggiungi Imposta",edit_tax:"Modifica imposta",description:"Puoi aggiongere e rimuovere imposte a piacimento. Vengono supportate Tasse differenti per prodotti/servizi specifici esattamento come per le fatture.",add_new_tax:"Aggiungi nuova imposta",tax_settings:"Impostazioni Imposte",tax_per_item:"Tassa per prodotto/servizio",tax_name:"Nome imposta",compound_tax:"Imposta composta",percent:"Percento",action:"Azione",tax_setting_description:"Abilita se vuoi aggiungere imposte specifiche per prodotti o servizi. Di default le imposte sono aggiunte direttamente alla fattura.",created_message:"Tipo di imposta creato con successo",updated_message:"Tipo di imposta aggiornato con successo",deleted_message:"Tipo di imposta eliminato con successo",confirm_delete:"Non potrai ripristinare questo tipo di imposta",already_in_use:"Imposta gi\xE0 in uso"},expense_category:{title:"Categorie di spesa",action:"Azione",description:"Le categorie sono necessarie per aggiungere delle voci di spesa. Puoi aggiungere o eliminare queste categorie in base alle tue preferenze.",add_new_category:"Aggiungi nuova categoria",add_category:"Aggiungi categoria",edit_category:"Modifica categoria",category_name:"Nome Categoria",category_description:"Descrizione",created_message:"Categoria di spesa creata con successo",deleted_message:"Categoria di spesa eliminata con successo",updated_message:"Categoria di spesa aggiornata con successo",confirm_delete:"Non potrai ripristinare questa categoria di spesa",already_in_use:"Categoria gi\xE0 in uso"},preferences:{currency:"Val\xF9ta",default_language:"Default Language",time_zone:"Time Zone",fiscal_year:"Anno finanziario",date_format:"Formato Data",discount_setting:"Impostazione Sconto",discount_per_item:"Sconto Per Item ",discount_setting_description:"Abilita se vuoi aggiungere uno sconto ad uno specifica fattura. Di default, lo sconto \xE8 aggiunto direttamente in fattura.",save:"Salva",preference:"Preferenza | Preferenze",general_settings:"Impostazioni di default del sistema.",updated_message:"Preferenze aggiornate con successo",select_language:"seleziona lingua",select_time_zone:"Seleziona Time Zone",select_date_format:"Select Date Format",select_financial_year:"Seleziona anno finanziario"},update_app:{title:"Aggiorna App",description:"Puoi facilmente aggiornare l'app. Aggiorna cliccando sul bottone qui sotto",check_update:"Controllo aggiornamenti",avail_update:"Aggiornamento disponibile",next_version:"Versione successiva",requirements:"Requirements",update:"Aggiorna ora",update_progress:"Aggiornamento in corso...",progress_text:"Sar\xE0 necessario qualche minuto. Per favore non aggiornare la pagina e non chiudere la finestra prima che l'aggiornamento sia completato",update_success:"L'App \xE8 aggiornata! Attendi che la pagina venga ricaricata automaticamente.",latest_message:"Nessun aggiornamneto disponibile! Sei gi\xE0 alla versione pi\xF9 recente.",current_version:"Versione corrente",download_zip_file:"Scarica il file ZIP",unzipping_package:"Pacchetto di decompressione",copying_files:"Copia dei file",running_migrations:"Esecuzione delle migrazioni",finishing_update:"Aggiornamento di finitura",update_failed:"Aggiornamento non riuscito",update_failed_text:"Scusate! L'aggiornamento non \xE8 riuscito il: passaggio {step}"},backup:{title:"Backup | Backups",description:"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database",new_backup:"Add New Backup",create_backup:"Create Backup",select_backup_type:"Select Backup Type",backup_confirm_delete:"You will not be able to recover this Backup",path:"path",new_disk:"New Disk",created_at:"created at",size:"size",dropbox:"dropbox",local:"local",healthy:"healthy",amount_of_backups:"amount of backups",newest_backups:"newest backups",used_storage:"used storage",select_disk:"Select Disk",action:"Azione",deleted_message:"Backup deleted successfully",created_message:"Backup created successfully",invalid_disk_credentials:"Invalid credential of selected disk"},disk:{title:"File Disk | File Disks",description:"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.",created_at:"created at",dropbox:"dropbox",name:"Nome",driver:"Driver",disk_type:"genere",disk_name:"Disk Name",new_disk:"Add New Disk",filesystem_driver:"Filesystem Driver",local_driver:"local Driver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Default Driver",is_default:"IS DEFAULT",set_default_disk:"Set Default Disk",success_set_default_disk:"Disk set as default successfully",save_pdf_to_disk:"Save PDFs to Disk",disk_setting_description:" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.",select_disk:"Select Disk",disk_settings:"Disk Settings",confirm_delete:"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater",action:"Azione",edit_file_disk:"Edit File Disk",success_create:"Disk added successfully",success_update:"Disk updated successfully",error:"Disk addition failed",deleted_message:"File Disk deleted successfully",disk_variables_save_successfully:"Disk Configured Successfully",disk_variables_save_error:"Disk configuration failed.",invalid_disk_credentials:"Invalid credential of selected disk"}},lu={account_info:"Informazioni Account",account_info_desc:"I dettagli qui sotto verranno usati per creare l'account principale dell'Amministratore. Puoi modificarli in qualsiasi momento dopo esserti loggato come Amministratore.",name:"Nome",email:"Email",password:"Password",confirm_password:"Conferma Password",save_cont:"Salva & Continua",company_info:"Informazioni Azienda",company_info_desc:"Questa informazione verr\xE0 mostrata nelle fatture. Puoi modificare queste informazione in un momento successivo dalla pagina delle impostazioni.",company_name:"Nome Azienda",company_logo:"Logo Azienda",logo_preview:"Anteprima Logo",preferences:"Impostazioni",preferences_desc:"Impostazioni di default del sistema.",country:"Paese",state:"Stato",city:"Citt\xE0",address:"Indirizzo",street:"Indirizzo1 | Indirizzo2",phone:"Telefono",zip_code:"CAP/Zip Code",go_back:"Torna indietro",currency:"Val\xF9ta",language:"Lingua",time_zone:"Time Zone",fiscal_year:"Anno Finanziario",date_format:"Formato Date",from_address:"Indirizzo - Da",username:"Username",next:"Successivo",continue:"Continua",skip:"Salta",database:{database:"URL del sito & database",connection:"Connessione Database",host:"Database Host",port:"Database - Porta",password:"Database Password",app_url:"App URL",app_domain:"App Domain",username:"Database Username",db_name:"Database Nome",db_path:"Database Path",desc:"Crea un database sul tuo server e setta le credenziali usando il form qui sotto."},permissions:{permissions:"Permessi",permission_confirm_title:"Sei sicuro di voler continuare?",permission_confirm_desc:"Controllo sui permessi Cartelle, fallito",permission_desc:"Qui sotto la lista dei permessi richiesti per far funzionare correttamente l'App. Se il controllo dei permessi fallisce, assicurati di aggiornare/modificare i permessi sulle cartelle."},mail:{host:"Mail Host",port:"Mail - Porta",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Configurazione Mail",from_name:"Nome mittente mail",from_mail:"Indirizzo mittente mail",encryption:"Tipo di cifratura Mail",mail_config_desc:"Form per configurazione del 'driver mail' per inviare emails dall'App. Puoi anche configurare servizi di terze parti come Sendgrid, SES, ecc.."},req:{system_req:"Requisiti di Sistema",php_req_version:"Php (versione {version} richiesta)",check_req:"Controllo Requisiti",system_req_desc:"Crater ha alcuni requisiti di sistema. Assicurati che il server ha la versione di php richiesta e tutte le estensioni necessarie."},errors:{migrate_failed:"Migrate Failed",database_variables_save_error:"Cannot write configuration to .env file. Please check its file permissions",mail_variables_save_error:"Email configuration failed.",connection_failed:"Database connection failed",database_should_be_empty:"Database should be empty"},success:{mail_variables_save_successfully:"Email configurata con successo",database_variables_save_successfully:"Database configurato con successo."}},cu={invalid_phone:"Numero di telefono invalido",invalid_url:"URL non valido (es: http://www.craterapp.com)",invalid_domain_url:"URL non valido (es: craterapp.com)",required:"Campo obbligatorio",email_incorrect:"Email non corretta.",email_already_taken:"Email gi\xE0 in uso.",email_does_not_exist:"L'utente con questa email non esiste",item_unit_already_taken:"Questo nome item \xE8 gi\xE0 utilizzato",payment_mode_already_taken:"Questa modalit\xE0 di pagamento \xE8 gi\xE0 stata inserita.",send_reset_link:"Invia Link di Reset",not_yet:"Non ancora? Invia di nuovo",password_min_length:"La password deve contenere {count} caratteri",name_min_length:"Il nome deve avere almeno {count} lettere.",enter_valid_tax_rate:"Inserisci un tasso di imposta valido",numbers_only:"Solo numeri.",characters_only:"Solo caratteri.",password_incorrect:"La Password deve essere identica",password_length:"La password deve essere lunga {count} caratteri.",qty_must_greater_than_zero:"La quantit\xE0 deve essere maggiore di zero.",price_greater_than_zero:"Il prezzo deve essere maggiore di zero.",payment_greater_than_zero:"Il pagamento deve essere maggiore di zero.",payment_greater_than_due_amount:"Il pagamento inserito \xE8 maggiore di quello indicato in fattura.",quantity_maxlength:"La Quantit\xE0 non pu\xF2 essere maggiore di 20 cifre.",price_maxlength:"Il prezzo non pu\xF2 contenere pi\xF9 di 20 cifre.",price_minvalue:"Il prezzo deve essere maggiore di 0.",amount_maxlength:"La somma non deve contenere pi\xF9 di 20 cifre.",amount_minvalue:"La somma deve essere maggiore di 0.",description_maxlength:"La Descrizione non deve superare i 255 caratteri.",subject_maxlength:"L'Oggetto non deve superare i 100 caratter.",message_maxlength:"Il messaggio non pu\xF2 superare i 255 caratteri.",maximum_options_error:"Massimo di {max} opzioni selezionate. Per selezionare un'altra opzione deseleziona prima una opzione.",notes_maxlength:"Le note non possono superare i 255 caratteri.",address_maxlength:"L'Indirizzo non pu\xF2 eccedere i 255 caratteri.",ref_number_maxlength:"Il Numero di Riferimento non pu\xF2 superare i 255 caratteri.",prefix_maxlength:"Il Prefisso non pu\xF2 superare i 5 caratteri.",something_went_wrong:"Si \xE8 verificato un errore"},_u="Preventivo",uu="Preventivo Numero",mu="Data preventivo",pu="Expiry date",gu="Fattura",fu="Numero Fattura",hu="Data fattura",vu="Due date",yu="Note",bu="Commesse",ku="Quantit\xE0",wu="Prezzo",xu="Sconto",zu="Ammontare",Su="Subtotal",ju="Totale",Pu="Payment",Du="PAYMENT RECEIPT",Cu="Payment Date",Au="Numero di pagamento",Eu="Modalit\xE0 di Pagamento",Nu="Amount Received",Tu="EXPENSES REPORT",Iu="TOTAL EXPENSE",$u="PROFIT & LOSS REPORT",Ru="Sales Customer Report",Fu="Sales Item Report",Mu="Tax Summary Report",Vu="INCOME",Bu="NET PROFIT",Ou="Sales Report: By Customer",Lu="TOTAL SALES",Uu="Sales Report: By Item",Ku="TAX REPORT",qu="TOTAL TAX",Zu="Tipi di Imposta",Wu="Uscite",Hu="Fattura a,",Gu="Invia a,",Yu="Received from:",Ju="imposta";var Xu={navigation:H_,general:G_,dashboard:Y_,tax_types:J_,global_search:X_,customers:Q_,items:eu,estimates:tu,invoices:au,payments:su,expenses:nu,login:iu,users:ou,reports:ru,settings:du,wizard:lu,validation:cu,pdf_estimate_label:_u,pdf_estimate_number:uu,pdf_estimate_date:mu,pdf_estimate_expire_date:pu,pdf_invoice_label:gu,pdf_invoice_number:fu,pdf_invoice_date:hu,pdf_invoice_due_date:vu,pdf_notes:yu,pdf_items_label:bu,pdf_quantity_label:ku,pdf_price_label:wu,pdf_discount_label:xu,pdf_amount_label:zu,pdf_subtotal:Su,pdf_total:ju,pdf_payment_label:Pu,pdf_payment_receipt_label:Du,pdf_payment_date:Cu,pdf_payment_number:Au,pdf_payment_mode:Eu,pdf_payment_amount_received_label:Nu,pdf_expense_report_label:Tu,pdf_total_expenses_label:Iu,pdf_profit_loss_label:$u,pdf_sales_customers_label:Ru,pdf_sales_items_label:Fu,pdf_tax_summery_label:Mu,pdf_income_label:Vu,pdf_net_profit_label:Bu,pdf_customer_sales_report:Ou,pdf_total_sales_label:Lu,pdf_item_sales_label:Uu,pdf_tax_report_label:Ku,pdf_total_tax_label:qu,pdf_tax_types_label:Zu,pdf_expenses_label:Wu,pdf_bill_to:Hu,pdf_ship_to:Gu,pdf_received_from:Yu,pdf_tax_label:Ju};const Qu={dashboard:"Komandna tabla",customers:"Klijenti",items:"Stavke",invoices:"Fakture",expenses:"Rashodi",estimates:"Profakture",payments:"Uplate",reports:"Izve\u0161taji",settings:"Pode\u0161avanja",logout:"Odjavi se",users:"Korisnici"},em={add_company:"Dodaj kompaniju",view_pdf:"Pogledaj PDF",copy_pdf_url:"Kopiraj PDF link",download_pdf:"Preuzmi PDF",save:"Sa\u010Duvaj",create:"Napravi",cancel:"Otka\u017Ei",update:"A\u017Euriraj",deselect:"Poni\u0161ti izbor",download:"Preuzmi",from_date:"Od Datuma",to_date:"Do Datuma",from:"Po\u0161iljalac",to:"Primalac",sort_by:"Rasporedi Po",ascending:"Rastu\u0107e",descending:"Opadaju\u0107e",subject:"Predmet",body:"Telo",message:"Poruka",send:"Po\u0161alji",go_back:"Idi nazad",back_to_login:"Nazad na prijavu?",home:"Po\u010Detna",filter:"Filter",delete:"Obri\u0161i",edit:"Izmeni",view:"Pogledaj",add_new_item:"Dodaj novu stavku",clear_all:"Izbri\u0161i sve",showing:"Prikazivanje",of:"od",actions:"Akcije",subtotal:"UKUPNO",discount:"POPUST",fixed:"Fiksno",percentage:"Procenat",tax:"POREZ",total_amount:"UKUPAN IZNOS",bill_to:"Ra\u010Dun za",ship_to:"Isporu\u010Diti za",due:"Du\u017Ean",draft:"U izradi",sent:"Poslato",all:"Sve",select_all:"Izaberi sve",choose_file:"Klikni ovde da izabere\u0161 fajl",choose_template:"Izaberi \u0161ablon",choose:"Izaberi",remove:"Ukloni",powered_by:"Pokre\u0107e",bytefury:"Bytefury",select_a_status:"Izaberi status",select_a_tax:"Izaberi porez",search:"Pretraga",are_you_sure:"Da li ste sigurni?",list_is_empty:"Lista je prazna.",no_tax_found:"Porez nije prona\u0111en!",four_zero_four:"404",you_got_lost:"Ups! Izgubio si se!",go_home:"Idi na po\u010Detnu stranicu",test_mail_conf:"Testiraj pode\u0161avanje Po\u0161te",send_mail_successfully:"Po\u0161ta uspe\u0161no poslata",setting_updated:"Pode\u0161avanje uspe\u0161no a\u017Eurirano",select_state:"Odaberi saveznu dr\u017Eavu",select_country:"Odaberi dr\u017Eavu",select_city:"Odaberi grad",street_1:"Adresa 1",street_2:"Adresa 2",action_failed:"Akcija nije uspela",retry:"Poku\u0161aj ponovo",choose_note:"Odaberi napomenu",no_note_found:"Ne postoje sa\u010Duvane napomene",insert_note:"Unesi bele\u0161ku",copied_pdf_url_clipboard:"Link do PDF fajla kopiran!"},tm={select_year:"Odaberi godinu",cards:{due_amount:"Du\u017Ean iznos",customers:"Klijenti",invoices:"Fakture",estimates:"Profakture"},chart_info:{total_sales:"Prodaja",total_receipts:"Ra\u010Duni",total_expense:"Rashodi",net_income:"Prihod NETO",year:"Odaberi godinu"},monthly_chart:{title:"Prodaja & Rashodi"},recent_invoices_card:{title:"Dospele fakture",due_on:"Datum dospevanja",customer:"Klijent",amount_due:"Iznos dospe\u0107a",actions:"Akcije",view_all:"Pogledaj sve"},recent_estimate_card:{title:"Nedavne profakture",date:"Datum",customer:"Klijent",amount_due:"Iznos dospe\u0107a",actions:"Akcije",view_all:"Pogledaj sve"}},am={name:"Naziv",description:"Opis",percent:"Procenat",compound_tax:"Slo\u017Eeni porez"},sm={search:"Pretraga...",customers:"Klijenti",users:"Korisnici",no_results_found:"Nema rezultata"},nm={title:"Klijenti",add_customer:"Dodaj Klijenta",contacts_list:"Lista klijenata",name:"Naziv",mail:"Mail | Mail-ovi",statement:"Izjava",display_name:"Naziv koji se prikazuje",primary_contact_name:"Primarna kontakt osoba",contact_name:"Naziv kontakt osobe",amount_due:"Iznos dospe\u0107a",email:"Email",address:"Adresa",phone:"Telefon",website:"Veb stranica",overview:"Pregled",enable_portal:"Uklju\u010Di portal",country:"Dr\u017Eava",state:"Savezna dr\u017Eava",city:"Grad",zip_code:"Po\u0161tanski broj",added_on:"Datum dodavanja",action:"Akcija",password:"\u0160ifra",street_number:"Broj ulice",primary_currency:"Primarna valuta",description:"Opis",add_new_customer:"Dodaj novog klijenta",save_customer:"Sa\u010Duvaj klijenta",update_customer:"A\u017Euriraj klijenta",customer:"Klijent | Klijenti",new_customer:"Nov klijent",edit_customer:"Izmeni klijenta",basic_info:"Osnovne informacije",billing_address:"Adresa za naplatu",shipping_address:"Adresa za dostavu",copy_billing_address:"Kopiraj iz adrese za naplatu",no_customers:"Jo\u0161 uvek nema klijenata!",no_customers_found:"Klijenti nisu prona\u0111eni!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Ova sekcija \u0107e da sadr\u017Ei spisak klijenata.",primary_display_name:"Primarni naziv koji se prikazuje",select_currency:"Odaberi valutu",select_a_customer:"Odaberi klijenta",type_or_click:"Unesi tekst ili klikni da izabere\u0161",new_transaction:"Nova transakcija",no_matching_customers:"Ne postoje klijenti koji odgovaraju pretrazi!",phone_number:"Broj telefona",create_date:"Datum kreiranja",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovog klijenta i sve njegove Fakture, Profakture i Uplate. | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove klijente i njihove Fakture, Profakture i Uplate.",created_message:"Klijent uspe\u0161no kreiran",updated_message:"Klijent uspe\u0161no a\u017Euriran",deleted_message:"Klijent uspe\u0161no obrisan | Klijenti uspe\u0161no obrisani"},im={title:"Stavke",items_list:"Lista stavki",name:"Naziv",unit:"Jedinica",description:"Opis",added_on:"Datum dodavanja",price:"Cena",date_of_creation:"Datum kreiranja",not_selected:"No item selected",action:"Akcije",add_item:"Dodaj Stavku",save_item:"Sa\u010Duvaj Stavku",update_item:"A\u017Euriraj Stavku",item:"Stavka | Stavke",add_new_item:"Dodaj novu stavku",new_item:"Nova stavka",edit_item:"Izmeni stavku",no_items:"Jo\u0161 uvek nema stavki!",list_of_items:"Ova sekcija \u0107e da sadr\u017Ei spisak stavki.",select_a_unit:"odaberi jedinicu",taxes:"Porezi",item_attached_message:"Nije dozvoljeno brisanje stavke koje se koristi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Stavku | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Stavke",created_message:"Stavka uspe\u0161no kreirana",updated_message:"Stavka uspe\u0161no a\u017Eurirana",deleted_message:"Stavka uspe\u0161no obrisana | Stavke uspe\u0161no obrisane"},om={title:"Profakture",estimate:"Profaktura | Profakture",estimates_list:"Lista profaktura",days:"{days} Dan",months:"{months} Mesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",customer:"KLIJENT",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPE\u0106A",partially_paid:"Delimi\u010Dno Pla\u0107eno",total:"Ukupno za pla\u0107anje",discount:"Popust",sub_total:"Osnovica za obra\u010Dun PDV-a",estimate_number:"Broj profakture",ref_number:"Poziv na broj",contact:"Kontakt",add_item:"Dodaj stavku",date:"Datum",due_date:"Datum Dospe\u0107a",expiry_date:"Datum Isteka",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Akcija",notes:"Napomena",tax:"Porez",estimate_template:"\u0160ablon",convert_to_invoice:"Pretvori u Fakturu",mark_as_sent:"Ozna\u010Di kao Poslato",send_estimate:"Po\u0161alji Profakturu",resend_estimate:"Ponovo po\u0161alji Profakturu",record_payment:"Unesi uplatu",add_estimate:"Dodaj Profakturu",save_estimate:"Sa\u010Duvaj Profakturu",confirm_conversion:"Detalji ove Profakture \u0107e biti iskori\u0161\u0107eni za pravljenje Fakture.",conversion_message:"Faktura uspe\u0161no kreirana",confirm_send_estimate:"Ova Profaktura \u0107e biti poslata putem Email-a klijentu",confirm_mark_as_sent:"Ova Profaktura \u0107e biti ozna\u010Dena kao Poslata",confirm_mark_as_accepted:"Ova Profaktura \u0107e biti ozna\u010Dena kao Prihva\u0107ena",confirm_mark_as_rejected:"Ova Profaktura \u0107e biti ozna\u010Dena kao Odbijena",no_matching_estimates:"Ne postoji odgovaraju\u0107a profaktura!",mark_as_sent_successfully:"Profaktura uspe\u0161no ozna\u010Dena kao Poslata",send_estimate_successfully:"Profaktura uspe\u0161no poslata",errors:{required:"Polje je obavezno"},accepted:"Prihva\u0107eno",rejected:"Rejected",sent:"Poslato",draft:"U izradi",declined:"Odbijeno",new_estimate:"Nova Profaktura",add_new_estimate:"Dodaj novu Profakturu",update_Estimate:"A\u017Euriraj Profakturu",edit_estimate:"Izmeni Profakturu",items:"stavke",Estimate:"Profaktura | Profakture",add_new_tax:"Dodaj nov Porez",no_estimates:"Jo\u0161 uvek nema Profaktura!",list_of_estimates:"Ova sekcija \u0107e da sadr\u017Ei spisak Profaktura.",mark_as_rejected:"Ozna\u010Di kao odbijeno",mark_as_accepted:"Ozna\u010Di kao prihva\u0107eno",marked_as_accepted_message:"Profaktura ozna\u010Dena kao prihva\u0107ena",marked_as_rejected_message:"Profaktura ozna\u010Dena kao odbijena",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Profakturu | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Profakture",created_message:"Profaktura uspe\u0161no kreirana",updated_message:"Profaktura uspe\u0161no a\u017Eurirana",deleted_message:"Profaktura uspe\u0161no obrisana | Profakture uspe\u0161no obrisane",something_went_wrong:"ne\u0161to je krenulo naopako",item:{title:"Naziv stavke",description:"Opis",quantity:"Koli\u010Dina",price:"Cena",discount:"Popust",total:"Ukupno za pla\u0107anje",total_discount:"Ukupan popust",sub_total:"Ukupno",tax:"Porez",amount:"Iznos",select_an_item:"Unesi tekst ili klikni da izabere\u0161",type_item_description:"Unesi opis Stavke (nije obavezno)"}},rm={title:"Fakture",invoices_list:"List Faktura",days:"{days} dan",months:"{months} Mesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"KLIJENT",paid_status:"STATUS UPLATE",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPE\u0106A",partially_paid:"Delimi\u010Dno pla\u0107eno",total:"Ukupno za pla\u0107anje",discount:"Popust",sub_total:"Osnovica za obra\u010Dun PDV-a",invoice:"Faktura | Fakture",invoice_number:"Broj Fakture",ref_number:"Poziv na broj",contact:"Kontakt",add_item:"Dodaj Stavku",date:"Datum",due_date:"Datum Dospe\u0107a",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Akcija",notes:"Napomena",view:"Pogledaj",send_invoice:"Po\u0161alji Fakturu",resend_invoice:"Ponovo po\u0161alji Fakturu",invoice_template:"\u0160ablon Fakture",template:"\u0160ablon",mark_as_sent:"Ozna\u010Di kao Poslato",confirm_send_invoice:"Ova Faktura \u0107e biti poslata putem Email-a klijentu",invoice_mark_as_sent:"Ova Faktura \u0107e biti ozna\u010Dena kao poslata",confirm_send:"Ova Faktura \u0107e biti poslata putem Email-a klijentu",invoice_date:"Datum Fakture",record_payment:"Unesi Uplatu",add_new_invoice:"Dodaj novu Fakturu",update_expense:"A\u017Euriraj Rashod",edit_invoice:"Izmeni Fakturu",new_invoice:"Nova Faktura",save_invoice:"Sa\u010Duvaj Fakturu",update_invoice:"A\u017Euriraj Fakturu",add_new_tax:"Dodaj nov Porez",no_invoices:"Jo\u0161 uvek nema Faktura!",list_of_invoices:"Ova sekcija \u0107e da sadr\u017Ei spisak Faktura.",select_invoice:"Odaberi Fakturu",no_matching_invoices:"Ne postoje Fakture koje odgovaraju pretrazi!",mark_as_sent_successfully:"Faktura uspe\u0161no ozna\u010Dena kao Poslata",invoice_sent_successfully:"Faktura uspe\u0161no poslata",cloned_successfully:"Uspe\u0161no napravljen duplikat Fakture",clone_invoice:"Napravi duplikat",confirm_clone:"Ova Faktura \u0107e biti duplikat nove Fakture",item:{title:"Naziv Stavke",description:"Opis",quantity:"Koli\u010Dina",price:"Cena",discount:"Popust",total:"Ukupno za pla\u0107anje",total_discount:"Ukupan popust",sub_total:"Ukupno",tax:"Porez",amount:"Iznos",select_an_item:"Unesi tekst ili klikni da izabere\u0161",type_item_description:"Unesi opis Stavke (nije obavezno)"},confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Fakturu | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Fakture",created_message:"Faktura uspe\u0161no kreirana",updated_message:"Faktura uspe\u0161no a\u017Eurirana",deleted_message:"Faktura uspe\u0161no obrisana | Fakture uspe\u0161no obrisane",marked_as_sent_message:"Faktura ozna\u010Dena kao uspe\u0161no poslata",something_went_wrong:"ne\u0161to je krenulo naopako",invalid_due_amount_message:"Ukupan iznos za pla\u0107anje u fakturi ne mo\u017Ee biti manji od iznosa uplate za ovu fakturu. Molim Vas a\u017Eurirajte fakturu ili obri\u0161ite uplate koje su povezane sa ovom fakturom da bi nastavili."},dm={title:"Uplate",payments_list:"Lista uplata",record_payment:"Unesi Uplatu",customer:"Klijent",date:"Datum",amount:"Iznos",action:"Akcija",payment_number:"Broj uplate",payment_mode:"Na\u010Din pla\u0107anja",invoice:"Faktura",note:"Napomena",add_payment:"Dodaj Uplatu",new_payment:"Nova Uplata",edit_payment:"Izmeni Uplatu",view_payment:"Vidi Uplatu",add_new_payment:"Dodaj Novu Uplatu",send_payment_receipt:"Po\u0161alji potvrdu o uplati",send_payment:"Po\u0161alji Uplatu",save_payment:"Sa\u010Duvaj Uplatu",update_payment:"A\u017Euriraj Uplatu",payment:"Uplata | Uplate",no_payments:"Jo\u0161 uvek nema uplata!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Ne postoje uplate koje odgovaraju pretrazi!",list_of_payments:"Ova sekcija \u0107e da sadr\u017Ei listu uplata.",select_payment_mode:"Odaberi na\u010Din pla\u0107anja",confirm_mark_as_sent:"Ovo pla\u0107anje \u0107e biti ozna\u010Dena kao Poslata",confirm_send_payment:"Ovo pla\u0107anje \u0107e biti poslato putem Email-a klijentu",send_payment_successfully:"Pla\u0107anje uspe\u0161no poslato",something_went_wrong:"ne\u0161to je krenulo naopako",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Uplatu | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Uplate",created_message:"Uplata uspe\u0161no kreirana",updated_message:"Uplata uspe\u0161no a\u017Eurirana",deleted_message:"Uplata uspe\u0161no obrisana | Uplate uspe\u0161no obrisane",invalid_amount_message:"Iznos Uplate je pogre\u0161an"},lm={title:"Rashodi",expenses_list:"Lista Rashoda",select_a_customer:"Odaberi klijenta",expense_title:"Naslov",customer:"Klijent",contact:"Kontakt",category:"Kategorija",from_date:"Datum od",to_date:"Datum do",expense_date:"Datum",description:"Opis",receipt:"Ra\u010Dun",amount:"Iznos",action:"Akcija",not_selected:"Not selected",note:"Napomena",category_id:"ID kategorije",date:"Datum",add_expense:"Dodaj Rashod",add_new_expense:"Dodaj Novi Rashod",save_expense:"Sa\u010Duvaj Rashod",update_expense:"A\u017Euriraj Rashod",download_receipt:"Preuzmi Ra\u010Dun",edit_expense:"Izmeni Rashod",new_expense:"Novi Rashod",expense:"Rashod | Rashodi",no_expenses:"Jo\u0161 uvek nema rashoda!",list_of_expenses:"Ova sekcija \u0107e da sadr\u017Ei listu rashoda.",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovaj Rashod | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Rashode",created_message:"Rashod uspe\u0161no kreiran",updated_message:"Rashod uspe\u0161no a\u017Euriran",deleted_message:"Rashod uspe\u0161no obrisan | Rashodi uspe\u0161no obrisani",categories:{categories_list:"Lista Kategorija",title:"Naslov",name:"Naziv",description:"Opis",amount:"Iznos",actions:"Akcije",add_category:"Dodaj Kategoriju",new_category:"Nova Kategorija",category:"Kategorija | Kategorije",select_a_category:"Izaberi kategoriju"}},cm={email:"Email",password:"\u0160ifra",forgot_password:"Zaboravili ste \u0161ifru?",or_signIn_with:"ili se prijavite sa",login:"Prijava",register:"Registracija",reset_password:"Restujte \u0161ifru",password_reset_successfully:"\u0160ifra Uspe\u0161no Resetovana",enter_email:"Unesi email",enter_password:"Unesi \u0161ifru",retype_password:"Ponovo unesi \u0161ifru"},_m={title:"Korisnici",users_list:"Lista korisnika",name:"Ime i prezime",description:"Opis",added_on:"Datum dodavanja",date_of_creation:"Datum kreiranja",action:"Akcija",add_user:"Dodaj Korisnika",save_user:"Sa\u010Duvaj Korisnika",update_user:"A\u017Euriraj Korisnika",user:"Korisnik | Korisnici",add_new_user:"Dodaj novog korisnika",new_user:"Nov Korisnik",edit_user:"Izmeni Korisnika",no_users:"Jo\u0161 uvek nema korisnika!",list_of_users:"Ova sekcija \u0107e da sadr\u017Ei listu korisnika.",email:"Email",phone:"Broj telefona",password:"\u0160ifra",user_attached_message:"Ne mo\u017Eete obrisati stavku koja je ve\u0107 u upotrebi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovog Korisnika | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Korisnike",created_message:"Korisnik uspe\u0161no napravljen",updated_message:"Korisnik uspe\u0161no a\u017Euriran",deleted_message:"Korisnik uspe\u0161no obrisan | Korisnici uspe\u0161no obrisani"},um={title:"Izve\u0161taj",from_date:"Datum od",to_date:"Datum do",status:"Status",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",download_pdf:"Preuzmi PDF",view_pdf:"Pogledaj PDF",update_report:"A\u017Euriraj Izve\u0161taj",report:"Izve\u0161taj | Izve\u0161taji",profit_loss:{profit_loss:"Prihod & Rashod",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi opseg datuma"},sales:{sales:"Prodaja",date_range:"Izaberi opseg datuma",to_date:"Datum do",from_date:"Datum od",report_type:"Tip Izve\u0161taja"},taxes:{taxes:"Porezi",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi opseg datuma"},errors:{required:"Polje je obavezno"},invoices:{invoice:"Faktura",invoice_date:"Datum Fakture",due_date:"Datum Dospe\u0107a",amount:"Iznos",contact_name:"Ime Kontakta",status:"Status"},estimates:{estimate:"Profaktura",estimate_date:"Datum Profakture",due_date:"Datum Dospe\u0107a",estimate_number:"Broj Profakture",ref_number:"Poziv na broj",amount:"Iznos",contact_name:"Ime Kontakta",status:"Status"},expenses:{expenses:"Rashodi",category:"Kategorija",date:"Datum",amount:"Iznos",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi opseg datuma"}},mm={menu_title:{account_settings:"Pode\u0161avanje Naloga",company_information:"Podaci o firmi",customization:"Prilago\u0111avanje",preferences:"Preferencija",notifications:"Obave\u0161tenja",tax_types:"Tipovi Poreza",expense_category:"Kategorije Rashoda",update_app:"A\u017Euriraj Aplikaciju",backup:"Bekap",file_disk:"File Disk",custom_fields:"Prilago\u0111ena polja",payment_modes:"Na\u010Din pla\u0107anja",notes:"Napomene"},title:"Pode\u0161avanja",setting:"Pode\u0161avanje | Pode\u0161avanja",general:"Op\u0161te",language:"Jezik",primary_currency:"Primarna Valuta",timezone:"Vremenska Zona",date_format:"Format Datuma",currencies:{title:"Valute",currency:"Valuta | Valute",currencies_list:"Lista Valuta",select_currency:"Odaberi Valutu",name:"Naziv",code:"Kod",symbol:"Simbol",precision:"Preciznost",thousand_separator:"Separator za hiljade",decimal_separator:"Separator za decimale",position:"Pozicija",position_of_symbol:"Pozicija simbola",right:"Desno",left:"Levo",action:"Akcija",add_currency:"Dodaj Valutu"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"\u0160ifra",mailgun_secret:"Mailgun \u0160ifra",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES \u0160ifra",ses_key:"SES Klju\u010D",password:"Mail \u0160ifra",username:"Mail Korisni\u010Dko Ime",mail_config:"Mail Pode\u0161avanje",from_name:"Naziv po\u0161iljaoca",from_mail:"E-mail adresa po\u0161iljaoca",encryption:"E-mail enkripcija",mail_config_desc:"Ispod se nalazi forma za pode\u0161avanje E-mail drajvera za slanje po\u0161te iz aplikacije. Tako\u0111e mo\u017Eete podesiti provajdere tre\u0107e strane kao Sendgrid, SES itd."},pdf:{title:"PDF Pode\u0161avanje",footer_text:"Tekstualno zaglavlje na dnu strane",pdf_layout:"PDF Raspored"},company_info:{company_info:"Podaci o firmi",company_name:"Naziv firme",company_logo:"Logo firme",section_description:"Informacije o Va\u0161oj firmi \u0107e biti prikazane na fakturama, profakturama i drugim dokumentima koji se prave u ovoj aplikaciji.",phone:"Telefon",country:"Dr\u017Eava",state:"Savezna Dr\u017Eava",city:"Grad",address:"Adresa",zip:"Po\u0161tanski broj",save:"Sa\u010Duvaj",updated_message:"Podaci o firmi uspe\u0161no sa\u010Duvani"},custom_fields:{title:"Prilago\u0111ena polja",section_description:"Prilagodite va\u0161e Fakture, Profakture i Uplate (priznanice) sa svojim poljima. Postarajte se da koristite polja navedena ispod na formatu adrese na stranici Pode\u0161avanja/Prilago\u0111avanje.",add_custom_field:"Dodaj prilago\u0111eno polje",edit_custom_field:"Izmeni prilago\u0111eno polje",field_name:"Naziv polja",label:"Oznaka",type:"Tip",name:"Naziv",required:"Obavezno",placeholder:"Opis polja (Placeholder)",help_text:"Pomo\u0107ni tekst",default_value:"Podrazumevana vrednost",prefix:"Prefiks",starting_number:"Po\u010Detni broj",model:"Model",help_text_description:"Unesite opis koji \u0107e pomo\u0107i korisnicima da razumeju svrhu ovog prilago\u0111enog polja.",suffix:"Sufiks",yes:"Da",no:"Ne",order:"Redosled",custom_field_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovo prilago\u0111eno polje",already_in_use:"Prilago\u0111eno polje je ve\u0107 u upotrebi",deleted_message:"Prilago\u0111eno polje je uspe\u0161no obrisano",options:"opcije",add_option:"Dodaj opcije",add_another_option:"Dodaj jo\u0161 jednu opciju",sort_in_alphabetical_order:"Pore\u0111aj po Abecedi",add_options_in_bulk:"Grupno dodavanje opcija",use_predefined_options:"Koristi predefinisane opcije",select_custom_date:"Odaberi datum",select_relative_date:"Odaberi relativan datum",ticked_by_default:"Podrazumevano odabrano",updated_message:"Prilago\u0111eno polje uspe\u0161no a\u017Eurirano",added_message:"Prilago\u0111eno polje uspe\u0161no dodato"},customization:{customization:"prilago\u0111avanje",save:"Sa\u010Duvaj",addresses:{title:"Adrese",section_description:"Mo\u017Eete podesiti format adrese klijenta za naplatu i adrese klijenta za dostavu (Prikazano samo u PDF-u)",customer_billing_address:"Adresa za naplatu klijentu",customer_shipping_address:"Adresa za dostavu klijentu",company_address:"Adresa Firme",insert_fields:"Dodaj Polja",contact:"Kontakt",address:"Adresa",display_name:"Naziv koji se prikazuje",primary_contact_name:"Primarna kontakt osoba",email:"Email",website:"Veb stranica",name:"Naziv",country:"Dr\u017Eava",state:"Savezna Dr\u017Eava",city:"Grad",company_name:"Naziv Firme",address_street_1:"Adresa 1",address_street_2:"Adresa 2",phone:"Telefon",zip_code:"Po\u0161tanski broj",address_setting_updated:"Pode\u0161avanje adrese uspe\u0161no a\u017Eurirano"},updated_message:"Podaci o firmi su uspe\u0161no a\u017Eurirani",invoices:{title:"Fakture",notes:"Napomene",invoice_prefix:"Prefiks faktura",default_invoice_email_body:"Podrazumevan sadr\u017Eaj email-a za Fakture",invoice_settings:"Pode\u0161avanje za fakture",autogenerate_invoice_number:"Automatski-generi\u0161i broj fakture",autogenerate_invoice_number_desc:"Onemogu\u0107i ovo, Ako Vi ne \u017Eelite da automatski-generi\u0161ete broj fakture kada pravite novu fakturu.",enter_invoice_prefix:"Unesite prefiks fakture",terms_and_conditions:"Uslovi Kori\u0161\u0107enja",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",invoice_settings_updated:"Pode\u0161avanje za fakture je uspe\u0161no sa\u010Duvano"},estimates:{title:"Profakture",estimate_prefix:"Prefiks profaktura",default_estimate_email_body:"Podrazumevan sadr\u017Eaj email-a za Profakture",estimate_settings:"Pode\u0161avanje za profakture",autogenerate_estimate_number:"Automatski-generi\u0161i broj profakture",estimate_setting_description:"Onemogu\u0107i ovo, Ako Vi ne \u017Eelite da automatski-generi\u0161ete broj profakture kada pravite novu profakturu.",enter_estimate_prefix:"Unesite prefiks profakture",estimate_setting_updated:"Pode\u0161avanje za profakture je uspe\u0161no sa\u010Duvano",company_address_format:"Format adrese firme",billing_address_format:"Format adrese za naplatu firme",shipping_address_format:"Format adrese za dostavu firme"},payments:{title:"Uplate",description:"Na\u010Din pla\u0107anja",payment_prefix:"Prefiks uplata",default_payment_email_body:"Podrazumevan sadr\u017Eaj email-a za potvrdu o pla\u0107anju (ra\u010Dun)",payment_settings:"Pode\u0161avanje za pla\u0107anja",autogenerate_payment_number:"Automatski-generi\u0161i broj uplate",payment_setting_description:"Onemogu\u0107i ovo, Ako ne \u017Eelite da automatski-generi\u0161ete broj uplate kada pravite novu uplatu.",enter_payment_prefix:"Unesite prefiks uplate",payment_setting_updated:"Pode\u0161avanje za pla\u0107anja je uspe\u0161no sa\u010Duvano",payment_modes:"Na\u010Din Pla\u0107anja",add_payment_mode:"Dodaj na\u010Din pla\u0107anja",edit_payment_mode:"Izmeni na\u010Din pla\u0107anja",mode_name:"Na\u010Din pla\u0107anja",payment_mode_added:"Na\u010Din pla\u0107anja dodat",payment_mode_updated:"Na\u010Din pla\u0107anja a\u017Euriran",payment_mode_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovaj Na\u010Din Pla\u0107anja",already_in_use:"Na\u010Din pla\u0107anja se ve\u0107 koristi",deleted_message:"Na\u010Din pla\u0107anja uspe\u0161no obrisan",company_address_format:"Format adrese firme",from_customer_address_format:"Format adrese klijenta"},items:{title:"Stavke",units:"Jedinice",add_item_unit:"Dodaj jedinicu stavke",edit_item_unit:"Izmeni jedinicu stavke",unit_name:"Naziv jedinice",item_unit_added:"Jedinica stavke dodata",item_unit_updated:"Jedinica stavke a\u017Eurirana",item_unit_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu jedinicu stavke",already_in_use:"Jedinica stavke se ve\u0107 koristi",deleted_message:"Jedinica stavke uspe\u0161no obrisana"},notes:{title:"Napomene",description:"U\u0161tedite vreme pravlje\u0107i napomene i koriste\u0107i ih na fakturama, profakturama i uplatama.",notes:"Napomene",type:"Tip",add_note:"Dodaj Napomenu",add_new_note:"Dodaj novu Napomenu",name:"Naziv",edit_note:"Izmeni Napomenu",note_added:"Napomena uspe\u0161no dodata",note_updated:"Napomena uspe\u0161no a\u017Eurirana",note_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Napomenu",already_in_use:"Napomena se ve\u0107 koristi",deleted_message:"Napomena uspe\u0161no obrisana"}},account_settings:{profile_picture:"Profilna slika",name:"Ime i prezime",email:"Email",password:"\u0160ifra",confirm_password:"Potvrdi \u0161ifru",account_settings:"Pode\u0161avanje naloga",save:"Sa\u010Duvaj",section_description:"Mo\u017Eete a\u017Eurirati Va\u0161e ime i prezime, email, \u0161ifru koriste\u0107i formu ispod.",updated_message:"Pode\u0161avanje naloga uspe\u0161no a\u017Eurirano"},user_profile:{name:"Ime i prezime",email:"Email",password:"\u0160ifra",confirm_password:"Potvrdi \u0161ifru"},notification:{title:"Obave\u0161tenje",email:"\u0160alji obave\u0161tenja na",description:"Koja email obave\u0161tenja bi \u017Eeleli da dobijate kada se ne\u0161to promeni?",invoice_viewed:"Faktura gledana",invoice_viewed_desc:"Kada klijent pogleda fakturu koja je poslata putem ove aplikacije.",estimate_viewed:"Profaktura gledana",estimate_viewed_desc:"Kada klijent pogleda profakturu koja je poslata putem ove aplikacije.",save:"Sa\u010Duvaj",email_save_message:"Email uspe\u0161no sa\u010Duvan",please_enter_email:"Molim Vas unesite E-mail"},tax_types:{title:"Tipovi Poreza",add_tax:"Dodaj Porez",edit_tax:"Izmeni Porez",description:"Mo\u017Eete dodavati ili uklanjati poreze kako \u017Eelite. Ova aplikacija podr\u017Eava porez kako na individualnim stavkama tako i na fakturi.",add_new_tax:"Dodaj Nov Porez",tax_settings:"Pode\u0161avanje Poreza",tax_per_item:"Porez po Stavki",tax_name:"Naziv Poreza",compound_tax:"Slo\u017Een Porez",percent:"Procenat",action:"Akcija",tax_setting_description:"Izaberite ovo ako \u017Eelite da dodajete porez na individualne stavke. Podrazumevano pona\u0161anje je da je porez dodat direktno na fakturu.",created_message:"Tip poreza uspe\u0161no kreiran",updated_message:"Tip poreza uspe\u0161no a\u017Euriran",deleted_message:"Tip poreza uspe\u0161no obrisan",confirm_delete:"Ne\u0107ete mo\u0107i da povratite ovaj Tip Poreza",already_in_use:"Porez se ve\u0107 koristi"},expense_category:{title:"Kategorija Rashoda",action:"Akcija",description:"Kategorije su obavezne za dodavanje rashoda. Mo\u017Ee\u0161 da doda\u0161 ili obri\u0161e\u0161 ove kategorije po svojoj \u017Eelji.",add_new_category:"Dodaj novu kategoriju",add_category:"Dodaj kategoriju",edit_category:"Izmeni kategoriju",category_name:"Naziv kategorije",category_description:"Opis",created_message:"Kagetorija rashoda je uspe\u0161no kreirana",deleted_message:"Kategorija rashoda je uspe\u0161no izbrisana",updated_message:"Kategorija rashoda je uspe\u0161no a\u017Eurirana",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu kategoriju rashoda",already_in_use:"Kategorija se ve\u0107 koristi"},preferences:{currency:"Valuta",default_language:"Jezik",time_zone:"Vremenska Zona",fiscal_year:"Finansijska Godina",date_format:"Format datuma",discount_setting:"Pode\u0161avanja za popuste",discount_per_item:"Popust po stavci",discount_setting_description:"Izaberite ovo ako \u017Eelite da dodajete Popust na individualne stavke. Podrazumevano pona\u0161anje je da je Popust dodat direktno na fakturu.",save:"Sa\u010Duvaj",preference:"Preferencija | Preferencije",general_settings:"Podrazumevane preferencije za sistem",updated_message:"Preferencije su uspe\u0161no a\u017Eurirane",select_language:"Izaberi Jezik",select_time_zone:"Izaberi Vremensku Zonu",select_date_format:"Izaberi Format Datuma",select_financial_year:"Izaberi Finansijsku Godinu"},update_app:{title:"A\u017Euriraj aplikaciju",description:"Lako mo\u017Ee\u0161 da a\u017Eurira\u0161 Crater tako \u0161to \u0107e\u0161 uraditi proveru novih verzija klikom na polje ispod",check_update:"Proveri a\u017Euriranost",avail_update:"Dostupna je nova verzija",next_version:"Slede\u0107a verzija",requirements:"Zahtevi",update:"A\u017Euriraj sad",update_progress:"A\u017Euriranje je u toku...",progress_text:"Traja\u0107e svega par minuta. Nemojte osve\u017Eavati ili zatvoriti stranicu dok a\u017Euriranje ne bude gotovo",update_success:"Aplikacija je a\u017Eurirana! Molim Vas Sa\u010Dekajte da se stranica osve\u017Ei automatski.",latest_message:"Nema nove verzije! A\u017Eurirana poslednja verzija.",current_version:"Trenutna verzija",download_zip_file:"Preuzmi ZIP paket",unzipping_package:"Raspakivanje paketa",copying_files:"Kopiranje datoteka",deleting_files:"Brisanje fajlova koji nisu u upotrebi",running_migrations:"Migracije u toku",finishing_update:"Zavr\u0161avanje a\u017Euriranja",update_failed:"Neuspe\u0161no a\u017Euriranje",update_failed_text:"\u017Dao mi je! Tvoje a\u017Euriranje nije uspelo na koraku broj: {step} korak"},backup:{title:"Bekap | Bekapi",description:"Bekap je zip arhiva koja sadr\u017Ei sve fajlove iz foldera koje ste specificirali, tako\u0111e sadr\u017Ei bekap baze.",new_backup:"Dodaj novi Bekap",create_backup:"Napravi Bekap",select_backup_type:"Izaberi tip Bekapa",backup_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovaj Bekap",path:"putanja",new_disk:"Novi Disk",created_at:"datum kreiranja",size:"veli\u010Dina",dropbox:"dropbox",local:"lokalni",healthy:"zdrav",amount_of_backups:"broj bekapa",newest_backups:"najnoviji bekapi",used_storage:"kori\u0161c\u0301eno skladi\u0161te",select_disk:"Izaberi Disk",action:"Akcija",deleted_message:"Bekap uspe\u0161no obrisan",created_message:"Bekap uspe\u0161no napravljen",invalid_disk_credentials:"Pogre\u0161ni kredencijali za odabrani disk"},disk:{title:"File Disk | File Disks",description:"Podrazumevano pona\u0161anje je da Crater koristi lokalni disk za \u010Duvanje bekapa, avatara i ostalih slika. Mo\u017Eete podesiti vi\u0161e od jednog disk drajvera od provajdera poput DigitalOcean, S3 i Dropbox po va\u0161oj \u017Eelji.",created_at:"datum kreiranja",dropbox:"dropbox",name:"Naziv",driver:"Drajver",disk_type:"Tip",disk_name:"Naziv Diska",new_disk:"Dodaj novi Disk",filesystem_driver:"Filesystem Driver",local_driver:"lokalni Drajver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Podrazumevani Drajver",is_default:"DA LI JE PODRAZUMEVAN",set_default_disk:"Postavi Podrazumevani Disk",set_default_disk_confirm:"Ovaj disk \u0107e biti postavljen kao podrazumevan i svi novi PDF fajlovi \u0107e biti sa\u010Duvani na ovom disku",success_set_default_disk:"Disk je uspe\u0161no postavljen kao podrazumevan",save_pdf_to_disk:"Sa\u010Duvaj PDF fajlove na Disk",disk_setting_description:" Uklju\u010Dite ovo ako \u017Eelite da sa\u010Duvate kopiju PDF fajla svake Fakture, Profakture i Uplate na va\u0161 podrazumevani disk automatski. Uklju\u010Divanjem ove opcije \u0107ete smanjiti vreme u\u010Ditavanja pri pregledu PDF fajlova.",select_disk:"Izaberi Disk",disk_settings:"Disk Pode\u0161avanja",confirm_delete:"Ovo ne\u0107e uticati na va\u0161e postoje\u0107e fajlove i foldere na navedenom disku, ali \u0107e se konfiguracija va\u0161eg diska izbrisati iz Cratera.",action:"Akcija",edit_file_disk:"Izmeni File Disk",success_create:"Disk uspe\u0161no dodat",success_update:"Disk uspe\u0161no a\u017Euriran",error:"Dodavanje diska nije uspelo",deleted_message:"File Disk uspe\u0161no obrisan",disk_variables_save_successfully:"Disk uspe\u0161no pode\u0161en",disk_variables_save_error:"Pode\u0161avanje diska nije uspelo.",invalid_disk_credentials:"Pogre\u0161an kredencijal za disk koji je naveden"}},pm={account_info:"Informacije o nalogu",account_info_desc:"Detalji u nastavku \u0107e se koristiti za kreiranje glavnog administratorskog naloga. Mogu\u0107e ih je izmeniti u bilo kom trenutku nakon prijavljivanja.",name:"Naziv",email:"E-mail",password:"\u0160ifra",confirm_password:"Potvrdi \u0161ifru",save_cont:"Sa\u010Duvaj & Nastavi",company_info:"Informacije o firmi",company_info_desc:"Ove informacije \u0107e biti prikazane na fakturama. Mogu\u0107e ih je izmeniti kasnije u pode\u0161avanjima.",company_name:"Naziv firme",company_logo:"Logo firme",logo_preview:"Pregled logoa",preferences:"Preference",preferences_desc:"Podrazumevane Preference za sistem",country:"Dr\u017Eava",state:"Savezna Dr\u017Eava",city:"Grad",address:"Adresa",street:"Ulica1 | Ulica2",phone:"Telefon",zip_code:"Po\u0161tanski broj",go_back:"Vrati se nazad",currency:"Valuta",language:"Jezik",time_zone:"Vremenska zona",fiscal_year:"Finansijska godina",date_format:"Format datuma",from_address:"Adresa po\u0161iljaoca",username:"Korisni\u010Dko ime",next:"Slede\u0107e",continue:"Nastavi",skip:"Presko\u010Di",database:{database:"URL stranice & baze podataka",connection:"Veza baze podataka",host:"Host baze podataka",port:"Port baze podataka",password:"\u0160ifra baze podataka",app_url:"URL aplikacije",app_domain:"Domen aplikacije",username:"Korisni\u010Dko ime baze podataka",db_name:"Naziv baze podataka",db_path:"Putanja do baze",desc:"Kreiraj bazu podataka na svom serveru i postavi kredencijale prate\u0107i obrazac u nastavku."},permissions:{permissions:"Dozvole",permission_confirm_title:"Da li ste sigurni da \u017Eelite da nastavite?",permission_confirm_desc:"Provera dozvola za foldere nije uspela",permission_desc:"U nastavku se nalazi lista dozvola za foldere koji su neophodni kako bi alikacija radila. Ukoliko provera dozvola ne uspe, a\u017Euriraj svoju listu dozvola za te foldere."},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail drajver",secret:"\u0160ifra",mailgun_secret:"Mailgun \u0160ifra",mailgun_domain:"Domen",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES \u0160ifra",ses_key:"SES Klju\u010D",password:"\u0160ifra za e-mail",username:"Koristni\u010Dko ime za e-mail",mail_config:"E-mail konfigurisanje",from_name:"Naziv po\u0161iljaoca",from_mail:"E-mail adresa po\u0161iljaoca",encryption:"E-mail enkripcija",mail_config_desc:"Ispod se nalazi forma za pode\u0161avanje E-mail drajvera za slanje po\u0161te iz aplikacije. Tako\u0111e mo\u017Eete podesiti provajdere tre\u0107e strane kao Sendgrid, SES itd."},req:{system_req:"Sistemski zahtevi",php_req_version:"Zahteva se PHP verzija {version} ",check_req:"Proveri zahteve",system_req_desc:"Crater ima nekoliko zahteva za server. Proveri da li tvoj server ima potrebnu verziju PHP-a i sva navedena pro\u0161irenja navedena u nastavku"},errors:{migrate_failed:"Neuspe\u0161no migriranje",database_variables_save_error:"Konfiguraciju nije moguc\u0301e zapisati u .env datoteku. Proveri dozvole za datoteku",mail_variables_save_error:"E-mail konfigurisanje je neuspe\u0161no",connection_failed:"Neuspe\u0161na konekcija sa bazom podataka",database_should_be_empty:"Baza podataka treba da bude prazna"},success:{mail_variables_save_successfully:"E-mail je uspe\u0161no konfigurisan",database_variables_save_successfully:"Baza podataka je uspe\u0161no konfigurisana"}},gm={invalid_phone:"Pogre\u0161an Broj Telefona",invalid_url:"Neva\u017Ee\u0107i URL (primer: http://www.craterapp.com)",invalid_domain_url:"Pogre\u0161an URL (primer: craterapp.com)",required:"Obavezno polje",email_incorrect:"Pogre\u0161an E-mail",email_already_taken:"Navedeni E-mail je zauzet",email_does_not_exist:"Korisnik sa navedenom e-mail adresom ne postoji",item_unit_already_taken:"Naziv ove jedinice stavke je zauzet",payment_mode_already_taken:"Naziv ovog na\u010Dina pla\u0107anja je zauzet",send_reset_link:"Po\u0161alji link za resetovanje",not_yet:"Jo\u0161 uvek ni\u0161ta? Po\u0161alji ponovo",password_min_length:"\u0160ifra mora imati {count} karaktera",name_min_length:"Naziv mora imati najmanje {count} slova",enter_valid_tax_rate:"Unesite odgovaraju\u0107u poresku stopu",numbers_only:"Mogu se unositi samo brojevi",characters_only:"Mogu se unositi samo karakteri",password_incorrect:"\u0160ifra mora biti identi\u010Dna",password_length:"\u0160ifra mora imati {count} karaktera",qty_must_greater_than_zero:"Koli\u010Dina mora biti ve\u0107a od 0.",price_greater_than_zero:"Cena mora biti ve\u0107a od 0",payment_greater_than_zero:"Uplata mora biti ve\u0107a od 0",payment_greater_than_due_amount:"Uneta uplata je ve\u0107a od dospelog iznosa ove fakture",quantity_maxlength:"Koli\u010Dina ne mo\u017Ee imati vi\u0161e od 20 cifara",price_maxlength:"Cena ne mo\u017Ee imati vi\u0161e od 20 cifara",price_minvalue:"Cena mora biti ve\u0107a od 0",amount_maxlength:"Iznos ne mo\u017Ee da ima vi\u0161e od 20 cifara",amount_minvalue:"Iznos mora biti ve\u0107i od 0",description_maxlength:"Opis ne mo\u017Ee da ima vi\u0161e od 65,000 karaktera",subject_maxlength:"Predmet ne mo\u017Ee da ima vi\u0161e od 100 karaktera",message_maxlength:"Poruka ne mo\u017Ee da ima vi\u0161e od 255 karaktera",maximum_options_error:"Maksimalan broj opcija je izabran. Prvo uklonite izabranu opciju da biste izabrali drugu",notes_maxlength:"Napomena ne mo\u017Ee da ima vi\u0161e od 65,000 karaktera",address_maxlength:"Adresa ne mo\u017Ee da ima vi\u0161e od 255 karaktera",ref_number_maxlength:"Poziv na broj ne mo\u017Ee da ima vi\u0161e od 225 karaktera",prefix_maxlength:"Prefiks ne mo\u017Ee da ima vi\u0161e od 5 karaktera",something_went_wrong:"ne\u0161to je krenulo naopako"},fm="Profaktura",hm="Broj Profakture",vm="Datum Profakture",ym="Datum isteka Profakture",bm="Faktura",km="Broj Fakture",wm="Datum Fakture",xm="Datum dospe\u0107a Fakture",zm="Napomena",Sm="Stavke",jm="Koli\u010Dina",Pm="Cena",Dm="Popust",Cm="Iznos",Am="Osnovica za obra\u010Dun PDV-a",Em="Ukupan iznos",Nm="Payment",Tm="POTVRDA O UPLATI",Im="Datum Uplate",$m="Broj Uplate",Rm="Na\u010Din Uplate",Fm="Iznos Uplate",Mm="IZVE\u0160TAJ O RASHODIMA",Vm="RASHODI UKUPNO",Bm="IZVE\u0160TAJ O PRIHODIMA I RASHODIMA",Om="Sales Customer Report",Lm="Sales Item Report",Um="Tax Summary Report",Km="PRIHOD",qm="NETO PROFIT",Zm="Izve\u0161taj o Prodaji: Po Klijentu",Wm="PRODAJA UKUPNO",Hm="Izve\u0161taj o Prodaji: Po Stavci",Gm="IZVE\u0160TAJ O POREZIMA",Ym="UKUPNO POREZ",Jm="Tipovi Poreza",Xm="Rashodi",Qm="Ra\u010Dun za,",ep="Isporu\u010Diti za,",tp="Poslat od strane:",ap="Tax";var sp={navigation:Qu,general:em,dashboard:tm,tax_types:am,global_search:sm,customers:nm,items:im,estimates:om,invoices:rm,payments:dm,expenses:lm,login:cm,users:_m,reports:um,settings:mm,wizard:pm,validation:gm,pdf_estimate_label:fm,pdf_estimate_number:hm,pdf_estimate_date:vm,pdf_estimate_expire_date:ym,pdf_invoice_label:bm,pdf_invoice_number:km,pdf_invoice_date:wm,pdf_invoice_due_date:xm,pdf_notes:zm,pdf_items_label:Sm,pdf_quantity_label:jm,pdf_price_label:Pm,pdf_discount_label:Dm,pdf_amount_label:Cm,pdf_subtotal:Am,pdf_total:Em,pdf_payment_label:Nm,pdf_payment_receipt_label:Tm,pdf_payment_date:Im,pdf_payment_number:$m,pdf_payment_mode:Rm,pdf_payment_amount_received_label:Fm,pdf_expense_report_label:Mm,pdf_total_expenses_label:Vm,pdf_profit_loss_label:Bm,pdf_sales_customers_label:Om,pdf_sales_items_label:Lm,pdf_tax_summery_label:Um,pdf_income_label:Km,pdf_net_profit_label:qm,pdf_customer_sales_report:Zm,pdf_total_sales_label:Wm,pdf_item_sales_label:Hm,pdf_tax_report_label:Gm,pdf_total_tax_label:Ym,pdf_tax_types_label:Jm,pdf_expenses_label:Xm,pdf_bill_to:Qm,pdf_ship_to:ep,pdf_received_from:tp,pdf_tax_label:ap};const np={dashboard:"Overzicht",customers:"Klanten",items:"Artikelen",invoices:"Facturen",expenses:"Uitgaven",estimates:"Offertes",payments:"Betalingen",reports:"Rapporten",settings:"Instellingen",logout:"Uitloggen",users:"Gebruikers"},ip={add_company:"Bedrijf toevoegen",view_pdf:"Bekijk PDF",copy_pdf_url:"Kopieer PDF-URL",download_pdf:"Download PDF",save:"Opslaan",create:"Maak",cancel:"annuleren",update:"Bijwerken",deselect:"Maak de selectie ongedaan",download:"Downloaden",from_date:"Van datum",to_date:"Tot datum",from:"Van",to:"Naar",sort_by:"Sorteer op",ascending:"Oplopend",descending:"Aflopend",subject:"Onderwerp",body:"Inhoud",message:"Bericht",send:"Verstuur",go_back:"Ga terug",back_to_login:"Terug naar Inloggen?",home:"Home",filter:"Filter",delete:"Verwijderen",edit:"Bewerken",view:"Bekijken",add_new_item:"Voeg een nieuw item toe",clear_all:"Wis alles",showing:"Weergegeven",of:"van",actions:"Acties",subtotal:"SUBTOTAAL",discount:"KORTING",fixed:"Gemaakt",percentage:"Percentage",tax:"BELASTING",total_amount:"TOTAALBEDRAG",bill_to:"Rekening naar",ship_to:"Verzend naar",due:"Openstaand",draft:"Concept",sent:"Verzonden",all:"Alles",select_all:"Selecteer alles",choose_file:"Klik hier om een bestand te kiezen",choose_template:"Kies een sjabloon",choose:"Kiezen",remove:"Verwijderen",powered_by:"Mogelijk gemaakt door",bytefury:"Bytefury",select_a_status:"Selecteer een status",select_a_tax:"Selecteer een belasting",search:"Zoeken",are_you_sure:"Weet je het zeker?",list_is_empty:"Lijst is leeg.",no_tax_found:"Geen belasting gevonden!",four_zero_four:"404",you_got_lost:"Oeps!\xA0Je bent verdwaald!",go_home:"Ga naar home",test_mail_conf:"E-mailconfiguratie testen",send_mail_successfully:"Mail is succesvol verzonden",setting_updated:"Instelling succesvol bijgewerkt",select_state:"Selecteer staat",select_country:"Selecteer land",select_city:"Selecteer stad",street_1:"straat 1",street_2:"Straat # 2",action_failed:"Actie: mislukt",retry:"Retr",choose_note:"Kies notitie",no_note_found:"Geen notitie gevonden",insert_note:"Notitie invoegen"},op={select_year:"Selecteer jaar",cards:{due_amount:"Openstaand bedrag",customers:"Klanten",invoices:"Facturen",estimates:"Offertes"},chart_info:{total_sales:"Verkoop",total_receipts:"Inkomsten",total_expense:"Uitgaven",net_income:"Netto inkomen",year:"Selecteer jaar"},monthly_chart:{title:"Verkoop en kosten"},recent_invoices_card:{title:"Openstaande facturen",due_on:"Openstaand op",customer:"Klant",amount_due:"Openstaand bedrag",actions:"Acties",view_all:"Toon alles"},recent_estimate_card:{title:"Recente offertes",date:"Datum",customer:"Klant",amount_due:"Openstaand bedrag",actions:"Acties",view_all:"Toon alles"}},rp={name:"Naam",description:"Omschrijving",percent:"Procent",compound_tax:"Verbinding Ta"},dp={search:"Zoeken...",customers:"Klanten",users:"Gebruikers",no_results_found:"Geen zoekresultaten"},lp={title:"Klanten",add_customer:"Klant toevoegen",contacts_list:"Klantenlijst",name:"Naam",mail:"Mail | Mails",statement:"Verklaring",display_name:"Weergavenaam",primary_contact_name:"Naam primaire contactpersoon",contact_name:"Contactnaam",amount_due:"Openstaand bedrag",email:"E-mail",address:"Adres",phone:"Telefoon",website:"Website",overview:"Overzicht",enable_portal:"Activeer Portaal",country:"Land",state:"Provincie",city:"Stad",zip_code:"Postcode",added_on:"Toegevoegd",action:"Actie",password:"Wachtwoord",street_number:"Huisnummer",primary_currency:"Primaire valuta",description:"Omschrijving",add_new_customer:"Nieuwe klant toevoegen",save_customer:"Klant opslaan",update_customer:"Klant bijwerken",customer:"Klant |\xA0Klanten",new_customer:"Nieuwe klant",edit_customer:"Klant bewerken",basic_info:"Basis informatie",billing_address:"factuur adres",shipping_address:"Verzendingsadres",copy_billing_address:"Kopi\xEBren van facturering",no_customers:"Nog geen klanten!",no_customers_found:"Geen klanten gevonden!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Hier vind je jouw klanten terug.",primary_display_name:"Primaire weergavenaam",select_currency:"Selecteer valuta",select_a_customer:"Selecteer een klant",type_or_click:"Typ of klik om te selecteren",new_transaction:"Nieuwe transactie",no_matching_customers:"Er zijn geen overeenkomende klanten!",phone_number:"Telefoonnummer",create_date:"Aangemaakt op",confirm_delete:"Deze klant en alle gerelateerde facturen, offertes en betalingen worden permanent verwijderd.\xA0|\xA0Deze klanten en alle gerelateerde facturen, offertes en betalingen worden permanent verwijderd.",created_message:"Klant succesvol aangemaakt",updated_message:"Klant succesvol ge\xFCpdatet",deleted_message:"Klant succesvol verwijderd |\xA0Klanten zijn succesvol verwijderd"},cp={title:"Artikelen",items_list:"Lijst met items",name:"Naam",unit:"Eenheid",description:"Omschrijving",added_on:"Toegevoegd",price:"Prijs",date_of_creation:"Datum van creatie",not_selected:"No item selected",action:"Actie",add_item:"Voeg item toe",save_item:"Item opslaan",update_item:"Item bijwerken",item:"Artikel |\xA0Artikelen",add_new_item:"Voeg een nieuw item toe",new_item:"Nieuw item",edit_item:"Item bewerken",no_items:"Nog geen items!",list_of_items:"Hier vind je jouw artikelen terug.",select_a_unit:"selecteer eenheid",taxes:"Belastingen",item_attached_message:"Kan een item dat al in gebruik is niet verwijderen",confirm_delete:"U kunt dit item | niet herstellen\xA0U kunt deze items niet herstellen",created_message:"Item succesvol aangemaakt",updated_message:"Item succesvol bijgewerkt",deleted_message:"Item succesvol verwijderd |\xA0Items zijn verwijderd"},_p={title:"Offertes",estimate:"Offerte |\xA0Offertes",estimates_list:"Lijst met offertes",days:"{dagen} dagen",months:"{months} Maand",years:"{jaar} jaar",all:"Allemaal",paid:"Betaald",unpaid:"Onbetaald",customer:"Klant",ref_no:"Ref Nr.",number:"Aantal",amount_due:"Bedrag",partially_paid:"Gedeeltelijk betaald",total:"Totaal",discount:"Korting",sub_total:"Subtotaal",estimate_number:"Offerte nummer",ref_number:"Referentie nummer",contact:"Contact",add_item:"Voeg een item toe",date:"Datum",due_date:"Opleveringsdatum",expiry_date:"Vervaldatum",status:"Status",add_tax:"Belasting toevoegen",amount:"Bedrag",action:"Actie",notes:"Opmerkingen",tax:"Belasting",estimate_template:"Sjabloon",convert_to_invoice:"Converteren naar factuur",mark_as_sent:"Markeren als verzonden",send_estimate:"Verzend offerte",resend_estimate:"Offerte opnieuw verzenden",record_payment:"Bestaling registreren",add_estimate:"Offerte toevoegen",save_estimate:"Bewaar offerte",confirm_conversion:"Deze offerte wordt gebruikt om een nieuwe factuur te maken.",conversion_message:"Factuur gemaakt",confirm_send_estimate:"Deze offerte wordt via e-mail naar de klant gestuurd",confirm_mark_as_sent:"Deze offerte wordt gemarkeerd als verzonden",confirm_mark_as_accepted:"Deze offerte wordt gemarkeerd als Geaccepteerd",confirm_mark_as_rejected:"Deze offerte wordt gemarkeerd als Afgewezen",no_matching_estimates:"Er zijn geen overeenkomende offertes!",mark_as_sent_successfully:"Offerte gemarkeerd als succesvol verzonden",send_estimate_successfully:"Offerte succesvol verzonden",errors:{required:"Veld is vereist"},accepted:"Geaccepteerd",rejected:"Rejected",sent:"Verzonden",draft:"Concept",declined:"Geweigerd",new_estimate:"Nieuwe offerte",add_new_estimate:"Offerte toevoegen",update_Estimate:"Offerte bijwerken",edit_estimate:"Offerte bewerken",items:"artikelen",Estimate:"Offerte |\xA0Offertes",add_new_tax:"Nieuwe belasting toevoegen",no_estimates:"Nog geen offertes!",list_of_estimates:"Hier vind je jouw offertes terug.",mark_as_rejected:"Markeer als afgewezen",mark_as_accepted:"Markeer als geaccepteerd",marked_as_accepted_message:"Offerte gemarkeerd als geaccepteerd",marked_as_rejected_message:"Offerte gemarkeerd als afgewezen",confirm_delete:"U kunt deze offerte | niet herstellen\xA0U kunt deze offertes niet herstellen",created_message:"Offerte is gemaakt",updated_message:"Offerte succesvol bijgewerkt",deleted_message:"Offerte succesvol verwijderd |\xA0Offertes zijn succesvol verwijderd",something_went_wrong:"Er is iets fout gegaan",item:{title:"Titel van het item",description:"Omschrijving",quantity:"Aantal stuks",price:"Prijs",discount:"Korting",total:"Totaal",total_discount:"Totale korting",sub_total:"Subtotaal",tax:"Belasting",amount:"Bedrag",select_an_item:"Typ of klik om een item te selecteren",type_item_description:"Type Item Beschrijving (optioneel)"}},up={title:"Facturen",invoices_list:"Facturenlijst",days:"{dagen} dagen",months:"{months} Maand",years:"{jaar} jaar",all:"Allemaal",paid:"Betaald",unpaid:"Onbetaald",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"Klant",paid_status:"Betaling",ref_no:"REF NR.",number:"AANTAL",amount_due:"BEDRAG",partially_paid:"Gedeeltelijk betaald",total:"Totaal",discount:"Korting",sub_total:"Subtotaal",invoice:"Factuur |\xA0Facturen",invoice_number:"Factuurnummer",ref_number:"Referentie nummer",contact:"Contact",add_item:"Voeg een item toe",date:"Datum",due_date:"Opleveringsdatum",status:"Status",add_tax:"Belasting toevoegen",amount:"Bedrag",action:"Actie",notes:"Opmerkingen",view:"Bekijken",send_invoice:"Factuur verzenden",resend_invoice:"Factuur opnieuw verzenden",invoice_template:"Factuursjabloon",template:"Sjabloon",mark_as_sent:"Markeer als verzonden",confirm_send_invoice:"Deze factuur wordt via e-mail naar de klant gestuurd",invoice_mark_as_sent:"Deze factuur wordt gemarkeerd als verzonden",confirm_send:"Deze factuur wordt via e-mail naar de klant gestuurd",invoice_date:"Factuur datum",record_payment:"Bestaling registreren",add_new_invoice:"Nieuwe factuur toevoegen",update_expense:"Onkosten bijwerken",edit_invoice:"Factuur bewerken",new_invoice:"Nieuwe factuur",save_invoice:"Factuur opslaan",update_invoice:"Factuur bijwerken",add_new_tax:"Nieuwe belasting toevoegen",no_invoices:"Nog geen facturen!",list_of_invoices:"Hier vind je jouw facturen terug.",select_invoice:"Selecteer Factuur",no_matching_invoices:"Er zijn geen overeenkomende facturen!",mark_as_sent_successfully:"Factuur gemarkeerd als succesvol verzonden",invoice_sent_successfully:"Factuur succesvol verzonden",cloned_successfully:"Factuur succesvol gekloond",clone_invoice:"Factuur klonen",confirm_clone:"Deze factuur wordt gekloond in een nieuwe factuur",item:{title:"Titel van het item",description:"Omschrijving",quantity:"Aantal stuks",price:"Prijs",discount:"Korting",total:"Totaal",total_discount:"Totale korting",sub_total:"Subtotaal",tax:"Belasting",amount:"Bedrag",select_an_item:"Typ of klik om een item te selecteren",type_item_description:"Type Item Beschrijving (optioneel)"},confirm_delete:"Deze factuur wordt permanent verwijderd |\xA0Deze facturen worden permanent verwijderd",created_message:"Factuur succesvol aangemaakt",updated_message:"Factuur succesvol bijgewerkt",deleted_message:"Factuur succesvol verwijderd |\xA0Facturen succesvol verwijderd",marked_as_sent_message:"Factuur gemarkeerd als succesvol verzonden",something_went_wrong:"Er is iets fout gegaan",invalid_due_amount_message:"Het totale factuurbedrag mag niet lager zijn dan het totale betaalde bedrag voor deze factuur.\xA0Werk de factuur bij of verwijder de bijbehorende betalingen om door te gaan."},mp={title:"Betalingen",payments_list:"Betalingslijst",record_payment:"Bestaling registreren",customer:"Klant",date:"Datum",amount:"Bedrag",action:"Actie",payment_number:"Betalingsnummer",payment_mode:"Betaalmethode",invoice:"Factuur",note:"Notitie",add_payment:"Betaling toevoegen",new_payment:"Nieuwe betaling",edit_payment:"Betaling bewerken",view_payment:"Bekijk betaling",add_new_payment:"Nieuwe betaling toevoegen",send_payment_receipt:"Betaalbewijs verzenden",send_payment:"Verstuur betaling",save_payment:"Betaling opslaan",update_payment:"Betaling bijwerken",payment:"Betaling |\xA0Betalingen",no_payments:"Nog geen betalingen!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Er zijn geen overeenkomende betalingen!",list_of_payments:"Hier vind je jouw betalingen terug.",select_payment_mode:"Selecteer betalingswijze",confirm_mark_as_sent:"Deze offerte wordt gemarkeerd als verzonden",confirm_send_payment:"Deze betaling wordt via e-mail naar de klant gestuurd",send_payment_successfully:"Betaling succesvol verzonden",something_went_wrong:"Er is iets fout gegaan",confirm_delete:"Deze betaling wordt permanent verwijderd |\xA0Deze betalingen worden permanent verwijderd",created_message:"De betaling is succesvol aangemaakt",updated_message:"Betaling succesvol bijgewerkt",deleted_message:"Betaling succesvol verwijderd |\xA0Betalingen zijn verwijderd",invalid_amount_message:"Het bedrag van de betaling is ongeldig"},pp={title:"Uitgaven",expenses_list:"Uitgavenlijst",select_a_customer:"Selecteer een klant",expense_title:"Titel",customer:"Klant",contact:"Contact",category:"Categorie",from_date:"Van datum",to_date:"Tot datum",expense_date:"Datum",description:"Omschrijving",receipt:"Bon",amount:"Bedrag",action:"Actie",not_selected:"Not selected",note:"Notitie",category_id:"Categorie ID",date:"Uitgavendatum",add_expense:"Kosten toevoegen",add_new_expense:"Kosten toevoegen",save_expense:"Kosten opslaan",update_expense:"Onkosten bijwerken",download_receipt:"Ontvangstbewijs downloaden",edit_expense:"Uitgaven bewerken",new_expense:"Kosten toevoegen",expense:"Uitgaven |\xA0Uitgaven",no_expenses:"Nog geen kosten!",list_of_expenses:"Hier vind je jouw uitgaven terug.",confirm_delete:"Deze uitgave wordt permanent verwijderd | Deze kosten worden permanent verwijderd",created_message:"Kosten succesvol gemaakt",updated_message:"Kosten succesvol bijgewerkt",deleted_message:"Kosten succesvol verwijderd |\xA0Uitgaven zijn verwijderd",categories:{categories_list:"Categorie\xEBnlijst",title:"Titel",name:"Naam",description:"Omschrijving",amount:"Bedrag",actions:"Acties",add_category:"categorie toevoegen",new_category:"Nieuwe categorie",category:"Categorie |\xA0Categorie\xEBn",select_a_category:"Selecteer een categorie"}},gp={email:"E-mail",password:"Wachtwoord",forgot_password:"Wachtwoord vergeten?",or_signIn_with:"of Log in met",login:"Log in",register:"Registreren",reset_password:"Wachtwoord opnieuw instellen",password_reset_successfully:"Wachtwoord opnieuw ingesteld",enter_email:"Voer email in",enter_password:"Voer wachtwoord in",retype_password:"Geef nogmaals het wachtwoord"},fp={title:"Gebruikers",users_list:"Gebruikerslijst",name:"Naam",description:"Omschrijving",added_on:"Toegevoegd",date_of_creation:"Datum van creatie",action:"Actie",add_user:"Gebruiker toevoegen",save_user:"Gebruiker opslaan",update_user:"Gebruiker bijwerken",user:"Gebruiker | Gebruikers",add_new_user:"Nieuwe gebruiker toevoegen",new_user:"Nieuwe gebruiker",edit_user:"Gebruiker bewerken",no_users:"Nog geen gebruikers!",list_of_users:"Deze sectie zal de lijst met gebruikers bevatten.",email:"E-mail",phone:"Telefoon",password:"Wachtwoord",user_attached_message:"Kan een item dat al in gebruik is niet verwijderen",confirm_delete:"Je kunt deze gebruiker later niet herstellen | Je kunt deze gebruikers later niet herstellen",created_message:"Gebruiker succesvol aangemaakt",updated_message:"Gebruiker met succes bijgewerkt",deleted_message:"Gebruiker succesvol verwijderd | Gebruikers succesvol verwijderd"},hp={title:"Verslag doen van",from_date:"Van datum",to_date:"Tot datum",status:"Status",paid:"Betaald",unpaid:"Onbetaald",download_pdf:"Download PDF",view_pdf:"Bekijk PDF",update_report:"Rapport bijwerken",report:"Verslag |\xA0Rapporten",profit_loss:{profit_loss:"Verlies",to_date:"Tot datum",from_date:"Van datum",date_range:"Selecteer Datumbereik"},sales:{sales:"Verkoop",date_range:"Selecteer datumbereik",to_date:"Tot datum",from_date:"Van datum",report_type:"Rapporttype"},taxes:{taxes:"Belastingen",to_date:"Tot datum",from_date:"Van datum",date_range:"Selecteer Datumbereik"},errors:{required:"Veld is vereist"},invoices:{invoice:"Factuur",invoice_date:"Factuur datum",due_date:"Opleveringsdatum",amount:"Bedrag",contact_name:"Contactnaam",status:"Status"},estimates:{estimate:"Offerte",estimate_date:"Offerte Datum",due_date:"Opleveringsdatum",estimate_number:"Offerte nummer",ref_number:"Referentie nummer",amount:"Bedrag",contact_name:"Contactnaam",status:"Status"},expenses:{expenses:"Uitgaven",category:"Categorie",date:"Datum",amount:"Bedrag",to_date:"Tot datum",from_date:"Van datum",date_range:"Selecteer Datumbereik"}},vp={menu_title:{account_settings:"Account instellingen",company_information:"Bedrijfsinformatie",customization:"Aanpassen",preferences:"Voorkeuren",notifications:"Kennisgevingen",tax_types:"Belastingtypen",expense_category:"Onkostencategorie\xEBn",update_app:"App bijwerken",backup:"Back-up",file_disk:"Bestandsopslag",custom_fields:"Aangepaste velden",payment_modes:"Betaalmethodes",notes:"Opmerkingen"},title:"Instellingen",setting:"Instellingen |\xA0Instellingen",general:"Algemeen",language:"Taal",primary_currency:"Primaire valuta",timezone:"Tijdzone",date_format:"Datumnotatie",currencies:{title:"Valuta's",currency:"Valuta |\xA0Valuta's",currencies_list:"Lijst van valuta's",select_currency:"selecteer valuta",name:"Naam",code:"Code",symbol:"Symbool",precision:"Precisie",thousand_separator:"Duizend scheidingsteken",decimal_separator:"Decimaalscheidingsteken",position:"Positie",position_of_symbol:"Positie van symbool",right:"Rechtsaf",left:"Links",action:"Actie",add_currency:"Valuta toevoegen"},mail:{host:"Mail host",port:"Mail Port",driver:"Mail-stuurprogramma",secret:"Geheim",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domein",mailgun_endpoint:"Mailgun-eindpunt",ses_secret:"SES Secret",ses_key:"SES-sleutel",password:"Mail wachtwoord",username:"Mail gebruikersnaam",mail_config:"E-mailconfiguratie",from_name:"Van Mail Name",from_mail:"Van e-mailadres",encryption:"E-mailversleuteling",mail_config_desc:"Hieronder vindt u het formulier voor het configureren van het e-mailstuurprogramma voor het verzenden van e-mails vanuit de app.\xA0U kunt ook externe providers zoals Sendgrid, SES enz. Configureren."},pdf:{title:"PDF-instelling",footer_text:"Voettekst",pdf_layout:"PDF indeling"},company_info:{company_info:"Bedrijfsinfo",company_name:"Bedrijfsnaam",company_logo:"Bedrijfslogo",section_description:"Informatie over uw bedrijf die wordt weergegeven op facturen, offertes en andere documenten die door Crater zijn gemaakt.",phone:"Telefoon",country:"Land",state:"Provincie",city:"Stad",address:"Adres",zip:"Postcode",save:"Opslaan",updated_message:"Bedrijfsinformatie succesvol bijgewerkt"},custom_fields:{title:"Aangepaste velden",section_description:"Uw facturen, offertes & betalingsbewijzen aanpassen met uw eigen velden. Gebruik onderstaande velden op het adres format op de Customization instellings pagina.",add_custom_field:"Extra veld toevoegen",edit_custom_field:"Veld wijzigen",field_name:"Veld naam",label:"Label",type:"Type",name:"Naam",required:"Verplicht",placeholder:"Tijdelijke plaatshouder",help_text:"Hulp Text",default_value:"Standaard waarde",prefix:"Voorvoegsel",starting_number:"Starting Number",model:"Model",help_text_description:"Voer tekst in om gebruikers te helpen het doel van dit aangepaste veld te begrijpen.",suffix:"Achtervoegsel",yes:"Ja",no:"Nee",order:"Volgorde",custom_field_confirm_delete:"U kunt dit veld niet herstellen",already_in_use:"Aangepast veld is al in gebruik",deleted_message:"Aangepast veld is succesvol verwijderd",options:"opties",add_option:"Optie toevoegen",add_another_option:"Nog een optie toevoegen",sort_in_alphabetical_order:"Sorteer op alfabetische volgorde",add_options_in_bulk:"Voeg opties toe in bulk",use_predefined_options:"Gebruik voorgedefinieerde opties",select_custom_date:"Selecteer een aangepaste datum",select_relative_date:"Selecteer relatieve datum",ticked_by_default:"Standaard aangevinkt",updated_message:"Aangepast veld is succesvol aangepast",added_message:"Aangepast veld is succesvol toegevoegd"},customization:{customization:"aanpassen",save:"Opslaan",addresses:{title:"Adressen",section_description:"U kunt het factuuradres van de klant en het verzendadres van de klant instellen (alleen weergegeven in PDF).",customer_billing_address:"Factuuradres van klant",customer_shipping_address:"Klant verzendadres",company_address:"bedrijfsadres",insert_fields:"Velden invoegen",contact:"Contact",address:"Adres",display_name:"Weergavenaam",primary_contact_name:"Naam primaire contactpersoon",email:"E-mail",website:"Website",name:"Naam",country:"Land",state:"Provincie",city:"Stad",company_name:"Bedrijfsnaam",address_street_1:"Adres Straat 1",address_street_2:"Adresstraat 2",phone:"Telefoon",zip_code:"Postcode",address_setting_updated:"Adresinstelling is bijgewerkt"},updated_message:"Bedrijfsinformatie succesvol bijgewerkt",invoices:{title:"Facturen",notes:"Opmerkingen",invoice_prefix:"Factuurvoorvoegsel",default_invoice_email_body:"Standaard factuur email text",invoice_settings:"Factuurinstellingen",autogenerate_invoice_number:"Factuurnummer automatisch genereren",autogenerate_invoice_number_desc:"Schakel dit uit als u niet automatisch factuurnummers wilt genereren telkens wanneer u een nieuwe factuur maakt.",enter_invoice_prefix:"Voer het factuurvoorvoegsel in",terms_and_conditions:"Voorwaarden",company_address_format:"Bedrijfsadres format",shipping_address_format:"Verzendadres format",billing_address_format:"Factuuradres format",invoice_settings_updated:"Factuurinstelling succesvol bijgewerkt"},estimates:{title:"Offertes",estimate_prefix:"Voorvoegsel schatten",default_estimate_email_body:"Standaard offerte email text",estimate_settings:"Instellingen schatten",autogenerate_estimate_number:"Automatisch geschat nummer genereren",estimate_setting_description:"Schakel dit uit als u niet automatisch offertesaantallen wilt genereren telkens wanneer u een nieuwe offerte maakt.",enter_estimate_prefix:"Voer het prefixnummer in",estimate_setting_updated:"Instelling Offerte succesvol bijgewerkt",company_address_format:"Bedrijfsadres format",billing_address_format:"Factuuradres Format",shipping_address_format:"Verzendadres format"},payments:{title:"Betalingen",description:"Modes of transaction for payments",payment_prefix:"Betalingsvoorvoegsel",default_payment_email_body:"Default Payment Email Body",payment_settings:"Betalingsinstellingen",autogenerate_payment_number:"Betalingsnummer automatisch genereren",payment_setting_description:"Schakel dit uit als u niet elke keer dat u een nieuwe betaling aanmaakt, automatisch betalingsnummers wilt genereren.",enter_payment_prefix:"Voer het betalingsvoorvoegsel in",payment_setting_updated:"Betalingsinstelling ge\xFCpdatet",payment_modes:"Betaalmethodes",add_payment_mode:"Betaalmodus toevoegen",edit_payment_mode:"Betaalmodus bewerken",mode_name:"Mode naam",payment_mode_added:"Betaalwijze toegevoegd",payment_mode_updated:"Betalingsmodus bijgewerkt",payment_mode_confirm_delete:"U kunt deze betalingsmodus niet herstellen",already_in_use:"De betalingsmodus is al in gebruik",deleted_message:"Betaalwijze succesvol verwijderd",company_address_format:"Bedrijfsadres format",from_customer_address_format:"Van klant adres formaat"},items:{title:"Artikelen",units:"eenheden",add_item_unit:"Itemeenheid toevoegen",edit_item_unit:"Itemeenheid bewerken",unit_name:"Naam eenheid",item_unit_added:"Item Eenheid toegevoegd",item_unit_updated:"Artikeleenheid bijgewerkt",item_unit_confirm_delete:"U kunt dit item niet terughalen",already_in_use:"Item Unit is al in gebruik",deleted_message:"Artikeleenheid succesvol verwijderd"},notes:{title:"Opmerkingen",description:"Bespaar tijd door notities te maken en ze opnieuw te gebruiken op uw facturen, ramingen en betalingen.",notes:"Opmerkingen",type:"Type",add_note:"Notitie toevoegen",add_new_note:"Voeg een nieuwe notitie toe",name:"Naam",edit_note:"Notitie bewerken",note_added:"Notitie toegevoegd",note_updated:"Notitie bijgewerkt",note_confirm_delete:"U kunt deze notitie niet terughalen",already_in_use:"Notitie is reeds in gebruik",deleted_message:"Notitie verwijderd"}},account_settings:{profile_picture:"Profielfoto",name:"Naam",email:"E-mail",password:"Wachtwoord",confirm_password:"bevestig wachtwoord",account_settings:"Account instellingen",save:"Opslaan",section_description:"U kunt uw naam, e-mailadres en wachtwoord bijwerken via onderstaand formulier.",updated_message:"Accountinstellingen succesvol bijgewerkt"},user_profile:{name:"Naam",email:"E-mail",password:"Wachtwoord",confirm_password:"Bevestig wachtwoord"},notification:{title:"Kennisgeving",email:"Stuur meldingen naar",description:"Welke e-mailmeldingen wilt u ontvangen als er iets verandert?",invoice_viewed:"Factuur bekeken",invoice_viewed_desc:"Wanneer uw klant de factuur bekijkt die via het kraterdashboard is verzonden.",estimate_viewed:"Offerte bekeken",estimate_viewed_desc:"Wanneer uw klant de offerte bekijkt die via het kraterdashboard is verzonden.",save:"Opslaan",email_save_message:"E-mail succesvol opgeslagen",please_enter_email:"Voer e-mailadres in"},tax_types:{title:"Belastingtypen",add_tax:"Belasting toevoegen",edit_tax:"Belasting bewerken",description:"U kunt naar believen belastingen toevoegen of verwijderen.\xA0Crater ondersteunt belastingen op individuele items en op de factuur.",add_new_tax:"Nieuwe belasting toevoegen",tax_settings:"Belastinginstellingen",tax_per_item:"Belasting per item",tax_name:"Belastingnaam",compound_tax:"Samengestelde belasting",percent:"Procent",action:"Actie",tax_setting_description:"Schakel dit in als u belastingen wilt toevoegen aan afzonderlijke factuuritems.\xA0Standaard worden belastingen rechtstreeks aan de factuur toegevoegd.",created_message:"Belastingtype is gemaakt",updated_message:"Belastingtype succesvol bijgewerkt",deleted_message:"Belastingtype succesvol verwijderd",confirm_delete:"Dit belastingtype wordt permanent verwijderd",already_in_use:"Belasting al in gebruik"},expense_category:{title:"Onkostencategorie\xEBn",action:"Actie",description:"Categorie\xEBn zijn vereist voor het toevoegen van onkostenposten.\xA0U kunt deze categorie\xEBn naar wens toevoegen of verwijderen.",add_new_category:"Voeg een nieuwe categorie toe",add_category:"categorie toevoegen",edit_category:"Categorie bewerken",category_name:"categorie naam",category_description:"Omschrijving",created_message:"Onkostencategorie succesvol aangemaakt",deleted_message:"Uitgavencategorie is verwijderd",updated_message:"Uitgavencategorie is bijgewerkt",confirm_delete:"U kunt deze uitgavencategorie niet herstellen",already_in_use:"Categorie al in gebruik"},preferences:{currency:"Valuta",default_language:"Standaard taal",time_zone:"Tijdzone",fiscal_year:"Financieel jaar",date_format:"Datumnotatie",discount_setting:"Kortingsinstelling",discount_per_item:"Korting per item",discount_setting_description:"Schakel dit in als u korting wilt toevoegen aan afzonderlijke factuuritems.\xA0Standaard wordt korting rechtstreeks aan de factuur toegevoegd.",save:"Opslaan",preference:"Voorkeur |\xA0Voorkeuren",general_settings:"Standaardvoorkeuren voor het systeem.",updated_message:"Voorkeuren succesvol bijgewerkt",select_language:"Selecteer taal",select_time_zone:"Selecteer Tijdzone",select_date_format:"Selecteer datum/tijdindeling",select_financial_year:"Selecteer financieel ja"},update_app:{title:"App bijwerken",description:"U kunt Crater eenvoudig bijwerken door te controleren op een nieuwe update door op de onderstaande knop te klikken",check_update:"Controleer op updates",avail_update:"Nieuwe update beschikbaar",next_version:"Volgende versie",requirements:"Vereisten",update:"Nu updaten",update_progress:"Update wordt uitgevoerd...",progress_text:"Het duurt maar een paar minuten.\xA0Vernieuw het scherm niet en sluit het venster niet voordat de update is voltooid",update_success:"App is bijgewerkt!\xA0Een ogenblik geduld, uw browservenster wordt automatisch opnieuw geladen.",latest_message:"Geen update beschikbaar!\xA0U gebruikt de nieuwste versie.",current_version:"Huidige versie",download_zip_file:"Download ZIP-bestand",unzipping_package:"Pakket uitpakken",copying_files:"Bestanden kopi\xEBren",running_migrations:"Migraties uitvoeren",finishing_update:"Afwerking Update",update_failed:"Update mislukt",update_failed_text:"Sorry!\xA0Je update is mislukt op: {step} step "},backup:{title:"Backup | Backups",description:"De back-up is een zipfile met alle bestanden in de mappen die je opgeeft samen met een dump van je database",new_backup:"Nieuwe back-up",create_backup:"Backup maken",select_backup_type:"Backup-type selecteren",backup_confirm_delete:"U kunt deze back-up niet terughalen",path:"pad",new_disk:"Nieuwe schijf",created_at:"aangemaakt op",size:"grootte",dropbox:"dropbox",local:"lokaal",healthy:"gezond",amount_of_backups:"aantal back-ups",newest_backups:"nieuwste back-ups",used_storage:"gebruikte opslag",select_disk:"Selecteer Disk",action:"Actie",deleted_message:"Back-up is succesvol verwijderd",created_message:"Back-up successvol gemaakt",invalid_disk_credentials:"Ongeldige inloggegevens voor geselecteerde schijf"},disk:{title:"Bestandsschijf | Bestandsschijven",description:"Standaard gebruikt Crater uw lokale schijf om back-ups, avatars en andere afbeeldingen op te slaan. U kunt indien gewenst meer dan \xE9\xE9n opslaglocatie configureren zoals DigitalOcean, S3 en Dropbox.",created_at:"aangemaakt op",dropbox:"dropbox",name:"Naam",driver:"Stuurprogramma",disk_type:"Type",disk_name:"Naam van de schijf",new_disk:"Nieuwe schijf toevoegen",filesystem_driver:"Filesystem Driver",local_driver:"lokaal besturingsprogramma",local_root:"local Root",public_driver:"Publiek besturingsprogramma",public_root:"Public Root",public_url:"Publieke URL",public_visibility:"Publieke zichtbaarheid",media_driver:"Media stuurprogramma",media_root:"Media Root",aws_driver:"AWS Stuurprogramma",aws_key:"AWS Sleutel",aws_secret:"AWS Secret",aws_region:"AWS Regio",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces Key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Regio",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Standaard stuurprogramma",is_default:"IS STANDAARD",set_default_disk:"Standaardschijf instellen",success_set_default_disk:"Standaardschijf ingesteld",save_pdf_to_disk:"PDF's opslaan op schijf",disk_setting_description:" Schakel dit in als je een kopie van elke factuur, raming en betalingsbewijs automatisch op je standaard schijf wilt opslaan. Het inschakelen van deze optie zal de laadtijd verminderen wanneer de PDF's worden bekeken.",select_disk:"Selecteer Schijf",disk_settings:"Schijfinstellingen",confirm_delete:"Uw bestaande bestanden en mappen in de opgegeven schijf worden niet be\xEFnvloed, maar uw schijfconfiguratie wordt uit Crater verwijderd",action:"Actie",edit_file_disk:"Bestandsschijf bewerken",success_create:"Schijf toegevoegd",success_update:"Schijf bijgewerkt",error:"Schijf niet toegevoegd",deleted_message:"Bestandsschijf verwijderd",disk_variables_save_successfully:"Schijf geconfigureerd",disk_variables_save_error:"Schijfconfiguratie mislukt.",invalid_disk_credentials:"Ongeldige inloggegevens voor geselecteerde schijf"}},yp={account_info:"Account Informatie",account_info_desc:"Onderstaande gegevens worden gebruikt om het hoofdbeheerdersaccount te maken.\xA0Ook kunt u de gegevens op elk moment wijzigen na inloggen.",name:"Naam",email:"E-mail",password:"Wachtwoord",confirm_password:"bevestig wachtwoord",save_cont:"Opslaan doorgaan",company_info:"Bedrijfsinformatie",company_info_desc:"Deze informatie wordt weergegeven op facturen.\xA0Merk op dat u dit later op de instellingenpagina kunt bewerken.",company_name:"Bedrijfsnaam",company_logo:"Bedrijfslogo",logo_preview:"Logo Voorbeeld",preferences:"Voorkeuren",preferences_desc:"Standaardvoorkeuren voor het systeem.",country:"Land",state:"Provincie",city:"Stad",address:"Adres",street:"Straat1 |\xA0Straat # 2",phone:"Telefoon",zip_code:"Postcode",go_back:"Ga terug",currency:"Valuta",language:"Taal",time_zone:"Tijdzone",fiscal_year:"Financieel jaar",date_format:"Datumnotatie",from_address:"Van adres",username:"Gebruikersnaam",next:"De volgende",continue:"Doorgaan met",skip:"Overslaan",database:{database:"Site-URL en database",connection:"Database verbinding",host:"Database host",port:"Databasepoort",password:"Database wachtwoord",app_url:"App-URL",app_domain:"App Domein",username:"Database gebruikersnaam",db_name:"Database naam",db_path:"Databankpad",desc:"Maak een database op uw server en stel de referenties in via het onderstaande formulier."},permissions:{permissions:"Rechten",permission_confirm_title:"Weet je zeker dat je door wilt gaan?",permission_confirm_desc:"Controle van maprechten is mislukt",permission_desc:"Hieronder vindt u de lijst met mapmachtigingen die vereist zijn om de app te laten werken.\xA0Als de machtigingscontrole mislukt, moet u de mapmachtigingen bijwerken."},mail:{host:"E-mail server",port:"E-mail Poort",driver:"Mail-stuurprogramma",secret:"Geheim",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domein",mailgun_endpoint:"Mailgun-eindpunt",ses_secret:"SES Secret",ses_key:"SES-sleutel",password:"Mail wachtwoord",username:"Mail gebruikersnaam",mail_config:"E-mailconfiguratie",from_name:"Van Mail Name",from_mail:"Van e-mailadres",encryption:"E-mailversleuteling",mail_config_desc:"Hieronder vindt u het formulier voor het configureren van het e-mailstuurprogramma voor het verzenden van e-mails vanuit de app.\xA0U kunt ook externe providers zoals Sendgrid, SES enz. Configureren."},req:{system_req:"systeem vereisten",php_req_version:"PHP (versie {versie} vereist))",check_req:"Controleer vereisten",system_req_desc:"Crater heeft een paar serververeisten.\xA0Zorg ervoor dat uw server de vereiste php-versie heeft en alle onderstaande extensies."},errors:{migrate_failed:"Migreren mislukt",database_variables_save_error:"Kan configuratie niet schrijven naar .env-bestand.\xA0Controleer de bestandsrechten",mail_variables_save_error:"E-mailconfiguratie is mislukt.",connection_failed:"Databaseverbinding mislukt",database_should_be_empty:"Database moet leeg zijn"},success:{mail_variables_save_successfully:"E-mail succesvol geconfigureerd",database_variables_save_successfully:"Database succesvol geconfigureerd."}},bp={invalid_phone:"Ongeldig Telefoonnummer",invalid_url:"Ongeldige URL (bijvoorbeeld: http://www.craterapp.com))",invalid_domain_url:"Ongeldige URL (bijvoorbeeld: craterapp.com))",required:"Veld is verplicht",email_incorrect:"Incorrecte Email.",email_already_taken:"De email is al in gebruik.",email_does_not_exist:"Gebruiker met opgegeven e-mailadres bestaat niet",item_unit_already_taken:"De naam van dit item is al in gebruik",payment_mode_already_taken:"Deze naam voor de betalingsmodus is al in gebruik",send_reset_link:"Stuur resetlink",not_yet:"Nog niet?\xA0Stuur het opnieuw",password_min_length:"Wachtwoord moet {count} tekens bevatten",name_min_length:"Naam moet minimaal {count} letters bevatten.",enter_valid_tax_rate:"Voer een geldig belastingtarief in",numbers_only:"Alleen nummers.",characters_only:"Alleen tekens.",password_incorrect:"Wachtwoorden moeten identiek zijn",password_length:"Wachtwoord moet {count} tekens lang zijn.",qty_must_greater_than_zero:"Hoeveelheid moet groter zijn dan nul.",price_greater_than_zero:"Prijs moet groter zijn dan nul.",payment_greater_than_zero:"De betaling moet hoger zijn dan nul.",payment_greater_than_due_amount:"Ingevoerde betaling is meer dan het openstaande bedrag van deze factuur.",quantity_maxlength:"Het aantal mag niet groter zijn dan 20 cijfers.",price_maxlength:"Prijs mag niet groter zijn dan 20 cijfers.",price_minvalue:"Prijs moet hoger zijn dan 0.",amount_maxlength:"Bedrag mag niet groter zijn dan 20 cijfers.",amount_minvalue:"Bedrag moet groter zijn dan 0.",description_maxlength:"De beschrijving mag niet meer dan 255 tekens bevatten.",subject_maxlength:"Het onderwerp mag niet meer dan 100 tekens bevatten.",message_maxlength:"Bericht mag niet groter zijn dan 255 tekens.",maximum_options_error:"Maximaal {max} opties geselecteerd.\xA0Verwijder eerst een geselecteerde optie om een andere te selecteren.",notes_maxlength:"Notities mogen niet langer zijn dan 255 tekens.",address_maxlength:"Adres mag niet groter zijn dan 255 tekens.",ref_number_maxlength:"Ref-nummer mag niet groter zijn dan 255 tekens.",prefix_maxlength:"Het voorvoegsel mag niet meer dan 5 tekens bevatten.",something_went_wrong:"Er is iets fout gegaan"},kp="Offerte",wp="Offerte nummer",xp="Offerte Datum",zp="Vervaldatum",Sp="Factuur",jp="Factuurnummer",Pp="Factuur datum",Dp="Opleveringsdatum",Cp="Opmerkingen",Ap="Artikelen",Ep="Aantal stuks",Np="Prijs",Tp="Korting",Ip="Bedrag",$p="Subtotaal",Rp="Totaal",Fp="Payment",Mp="Betalingsafschrift",Vp="Betalingsdatum",Bp="Betalingsnummer",Op="Betaalmethode",Lp="Ontvangen bedrag",Up="UITGAVEN RAPPORT",Kp="TOTALE UITGAVEN",qp="WINST & VERLIES RAPPORT",Zp="Sales Customer Report",Wp="Sales Item Report",Hp="Tax Summary Report",Gp="INKOMEN",Yp="NETTO WINST",Jp="Verkooprapport: per klant",Xp="TOTALE VERKOPEN",Qp="Verkooprapport: Per Item",eg="BELASTINGEN RAPPORT",tg="TOTALE BELASTINGEN",ag="Belastingtypen",sg="Uitgaven",ng="Rekening naar,",ig="Verzend naar,",og="Ontvangen van:",rg="Tax";var dg={navigation:np,general:ip,dashboard:op,tax_types:rp,global_search:dp,customers:lp,items:cp,estimates:_p,invoices:up,payments:mp,expenses:pp,login:gp,users:fp,reports:hp,settings:vp,wizard:yp,validation:bp,pdf_estimate_label:kp,pdf_estimate_number:wp,pdf_estimate_date:xp,pdf_estimate_expire_date:zp,pdf_invoice_label:Sp,pdf_invoice_number:jp,pdf_invoice_date:Pp,pdf_invoice_due_date:Dp,pdf_notes:Cp,pdf_items_label:Ap,pdf_quantity_label:Ep,pdf_price_label:Np,pdf_discount_label:Tp,pdf_amount_label:Ip,pdf_subtotal:$p,pdf_total:Rp,pdf_payment_label:Fp,pdf_payment_receipt_label:Mp,pdf_payment_date:Vp,pdf_payment_number:Bp,pdf_payment_mode:Op,pdf_payment_amount_received_label:Lp,pdf_expense_report_label:Up,pdf_total_expenses_label:Kp,pdf_profit_loss_label:qp,pdf_sales_customers_label:Zp,pdf_sales_items_label:Wp,pdf_tax_summery_label:Hp,pdf_income_label:Gp,pdf_net_profit_label:Yp,pdf_customer_sales_report:Jp,pdf_total_sales_label:Xp,pdf_item_sales_label:Qp,pdf_tax_report_label:eg,pdf_total_tax_label:tg,pdf_tax_types_label:ag,pdf_expenses_label:sg,pdf_bill_to:ng,pdf_ship_to:ig,pdf_received_from:og,pdf_tax_label:rg};const lg={dashboard:"\uACC4\uAE30\uBC18",customers:"\uACE0\uAC1D",items:"\uC544\uC774\uD15C",invoices:"\uC1A1\uC7A5",expenses:"\uACBD\uBE44",estimates:"\uACAC\uC801",payments:"\uC9C0\uBD88",reports:"\uBCF4\uACE0\uC11C",settings:"\uC124\uC815",logout:"\uB85C\uADF8 \uC544\uC6C3",users:"\uC0AC\uC6A9\uC790"},cg={add_company:"\uD68C\uC0AC \uCD94\uAC00",view_pdf:"PDF\uBCF4\uAE30",copy_pdf_url:"PDF URL \uBCF5\uC0AC",download_pdf:"PDF \uB2E4\uC6B4\uB85C\uB4DC",save:"\uC800\uC7A5",create:"\uCC3D\uC870\uD558\uB2E4",cancel:"\uCDE8\uC18C",update:"\uCD5C\uC2E0 \uC815\uBCF4",deselect:"\uC120\uD0DD \uCDE8\uC18C",download:"\uB2E4\uC6B4\uB85C\uB4DC",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from:"\uC5D0\uC11C",to:"\uC5D0",sort_by:"\uC815\uB82C \uAE30\uC900",ascending:"\uC624\uB984\uCC28\uC21C",descending:"\uB0B4\uB9BC\uCC28\uC21C",subject:"\uC81C\uBAA9",body:"\uBAB8",message:"\uBA54\uC2DC\uC9C0",send:"\uBCF4\uB0B4\uB2E4",go_back:"\uB3CC\uC544 \uAC00\uAE30",back_to_login:"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",home:"\uC9D1",filter:"\uD544\uD130",delete:"\uC9C0\uC6B0\uB2E4",edit:"\uD3B8\uC9D1\uD558\uB2E4",view:"\uC804\uB9DD",add_new_item:"\uC0C8 \uD56D\uBAA9 \uCD94\uAC00",clear_all:"\uBAA8\uB450 \uC9C0\uC6B0\uAE30",showing:"\uC804\uC2DC",of:"\uC758",actions:"\uD589\uC704",subtotal:"\uC18C\uACC4",discount:"\uD560\uC778",fixed:"\uACB0\uC815\uB41C",percentage:"\uBC31\uBD84\uC728",tax:"\uC138",total_amount:"\uCD1D\uC561",bill_to:"\uCCAD\uAD6C \uB300\uC0C1",ship_to:"\uBC30\uC1A1\uC9C0",due:"\uC815\uB2F9\uD55C",draft:"\uCD08\uC548",sent:"\uBCF4\uB0C4",all:"\uBAA8\uB450",select_all:"\uBAA8\uB450 \uC120\uD0DD",choose_file:"\uD30C\uC77C\uC744 \uC120\uD0DD\uD558\uB824\uBA74 \uC5EC\uAE30\uB97C \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624",choose_template:"\uD15C\uD50C\uB9BF \uC120\uD0DD",choose:"\uACE0\uB974\uB2E4",remove:"\uC5C6\uC560\uB2E4",powered_by:"\uC81C\uACF5",bytefury:"\uBC14\uC774\uD2B8 \uD4E8\uB9AC",select_a_status:"\uC0C1\uD0DC \uC120\uD0DD",select_a_tax:"\uC138\uAE08 \uC120\uD0DD",search:"\uAC80\uC0C9",are_you_sure:"\uD655\uC2E4\uD569\uB2C8\uAE4C?",list_is_empty:"\uBAA9\uB85D\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",no_tax_found:"\uC138\uAE08\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",four_zero_four:"404",you_got_lost:"\uC774\uB7F0! \uB2F9\uC2E0\uC740 \uAE38\uC744 \uC783\uC5C8\uC2B5\uB2C8\uB2E4!",go_home:"\uC9D1\uC5D0\uAC00",test_mail_conf:"\uBA54\uC77C \uAD6C\uC131 \uD14C\uC2A4\uD2B8",send_mail_successfully:"\uBA54\uC77C\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uBCF4\uB0C8\uC2B5\uB2C8\uB2E4.",setting_updated:"\uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",select_state:"\uC8FC \uC120\uD0DD",select_country:"\uAD6D\uAC00 \uC120\uD0DD",select_city:"\uB3C4\uC2DC \uC120\uD0DD",street_1:"\uAC70\uB9AC 1",street_2:"\uAC70\uB9AC 2",action_failed:"\uC791\uC5C5 \uC2E4\uD328",retry:"\uB2E4\uC2DC \uD574 \uBCF4\uB2E4",choose_note:"\uCC38\uACE0 \uC120\uD0DD",no_note_found:"\uBA54\uBAA8\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",insert_note:"\uBA54\uBAA8 \uC0BD\uC785",copied_pdf_url_clipboard:"PDF URL\uC744 \uD074\uB9BD \uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4!"},_g={select_year:"\uC5F0\uB3C4 \uC120\uD0DD",cards:{due_amount:"\uC9C0\uBD88\uC561",customers:"\uACE0\uAC1D",invoices:"\uC1A1\uC7A5",estimates:"\uACAC\uC801"},chart_info:{total_sales:"\uB9E4\uC0C1",total_receipts:"\uC601\uC218\uC99D",total_expense:"\uACBD\uBE44",net_income:"\uC21C\uC774\uC775",year:"\uC5F0\uB3C4 \uC120\uD0DD"},monthly_chart:{title:"\uB9E4\uC0C1"},recent_invoices_card:{title:"\uB9CC\uAE30 \uC1A1\uC7A5",due_on:"\uAE30\uD55C",customer:"\uACE0\uAC1D",amount_due:"\uC9C0\uBD88\uC561",actions:"\uD589\uC704",view_all:"\uBAA8\uB450\uBCF4\uAE30"},recent_estimate_card:{title:"\uCD5C\uADFC \uACAC\uC801",date:"\uB370\uC774\uD2B8",customer:"\uACE0\uAC1D",amount_due:"\uC9C0\uBD88\uC561",actions:"\uD589\uC704",view_all:"\uBAA8\uB450\uBCF4\uAE30"}},ug={name:"\uC774\uB984",description:"\uAE30\uC220",percent:"\uD37C\uC13C\uD2B8",compound_tax:"\uBCF5\uD569 \uC138"},mg={search:"\uAC80\uC0C9...",customers:"\uACE0\uAC1D",users:"\uC0AC\uC6A9\uC790",no_results_found:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4"},pg={title:"\uACE0\uAC1D",add_customer:"\uACE0\uAC1D \uCD94\uAC00",contacts_list:"\uACE0\uAC1D \uBAA9\uB85D",name:"\uC774\uB984",mail:"\uBA54\uC77C | \uBA54\uC77C",statement:"\uC131\uBA85\uC11C",display_name:"\uC774\uB984 \uD45C\uC2DC\uD558\uAE30",primary_contact_name:"\uAE30\uBCF8 \uC5F0\uB77D\uCC98 \uC774\uB984",contact_name:"\uB2F4\uB2F9\uC790 \uC774\uB984",amount_due:"\uC9C0\uBD88\uC561",email:"\uC774\uBA54\uC77C",address:"\uC8FC\uC18C",phone:"\uC804\uD654",website:"\uC6F9 \uC0AC\uC774\uD2B8",overview:"\uAC1C\uC694",enable_portal:"\uD3EC\uD138 \uD65C\uC131\uD654",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",zip_code:"\uC6B0\uD3B8 \uBC88\uD638",added_on:"\uCD94\uAC00\uB428",action:"\uB3D9\uC791",password:"\uC554\uD638",street_number:"\uBC88\uC9C0",primary_currency:"\uAE30\uBCF8 \uD1B5\uD654",description:"\uAE30\uC220",add_new_customer:"\uC2E0\uADDC \uACE0\uAC1D \uCD94\uAC00",save_customer:"\uACE0\uAC1D \uC800\uC7A5",update_customer:"\uACE0\uAC1D \uC5C5\uB370\uC774\uD2B8",customer:"\uACE0\uAC1D | \uACE0\uAC1D",new_customer:"\uC2E0\uADDC \uACE0\uAC1D",edit_customer:"\uACE0\uAC1D \uD3B8\uC9D1",basic_info:"\uAE30\uBCF8 \uC815\uBCF4",billing_address:"\uCCAD\uAD6C \uC9C0 \uC8FC\uC18C",shipping_address:"\uBC30\uC1A1 \uC8FC\uC18C",copy_billing_address:"\uACB0\uC81C\uC5D0\uC11C \uBCF5\uC0AC",no_customers:"\uC544\uC9C1 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",no_customers_found:"\uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",no_contact:"\uC5F0\uB77D\uCC98 \uC5C6\uC74C",no_contact_name:"\uC5F0\uB77D\uCC98 \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",list_of_customers:"\uC774 \uC139\uC158\uC5D0\uB294 \uACE0\uAC1D \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",primary_display_name:"\uAE30\uBCF8 \uD45C\uC2DC \uC774\uB984",select_currency:"\uD1B5\uD654 \uC120\uD0DD",select_a_customer:"\uACE0\uAC1D \uC120\uD0DD",type_or_click:"\uC785\uB825\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD",new_transaction:"\uC0C8\uB85C\uC6B4 \uAC70\uB798",no_matching_customers:"\uC77C\uCE58\uD558\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",phone_number:"\uC804\uD654 \uBC88\uD638",create_date:"\uB0A0\uC9DC \uC0DD\uC131",confirm_delete:"\uC774 \uACE0\uAC1D\uACFC \uBAA8\uB4E0 \uAD00\uB828 \uC1A1\uC7A5, \uACAC\uC801 \uBC0F \uC9C0\uBD88\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uACE0\uAC1D \uBC0F \uBAA8\uB4E0 \uAD00\uB828 \uCCAD\uAD6C\uC11C, \uACAC\uC801 \uBC0F \uC9C0\uBD88\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uD588\uC2B5\uB2C8\uB2E4.",deleted_message:"\uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},gg={title:"\uC544\uC774\uD15C",items_list:"\uD488\uBAA9 \uBAA9\uB85D",name:"\uC774\uB984",unit:"\uB2E8\uC704",description:"\uAE30\uC220",added_on:"\uCD94\uAC00\uB428",price:"\uAC00\uACA9",date_of_creation:"\uC0DD\uC131 \uC77C",not_selected:"\uC120\uD0DD\uD55C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",action:"\uB3D9\uC791",add_item:"\uC544\uC774\uD15C \uCD94\uAC00",save_item:"\uD56D\uBAA9 \uC800\uC7A5",update_item:"\uD56D\uBAA9 \uC5C5\uB370\uC774\uD2B8",item:"\uD56D\uBAA9 | \uC544\uC774\uD15C",add_new_item:"\uC0C8 \uD56D\uBAA9 \uCD94\uAC00",new_item:"\uC0C8\uB85C\uC6B4 \uBB3C\uD488",edit_item:"\uD56D\uBAA9 \uD3B8\uC9D1",no_items:"\uC544\uC9C1 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_items:"\uC774 \uC139\uC158\uC5D0\uB294 \uD56D\uBAA9 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",select_a_unit:"\uB2E8\uC704 \uC120\uD0DD",taxes:"\uAD6C\uC2E4",item_attached_message:"\uC774\uBBF8 \uC0AC\uC6A9\uC911\uC778 \uD56D\uBAA9\uC740 \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uD56D\uBAA9\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774 \uD56D\uBAA9\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},fg={title:"\uACAC\uC801",estimate:"\uACAC\uC801 | \uACAC\uC801",estimates_list:"\uACAC\uC801 \uBAA9\uB85D",days:"{days} \uC77C",months:"{months} \uAC1C\uC6D4",years:"{years} \uB144",all:"\uBAA8\uB450",paid:"\uC720\uB8CC",unpaid:"\uBBF8\uC9C0\uAE09",customer:"\uACE0\uAC1D",ref_no:"\uCC38\uC870 \uBC88\uD638.",number:"\uBC88\uD638",amount_due:"\uC9C0\uBD88\uC561",partially_paid:"\uBD80\uBD84 \uC9C0\uBD88",total:"\uD569\uACC4",discount:"\uD560\uC778",sub_total:"\uC18C\uACC4",estimate_number:"\uACAC\uC801 \uBC88\uD638",ref_number:"\uCC38\uC870 \uBC88\uD638",contact:"\uC811\uCD09",add_item:"\uD56D\uBAA9 \uCD94\uAC00",date:"\uB370\uC774\uD2B8",due_date:"\uB9C8\uAC10\uC77C",expiry_date:"\uB9CC\uB8CC\uC77C",status:"\uC0C1\uD0DC",add_tax:"\uC138\uAE08 \uCD94\uAC00",amount:"\uC591",action:"\uB3D9\uC791",notes:"\uB178\uD2B8",tax:"\uC138",estimate_template:"\uC8FC\uD615",convert_to_invoice:"\uC1A1\uC7A5\uC73C\uB85C \uBCC0\uD658",mark_as_sent:"\uBCF4\uB0B8 \uAC83\uC73C\uB85C \uD45C\uC2DC",send_estimate:"\uACAC\uC801 \uBCF4\uB0B4\uAE30",resend_estimate:"\uACAC\uC801 \uC7AC\uC804\uC1A1",record_payment:"\uAE30\uB85D \uC9C0\uBD88",add_estimate:"\uACAC\uC801 \uCD94\uAC00",save_estimate:"\uACAC\uC801 \uC800\uC7A5",confirm_conversion:"\uC774 \uACAC\uC801\uC740 \uC0C8 \uC778\uBCF4\uC774\uC2A4\uB97C \uB9CC\uB4DC\uB294 \uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",conversion_message:"\uC778\uBCF4\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",confirm_send_estimate:"\uC774 \uACAC\uC801\uC740 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uC804\uC1A1\uB429\uB2C8\uB2E4.",confirm_mark_as_sent:"\uC774 \uACAC\uC801\uC740 \uC804\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_mark_as_accepted:"\uC774 \uACAC\uC801\uC740 \uC218\uB77D \uB428\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_mark_as_rejected:"\uC774 \uACAC\uC801\uC740 \uAC70\uBD80 \uB428\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",no_matching_estimates:"\uC77C\uCE58\uD558\uB294 \uACAC\uC801\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",mark_as_sent_successfully:"\uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uACAC\uC801",send_estimate_successfully:"\uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",errors:{required:"\uD544\uB4DC\uB294 \uD544\uC218\uC785\uB2C8\uB2E4"},accepted:"\uC218\uB77D \uB428",rejected:"\uAC70\uBD80 \uB428",sent:"\uBCF4\uB0C4",draft:"\uCD08\uC548",declined:"\uAC70\uBD80 \uB428",new_estimate:"\uC0C8\uB85C\uC6B4 \uACAC\uC801",add_new_estimate:"\uC0C8\uB85C\uC6B4 \uACAC\uC801 \uCD94\uAC00",update_Estimate:"\uACAC\uC801 \uC5C5\uB370\uC774\uD2B8",edit_estimate:"\uACAC\uC801 \uC218\uC815",items:"\uD56D\uBAA9",Estimate:"\uACAC\uC801 | \uACAC\uC801",add_new_tax:"\uC0C8 \uC138\uAE08 \uCD94\uAC00",no_estimates:"\uC544\uC9C1 \uACAC\uC801\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_estimates:"\uC774 \uC139\uC158\uC5D0\uB294 \uACAC\uC801 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",mark_as_rejected:"\uAC70\uBD80 \uB428\uC73C\uB85C \uD45C\uC2DC",mark_as_accepted:"\uC218\uB77D \uB428\uC73C\uB85C \uD45C\uC2DC",marked_as_accepted_message:"\uC218\uB77D \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uACAC\uC801",marked_as_rejected_message:"\uAC70\uBD80 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uACAC\uC801",confirm_delete:"\uC774 \uACAC\uC801\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774 \uACAC\uC801\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC608\uC0C1\uCE58\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4",item:{title:"\uD56D\uBAA9 \uC81C\uBAA9",description:"\uAE30\uC220",quantity:"\uC218\uB7C9",price:"\uAC00\uACA9",discount:"\uD560\uC778",total:"\uD569\uACC4",total_discount:"\uCD1D \uD560\uC778",sub_total:"\uC18C\uACC4",tax:"\uC138",amount:"\uC591",select_an_item:"\uD56D\uBAA9\uC744 \uC785\uB825\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD",type_item_description:"\uC720\uD615 \uD56D\uBAA9 \uC124\uBA85 (\uC120\uD0DD \uC0AC\uD56D)"}},hg={title:"\uC1A1\uC7A5",invoices_list:"\uC1A1\uC7A5 \uBAA9\uB85D",days:"{days} \uC77C",months:"{months} \uAC1C\uC6D4",years:"{years} \uB144",all:"\uBAA8\uB450",paid:"\uC720\uB8CC",unpaid:"\uBBF8\uC9C0\uAE09",viewed:"\uC870\uD68C",overdue:"\uC5F0\uCCB4",completed:"\uC644\uB8CC",customer:"\uACE0\uAC1D",paid_status:"\uC9C0\uBD88 \uC0C1\uD0DC",ref_no:"\uCC38\uC870 \uBC88\uD638.",number:"\uBC88\uD638",amount_due:"\uC9C0\uBD88\uC561",partially_paid:"\uBD80\uBD84 \uC9C0\uBD88",total:"\uD569\uACC4",discount:"\uD560\uC778",sub_total:"\uC18C\uACC4",invoice:"\uC1A1\uC7A5 | \uC1A1\uC7A5",invoice_number:"\uC1A1\uC7A5 \uBC88\uD638",ref_number:"\uCC38\uC870 \uBC88\uD638",contact:"\uC811\uCD09",add_item:"\uD56D\uBAA9 \uCD94\uAC00",date:"\uB370\uC774\uD2B8",due_date:"\uB9C8\uAC10\uC77C",status:"\uC0C1\uD0DC",add_tax:"\uC138\uAE08 \uCD94\uAC00",amount:"\uC591",action:"\uB3D9\uC791",notes:"\uB178\uD2B8",view:"\uC804\uB9DD",send_invoice:"\uC1A1\uC7A5\uC744 \uBCF4\uB0B4\uB2E4",resend_invoice:"\uC778\uBCF4\uC774\uC2A4 \uC7AC\uC804\uC1A1",invoice_template:"\uC1A1\uC7A5 \uD15C\uD50C\uB9BF",template:"\uC8FC\uD615",mark_as_sent:"\uBCF4\uB0B8 \uAC83\uC73C\uB85C \uD45C\uC2DC",confirm_send_invoice:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB294 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uBC1C\uC1A1\uB429\uB2C8\uB2E4.",invoice_mark_as_sent:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB294 \uBCF4\uB0B8 \uAC83\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_send:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB294 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uBC1C\uC1A1\uB429\uB2C8\uB2E4.",invoice_date:"\uC1A1\uC7A5 \uB0A0\uC9DC",record_payment:"\uAE30\uB85D \uC9C0\uBD88",add_new_invoice:"\uC0C8 \uC1A1\uC7A5 \uCD94\uAC00",update_expense:"\uBE44\uC6A9 \uC5C5\uB370\uC774\uD2B8",edit_invoice:"\uC1A1\uC7A5 \uD3B8\uC9D1",new_invoice:"\uC0C8 \uC1A1\uC7A5",save_invoice:"\uC1A1\uC7A5 \uC800\uC7A5",update_invoice:"\uC1A1\uC7A5 \uC5C5\uB370\uC774\uD2B8",add_new_tax:"\uC0C8 \uC138\uAE08 \uCD94\uAC00",no_invoices:"\uC544\uC9C1 \uC778\uBCF4\uC774\uC2A4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_invoices:"\uC774 \uC139\uC158\uC5D0\uB294 \uC1A1\uC7A5 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",select_invoice:"\uC1A1\uC7A5 \uC120\uD0DD",no_matching_invoices:"\uC77C\uCE58\uD558\uB294 \uC1A1\uC7A5\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",mark_as_sent_successfully:"\uC131\uACF5\uC801\uC73C\uB85C \uBC1C\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uC1A1\uC7A5",invoice_sent_successfully:"\uC778\uBCF4\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",cloned_successfully:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uBCF5\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",clone_invoice:"\uC1A1\uC7A5 \uBCF5\uC81C",confirm_clone:"\uC774 \uC1A1\uC7A5\uC740 \uC0C8 \uC1A1\uC7A5\uC5D0 \uBCF5\uC81C\uB429\uB2C8\uB2E4.",item:{title:"\uD56D\uBAA9 \uC81C\uBAA9",description:"\uAE30\uC220",quantity:"\uC218\uB7C9",price:"\uAC00\uACA9",discount:"\uD560\uC778",total:"\uD569\uACC4",total_discount:"\uCD1D \uD560\uC778",sub_total:"\uC18C\uACC4",tax:"\uC138",amount:"\uC591",select_an_item:"\uD56D\uBAA9\uC744 \uC785\uB825\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD",type_item_description:"\uC720\uD615 \uD56D\uBAA9 \uC124\uBA85 (\uC120\uD0DD \uC0AC\uD56D)"},confirm_delete:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uC778\uBCF4\uC774\uC2A4\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uC778\uBCF4\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",marked_as_sent_message:"\uC131\uACF5\uC801\uC73C\uB85C \uBC1C\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uC1A1\uC7A5",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4",invalid_due_amount_message:"\uCD1D \uC1A1\uC7A5 \uAE08\uC561\uC740\uC774 \uC1A1\uC7A5\uC5D0 \uB300\uD55C \uCD1D \uC9C0\uBD88 \uAE08\uC561\uBCF4\uB2E4 \uC791\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uB824\uBA74 \uC778\uBCF4\uC774\uC2A4\uB97C \uC5C5\uB370\uC774\uD2B8\uD558\uAC70\uB098 \uAD00\uB828 \uACB0\uC81C\uB97C \uC0AD\uC81C\uD558\uC138\uC694."},vg={title:"\uC9C0\uBD88",payments_list:"\uC9C0\uBD88 \uBAA9\uB85D",record_payment:"\uAE30\uB85D \uC9C0\uBD88",customer:"\uACE0\uAC1D",date:"\uB370\uC774\uD2B8",amount:"\uC591",action:"\uB3D9\uC791",payment_number:"\uACB0\uC81C \uBC88\uD638",payment_mode:"\uC9C0\uBD88 \uBAA8\uB4DC",invoice:"\uC1A1\uC7A5",note:"\uB178\uD2B8",add_payment:"\uC9C0\uBD88 \uCD94\uAC00",new_payment:"\uC0C8\uB85C\uC6B4 \uC9C0\uBD88",edit_payment:"\uACB0\uC81C \uC218\uC815",view_payment:"\uACB0\uC81C\uBCF4\uAE30",add_new_payment:"\uC0C8 \uC9C0\uBD88 \uCD94\uAC00",send_payment_receipt:"\uACB0\uC81C \uC601\uC218\uC99D \uBCF4\uB0B4\uAE30",send_payment:"\uC9C0\uBD88 \uBCF4\uB0B4\uAE30",save_payment:"\uC9C0\uBD88 \uC800\uC7A5",update_payment:"\uACB0\uC81C \uC5C5\uB370\uC774\uD2B8",payment:"\uC9C0\uBD88 | \uC9C0\uBD88",no_payments:"\uC544\uC9C1 \uACB0\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4!",not_selected:"\uC120\uD0DD\uB418\uC9C0 \uC54A\uC740",no_invoice:"\uC1A1\uC7A5 \uC5C6\uC74C",no_matching_payments:"\uC77C\uCE58\uD558\uB294 \uC9C0\uBD88\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_payments:"\uC774 \uC139\uC158\uC5D0\uB294 \uC9C0\uBD88 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",select_payment_mode:"\uACB0\uC81C \uBAA8\uB4DC \uC120\uD0DD",confirm_mark_as_sent:"\uC774 \uACAC\uC801\uC740 \uC804\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_send_payment:"\uC774 \uACB0\uC81C\uB294 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uC804\uC1A1\uB429\uB2C8\uB2E4.",send_payment_successfully:"\uC9C0\uBD88\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4",confirm_delete:"\uC774 \uC9C0\uBD88\uAE08\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774 \uC9C0\uAE09\uAE08\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",invalid_amount_message:"\uACB0\uC81C \uAE08\uC561\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},yg={title:"\uACBD\uBE44",expenses_list:"\uBE44\uC6A9 \uBAA9\uB85D",select_a_customer:"\uACE0\uAC1D \uC120\uD0DD",expense_title:"\uD45C\uC81C",customer:"\uACE0\uAC1D",contact:"\uC811\uCD09",category:"\uBC94\uC8FC",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",to_date:"\uD604\uC7AC\uAE4C\uC9C0",expense_date:"\uB370\uC774\uD2B8",description:"\uAE30\uC220",receipt:"\uC601\uC218\uC99D",amount:"\uC591",action:"\uB3D9\uC791",not_selected:"\uC120\uD0DD\uB418\uC9C0 \uC54A\uC740",note:"\uB178\uD2B8",category_id:"\uCE74\uD14C\uACE0\uB9AC ID",date:"\uB370\uC774\uD2B8",add_expense:"\uBE44\uC6A9 \uCD94\uAC00",add_new_expense:"\uC2E0\uADDC \uBE44\uC6A9 \uCD94\uAC00",save_expense:"\uBE44\uC6A9 \uC808\uAC10",update_expense:"\uBE44\uC6A9 \uC5C5\uB370\uC774\uD2B8",download_receipt:"\uC601\uC218\uC99D \uB2E4\uC6B4\uB85C\uB4DC",edit_expense:"\uBE44\uC6A9 \uD3B8\uC9D1",new_expense:"\uC0C8\uB85C\uC6B4 \uBE44\uC6A9",expense:"\uBE44\uC6A9 | \uACBD\uBE44",no_expenses:"\uC544\uC9C1 \uBE44\uC6A9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_expenses:"\uC774 \uC139\uC158\uC5D0\uB294 \uBE44\uC6A9 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",confirm_delete:"\uC774 \uBE44\uC6A9\uC744 \uD68C\uC218 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uBE44\uC6A9\uC740 \uD68C\uC218 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",categories:{categories_list:"\uCE74\uD14C\uACE0\uB9AC \uBAA9\uB85D",title:"\uD45C\uC81C",name:"\uC774\uB984",description:"\uAE30\uC220",amount:"\uC591",actions:"\uD589\uC704",add_category:"\uCE74\uD14C\uACE0\uB9AC \uCD94\uAC00",new_category:"\uC0C8 \uBD84\uB958",category:"\uCE74\uD14C\uACE0\uB9AC | \uCE74\uD14C\uACE0\uB9AC",select_a_category:"\uCE74\uD14C\uACE0\uB9AC \uC120\uD0DD"}},bg={email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",forgot_password:"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C \uC168\uB098\uC694?",or_signIn_with:"\uB610\uB294 \uB2E4\uC74C\uC73C\uB85C \uB85C\uADF8\uC778",login:"\uB85C\uADF8\uC778",register:"\uB808\uC9C0\uC2A4\uD130",reset_password:"\uC554\uD638\uB97C \uC7AC\uC124\uC815",password_reset_successfully:"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815 \uC131\uACF5",enter_email:"\uC774\uBA54\uC77C \uC785\uB825",enter_password:"\uC554\uD638\uB97C \uC785\uB825",retype_password:"\uBE44\uBC00\uBC88\uD638 \uC7AC \uC785\uB825"},kg={title:"\uC0AC\uC6A9\uC790",users_list:"\uC0AC\uC6A9\uC790 \uBAA9\uB85D",name:"\uC774\uB984",description:"\uAE30\uC220",added_on:"\uCD94\uAC00\uB428",date_of_creation:"\uC0DD\uC131 \uC77C",action:"\uB3D9\uC791",add_user:"\uC0AC\uC6A9\uC790 \uCD94\uAC00",save_user:"\uC0AC\uC6A9\uC790 \uC800\uC7A5",update_user:"\uC0AC\uC6A9\uC790 \uC5C5\uB370\uC774\uD2B8",user:"\uC0AC\uC6A9\uC790 | \uC0AC\uC6A9\uC790",add_new_user:"\uC0C8 \uC0AC\uC6A9\uC790 \uCD94\uAC00",new_user:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790",edit_user:"\uC0AC\uC6A9\uC790 \uD3B8\uC9D1",no_users:"\uC544\uC9C1 \uC0AC\uC6A9\uC790\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_users:"\uC774 \uC139\uC158\uC5D0\uB294 \uC0AC\uC6A9\uC790 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",email:"\uC774\uBA54\uC77C",phone:"\uC804\uD654",password:"\uC554\uD638",user_attached_message:"\uC774\uBBF8 \uC0AC\uC6A9\uC911\uC778 \uD56D\uBAA9\uC740 \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uC0AC\uC6A9\uC790\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uC0AC\uC6A9\uC790\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},wg={title:"\uBCF4\uACE0\uC11C",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",to_date:"\uD604\uC7AC\uAE4C\uC9C0",status:"\uC0C1\uD0DC",paid:"\uC720\uB8CC",unpaid:"\uBBF8\uC9C0\uAE09",download_pdf:"PDF \uB2E4\uC6B4\uB85C\uB4DC",view_pdf:"PDF\uBCF4\uAE30",update_report:"\uBCF4\uACE0\uC11C \uC5C5\uB370\uC774\uD2B8",report:"\uC2E0\uACE0 | \uBCF4\uACE0\uC11C",profit_loss:{profit_loss:"\uC774\uC775",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",date_range:"\uAE30\uAC04 \uC120\uD0DD"},sales:{sales:"\uB9E4\uC0C1",date_range:"\uAE30\uAC04 \uC120\uD0DD",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",report_type:"\uBCF4\uACE0\uC11C \uC720\uD615"},taxes:{taxes:"\uAD6C\uC2E4",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",date_range:"\uAE30\uAC04 \uC120\uD0DD"},errors:{required:"\uD544\uB4DC\uB294 \uD544\uC218\uC785\uB2C8\uB2E4"},invoices:{invoice:"\uC1A1\uC7A5",invoice_date:"\uC1A1\uC7A5 \uB0A0\uC9DC",due_date:"\uB9C8\uAC10\uC77C",amount:"\uC591",contact_name:"\uB2F4\uB2F9\uC790 \uC774\uB984",status:"\uC0C1\uD0DC"},estimates:{estimate:"\uACAC\uC801",estimate_date:"\uC608\uC0C1 \uB0A0\uC9DC",due_date:"\uB9C8\uAC10\uC77C",estimate_number:"\uACAC\uC801 \uBC88\uD638",ref_number:"\uCC38\uC870 \uBC88\uD638",amount:"\uC591",contact_name:"\uB2F4\uB2F9\uC790 \uC774\uB984",status:"\uC0C1\uD0DC"},expenses:{expenses:"\uACBD\uBE44",category:"\uBC94\uC8FC",date:"\uB370\uC774\uD2B8",amount:"\uC591",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",date_range:"\uAE30\uAC04 \uC120\uD0DD"}},xg={menu_title:{account_settings:"\uACC4\uC815 \uC124\uC815",company_information:"\uD68C\uC0AC \uC815\uBCF4",customization:"\uCEE4\uC2A4\uD130\uB9C8\uC774\uC9D5",preferences:"\uD658\uACBD \uC124\uC815",notifications:"\uC54C\uB9BC",tax_types:"\uC138\uAE08 \uC720\uD615",expense_category:"\uBE44\uC6A9 \uBC94\uC8FC",update_app:"\uC571 \uC5C5\uB370\uC774\uD2B8",backup:"\uC9C0\uC6D0",file_disk:"\uD30C\uC77C \uB514\uC2A4\uD06C",custom_fields:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC",payment_modes:"\uC9C0\uBD88 \uBAA8\uB4DC",notes:"\uB178\uD2B8"},title:"\uC124\uC815",setting:"\uC124\uC815 | \uC124\uC815",general:"\uC77C\uBC18",language:"\uC5B8\uC5B4",primary_currency:"\uAE30\uBCF8 \uD1B5\uD654",timezone:"\uC2DC\uAC04\uB300",date_format:"\uB0A0\uC9DC \uD615\uC2DD",currencies:{title:"\uD1B5\uD654",currency:"\uD1B5\uD654 | \uD1B5\uD654",currencies_list:"\uD1B5\uD654 \uBAA9\uB85D",select_currency:"\uD1B5\uD654 \uC120\uD0DD",name:"\uC774\uB984",code:"\uC554\uD638",symbol:"\uC0C1\uC9D5",precision:"\uC815\uB3C4",thousand_separator:"\uCC9C \uAD6C\uBD84\uC790",decimal_separator:"\uC18C\uC218\uC810 \uAD6C\uBD84 \uAE30\uD638",position:"\uC704\uCE58",position_of_symbol:"\uAE30\uD638 \uC704\uCE58",right:"\uAD8C\uB9AC",left:"\uC67C\uCABD",action:"\uB3D9\uC791",add_currency:"\uD1B5\uD654 \uCD94\uAC00"},mail:{host:"\uBA54\uC77C \uD638\uC2A4\uD2B8",port:"\uBA54\uC77C \uD3EC\uD2B8",driver:"\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84",secret:"\uBE44\uBC00",mailgun_secret:"Mailgun \uBE44\uBC00",mailgun_domain:"\uB3C4\uBA54\uC778",mailgun_endpoint:"Mailgun \uC5D4\uB4DC \uD3EC\uC778\uD2B8",ses_secret:"SES \uBE44\uBC00",ses_key:"SES \uD0A4",password:"\uBA54\uC77C \uBE44\uBC00\uBC88\uD638",username:"\uBA54\uC77C \uC0AC\uC6A9\uC790 \uC774\uB984",mail_config:"\uBA54\uC77C \uAD6C\uC131",from_name:"\uBA54\uC77C \uC774\uB984\uC5D0\uC11C",from_mail:"\uBA54\uC77C \uC8FC\uC18C\uC5D0\uC11C",encryption:"\uBA54\uC77C \uC554\uD638\uD654",mail_config_desc:"\uB2E4\uC74C\uC740 \uC571\uC5D0\uC11C \uC774\uBA54\uC77C\uC744 \uBCF4\uB0B4\uAE30\uC704\uD55C \uC774\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84 \uAD6C\uC131 \uC591\uC2DD\uC785\uB2C8\uB2E4. Sendgrid, SES \uB4F1\uACFC \uAC19\uC740 \uD0C0\uC0AC \uACF5\uAE09\uC790\uB97C \uAD6C\uC131 \uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4."},pdf:{title:"PDF \uC124\uC815",footer_text:"\uBC14\uB2E5 \uAE00 \uD14D\uC2A4\uD2B8",pdf_layout:"PDF \uB808\uC774\uC544\uC6C3"},company_info:{company_info:"\uD68C\uC0AC \uC815\uBCF4",company_name:"\uD68C\uC0AC \uC774\uB984",company_logo:"\uD68C\uC0AC \uB85C\uACE0",section_description:"Crater\uC5D0\uC11C \uC0DD\uC131 \uD55C \uC1A1\uC7A5, \uACAC\uC801 \uBC0F \uAE30\uD0C0 \uBB38\uC11C\uC5D0 \uD45C\uC2DC \uB420 \uD68C\uC0AC\uC5D0 \uB300\uD55C \uC815\uBCF4.",phone:"\uC804\uD654",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",address:"\uC8FC\uC18C",zip:"\uC9C0\uD37C",save:"\uC800\uC7A5",updated_message:"\uD68C\uC0AC \uC815\uBCF4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},custom_fields:{title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC",section_description:"\uC1A1\uC7A5, \uACAC\uC801 \uC0AC\uC6A9\uC790 \uC9C0\uC815",add_custom_field:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC \uCD94\uAC00",edit_custom_field:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC \uD3B8\uC9D1",field_name:"\uBD84\uC57C \uBA85",label:"\uC0C1\uD45C",type:"\uC720\uD615",name:"\uC774\uB984",required:"\uD544\uC218",placeholder:"\uC790\uB9AC \uD45C\uC2DC \uC790",help_text:"\uB3C4\uC6C0\uB9D0 \uD14D\uC2A4\uD2B8",default_value:"\uAE30\uBCF8\uAC12",prefix:"\uC811\uB450\uC0AC",starting_number:"\uC2DC\uC791 \uBC88\uD638",model:"\uBAA8\uB378",help_text_description:"\uC0AC\uC6A9\uC790\uAC00\uC774 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC\uC758 \uBAA9\uC801\uC744 \uC774\uD574\uD558\uB294 \uB370 \uB3C4\uC6C0\uC774\uB418\uB294 \uD14D\uC2A4\uD2B8\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624.",suffix:"\uC811\uBBF8\uC0AC",yes:"\uC608",no:"\uC544\uB2C8",order:"\uC8FC\uBB38",custom_field_confirm_delete:"\uC774 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",options:"\uC635\uC158",add_option:"\uC635\uC158 \uCD94\uAC00",add_another_option:"\uB2E4\uB978 \uC635\uC158 \uCD94\uAC00",sort_in_alphabetical_order:"\uC54C\uD30C\uBCB3\uC21C\uC73C\uB85C \uC815\uB82C",add_options_in_bulk:"\uC77C\uAD04 \uC635\uC158 \uCD94\uAC00",use_predefined_options:"\uBBF8\uB9AC \uC815\uC758 \uB41C \uC635\uC158 \uC0AC\uC6A9",select_custom_date:"\uB9DE\uCDA4 \uB0A0\uC9DC \uC120\uD0DD",select_relative_date:"\uC0C1\uB300 \uB0A0\uC9DC \uC120\uD0DD",ticked_by_default:"\uAE30\uBCF8\uC801\uC73C\uB85C \uC120\uD0DD\uB428",updated_message:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",added_message:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},customization:{customization:"\uB9DE\uCDA4\uD654",save:"\uC800\uC7A5",addresses:{title:"\uAD6C\uC560",section_description:"\uACE0\uAC1D \uCCAD\uAD6C \uC8FC\uC18C \uBC0F \uACE0\uAC1D \uBC30\uC1A1 \uC8FC\uC18C \uD615\uC2DD\uC744 \uC124\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4 (PDF\uB85C\uB9CC \uD45C\uC2DC\uB428).",customer_billing_address:"\uACE0\uAC1D \uCCAD\uAD6C \uC8FC\uC18C",customer_shipping_address:"\uACE0\uAC1D \uBC30\uC1A1 \uC8FC\uC18C",company_address:"\uD68C\uC0AC \uC8FC\uC18C",insert_fields:"\uD544\uB4DC \uC0BD\uC785",contact:"\uC811\uCD09",address:"\uC8FC\uC18C",display_name:"\uC774\uB984 \uD45C\uC2DC\uD558\uAE30",primary_contact_name:"\uAE30\uBCF8 \uC5F0\uB77D\uCC98 \uC774\uB984",email:"\uC774\uBA54\uC77C",website:"\uC6F9 \uC0AC\uC774\uD2B8",name:"\uC774\uB984",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",company_name:"\uD68C\uC0AC \uC774\uB984",address_street_1:"\uC8FC\uC18C \uAC70\uB9AC 1",address_street_2:"\uC8FC\uC18C Street 2",phone:"\uC804\uD654",zip_code:"\uC6B0\uD3B8 \uBC88\uD638",address_setting_updated:"\uC8FC\uC18C \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},updated_message:"\uD68C\uC0AC \uC815\uBCF4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",invoices:{title:"\uC1A1\uC7A5",notes:"\uB178\uD2B8",invoice_prefix:"\uC1A1\uC7A5 \uC811\uB450\uC0AC",default_invoice_email_body:"\uAE30\uBCF8 \uC1A1\uC7A5 \uC774\uBA54\uC77C \uBCF8\uBB38",invoice_settings:"\uC1A1\uC7A5 \uC124\uC815",autogenerate_invoice_number:"\uC1A1\uC7A5 \uBC88\uD638 \uC790\uB3D9 \uC0DD\uC131",autogenerate_invoice_number_desc:"\uC0C8 \uC778\uBCF4\uC774\uC2A4\uB97C \uC0DD\uC131 \uD560 \uB54C\uB9C8\uB2E4 \uC778\uBCF4\uC774\uC2A4 \uBC88\uD638\uB97C \uC790\uB3D9 \uC0DD\uC131\uD558\uC9C0 \uC54A\uC73C\uB824\uBA74\uC774 \uAE30\uB2A5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",invoice_email_attachment:"\uC1A1\uC7A5\uC744 \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uAE30",invoice_email_attachment_setting_description:"\uC778\uBCF4\uC774\uC2A4\uB97C \uC774\uBA54\uC77C \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uC774\uBA54\uC77C\uC758 &#39;\uC778\uBCF4\uC774\uC2A4\uBCF4\uAE30&#39;\uBC84\uD2BC\uC774 \uD65C\uC131\uD654\uB418\uBA74 \uB354 \uC774\uC0C1 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",enter_invoice_prefix:"\uC1A1\uC7A5 \uC811\uB450\uC0AC \uC785\uB825",terms_and_conditions:"\uC774\uC6A9 \uC57D\uAD00",company_address_format:"\uD68C\uC0AC \uC8FC\uC18C \uD615\uC2DD",shipping_address_format:"\uBC30\uC1A1 \uC8FC\uC18C \uD615\uC2DD",billing_address_format:"\uCCAD\uAD6C \uC9C0 \uC8FC\uC18C \uD615\uC2DD",invoice_settings_updated:"\uC778\uBCF4\uC774\uC2A4 \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},estimates:{title:"\uACAC\uC801",estimate_prefix:"\uC811\uB450\uC0AC \uCD94\uC815",default_estimate_email_body:"\uAE30\uBCF8 \uC608\uC0C1 \uC774\uBA54\uC77C \uBCF8\uBB38",estimate_settings:"\uC608\uC0C1 \uC124\uC815",autogenerate_estimate_number:"\uACAC\uC801 \uBC88\uD638 \uC790\uB3D9 \uC0DD\uC131",estimate_setting_description:"\uC0C8 \uACAC\uC801\uC744 \uC0DD\uC131 \uD560 \uB54C\uB9C8\uB2E4 \uACAC\uC801 \uBC88\uD638\uB97C \uC790\uB3D9 \uC0DD\uC131\uD558\uC9C0 \uC54A\uC73C\uB824\uBA74\uC774 \uAE30\uB2A5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",estimate_email_attachment:"\uACAC\uC801\uC744 \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uAE30",estimate_email_attachment_setting_description:"\uACAC\uC801\uC744 \uC774\uBA54\uC77C \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uC774\uBA54\uC77C\uC758 &#39;\uC608\uC0C1\uBCF4\uAE30&#39;\uBC84\uD2BC\uC774 \uD65C\uC131\uD654\uB418\uBA74 \uB354 \uC774\uC0C1 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",enter_estimate_prefix:"\uACAC\uC801 \uC811\uB450\uC0AC \uC785\uB825",estimate_setting_updated:"\uC608\uC0C1 \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",company_address_format:"\uD68C\uC0AC \uC8FC\uC18C \uD615\uC2DD",billing_address_format:"\uCCAD\uAD6C \uC9C0 \uC8FC\uC18C \uD615\uC2DD",shipping_address_format:"\uBC30\uC1A1 \uC8FC\uC18C \uD615\uC2DD"},payments:{title:"\uC9C0\uBD88",description:"\uC9C0\uBD88\uC744\uC704\uD55C \uAC70\uB798 \uBC29\uC2DD",payment_prefix:"\uC9C0\uBD88 \uC811\uB450\uC0AC",default_payment_email_body:"\uAE30\uBCF8 \uACB0\uC81C \uC774\uBA54\uC77C \uBCF8\uBB38",payment_settings:"\uACB0\uC81C \uC124\uC815",autogenerate_payment_number:"\uACB0\uC81C \uBC88\uD638 \uC790\uB3D9 \uC0DD\uC131",payment_setting_description:"\uC0C8 \uACB0\uC81C\uB97C \uC0DD\uC131 \uD560 \uB54C\uB9C8\uB2E4 \uACB0\uC81C \uBC88\uD638\uB97C \uC790\uB3D9 \uC0DD\uC131\uD558\uC9C0 \uC54A\uC73C\uB824\uBA74\uC774 \uAE30\uB2A5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",payment_email_attachment:"\uCCA8\uBD80 \uD30C\uC77C\uB85C \uC9C0\uBD88 \uBCF4\uB0B4\uAE30",payment_email_attachment_setting_description:"\uACB0\uC81C \uC601\uC218\uC99D\uC744 \uC774\uBA54\uC77C \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uC774\uBA54\uC77C\uC758 &#39;\uACB0\uC81C\uBCF4\uAE30&#39;\uBC84\uD2BC\uC774 \uD65C\uC131\uD654\uB418\uBA74 \uB354 \uC774\uC0C1 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",enter_payment_prefix:"\uC9C0\uBD88 \uC811\uB450\uC0AC \uC785\uB825",payment_setting_updated:"\uACB0\uC81C \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",payment_modes:"\uC9C0\uBD88 \uBAA8\uB4DC",add_payment_mode:"\uACB0\uC81C \uBAA8\uB4DC \uCD94\uAC00",edit_payment_mode:"\uACB0\uC81C \uBAA8\uB4DC \uC218\uC815",mode_name:"\uBAA8\uB4DC \uC774\uB984",payment_mode_added:"\uACB0\uC81C \uBAA8\uB4DC \uCD94\uAC00",payment_mode_updated:"\uACB0\uC81C \uBAA8\uB4DC \uC5C5\uB370\uC774\uD2B8",payment_mode_confirm_delete:"\uC774 \uACB0\uC81C \uBAA8\uB4DC\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uACB0\uC81C \uBAA8\uB4DC\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uACB0\uC81C \uBAA8\uB4DC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",company_address_format:"\uD68C\uC0AC \uC8FC\uC18C \uD615\uC2DD",from_customer_address_format:"\uACE0\uAC1D \uC8FC\uC18C \uD615\uC2DD\uC5D0\uC11C"},items:{title:"\uC544\uC774\uD15C",units:"\uB2E8\uC704",add_item_unit:"\uD56D\uBAA9 \uB2E8\uC704 \uCD94\uAC00",edit_item_unit:"\uD56D\uBAA9 \uB2E8\uC704 \uD3B8\uC9D1",unit_name:"\uB2E8\uC704 \uC774\uB984",item_unit_added:"\uD56D\uBAA9 \uB2E8\uC704 \uCD94\uAC00\uB428",item_unit_updated:"\uD56D\uBAA9 \uB2E8\uC704 \uC5C5\uB370\uC774\uD2B8 \uB428",item_unit_confirm_delete:"\uC774 \uD56D\uBAA9 \uB2E8\uC704\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uD56D\uBAA9 \uB2E8\uC704\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uD56D\uBAA9 \uB2E8\uC704\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},notes:{title:"\uB178\uD2B8",description:"\uBA54\uBAA8\uB97C \uC791\uC131\uD558\uACE0 \uC1A1\uC7A5, \uACAC\uC801\uC11C\uC5D0 \uC7AC\uC0AC\uC6A9\uD558\uC5EC \uC2DC\uAC04 \uC808\uC57D",notes:"\uB178\uD2B8",type:"\uC720\uD615",add_note:"\uBA54\uBAA8\uB97C \uCD94\uAC00",add_new_note:"\uC0C8 \uBA54\uBAA8 \uCD94\uAC00",name:"\uC774\uB984",edit_note:"\uBA54\uBAA8 \uC218\uC815",note_added:"\uBA54\uBAA8\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",note_updated:"\uCC38\uACE0 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",note_confirm_delete:"\uC774 \uBA54\uBAA8\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uBA54\uBAA8\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uBA54\uBAA8\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}},account_settings:{profile_picture:"\uD504\uB85C\uD544 \uC0AC\uC9C4",name:"\uC774\uB984",email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",confirm_password:"\uBE44\uBC00\uBC88\uD638 \uD655\uC778",account_settings:"\uACC4\uC815 \uC124\uC815",save:"\uC800\uC7A5",section_description:"\uC774\uB984, \uC774\uBA54\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",updated_message:"\uACC4\uC815 \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},user_profile:{name:"\uC774\uB984",email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",confirm_password:"\uBE44\uBC00\uBC88\uD638 \uD655\uC778"},notification:{title:"\uACF5\uACE0",email:"\uC54C\uB9BC \uBCF4\uB0B4\uAE30",description:"\uBCC0\uACBD \uC0AC\uD56D\uC774\uC788\uC744 \uB54C \uC5B4\uB5A4 \uC774\uBA54\uC77C \uC54C\uB9BC\uC744 \uBC1B\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",invoice_viewed:"\uC1A1\uC7A5 \uC870\uD68C",invoice_viewed_desc:"\uACE0\uAC1D\uC774 \uBD84\uD654\uAD6C \uB300\uC2DC \uBCF4\uB4DC\uB97C \uD1B5\uD574 \uC804\uC1A1 \uB41C \uC1A1\uC7A5\uC744 \uBCFC \uB54C.",estimate_viewed:"\uBCF8 \uACAC\uC801",estimate_viewed_desc:"\uACE0\uAC1D\uC774 \uBD84\uD654\uAD6C \uB300\uC2DC \uBCF4\uB4DC\uB97C \uD1B5\uD574 \uC804\uC1A1 \uB41C \uACAC\uC801\uC744 \uBCFC \uB54C.",save:"\uC800\uC7A5",email_save_message:"\uC774\uBA54\uC77C\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",please_enter_email:"\uC774\uBA54\uC77C\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624"},tax_types:{title:"\uC138\uAE08 \uC720\uD615",add_tax:"\uC138\uAE08 \uCD94\uAC00",edit_tax:"\uC138\uAE08 \uC218\uC815",description:"\uC6D0\uD558\uB294\uB300\uB85C \uC138\uAE08\uC744 \uCD94\uAC00\uD558\uAC70\uB098 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. Crater\uB294 \uC1A1\uC7A5\uBFD0\uB9CC \uC544\uB2C8\uB77C \uAC1C\uBCC4 \uD488\uBAA9\uC5D0 \uB300\uD55C \uC138\uAE08\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4.",add_new_tax:"\uC0C8 \uC138\uAE08 \uCD94\uAC00",tax_settings:"\uC138\uAE08 \uC124\uC815",tax_per_item:"\uD488\uBAA9 \uB2F9 \uC138\uAE08",tax_name:"\uC138\uAE08 \uC774\uB984",compound_tax:"\uBCF5\uD569 \uC138",percent:"\uD37C\uC13C\uD2B8",action:"\uB3D9\uC791",tax_setting_description:"\uAC1C\uBCC4 \uC1A1\uC7A5 \uD56D\uBAA9\uC5D0 \uC138\uAE08\uC744 \uCD94\uAC00\uD558\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uAE30\uBCF8\uC801\uC73C\uB85C \uC138\uAE08\uC740 \uC1A1\uC7A5\uC5D0 \uC9C1\uC811 \uCD94\uAC00\uB429\uB2C8\uB2E4.",created_message:"\uC138\uAE08 \uC720\uD615\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uC138\uAE08 \uC720\uD615\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC138\uAE08 \uC720\uD615\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uC138\uAE08 \uC720\uD615\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uC138\uAE08\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4."},expense_category:{title:"\uBE44\uC6A9 \uBC94\uC8FC",action:"\uB3D9\uC791",description:"\uBE44\uC6A9 \uD56D\uBAA9\uC744 \uCD94\uAC00\uD558\uB824\uBA74 \uCE74\uD14C\uACE0\uB9AC\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uAE30\uBCF8 \uC124\uC815\uC5D0 \uB530\uB77C \uC774\uB7EC\uD55C \uBC94\uC8FC\uB97C \uCD94\uAC00\uD558\uAC70\uB098 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",add_new_category:"\uC0C8 \uCE74\uD14C\uACE0\uB9AC \uCD94\uAC00",add_category:"\uCE74\uD14C\uACE0\uB9AC \uCD94\uAC00",edit_category:"\uCE74\uD14C\uACE0\uB9AC \uC218\uC815",category_name:"\uCE74\uD14C\uACE0\uB9AC \uC774\uB984",category_description:"\uAE30\uC220",created_message:"\uBE44\uC6A9 \uBC94\uC8FC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uBE44\uC6A9 \uBC94\uC8FC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uBE44\uC6A9 \uBC94\uC8FC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uBE44\uC6A9 \uBC94\uC8FC\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uCE74\uD14C\uACE0\uB9AC\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4."},preferences:{currency:"\uD1B5\uD654",default_language:"\uAE30\uBCF8 \uC5B8\uC5B4",time_zone:"\uC2DC\uAC04\uB300",fiscal_year:"\uD68C\uACC4 \uC5F0\uB3C4",date_format:"\uB0A0\uC9DC \uD615\uC2DD",discount_setting:"\uD560\uC778 \uC124\uC815",discount_per_item:"\uD488\uBAA9\uBCC4 \uD560\uC778",discount_setting_description:"\uAC1C\uBCC4 \uC1A1\uC7A5 \uD56D\uBAA9\uC5D0 \uD560\uC778\uC744 \uCD94\uAC00\uD558\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uAE30\uBCF8\uC801\uC73C\uB85C \uD560\uC778\uC740 \uC1A1\uC7A5\uC5D0 \uC9C1\uC811 \uCD94\uAC00\uB429\uB2C8\uB2E4.",save:"\uC800\uC7A5",preference:"\uC120\uD638\uB3C4 | \uD658\uACBD \uC124\uC815",general_settings:"\uC2DC\uC2A4\uD15C\uC758 \uAE30\uBCF8 \uAE30\uBCF8 \uC124\uC815\uC785\uB2C8\uB2E4.",updated_message:"\uD658\uACBD \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",select_language:"\uC5B8\uC5B4 \uC120\uD0DD",select_time_zone:"\uC2DC\uAC04\uB300 \uC120\uD0DD",select_date_format:"\uB0A0\uC9DC \uD615\uC2DD \uC120\uD0DD",select_financial_year:"\uD68C\uACC4 \uC5F0\uB3C4 \uC120\uD0DD"},update_app:{title:"\uC571 \uC5C5\uB370\uC774\uD2B8",description:"\uC544\uB798 \uBC84\uD2BC\uC744 \uD074\uB9AD\uD558\uC5EC \uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uB97C \uD655\uC778\uD558\uC5EC Crater\uB97C \uC27D\uAC8C \uC5C5\uB370\uC774\uD2B8 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",check_update:"\uC5C5\uB370\uC774\uD2B8 \uD655\uC778",avail_update:"\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8 \uC0AC\uC6A9 \uAC00\uB2A5",next_version:"\uB2E4\uC74C \uBC84\uC804",requirements:"\uC694\uAD6C \uC0AC\uD56D",update:"\uC9C0\uAE08 \uC5C5\uB370\uC774\uD2B8",update_progress:"\uC5C5\uB370\uC774\uD2B8 \uC9C4\uD589 \uC911 ...",progress_text:"\uBA87 \uBD84 \uC815\uB3C4 \uAC78\uB9BD\uB2C8\uB2E4. \uC5C5\uB370\uC774\uD2B8\uAC00 \uC644\uB8CC\uB418\uAE30 \uC804\uC5D0 \uD654\uBA74\uC744 \uC0C8\uB85C \uACE0\uCE58\uAC70\uB098 \uCC3D\uC744 \uB2EB\uC9C0 \uB9C8\uC2ED\uC2DC\uC624.",update_success:"\uC571\uC774 \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4! \uBE0C\uB77C\uC6B0\uC800 \uCC3D\uC774 \uC790\uB3D9\uC73C\uB85C \uB2E4\uC2DC\uB85C\uB4DC\uB418\uB294 \uB3D9\uC548 \uC7A0\uC2DC \uAE30\uB2E4\uB824\uC8FC\uC2ED\uC2DC\uC624.",latest_message:"\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC5C5\uB370\uC774\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4! \uCD5C\uC2E0 \uBC84\uC804\uC744 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",current_version:"\uD604\uC7AC \uBC84\uC804",download_zip_file:"ZIP \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",unzipping_package:"\uD328\uD0A4\uC9C0 \uC555\uCD95 \uD574\uC81C",copying_files:"\uD30C\uC77C \uBCF5\uC0AC",deleting_files:"\uC0AC\uC6A9\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uC0AD\uC81C",running_migrations:"\uB9C8\uC774\uADF8\uB808\uC774\uC158 \uC2E4\uD589",finishing_update:"\uC5C5\uB370\uC774\uD2B8 \uC644\uB8CC",update_failed:"\uC5C5\uB370\uC774\uD2B8\uAC00 \uC2E4\uD328",update_failed_text:"\uC8C4\uC1A1\uD569\uB2C8\uB2E4! \uC5C5\uB370\uC774\uD2B8 \uC2E4\uD328 : {step} \uB2E8\uACC4"},backup:{title:"\uBC31\uC5C5 | \uBC31\uC5C5",description:"\uBC31\uC5C5\uC740 \uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uB364\uD504\uC640 \uD568\uAED8 \uC9C0\uC815\uD55C \uB514\uB809\uD1A0\uB9AC\uC758 \uBAA8\uB4E0 \uD30C\uC77C\uC744 \uD3EC\uD568\uD558\uB294 zip \uD30C\uC77C\uC785\uB2C8\uB2E4.",new_backup:"\uC0C8 \uBC31\uC5C5 \uCD94\uAC00",create_backup:"\uBC31\uC5C5 \uC0DD\uC131",select_backup_type:"\uBC31\uC5C5 \uC720\uD615 \uC120\uD0DD",backup_confirm_delete:"\uC774 \uBC31\uC5C5\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",path:"\uD1B5\uB85C",new_disk:"\uC0C8 \uB514\uC2A4\uD06C",created_at:"\uC5D0 \uC0DD\uC131",size:"\uD06C\uAE30",dropbox:"\uB4DC\uB86D \uBC15\uC2A4",local:"\uD604\uC9C0",healthy:"\uAC74\uAC15\uD55C",amount_of_backups:"\uBC31\uC5C5 \uC591",newest_backups:"\uCD5C\uC2E0 \uBC31\uC5C5",used_storage:"\uC911\uACE0 \uC800\uC7A5",select_disk:"\uB514\uC2A4\uD06C \uC120\uD0DD",action:"\uB3D9\uC791",deleted_message:"\uBC31\uC5C5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",created_message:"\uBC31\uC5C5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",invalid_disk_credentials:"\uC120\uD0DD\uD55C \uB514\uC2A4\uD06C\uC758 \uC798\uBABB\uB41C \uC790\uACA9 \uC99D\uBA85"},disk:{title:"\uD30C\uC77C \uB514\uC2A4\uD06C | \uD30C\uC77C \uB514\uC2A4\uD06C",description:"\uAE30\uBCF8\uC801\uC73C\uB85C Crater\uB294 \uBC31\uC5C5, \uC544\uBC14\uD0C0 \uBC0F \uAE30\uD0C0 \uC774\uBBF8\uC9C0 \uD30C\uC77C\uC744 \uC800\uC7A5\uD558\uAE30 \uC704\uD574 \uB85C\uCEEC \uB514\uC2A4\uD06C\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC120\uD638\uB3C4\uC5D0 \uB530\uB77C DigitalOcean, S3 \uBC0F Dropbox\uC640 \uAC19\uC740 \uB458 \uC774\uC0C1\uC758 \uB514\uC2A4\uD06C \uB4DC\uB77C\uC774\uBC84\uB97C \uAD6C\uC131 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",created_at:"\uC5D0 \uC0DD\uC131",dropbox:"\uB4DC\uB86D \uBC15\uC2A4",name:"\uC774\uB984",driver:"\uC6B4\uC804\uC0AC",disk_type:"\uC720\uD615",disk_name:"\uB514\uC2A4\uD06C \uC774\uB984",new_disk:"\uC0C8 \uB514\uC2A4\uD06C \uCD94\uAC00",filesystem_driver:"\uD30C\uC77C \uC2DC\uC2A4\uD15C \uB4DC\uB77C\uC774\uBC84",local_driver:"\uB85C\uCEEC \uB4DC\uB77C\uC774\uBC84",local_root:"\uB85C\uCEEC \uB8E8\uD2B8",public_driver:"\uACF5\uACF5 \uC6B4\uC804\uC790",public_root:"\uACF5\uAC1C \uB8E8\uD2B8",public_url:"\uACF5\uAC1C URL",public_visibility:"\uACF5\uAC1C \uAC00\uC2DC\uC131",media_driver:"\uBBF8\uB514\uC5B4 \uB4DC\uB77C\uC774\uBC84",media_root:"\uBBF8\uB514\uC5B4 \uB8E8\uD2B8",aws_driver:"AWS \uB4DC\uB77C\uC774\uBC84",aws_key:"AWS \uD0A4",aws_secret:"AWS \uBE44\uBC00",aws_region:"AWS \uB9AC\uC804",aws_bucket:"AWS \uBC84\uD0B7",aws_root:"AWS \uB8E8\uD2B8",do_spaces_type:"Do Spaces \uC720\uD615",do_spaces_key:"Do Spaces \uD0A4",do_spaces_secret:"\uC2A4\uD398\uC774\uC2A4 \uC2DC\uD06C\uB9BF",do_spaces_region:"Do Spaces \uC601\uC5ED",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces \uB05D\uC810",do_spaces_root:"\uACF5\uAC04 \uB8E8\uD2B8 \uC218\uD589",dropbox_type:"Dropbox \uC720\uD615",dropbox_token:"Dropbox \uD1A0\uD070",dropbox_key:"Dropbox \uD0A4",dropbox_secret:"Dropbox \uBE44\uBC00",dropbox_app:"Dropbox \uC571",dropbox_root:"Dropbox \uB8E8\uD2B8",default_driver:"\uAE30\uBCF8 \uB4DC\uB77C\uC774\uBC84",is_default:"\uAE30\uBCF8\uAC12\uC785\uB2C8\uB2E4.",set_default_disk:"\uAE30\uBCF8 \uB514\uC2A4\uD06C \uC124\uC815",set_default_disk_confirm:"\uC774 \uB514\uC2A4\uD06C\uB294 \uAE30\uBCF8\uAC12\uC73C\uB85C \uC124\uC815\uB418\uBA70 \uBAA8\uB4E0 \uC0C8 PDF\uAC00\uC774 \uB514\uC2A4\uD06C\uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4.",success_set_default_disk:"\uB514\uC2A4\uD06C\uAC00 \uAE30\uBCF8\uAC12\uC73C\uB85C \uC124\uC815\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",save_pdf_to_disk:"PDF\uB97C \uB514\uC2A4\uD06C\uC5D0 \uC800\uC7A5",disk_setting_description:"\uAC01 \uC1A1\uC7A5\uC758 \uC0AC\uBCF8\uC744 \uC800\uC7A5\uD558\uB824\uBA74 \uC774\uAC83\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",select_disk:"\uB514\uC2A4\uD06C \uC120\uD0DD",disk_settings:"\uB514\uC2A4\uD06C \uC124\uC815",confirm_delete:"\uAE30\uC874 \uD30C\uC77C",action:"\uB3D9\uC791",edit_file_disk:"\uD30C\uC77C \uB514\uC2A4\uD06C \uD3B8\uC9D1",success_create:"\uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",success_update:"\uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",error:"\uB514\uC2A4\uD06C \uCD94\uAC00 \uC2E4\uD328",deleted_message:"\uD30C\uC77C \uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",disk_variables_save_successfully:"\uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uAD6C\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",disk_variables_save_error:"\uB514\uC2A4\uD06C \uAD6C\uC131\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",invalid_disk_credentials:"\uC120\uD0DD\uD55C \uB514\uC2A4\uD06C\uC758 \uC798\uBABB\uB41C \uC790\uACA9 \uC99D\uBA85"}},zg={account_info:"\uACC4\uC815 \uC815\uBCF4",account_info_desc:"\uC544\uB798 \uC138\uBD80 \uC815\uBCF4\uB294 \uAE30\uBCF8 \uAD00\uB9AC\uC790 \uACC4\uC815\uC744 \uB9CC\uB4DC\uB294 \uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4. \uB610\uD55C \uB85C\uADF8\uC778 \uD6C4 \uC5B8\uC81C\uB4E0\uC9C0 \uC138\uBD80 \uC815\uBCF4\uB97C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",name:"\uC774\uB984",email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",confirm_password:"\uBE44\uBC00\uBC88\uD638 \uD655\uC778",save_cont:"\uC800\uC7A5",company_info:"\uD68C\uC0AC \uC815\uBCF4",company_info_desc:"\uC774 \uC815\uBCF4\uB294 \uC1A1\uC7A5\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uC124\uC815 \uD398\uC774\uC9C0\uC5D0\uC11C \uC218\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",company_name:"\uD68C\uC0AC \uC774\uB984",company_logo:"\uD68C\uC0AC \uB85C\uACE0",logo_preview:"\uB85C\uACE0 \uBBF8\uB9AC\uBCF4\uAE30",preferences:"\uD658\uACBD \uC124\uC815",preferences_desc:"\uC2DC\uC2A4\uD15C\uC758 \uAE30\uBCF8 \uAE30\uBCF8 \uC124\uC815\uC785\uB2C8\uB2E4.",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",address:"\uC8FC\uC18C",street:"Street1 | Street2",phone:"\uC804\uD654",zip_code:"\uC6B0\uD3B8 \uBC88\uD638",go_back:"\uB3CC\uC544 \uAC00\uAE30",currency:"\uD1B5\uD654",language:"\uC5B8\uC5B4",time_zone:"\uC2DC\uAC04\uB300",fiscal_year:"\uD68C\uACC4 \uC5F0\uB3C4",date_format:"\uB0A0\uC9DC \uD615\uC2DD",from_address:"\uC8FC\uC18C\uC5D0\uC11C",username:"\uC0AC\uC6A9\uC790 \uC774\uB984",next:"\uB2E4\uC74C",continue:"\uACC4\uC18D\uD558\uB2E4",skip:"\uAC74\uB108 \uB6F0\uAE30",database:{database:"\uC0AC\uC774\uD2B8 URL",connection:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC5F0\uACB0",host:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uD638\uC2A4\uD2B8",port:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uD3EC\uD2B8",password:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uBE44\uBC00\uBC88\uD638",app_url:"\uC571 URL",app_domain:"\uC571 \uB3C4\uBA54\uC778",username:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC0AC\uC6A9\uC790 \uC774\uB984",db_name:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC774\uB984",db_path:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uACBD\uB85C",desc:"\uC11C\uBC84\uC5D0 \uB370\uC774\uD130\uBCA0\uC774\uC2A4\uB97C \uB9CC\uB4E4\uACE0 \uC544\uB798 \uC591\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC790\uACA9 \uC99D\uBA85\uC744 \uC124\uC815\uD569\uB2C8\uB2E4."},permissions:{permissions:"\uAD8C\uD55C",permission_confirm_title:"\uB108 \uC815\uB9D0 \uACC4\uC18D\uD558\uACE0 \uC2F6\uB2C8?",permission_confirm_desc:"\uD3F4\uB354 \uAD8C\uD55C \uD655\uC778 \uC2E4\uD328",permission_desc:"\uB2E4\uC74C\uC740 \uC571\uC774 \uC791\uB3D9\uD558\uB294 \uB370 \uD544\uC694\uD55C \uD3F4\uB354 \uAD8C\uD55C \uBAA9\uB85D\uC785\uB2C8\uB2E4. \uAD8C\uD55C \uD655\uC778\uC5D0 \uC2E4\uD328\uD558\uBA74 \uD3F4\uB354 \uAD8C\uD55C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uC2ED\uC2DC\uC624."},mail:{host:"\uBA54\uC77C \uD638\uC2A4\uD2B8",port:"\uBA54\uC77C \uD3EC\uD2B8",driver:"\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84",secret:"\uBE44\uBC00",mailgun_secret:"Mailgun \uBE44\uBC00",mailgun_domain:"\uB3C4\uBA54\uC778",mailgun_endpoint:"Mailgun \uC5D4\uB4DC \uD3EC\uC778\uD2B8",ses_secret:"SES \uBE44\uBC00",ses_key:"SES \uD0A4",password:"\uBA54\uC77C \uBE44\uBC00\uBC88\uD638",username:"\uBA54\uC77C \uC0AC\uC6A9\uC790 \uC774\uB984",mail_config:"\uBA54\uC77C \uAD6C\uC131",from_name:"\uBA54\uC77C \uC774\uB984\uC5D0\uC11C",from_mail:"\uBA54\uC77C \uC8FC\uC18C\uC5D0\uC11C",encryption:"\uBA54\uC77C \uC554\uD638\uD654",mail_config_desc:"\uB2E4\uC74C\uC740 \uC571\uC5D0\uC11C \uC774\uBA54\uC77C\uC744 \uBCF4\uB0B4\uAE30\uC704\uD55C \uC774\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84 \uAD6C\uC131 \uC591\uC2DD\uC785\uB2C8\uB2E4. Sendgrid, SES \uB4F1\uACFC \uAC19\uC740 \uD0C0\uC0AC \uACF5\uAE09\uC790\uB97C \uAD6C\uC131 \uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4."},req:{system_req:"\uC2DC\uC2A4\uD15C \uC694\uAD6C \uC0AC\uD56D",php_req_version:"PHP (\uBC84\uC804 {version} \uD544\uC694)",check_req:"\uC694\uAD6C \uC0AC\uD56D \uD655\uC778",system_req_desc:"\uD06C\uB808\uC774\uD130\uC5D0\uB294 \uBA87 \uAC00\uC9C0 \uC11C\uBC84 \uC694\uAD6C \uC0AC\uD56D\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC11C\uBC84\uC5D0 \uD544\uC694\uD55C PHP \uBC84\uC804\uACFC \uC544\uB798\uC5D0 \uC5B8\uAE09 \uB41C \uBAA8\uB4E0 \uD655\uC7A5\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624."},errors:{migrate_failed:"\uB9C8\uC774\uADF8\uB808\uC774\uC158 \uC2E4\uD328",database_variables_save_error:".env \uD30C\uC77C\uC5D0 \uAD6C\uC131\uC744 \uC4F8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uD30C\uC77C \uAD8C\uD55C\uC744 \uD655\uC778\uD558\uC2ED\uC2DC\uC624",mail_variables_save_error:"\uC774\uBA54\uC77C \uAD6C\uC131\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",connection_failed:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC5F0\uACB0 \uC2E4\uD328",database_should_be_empty:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4\uB294 \uBE44\uC5B4 \uC788\uC5B4\uC57C\uD569\uB2C8\uB2E4."},success:{mail_variables_save_successfully:"\uC774\uBA54\uC77C\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uAD6C\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",database_variables_save_successfully:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uAD6C\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}},Sg={invalid_phone:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uC804\uD654 \uBC88\uD638",invalid_url:"\uC798\uBABB\uB41C URL (\uC608 : http://www.craterapp.com)",invalid_domain_url:"\uC798\uBABB\uB41C URL (\uC608 : craterapp.com)",required:"\uD544\uB4DC\uB294 \uD544\uC218\uC785\uB2C8\uB2E4",email_incorrect:"\uC798\uBABB\uB41C \uC774\uBA54\uC77C.",email_already_taken:"\uC774\uBA54\uC77C\uC774 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",email_does_not_exist:"\uC8FC\uC5B4\uC9C4 \uC774\uBA54\uC77C\uC744 \uAC00\uC9C4 \uC0AC\uC6A9\uC790\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",item_unit_already_taken:"\uC774 \uD56D\uBAA9 \uB2E8\uC704 \uC774\uB984\uC740 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",payment_mode_already_taken:"\uC774 \uACB0\uC81C \uBAA8\uB4DC \uC774\uB984\uC740 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",send_reset_link:"\uC7AC\uC124\uC815 \uB9C1\uD06C \uBCF4\uB0B4\uAE30",not_yet:"\uC544\uC9C1? \uB2E4\uC2DC \uBCF4\uB0B4\uC918",password_min_length:"\uBE44\uBC00\uBC88\uD638\uB294 {count}\uC790\uB97C \uD3EC\uD568\uD574\uC57C\uD569\uB2C8\uB2E4.",name_min_length:"\uC774\uB984\uC740 {count} \uC790 \uC774\uC0C1\uC774\uC5B4\uC57C\uD569\uB2C8\uB2E4.",enter_valid_tax_rate:"\uC720\uD6A8\uD55C \uC138\uC728\uC744 \uC785\uB825\uD558\uC138\uC694.",numbers_only:"\uC22B\uC790 \uB9CC.",characters_only:"\uBB38\uC790 \uB9CC.",password_incorrect:"\uBE44\uBC00\uBC88\uD638\uB294 \uB3D9\uC77C\uD574\uC57C\uD569\uB2C8\uB2E4.",password_length:"\uBE44\uBC00\uBC88\uD638\uB294 {count} \uC790 \uC5EC\uC57C\uD569\uB2C8\uB2E4.",qty_must_greater_than_zero:"\uC218\uB7C9\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",price_greater_than_zero:"\uAC00\uACA9\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",payment_greater_than_zero:"\uACB0\uC81C \uAE08\uC561\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",payment_greater_than_due_amount:"\uC785\uB825 \uB41C \uACB0\uC81C \uAE08\uC561\uC774\uC774 \uC1A1\uC7A5\uC758 \uB9CC\uAE30 \uAE08\uC561\uC744 \uCD08\uACFC\uD569\uB2C8\uB2E4.",quantity_maxlength:"\uC218\uB7C9\uC740 20 \uC790\uB9AC\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",price_maxlength:"\uAC00\uACA9\uC740 20 \uC790\uB9AC\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",price_minvalue:"\uAC00\uACA9\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",amount_maxlength:"\uAE08\uC561\uC740 20 \uC790\uB9AC\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",amount_minvalue:"\uAE08\uC561\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",description_maxlength:"\uC124\uBA85\uC740 65,000\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",subject_maxlength:"\uC81C\uBAA9\uC740 100 \uC790 \uC774\uD558 \uC5EC\uC57C\uD569\uB2C8\uB2E4.",message_maxlength:"\uBA54\uC2DC\uC9C0\uB294 255\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",maximum_options_error:"\uCD5C\uB300 {max} \uAC1C\uC758 \uC635\uC158\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBA3C\uC800 \uC120\uD0DD\uD55C \uC635\uC158\uC744 \uC81C\uAC70\uD558\uC5EC \uB2E4\uB978 \uC635\uC158\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624.",notes_maxlength:"\uBA54\uBAA8\uB294 65,000\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",address_maxlength:"\uC8FC\uC18C\uB294 255\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ref_number_maxlength:"\uCC38\uC870 \uBC88\uD638\uB294 255\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",prefix_maxlength:"\uC811\uB450\uC0AC\uB294 5 \uC790 \uC774\uD558 \uC5EC\uC57C\uD569\uB2C8\uB2E4.",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4"},jg="\uACAC\uC801",Pg="\uACAC\uC801 \uBC88\uD638",Dg="\uC608\uC0C1 \uB0A0\uC9DC",Cg="\uB9CC\uB8CC\uC77C",Ag="\uC1A1\uC7A5",Eg="\uC1A1\uC7A5 \uBC88\uD638",Ng="\uC1A1\uC7A5 \uB0A0\uC9DC",Tg="\uB9C8\uAC10\uC77C",Ig="\uB178\uD2B8",$g="\uC544\uC774\uD15C",Rg="\uC218\uB7C9",Fg="\uAC00\uACA9",Mg="\uD560\uC778",Vg="\uC591",Bg="\uC18C\uACC4",Og="\uD569\uACC4",Lg="\uC9C0\uBD88",Ug="\uC601\uC218\uC99D",Kg="\uACB0\uC81C\uC77C",qg="\uACB0\uC81C \uBC88\uD638",Zg="\uC9C0\uBD88 \uBAA8\uB4DC",Wg="\uBC1B\uC740 \uAE08\uC561",Hg="\uBE44\uC6A9 \uBCF4\uACE0\uC11C",Gg="\uCD1D \uBE44\uC6A9",Yg="\uC774\uC775",Jg="\uD310\uB9E4 \uACE0\uAC1D \uBCF4\uACE0\uC11C",Xg="\uD310\uB9E4 \uD488\uBAA9 \uBCF4\uACE0\uC11C",Qg="\uC138\uAE08 \uC694\uC57D \uBCF4\uACE0\uC11C",ef="\uC218\uC785",tf="\uC21C\uC774\uC775",af="\uD310\uB9E4 \uBCF4\uACE0\uC11C : \uACE0\uAC1D \uBCC4",sf="\uCD1D \uB9E4\uCD9C",nf="\uD310\uB9E4 \uBCF4\uACE0\uC11C : \uD488\uBAA9\uBCC4",of="\uC138\uAE08 \uBCF4\uACE0\uC11C",rf="\uCD1D \uC138\uAE08",df="\uC138\uAE08 \uC720\uD615",lf="\uACBD\uBE44",cf="\uCCAD\uAD6C\uC11C,",_f="\uBC30\uC1A1\uC9C0,",uf="\uBC1B\uC740 \uC0AC\uB78C :",mf="\uC138";var pf={navigation:lg,general:cg,dashboard:_g,tax_types:ug,global_search:mg,customers:pg,items:gg,estimates:fg,invoices:hg,payments:vg,expenses:yg,login:bg,users:kg,reports:wg,settings:xg,wizard:zg,validation:Sg,pdf_estimate_label:jg,pdf_estimate_number:Pg,pdf_estimate_date:Dg,pdf_estimate_expire_date:Cg,pdf_invoice_label:Ag,pdf_invoice_number:Eg,pdf_invoice_date:Ng,pdf_invoice_due_date:Tg,pdf_notes:Ig,pdf_items_label:$g,pdf_quantity_label:Rg,pdf_price_label:Fg,pdf_discount_label:Mg,pdf_amount_label:Vg,pdf_subtotal:Bg,pdf_total:Og,pdf_payment_label:Lg,pdf_payment_receipt_label:Ug,pdf_payment_date:Kg,pdf_payment_number:qg,pdf_payment_mode:Zg,pdf_payment_amount_received_label:Wg,pdf_expense_report_label:Hg,pdf_total_expenses_label:Gg,pdf_profit_loss_label:Yg,pdf_sales_customers_label:Jg,pdf_sales_items_label:Xg,pdf_tax_summery_label:Qg,pdf_income_label:ef,pdf_net_profit_label:tf,pdf_customer_sales_report:af,pdf_total_sales_label:sf,pdf_item_sales_label:nf,pdf_tax_report_label:of,pdf_total_tax_label:rf,pdf_tax_types_label:df,pdf_expenses_label:lf,pdf_bill_to:cf,pdf_ship_to:_f,pdf_received_from:uf,pdf_tax_label:mf};const gf={dashboard:"Inform\u0101cijas panelis",customers:"Klienti",items:"Preces",invoices:"R\u0113\u0137ini",expenses:"Izdevumi",estimates:"Apr\u0113\u0137ini",payments:"Maks\u0101jumi",reports:"Atskaites",settings:"Iestat\u012Bjumi",logout:"Iziet",users:"Lietot\u0101ji"},ff={add_company:"Pievienot uz\u0146\u0113mumu",view_pdf:"Apskat\u012Bt PDF",copy_pdf_url:"Kop\u0113t PDF Url",download_pdf:"Lejupiel\u0101d\u0113t PDF",save:"Saglab\u0101t",create:"Izveidot",cancel:"Atcelt",update:"Atjaunin\u0101t",deselect:"Atcelt iez\u012Bm\u0113\u0161anu",download:"Lejupiel\u0101d\u0113t",from_date:"Datums no",to_date:"Datums l\u012Bdz",from:"No",to:"Kam",sort_by:"K\u0101rtot p\u0113c",ascending:"Augo\u0161\u0101 sec\u012Bb\u0101",descending:"Dilsto\u0161\u0101 sec\u012Bb\u0101",subject:"Temats",body:"Saturs",message:"Zi\u0146ojums",send:"Nos\u016Bt\u012Bt",go_back:"Atpaka\u013C",back_to_login:"Atpaka\u013C uz autoriz\u0101ciju?",home:"S\u0101kums",filter:"Filtr\u0113t",delete:"Dz\u0113st",edit:"Labot",view:"Skat\u012Bt",add_new_item:"Pievienot jaunu",clear_all:"Not\u012Br\u012Bt visu",showing:"R\u0101da",of:"no",actions:"Darb\u012Bbas",subtotal:"KOP\u0100",discount:"ATLAIDE",fixed:"Fiks\u0113ts",percentage:"Procenti",tax:"Nodoklis",total_amount:"KOP\u0100 APMAKSAI",bill_to:"Sa\u0146\u0113m\u0113js",ship_to:"Pieg\u0101d\u0101t uz",due:"Due",draft:"Melnraksts",sent:"Nos\u016Bt\u012Bts",all:"Visi",select_all:"Iez\u012Bm\u0113t visu",choose_file:"Speid \u0161eit, lai izv\u0113l\u0113tos failu",choose_template:"Izv\u0113laties sagatavi",choose:"Izv\u0113lies",remove:"Dz\u0113st",select_a_status:"Izv\u0113lieties statusu",select_a_tax:"Izv\u0113l\u0113ties nodokli",search:"Mekl\u0113t",are_you_sure:"Vai esat p\u0101rliecin\u0101ts?",list_is_empty:"Saraksts ir tuk\u0161s.",no_tax_found:"Nodoklis nav atrasts!",four_zero_four:"404",you_got_lost:"Op\u0101! Esi apmald\u012Bjies!",go_home:"Uz S\u0101kumu",test_mail_conf:"J\u016Bsu e-pasta uzst\u0101d\u012Bjumu tests",send_mail_successfully:"Veiksm\u012Bgi nos\u016Bt\u012Bts",setting_updated:"Iestat\u012Bjumi tika veiksm\u012Bgi atjaunin\u0101ti",select_state:"Izv\u0113lieties re\u0123ionu",select_country:"Izv\u0113l\u0113ties valsti",select_city:"Izv\u0113lieties pils\u0113tu",street_1:"Adrese 1",street_2:"Adrese 2",action_failed:"Darb\u012Bba neizdev\u0101s",retry:"Atk\u0101rtot",choose_note:"Izv\u0113lieties piez\u012Bmi",no_note_found:"Piez\u012Bmes nav atrastas",insert_note:"Ievietot piez\u012Bmi"},hf={select_year:"Izv\u0113lieties gadu",cards:{due_amount:"Apmaksas summa",customers:"Klienti",invoices:"R\u0113\u0137ini",estimates:"Apr\u0113\u0137ini"},chart_info:{total_sales:"P\u0101rdotais",total_receipts:"\u010Ceki",total_expense:"Izdevumi",net_income:"Pe\u013C\u0146a",year:"Izv\u0113lieties gadu"},monthly_chart:{title:"P\u0101rdotais un Izdevumi"},recent_invoices_card:{title:"Pien\u0101ko\u0161ie r\u0113\u0137ini",due_on:"Termi\u0146\u0161",customer:"Klients",amount_due:"Apmaksas summa",actions:"Darb\u012Bbas",view_all:"Skat\u012Bt visus"},recent_estimate_card:{title:"Nesenie apr\u0113\u0137ini",date:"Datums",customer:"Klients",amount_due:"Apmaksas summa",actions:"Darb\u012Bbas",view_all:"Skat\u012Bt visus"}},vf={name:"Nosaukums",description:"Apraksts",percent:"Procenti",compound_tax:"Compound Tax"},yf={search:"Mekl\u0113t...",customers:"Klienti",users:"Lietot\u0101ji",no_results_found:"Nav atbilsto\u0161u rezult\u0101tu"},bf={title:"Klienti",add_customer:"Pievienot klientu",contacts_list:"Klientu saraksts",name:"V\u0101rds",mail:"Pasts",statement:"Statement",display_name:"Nosaukums",primary_contact_name:"Galven\u0101 kontakta v\u0101rds",contact_name:"Kontaktpersonas v\u0101rds",amount_due:"Kop\u0101",email:"E-pasts",address:"Adrese",phone:"Telefona numurs",website:"M\u0101jaslapa",overview:"P\u0101rskats",enable_portal:"Aktiviz\u0113t port\u0101lu",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",zip_code:"Pasta indekss",added_on:"Pievienots",action:"Darb\u012Bba",password:"Parole",street_number:"Adrese",primary_currency:"Prim\u0101r\u0101 val\u016Bta",description:"Apraksts",add_new_customer:"Pievienot jaunu klientu",save_customer:"Saglab\u0101t klientu",update_customer:"Atjaunin\u0101t klientu",customer:"Klients | Klienti",new_customer:"Jauns klients",edit_customer:"Redi\u0123\u0113t klientu",basic_info:"Pamatinform\u0101cija",billing_address:"Juridisk\u0101 adrese",shipping_address:"Pieg\u0101des adrese",copy_billing_address:"Kop\u0113t no juridisk\u0101s adreses",no_customers:"Pagaid\u0101m nav klientu!",no_customers_found:"Klienti netika atrasti!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs klientu saraksts.",primary_display_name:"Klienta nosaukums",select_currency:"Izv\u0113lieties val\u016Btu",select_a_customer:"Izv\u0113l\u0113ties klientu",type_or_click:"Rakst\u012Bt vai spiest, lai izv\u0113l\u0113tos",new_transaction:"Jauns dar\u012Bjums",no_matching_customers:"Netika atrasts neviens klients!",phone_number:"Telefona numurs",create_date:"Izveido\u0161anas datums",confirm_delete:"J\u016Bs nevar\u0113sit atg\u016Bt \u0161o klientu un visus saist\u012Btos r\u0113\u0137inus, apr\u0113\u0137inus un maks\u0101jumus.",created_message:"Klients izveidots veiksm\u012Bgi",updated_message:"Klients atjaunin\u0101ts veiksm\u012Bgi",deleted_message:"Klients veiksm\u012Bgi izdz\u0113sts"},kf={title:"Preces",items_list:"Pre\u010Du saraksts",name:"Nosaukums",unit:"Vien\u012Bba",description:"Apraksts",added_on:"Pievienots",price:"Cena",date_of_creation:"Izveido\u0161anas datums",not_selected:"No item selected",action:"Darb\u012Bba",add_item:"Pievienot",save_item:"Saglab\u0101t",update_item:"Atjaunin\u0101t",item:"Prece | Preces",add_new_item:"Pievienot jaunu preci",new_item:"Jauna prece",edit_item:"Redi\u0123\u0113t preci",no_items:"Nav pre\u010Du!",list_of_items:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs pre\u010Du/pakalpojumu saraksts.",select_a_unit:"atlasiet vien\u012Bbu",taxes:"Nodok\u013Ci",item_attached_message:"Nevar dz\u0113st preci, kura tiek izmantota",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o preci",created_message:"Prece izveidota veiksm\u012Bgi",updated_message:"Prece atjaunin\u0101ta veiksm\u012Bgi",deleted_message:"Prece veiksm\u012Bgi izdz\u0113sta"},wf={title:"Apr\u0113\u0137ini",estimate:"Apr\u0113\u0137ins | Apr\u0113\u0137ini",estimates_list:"Apr\u0113\u0137inu saraksts",days:"{days} Dienas",months:"{months} M\u0113nesis",years:"{years} Gads",all:"Visi",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",customer:"KLIENTS",ref_no:"REF NR.",number:"NUMURS",amount_due:"Summa apmaksai",partially_paid:"Da\u013C\u0113ji apmaks\u0101ts",total:"Kop\u0101",discount:"Atlaide",sub_total:"Starpsumma",estimate_number:"Apr\u0113\u0137ina numurs",ref_number:"Ref numurs",contact:"Kontakti",add_item:"Pievienot preci",date:"Datums",due_date:"Apmaksas termi\u0146\u0161",expiry_date:"Termi\u0146a beigu datums",status:"Status",add_tax:"Pievienot nodokli",amount:"Summa",action:"Darb\u012Bba",notes:"Piez\u012Bmes",tax:"Nodoklis",estimate_template:"Sagatave",convert_to_invoice:"P\u0101rveidot par r\u0113\u0137inu",mark_as_sent:"Atz\u012Bm\u0113t k\u0101 nos\u016Bt\u012Btu",send_estimate:"Nos\u016Bt\u012Bt apr\u0113\u0137inu",resend_estimate:"Atk\u0101rtoti nos\u016Bt\u012Bt apr\u0113\u0137inu",record_payment:"Izveidot maks\u0101jumu",add_estimate:"Pievienot apr\u0113\u0137inu",save_estimate:"Saglab\u0101t apr\u0113\u0137inu",confirm_conversion:"\u0160is apr\u0113\u0137ins tiks izmantots, lai izveidotu jaunu r\u0113\u0137inu.",conversion_message:"R\u0113\u0137ins izveidots veiksm\u012Bgi",confirm_send_estimate:"\u0160is apr\u0113\u0137ins tiks nos\u016Bt\u012Bts klientam e-past\u0101",confirm_mark_as_sent:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 nos\u016Bt\u012Bts",confirm_mark_as_accepted:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 apstiprin\u0101ts",confirm_mark_as_rejected:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 noraid\u012Bts",no_matching_estimates:"Netika atrasts neviens apr\u0113\u0137ins!",mark_as_sent_successfully:"Apr\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 veiksm\u012Bgi nos\u016Bt\u012Bts",send_estimate_successfully:"Apr\u0113\u0137ins veiksm\u012Bgi nos\u016Bt\u012Bts",errors:{required:"\u0160is lauks ir oblig\u0101ts"},accepted:"Apstiprin\u0101ts",rejected:"Rejected",sent:"Nos\u016Bt\u012Bts",draft:"Melnraksts",declined:"Noraid\u012Bts",new_estimate:"Jauns apr\u0113\u0137ins",add_new_estimate:"Pievienot jaunu apr\u0113\u0137inu",update_Estimate:"Atjaunin\u0101t apr\u0113\u0137inu",edit_estimate:"Labot apr\u0113\u0137inu",items:"preces",Estimate:"Apr\u0113\u0137ins | Apr\u0113\u0137ini",add_new_tax:"Pievienot jaunu nodokli",no_estimates:"V\u0113l nav apr\u0113\u0137inu!",list_of_estimates:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs apr\u0113\u0137inu saraksts.",mark_as_rejected:"Atz\u012Bm\u0113t k\u0101 noraid\u012Btu",mark_as_accepted:"Atz\u012Bm\u0113t k\u0101 apstiprin\u0101tu",marked_as_accepted_message:"Apr\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 apstiprin\u0101ts",marked_as_rejected_message:"Apr\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 noraid\u012Bts",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o apr\u0113\u0137inu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161o apr\u0113\u0137inus",created_message:"Apr\u0113\u0137ins izveidots veiksm\u012Bgi",updated_message:"Apr\u0113\u0137ins atjaunin\u0101ts veiksm\u012Bgi",deleted_message:"Apr\u0113\u0137ins veiksm\u012Bgi izdz\u0113sts | Apr\u0113\u0137ini veiksm\u012Bgi izdz\u0113sti",something_went_wrong:"kaut kas nog\u0101ja greizi",item:{title:"Preces nosaukums",description:"Apraksts",quantity:"Daudzums",price:"Cena",discount:"Atlaide",total:"Kop\u0101",total_discount:"Kop\u0113j\u0101 atlaide",sub_total:"Starpsumma",tax:"Nodoklis",amount:"Summa",select_an_item:"Rakst\u012Bt vai spiest, lai izv\u0113l\u0113tos",type_item_description:"Ievadiet preces/pakalpojuma aprakstu (nav oblig\u0101ti)"}},xf={title:"R\u0113\u0137ini",invoices_list:"R\u0113\u0137inu saraksts",days:"{days} Dienas",months:"{months} M\u0113nesis",years:"{years} Gads",all:"Visi",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"KLIENTS",paid_status:"APMAKSAS STATUS",ref_no:"REF NR.",number:"NUMURS",amount_due:"SUMMA APMAKSAI",partially_paid:"Da\u013C\u0113ji apmaks\u0101ts",total:"Kop\u0101",discount:"Atlaide",sub_total:"Starpsumma",invoice:"R\u0113\u0137ins | R\u0113\u0137ini",invoice_number:"R\u0113\u0137ina numurs",ref_number:"Ref numurs",contact:"Kontakti",add_item:"Pievienot preci",date:"Datums",due_date:"Apmaksas termi\u0146\u0161",status:"Status",add_tax:"Pievienot nodokli",amount:"Summa",action:"Darb\u012Bba",notes:"Piez\u012Bmes",view:"Skat\u012Bt",send_invoice:"Nos\u016Bt\u012Bt r\u0113\u0137inu",resend_invoice:"Nos\u016Bt\u012Bt r\u0113\u0137inu atk\u0101rtoti",invoice_template:"R\u0113\u0137ina sagatave",template:"Sagatave",mark_as_sent:"Atz\u012Bm\u0113t k\u0101 nos\u016Bt\u012Btu",confirm_send_invoice:"\u0160is r\u0113\u0137ins tiks nos\u016Bt\u012Bts klientam e-past\u0101",invoice_mark_as_sent:"R\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 nos\u016Bt\u012Bts",confirm_send:"\u0160is r\u0113\u0137ins tiks nos\u016Bt\u012Bts klientam e-past\u0101",invoice_date:"R\u0113\u0137ina datums",record_payment:"Izveidot maks\u0101jumu",add_new_invoice:"Jauns r\u0113\u0137ins",update_expense:"Atjaunin\u0101t izdevumu",edit_invoice:"Redi\u0123\u0113t r\u0113\u0137inu",new_invoice:"Jauns r\u0113\u0137ins",save_invoice:"Saglab\u0101t r\u0113\u0137inu",update_invoice:"Atjaunin\u0101t r\u0113\u0137inu",add_new_tax:"Pievienot jaunu nodokli",no_invoices:"V\u0113l nav r\u0113\u0137inu!",list_of_invoices:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs r\u0113\u0137inu saraksts.",select_invoice:"Izv\u0113laties r\u0113\u0137inu",no_matching_invoices:"Netika atrasts neviens r\u0113\u0137ins!",mark_as_sent_successfully:"R\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 veiksm\u012Bgi nos\u016Bt\u012Bts",invoice_sent_successfully:"R\u0113\u0137ins ir veiksm\u012Bgi nos\u016Bt\u012Bts",cloned_successfully:"R\u0113\u0137ins ir veiksm\u012Bgi nokop\u0113ts",clone_invoice:"Kop\u0113t r\u0113\u0137inu",confirm_clone:"\u0160is r\u0113\u0137ins tiks nokop\u0113ts k\u0101 jauns r\u0113\u0137ins",item:{title:"Preces nosaukums",description:"Apraksts",quantity:"Daudzums",price:"Cena",discount:"Atlaide",total:"Kop\u0101",total_discount:"Kop\u0113j\u0101 atlaide",sub_total:"Starpsumma",tax:"Nodoklis",amount:"Summa",select_an_item:"Rakst\u012Bt vai spiest, lai izv\u0113l\u0113tos",type_item_description:"Ievadiet preces/pakalpojuma aprakstu (nav oblig\u0101ti)"},confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o r\u0113\u0137inu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os r\u0113\u0137inus",created_message:"R\u0113\u0137ins izveidots veiksm\u012Bgi",updated_message:"R\u0113\u0137ins ir veiksm\u012Bgi atjaunin\u0101ts",deleted_message:"R\u0113\u0137ins veiksm\u012Bgi izdz\u0113sts | R\u0113\u0137ini veiksm\u012Bgi izdz\u0113sti",marked_as_sent_message:"R\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 veiksm\u012Bgi nos\u016Bt\u012Bts",something_went_wrong:"kaut kas nog\u0101ja greizi",invalid_due_amount_message:"R\u0113\u0137ina kop\u0113j\u0101 summa nevar b\u016Bt maz\u0101ka par kop\u0113jo apmaks\u0101to summu. L\u016Bdzu atjauniniet r\u0113\u0137inu vai dz\u0113siet piesaist\u012Btos maks\u0101jumus, lai turpin\u0101tu."},zf={title:"Maks\u0101jumi",payments_list:"Maks\u0101jumu saraksts",record_payment:"Izveidot maks\u0101jumu",customer:"Klients",date:"Datums",amount:"Summa",action:"Darb\u012Bba",payment_number:"Maks\u0101juma numurs",payment_mode:"Apmaksas veids",invoice:"R\u0113\u0137ins",note:"Piez\u012Bme",add_payment:"Pievienot maks\u0101jumu",new_payment:"Jauns maks\u0101jums",edit_payment:"Labot maks\u0101jumu",view_payment:"Skat\u012Bt maks\u0101jumu",add_new_payment:"Pievienot jaunu maks\u0101jumu",send_payment_receipt:"Nos\u016Bt\u012Bt maks\u0101juma izdruku",send_payment:"Nos\u016Bt\u012Bt maks\u0101jumu",save_payment:"Saglab\u0101t maks\u0101jumu",update_payment:"Labot maks\u0101jumu",payment:"Maks\u0101jums | Maks\u0101jumi",no_payments:"Nav pievienotu maks\u0101jumu!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Netika atrasts neviens maks\u0101jums!",list_of_payments:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs maks\u0101jumu saraksts.",select_payment_mode:"Izv\u0113l\u0113ties maks\u0101juma veidu",confirm_mark_as_sent:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 nos\u016Bt\u012Bts",confirm_send_payment:"\u0160is maks\u0101jums tiks nos\u016Bt\u012Bts klientam e-past\u0101",send_payment_successfully:"Maks\u0101jums veiksm\u012Bgi nos\u016Bt\u012Bts",something_went_wrong:"kaut kas nog\u0101ja greizi",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o maks\u0101jumu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os maks\u0101jumus",created_message:"Maks\u0101jums veiksm\u012Bgi izveidots",updated_message:"Maks\u0101jums veiksm\u012Bgi labots",deleted_message:"Maks\u0101jums veiksm\u012Bgi izdz\u0113sts | Maks\u0101jumi veiksm\u012Bgi izdz\u0113sti",invalid_amount_message:"Maks\u0101juma summa nav pareiza"},Sf={title:"Izdevumi",expenses_list:"Izdevumu saraksts",select_a_customer:"Izv\u0113l\u0113ties klientu",expense_title:"Nosaukums",customer:"Klients",contact:"Kontakti",category:"Kategorija",from_date:"Datums no",to_date:"Datums l\u012Bdz",expense_date:"Datums",description:"Apraksts",receipt:"\u010Ceks",amount:"Summa",action:"Darb\u012Bba",not_selected:"Not selected",note:"Piez\u012Bme",category_id:"Kategorijas Id",date:"Datums",add_expense:"Pievienot izdevumu",add_new_expense:"Pievienot jaunu izdevumu",save_expense:"Saglab\u0101t izdevumu",update_expense:"Atjaunin\u0101t izdevumu",download_receipt:"Lejupiel\u0101d\u0113t \u010Deku",edit_expense:"Labot izdevumu",new_expense:"Jauns izdevums",expense:"Izdevums | Izdevumi",no_expenses:"V\u0113l nav izdevumu!",list_of_expenses:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs izdevumu saraksts.",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o izdevumu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os izdevumus",created_message:"Izdevums izveidots veiksm\u012Bgi",updated_message:"Izdevums atjaunin\u0101ts veiksm\u012Bgi",deleted_message:"Izdevums veiksm\u012Bgi izdz\u0113sts | Izdevumi veiksm\u012Bgi izdz\u0113sti",categories:{categories_list:"Kategoriju saraksts",title:"Nosaukums",name:"V\u0101rds",description:"Apraksts",amount:"Summa",actions:"Darb\u012Bbas",add_category:"Pievienot kategoriju",new_category:"Jauna Kategorija",category:"Kategorija | Kategorijas",select_a_category:"Izv\u0113lieties kategoriju"}},jf={email:"E-pasts",password:"Parole",forgot_password:"Aizmirsi paroli?",or_signIn_with:"vai pierakst\u012Bties ar",login:"Ielogoties",register:"Re\u0123istr\u0113ties",reset_password:"Atjaunot paroli",password_reset_successfully:"Parole atjaunota veiksm\u012Bgi",enter_email:"Ievadiet e-pastu",enter_password:"Ievadiet paroli",retype_password:"Atk\u0101rtoti ievadiet paroli"},Pf={title:"Lietot\u0101ji",users_list:"Lietot\u0101ju saraksts",name:"V\u0101rds",description:"Apraksts",added_on:"Pievienots",date_of_creation:"Izveido\u0161anas datums",action:"Darb\u012Bba",add_user:"Pievienot lietot\u0101ju",save_user:"Saglab\u0101t lietot\u0101ju",update_user:"Atjaunin\u0101t lietot\u0101ju",user:"Lietot\u0101js | Lietot\u0101ji",add_new_user:"Pievienot jaunu lietot\u0101ju",new_user:"Jauns lietot\u0101js",edit_user:"Redi\u0123\u0113t lietot\u0101ju",no_users:"Pagaid\u0101m nav lietot\u0101ju!",list_of_users:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs lietot\u0101ju saraksts.",email:"E-pasts",phone:"Telefona numurs",password:"Parole",user_attached_message:"Nevar dz\u0113st preci, kura tiek izmantota",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o lietot\u0101ju | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os lietot\u0101jus",created_message:"Lietot\u0101js veiksm\u012Bgi izveidots",updated_message:"Lietot\u0101js veiksm\u012Bgi labots",deleted_message:"Lietot\u0101js veiksm\u012Bgi izdz\u0113sts"},Df={title:"Atskaite",from_date:"Datums no",to_date:"Datums l\u012Bdz",status:"Status",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",download_pdf:"Lejupiel\u0101d\u0113t PDF",view_pdf:"Apskat\u012Bt PDF",update_report:"Labot atskaiti",report:"Atskaite | Atskaites",profit_loss:{profit_loss:"Pe\u013C\u0146a & Zaud\u0113jumi",to_date:"Datums l\u012Bdz",from_date:"Datums no",date_range:"Izv\u0113l\u0113ties datumus"},sales:{sales:"P\u0101rdotais",date_range:"Izv\u0113l\u0113ties datumus",to_date:"Datums l\u012Bdz",from_date:"Datums no",report_type:"Atskaites veids"},taxes:{taxes:"Nodok\u013Ci",to_date:"Datums l\u012Bdz",from_date:"Datums no",date_range:"Izv\u0113l\u0113ties datumus"},errors:{required:"\u0160is lauks ir oblig\u0101ts"},invoices:{invoice:"R\u0113\u0137ins",invoice_date:"R\u0113\u0137ina datums",due_date:"Apmaksas termi\u0146\u0161",amount:"Summa",contact_name:"Kontaktpersonas v\u0101rds",status:"Status"},estimates:{estimate:"Apr\u0113\u0137ins",estimate_date:"Apr\u0113\u0137ina datums",due_date:"Termi\u0146\u0161",estimate_number:"Apr\u0113\u0137ina numurs",ref_number:"Ref numurs",amount:"Summa",contact_name:"Kontaktpersonas v\u0101rds",status:"Status"},expenses:{expenses:"Izdevumi",category:"Kategorija",date:"Datums",amount:"Summa",to_date:"Datums l\u012Bdz",from_date:"Datums no",date_range:"Izv\u0113l\u0113ties datumus"}},Cf={menu_title:{account_settings:"Konta iestat\u012Bjumi",company_information:"Uz\u0146\u0113muma inform\u0101cija",customization:"Piel\u0101go\u0161ana",preferences:"Iestat\u012Bjumi",notifications:"Pazi\u0146ojumi",tax_types:"Nodok\u013Cu veidi",expense_category:"Izdevumu kategorijas",update_app:"Atjaunin\u0101t App",backup:"Rezerves kopija",file_disk:"Disks",custom_fields:"Piel\u0101gotie lauki",payment_modes:"Apmaksas veidi",notes:"Piez\u012Bmes"},title:"Iestat\u012Bjumi",setting:"Iestat\u012Bjumi | Iestat\u012Bjumi",general:"Visp\u0101r\u012Bgi",language:"Valoda",primary_currency:"Prim\u0101r\u0101 val\u016Bta",timezone:"Laika josla",date_format:"Datuma form\u0101ts",currencies:{title:"Val\u016Btas",currency:"Val\u016Bta | Val\u016Btas",currencies_list:"Val\u016Btu saraksts",select_currency:"Izv\u0113leties val\u016Btu",name:"Nosaukums",code:"Kods",symbol:"Simbols",precision:"Precizit\u0101te",thousand_separator:"T\u016Bksto\u0161u atdal\u012Bt\u0101js",decimal_separator:"Decim\u0101lda\u013Cu atdal\u012Bt\u0101js",position:"Poz\u012Bcija",position_of_symbol:"Poz\u012Bcijas simbols",right:"Pa labi",left:"Pa kreisi",action:"Darb\u012Bba",add_currency:"Pievienot val\u016Btu"},mail:{host:"E-pasta serveris",port:"E-pasta ports",driver:"E-pasta draiveris",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\u0113ns",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"E-pasta parole",username:"E-pasta lietot\u0101jv\u0101rds",mail_config:"E-pasta konfigur\u0101cija",from_name:"E-pasts no",from_mail:"E-pasta adrese no kuras s\u016Bt\u012Bt",encryption:"E-pasta \u0161ifr\u0113\u0161ana",mail_config_desc:"Zem\u0101k ir e-pasta konfigur\u0113\u0161anas forma. J\u016Bs varat konfigur\u0113t ar\u012B tre\u0161\u0101s puses servisus k\u0101 Sendgrid, SES u.c."},pdf:{title:"PDF uzst\u0101d\u012Bjumi",footer_text:"K\u0101jenes teksts",pdf_layout:"PDF izk\u0101rtojums"},company_info:{company_info:"Uz\u0146\u0113muma inform\u0101cija",company_name:"Uz\u0146\u0113muma nosaukums",company_logo:"Uz\u0146\u0113muma logo",section_description:"Inform\u0101cija par uz\u0146\u0113mumu kura tiks uzr\u0101d\u012Bta r\u0113\u0137inos, apr\u0113\u0137inos un citos dokumentos kurus veidosiet Crater sist\u0113m\u0101.",phone:"Telefona numurs",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",address:"Adrese",zip:"Pasta indekss",save:"Saglab\u0101t",updated_message:"Uz\u0146\u0113muma inform\u0101cija veiksm\u012Bgi saglab\u0101ta"},custom_fields:{title:"Piel\u0101gotie lauki",section_description:"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.",add_custom_field:"Add Custom Field",edit_custom_field:"Edit Custom Field",field_name:"Field Name",label:"Label",type:"Type",name:"Name",required:"Required",placeholder:"Placeholder",help_text:"Help Text",default_value:"Noklus\u0113juma v\u0113rt\u012Bba",prefix:"Prefikss",starting_number:"S\u0101kuma numurs",model:"Modelis",help_text_description:"Enter some text to help users understand the purpose of this custom field.",suffix:"Suffix",yes:"J\u0101",no:"N\u0113",order:"Order",custom_field_confirm_delete:"You will not be able to recover this Custom Field",already_in_use:"Custom Field is already in use",deleted_message:"Custom Field deleted successfully",options:"options",add_option:"Add Options",add_another_option:"Add another option",sort_in_alphabetical_order:"Sort in Alphabetical Order",add_options_in_bulk:"Add options in bulk",use_predefined_options:"Use Predefined Options",select_custom_date:"Select Custom Date",select_relative_date:"Select Relative Date",ticked_by_default:"Ticked by default",updated_message:"Custom Field updated successfully",added_message:"Custom Field added successfully"},customization:{customization:"piel\u0101go\u0161ana",save:"Saglab\u0101t",addresses:{title:"Adreses",section_description:"J\u016Bs varat piel\u0101got klienta juridisk\u0101s adreses un pieg\u0101des adreses form\u0101tu. (Uzr\u0101d\u0101s PDF izdruk\u0101). ",customer_billing_address:"Klienta nor\u0113\u0137inu adrese",customer_shipping_address:"Klienta pieg\u0101des adrese",company_address:"Uz\u0146\u0113muma adrese",insert_fields:"Pievienot lauku",contact:"Kontakti",address:"Adrese",display_name:"Nosaukums",primary_contact_name:"Galven\u0101 kontakta v\u0101rds",email:"E-pasts",website:"M\u0101jaslapa",name:"Nosaukums",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",company_name:"Uz\u0146\u0113muma nosaukums",address_street_1:"Adrese 1",address_street_2:"Adrese 2",phone:"Telefona numurs",zip_code:"Pasta indekss",address_setting_updated:"Iestat\u012Bjumi tika veiksm\u012Bgi atjaunin\u0101ti"},updated_message:"Uz\u0146\u0113muma inform\u0101cija veiksm\u012Bgi saglab\u0101ta",invoices:{title:"R\u0113\u0137ini",notes:"Piez\u012Bmes",invoice_prefix:"R\u0113\u0137ina prefikss",default_invoice_email_body:"Default Invoice Email Body",invoice_settings:"Invoice Settings",autogenerate_invoice_number:"Autom\u0101tiski \u0123ener\u0113t r\u0113\u0137ina numuru",autogenerate_invoice_number_desc:"Atsp\u0113jojiet, ja nev\u0113laties autom\u0101tiski \u0123ener\u0113t r\u0113\u0137inu numurus katru reizi, kad izveidojat jaunu r\u0113\u0137inu.",enter_invoice_prefix:"Ievadiet r\u0113\u0137ina prefiksu",terms_and_conditions:"Lieto\u0161anas noteikumi",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",shipping_address_format:"Pieg\u0101des adreses form\u0101ts",billing_address_format:"Maks\u0101t\u0101ja / Uz\u0146\u0113muma adreses form\u0101ts",invoice_settings_updated:"R\u0113\u0137ina iestat\u012Bjumi ir veiksm\u012Bgi atjaunin\u0101ti"},estimates:{title:"Apr\u0113\u0137ini",estimate_prefix:"Apr\u0113\u0137inu prefikss",default_estimate_email_body:"Noklus\u0113jamais Apr\u0113\u0137ina e-pasta saturs",estimate_settings:"Apr\u0113\u0137inu iestat\u012Bjumi",autogenerate_estimate_number:"Autom\u0101tiski \u0123ener\u0113t Apr\u0113\u0137ina numuru",estimate_setting_description:"Atsp\u0113jojiet, ja nev\u0113laties autom\u0101tiski \u0123ener\u0113t Apr\u0113\u0137inu numurus katru reizi, kad izveidojat jaunu Apr\u0113\u0137inu.",enter_estimate_prefix:"Ievadiet Apr\u0113\u0137ina prefiksu",estimate_setting_updated:"Apr\u0113\u0137ina iestat\u012Bjumi ir veiksm\u012Bgi atjaunin\u0101ti",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",billing_address_format:"Maks\u0101t\u0101ja / Uz\u0146\u0113muma adreses form\u0101ts",shipping_address_format:"Pieg\u0101des adreses form\u0101ts"},payments:{title:"Maks\u0101jumi",description:"P\u0101rskait\u012Bjumu veidi, maks\u0101jumiem",payment_prefix:"Maks\u0101juma prefikss",default_payment_email_body:"Noklus\u0113jamais Maks\u0101juma e-pasta saturs",payment_settings:"Maks\u0101jumu iestat\u012Bjumi",autogenerate_payment_number:"Autom\u0101tiski \u0123ener\u0113t Maks\u0101juma numuru",payment_setting_description:"Atsp\u0113jojiet, ja nev\u0113laties autom\u0101tiski \u0123ener\u0113t Maks\u0101juma numurus katru reizi, kad izveidojat jaunu Maks\u0101jumu.",enter_payment_prefix:"Ievadiet Maks\u0101juma prefiksu",payment_setting_updated:"Maks\u0101jumu iestat\u012Bjumi ir veiksm\u012Bgi atjaunin\u0101ti",payment_modes:"Apmaksas veidi",add_payment_mode:"Pievienojiet apmaksas veidu",edit_payment_mode:"Labot maks\u0101juma veidu",mode_name:"Veida nosaukums",payment_mode_added:"Pievienots maks\u0101\u0161anas veids",payment_mode_updated:"Labots maks\u0101\u0161anas veids",payment_mode_confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Maks\u0101juma veidu",already_in_use:"Maks\u0101juma veids jau tiek izmantots",deleted_message:"Maks\u0101juma veids veiksm\u012Bgi izdz\u0113sts",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",from_customer_address_format:"No Klienta adreses form\u0101ts"},items:{title:"Preces",units:"Vien\u012Bbas",add_item_unit:"Pievienot Preces vien\u012Bbu",edit_item_unit:"Labot Preces vien\u012Bbu",unit_name:"Vien\u012Bbas nosaukums",item_unit_added:"Preces vien\u012Bba pievienota",item_unit_updated:"Preces vien\u012Bba atjaunota",item_unit_confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Preces vien\u012Bbu",already_in_use:"Preces vien\u012Bba jau tiek izmantota",deleted_message:"Preces vien\u012Bba veiksm\u012Bgi izdz\u0113sta"},notes:{title:"Piez\u012Bmes",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"Notes",type:"Type",add_note:"Add Note",add_new_note:"Add New Note",name:"Name",edit_note:"Edit Note",note_added:"Note added successfully",note_updated:"Note Updated successfully",note_confirm_delete:"You will not be able to recover this Note",already_in_use:"Note is already in use",deleted_message:"Note deleted successfully"}},account_settings:{profile_picture:"Profile Picture",name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password",account_settings:"Account Settings",save:"Save",section_description:"You can update your name, email & password using the form below.",updated_message:"Account Settings updated successfully"},user_profile:{name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password"},notification:{title:"Notification",email:"Send Notifications to",description:"Which email notifications would you like to receive when something changes?",invoice_viewed:"Invoice viewed",invoice_viewed_desc:"When your customer views the invoice sent via crater dashboard.",estimate_viewed:"Estimate viewed",estimate_viewed_desc:"When your customer views the estimate sent via crater dashboard.",save:"Save",email_save_message:"Email saved successfully",please_enter_email:"Please Enter Email"},tax_types:{title:"Tax Types",add_tax:"Add Tax",edit_tax:"Edit Tax",description:"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.",add_new_tax:"Add New Tax",tax_settings:"Tax Settings",tax_per_item:"Tax Per Item",tax_name:"Tax Name",compound_tax:"Compound Tax",percent:"Percent",action:"Action",tax_setting_description:"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.",created_message:"Tax type created successfully",updated_message:"Tax type updated successfully",deleted_message:"Tax type deleted successfully",confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Nodok\u013Ca veidu",already_in_use:"Nodoklis jau tiek izmantots"},expense_category:{title:"Izdevumu kategorijas",action:"Darb\u012Bba",description:"Kategorijas ir oblig\u0101tas, lai pievienotu Izdevumus.",add_new_category:"Pievienot jaunu kategoriju",add_category:"Pievienot kategoriju",edit_category:"Redi\u0123\u0113t kategoriju",category_name:"Kategorijas nosaukums",category_description:"Apraksts",created_message:"Izdevumu kategorija izveidota veiksm\u012Bgi",deleted_message:"Izdevumu kategorija veiksm\u012Bgi izdz\u0113sta",updated_message:"Izdevumu kategorija atjaunin\u0101ta veiksm\u012Bgi",confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Izdevumu kategoriju",already_in_use:"Kategorija jau tiek izmantota"},preferences:{currency:"Val\u016Bta",default_language:"Noklus\u0113juma valoda",time_zone:"Laika josla",fiscal_year:"Finan\u0161u gads",date_format:"Datuma form\u0101ts",discount_setting:"Atlai\u017Eu iestat\u012Bjumi",discount_per_item:"Atlaide par preci/pakalpojumu ",discount_setting_description:"Iesp\u0113jot \u0161o, lai pie\u0161\u0137irtu atlaides individu\u0101l\u0101m r\u0113\u0137ina prec\u0113m. P\u0113c noklus\u0113juma, atlaide tiek piem\u0113rota r\u0113\u0137inam.",save:"Saglab\u0101t",preference:"Iestat\u012Bjumi | Iestat\u012Bjumi",general_settings:"Noklus\u0113jamie iestat\u012Bjumi sist\u0113mai.",updated_message:"Iestat\u012Bjumi atjaunin\u0101ti veiksm\u012Bgi",select_language:"Izv\u0113lieties valodu",select_time_zone:"Izv\u0113laties laika joslu",select_date_format:"Izv\u0113laties datuma form\u0101tu",select_financial_year:"Izv\u0113laties finan\u0161u gadu"},update_app:{title:"Atjaunin\u0101t App",description:"J\u016Bs varat atjaunin\u0101t Crater sist\u0113mas versiju pavisam vienk\u0101r\u0161i - spie\u017Eot uz pogas zem\u0101k",check_update:"Mekl\u0113t atjaunin\u0101jumus",avail_update:"Pieejami jauni atjaunin\u0101jumi",next_version:"N\u0101kam\u0101 versija",requirements:"Pras\u012Bbas",update:"Atjaunin\u0101t tagad",update_progress:"Notiek atjaunin\u0101\u0161ana...",progress_text:"Tas pras\u012Bs tikai da\u017Eas min\u016Btes. Pirms atjaunin\u0101\u0161anas beig\u0101m, l\u016Bdzu, neatsvaidziniet ekr\u0101nu un neaizveriet logu",update_success:"Sist\u0113ma ir atjaunin\u0101ta! L\u016Bdzu, uzgaidiet, kam\u0113r p\u0101rl\u016Bkprogrammas logs tiks autom\u0101tiski iel\u0101d\u0113ts.",latest_message:"Atjaunin\u0101jumi nav pieejami! Jums ir jaun\u0101k\u0101 versija.",current_version:"Versija",download_zip_file:"Lejupiel\u0101d\u0113t ZIP failu",unzipping_package:"Atarhiv\u0113 Zip failu",copying_files:"Notiek failu kop\u0113\u0161ana",running_migrations:"Notiek migr\u0101cijas",finishing_update:"Pabeidz atjaunin\u0101jumu",update_failed:"Atjaunin\u0101\u0161ana neizdev\u0101s",update_failed_text:"Atvainojiet! J\u016Bsu atjaunin\u0101juma laik\u0101 notika k\u013C\u016Bda: {step}. sol\u012B"},backup:{title:"Backup | Backups",description:"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database",new_backup:"Add New Backup",create_backup:"Create Backup",select_backup_type:"Select Backup Type",backup_confirm_delete:"You will not be able to recover this Backup",path:"path",new_disk:"New Disk",created_at:"created at",size:"size",dropbox:"dropbox",local:"local",healthy:"healthy",amount_of_backups:"amount of backups",newest_backups:"newest backups",used_storage:"used storage",select_disk:"Select Disk",action:"Action",deleted_message:"Backup deleted successfully",created_message:"Backup created successfully",invalid_disk_credentials:"Invalid credential of selected disk"},disk:{title:"File Disk | File Disks",description:"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.",created_at:"created at",dropbox:"dropbox",name:"Name",driver:"Driver",disk_type:"Type",disk_name:"Disk Name",new_disk:"Add New Disk",filesystem_driver:"Filesystem Driver",local_driver:"local Driver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Default Driver",is_default:"IR NOKLUS\u0112JAMS",set_default_disk:"Iestatiet noklus\u0113juma disku",success_set_default_disk:"Disks ir veiksm\u012Bgi iestat\u012Bts k\u0101 noklus\u0113jums",save_pdf_to_disk:"Saglab\u0101t PDF uz diska",disk_setting_description:" Iesp\u0113jot \u0161o, ja v\u0113laties lai katru r\u0113\u0137ina, apr\u0113\u0137ina un maks\u0101juma izdrukas PDF kopiju saglab\u0101tu disk\u0101. \u0160\u012B opcija samazin\u0101s iel\u0101d\u0113\u0161anas laiku, kad apskat\u012Bsiet PDF.",select_disk:"Izv\u0113lieties disku",disk_settings:"Diska uzst\u0101d\u012Bjumi",confirm_delete:"J\u016Bsu eso\u0161ie faili un mapes nor\u0101d\u012Btaj\u0101 disk\u0101 netiks ietekm\u0113ti, bet diska konfigur\u0101cija tiks izdz\u0113sta no Crater sist\u0113mas",action:"Darb\u012Bba",edit_file_disk:"Labot failu disku",success_create:"Disks tika pievienots veiksm\u012Bgi",success_update:"Disks atjaunin\u0101ts veiksm\u012Bgi",error:"Diska pievieno\u0161anas k\u013C\u016Bda",deleted_message:"Failu disks veiksm\u012Bgi izdz\u0113sts",disk_variables_save_successfully:"Disks konfigur\u0113ts veiksm\u012Bgi",disk_variables_save_error:"Diska konfigur\u0101cija neveiksm\u012Bga.",invalid_disk_credentials:"Nepareizi pieejas dati atz\u012Bm\u0113tajam diskam"}},Af={account_info:"Konta inform\u0101cija",account_info_desc:"Zem\u0101k sniegt\u0101 inform\u0101cija tiks izmantota galven\u0101 administratora konta izveidei. J\u016Bs var\u0113siet main\u012Bt inform\u0101ciju jebkur\u0101 laik\u0101 p\u0113c ielogo\u0161an\u0101s.",name:"V\u0101rds",email:"E-pasts",password:"Parole",confirm_password:"Apstipriniet paroli",save_cont:"Saglab\u0101t un turpin\u0101t",company_info:"Uz\u0146\u0113muma inform\u0101cija",company_info_desc:"\u0160\u012B inform\u0101cija tiks par\u0101d\u012Bta r\u0113\u0137inos. \u0145emiet v\u0113r\u0101, ka v\u0113l\u0101k to var redi\u0123\u0113t iestat\u012Bjumu lap\u0101.",company_name:"Uz\u0146\u0113muma nosaukums",company_logo:"Uz\u0146\u0113muma logo",logo_preview:"Logo",preferences:"Iestat\u012Bjumi",preferences_desc:"Noklus\u0113jamie iestat\u012Bjumi sist\u0113mai.",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",address:"Adrese",street:"Adrese1 | Adrese2",phone:"Telefona numurs",zip_code:"Pasta indekss",go_back:"Atpaka\u013C",currency:"Val\u016Bta",language:"Valoda",time_zone:"Time Zone",fiscal_year:"Financial Year",date_format:"Date Format",from_address:"From Address",username:"Username",next:"Next",continue:"Continue",skip:"Skip",database:{database:"Site URL & Database",connection:"Database Connection",host:"Database Host",port:"Database Port",password:"Database Password",app_url:"App URL",app_domain:"App Domain",username:"Database Username",db_name:"Database Name",db_path:"Database Path",desc:"Create a database on your server and set the credentials using the form below."},permissions:{permissions:"Permissions",permission_confirm_title:"Are you sure you want to continue?",permission_confirm_desc:"Folder permission check failed",permission_desc:"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},req:{system_req:"System Requirements",php_req_version:"Php (version {version} required)",check_req:"P\u0101rbaud\u012Bt pras\u012Bbas",system_req_desc:"Crater sist\u0113mai ir da\u017Eas servera pras\u012Bbas. P\u0101rliecinieties, ka j\u016Bsu serverim ir vajadz\u012Bg\u0101 php versija un visi t\u0101l\u0101k min\u0113tie papla\u0161in\u0101jumi."},errors:{migrate_failed:"Migr\u0101cija neizdev\u0101s",database_variables_save_error:"Nevar\u0113ja konfigur\u0113t .env failu. L\u016Bdzu p\u0101rbaudiet faila pieejas",mail_variables_save_error:"E-pasta konfigur\u0101cija neveiksm\u012Bga.",connection_failed:"Datub\u0101zes savienojums neveiksm\u012Bgs",database_should_be_empty:"Datub\u0101zei j\u0101b\u016Bt tuk\u0161ai"},success:{mail_variables_save_successfully:"E-pasts konfigur\u0113ts veiksm\u012Bgi",database_variables_save_successfully:"Database configured successfully."}},Ef={invalid_phone:"Invalid Phone Number",invalid_url:"Invalid url (ex: http://www.craterapp.com)",invalid_domain_url:"Invalid url (ex: craterapp.com)",required:"Field is required",email_incorrect:"Incorrect Email.",email_already_taken:"The email has already been taken.",email_does_not_exist:"User with given email doesn't exist",item_unit_already_taken:"This item unit name has already been taken",payment_mode_already_taken:"This payment mode name has already been taken",send_reset_link:"Send Reset Link",not_yet:"Not yet? Send it again",password_min_length:"Password must contain {count} characters",name_min_length:"Name must have at least {count} letters.",enter_valid_tax_rate:"Enter valid tax rate",numbers_only:"Numbers Only.",characters_only:"Characters Only.",password_incorrect:"Passwords must be identical",password_length:"Password must be {count} character long.",qty_must_greater_than_zero:"Quantity must be greater than zero.",price_greater_than_zero:"Price must be greater than zero.",payment_greater_than_zero:"Payment must be greater than   zero.",payment_greater_than_due_amount:"Entered Payment is more than due amount of this invoice.",quantity_maxlength:"Quantity should not be greater than 20 digits.",price_maxlength:"Price should not be greater than 20 digits.",price_minvalue:"Price should be greater than 0.",amount_maxlength:"Amount should not be greater than 20 digits.",amount_minvalue:"Amount should be greater than 0.",description_maxlength:"Description should not be greater than 255 characters.",subject_maxlength:"Subject should not be greater than 100 characters.",message_maxlength:"Message should not be greater than 255 characters.",maximum_options_error:"Maximum  of {max} options selected. First remove a selected option to select another.",notes_maxlength:"Notes should not be greater than 255 characters.",address_maxlength:"Address should not be greater than 255 characters.",ref_number_maxlength:"Ref Number should not be greater than 255 characters.",prefix_maxlength:"Prefix should not be greater than 5 characters.",something_went_wrong:"something went wrong"},Nf="Apr\u0113\u0137ins",Tf="Apr\u0113\u0137ina numurs",If="Apr\u0113\u0137ina datums",$f="Der\u012Bgs l\u012Bdz",Rf="R\u0113\u0137ins",Ff="R\u0113\u0137ina numurs",Mf="R\u0113\u0137ina datums",Vf="Apmaksas termi\u0146\u0161",Bf="Notes",Of="Nosaukums",Lf="Daudzums",Uf="Cena",Kf="Atlaide",qf="Summa",Zf="Starpsumma",Wf="Kop\u0101",Hf="Payment",Gf="MAKS\u0100JUMA IZDRUKA",Yf="Maks\u0101juma datums",Jf="Maks\u0101juma numurs",Xf="Apmaksas veids",Qf="Sa\u0146emt\u0101 summa",eh="IZDEVUMU ATSKAITE",th="KOP\u0100 IZDEVUMI",ah="PE\u013B\u0145AS & IZDEVUMU ATSKAITE",sh="Sales Customer Report",nh="Sales Item Report",ih="Tax Summary Report",oh="IEN\u0100KUMI",rh="PE\u013B\u0145A",dh="Atskaite par p\u0101rdoto: P\u0113c lietot\u0101ja",lh="KOP\u0100 P\u0100RDOTAIS",ch="Atskaite par p\u0101rdoto: P\u0113c preces/pakalpojuma",_h="NODOK\u013BU ATSKAITE",uh="NODOK\u013BI KOP\u0100",mh="Nodok\u013Cu veidi",ph="Izdevumi",gh="Sa\u0146\u0113m\u0113js,",fh="Pieg\u0101des adrese,",hh="Sa\u0146emts no:",vh="Nodoklis";var yh={navigation:gf,general:ff,dashboard:hf,tax_types:vf,global_search:yf,customers:bf,items:kf,estimates:wf,invoices:xf,payments:zf,expenses:Sf,login:jf,users:Pf,reports:Df,settings:Cf,wizard:Af,validation:Ef,pdf_estimate_label:Nf,pdf_estimate_number:Tf,pdf_estimate_date:If,pdf_estimate_expire_date:$f,pdf_invoice_label:Rf,pdf_invoice_number:Ff,pdf_invoice_date:Mf,pdf_invoice_due_date:Vf,pdf_notes:Bf,pdf_items_label:Of,pdf_quantity_label:Lf,pdf_price_label:Uf,pdf_discount_label:Kf,pdf_amount_label:qf,pdf_subtotal:Zf,pdf_total:Wf,pdf_payment_label:Hf,pdf_payment_receipt_label:Gf,pdf_payment_date:Yf,pdf_payment_number:Jf,pdf_payment_mode:Xf,pdf_payment_amount_received_label:Qf,pdf_expense_report_label:eh,pdf_total_expenses_label:th,pdf_profit_loss_label:ah,pdf_sales_customers_label:sh,pdf_sales_items_label:nh,pdf_tax_summery_label:ih,pdf_income_label:oh,pdf_net_profit_label:rh,pdf_customer_sales_report:dh,pdf_total_sales_label:lh,pdf_item_sales_label:ch,pdf_tax_report_label:_h,pdf_total_tax_label:uh,pdf_tax_types_label:mh,pdf_expenses_label:ph,pdf_bill_to:gh,pdf_ship_to:fh,pdf_received_from:hh,pdf_tax_label:vh};const bh={dashboard:"\xD6versikt",customers:"Kunder",items:"Artiklar",invoices:"Fakturor",expenses:"Utgifter",estimates:"Kostnadsf\xF6rslag",payments:"Betalningar",reports:"Rapporter",settings:"Inst\xE4llningar",logout:"Logga ut",users:"Anv\xE4ndare"},kh={add_company:"Skapa f\xF6retag",view_pdf:"Visa PDF",copy_pdf_url:"Kopiera adress till PDF",download_pdf:"Ladda ner PDF",save:"Spara",create:"Skapa",cancel:"Avbryt",update:"Uppdatera",deselect:"Avmarkera",download:"Ladda ner",from_date:"Fr\xE5n datum",to_date:"Till datum",from:"Fr\xE5n",to:"Till",sort_by:"Sortera p\xE5",ascending:"Stigande",descending:"Fallande",subject:"\xC4mne",body:"Inneh\xE5ll",message:"Meddelande",send:"Skicka",go_back:"Tillbaka",back_to_login:"Till inloggningssidan?",home:"Hem",filter:"Filter",delete:"Ta bort",edit:"Editera",view:"Visa",add_new_item:"Skapa artikel",clear_all:"Rensa alla",showing:"Visar",of:"av",actions:"Funktioner",subtotal:"DELSUMMA",discount:"RABATT",fixed:"Fast",percentage:"Procent",tax:"MOMS",total_amount:"TOTALSUMMA",bill_to:"Faktureras till",ship_to:"Levereras till",due:"F\xF6rfallen",draft:"F\xF6rslag",sent:"Skickat",all:"Alla",select_all:"V\xE4lj alla",choose_file:"Klicka h\xE4r f\xF6r att v\xE4lja fil",choose_template:"V\xE4lj mall",choose:"V\xE4lj",remove:"Ta bort",select_a_status:"V\xE4lj status",select_a_tax:"V\xE4lj moms",search:"S\xF6k",are_you_sure:"\xC4r du s\xE4ker?",list_is_empty:"Listan \xE4r tom.",no_tax_found:"Hittade inte moms!",four_zero_four:"404",you_got_lost:"Hoppsan! Nu \xE4r du vilse!",go_home:"G\xE5 hem",test_mail_conf:"Testa epostinst\xE4llningar",send_mail_successfully:"Lyckades skicka epost",setting_updated:"Inst\xE4llningar uppdaterades",select_state:"V\xE4lj kommun",select_country:"V\xE4lj land",select_city:"V\xE4lj stad",street_1:"Gatuadress 1",street_2:"Gatuadress 2",action_failed:"F\xF6rs\xF6k misslyckades",retry:"F\xF6rs\xF6k igen",choose_note:"V\xE4lj notering",no_note_found:"Inga noteringar hittades",insert_note:"L\xE4gg till notering",copied_pdf_url_clipboard:"Url till PDF kopierades till urklipp!"},wh={select_year:"V\xE4lj \xE5r",cards:{due_amount:"F\xF6rfallet belopp",customers:"Kunder",invoices:"Fakturor",estimates:"Kostnadsf\xF6rslag"},chart_info:{total_sales:"F\xF6rs\xE4ljning",total_receipts:"Kvitton",total_expense:"Utgifter",net_income:"Nettoinkomst",year:"V\xE4lj \xE5r"},monthly_chart:{title:"F\xF6rs\xE4ljning och utgifter"},recent_invoices_card:{title:"F\xF6rfallna fakturor",due_on:"F\xF6rfaller den",customer:"Kund",amount_due:"F\xF6rfallet belopp",actions:"Handlingar",view_all:"Visa alla"},recent_estimate_card:{title:"Senaste kostnadsf\xF6rslag",date:"Datum",customer:"Kund",amount_due:"F\xF6rfallet belopp",actions:"Handlingar",view_all:"Visa alla"}},xh={name:"Namn",description:"Beskrivning",percent:"Provent",compound_tax:"Sammansatt moms"},zh={search:"S\xF6k...",customers:"Kunder",users:"Anv\xE4ndare",no_results_found:"Hittade inga resultat"},Sh={title:"Kunder",add_customer:"L\xE4gg till kund",contacts_list:"Kundlista",name:"Namn",mail:"Epost | Epost",statement:"P\xE5st\xE5ende",display_name:"Visningsnamn",primary_contact_name:"Prim\xE4r kontakts namn",contact_name:"Kontaktnamn",amount_due:"F\xF6rfallet belopp",email:"Epost",address:"Adress",phone:"Telefon",website:"Hemsida",overview:"\xD6versikt",enable_portal:"Aktivera portal",country:"Land",state:"Kommun",city:"Stad",zip_code:"Postnummer",added_on:"Tillagd den",action:"Handling",password:"L\xF6senord",street_number:"Gatnummer",primary_currency:"Huvudvaluta",description:"Beskrivning",add_new_customer:"L\xE4gg till ny kund",save_customer:"Spara kund",update_customer:"Uppdatera kund",customer:"Kund | Kunder",new_customer:"Ny kund",edit_customer:"\xC4ndra kund",basic_info:"Information",billing_address:"Fakturaadress",shipping_address:"Leveransadress",copy_billing_address:"Kopiera fr\xE5n faktura",no_customers:"Inga kunder \xE4n!",no_customers_found:"Hittade inga kunder!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"H\xE4r kommer det finnas en lista med kunder.",primary_display_name:"Visningsnamn",select_currency:"V\xE4lj valuta",select_a_customer:"V\xE4lj kund",type_or_click:"Skriv eller klicka f\xF6r att v\xE4lja",new_transaction:"Ny transaktion",no_matching_customers:"Matchade inte med n\xE5gon kund!",phone_number:"Telefonnummer",create_date:"Skapandedatum",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna kund eller n\xE5gra relaterade fakturor, kostnadsf\xF6rslag eller betalningar. | Du kommer inte kunna \xE5terst\xE4lla dessa kunder eller n\xE5gra relaterade fakturor, kostnadsf\xF6rslag eller betalningar.",created_message:"Kund skapades",updated_message:"Kund uppdaterades",deleted_message:"Kund raderades | Kunder raderades"},jh={title:"Artiklar",items_list:"Artikellista",name:"Namn",unit:"Enhet",description:"Beskrivning",added_on:"Tillagd den",price:"Pris",date_of_creation:"Skapandedatum",not_selected:"No item selected",action:"Handling",add_item:"Skapa artikel",save_item:"Spara artikel",update_item:"Uppdatera artiklar",item:"Artikel | Artiklar",add_new_item:"Skapa ny artikel",new_item:"Ny artikel",edit_item:"\xC4ndra artikel",no_items:"Inga artiklar \xE4n!",list_of_items:"H\xE4r kommer lista \xF6ver artiklar vara.",select_a_unit:"v\xE4lj enhet",taxes:"Moms",item_attached_message:"Kan inte radera en artikel som anv\xE4nds",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna artikel | Du kommer inte kunna \xE5terst\xE4lla dessa artiklar",created_message:"Artikel skapades",updated_message:"Artikel uppdaterades",deleted_message:"Artikel raderades | Artiklar raderades"},Ph={title:"Kostnadsf\xF6rslag",estimate:"Kostnadsf\xF6rslag | Kostnadsf\xF6rslag",estimates_list:"Lista med kostnadsf\xF6rslag",days:"{days} dagar",months:"{months} m\xE5nader",years:"{years} \xE5r",all:"Alla",paid:"Betalda",unpaid:"Obetalda",customer:"KUND",ref_no:"REF NR.",number:"NUMMER",amount_due:"F\xD6RFALLET BELOPP",partially_paid:"Delbetald",total:"Summa",discount:"Rabatt",sub_total:"Delsumma",estimate_number:"Kostnadsf\xF6rslagsnummer",ref_number:"Ref Nummer",contact:"Kontakt",add_item:"L\xE4gg till artikel",date:"Datum",due_date:"F\xF6rfallodatum",expiry_date:"Utg\xE5ngsdatum",status:"Status",add_tax:"L\xE4gg till moms",amount:"Belopp",action:"Handling",notes:"Noteringar",tax:"Moms",estimate_template:"Mall",convert_to_invoice:"Konvertera till faktura",mark_as_sent:"Markerade som skickad",send_estimate:"Skicka kostnadsf\xF6rslag",resend_estimate:"Skicka kostnadsf\xF6rslag igen",record_payment:"Registrera betalning",add_estimate:"L\xE4gg till kostnadsf\xF6rslag",save_estimate:"Spara kostnadsf\xF6rslag",confirm_conversion:"Detta kostnadsf\xF6rslag anv\xE4nds f\xF6r att skapa ny faktura.",conversion_message:"Faktura skapades",confirm_send_estimate:"Detta kostnadsf\xF6rslag skickas via epost till kund",confirm_mark_as_sent:"Detta kostnadsf\xF6rslag markeras som skickat",confirm_mark_as_accepted:"Detta kostnadsf\xF6rslag markeras som accepterad",confirm_mark_as_rejected:"Detta kostnadsf\xF6rslag markeras som avvisad",no_matching_estimates:"Inga matchande kostnadsf\xF6rslag!",mark_as_sent_successfully:"Kostnadsf\xF6rslag markerat som skickat",send_estimate_successfully:"Kostnadsf\xF6rslag skickades",errors:{required:"F\xE4ltet \xE4r tvingande"},accepted:"Accepterad",rejected:"Rejected",sent:"Skickat",draft:"Utkast",declined:"Avvisad",new_estimate:"Nytt kostnadsf\xF6rslag",add_new_estimate:"Skapa nytt kostnadsf\xF6rslag",update_Estimate:"Uppdatera kostnadsf\xF6rslag",edit_estimate:"\xC4ndra kostnadsf\xF6rslag",items:"artiklar",Estimate:"Kostnadsf\xF6rslag | Kostnadsf\xF6rslag",add_new_tax:"Skapa ny momssats",no_estimates:"Inga kostnadsf\xF6rslag \xE4n!",list_of_estimates:"H\xE4r kommer det finnas kostnadsf\xF6rslag.",mark_as_rejected:"Markera som avvisad",mark_as_accepted:"Markera som godk\xE4nd",marked_as_accepted_message:"Kostnadsf\xF6rslag markerad som godk\xE4nd",marked_as_rejected_message:"Kostnadsf\xF6rslag markerad som avvisad",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla detta kostnadsf\xF6rslag | Du kommer inte kunna \xE5terst\xE4lla dessa kostnadsf\xF6rslag",created_message:"Kostnadsf\xF6rslag skapades",updated_message:"Kostnadsf\xF6rslag \xE4ndrades",deleted_message:"Kostnadsf\xF6rslag raderades | Kostnadsf\xF6rslag raderades",something_went_wrong:"n\xE5got gick fel",item:{title:"Artikelnamn",description:"Beskrivning",quantity:"Antal",price:"Pris",discount:"Rabatt",total:"Summa",total_discount:"Rabattsumma",sub_total:"Delsumma",tax:"Moms",amount:"Summa",select_an_item:"Skriv eller klicka f\xF6r att v\xE4lja artikel",type_item_description:"Skriv in artikelns beskrivning (frivilligt)"}},Dh={title:"Fakturor",invoices_list:"Fakturor",days:"{days} dagar",months:"{months} m\xE5nader",years:"{years} \xE5r",all:"Alla",paid:"Betalda",unpaid:"Obetalda",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"KUNDER",paid_status:"BETALSTATUS",ref_no:"REF NR.",number:"NUMMER",amount_due:"F\xD6RFALLET BELOPP",partially_paid:"Delbetald",total:"Summa",discount:"Rabatt",sub_total:"Delsumma",invoice:"Faktura | Fakturor",invoice_number:"Fakturanummer",ref_number:"Ref Nummer",contact:"Kontakt",add_item:"L\xE4gg till artikel",date:"Datum",due_date:"F\xF6rfallodatum",status:"Status",add_tax:"L\xE4gg till moms",amount:"Summa",action:"Handling",notes:"Noteringar",view:"Visa",send_invoice:"Skicka faktura",resend_invoice:"Skicka faktura igen",invoice_template:"Fakturamall",template:"Mall",mark_as_sent:"Markera som skickad",confirm_send_invoice:"Denna faktura skickas via epost till kunden",invoice_mark_as_sent:"Denna faktura markeras som skickad",confirm_send:"Denna faktura skickas via epost till kunden",invoice_date:"Fakturadatum",record_payment:"Registrera betalning",add_new_invoice:"L\xE4gg till ny faktura",update_expense:"\xC4ndra utgifter",edit_invoice:"Editera faktura",new_invoice:"Ny faktura",save_invoice:"Spara faktura",update_invoice:"Uppdatera faktura",add_new_tax:"L\xE4gg till ny momssats",no_invoices:"Inga fakturor \xE4n!",list_of_invoices:"H\xE4r kommer det vara en lista med fakturor.",select_invoice:"V\xE4lj faktura",no_matching_invoices:"Inga matchande fakturor!",mark_as_sent_successfully:"Fakturans status \xE4ndrad till skickad",invoice_sent_successfully:"Fakturan skickades",cloned_successfully:"Fakturan kopierades",clone_invoice:"Kopiera faktura",confirm_clone:"Denna faktura kopieras till en ny faktura",item:{title:"Artikelnamn",description:"Beskvirning",quantity:"Antal",price:"Pris",discount:"Rabatt",total:"Summa",total_discount:"Totalsumma",sub_total:"Delsumma",tax:"Moms",amount:"Summa",select_an_item:"Skriv eller klicka f\xF6r att v\xE4lja artikel",type_item_description:"Artikeltypsbeskrivning (frivillig)"},confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna faktura | Du kommer inte kunna \xE5terst\xE4lla dessa fakturor",created_message:"Faktura skapades",updated_message:"Faktura uppdaterades",deleted_message:"Faktura raderades | fakturor raderades",marked_as_sent_message:"Faktura markerad som skickad",something_went_wrong:"n\xE5got blev fel",invalid_due_amount_message:"Totalsumman f\xF6r fakturan kan inte vara l\xE4gra \xE4n den betalda summan. V\xE4nligen uppdatera fakturan eller radera dom kopplade betalningarna."},Ch={title:"Betalningar",payments_list:"Lista med betalningar",record_payment:"Registrera betalning",customer:"Kund",date:"Datum",amount:"Summa",action:"Handling",payment_number:"Betalningsnummer",payment_mode:"Betalningss\xE4tt",invoice:"Faktura",note:"Notering",add_payment:"Skapa betalning",new_payment:"Ny betalning",edit_payment:"\xC4ndra betalning",view_payment:"Visa betalning",add_new_payment:"Skapa ny betalning",send_payment_receipt:"Skicka kvitto p\xE5 betalning",send_payment:"Skicka betalning",save_payment:"Spara betalning",update_payment:"Uppdatera betalning",payment:"Betalning | Betalningar",no_payments:"Inga betalningar \xE4n!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Inga matchande betalningar!",list_of_payments:"H\xE4r kommer listan med betalningar finnas.",select_payment_mode:"V\xE4lj betalningss\xE4tt",confirm_mark_as_sent:"Detta kostnadsf\xF6rslag markeras som skickat",confirm_send_payment:"Denna betalning skickas till kunden via epost",send_payment_successfully:"Betalningen skickades",something_went_wrong:"n\xE5got gick fel",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna betalning | Du kommer inte kunna \xE5terst\xE4lla dessa betalningar",created_message:"Betalning skapades",updated_message:"Betalning uppdaterades",deleted_message:"Betalning raderades | Betalningar raderades",invalid_amount_message:"Betalsumman \xE4r ogiltig"},Ah={title:"Utgifter",expenses_list:"Lista med utgifter",select_a_customer:"V\xE4lj en kund",expense_title:"Titel",customer:"Kund",contact:"Kontakt",category:"Kategori",from_date:"Fr\xE5n datum",to_date:"Till datum",expense_date:"Datum",description:"Beskrivning",receipt:"Kvitto",amount:"Summa",action:"Handling",not_selected:"Not selected",note:"Notering",category_id:"Kategorins ID",date:"Datum",add_expense:"L\xE4gg till utgift",add_new_expense:"L\xE4gg till ny utgift",save_expense:"Spara utgift",update_expense:"Uppdatera utgift",download_receipt:"Ladda ner kvitto",edit_expense:"\xC4ndra utgift",new_expense:"Ny utgift",expense:"Utgift | Utgifter",no_expenses:"Inga utgifter \xE4n!",list_of_expenses:"H\xE4r kommer utgifterna finnas.",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna utgift | Du kommer inte kunna \xE5terst\xE4lla dessa utgifter",created_message:"Utgift skapades",updated_message:"Utgift \xE4ndrades",deleted_message:"Utgift raderades | utgifterna raderades",categories:{categories_list:"Kategorier",title:"Titel",name:"Namn",description:"Beskrivning",amount:"Summa",actions:"Handlingar",add_category:"L\xE4gg till kategori",new_category:"Ny kategori",category:"Kategori | Kategorier",select_a_category:"V\xE4lj en kategori"}},Eh={email:"Epost",password:"L\xF6senord",forgot_password:"Gl\xF6mt l\xF6senord?",or_signIn_with:"eller logga in med",login:"Logga in",register:"Registrera",reset_password:"\xC5terst\xE4ll l\xF6senord",password_reset_successfully:"L\xF6senord \xE5terst\xE4llt",enter_email:"Skriv in epost",enter_password:"Skriv in l\xF6senord",retype_password:"Skriv l\xF6senordet igen"},Nh={title:"Anv\xE4ndare",users_list:"Anv\xE4ndare",name:"Namn",description:"Beskrivning",added_on:"Tillagd den",date_of_creation:"Datum skapad",action:"Handling",add_user:"L\xE4gg till anv\xE4ndare",save_user:"Spara anv\xE4ndare",update_user:"Uppdatera anv\xE4ndare",user:"Anv\xE4ndare | Anv\xE4ndare",add_new_user:"L\xE4gg till ny anv\xE4ndare",new_user:"Ny anv\xE4ndare",edit_user:"\xC4ndra anv\xE4ndare",no_users:"Inga anv\xE4ndare \xE4n!",list_of_users:"H\xE4r kommer man se alla anv\xE4ndare.",email:"Epost",phone:"Telefon",password:"L\xF6senord",user_attached_message:"Kan inte ta bort ett objeckt som anv\xE4nds",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna anv\xE4ndare | Du kommer inte kunna \xE5terst\xE4lla dessa anv\xE4ndare",created_message:"Anv\xE4ndare skapades",updated_message:"Anv\xE4ndare uppdaterades",deleted_message:"Anv\xE4ndaren raderades | Anv\xE4ndarna raderades"},Th={title:"Rapport",from_date:"Fr\xE5n datum",to_date:"Till datum",status:"Status",paid:"Betald",unpaid:"Obetald",download_pdf:"Ladda ner PDF",view_pdf:"Visa PDF",update_report:"Uppdatera rapport",report:"Rapport | Rapporter",profit_loss:{profit_loss:"Inkomst och utgifter",to_date:"Till datum",from_date:"Fr\xE5n datum",date_range:"V\xE4lj datumintervall"},sales:{sales:"F\xF6rs\xE4ljningar",date_range:"V\xE4lj datumintervall",to_date:"Till datum",from_date:"Fr\xE5n datum",report_type:"Rapporttyp"},taxes:{taxes:"Momssatser",to_date:"Till datum",from_date:"Fr\xE5n datum",date_range:"V\xE4lj datumintervall"},errors:{required:"F\xE4ltet \xE4r tvingande"},invoices:{invoice:"Faktura",invoice_date:"Fakturadatum",due_date:"F\xF6rfallodatum",amount:"Summa",contact_name:"Kontaktnamn",status:"Status"},estimates:{estimate:"Kostnadsf\xF6rslag",estimate_date:"Kostnadsf\xF6rslagsdatum",due_date:"F\xF6rfallodatum",estimate_number:"Kostnadsf\xF6rslagsnummer",ref_number:"Ref Nummer",amount:"Summa",contact_name:"Kontaktnamn",status:"Status"},expenses:{expenses:"Utgifter",category:"Kategori",date:"Datum",amount:"Summa",to_date:"Till datum",from_date:"Fr\xE5n datum",date_range:"V\xE4lj datumintervall"}},Ih={menu_title:{account_settings:"Kontoinst\xE4llningar",company_information:"F\xF6retagsinformation",customization:"Anpassning",preferences:"Inst\xE4llningar",notifications:"Notifieringar",tax_types:"Momssatser",expense_category:"Utgiftskategorier",update_app:"Uppdatera appen",backup:"Backup",file_disk:"File Disk",custom_fields:"Anpassade f\xE4lt",payment_modes:"Betalmetoder",notes:"Noteringar"},title:"Inst\xE4llningar",setting:"Inst\xE4llningar | Inst\xE4llningar",general:"Allm\xE4n",language:"Spr\xE5k",primary_currency:"Prim\xE4r valuta",timezone:"Tidszon",date_format:"Datumformat",currencies:{title:"Valutor",currency:"Valuta | Valutor",currencies_list:"Lista med valutor",select_currency:"V\xE4lj valuta",name:"Namn",code:"Kod",symbol:"Symbol",precision:"Precision",thousand_separator:"Tusenavgr\xE4nsare",decimal_separator:"Decimalavgr\xE4nsare",position:"Position",position_of_symbol:"Symbolens position",right:"H\xF6ger",left:"V\xE4nster",action:"Handling",add_currency:"L\xE4gg till valuta"},mail:{host:"V\xE4rdadress",port:"Port",driver:"Typ",secret:"Hemlighet",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\xE4n",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"L\xF6senord",username:"Anv\xE4ndarnamn",mail_config:"Epostinst\xE4llningar",from_name:"Fr\xE5n namn",from_mail:"Fr\xE5n adress",encryption:"Kryptering",mail_config_desc:"Nedan formul\xE4r anv\xE4nds f\xF6r att konfigurera vilket s\xE4tt som ska anv\xE4ndar f\xF6r att skicka epost. Du kan ocks\xE5 anv\xE4nda tredjepartsleverant\xF6r som Sendgrid, SES o.s.v."},pdf:{title:"PDF-inst\xE4llningar",footer_text:"Sidfotstext",pdf_layout:"PDF-layout"},company_info:{company_info:"F\xF6retagsinfo",company_name:"F\xF6retagsnamn",company_logo:"F\xF6retagslogga",section_description:"Information om ditt f\xF6retags som kommer visas p\xE5 fakturor, kostnadsf\xF6rslag och andra dokument skapade av Crater.",phone:"Telefon",country:"Land",state:"Kommun",city:"Stad",address:"Adress",zip:"Postnr",save:"Spara",updated_message:"F\xF6retagsinformation uppdaterad"},custom_fields:{title:"Anpassade f\xE4lt",section_description:"Anpassa fakturor, kostnadsf\xF6rslag och kvitton med dina egna f\xE4lt. Anv\xE4nd nedanst\xE5ende f\xE4lt i adressforamteringen p\xE5 anpassningarnas inst\xE4llningssida.",add_custom_field:"L\xE4gg till anpassat f\xE4lt",edit_custom_field:"\xC4ndra anpassade f\xE4lt",field_name:"F\xE4ltnamn",label:"Etikett",type:"Typ",name:"Namn",required:"Tvingad",placeholder:"Placeholder",help_text:"Hj\xE4lptext",default_value:"Standardv\xE4rde",prefix:"Prefix",starting_number:"Startnummer",model:"Modell",help_text_description:"Skriv in text som hj\xE4lper anv\xE4ndaren f\xF6rst\xE5 vad det anpassade f\xE4ltet anv\xE4nds f\xF6r.",suffix:"Suffix",yes:"Ja",no:"Nej",order:"Ordning",custom_field_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla detta anpassade f\xE4lt",already_in_use:"Det anpassade f\xE4ltet anv\xE4nds",deleted_message:"Det anpassade f\xE4ltet raderades",options:"val",add_option:"L\xE4gg till val",add_another_option:"L\xE4gg till ett till val",sort_in_alphabetical_order:"Sortera i alfabetisk ordning",add_options_in_bulk:"L\xE4gg till flera val",use_predefined_options:"Anv\xE4nd f\xF6rinst\xE4llda val",select_custom_date:"V\xE4lj anpassat datum",select_relative_date:"V\xE4lj relativt datum",ticked_by_default:"Ikryssad fr\xE5n start",updated_message:"Anpassat f\xE4lt uppdaterades",added_message:"Anpassat f\xE4lt skapat"},customization:{customization:"Anpassning",save:"Spara",addresses:{title:"Adresser",section_description:"Du kan formatera kundens faktura- och leveransadress (Visas enbart i PDF-en). ",customer_billing_address:"Kunds fakturaadress",customer_shipping_address:"Kunds leveransadress",company_address:"F\xF6retagsadress",insert_fields:"L\xE4gg till f\xE4lt",contact:"Kontakt",address:"Adress",display_name:"Visningsnamn",primary_contact_name:"Huvudkontakts namn",email:"Epost",website:"Hemsida",name:"Namn",country:"Lan",state:"Kommun",city:"Stad",company_name:"F\xF6retagsnamn",address_street_1:"Gatuadress 1",address_street_2:"Gatuadress 2",phone:"Telefon",zip_code:"Postnummer",address_setting_updated:"Inst\xE4llningar f\xF6r adress uppdaterades"},updated_message:"F\xF6retagsinformation uppdaterades",invoices:{title:"Fakturor",notes:"Noteringar",invoice_prefix:"Prefix f\xF6r fakturor",default_invoice_email_body:"Standardtext f\xF6r faktura",invoice_settings:"Fakturainst\xE4llningar",autogenerate_invoice_number:"Generera fakturanummer automatiskt",autogenerate_invoice_number_desc:"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt fakturanummer vid skapande av faktura.",enter_invoice_prefix:"Skriv prefix f\xF6r faktura",terms_and_conditions:"Villkor",company_address_format:"Formatering av f\xF6retagsadress",shipping_address_format:"Formatering av leveransadress",billing_address_format:"Formatering av fakturaadress",invoice_settings_updated:"Fakturainst\xE4llningar uppdaterades"},estimates:{title:"Kostnadsf\xF6rslag",estimate_prefix:"Prefix f\xF6r kostnadsf\xF6rslag",default_estimate_email_body:"Standardtext f\xF6r kostnadsf\xF6rslag",estimate_settings:"Kostnadsf\xF6rslagsinst\xE4llningar",autogenerate_estimate_number:"Generera kostnadsf\xF6rslagsnummer automatiskt",estimate_setting_description:"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt kostnadsf\xF6rslagsnummer vid skapande av kostnadsf\xF6rslag.",enter_estimate_prefix:"Skriv prefix f\xF6r kostnadsf\xF6rslag",estimate_setting_updated:"Kostnadsf\xF6rslagsinst\xE4llningar uppdaterades",company_address_format:"Formatering av f\xF6retagsadress",billing_address_format:"Formatering av fakturaadress",shipping_address_format:"Formatering av leveransadress"},payments:{title:"Betalningar",description:"\xD6verf\xF6ringstyper f\xF6r betalningar",payment_prefix:"Prefix f\xF6r betalningar",default_payment_email_body:"Standardtext f\xF6r betalningar",payment_settings:"Betalningsinst\xE4llningar",autogenerate_payment_number:"Generera betalningsnummer automatiskt",payment_setting_description:"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt betalningssnummer vid skapande av betalning.",enter_payment_prefix:"Skriv prefix f\xF6r kostnadsf\xF6rslag",payment_setting_updated:"Betalningsinst\xE4llningar uppdaterades",payment_modes:"Betalningss\xE4tt",add_payment_mode:"L\xE4gg till betalningss\xE4tt",edit_payment_mode:"\xC4ndra betalningss\xE4tt",mode_name:"Typnamn",payment_mode_added:"Betalningss\xE4tt tillagd",payment_mode_updated:"Betalningss\xE4tt uppdaterat",payment_mode_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna betalningsmetod",already_in_use:"Betalningss\xE4ttet anv\xE4nds",deleted_message:"Betalningss\xE4tt raderades",company_address_format:"Format f\xF6r f\xF6retagsadress",from_customer_address_format:"Format f\xF6r kundens fr\xE5n-adress"},items:{title:"Artiklar",units:"Enheter",add_item_unit:"L\xE4gg till artikelenhet",edit_item_unit:"Editera artikelenhet",unit_name:"Enhets namn",item_unit_added:"Artikelenhet tillagd",item_unit_updated:"Artikelenhet uppdaterad",item_unit_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna artikelenhet",already_in_use:"Artikelenhet anv\xE4nds",deleted_message:"Artikelenhet raderades"},notes:{title:"Noteringar",description:"Spara tid genom att skapa noteringar som kan \xE5teranv\xE4ndas p\xE5 fakturor, betalningsf\xF6rslag, och betalningar.",notes:"Noteringar",type:"Typ",add_note:"L\xE4gg till notering",add_new_note:"L\xE4gg till ny notering",name:"Namn",edit_note:"Editera notering",note_added:"Notering skapades",note_updated:"Notering uppdaterades",note_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna notering",already_in_use:"Notering anv\xE4nds",deleted_message:"Notering raderades"}},account_settings:{profile_picture:"Profilbild",name:"Namn",email:"Epost",password:"L\xF6senord",confirm_password:"Bekr\xE4fta l\xF6senord",account_settings:"Kontoinst\xE4llningar",save:"Spara",section_description:"Du kan uppdatera namn, epost och l\xF6senord med hj\xE4lp av formul\xE4ret nedan.",updated_message:"Kontoinst\xE4llningar uppdaterades"},user_profile:{name:"Namn",email:"Epost",password:"L\xF6senord",confirm_password:"Bekr\xE4fta l\xF6senord"},notification:{title:"Notifieringar",email:"Skicka notifiering till",description:"Vilka notifieringar vill du ha via epost n\xE4r n\xE5got \xE4ndras?",invoice_viewed:"Faktura kollad",invoice_viewed_desc:"N\xE4r din kund kollar fakturan via craters \xF6versikt.",estimate_viewed:"Betalf\xF6rslag kollad",estimate_viewed_desc:"N\xE4r din kund kollar betalf\xF6rslag via craters \xF6versikt.",save:"Spara",email_save_message:"Epost sparades",please_enter_email:"Skriv in epostadress"},tax_types:{title:"Momssatser",add_tax:"L\xE4gg till moms",edit_tax:"\xC4ndra moms",description:"Du kan l\xE4gga till och ta bort momssatser som du vill. Crater har st\xF6d f\xF6r moms per artikel men \xE4ven per faktura.",add_new_tax:"L\xE4gg till ny momssats",tax_settings:"Momssattsinst\xE4llningar",tax_per_item:"Moms per artikel",tax_name:"Namn",compound_tax:"Sammansatt moms",percent:"Procent",action:"Handling",tax_setting_description:"Aktivera detta om du vill l\xE4gga till momssats p\xE5 individuella fakturaartiklar. Som standard s\xE4tts moms direkt p\xE5 fakturan.",created_message:"Momssats skapades",updated_message:"Momssats uppdaterades",deleted_message:"Momssats raderades",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna Momssats",already_in_use:"Momssats anv\xE4nds"},expense_category:{title:"Kategorier f\xF6r utgifter",action:"Handling",description:"Kategorier kr\xE4vs f\xF6r att l\xE4gga till utgifter. Du kan l\xE4gga till och ta bort dessa kategorier som du vill",add_new_category:"L\xE4gg till ny kategori",add_category:"L\xE4gg till kategori",edit_category:"\xC4ndra kategori",category_name:"Kategorinamn",category_description:"Beskrivning",created_message:"Utgiftskategori skapades",deleted_message:"Utgiftskategori raderades",updated_message:"Utgiftskategori uppdaterades",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna utgiftskategori",already_in_use:"Kategorin anv\xE4nds"},preferences:{currency:"Valuta",default_language:"Standardspr\xE5k",time_zone:"Tidszon",fiscal_year:"R\xE4kenskaps\xE5r",date_format:"Datumformattering",discount_setting:"Rabattinst\xE4llningar",discount_per_item:"Rabatt per artikel ",discount_setting_description:"Aktivera detta om du vill kunna l\xE4gga rabatt p\xE5 enskilda fakturaartiklar. Rabatt ges som standard p\xE5 hela fakturan.",save:"Spara",preference:"Preferens | Preferenser",general_settings:"Standardpreferenser f\xF6r systemet.",updated_message:"Preferenser uppdaterades",select_language:"V\xE4lj spr\xE5k",select_time_zone:"V\xE4lj tidszon",select_date_format:"V\xE4lj datumformat",select_financial_year:"V\xE4lj r\xE4kenskaps\xE5r"},update_app:{title:"Uppdatera applikationen",description:"Du kan enkelt uppdatera Crater genom att s\xF6ka efter uppdateringar via knappen nedan",check_update:"S\xF6k efter uppdateringar",avail_update:"Uppdatering \xE4r tillg\xE4nglig",next_version:"N\xE4sta version",requirements:"Krav",update:"Uppdatera nu",update_progress:"Uppdaterar...",progress_text:"Det kommer bara ta n\xE5gra minuter. St\xE4ng eller uppdatera inte webl\xE4saren f\xF6rr\xE4n uppdateringen \xE4r f\xE4rdig.",update_success:"Applikationen har uppdaterats! V\xE4nta s\xE5 kommer f\xF6nstret laddas om automatiskt..",latest_message:"Ingen uppdatering tillg\xE4nglig! Du har den senaste versionen.",current_version:"Nuvarande version",download_zip_file:"Ladda ner ZIP-fil",unzipping_package:"Zippar upp paket",copying_files:"Kopierar filer",running_migrations:"K\xF6r migreringar",finishing_update:"Avslutar uppdateringen",update_failed:"Uppdatering misslyckades",update_failed_text:"Uppdateringen misslyckades p\xE5 steg : {step} step"},backup:{title:"S\xE4kerhetskopiering | S\xE4kerhetskopieringar",description:"S\xE4kerhetskopian \xE4r en zip-fil som inneh\xE5ller alla filer i katalogerna du v\xE4ljer samt en kopia av databasen",new_backup:"Skapa ny s\xE4kerhetskopia",create_backup:"Skapa s\xE4kerhetskopia",select_backup_type:"V\xE4lj typ av s\xE4kerhetskopia",backup_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna s\xE4kerhetskopia",path:"s\xF6kv\xE4g",new_disk:"Ny disk",created_at:"skapad den",size:"storlek",dropbox:"dropbox",local:"lokal",healthy:"h\xE4lsosam",amount_of_backups:"antal s\xE4kerhetskopior",newest_backups:"senaste s\xE4kerhetskopiorna",used_storage:"anv\xE4nt utrymme",select_disk:"V\xE4lj disk",action:"Handling",deleted_message:"S\xE4kerhetskopia raderad",created_message:"S\xE4kerhetskopia skapades",invalid_disk_credentials:"Ogiltiga autentiseringsuppgifter f\xF6r den valda disken"},disk:{title:"Lagring | Lagringar",description:"Crater anv\xE4nder din lokala disk som standard f\xF6r att spara s\xE4kerhetskopior, avatarer och andra bildfiler. Du kan st\xE4lla in fler lagringsenheter s\xE5som DigitalOcean, S3 och Dropbox beroende av ditt behov.",created_at:"skapad den",dropbox:"dropbox",name:"Namn",driver:"Plats",disk_type:"Typ",disk_name:"Lagringsenhetsnamn",new_disk:"L\xE4gg till ny lagringsenhet",filesystem_driver:"Enhetsplats",local_driver:"Lokal enhet",local_root:"S\xF6kv\xE4g p\xE5 lokal enhet",public_driver:"Offentlig drivrutin",public_root:"Offentlig rot",public_url:"Offentlig URL",public_visibility:"Offentlig synlighet",media_driver:"Mediaenhet",media_root:"Media Root",aws_driver:"AWS",aws_key:"Nyckel",aws_secret:"L\xF6senord",aws_region:"Region",aws_bucket:"Bucket",aws_root:"S\xF6kv\xE4g",do_spaces_type:"Do Spaces type",do_spaces_key:"Nyckel",do_spaces_secret:"L\xF6senord",do_spaces_region:"Region",do_spaces_bucket:"Bucket",do_spaces_endpoint:"Endpoint",do_spaces_root:"S\xF6kv\xE4g",dropbox_type:"Typ",dropbox_token:"Token",dropbox_key:"Nyckel",dropbox_secret:"L\xF6senord",dropbox_app:"App",dropbox_root:"S\xF6kv\xE4g",default_driver:"Standard",is_default:"\xC4r standard",set_default_disk:"V\xE4lj som standard",set_default_disk_confirm:"Denna disk kommer bli standard och alla nya PFDer blir sparade h\xE4r",success_set_default_disk:"Disk vald som standard",save_pdf_to_disk:"Spara PDFer till disk",disk_setting_description:"Aktivera detta om du vill ha en kopia av varje faktura, kostnadsf\xF6rslag, och betalningskvitto som PDF p\xE5 din standard disk automatiskt.Aktiverar du denna funktion s\xE5 kommer laddtiderna f\xF6r visning av PDFer minskas.",select_disk:"V\xE4lj Disk",disk_settings:"Diskinst\xE4llningar",confirm_delete:"Dina existerande filer och kataloger p\xE5 den valda disken kommer inte p\xE5verkas men inst\xE4llningarna f\xF6r disken raderas fr\xE5n Crater",action:"Handling",edit_file_disk:"\xC4ndra disk",success_create:"Disk skapades",success_update:"Disk uppdaterades",error:"Fel vid skapande av disk",deleted_message:"Disk raderades",disk_variables_save_successfully:"Diskinst\xE4llningar sparades",disk_variables_save_error:"N\xE5got gick fel vid sparning av diskinst\xE4llningar",invalid_disk_credentials:"Felaktiga uppgifter vid val av disk"}},$h={account_info:"Kontoinformation",account_info_desc:"Nedan detaljer anv\xE4nds f\xF6r att skapa huvudadministrat\xF6rskonto. Du kan \xE4ndra detta i efterhand.",name:"Namn",email:"Epost",password:"L\xF6senord",confirm_password:"Bekr\xE4fta l\xF6senord",save_cont:"Spara och forts\xE4tt",company_info:"F\xF6retagsinformation",company_info_desc:"Denna information visas p\xE5 fakturor. Du kan \xE4ndra detta i efterhand p\xE5 sidan f\xF6r inst\xE4llningar.",company_name:"F\xF6retagsnamn",company_logo:"F\xF6retagslogga",logo_preview:"F\xF6rhandsvisning av logga",preferences:"Inst\xE4llningar",preferences_desc:"Standardinst\xE4llningar f\xF6r systemet.",country:"Land",state:"Kommun",city:"Stad",address:"Adress",street:"Gatuadress1 | Gatuadress2",phone:"Telefon",zip_code:"Postnr",go_back:"Tillbaka",currency:"Valuta",language:"Spr\xE5k",time_zone:"Tidszon",fiscal_year:"R\xE4kenskaps\xE5r",date_format:"Datumformat",from_address:"Fr\xE5n adress",username:"Anv\xE4ndarnamn",next:"N\xE4sta",continue:"Forts\xE4tt",skip:"Hoppa \xF6ver",database:{database:"Sidans URL & Databas",connection:"Databasanslutning",host:"V\xE4rdadress till databasen",port:"Port till databasen",password:"L\xF6senord till databasen",app_url:"Appens URL",app_domain:"Appens Dom\xE4n",username:"Anv\xE4ndarnamn till databasen",db_name:"Databasens namn",db_path:"Databasens s\xF6kv\xE4g",desc:"Skapa en database p\xE5 din server och st\xE4ll in autentiseringsuppgifter i formul\xE4ret nedan."},permissions:{permissions:"Beh\xF6righeter",permission_confirm_title:"\xC4r du s\xE4ker p\xE5 att du vill forts\xE4tta?",permission_confirm_desc:"Fel beh\xF6righeter vid kontroll p\xE5 katalogen",permission_desc:"Nedan \xE4r en lista p\xE5 katalogr\xE4ttigheter som kr\xE4vs f\xF6r att denna app ska fungera. Om beh\xF6righetskontrollen misslyckas, uppdatera beh\xF6righeterna f\xF6r katalogerna."},mail:{host:"V\xE4rdadress till epost",port:"Port till epost",driver:"Typ",secret:"Hemlighet",mailgun_secret:"Hemlighet",mailgun_domain:"Dom\xE4n",mailgun_endpoint:"Endpoint",ses_secret:"Hemlighet",ses_key:"Nyckel",password:"L\xF6senord",username:"Anv\xE4ndarnamn",mail_config:"Epostinst\xE4llningar",from_name:"Namn som st\xE5r vid utg\xE5ende epost",from_mail:"Epostadress som anv\xE4nds som returadress vid utg\xE5ende epost",encryption:"Epostkryptering",mail_config_desc:"Nedan formul\xE4r anv\xE4nds f\xF6r att konfigurera vilket s\xE4tt som ska anv\xE4ndar f\xF6r att skicka epost. Du kan ocks\xE5 anv\xE4nda tredjepartsleverant\xF6r som Sendgrid, SES o.s.v."},req:{system_req:"Systemkrav",php_req_version:"Php (version {version} kr\xE4vs)",check_req:"Kontrollera krav",system_req_desc:"Crater har n\xE5gra krav p\xE5 din server. Kontrollera att din server har den n\xF6dv\xE4ndiga versionen av PHP och alla till\xE4gg som n\xE4mns nedan."},errors:{migrate_failed:"Migration misslyckades",database_variables_save_error:"Kan inte skriva till .env-filen. Kontrollera dina beh\xF6righeter till filen",mail_variables_save_error:"Epostinst\xE4llningar misslyckades.",connection_failed:"Databasanslutning misslyckades",database_should_be_empty:"Databasen m\xE5ste vara tom"},success:{mail_variables_save_successfully:"Epostinst\xE4llningar sparades.",database_variables_save_successfully:"Databasinst\xE4llningar sparades."}},Rh={invalid_phone:"Felaktigt telefonnummer",invalid_url:"Felaktig url (ex: http://www.craterapp.com)",invalid_domain_url:"Felaktig url (ex: craterapp.com)",required:"F\xE4ltet \xE4r tvingande",email_incorrect:"Felaktig epostadress.",email_already_taken:"Denna epostadress finns redan.",email_does_not_exist:"Anv\xE4ndare med den epostadressen finns inte",item_unit_already_taken:"Detta artikelenhetsnamn finns redan",payment_mode_already_taken:"Betalningsmetodsnamnet finns redan",send_reset_link:"Skicka l\xE4nk f\xF6r \xE5terst\xE4llning",not_yet:"Inte \xE4n? Skicka igen",password_min_length:"L\xF6senordet m\xE5ste inneh\xE5lla {count} tecken",name_min_length:"Namn m\xE5ste ha minst {count} bokst\xE4ver.",enter_valid_tax_rate:"Skriv in till\xE5ten momssats",numbers_only:"Endast siffror.",characters_only:"Endast bokst\xE4ver.",password_incorrect:"L\xF6senorden m\xE5ste \xF6verensst\xE4mma",password_length:"L\xF6senordet m\xE5ste vara minst {count} tecken.",qty_must_greater_than_zero:"Antal m\xE5ste vara st\xF6rre \xE4n noll.",price_greater_than_zero:"Pris m\xE5ste vara st\xF6rre \xE4n noll.",payment_greater_than_zero:"Betalningen m\xE5ste vara st\xF6rre \xE4n   noll.",payment_greater_than_due_amount:"Inslagen betalning \xE4r st\xF6rre \xE4n summan p\xE5 denna faktura.",quantity_maxlength:"Antal kan inte vara st\xF6rre \xE4n 20 siffror.",price_maxlength:"Pris kan inte vara st\xF6rre \xE4n 20 siffror.",price_minvalue:"Pris m\xE5ste vara st\xF6rre \xE4n 0.",amount_maxlength:"Belopp kan inte vara st\xF6rre \xE4n 20 siffror.",amount_minvalue:"Belopp m\xE5ste vara st\xF6rre \xE4n 9.",description_maxlength:"Beskrivning f\xE5r inte inneh\xE5lla fler \xE4n 255 tecken.",subject_maxlength:"\xC4mne f\xE5r inte inneh\xE5lla fler \xE4n 100 tecken.",message_maxlength:"Meddelande f\xE5r inte inneh\xE5lla fler \xE4n 255 tecken.",maximum_options_error:"H\xF6gst {max} val. Ta bort ett val f\xF6r att kunna l\xE4gga till ett annat.",notes_maxlength:"Noteringar kan inte vara st\xF6rre \xE4n 255 tecken.",address_maxlength:"Adress kan inte vara st\xF6rre \xE4n 255 tecken.",ref_number_maxlength:"Referensnummer kan inte vara st\xF6rre \xE4n 255 tecken.",prefix_maxlength:"Prefix kan inte vara st\xF6rre \xE4n 5 tecken.",something_went_wrong:"n\xE5got blev fel"},Fh="Kostnadsf\xF6rslag",Mh="Kostnadsf\xF6rslagsnummer",Vh="Kostnadsf\xF6rslagsdatum",Bh="Utg\xE5ngsdatum",Oh="Faktura",Lh="Fakturanummer",Uh="Fakturadatum",Kh="Inbetalningsdatum",qh="Noteringar",Zh="Artiklar",Wh="Antal",Hh="Kostnad",Gh="Rabatt",Yh="Belopp",Jh="Delsumma",Xh="Summa",Qh="Payment",ev="Betalningskvitto",tv="Betalningsdatum",av="Betalningsnummer",sv="Betalningstyp",nv="Belopp mottaget",iv="Kostnadsrapport",ov="Totalkostnad",rv="Resultat- och f\xF6rlustrapport",dv="Sales Customer Report",lv="Sales Item Report",cv="Tax Summary Report",_v="Inkomst",uv="Nettof\xF6rtj\xE4nst",mv="F\xF6rs\xE4ljningsrapport: Per kund",pv="SUMMA F\xD6RS\xC4LJNINGAR",gv="F\xF6rs\xE4ljningsrapport: Per artikel",fv="Momsrapport",hv="SUMMA MOMS",vv="Momssatser",yv="Utgifter",bv="Faktureras till,",kv="Skickas till,",wv="Fr\xE5n:",xv="Tax";var zv={navigation:bh,general:kh,dashboard:wh,tax_types:xh,global_search:zh,customers:Sh,items:jh,estimates:Ph,invoices:Dh,payments:Ch,expenses:Ah,login:Eh,users:Nh,reports:Th,settings:Ih,wizard:$h,validation:Rh,pdf_estimate_label:Fh,pdf_estimate_number:Mh,pdf_estimate_date:Vh,pdf_estimate_expire_date:Bh,pdf_invoice_label:Oh,pdf_invoice_number:Lh,pdf_invoice_date:Uh,pdf_invoice_due_date:Kh,pdf_notes:qh,pdf_items_label:Zh,pdf_quantity_label:Wh,pdf_price_label:Hh,pdf_discount_label:Gh,pdf_amount_label:Yh,pdf_subtotal:Jh,pdf_total:Xh,pdf_payment_label:Qh,pdf_payment_receipt_label:ev,pdf_payment_date:tv,pdf_payment_number:av,pdf_payment_mode:sv,pdf_payment_amount_received_label:nv,pdf_expense_report_label:iv,pdf_total_expenses_label:ov,pdf_profit_loss_label:rv,pdf_sales_customers_label:dv,pdf_sales_items_label:lv,pdf_tax_summery_label:cv,pdf_income_label:_v,pdf_net_profit_label:uv,pdf_customer_sales_report:mv,pdf_total_sales_label:pv,pdf_item_sales_label:gv,pdf_tax_report_label:fv,pdf_total_tax_label:hv,pdf_tax_types_label:vv,pdf_expenses_label:yv,pdf_bill_to:bv,pdf_ship_to:kv,pdf_received_from:wv,pdf_tax_label:xv};const Sv={dashboard:"Hlavn\xFD Panel",customers:"Z\xE1kazn\xEDci",items:"Polo\u017Eky",invoices:"Fakt\xFAry",expenses:"V\xFDdaje",estimates:"Cenov\xE9 odhady",payments:"Platby",reports:"Reporty",settings:"Nastavenia",logout:"Odhl\xE1si\u0165 sa",users:"U\u017Eivatelia"},jv={add_company:"Prida\u0165 firmu",view_pdf:"Zobrazi\u0165 PDF",copy_pdf_url:"Kop\xEDrova\u0165 PDF adresu",download_pdf:"Stiahnu\u0165 PDF",save:"Ulo\u017Ei\u0165",create:"Vytvori\u0165",cancel:"Zru\u0161i\u0165",update:"Aktualizova\u0165",deselect:"Zru\u0161i\u0165 v\xFDber",download:"Stiahnu\u0165",from_date:"Od d\xE1tumu",to_date:"Do d\xE1tumu",from:"Od",to:"Pre",sort_by:"Zoradi\u0165 pod\u013Ea",ascending:"Vzostupne",descending:"Zostupne",subject:"Predmet",body:"Telo textu",message:"Spr\xE1va",send:"Odosla\u0165",go_back:"Sp\xE4\u0165",back_to_login:"Sp\xE4\u0165 na prihl\xE1senie?",home:"Domov",filter:"Filtrova\u0165",delete:"Odstr\xE1ni\u0165",edit:"Upravi\u0165",view:"Zobrazi\u0165",add_new_item:"Prida\u0165 nov\xFA polo\u017Eku",clear_all:"Vy\u010Disti\u0165 v\u0161etko",showing:"Zobrazuje sa",of:"z",actions:"Akcie",subtotal:"MEDZIS\xDA\u010CET",discount:"Z\u013DAVA",fixed:"Pevn\xE9",percentage:"Percento",tax:"DA\u0147",total_amount:"SUMA SPOLU",bill_to:"Faktura\u010Dn\xE1 adresa",ship_to:"Adresa doru\u010Denia",due:"Term\xEDn",draft:"Koncept",sent:"Odoslan\xE9",all:"V\u0161etko",select_all:"Vybra\u0165 v\u0161etky",choose_file:"Kliknite sem pre vybratie s\xFAboru",choose_template:"Vybra\u0165 vzh\u013Ead",choose:"Vybra\u0165",remove:"Odstr\xE1ni\u0165",powered_by:"Be\u017E\xED na",bytefury:"Bytefury",select_a_status:"Vyberte stav",select_a_tax:"Vyberte da\u0148",search:"H\u013Eada\u0165",are_you_sure:"Ste si ist\xFD?",list_is_empty:"Zoznam je pr\xE1zdny.",no_tax_found:"\u017Diadna da\u0148 nebola n\xE1jden\xE1!",four_zero_four:"404",you_got_lost:"Ups! Stratili ste sa!",go_home:"\xCDs\u0165 domov",test_mail_conf:"Otestova\u0165 e-mailov\xFA konfigur\xE1ciu",send_mail_successfully:"E-Mail odoslan\xFD \xFAspe\u0161ne",setting_updated:"Nastavenia boli \xFAspe\u0161ne aktualizovan\xE9",select_state:"Vyberte \u0161t\xE1t",select_country:"Vyberte krajinu",select_city:"Vyberte mesto",street_1:"Prv\xFD riadok ulice",street_2:"Druh\xFD riadok ulice",action_failed:"Akcia ne\xFAspe\u0161n\xE1",retry:"Sk\xFAsi\u0165 znova",choose_note:"Vyberte pozn\xE1mku",no_note_found:"Neboli n\xE1jden\xE9 \u017Eiadne pozn\xE1mky",insert_note:"Vlo\u017E pozn\xE1mku"},Pv={select_year:"Vyberte rok",cards:{due_amount:"\u010Ciastka k zaplateniu",customers:"Z\xE1kazn\xEDci",invoices:"Fakt\xFAry",estimates:"Cenov\xE9 odhady"},chart_info:{total_sales:"Predaje",total_receipts:"Doklady o zaplaten\xED",total_expense:"V\xFDdaje",net_income:"\u010Cist\xFD pr\xEDjem",year:"Vyberte rok"},monthly_chart:{title:"Predaje a V\xFDdaje"},recent_invoices_card:{title:"Splatn\xE9 fakt\xFAry",due_on:"Term\xEDn splatenia",customer:"Z\xE1kazn\xEDk",amount_due:"\u010Ciastka k zaplateniu",actions:"Akcie",view_all:"Zobrazi\u0165 v\u0161etko"},recent_estimate_card:{title:"Ned\xE1vne cenov\xE9 odhady",date:"D\xE1tum",customer:"Z\xE1kazn\xEDk",amount_due:"Cena",actions:"Akcie",view_all:"Zobrazi\u0165 v\u0161etky"}},Dv={name:"Meno",description:"Popis",percent:"Percento",compound_tax:"Zlo\u017Een\xE1 da\u0148"},Cv={search:"H\u013Eada\u0165...",customers:"Z\xE1kazn\xEDci",users:"U\u017Eivatelia",no_results_found:"Neboli n\xE1jden\xE9 \u017Eiadne v\xFDsledky"},Av={title:"Z\xE1kazn\xEDci",add_customer:"Prida\u0165 Z\xE1kazn\xEDka",contacts_list:"Zoznam z\xE1kazn\xEDkov",name:"Meno",mail:"E-mail | E-maily",statement:"V\xFDpis",display_name:"Zobrazovan\xE9 meno",primary_contact_name:"Meno Prim\xE1rneho Kontaktu",contact_name:"Meno Kontaktu",amount_due:"\u010Ciastka k zaplateniu",email:"E-mail",address:"Adresa",phone:"Telef\xF3n",website:"Webov\xE9 str\xE1nky",overview:"Preh\u013Ead",enable_portal:"Aktivova\u0165 port\xE1l",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",zip_code:"PS\u010C",added_on:"Pridan\xE9 D\u0148a",action:"Akcia",password:"Heslo",street_number:"\u010C\xEDslo Ulice",primary_currency:"Hlavn\xE1 Mena",description:"Popis",add_new_customer:"Prida\u0165 Nov\xE9ho Z\xE1kazn\xEDka",save_customer:"Ulo\u017Ei\u0165 Z\xE1kazn\xEDka",update_customer:"Aktualizova\u0165 Zak\xE1zn\xEDka",customer:"Z\xE1kazn\xEDk | Z\xE1kazn\xEDci",new_customer:"Nov\xFD Z\xE1kazn\xEDk",edit_customer:"Upravi\u0165 Z\xE1kazn\xEDka",basic_info:"Z\xE1kladn\xE9 Inform\xE1cie",billing_address:"Faktura\u010Dn\xE1 Adresa",shipping_address:"Doru\u010Dovacia Adresa",copy_billing_address:"Kop\xEDrova\u0165 pod\u013Ea Faktura\u010Dnej adresy",no_customers:"Zatia\u013E nebol pridan\xFD \u017Eiadny z\xE1kazn\xEDk!",no_customers_found:"Nen\xE1jden\xED \u017Eiadni z\xE1kazn\xEDci!",list_of_customers:"T\xE1to sekcia bude obsahova\u0165 zoznam z\xE1kazn\xEDkov.",primary_display_name:"Hlavn\xE9 meno pre zobrazenie",select_currency:"Vyberte menu",select_a_customer:"Vyberte z\xE1kazn\xEDka",type_or_click:"Za\u010Dnite p\xEDsa\u0165 alebo kliknite pre vybratie",new_transaction:"Nov\xE1 Transakcia",no_matching_customers:"Nena\u0161li sa \u017Eiadny z\xE1kazn\xEDci sp\u013A\u0148aj\xFAce Va\u0161e podmienky!",phone_number:"Telef\xF3nne \u010C\xEDslo",create_date:"D\xE1tum Vytvorenia",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 tohto z\xE1kazn\xEDka ani \u017Eiadne fakt\xFAry, cenov\xE9 odhady alebo platby s n\xEDm spojen\xE9. | Nebudete m\xF4c\u0165 obnovi\u0165 t\xFDchto z\xE1kazn\xEDkov ani \u017Eiadne fakt\xFAry, cenov\xE9 odhady alebo platby s nimi spojen\xE9.",created_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne vytvoren\xFD",updated_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne aktualizovan\xFD",deleted_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne odstr\xE1nen\xFD | Z\xE1kazn\xEDci \xFAspe\u0161ne odstr\xE1nen\xED"},Ev={title:"Polo\u017Eky",items_list:"Zoznam Polo\u017Eiek",name:"Meno",unit:"Jednotka",description:"Popis",added_on:"Pridan\xE9 D\u0148a",price:"Cena",date_of_creation:"D\xE1tum Vytvorenia",action:"Akcia",add_item:"Prida\u0165 Polo\u017Eku",save_item:"Ulo\u017Ei\u0165 Polo\u017Eku",update_item:"Aktualizova\u0165 Polo\u017Eku",item:"Polo\u017Eka | Polo\u017Eky",add_new_item:"Prida\u0165 Nov\xFA Polo\u017Eku",new_item:"Nov\xE1 polo\u017Eka",edit_item:"Upravi\u0165 Polo\u017Eku",no_items:"Zatia\u013E \u017Eiadn\xE9 polo\u017Eky!",list_of_items:"T\xE1to sekcia bude obsahova\u0165 zoznam z\xE1kazn\xEDkov.",select_a_unit:"vyberte jednotku",taxes:"Dane",item_attached_message:"Nie je mo\u017En\xE9 vymaza\u0165 polo\u017Eku, ktor\xE1 sa pou\u017E\xEDva",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Polo\u017Eku | Nebudete m\xF4c\u0165 obnovi\u0165 tieto Polo\u017Eky",created_message:"Polo\u017Eka \xFAspe\u0161ne vytvoren\xE1",updated_message:"Polo\u017Eka \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"Polo\u017Eka \xFAspe\u0161ne odstr\xE1nen\xE1 | Polo\u017Eky \xFAspe\u0161ne odstr\xE1nen\xE9"},Nv={title:"Cenov\xE9 odhady",estimate:"Cenov\xFD odhad | Cenov\xE9 odhady",estimates_list:"Zoznam Cenov\xFDch odhadov",days:"{days} Dn\xED",months:"{months} Mesiac",years:"{years} Rok",all:"V\u0161etko",paid:"Zaplaten\xE9",unpaid:"Nezaplaten\xE9",customer:"Z\xC1KAZN\xCDK",ref_no:"REF \u010C.",number:"\u010C\xCDSLO",amount_due:"Dl\u017En\xE1 suma",partially_paid:"\u010Ciasto\u010Dne Zaplaten\xE9",total:"Spolu",discount:"Z\u013Eava",sub_total:"Medzis\xFA\u010Det",estimate_number:"\u010C\xEDslo Cenov\xE9ho odhadu",ref_number:"Ref. \u010C\xEDslo",contact:"Kontakt",add_item:"Prida\u0165 Polo\u017Eku",date:"D\xE1tum",due_date:"D\xE1tum Splatnosti",expiry_date:"D\xE1tum Ukon\u010Denia Platnosti",status:"Stav",add_tax:"Prida\u0165 Da\u0148",amount:"Suma",action:"Akcia",notes:"Pozn\xE1mky",tax:"Da\u0148",estimate_template:"Vzh\u013Ead",convert_to_invoice:"Konvertova\u0165 do Fakt\xFAry",mark_as_sent:"Ozna\u010Di\u0165 ako odoslan\xE9",send_estimate:"Odosla\u0165 Cenov\xFD odhad",resend_estimate:"Znovu Odosla\u0165 Cenov\xFD odhad",record_payment:"Zaznamena\u0165 Platbu",add_estimate:"Vytvori\u0165 Cenov\xFD odhad",save_estimate:"Ulo\u017Ei\u0165 Cenov\xFD odhad",confirm_conversion:"Tento cenov\xFD odhad bude pou\u017Eit\xFD k vytvoreniu novej Fakt\xFAry.",conversion_message:"Fakt\xFAra \xFAspe\u0161ne vytvoren\xE1",confirm_send_estimate:"Tento Cenov\xFD odhad bude odoslan\xFD z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",confirm_mark_as_sent:"Tento Cenov\xFD odhad bude ozna\u010Den\xFD ako odoslan\xFD",confirm_mark_as_accepted:"Tento Cenov\xFD odhad bude ozna\u010Den\xFD ako Prijat\xFD",confirm_mark_as_rejected:"Tento Cenov\xFD odhad bude ozna\u010Den\xFD ako Odmietnut\xFD",no_matching_estimates:"Nena\u0161li sa \u017Eiadne Cenov\xE9 odhady sp\u013A\u0148aj\xFAce Va\u0161e podmienky!",mark_as_sent_successfully:"Cenov\xFD odhad \xFAspe\u0161ne ozna\u010Den\xFD ako odoslan\xFD",send_estimate_successfully:"Cenov\xFD odhad \xFAspe\u0161ne odoslan\xFD",errors:{required:"Pole je povinn\xE9"},accepted:"Prij\xE1t\xE1",sent:"Odoslan\xE1",draft:"Koncept",declined:"Zru\u0161en\xFD",new_estimate:"Nov\xFD Cenov\xFD odhad",add_new_estimate:"Prida\u0165 nov\xFD Cenov\xFD odhad",update_Estimate:"Aktualizova\u0165 Cenov\xFD odhad",edit_estimate:"Upravi\u0165 Cenov\xFD odhad",items:"polo\u017Eky",Estimate:"Cenov\xFD odhad | Cenov\xE9 odhady",add_new_tax:"Prida\u0165 Nov\xFA Da\u0148",no_estimates:"Zatia\u013E \u017Eiadne cenov\xE9 odhady",list_of_estimates:"T\xE1to sekcia bude obsahova\u0165 zoznam cenov\xFDch odhadov.",mark_as_rejected:"Ozna\u010Di\u0165 ako odmietnut\xFA",mark_as_accepted:"Ozna\u010Den\xFD ako prijat\xFA",marked_as_accepted_message:"Cenov\xFD odhad ozna\u010Den\xFD ako schv\xE1len\xFD",marked_as_rejected_message:"Cenov\xFD odhad ozna\u010Den\xFD ako odmietnut\xFD",confirm_delete:"Nebude mo\u017En\xE9 obnovi\u0165 cenov\xFD odhad | Nebude mo\u017En\xE9 obnovi\u0165 cenov\xE9 odhady",created_message:"Cenov\xFD odhad \xFAspe\u0161n\xE9 vytvoren\xFD",updated_message:"Cenov\xFD odhad \xFAspe\u0161n\xE9 aktualizovan\xFD",deleted_message:"Cenov\xFD odhad \xFAspe\u0161n\xE9 vymazan\xFD | Cenov\xE9 odhady \xFAspe\u0161n\xE9 vymazan\xE9",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova.",item:{title:"N\xE1zov Polo\u017Eky",description:"Popis",quantity:"Mno\u017Estvo",price:"Cena",discount:"Z\u013Eava",total:"Celkom",total_discount:"Celkov\xE1 z\u013Eava",sub_total:"Medzis\xFA\u010Det",tax:"Da\u0148",amount:"Suma",select_an_item:"Za\u010Dnite p\xEDsa\u0165 alebo kliknite pre vybratie polo\u017Eky",type_item_description:"Zadajte Popis Polo\u017Eky (volite\u013En\xE9)"}},Tv={title:"Fakt\xFAry",invoices_list:"Zoznam Fakt\xFAr",days:"{days} \u010Ee\u0148",months:"{months} Mesiac",years:"{years} Rok",all:"V\u0161etko",paid:"Zaplaten\xE9",unpaid:"Nezaplaten\xE9",customer:"Z\xC1KAZN\xCDK",paid_status:"Stav platby",ref_no:"REF \u010C.",number:"\u010C\xCDSLO",amount_due:"Dl\u017En\xE1 suma",partially_paid:"\u010Ciasto\u010Dne Zaplaten\xE9",total:"Spolu",discount:"Z\u013Eava",sub_total:"Medzis\xFA\u010Det",invoice:"Fakt\xFAra | Fakt\xFAry",invoice_number:"\u010C\xEDslo Fakt\xFAry",ref_number:"Ref. \u010C\xEDslo",contact:"Kontakt",add_item:"Prida\u0165 Polo\u017Eku",date:"D\xE1tum",due_date:"D\xE1tum Splatnosti",status:"Stav",add_tax:"Prida\u0165 Da\u0148",amount:"Suma",action:"Akcia",notes:"Pozn\xE1mky",view:"Zobrazi\u0165",send_invoice:"Odosla\u0165 Fakt\xFAru",resend_invoice:"Odosla\u0165 Fakt\xFAru Znovu",invoice_template:"Vzh\u013Ead fakt\xFAry",template:"Vzh\u013Ead",mark_as_sent:"Ozna\u010Di\u0165 ako odoslan\xFA",confirm_send_invoice:"T\xE1to fakt\xFAra bude odoslan\xE1 z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",invoice_mark_as_sent:"T\xE1to fakt\xFAra bude ozna\u010Den\xE1 ako odoslan\xE1",confirm_send:"T\xE1to fakt\xFAra bude odoslan\xE1 z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",invoice_date:"D\xE1tum Vystavenia",record_payment:"Zaznamena\u0165 Platbu",add_new_invoice:"Nov\xE1 Fakt\xFAra",update_expense:"Update Expense",edit_invoice:"Upravi\u0165 Fakt\xFAru",new_invoice:"Nov\xE1 Fakt\xFAra",save_invoice:"Ulo\u017Ei\u0165 Fakt\xFAru",update_invoice:"Upravi\u0165 Fakt\xFAru",add_new_tax:"Prida\u0165 Nov\xFA Da\u0148",no_invoices:"Zatia\u013E nem\xE1te \u017Eiadn\xE9 fakt\xFAry!",list_of_invoices:"T\xE1to sekcia bude obsahova\u0165 zoznam fakt\xFAr",select_invoice:"Vybra\u0165 Fakt\xFAru",no_matching_invoices:"Nena\u0161li sa \u017Eiadne fakt\xFAry!",mark_as_sent_successfully:"Fakt\xFAra ozna\u010Den\xE1 ako \xFAspe\u0161ne odoslan\xE1",invoice_sent_successfully:"Fakt\xFAra bola \xFAspe\u0161ne odoslan\xE1",cloned_successfully:"Fakt\xFAra bola \xFAspe\u0161ne okop\xEDrovan\xE1",clone_invoice:"Kop\xEDrova\u0165 fakt\xFAru",confirm_clone:"Fakt\xFAra bude okop\xEDrovan\xE1 do novej",item:{title:"N\xE1zov polo\u017Eky",description:"Popis",quantity:"Mno\u017Estvo",price:"Cena",discount:"Z\u013Eava",total:"Celkom",total_discount:"Celkov\xE1 z\u013Eava",sub_total:"Medzis\xFA\u010Det",tax:"Da\u0148",amount:"\u010Ciastka",select_an_item:"Nap\xED\u0161te alebo vyberte polo\u017Eku",type_item_description:"Popis polo\u017Eky (volite\u013En\xE9)"},confirm_delete:"T\xFAto fakt\xFAru nebude mo\u017En\xE9 obnovi\u0165 | Tieto fakt\xFAry nebude mo\u017En\xE9 obnovi\u0165",created_message:"Fakt\xFAra \xFAspe\u0161ne vytvoren\xE1",updated_message:"Fakt\xFAra \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"Fakt\xFAra \xFAspe\u0161ne vymazan\xE1 | Fakt\xFAry \xFAspe\u0161ne vymazan\xE9",marked_as_sent_message:"Fakt\xFAra \xFAspe\u0161ne ozna\u010Den\xE1 ako odoslan\xE1",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova.",invalid_due_amount_message:"Celkov\xE1 suma fakt\xFAry nem\xF4\u017Ee by\u0165 ni\u017E\u0161ia ako celkov\xE1 suma zaplaten\xE1 za t\xFAto fakt\xFAru. Ak chcete pokra\u010Dova\u0165, aktualizujte fakt\xFAru alebo odstr\xE1\u0148te s\xFAvisiace platby."},Iv={title:"Platby",payments_list:"Zoznam Platieb",record_payment:"Zaznamena\u0165 Platbu",customer:"Z\xE1kazn\xEDk",date:"D\xE1tum",amount:"Suma",action:"Akcia",payment_number:"\u010C\xEDslo Platby",payment_mode:"Sp\xF4sob Platby",invoice:"Fakt\xFAra",note:"Pozn\xE1mka",add_payment:"Prida\u0165 Platbu",new_payment:"Nov\xE1 Platba",edit_payment:"\xDApravi\u0165 Platbu",view_payment:"Zobrazi\u0165 Platbu",add_new_payment:"Nov\xE1 Platba",send_payment_receipt:"Posla\u0165 Doklad o Zaplaten\xED",send_payment:"Odosla\u0165 Platbu",save_payment:"Ulo\u017Ei\u0165 Platbu",update_payment:"\xDApravi\u0165 Platbu",payment:"Platba | Platby",no_payments:"Zatia\u013E nem\xE1te \u017Eiadne platby!",no_matching_payments:"Nena\u0161li sa \u017Eiadne platby sp\u013A\u0148aj\xFAce Va\u0161e podmienky!",list_of_payments:"T\xE1to sekcia bude obsahova\u0165 zoznam platieb.",select_payment_mode:"Vyberte sp\xF4sob platby",confirm_mark_as_sent:"Tento cenov\xFD odhad bude ozna\u010Den\xFD ako odoslan\xFD",confirm_send_payment:"Tento cenov\xFD odhad bude odoslan\xFD z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",send_payment_successfully:"Platba \xFAspe\u0161ne odoslan\xE1",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova.",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Platbu | Nebudete m\xF4c\u0165 obnovi\u0165 tieto Platby",created_message:"Platba \xFAspe\u0161ne vytvoren\xE1",updated_message:"Platba \xFAspe\u0161ne upravena",deleted_message:"Platba \xFAspe\u0161ne odstr\xE1nen\xE1 | Platby \xFAspe\u0161ne odstr\xE1nen\xE9",invalid_amount_message:"Suma platby nie je spr\xE1vna"},$v={title:"V\xFDdaje",expenses_list:"Zoznam V\xFDdajov",select_a_customer:"Vyberte z\xE1kazn\xEDka",expense_title:"Nadpis",customer:"Z\xE1kazn\xEDk",contact:"Kontakt",category:"Kateg\xF3ria",from_date:"Od d\xE1tumu",to_date:"Do d\xE1tumu",expense_date:"D\xE1tum",description:"Popis",receipt:"Doklad o zaplaten\xED",amount:"Suma",action:"Akcia",note:"Pozn\xE1mka",category_id:"ID kateg\xF3rie",date:"D\xE1tum",add_expense:"Prida\u0165 V\xFDdaj",add_new_expense:"Prida\u0165 Nov\xFD V\xFDdaj",save_expense:"Ulo\u017Ei\u0165 V\xFDdaj",update_expense:"Aktualizova\u0165 V\xFDdaj",download_receipt:"Stiahnu\u0165 doklad o zaplaten\xED",edit_expense:"Upravi\u0165 V\xFDdaj",new_expense:"Nov\xFD V\xFDdaj",expense:"V\xFDdaj | V\xFDdaje",no_expenses:"Zatia\u013E nem\xE1te \u017Eiadne v\xFDdaje!",list_of_expenses:"T\xE1to sekcia bude obsahova\u0165 zoznam v\xFDdajov.",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 tento V\xFDdaj | Nebudete m\xF4c\u0165 obnovi\u0165 tieto V\xFDdaje",created_message:"V\xFDdaj \xFAspe\u0161ne vytvoren\xFD",updated_message:"V\xFDdaj \xFAspe\u0161ne aktualizovan\xFD",deleted_message:"V\xFDdaj \xFAspe\u0161ne odstr\xE1nen\xFD | V\xFDdaje \xFAspe\u0161ne odstr\xE1nen\xE9",categories:{categories_list:"Zoznam kateg\xF3ri\xED",title:"Nadpis",name:"N\xE1zov",description:"Popis",amount:"Suma",actions:"Akcie",add_category:"Prida\u0165 Kateg\xF3riu",new_category:"Nov\xE1 Kateg\xF3ria",category:"Kateg\xF3ria | Kateg\xF3rie",select_a_category:"Vyberte kateg\xF3riu"}},Rv={email:"E-mail",password:"Heslo",forgot_password:"Zabudol som heslo",or_signIn_with:"alebo sa prihl\xE1si\u0165 pomocou",login:"Prihl\xE1si\u0165 sa",register:"Registrova\u0165 sa",reset_password:"Obnovi\u0165 heslo",password_reset_successfully:"Heslo \xDAspe\u0161ne Obnoven\xE9",enter_email:"Zadajte e-mail",enter_password:"Zadajte heslo",retype_password:"Znova zadajte heslo"},Fv={title:"U\u017Eivatelia",users_list:"Zoznam U\u017E\xEDvate\u013Eov",name:"Meno",description:"Popis",added_on:"Pridan\xE9 D\u0148a",date_of_creation:"D\xE1tum Vytvorenia",action:"Akcia",add_user:"Prida\u0165 pou\u017E\xEDvate\u013Ea",save_user:"Ulo\u017Ei\u0165 pou\u017E\xEDvate\u013Ea",update_user:"Aktualizova\u0165 pou\u017E\xEDvate\u013Ea",user:"U\u017E\xEDvate\u013E | U\u017E\xEDvatelia",add_new_user:"Prida\u0165 Nov\xE9ho U\u017E\xEDvate\u013Ea",new_user:"Nov\xFD u\u017E\xEDvate\u013E",edit_user:"Upravi\u0165 U\u017E\xEDvate\u013Ea",no_users:"Zatia\u013E nebol pridan\xFD \u017Eiadny u\u017E\xEDvate\u013E!",list_of_users:"T\xE1to sekcia bude obsahova\u0165 zoznam u\u017E\xEDvate\u013Eov.",email:"E-mail",phone:"Telef\xF3n",password:"Heslo",user_attached_message:"Nie je mo\u017En\xE9 vymaza\u0165 akt\xEDvneho u\u017E\xEDvate\u013Ea",confirm_delete:"Nebude mo\u017En\xE9 obnovi\u0165 tohto pou\u017E\xEDvate\u013Ea | Nebude mo\u017En\xE9 obnovi\u0165 t\xFDchto pou\u017E\xEDvate\u013Eov",created_message:"U\u017E\xEDvate\u013E \xFAspe\u0161ne vytvoren\xFD",updated_message:"U\u017E\xEDvate\u013E \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"U\u017E\xEDvate\u013E \xFAspe\u0161ne odstr\xE1nen\xFD | U\u017E\xEDvatelia \xFAspe\u0161ne odstr\xE1nen\xED"},Mv={title:"Reporty",from_date:"Od d\xE1tumu",to_date:"Do d\xE1tumu",status:"Stav",paid:"Zaplaten\xE1",unpaid:"Nezaplaten\xE1",download_pdf:"Stiahnu\u0165 PDF",view_pdf:"Zobrazi\u0165 PDF",update_report:"Aktualizova\u0165 Report",report:"Report | Reporty",profit_loss:{profit_loss:"Ziskt a Straty",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",date_range:"Vybra\u0165 rozsah d\xE1tumu"},sales:{sales:"Predaje",date_range:"Vybra\u0165 rozsah d\xE1tumu",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",report_type:"Typ Reportu"},taxes:{taxes:"Dane",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",date_range:"Vybra\u0165 Rozsah D\xE1tumu"},errors:{required:"Pole je povinn\xE9"},invoices:{invoice:"Fakt\xFAra",invoice_date:"D\xE1tum Vystavenia",due_date:"D\xE1tum Splatnosti",amount:"Suma",contact_name:"Kontaktn\xE1 Osoba",status:"Stav"},estimates:{estimate:"Cenov\xFD odhad",estimate_date:"D\xE1tum cenov\xE9ho odhadu",due_date:"D\xE1tum platnosti cenov\xE9ho odhadu",estimate_number:"\u010C\xEDslo cenov\xE9ho odhadu",ref_number:"Ref. \u010C\xEDslo",amount:"Suma",contact_name:"Kontaktn\xE1 Osoba",status:"Stav"},expenses:{expenses:"V\xFDdaje",category:"Kateg\xF3ria",date:"D\xE1tum",amount:"Suma",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",date_range:"Vybra\u0165 Rozsah D\xE1tumu"}},Vv={menu_title:{account_settings:"Nastavenia \xFA\u010Dtu",company_information:"Inform\xE1cie o Firme",customization:"Prisp\xF4sobenie",preferences:"Preferencie",notifications:"Upozornenia",tax_types:"Typy Dan\xED",expense_category:"Kateg\xF3rie cenov\xFDch odhadov",update_app:"Aktualizova\u0165 Aplik\xE1ciu",backup:"Z\xE1loha",file_disk:"S\xFAborov\xFD disk",custom_fields:"Vlastn\xE9 Polia",payment_modes:"Sp\xF4soby Platby",notes:"Pozn\xE1mky"},title:"Nastavenia",setting:"Nastavenia | Nastavenia",general:"V\u0161eobecn\xE9",language:"Jazyk",primary_currency:"Hlavn\xE1 Mena",timezone:"\u010Casov\xE9 P\xE1smo",date_format:"Form\xE1t D\xE1tumu",currencies:{title:"Meny",currency:"Mena | Meny",currencies_list:"Zoznam Mien",select_currency:"Vyberte Menu",name:"Meno",code:"K\xF3d",symbol:"Symbol",precision:"Presnos\u0165",thousand_separator:"Oddelova\u010D Tis\xEDciek",decimal_separator:"Oddelova\u010D Desatinn\xFDch Miest",position:"Poz\xEDcia",position_of_symbol:"Poz\xEDcia Symbolu",right:"Vpravo",left:"V\u013Eavo",action:"Akcia",add_currency:"Prida\u0165 nov\xFA Menu"},mail:{host:"Host E-mailu",port:"Port E-mailu",driver:"Driver E-mailu",secret:"Tajn\xFD K\u013E\xFA\u010D (secret)",mailgun_secret:"Tajn\xFD k\u013E\xFA\u010D Mailgun (secret)",mailgun_domain:"Dom\xE9na",mailgun_endpoint:"Endpoint Mailgun",ses_secret:"SES Tajn\xFD K\u013E\xFA\u010D (secret)",ses_key:"SES k\u013E\xFA\u010D (key)",password:"E-mailov\xE9 heslo",username:"E-mailov\xE9 meno (username)",mail_config:"Konfigur\xE1cia E-mailov",from_name:"Meno odosielate\u013Ea",from_mail:"E-mail odosielate\u013Ea",encryption:"E-mailov\xE1 Enkrypcia",mail_config_desc:"Ni\u017E\u0161ie n\xE1jdete konfigur\xE1ciu E-mailu pou\u017Eit\xE9ho k odosielaniu E-mailov z aplik\xE1cie Crater. M\xF4\u017Eete taktie\u017E nastavi\u0165 spojenie so slu\u017Ebami tret\xEDch str\xE1n ako napr\xEDklad Sendgrid, SES a pod."},pdf:{title:"Nastavenia PDF",footer_text:"Text v p\xE4ti\u010Dke",pdf_layout:"Rozlo\u017Eenie PDF"},company_info:{company_info:"Inform\xE1cie o spolo\u010Dnosti",company_name:"N\xE1zov spolo\u010Dnosti",company_logo:"Logo spolo\u010Dnosti",section_description:"Inform\xE1cie o Va\u0161ej firme, ktor\xE9 bud\xFA zobrazen\xE9 na fakt\xFArach, cenov\xFDch odhadoch a in\xFDch dokumentoch vytvoren\xFDch v\u010Faka Creater.",phone:"Telef\xF3n",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",address:"Adresa",zip:"PS\u010C",save:"Ulo\u017Ei\u0165",updated_message:"Inform\xE1cie o firme \xFAspe\u0161ne aktualizovan\xE9"},custom_fields:{title:"Vlastn\xE9 Polia",section_description:"Personalizujte si Fakt\xFAry, Cenov\xE9 Odhady a Potvrdenia o platbe pomocou vlastn\xFDch pol\xED. Uistite sa, \u017Ee ste ni\u017E\u0161ie vytvoren\xE9 polia pou\u017Eili v form\xE1te adresy na str\xE1nke nastaven\xED personaliz\xE1cie.",add_custom_field:"Prida\u0165 Vlastn\xE9 Pole",edit_custom_field:"Upravi\u0165 Vlastn\xE9 Pole",field_name:"Meno Po\u013Ea",label:"Zna\u010Dka",type:"Typ",name:"N\xE1zov",required:"Povinn\xE9",placeholder:"Umiestnenie",help_text:"Pomocn\xFD Text",default_value:"Predvolen\xE1 hodnota",prefix:"Predpona",starting_number:"Po\u010Diato\u010Dn\xE9 \u010C\xEDslo",model:"Model",help_text_description:"Nap\xED\u0161te popis aby u\u017E\xEDvatelia lep\u0161ie pochopili v\xFDznam tohto po\u013Ea.",suffix:"Pr\xEDpona",yes:"\xC1no",no:"Nie",order:"Objedna\u0165",custom_field_confirm_delete:"Nebudete m\xF4c\u0165 obnovit toto vlastn\xE9 pole",already_in_use:"Toto vlastne pole sa u\u017E pou\u017E\xEDva",deleted_message:"Vlastn\xE9 pole \xFAspe\u0161ne vymazan\xE9",options:"mo\u017Enosti",add_option:"Prida\u0165 Mo\u017Enosti",add_another_option:"Prida\u0165 \u010Fa\u013E\u0161iu mo\u017Enost\u0165",sort_in_alphabetical_order:"Zoradi\u0165 v abecednom porad\xED",add_options_in_bulk:"Prida\u0165 hromadn\xE9 mo\u017Enosti",use_predefined_options:"Pou\u017Ei\u0165 predvolen\xE9 mo\u017Enosti",select_custom_date:"Vybrat vlastn\xFD d\xE1tum",select_relative_date:"Vybra\u0165 Relat\xEDvny D\xE1tum",ticked_by_default:"Predvolene ozna\u010Den\xE9",updated_message:"Vlastn\xE9 pole \xFAspe\u0161ne aktualizovan\xE9",added_message:"Vlastne pole \xFAspe\u0161ne pridan\xE9"},customization:{customization:"Prisp\xF4sobenie",save:"Ulo\u017Ei\u0165",addresses:{title:"Adresy",section_description:"M\xF4\u017Eete nastavi\u0165 form\xE1t faktura\u010Dnej a dodacej adresy z\xE1kazn\xEDka (Zobrazuje sa iba v PDF). ",customer_billing_address:"Z\xE1kazn\xEDk - faktura\u010Dn\xE1 adresa",customer_shipping_address:"Z\xE1kazn\xEDk - doru\u010Dovacia adresa",company_address:"Firemn\xE1 adresa",insert_fields:"Vlo\u017Ei\u0165 polia",contact:"Kontakt",address:"Adresa",display_name:"Zobrazovan\xE9 Meno",primary_contact_name:"Meno Prim\xE1rneho Kontaktu",email:"Email",website:"Webov\xE9 str\xE1nky",name:"N\xE1zov",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",company_name:"N\xE1zov firmy",address_street_1:"Adresa ulica 1",address_street_2:"Adresa ulica 2",phone:"Telef\xF3n",zip_code:"PS\u010C",address_setting_updated:"Nastavenia adresy \xFAspe\u0161ne aktualizovan\xE9"},updated_message:"Inform\xE1cie o firme \xFAspe\u0161ne aktualizovan\xE9",invoices:{title:"Fakt\xFAry",notes:"Pozn\xE1mky",invoice_prefix:"Predpona Fakt\xFAry",default_invoice_email_body:"Prednastaven\xE9 telo e-mailu fakt\xFAry",invoice_settings:"Nastavenia Fakt\xFAry",autogenerate_invoice_number:"Automaticky Vygenerova\u0165 \u010C\xEDslo Fakt\xFAry",autogenerate_invoice_number_desc:"Ak si neprajete automaticky generova\u0165 \u010D\xEDslo novej fakt\xFAry, vypnite t\xFAto mo\u017Enos\u0165.",enter_invoice_prefix:"Zadajte predponu fakt\xFAry",terms_and_conditions:"Podmienky pou\u017E\xEDvania",company_address_format:"Form\xE1t firemnej adresy",shipping_address_format:"Form\xE1t doru\u010Dovacej adresy",billing_address_format:"Form\xE1t faktura\u010Dnej adresy",invoice_settings_updated:"Nastavenia fakt\xFAr boli \xFAspe\u0161ne aktualizovan\xE9"},estimates:{title:"Cenov\xFD odhad",estimate_prefix:"Predpona cenov\xE9ho odhadu",default_estimate_email_body:"Prednastaven\xE9 telo e-mailu cenov\xE9ho dohadu",estimate_settings:"Nastavenia cenov\xFDch odhadov",autogenerate_estimate_number:"Automaticky generova\u0165 \u010D\xEDslo cenov\xE9ho odhadu",estimate_setting_description:"Zak\xE1\u017Ete to, ak si neprajete automaticky generova\u0165 \u010D\xEDsla cenovych odhadov zaka\u017Ed\xFDm, ke\u010F vytvor\xEDte nov\xFD odhad.",enter_estimate_prefix:"Vlo\u017Ete prepdonu cenov\xE9ho odhadu",estimate_setting_updated:"Nastavenia cenov\xFDch odhadov \xFAspe\u0161ne aktualizovan\xE9",company_address_format:"Form\xE1t firemnej adresy",billing_address_format:"Form\xE1t faktura\u010Dnej adresy",shipping_address_format:"Form\xE1t faktura\u010Dnej adresy"},payments:{title:"Platby",description:"Mo\u017Enosti platieb",payment_prefix:"Predpona platby",default_payment_email_body:"Prednastaven\xE9 telo e-mailu platby",payment_settings:"Nastavenia Platieb",autogenerate_payment_number:"Automaticky generova\u0165 \u010D\xEDslo platby",payment_setting_description:"Zak\xE1\u017Ete to, ak si neprajete automaticky generova\u0165 \u010D\xEDsla platieb zaka\u017Ed\xFDm, ke\u010F vytvor\xEDte nov\xFA platbu.",enter_payment_prefix:"Vlo\u017Eit Predponu Platby",payment_setting_updated:"Nastavenia platieb \xFAspe\u0161ne aktualizovan\xE9",payment_modes:"Typy Platieb",add_payment_mode:"Prida\u0165 typ Platby",edit_payment_mode:"Upravi\u0165 typ Platby",mode_name:"N\xE1zov platby",payment_mode_added:"Typ Platby pridan\xFD",payment_mode_updated:"Typ Platby aktualizovan\xFD",payment_mode_confirm_delete:"Nebude m\xF4c\u0165 obnovi\u0165 typ platby",already_in_use:"Tento typ platby sa u\u017E pou\u017E\xEDva",deleted_message:"Typ platby \xFAspe\u0161ne odstr\xE1nen\xFD",company_address_format:"Form\xE1t firemnej adresy",from_customer_address_format:"Z form\xE1tu adresy z\xE1kazn\xEDka"},items:{title:"Polo\u017Eky",units:"Jednotky",add_item_unit:"Prida\u0165 Jednotku",edit_item_unit:"Upravi\u0165 Jednotku",unit_name:"N\xE1zov Jednotky",item_unit_added:"Jednotka \xFAspe\u0161ne pridan\xE1",item_unit_updated:"Jednotka \xFAspe\u0161ne aktualizovan\xE1",item_unit_confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Jednotku",already_in_use:"Jednotk\xE1 sa pr\xE1ve pou\u017E\xEDva",deleted_message:"Jednotka \xFAspe\u0161ne odstr\xE1nena"},notes:{title:"Pozn\xE1mky",description:"U\u0161etrite \u010Das vytv\xE1ran\xEDm pozn\xE1mok a ich op\xE4tovn\xFDm pou\u017Eit\xEDm vo svojich fakt\xFArach, odhadoch a platb\xE1ch.",notes:"Pozn\xE1mky",type:"Typ",add_note:"Prida\u0165 pozn\xE1mku",add_new_note:"Prida\u0165 Nov\xFA Pozn\xE1mku",name:"N\xE1zov",edit_note:"Upravi\u0165 pozn\xE1mku",note_added:"Pozn\xE1mka \xFAspe\u0161ne pridan\xE1",note_updated:"Pozn\xE1mka \xFAspe\u0161ne aktualizovan\xE1",note_confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Pozn\xE1mku",already_in_use:"Pozn\xE1mka sa pr\xE1ve pou\u017E\xEDva",deleted_message:"Pozn\xE1mka \xFAspe\u0161ne odstr\xE1nena"}},account_settings:{profile_picture:"Profilov\xE1 Fotka",name:"Meno",email:"Email",password:"Heslo",confirm_password:"Potvrdi\u0165 heslo",account_settings:"Nastavenie \xFA\u010Dtu",save:"Ulo\u017Ei\u0165",section_description:"Svoje meno, e-mail a heslo m\xF4\u017Eete aktualizova\u0165 pomocou formul\xE1ra ni\u017E\u0161ie.",updated_message:"Nastavenia \xFA\u010Dtu boli \xFAspe\u0161ne aktualizovan\xE9"},user_profile:{name:"Meno",email:"Email",password:"Heslo",confirm_password:"Potvrdi\u0165 heslo"},notification:{title:"Upozornenia",email:"Odosla\u0165 upozornenie",description:"Ktor\xE9 e-mailov\xE9 upozornenia chcete dost\xE1va\u0165 ke\u010F sa nie\u010Do zmen\xED?",invoice_viewed:"Fakt\xFAra zobrazen\xE1",invoice_viewed_desc:"Ke\u010F si v\xE1\u0161 z\xE1kazn\xEDk prezer\xE1 fakt\xFAru odoslan\xFA cez Hlavn\xFD Panel.",estimate_viewed:"Cenov\xFD odhad zobrazen\xFD",estimate_viewed_desc:"Ke\u010F si v\xE1\u0161 z\xE1kazn\xEDk prezer\xE1 cenov\xFD odhad odoslan\xFD cez Hlavn\xFD Panel.",save:"Ulo\u017Ei\u0165",email_save_message:"E-mail bol \xFAspe\u0161ne ulo\u017Een\xFD",please_enter_email:"Zadajte e-mail"},tax_types:{title:"Typ dan\xED",add_tax:"Prida\u0165 da\u0148",edit_tax:"Upravi\u0165 Da\u0148",description:"M\xF4\u017Eete prida\u0165 alebo odobra\u0165 dane. Crater podporuje dane jednotliv\xFDch polo\u017Eiek aj na fakt\xFAre.",add_new_tax:"Prida\u0165 Nov\xFA Da\u0148",tax_settings:"Nastavenia dan\xED",tax_per_item:"Da\u0148 pre ka\u017Ed\xFA Polo\u017Eku zvl\xE1\u0161\u0165",tax_name:"N\xE1zov Dane",compound_tax:"Zlo\u017Een\xE1 da\u0148",percent:"Percento",action:"Akcia",tax_setting_description:"T\xFAto mo\u017Enos\u0165 povo\u013Ete, ak chcete prida\u0165 dane k jednotliv\xFDm polo\u017Ek\xE1m fakt\xFAr. \u0160tandardne sa dane pripo\u010D\xEDtavaj\xFA priamo k fakt\xFAre.",created_message:"Da\u0148 \xFAspe\u0161ne vytvoren\xE1",updated_message:"Da\u0148 \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"Da\u0148 \xFAspe\u0161ne odstr\xE1nen\xE1",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 da\u0148",already_in_use:"Da\u0148 u\u017E sa u\u017E po\u017E\xEDva"},expense_category:{title:"Kateg\xF3rie v\xFDdajov",action:"Akcia",description:"Na pridanie polo\u017Eiek v\xFDdavkov s\xFA povinn\xE9 kateg\xF3rie. Tieto kateg\xF3rie m\xF4\u017Eete prida\u0165 alebo odstr\xE1ni\u0165 pod\u013Ea svojich preferenci\xED.",add_new_category:"Prida\u0165 Nov\xFA Kateg\xF3riu",add_category:"Prida\u0165 Kateg\xF3riu",edit_category:"Upravi\u0165 Kateg\xF3riu",category_name:"N\xE1zov Kateg\xF3rie",category_description:"Popis",created_message:"Kateg\xF3ria cenov\xE9ho odhadu \xFAspe\u0161ne vytvoren\xE1",deleted_message:"Kateg\xF3ria cenov\xE9ho odhadu \xFAspe\u0161ne odstr\xE1nena",updated_message:"Kateg\xF3ria cenov\xE9ho odhadu \xFAspe\u0161ne aktualizovan\xE1",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto kateg\xF3riu cenov\xFDch odhadov",already_in_use:"Kateg\xF3ria sa u\u017E pou\u017E\xEDva"},preferences:{currency:"Mena",default_language:"Predvolen\xFD Jazyk",time_zone:"\u010Casov\xE9 P\xE1smo",fiscal_year:"Fi\u0161k\xE1lny Rok",date_format:"Form\xE1t D\xE1tumu",discount_setting:"Nastavenia Z\u013Eavy",discount_per_item:"Z\u013Eava pre ka\u017Ed\xFA Polo\u017Eku zvl\xE1\u0161\u0165",discount_setting_description:"T\xFAto mo\u017Enos\u0165 povo\u013Ete, ak chcete prida\u0165 z\u013Eavu k jednotliv\xFDm polo\u017Ek\xE1m fakt\xFAry. \u0160tandardne sa z\u013Eava pripo\u010D\xEDtava priamo k fakt\xFAre.",save:"Ulo\u017Ei\u0165",preference:"Preferencie | Preferencie",general_settings:"Syst\xE9movo predvolen\xE9 preferencie.",updated_message:"Preferencie \xFAspe\u0161ne aktualizovan\xE9",select_language:"Vyberte Jazyk",select_time_zone:"Vyberte \u010Casov\xE9 P\xE1smo",select_date_format:"Vybra\u0165 Form\xE1t D\xE1tumu",select_financial_year:"Vyberte Fi\u0161k\xE1lny Rok"},update_app:{title:"Aktualizova\u0165 Aplik\xE1ciu",description:"Aplik\xE1ciu m\xF4\u017Ete jednoducho aktualizova\u0165 tla\u010Ditkom ni\u017E\u0161ie",check_update:"Skontrolova\u0165 Aktualiz\xE1cie",avail_update:"Nov\xE1 aktualiz\xE1cia je k dispoz\xEDcii",next_version:"\u010Eal\u0161ia Verzia",requirements:"Po\u017Eiadavky",update:"Aktualizova\u0165",update_progress:"Aktualiz\xE1cia prebieha...",progress_text:"Bude to trva\u0165 len p\xE1r min\xFAt. Pred dokon\u010Den\xEDm aktualiz\xE1cie neobnovujte obrazovku ani nezatv\xE1rajte okno.",update_success:"App bola aktualizovan\xE1! Po\u010Dkajte, k\xFDm sa okno v\xE1\u0161ho prehliada\u010Da na\u010D\xEDta automaticky.",latest_message:"Nie je k dispoz\xEDcii \u017Eiadna aktualiz\xE1cia! Pou\u017E\xEDvate najnov\u0161iu verziu.",current_version:"Aktu\xE1lna verzia",download_zip_file:"Stiahnu\u0165 ZIP s\xFAbor",unzipping_package:"Rozbali\u0165 bal\xEDk",copying_files:"Kop\xEDrovanie s\xFAborov",running_migrations:"Prebieha Migr\xE1cia",finishing_update:"Ukon\u010Dovanie Aktualiz\xE1cie",update_failed:"Aktualiz\xE1cia zlyhala!",update_failed_text:"Aktualiz\xE1cia zlyhala na : {step} kroku"},backup:{title:"Z\xE1loha | Z\xE1lohy",description:"Z\xE1loha je vo form\xE1te zip ktor\xFD obsahuje v\u0161etky s\xFAbory v adres\xE1roch vr\xE1tane v\xFDpisu z datab\xE1zy.",new_backup:"Vytvori\u0165 z\xE1lohu",create_backup:"Vytvori\u0165 z\xE1lohu",select_backup_type:"Vybra\u0165 typ z\xE1lohy",backup_confirm_delete:"Nebude mo\u017En\xE9 obnovi\u0165 t\xFAto z\xE1lohu",path:"cesta",new_disk:"Nov\xFD Disk",created_at:"vytvoren\xE9",size:"velkost",dropbox:"dropbox",local:"local",healthy:"v poriadku",amount_of_backups:"po\u010Det z\xE1loh",newest_backups:"najnov\u0161ie z\xE1lohy",used_storage:"vyu\u017Eit\xE9 miesto na disku",select_disk:"Vybra\u0165 disk",action:"Akcia",deleted_message:"Z\xE1loha \xFAspe\u0161ne vymazan\xE1",created_message:"Z\xE1loha \xFAspe\u0161ne vytvoren\xE1",invalid_disk_credentials:"Nespr\xE1vne prihlasovacie \xFAdaje na disk"},disk:{title:"File Disk | File Disks",description:"V predvolenom nastaven\xED pou\u017Eije Crater v\xE1\u0161 lok\xE1lny disk na ukladanie z\xE1loh, avatarov a in\xFDch obrazov\xFDch s\xFAborov. M\xF4\u017Eete nakonfigurova\u0165 viac ako jeden disku ako napr. DigitalOcean, S3 a Dropbox pod\u013Ea va\u0161ich preferenci\xED.",created_at:"vytvoren\xE9",dropbox:"Dropbox",name:"N\xE1zov",driver:"Driver",disk_type:"Typ",disk_name:"N\xE1zov Disku",new_disk:"Prida\u0165 Nov\xFD Disk",filesystem_driver:"Driver syst\xE9mov\xFDch s\xFAborov",local_driver:"lok\xE1lny Driver",local_root:"Lok\xE1lka Cesta (root)",public_driver:"Verejn\xFD Driver",public_root:"Verejn\xE1 Cesta (root)",public_url:"Verejn\xE1 URL",public_visibility:"Vidite\u013En\xE9 pre Verejnos\u0165",media_driver:"Driver m\xE9di\xED",media_root:"Root m\xE9di\xED",aws_driver:"AWS Driver",aws_key:"AWS K\u013E\xFA\u010D (key)",aws_secret:"AWS Tajn\xFD K\u013E\xFA\u010D (secret)",aws_region:"AWS Regi\xF3n",aws_bucket:"AWP Bucket",aws_root:"AWP Cesta (root)",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Predvolen\xFD Driver",is_default:"Je predvolen\xFD",set_default_disk:"Nastavi\u0165 predvolen\xFD disk",success_set_default_disk:"Disk \xFAspe\u0161ne nastaven\xFD ako predvolen\xFD",save_pdf_to_disk:"Ulo\u017E PDFs na Disk",disk_setting_description:"T\xFAto mo\u017Enos\u0165 povo\u013Ete ak si chcete automaticky ulo\u017Ei\u0165 k\xF3piu ka\u017Ed\xE9ho s\xFAboru PDF s fakturami, odhadmi a pr\xEDjmami na predvolen\xFD disk. Pou\u017Eit\xEDm tejto mo\u017Enosti skr\xE1tite dobu na\u010D\xEDtania pri prezeran\xED s\xFAborov PDF.",select_disk:"Vybra\u0165 Disk",disk_settings:"Nastavenie Disku",confirm_delete:"Va\u0161e existuj\xFAce s\xFAbory a prie\u010Dinky na zadanom disku nebud\xFA ovplyvnen\xE9 ale konfigur\xE1cia v\xE1\u0161ho disku bude odstr\xE1nen\xE1 z Crateru",action:"Akcia",edit_file_disk:"Upravit Disk",success_create:"Disk \xFAspe\u0161ne pridan\xFD",success_update:"Disk \xFAspe\u0161ne aktualizovan\xFD",error:"Pridanie disku zlyhalo",deleted_message:"Disk bol \xFAspe\u0161ne odstr\xE1nen\xFD",disk_variables_save_successfully:"Disk bol \xFAspe\u0161ne pridan\xFD",disk_variables_save_error:"Konfigur\xE1cia disku zlyhala.",invalid_disk_credentials:"Neplatn\xE9 prihlasovacie \xFAdaje pre Disk"}},Bv={account_info:"Inform\xE1cie o \xFA\u010Dte",account_info_desc:"Ni\u017E\u0161ie uveden\xE9 podrobnosti sa pou\u017Eij\xFA na vytvorenie hlavn\xE9ho \xFA\u010Dtu spr\xE1vcu. Tie m\xF4\u017Eete kedyko\u013Evek zmeni\u0165 po prihl\xE1sen\xED.",name:"Meno",email:"Email",password:"Heslo",confirm_password:"Potvrdi\u0165 heslo",save_cont:"Ulo\u017Ei\u0165 a pokra\u010Dova\u0165",company_info:"Firemn\xE9 \xFAdaje",company_info_desc:"Tieto inform\xE1cie sa zobrazia na fakt\xFArach. Nesk\xF4r ich v\u0161ak m\xF4\u017Eete upravi\u0165.",company_name:"N\xE1zov firmy",company_logo:"Firemn\xE9 logo",logo_preview:"N\xE1h\u013Ead loga",preferences:"Preferencie",preferences_desc:"Predvolen\xE9 nastavenie syst\xE9mu.",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",address:"Adresa",street:"Ulica1 | Ulica2",phone:"Telef\xF3n",zip_code:"PS\u010C",go_back:"Nasp\xE4\u0165",currency:"Mena",language:"Jazyk",time_zone:"\u010Casov\xE9 p\xE1smo",fiscal_year:"Fi\u0161k\xE1lny rok",date_format:"Form\xE1t d\xE1tumu",from_address:"Z adresy",username:"Prihlasovacie meno",next:"\u010Ea\u013E\u0161\xED",continue:"Pokra\u010Dova\u0165",skip:"Vynecha\u0165",database:{database:"URL Adresa Aplik\xE1cie a Datab\xE1za",connection:"Pripojenie k datab\xE1ze",host:"Datab\xE1za - Host",port:"Datab\xE1za - Port",password:"Heslo do datab\xE1zy",app_url:"URL Adresa Aplik\xE1cie",app_domain:"Dom\xE9na aplik\xE1cie",username:"Prihlasovacie meno do datab\xE1zy",db_name:"N\xE1zov datab\xE1zy",db_path:"Datab\xE1z\xE1 - cesta (path)",desc:"Vytvorte datab\xE1zu na svojom serveri a pomocou nasleduj\xFAceho formul\xE1ra nastavte poverenia."},permissions:{permissions:"Opr\xE1vnenia",permission_confirm_title:"Ste si ist\xFD \u017Ee chcete pokra\u010Dova\u0165?",permission_confirm_desc:"Nedostato\u010Dn\xE9 opr\xE1vnenia na prie\u010Dinky in\u0161tal\xE1cie",permission_desc:"Ni\u017E\u0161ie je uveden\xFD zoznam povolen\xED prie\u010Dinkov ktor\xE9 s\xFA potrebn\xE9 na fungovanie aplik\xE1cie. Ak kontrola povolen\xED zlyh\xE1 nezabudnite aktualizova\u0165 povolenia prie\u010Dinka."},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Ni\u017E\u0161ie je uveden\xFD formul\xE1r na konfigur\xE1ciu ovl\xE1da\u010Da e-mailu na odosielanie e-mailov z aplik\xE1cie. M\xF4\u017Eete tie\u017E nakonfigurova\u0165 aj extern\xFDch poskytovate\u013Eov napr\xEDklad Sendgrid apod."},req:{system_req:"Syst\xE9mov\xE9 po\u017Eiadavky",php_req_version:"Php (verzia {version} po\u017Eadovan\xE1)",check_req:"Skontrolujte po\u017Eiadavky",system_req_desc:"Crater m\xE1 nieko\u013Eko po\u017Eiadaviek na server. Skontrolujte \u010Di m\xE1 v\xE1\u0161 server po\u017Eadovan\xFA verziu php a v\u0161etky moduly uveden\xE9 ni\u017E\u0161ie."},errors:{migrate_failed:"Migr\xE1ci zlyhala",database_variables_save_error:"Nie je mo\u017En\xE9 zap\xEDsa\u0165 konfigur\xE1ciu do .env file. Skontrolujte opr\xE1vnenia",mail_variables_save_error:"Konfigur\xE1cia emailu zlyhala.",connection_failed:"Pripojenie k datab\xE1ze zlyhalo",database_should_be_empty:"Datab\xE1za mus\xED by\u0165 pr\xE1zdna"},success:{mail_variables_save_successfully:"Email \xFAspe\u0161ne nakonfigurovan\xFD",database_variables_save_successfully:"Datab\xE1za \xFAspe\u0161ne nakonfigurovan\xE1."}},Ov={invalid_phone:"Zl\xE9 telef\xF3nn\xE9 \u010D\xEDslo",invalid_url:"Nespr\xE1vna URL adresa (ex: http://www.craterapp.com)",invalid_domain_url:"Nespr\xE1vna URL (ex: craterapp.com)",required:"Povinn\xE9 pole",email_incorrect:"Zl\xFD email.",email_already_taken:"Email sa uz pou\u017E\xEDva.",email_does_not_exist:"Pou\u017E\xEDvate\u013E s t\xFDmto emailom neexistuje.",item_unit_already_taken:"N\xE1zov tejto polo\u017Eky sa u\u017E pou\u017E\xEDva",payment_mode_already_taken:"N\xE1zov tohto typu platby sa u\u017E pou\u017E\xEDva",send_reset_link:"Odosla\u0165 resetovac\xED link",not_yet:"Email e\u0161te nepri\u0161iel? Znova odosla\u0165",password_min_length:"Heslo mus\xED obsahova\u0165 {count} znaky",name_min_length:"Meno mus\xED ma\u0165 minim\xE1lne {count} p\xEDsmen.",enter_valid_tax_rate:"Zadajte platn\xFA sadzbu dane",numbers_only:"Iba \u010D\xEDsla.",characters_only:"Iba znaky.",password_incorrect:"Hesl\xE1 musia by\u0165 rovnak\xE9",password_length:"Heslo musi obsahova\u0165 minim\xE1lne {count} znakov.",qty_must_greater_than_zero:"Mno\u017Estvo mus\xED by\u0165 viac ako 0.",price_greater_than_zero:"Cena mus\xED by\u0165 viac ako 0.",payment_greater_than_zero:"Platba mus\xED by\u0165 viac ako   0.",payment_greater_than_due_amount:"Zadan\xE1 platba je vy\u0161\u0161ia ako suma na fakt\xFAre.",quantity_maxlength:"Mno\u017Estvo by nemalo obsahova\u0165 ako 20 \u010D\xEDslic.",price_maxlength:"Cena by nemala obsahova\u0165 viac ako 20 \u010D\xEDslic.",price_minvalue:"Suma musi by\u0165 vy\u0161\u0161ia ako 0.",amount_maxlength:"\u010Ciastka by nemala obsahova\u0165 viac ako 20 \u010D\xEDslic.",amount_minvalue:"\u010Ciastka mus\xED by\u0165 va\u010D\u0161ia ako 0.",description_maxlength:"Popis nesmie obsahova\u0165 viac ako 255 znaokv.",subject_maxlength:"Predmet nesmie obsahova\u0165 viac ako 100 znakov.",message_maxlength:"Spr\xE1va nesmie obsahova\u0165 viac ako 255 znakov.",maximum_options_error:"Maxim\xE1lny po\u010Det z {max} mo\u017Enosti vybran\xFD. Najprv odstr\xE1nte aspo\u0148 jednu mo\u017Enost a n\xE1sledne vyberte in\xFA.",notes_maxlength:"Pozn\xE1mky nesm\xFA obsahova\u0165 viac ako 100 znakov.",address_maxlength:"Adresa nesmie obsahova\u0165 viac ako 255 znakov",ref_number_maxlength:"Referen\u010Dn\xE9 \u010Dislo nesmie obsahova\u0165 viac ako 255 znakov",prefix_maxlength:"Predpona nesmie ma\u0165 viac ako 5 znakov.",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova."},Lv="Cenov\xFD odhad",Uv="\u010C\xEDslo cenov\xE9ho odhadu",Kv="D\xE1tum cenov\xE9ho odhadu",qv="Platnos\u0165 cenov\xE9ho odhadu",Zv="Fakt\xFAra",Wv="\u010C\xEDslo fakt\xFAry",Hv="D\xE1tum vystavenia",Gv="D\xE1tum splatnosti",Yv="Pozn\xE1mky",Jv="Polo\u017Eky",Xv="Po\u010Det",Qv="Cena",ey="Z\u013Eava",ty="Celkom",ay="Medzis\xFA\u010Det",sy="S\xFA\u010Det",ny="Doklad o zaplaten\xED",iy="D\xE1tum platby",oy="\u010C\xEDslo platby",ry="Sp\xF4sob platby",dy="Prijat\xE1 suma",ly="Report v\xFDdajov",cy="Celkov\xE9 v\xFDdaje",_y="Zisky a straty",uy="Pr\xEDjem",my="\u010Cist\xFD pr\xEDjem",py="Report predajov: Pod\u013Ea z\xE1kazn\xEDkov",gy="Celkov\xE9 predaje",fy="Report predajov: Pod\u013Ea polo\u017Eky",hy="Report dan\xED",vy="Celkov\xE9 dane",yy="Typy dan\xED",by="V\xFDdaje",ky="Fakturova\u0165,",wy="Doru\u010Di\u0165,",xy="Prijat\xE9 od:",zy="da\u0148";var Sy={navigation:Sv,general:jv,dashboard:Pv,tax_types:Dv,global_search:Cv,customers:Av,items:Ev,estimates:Nv,invoices:Tv,payments:Iv,expenses:$v,login:Rv,users:Fv,reports:Mv,settings:Vv,wizard:Bv,validation:Ov,pdf_estimate_label:Lv,pdf_estimate_number:Uv,pdf_estimate_date:Kv,pdf_estimate_expire_date:qv,pdf_invoice_label:Zv,pdf_invoice_number:Wv,pdf_invoice_date:Hv,pdf_invoice_due_date:Gv,pdf_notes:Yv,pdf_items_label:Jv,pdf_quantity_label:Xv,pdf_price_label:Qv,pdf_discount_label:ey,pdf_amount_label:ty,pdf_subtotal:ay,pdf_total:sy,pdf_payment_receipt_label:ny,pdf_payment_date:iy,pdf_payment_number:oy,pdf_payment_mode:ry,pdf_payment_amount_received_label:dy,pdf_expense_report_label:ly,pdf_total_expenses_label:cy,pdf_profit_loss_label:_y,pdf_income_label:uy,pdf_net_profit_label:my,pdf_customer_sales_report:py,pdf_total_sales_label:gy,pdf_item_sales_label:fy,pdf_tax_report_label:hy,pdf_total_tax_label:vy,pdf_tax_types_label:yy,pdf_expenses_label:by,pdf_bill_to:ky,pdf_ship_to:wy,pdf_received_from:xy,pdf_tax_label:zy};const jy={dashboard:"B\u1EA3ng \u0111i\u1EC1u khi\u1EC3n",customers:"Kh\xE1ch h\xE0ng",items:"M\u1EB7t h\xE0ng",invoices:"H\xF3a \u0111\u01A1n",expenses:"Chi ph\xED",estimates:"\u01AF\u1EDBc t\xEDnh",payments:"Thanh to\xE1n",reports:"B\xE1o c\xE1o",settings:"C\xE0i \u0111\u1EB7t",logout:"\u0110\u0103ng xu\u1EA5t",users:"Ng\u01B0\u1EDDi d\xF9ng"},Py={add_company:"Th\xEAm c\xF4ng ty",view_pdf:"Xem PDF",copy_pdf_url:"Sao ch\xE9p Url PDF",download_pdf:"t\u1EA3i PDF",save:"Ti\u1EBFt ki\u1EC7m",create:"T\u1EA1o m\u1EDBi",cancel:"Hu\u1EF7 b\u1ECF",update:"C\u1EADp nh\u1EADt",deselect:"B\u1ECF ch\u1ECDn",download:"T\u1EA3i xu\u1ED1ng",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",from:"T\u1EEB",to:"\u0110\u1EBFn",sort_by:"S\u1EAFp x\u1EBFp theo",ascending:"T\u0103ng d\u1EA7n",descending:"Gi\u1EA3m d\u1EA7n",subject:"M\xF4n h\u1ECDc",body:"Th\xE2n h\xECnh",message:"Th\xF4ng \u0111i\u1EC7p",send:"G\u1EEDi",go_back:"Quay l\u1EA1i",back_to_login:"Quay l\u1EA1i \u0111\u0103ng nh\u1EADp?",home:"Trang Ch\u1EE7",filter:"B\u1ED9 l\u1ECDc",delete:"X\xF3a b\u1ECF",edit:"Ch\u1EC9nh s\u1EEDa",view:"L\u01B0\u1EE3t xem",add_new_item:"Th\xEAm m\u1EE5c m\u1EDBi",clear_all:"L\xE0m s\u1EA1ch t\u1EA5t c\u1EA3",showing:"Hi\u1EC3n th\u1ECB",of:"c\u1EE7a",actions:"H\xE0nh \u0111\u1ED9ng",subtotal:"TI\xCAU \u0110\u1EC0",discount:"GI\u1EA2M GI\xC1",fixed:"\u0111\xE3 s\u1EEDa",percentage:"Ph\u1EA7n tr\u0103m",tax:"THU\u1EBE",total_amount:"T\xD4\u0309NG C\xD4\u0323NG",bill_to:"Giao t\u1EEB",ship_to:"Giao t\u1EDBi",due:"\u0110\u1EBFn h\u1EA1n",draft:"B\u1EA3n nh\xE1p",sent:"G\u1EEDi",all:"T\u1EA5t c\u1EA3",select_all:"Ch\u1ECDn t\u1EA5t c\u1EA3",choose_file:"B\u1EA5m v\xE0o \u0111\xE2y \u0111\u1EC3 ch\u1ECDn m\u1ED9t t\u1EADp tin",choose_template:"Ch\u1ECDn m\u1ED9t m\u1EABu",choose:"Ch\u1ECDn",remove:"G\u1EE1",powered_by:"\u0110\u01B0\u1EE3c cung c\u1EA5p b\u1EDFi",bytefury:"Bytefury",select_a_status:"Ch\u1ECDn m\u1ED9t tr\u1EA1ng th\xE1i",select_a_tax:"Ch\u1ECDn thu\u1EBF",search:"T\xECm ki\u1EBFm",are_you_sure:"B\u1EA1n c\xF3 ch\u1EAFc kh\xF4ng?",list_is_empty:"Danh s\xE1ch tr\u1ED1ng.",no_tax_found:"Kh\xF4ng t\xECm th\u1EA5y thu\u1EBF!",four_zero_four:"404",you_got_lost:"R\u1EA5t ti\u1EBFc! B\u1EA1n b\u1ECB l\u1EA1c r\u1ED3i!",go_home:"V\u1EC1 nh\xE0",test_mail_conf:"Ki\u1EC3m tra c\u1EA5u h\xECnh th\u01B0",send_mail_successfully:"Th\u01B0 \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t th\xE0nh c\xF4ng",select_state:"Ch\u1ECDn tr\u1EA1ng th\xE1i",select_country:"Ch\u1ECDn qu\u1ED1c gia",select_city:"L\u1EF1a ch\u1ECDn th\xE0nh ph\u1ED1",street_1:"\u0111\u01B0\u1EDDng s\u1ED1 1",street_2:"\u0110\u01B0\u1EDDng 2",action_failed:"\u0110\xE3 th\u1EA5t b\u1EA1i",retry:"Th\u1EED l\u1EA1i",choose_note:"Ch\u1ECDn Ghi ch\xFA",no_note_found:"Kh\xF4ng t\xECm th\u1EA5y ghi ch\xFA",insert_note:"Ch\xE8n ghi ch\xFA",copied_pdf_url_clipboard:"\u0110\xE3 sao ch\xE9p url PDF v\xE0o khay nh\u1EDB t\u1EA1m!"},Dy={select_year:"Ch\u1ECDn n\u0103m",cards:{due_amount:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",customers:"Kh\xE1ch h\xE0ng",invoices:"H\xF3a \u0111\u01A1n",estimates:"\u01AF\u1EDBc t\xEDnh"},chart_info:{total_sales:"B\xE1n h\xE0ng",total_receipts:"Bi\xEAn lai",total_expense:"Chi ph\xED",net_income:"Thu nh\u1EADp r\xF2ng",year:"Ch\u1ECDn n\u0103m"},monthly_chart:{title:"B\xE1n h\xE0ng"},recent_invoices_card:{title:"H\xF3a \u0111\u01A1n \u0111\u1EBFn h\u1EA1n",due_on:"\u0110\u1EBFn h\u1EA1n v\xE0o",customer:"kh\xE1ch h\xE0ng",amount_due:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",actions:"H\xE0nh \u0111\u1ED9ng",view_all:"Xem t\u1EA5t c\u1EA3"},recent_estimate_card:{title:"C\xE1c \u01B0\u1EDBc t\xEDnh g\u1EA7n \u0111\xE2y",date:"Ng\xE0y",customer:"kh\xE1ch h\xE0ng",amount_due:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",actions:"H\xE0nh \u0111\u1ED9ng",view_all:"Xem t\u1EA5t c\u1EA3"}},Cy={name:"T\xEAn",description:"Mi\xEAu t\u1EA3",percent:"Ph\u1EA7n tr\u0103m",compound_tax:"Thu\u1EBF t\u1ED5ng h\u1EE3p"},Ay={search:"T\xECm ki\u1EBFm...",customers:"Kh\xE1ch h\xE0ng",users:"Ng\u01B0\u1EDDi d\xF9ng",no_results_found:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3 n\xE0o"},Ey={title:"Kh\xE1ch h\xE0ng",add_customer:"Th\xEAm kh\xE1ch h\xE0ng",contacts_list:"Danh s\xE1ch kh\xE1ch h\xE0ng",name:"T\xEAn",mail:"Th\u01B0 t\xEDn | Th\u01B0",statement:"Tuy\xEAn b\u1ED1",display_name:"T\xEAn hi\u1EC3n th\u1ECB",primary_contact_name:"T\xEAn li\xEAn h\u1EC7 ch\xEDnh",contact_name:"T\xEAn Li\xEAn l\u1EA1c",amount_due:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",email:"E-mail",address:"\u0110\u1ECBa ch\u1EC9",phone:"\u0110i\u1EC7n tho\u1EA1i",website:"Website",overview:"T\u1ED5ng quan",enable_portal:"B\u1EADt C\u1ED5ng th\xF4ng tin",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",zip_code:"M\xE3 B\u01B0u Ch\xEDnh",added_on:"\u0110\xE3 th\xEAm v\xE0o",action:"Ho\u1EA1t \u0111\u1ED9ng",password:"M\u1EADt kh\u1EA9u",street_number:"S\u1ED1 \u0111\u01B0\u1EDDng",primary_currency:"Ti\u1EC1n t\u1EC7 ch\xEDnh",description:"Mi\xEAu t\u1EA3",add_new_customer:"Th\xEAm kh\xE1ch h\xE0ng m\u1EDBi",save_customer:"L\u01B0u kh\xE1ch h\xE0ng",update_customer:"C\u1EADp nh\u1EADt kh\xE1ch h\xE0ng",customer:"Kh\xE1ch h\xE0ng | Kh\xE1ch h\xE0ng",new_customer:"Kh\xE1ch h\xE0ng m\u1EDBi",edit_customer:"Ch\u1EC9nh s\u1EEDa kh\xE1ch h\xE0ng",basic_info:"Th\xF4ng tin c\u01A1 b\u1EA3n",billing_address:"\u0110\u1ECBa ch\u1EC9 thanh to\xE1n",shipping_address:"\u0110\u1ECBa ch\u1EC9 giao h\xE0ng",copy_billing_address:"Sao ch\xE9p t\u1EEB thanh to\xE1n",no_customers:"Ch\u01B0a c\xF3 kh\xE1ch h\xE0ng!",no_customers_found:"Kh\xF4ng t\xECm th\u1EA5y kh\xE1ch h\xE0ng n\xE0o!",no_contact:"Kh\xF4ng c\xF3 li\xEAn l\u1EA1c",no_contact_name:"Kh\xF4ng c\xF3 t\xEAn li\xEAn h\u1EC7",list_of_customers:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c kh\xE1ch h\xE0ng.",primary_display_name:"T\xEAn hi\u1EC3n th\u1ECB ch\xEDnh",select_currency:"Ch\u1ECDn \u0111\u01A1n v\u1ECB ti\u1EC1n t\u1EC7",select_a_customer:"Ch\u1ECDn m\u1ED9t kh\xE1ch h\xE0ng",type_or_click:"Nh\u1EADp ho\u1EB7c nh\u1EA5p \u0111\u1EC3 ch\u1ECDn",new_transaction:"Giao d\u1ECBch m\u1EDBi",no_matching_customers:"Kh\xF4ng c\xF3 kh\xE1ch h\xE0ng ph\xF9 h\u1EE3p!",phone_number:"S\u1ED1 \u0111i\u1EC7n tho\u1EA1i",create_date:"T\u1EA1o ng\xE0y",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c kh\xE1ch h\xE0ng n\xE0y v\xE0 t\u1EA5t c\u1EA3 c\xE1c H\xF3a \u0111\u01A1n, \u01AF\u1EDBc t\xEDnh v\xE0 Thanh to\xE1n c\xF3 li\xEAn quan. | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c nh\u1EEFng kh\xE1ch h\xE0ng n\xE0y v\xE0 t\u1EA5t c\u1EA3 c\xE1c H\xF3a \u0111\u01A1n, \u01AF\u1EDBc t\xEDnh v\xE0 Thanh to\xE1n c\xF3 li\xEAn quan.",created_message:"Kh\xE1ch h\xE0ng \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt kh\xE1ch h\xE0ng th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a kh\xE1ch h\xE0ng th\xE0nh c\xF4ng | \u0110\xE3 x\xF3a kh\xE1ch h\xE0ng th\xE0nh c\xF4ng"},Ny={title:"M\u1EB7t h\xE0ng",items_list:"Danh s\xE1ch m\u1EB7t h\xE0ng",name:"T\xEAn",unit:"\u0110\u01A1n v\u1ECB",description:"Mi\xEAu t\u1EA3",added_on:"\u0110\xE3 th\xEAm v\xE0o",price:"Gi\xE1 b\xE1n",date_of_creation:"Ng\xE0y t\u1EA1o",not_selected:"Kh\xF4ng c\xF3 m\u1EE5c n\xE0o \u0111\u01B0\u1EE3c ch\u1ECDn",action:"Ho\u1EA1t \u0111\u1ED9ng",add_item:"Th\xEAm m\u1EB7t h\xE0ng",save_item:"L\u01B0u m\u1EE5c",update_item:"C\u1EADp nh\u1EADt m\u1EB7t h\xE0ng",item:"M\u1EB7t h\xE0ng | M\u1EB7t h\xE0ng",add_new_item:"Th\xEAm m\u1EE5c m\u1EDBi",new_item:"S\u1EA3n ph\u1EA9m m\u1EDBi",edit_item:"Ch\u1EC9nh s\u1EEDa m\u1EE5c",no_items:"Ch\u01B0a c\xF3 m\u1EB7t h\xE0ng n\xE0o!",list_of_items:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c m\u1EE5c.",select_a_unit:"ch\u1ECDn \u0111\u01A1n v\u1ECB",taxes:"Thu\u1EBF",item_attached_message:"Kh\xF4ng th\u1EC3 x\xF3a m\u1ED9t m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c V\u1EADt ph\u1EA9m n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c M\u1EE5c n\xE0y",created_message:"M\u1EE5c \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt m\u1EB7t h\xE0ng th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a m\u1EE5c th\xE0nh c\xF4ng | C\xE1c m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng"},Ty={title:"\u01AF\u1EDBc t\xEDnh",estimate:"\u01AF\u1EDBc t\xEDnh | \u01AF\u1EDBc t\xEDnh",estimates_list:"Danh s\xE1ch \u01B0\u1EDBc t\xEDnh",days:"{days} Ng\xE0y",months:"{months} th\xE1ng",years:"{years} N\u0103m",all:"T\u1EA5t c\u1EA3",paid:"\u0110\xE3 thanh to\xE1n",unpaid:"Ch\u01B0a thanh to\xE1n",customer:"KH\xC1CH H\xC0NG",ref_no:"S\u1ED0 THAM CHI\u1EBEU.",number:"CON S\u1ED0",amount_due:"S\u1ED0 TI\u1EC0N THANH TO\xC1N",partially_paid:"Thanh to\xE1n m\u1ED9t ph\u1EA7n",total:"To\xE0n b\u1ED9",discount:"Gi\u1EA3m gi\xE1",sub_total:"T\u1ED5ng ph\u1EE5",estimate_number:"S\u1ED1 \u01B0\u1EDBc t\xEDnh",ref_number:"S\u1ED1 REF",contact:"Li\xEAn h\u1EC7",add_item:"Th\xEAm m\u1ED9t m\u1EB7t h\xE0ng",date:"Ng\xE0y",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",expiry_date:"Ng\xE0y h\u1EBFt h\u1EA1n",status:"Tr\u1EA1ng th\xE1i",add_tax:"Th\xEAm thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",notes:"Ghi ch\xFA",tax:"Thu\u1EBF",estimate_template:"B\u1EA3n m\u1EABu",convert_to_invoice:"Chuy\u1EC3n \u0111\u1ED5i sang h\xF3a \u0111\u01A1n",mark_as_sent:"\u0110\xE1nh d\u1EA5u l\xE0 \u0110\xE3 g\u1EEDi",send_estimate:"G\u1EEDi \u01B0\u1EDBc t\xEDnh",resend_estimate:"G\u1EEDi l\u1EA1i \u01B0\u1EDBc t\xEDnh",record_payment:"Ghi l\u1EA1i Thanh to\xE1n",add_estimate:"Th\xEAm \u01B0\u1EDBc t\xEDnh",save_estimate:"L\u01B0u \u01B0\u1EDBc t\xEDnh",confirm_conversion:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 t\u1EA1o H\xF3a \u0111\u01A1n m\u1EDBi.",conversion_message:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",confirm_send_estimate:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",confirm_mark_as_sent:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_mark_as_accepted:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0110\xE3 ch\u1EA5p nh\u1EADn",confirm_mark_as_rejected:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 B\u1ECB t\u1EEB ch\u1ED1i",no_matching_estimates:"Kh\xF4ng c\xF3 \u01B0\u1EDBc t\xEDnh ph\xF9 h\u1EE3p!",mark_as_sent_successfully:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi th\xE0nh c\xF4ng",send_estimate_successfully:"\u01AF\u1EDBc t\xEDnh \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",errors:{required:"Tr\u01B0\u1EDDng kh\xF4ng \u0111\u01B0\u1EE3c b\u1ECF tr\u1ED1ng."},accepted:"\u0110\xE3 \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn",rejected:"T\u1EEB ch\u1ED1i",sent:"G\u1EEDi",draft:"B\u1EA3n nh\xE1p",declined:"Suy gi\u1EA3m",new_estimate:"\u01AF\u1EDBc t\xEDnh m\u1EDBi",add_new_estimate:"Th\xEAm \u01B0\u1EDBc t\xEDnh m\u1EDBi",update_Estimate:"C\u1EADp nh\u1EADt \u01B0\u1EDBc t\xEDnh",edit_estimate:"Ch\u1EC9nh s\u1EEDa \u01B0\u1EDBc t\xEDnh",items:"m\u1EB7t h\xE0ng",Estimate:"\u01AF\u1EDBc t\xEDnh | \u01AF\u1EDBc t\xEDnh",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",no_estimates:"Ch\u01B0a c\xF3 \u01B0\u1EDBc t\xEDnh n\xE0o!",list_of_estimates:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c \u01B0\u1EDBc t\xEDnh.",mark_as_rejected:"\u0110\xE1nh d\u1EA5u l\xE0 b\u1ECB t\u1EEB ch\u1ED1i",mark_as_accepted:"\u0110\xE1nh d\u1EA5u l\xE0 \u0111\xE3 ch\u1EA5p nh\u1EADn",marked_as_accepted_message:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn",marked_as_rejected_message:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 b\u1ECB t\u1EEB ch\u1ED1i",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c \u01AF\u1EDBc t\xEDnh n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c \u01AF\u1EDBc t\xEDnh n\xE0y",created_message:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng | \u0110\xE3 x\xF3a \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng",something_went_wrong:"C\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n",item:{title:"Danh m\u1EE5c",description:"Mi\xEAu t\u1EA3",quantity:"\u0110\u1ECBnh l\u01B0\u1EE3ng",price:"Gi\xE1 b\xE1n",discount:"Gi\u1EA3m gi\xE1",total:"To\xE0n b\u1ED9",total_discount:"T\u1ED5ng kh\u1EA5u tr\u1EEB",sub_total:"T\u1ED5ng ph\u1EE5",tax:"Thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",select_an_item:"Nh\u1EADp ho\u1EB7c nh\u1EA5p \u0111\u1EC3 ch\u1ECDn m\u1ED9t m\u1EE5c",type_item_description:"Lo\u1EA1i M\u1EE5c M\xF4 t\u1EA3 (t\xF9y ch\u1ECDn)"}},Iy={title:"H\xF3a \u0111\u01A1n",invoices_list:"Danh s\xE1ch h\xF3a \u0111\u01A1n",days:"{days} Ng\xE0y",months:"{months} th\xE1ng",years:"{years} N\u0103m",all:"T\u1EA5t c\u1EA3",paid:"\u0110\xE3 thanh to\xE1n",unpaid:"Ch\u01B0a thanh to\xE1n",viewed:"\u0110\xE3 xem",overdue:"Qu\xE1 h\u1EA1n",completed:"\u0110\xE3 ho\xE0n th\xE0nh",customer:"KH\xC1CH H\xC0NG",paid_status:"TR\u1EA0NG TH\xC1I \u0110\xC3 TR\u1EA2 TI\u1EC0N",ref_no:"S\u1ED0 THAM CHI\u1EBEU.",number:"S\u1ED0",amount_due:"S\u1ED0 TI\u1EC0N THANH TO\xC1N",partially_paid:"Thanh to\xE1n m\u1ED9t ph\u1EA7n",total:"To\xE0n b\u1ED9",discount:"Gi\u1EA3m gi\xE1",sub_total:"T\u1ED5ng ph\u1EE5",invoice:"H\xF3a \u0111\u01A1n | H\xF3a \u0111\u01A1n",invoice_number:"S\u1ED1 h\xF3a \u0111\u01A1n",ref_number:"S\u1ED1 REF",contact:"Li\xEAn h\u1EC7",add_item:"Th\xEAm m\u1ED9t m\u1EB7t h\xE0ng",date:"Ng\xE0y",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",status:"Tr\u1EA1ng th\xE1i",add_tax:"Th\xEAm thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",notes:"Ghi ch\xFA",view:"L\u01B0\u1EE3t xem",send_invoice:"G\u1EEDi h\xF3a \u0111\u01A1n",resend_invoice:"G\u1EEDi l\u1EA1i h\xF3a \u0111\u01A1n",invoice_template:"M\u1EABu h\xF3a \u0111\u01A1n",template:"B\u1EA3n m\u1EABu",mark_as_sent:"\u0110\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_send_invoice:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",invoice_mark_as_sent:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_send:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",invoice_date:"Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",record_payment:"Ghi l\u1EA1i Thanh to\xE1n",add_new_invoice:"Th\xEAm h\xF3a \u0111\u01A1n m\u1EDBi",update_expense:"C\u1EADp nh\u1EADt chi ph\xED",edit_invoice:"Ch\u1EC9nh s\u1EEDa h\xF3a \u0111\u01A1n",new_invoice:"H\xF3a \u0111\u01A1n m\u1EDBi",save_invoice:"L\u01B0u h\xF3a \u0111\u01A1n",update_invoice:"C\u1EADp nh\u1EADt h\xF3a \u0111\u01A1n",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",no_invoices:"Ch\u01B0a c\xF3 h\xF3a \u0111\u01A1n!",list_of_invoices:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c h\xF3a \u0111\u01A1n.",select_invoice:"Ch\u1ECDn h\xF3a \u0111\u01A1n",no_matching_invoices:"Kh\xF4ng c\xF3 h\xF3a \u0111\u01A1n ph\xF9 h\u1EE3p!",mark_as_sent_successfully:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi th\xE0nh c\xF4ng",invoice_sent_successfully:"H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",cloned_successfully:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c sao ch\xE9p th\xE0nh c\xF4ng",clone_invoice:"H\xF3a \u0111\u01A1n nh\xE2n b\u1EA3n",confirm_clone:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c sao ch\xE9p v\xE0o m\u1ED9t H\xF3a \u0111\u01A1n m\u1EDBi",item:{title:"Danh m\u1EE5c",description:"Mi\xEAu t\u1EA3",quantity:"\u0110\u1ECBnh l\u01B0\u1EE3ng",price:"Gi\xE1 b\xE1n",discount:"Gi\u1EA3m gi\xE1",total:"To\xE0n b\u1ED9",total_discount:"T\u1ED5ng kh\u1EA5u tr\u1EEB",sub_total:"T\u1ED5ng ph\u1EE5",tax:"Thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",select_an_item:"Nh\u1EADp ho\u1EB7c nh\u1EA5p \u0111\u1EC3 ch\u1ECDn m\u1ED9t m\u1EE5c",type_item_description:"Lo\u1EA1i M\u1EE5c M\xF4 t\u1EA3 (t\xF9y ch\u1ECDn)"},confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c H\xF3a \u0111\u01A1n n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c H\xF3a \u0111\u01A1n n\xE0y",created_message:"H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt h\xF3a \u0111\u01A1n th\xE0nh c\xF4ng",deleted_message:"H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng | H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",marked_as_sent_message:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi th\xE0nh c\xF4ng",something_went_wrong:"c\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n",invalid_due_amount_message:"T\u1ED5ng s\u1ED1 ti\u1EC1n tr\xEAn H\xF3a \u0111\u01A1n kh\xF4ng \u0111\u01B0\u1EE3c nh\u1ECF h\u01A1n t\u1ED5ng s\u1ED1 ti\u1EC1n \u0111\xE3 thanh to\xE1n cho H\xF3a \u0111\u01A1n n\xE0y. Vui l\xF2ng c\u1EADp nh\u1EADt h\xF3a \u0111\u01A1n ho\u1EB7c x\xF3a c\xE1c kho\u1EA3n thanh to\xE1n li\xEAn quan \u0111\u1EC3 ti\u1EBFp t\u1EE5c."},$y={title:"Thanh to\xE1n",payments_list:"Danh s\xE1ch thanh to\xE1n",record_payment:"Ghi l\u1EA1i Thanh to\xE1n",customer:"kh\xE1ch h\xE0ng",date:"Ng\xE0y",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",payment_number:"M\xE3 S\u1ED1 Thanh To\xE1n",payment_mode:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",invoice:"H\xF3a \u0111\u01A1n",note:"Ghi ch\xFA",add_payment:"Th\xEAm thanh to\xE1n",new_payment:"Thanh to\xE1n m\u1EDBi",edit_payment:"Ch\u1EC9nh s\u1EEDa Thanh to\xE1n",view_payment:"Xem thanh to\xE1n",add_new_payment:"Th\xEAm thanh to\xE1n m\u1EDBi",send_payment_receipt:"G\u1EEDi bi\xEAn lai thanh to\xE1n",send_payment:"G\u1EEDi h\xF3a \u0111\u01A1n",save_payment:"L\u01B0u thanh to\xE1n",update_payment:"C\u1EADp nh\u1EADt thanh to\xE1n",payment:"Thanh to\xE1n | Thanh to\xE1n",no_payments:"Ch\u01B0a c\xF3 kho\u1EA3n thanh to\xE1n n\xE0o!",not_selected:"Kh\xF4ng \u0111\u01B0\u1EE3c ch\u1ECDn",no_invoice:"Kh\xF4ng c\xF3 h\xF3a \u0111\u01A1n",no_matching_payments:"Kh\xF4ng c\xF3 kho\u1EA3n thanh to\xE1n n\xE0o ph\xF9 h\u1EE3p!",list_of_payments:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c kho\u1EA3n thanh to\xE1n.",select_payment_mode:"Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",confirm_mark_as_sent:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_send_payment:"Kho\u1EA3n thanh to\xE1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",send_payment_successfully:"Thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",something_went_wrong:"C\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Thanh to\xE1n n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c Kho\u1EA3n thanh to\xE1n n\xE0y",created_message:"Thanh to\xE1n \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt thanh to\xE1n th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a thanh to\xE1n th\xE0nh c\xF4ng | Thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",invalid_amount_message:"S\u1ED1 ti\u1EC1n thanh to\xE1n kh\xF4ng h\u1EE3p l\u1EC7"},Ry={title:"Chi ph\xED",expenses_list:"Danh s\xE1ch chi ph\xED",select_a_customer:"Ch\u1ECDn m\u1ED9t kh\xE1ch h\xE0ng",expense_title:"Ti\xEAu \u0111\u1EC1",customer:"kh\xE1ch h\xE0ng",contact:"Li\xEAn h\u1EC7",category:"th\u1EC3 lo\u1EA1i",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",expense_date:"Ng\xE0y",description:"Mi\xEAu t\u1EA3",receipt:"Bi\xEAn lai",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",not_selected:"Kh\xF4ng \u0111\u01B0\u1EE3c ch\u1ECDn",note:"Ghi ch\xFA",category_id:"Th\u1EC3 lo\u1EA1i ID",date:"Ng\xE0y",add_expense:"Th\xEAm chi ph\xED",add_new_expense:"Th\xEAm chi ph\xED m\u1EDBi",save_expense:"Ti\u1EBFt ki\u1EC7m chi ph\xED",update_expense:"C\u1EADp nh\u1EADt chi ph\xED",download_receipt:"Bi\xEAn nh\u1EADn t\u1EA3i xu\u1ED1ng",edit_expense:"Ch\u1EC9nh s\u1EEDa chi ph\xED",new_expense:"Chi ph\xED m\u1EDBi",expense:"Chi ph\xED | Chi ph\xED",no_expenses:"Ch\u01B0a c\xF3 chi ph\xED!",list_of_expenses:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c chi ph\xED.",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 thu h\u1ED3i Kho\u1EA3n chi ph\xED n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 thu h\u1ED3i c\xE1c Kho\u1EA3n chi ph\xED n\xE0y",created_message:"\u0110\xE3 t\u1EA1o th\xE0nh c\xF4ng chi ph\xED",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt chi ph\xED th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a th\xE0nh c\xF4ng chi ph\xED | \u0110\xE3 x\xF3a th\xE0nh c\xF4ng chi ph\xED",categories:{categories_list:"Danh s\xE1ch h\u1EA1ng m\u1EE5c",title:"Ti\xEAu \u0111\u1EC1",name:"T\xEAn",description:"Mi\xEAu t\u1EA3",amount:"S\u1ED1 ti\u1EC1n",actions:"H\xE0nh \u0111\u1ED9ng",add_category:"th\xEAm th\xEA\u0309 loa\u0323i",new_category:"Danh m\u1EE5c m\u1EDBi",category:"Th\u1EC3 lo\u1EA1i | Th\u1EC3 lo\u1EA1i",select_a_category:"Ch\u1ECDn m\u1ED9t danh m\u1EE5c"}},Fy={email:"E-mail",password:"M\u1EADt kh\u1EA9u",forgot_password:"Qu\xEAn m\u1EADt kh\u1EA9u?",or_signIn_with:"ho\u1EB7c \u0110\u0103ng nh\u1EADp b\u1EB1ng",login:"\u0110\u0103ng nh\u1EADp",register:"\u0110\u0103ng k\xFD",reset_password:"\u0110\u1EB7t l\u1EA1i m\u1EADt kh\u1EA9u",password_reset_successfully:"\u0110\u1EB7t l\u1EA1i m\u1EADt kh\u1EA9u th\xE0nh c\xF4ng",enter_email:"Nh\u1EADp email",enter_password:"Nh\u1EADp m\u1EADt kh\u1EA9u",retype_password:"G\xF5 l\u1EA1i m\u1EADt kh\u1EA9u"},My={title:"Ng\u01B0\u1EDDi d\xF9ng",users_list:"Danh s\xE1ch ng\u01B0\u1EDDi d\xF9ng",name:"T\xEAn",description:"Mi\xEAu t\u1EA3",added_on:"\u0110\xE3 th\xEAm v\xE0o",date_of_creation:"Ng\xE0y t\u1EA1o",action:"Ho\u1EA1t \u0111\u1ED9ng",add_user:"Th\xEAm ng\u01B0\u1EDDi d\xF9ng",save_user:"L\u01B0u ng\u01B0\u1EDDi d\xF9ng",update_user:"C\u1EADp nh\u1EADt ng\u01B0\u1EDDi d\xF9ng",user:"Ng\u01B0\u1EDDi d\xF9ng | Ng\u01B0\u1EDDi d\xF9ng",add_new_user:"Th\xEAm ng\u01B0\u1EDDi d\xF9ng m\u1EDBi",new_user:"Ng\u01B0\u1EDDi d\xF9ng m\u1EDBi",edit_user:"Ch\u1EC9nh s\u1EEDa g\u01B0\u1EDDi d\xF9ng",no_users:"Ch\u01B0a c\xF3 ng\u01B0\u1EDDi d\xF9ng n\xE0o!",list_of_users:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch ng\u01B0\u1EDDi d\xF9ng.",email:"E-mail",phone:"\u0110i\u1EC7n tho\u1EA1i",password:"M\u1EADt kh\u1EA9u",user_attached_message:"Kh\xF4ng th\u1EC3 x\xF3a m\u1ED9t m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Ng\u01B0\u1EDDi d\xF9ng n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c nh\u1EEFng Ng\u01B0\u1EDDi d\xF9ng n\xE0y",created_message:"Ng\u01B0\u1EDDi d\xF9ng \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt ng\u01B0\u1EDDi d\xF9ng th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a ng\u01B0\u1EDDi d\xF9ng th\xE0nh c\xF4ng | \u0110\xE3 x\xF3a ng\u01B0\u1EDDi d\xF9ng th\xE0nh c\xF4ng"},Vy={title:"B\xE1o c\xE1o",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",status:"Tr\u1EA1ng th\xE1i",paid:"\u0110\xE3 thanh to\xE1n",unpaid:"Ch\u01B0a thanh to\xE1n",download_pdf:"T\u1EA3i PDF",view_pdf:"Xem PDF",update_report:"C\u1EADp nh\u1EADt b\xE1o c\xE1o",report:"B\xE1o c\xE1o | B\xE1o c\xE1o",profit_loss:{profit_loss:"L\u1EE3i nhu\u1EADn",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"},sales:{sales:"B\xE1n h\xE0ng",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",report_type:"Lo\u1EA1i b\xE1o c\xE1o"},taxes:{taxes:"Thu\u1EBF",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"},errors:{required:"L\u0129nh v\u1EF1c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u"},invoices:{invoice:"H\xF3a \u0111\u01A1n",invoice_date:"Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",amount:"S\u1ED1 ti\u1EC1n",contact_name:"T\xEAn Li\xEAn l\u1EA1c",status:"Tr\u1EA1ng th\xE1i"},estimates:{estimate:"\u01AF\u1EDBc t\xEDnh",estimate_date:"Ng\xE0y \u01B0\u1EDBc t\xEDnh",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",estimate_number:"S\u1ED1 \u01B0\u1EDBc t\xEDnh",ref_number:"S\u1ED1 REF",amount:"S\u1ED1 ti\u1EC1n",contact_name:"T\xEAn Li\xEAn l\u1EA1c",status:"Tr\u1EA1ng th\xE1i"},expenses:{expenses:"Chi ph\xED",category:"th\u1EC3 lo\u1EA1i",date:"Ng\xE0y",amount:"S\u1ED1 ti\u1EC1n",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"}},By={menu_title:{account_settings:"C\xE0i \u0111\u1EB7t t\xE0i kho\u1EA3n",company_information:"Th\xF4ng tin c\xF4ng ty",customization:"T\xF9y bi\u1EBFn",preferences:"S\u1EDF th\xEDch",notifications:"Th\xF4ng b\xE1o",tax_types:"C\xE1c lo\u1EA1i thu\u1EBF",expense_category:"H\u1EA1ng m\u1EE5c Chi ph\xED",update_app:"C\u1EADp nh\u1EADt \u1EE9ng d\u1EE5ng",backup:"Sao l\u01B0u",file_disk:"\u0110\u0129a t\u1EC7p",custom_fields:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",payment_modes:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",notes:"Ghi ch\xFA"},title:"C\xE0i \u0111\u1EB7t",setting:"C\xE0i \u0111\u1EB7t | C\xE0i \u0111\u1EB7t",general:"Chung",language:"Ng\xF4n ng\u1EEF",primary_currency:"Ti\u1EC1n t\u1EC7 ch\xEDnh",timezone:"M\xFAi gi\u1EDD",date_format:"\u0110\u1ECBnh d\u1EA1ng ng\xE0y th\xE1ng",currencies:{title:"Ti\u1EC1n t\u1EC7",currency:"Ti\u1EC1n t\u1EC7 | Ti\u1EC1n t\u1EC7",currencies_list:"Danh s\xE1ch ti\u1EC1n t\u1EC7",select_currency:"Ch\u1ECDn ti\u1EC1n t\u1EC7",name:"T\xEAn",code:"M\xE3",symbol:"Bi\u1EC3u t\u01B0\u1EE3ng",precision:"\u0110\u1ED9 ch\xEDnh x\xE1c",thousand_separator:"H\xE0ng ng\xE0n m\xE1y t\xE1ch",decimal_separator:"Ph\xE2n s\u1ED1 th\u1EADp ph\xE2n",position:"Ch\u1EE9c v\u1EE5",position_of_symbol:"V\u1ECB tr\xED c\u1EE7a bi\u1EC3u t\u01B0\u1EE3ng",right:"\u0110\xFAng",left:"Tr\xE1i",action:"Ho\u1EA1t \u0111\u1ED9ng",add_currency:"Th\xEAm ti\u1EC1n t\u1EC7"},mail:{host:"M\xE1y ch\u1EE7 Th\u01B0",port:"C\u1ED5ng th\u01B0",driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n Th\u01B0",secret:"Kh\xF3a",mailgun_secret:"Kh\xF3a Mailgun",mailgun_domain:"Mi\u1EC1n",mailgun_endpoint:"\u0110i\u1EC3m cu\u1ED1i c\u1EE7a Mailgun",ses_secret:"Kh\xF3a SES",ses_key:"Kh\xF3a SES",password:"M\u1EADt kh\u1EA9u th\u01B0",username:"T\xEAn ng\u01B0\u1EDDi d\xF9ng th\u01B0",mail_config:"C\u1EA5u h\xECnh th\u01B0",from_name:"T\u1EEB t\xEAn th\u01B0",from_mail:"T\u1EEB \u0111\u1ECBa ch\u1EC9 th\u01B0",encryption:"M\xE3 h\xF3a Th\u01B0",mail_config_desc:"D\u01B0\u1EDBi \u0111\xE2y l\xE0 bi\u1EC3u m\u1EABu \u0110\u1ECBnh c\u1EA5u h\xECnh tr\xECnh \u0111i\u1EC1u khi\u1EC3n Email \u0111\u1EC3 g\u1EEDi email t\u1EEB \u1EE9ng d\u1EE5ng. B\u1EA1n c\u0169ng c\xF3 th\u1EC3 \u0111\u1ECBnh c\u1EA5u h\xECnh c\xE1c nh\xE0 cung c\u1EA5p b\xEAn th\u1EE9 ba nh\u01B0 Sendgrid, SES, v.v."},pdf:{title:"C\xE0i \u0111\u1EB7t PDF",footer_text:"V\u0103n b\u1EA3n ch\xE2n trang",pdf_layout:"B\u1ED1 c\u1EE5c PDF"},company_info:{company_info:"Th\xF4ng tin c\xF4ng ty",company_name:"T\xEAn c\xF4ng ty",company_logo:"Logo c\xF4ng ty",section_description:"Th\xF4ng tin v\u1EC1 c\xF4ng ty c\u1EE7a b\u1EA1n s\u1EBD \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB tr\xEAn h\xF3a \u0111\u01A1n, \u01B0\u1EDBc t\xEDnh v\xE0 c\xE1c t\xE0i li\u1EC7u kh\xE1c do Crater t\u1EA1o.",phone:"\u0110i\u1EC7n tho\u1EA1i",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",address:"\u0110\u1ECBa ch\u1EC9",zip:"Zip",save:"L\u01B0u",updated_message:"Th\xF4ng tin c\xF4ng ty \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt th\xE0nh c\xF4ng"},custom_fields:{title:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",section_description:"T\xF9y ch\u1EC9nh h\xF3a \u0111\u01A1n, \u01B0\u1EDBc t\xEDnh c\u1EE7a b\u1EA1n",add_custom_field:"Th\xEAm tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",edit_custom_field:"Ch\u1EC9nh s\u1EEDa tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",field_name:"T\xEAn tr\u01B0\u1EDDng",label:"Nh\xE3n",type:"Ki\u1EC3u",name:"T\xEAn",required:"C\u1EA7n thi\u1EBFt",placeholder:"Tr\xECnh gi\u1EEF ch\u1ED7",help_text:"V\u0103n b\u1EA3n tr\u1EE3 gi\xFAp",default_value:"Gi\xE1 tr\u1ECB m\u1EB7c \u0111\u1ECBnh",prefix:"Ti\u1EBFp \u0111\u1EA7u ng\u1EEF",starting_number:"S\u1ED1 b\u1EAFt \u0111\u1EA7u",model:"M\xF4 h\xECnh",help_text_description:"Nh\u1EADp m\u1ED9t s\u1ED1 v\u0103n b\u1EA3n \u0111\u1EC3 gi\xFAp ng\u01B0\u1EDDi d\xF9ng hi\u1EC3u m\u1EE5c \u0111\xEDch c\u1EE7a tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh n\xE0y.",suffix:"H\u1EADu t\u1ED1",yes:"\u0110\xFAng",no:"Kh\xF4ng",order:"\u0110\u1EB7t h\xE0ng",custom_field_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh n\xE0y",already_in_use:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"Tr\u01B0\u1EDDng T\xF9y ch\u1EC9nh \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",options:"c\xE1c t\xF9y ch\u1ECDn",add_option:"Th\xEAm t\xF9y ch\u1ECDn",add_another_option:"Th\xEAm m\u1ED9t t\xF9y ch\u1ECDn kh\xE1c",sort_in_alphabetical_order:"S\u1EAFp x\u1EBFp theo th\u1EE9 t\u1EF1 b\u1EA3ng ch\u1EEF c\xE1i",add_options_in_bulk:"Th\xEAm h\xE0ng lo\u1EA1t t\xF9y ch\u1ECDn",use_predefined_options:"S\u1EED d\u1EE5ng c\xE1c t\xF9y ch\u1ECDn \u0111\u01B0\u1EE3c x\xE1c \u0111\u1ECBnh tr\u01B0\u1EDBc",select_custom_date:"Ch\u1ECDn ng\xE0y t\xF9y ch\u1EC9nh",select_relative_date:"Ch\u1ECDn ng\xE0y t\u01B0\u01A1ng \u0111\u1ED1i",ticked_by_default:"\u0110\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u theo m\u1EB7c \u0111\u1ECBnh",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh th\xE0nh c\xF4ng",added_message:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh \u0111\xE3 \u0111\u01B0\u1EE3c th\xEAm th\xE0nh c\xF4ng"},customization:{customization:"s\u1EF1 t\xF9y bi\u1EBFn",save:"Ti\u1EBFt ki\u1EC7m",addresses:{title:"\u0110\u1ECBa ch\u1EC9",section_description:"B\u1EA1n c\xF3 th\u1EC3 \u0111\u1EB7t \u0110\u1ECBnh d\u1EA1ng \u0110\u1ECBa ch\u1EC9 Thanh to\xE1n c\u1EE7a Kh\xE1ch h\xE0ng v\xE0 \u0110\u1ECBa ch\u1EC9 Giao h\xE0ng c\u1EE7a Kh\xE1ch h\xE0ng (Ch\u1EC9 hi\u1EC3n th\u1ECB d\u01B0\u1EDBi d\u1EA1ng PDF).",customer_billing_address:"\u0110\u1ECBa ch\u1EC9 thanh to\xE1n c\u1EE7a kh\xE1ch h\xE0ng",customer_shipping_address:"\u0110\u1ECBa ch\u1EC9 giao h\xE0ng c\u1EE7a kh\xE1ch h\xE0ng",company_address:"\u0111\u1ECBa ch\u1EC9 c\xF4ng ty",insert_fields:"Ch\xE8n tr\u01B0\u1EDDng",contact:"Li\xEAn h\u1EC7",address:"\u0110\u1ECBa ch\u1EC9",display_name:"T\xEAn hi\u1EC3n th\u1ECB",primary_contact_name:"T\xEAn li\xEAn h\u1EC7 ch\xEDnh",email:"E-mail",website:"Website",name:"T\xEAn",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",company_name:"T\xEAn c\xF4ng ty",address_street_1:"\u0110\u1ECBa ch\u1EC9 \u0110\u01B0\u1EDDng 1",address_street_2:"\u0110\u1ECBa ch\u1EC9 \u0110\u01B0\u1EDDng 2",phone:"\u0110i\u1EC7n tho\u1EA1i",zip_code:"M\xE3 B\u01B0u Ch\xEDnh",address_setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t \u0111\u1ECBa ch\u1EC9 th\xE0nh c\xF4ng"},updated_message:"Th\xF4ng tin c\xF4ng ty \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt th\xE0nh c\xF4ng",invoices:{title:"H\xF3a \u0111\u01A1n",notes:"Ghi ch\xFA",invoice_prefix:"Ti\u1EC1n t\u1ED1 h\xF3a \u0111\u01A1n",default_invoice_email_body:"N\u1ED9i dung email h\xF3a \u0111\u01A1n m\u1EB7c \u0111\u1ECBnh",invoice_settings:"C\xE0i \u0111\u1EB7t h\xF3a \u0111\u01A1n",autogenerate_invoice_number:"T\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 h\xF3a \u0111\u01A1n",autogenerate_invoice_number_desc:"T\u1EAFt t\xEDnh n\u0103ng n\xE0y, N\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n t\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 h\xF3a \u0111\u01A1n m\u1ED7i khi b\u1EA1n t\u1EA1o h\xF3a \u0111\u01A1n m\u1EDBi.",invoice_email_attachment:"G\u1EEDi h\xF3a \u0111\u01A1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m",invoice_email_attachment_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n g\u1EEDi h\xF3a \u0111\u01A1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m email. Xin l\u01B0u \xFD r\u1EB1ng n\xFAt &#39;Xem H\xF3a \u0111\u01A1n&#39; trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",enter_invoice_prefix:"Nh\u1EADp ti\u1EC1n t\u1ED1 h\xF3a \u0111\u01A1n",terms_and_conditions:"C\xE1c \u0111i\u1EC1u kho\u1EA3n v\xE0 \u0111i\u1EC1u ki\u1EC7n",company_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 c\xF4ng ty",shipping_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 giao h\xE0ng",billing_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 thanh to\xE1n",invoice_settings_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t h\xF3a \u0111\u01A1n th\xE0nh c\xF4ng"},estimates:{title:"\u01AF\u1EDBc t\xEDnh",estimate_prefix:"Ti\u1EC1n t\u1ED1 \u01B0\u1EDBc t\xEDnh",default_estimate_email_body:"N\u1ED9i dung Email \u01AF\u1EDBc t\xEDnh M\u1EB7c \u0111\u1ECBnh",estimate_settings:"C\xE0i \u0111\u1EB7t \u01B0\u1EDBc t\xEDnh",autogenerate_estimate_number:"T\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 \u01B0\u1EDBc t\xEDnh",estimate_setting_description:"T\u1EAFt t\xEDnh n\u0103ng n\xE0y, n\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n t\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 \u01B0\u1EDBc t\xEDnh m\u1ED7i khi b\u1EA1n t\u1EA1o \u01B0\u1EDBc t\xEDnh m\u1EDBi.",estimate_email_attachment:"G\u1EEDi \u01B0\u1EDBc t\xEDnh d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m",estimate_email_attachment_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n g\u1EEDi \u01B0\u1EDBc t\xEDnh d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m email. Xin l\u01B0u \xFD r\u1EB1ng n\xFAt &#39;Xem \u01AF\u1EDBc t\xEDnh&#39; trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",enter_estimate_prefix:"Nh\u1EADp ti\u1EC1n t\u1ED1 estmiate",estimate_setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng",company_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 c\xF4ng ty",billing_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 thanh to\xE1n",shipping_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 giao h\xE0ng"},payments:{title:"Thanh to\xE1n",description:"C\xE1c ph\u01B0\u01A1ng th\u1EE9c giao d\u1ECBch thanh to\xE1n",payment_prefix:"Ti\u1EC1n t\u1ED1 thanh to\xE1n",default_payment_email_body:"N\u1ED9i dung Email Thanh to\xE1n M\u1EB7c \u0111\u1ECBnh",payment_settings:"C\xE0i \u0111\u1EB7t thanh to\xE1n",autogenerate_payment_number:"T\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 thanh to\xE1n",payment_setting_description:"T\u1EAFt t\xEDnh n\u0103ng n\xE0y, n\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n t\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 thanh to\xE1n m\u1ED7i khi b\u1EA1n t\u1EA1o m\u1ED9t kho\u1EA3n thanh to\xE1n m\u1EDBi.",payment_email_attachment:"G\u1EEDi thanh to\xE1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m",payment_email_attachment_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n g\u1EEDi bi\xEAn nh\u1EADn thanh to\xE1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m email. Xin l\u01B0u \xFD r\u1EB1ng n\xFAt &#39;Xem Thanh to\xE1n&#39; trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",enter_payment_prefix:"Nh\u1EADp ti\u1EC1n t\u1ED1 thanh to\xE1n",payment_setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t thanh to\xE1n th\xE0nh c\xF4ng",payment_modes:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",add_payment_mode:"Th\xEAm ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",edit_payment_mode:"Ch\u1EC9nh s\u1EEDa Ph\u01B0\u01A1ng th\u1EE9c Thanh to\xE1n",mode_name:"T\xEAn ch\u1EBF \u0111\u1ED9",payment_mode_added:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c th\xEAm",payment_mode_updated:"\u0110\xE3 c\u1EADp nh\u1EADt ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",payment_mode_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n n\xE0y",already_in_use:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",company_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 c\xF4ng ty",from_customer_address_format:"T\u1EEB \u0111\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 kh\xE1ch h\xE0ng"},items:{title:"M\u1EB7t h\xE0ng",units:"C\xE1c \u0111\u01A1n v\u1ECB",add_item_unit:"Th\xEAm \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng",edit_item_unit:"Ch\u1EC9nh s\u1EEDa \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng",unit_name:"T\xEAn b\xE0i",item_unit_added:"\u0110\u01A1n v\u1ECB m\u1EB7t h\xE0ng \u0111\xE3 \u0111\u01B0\u1EE3c th\xEAm",item_unit_updated:"\u0110\xE3 c\u1EADp nh\u1EADt \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng",item_unit_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c \u0111\u01A1n v\u1ECB M\u1EB7t h\xE0ng n\xE0y",already_in_use:"\u0110\u01A1n v\u1ECB v\u1EADt ph\u1EA9m \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"\u0110\u01A1n v\u1ECB m\u1EB7t h\xE0ng \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng"},notes:{title:"Ghi ch\xFA",description:"Ti\u1EBFt ki\u1EC7m th\u1EDDi gian b\u1EB1ng c\xE1ch t\u1EA1o ghi ch\xFA v\xE0 s\u1EED d\u1EE5ng l\u1EA1i ch\xFAng tr\xEAn h\xF3a \u0111\u01A1n, \u01B0\u1EDBc t\xEDnh c\u1EE7a b\u1EA1n",notes:"Ghi ch\xFA",type:"Ki\u1EC3u",add_note:"Th\xEAm ghi ch\xFA",add_new_note:"Th\xEAm ghi ch\xFA m\u1EDBi",name:"T\xEAn",edit_note:"Ch\u1EC9nh s\u1EEDa ghi ch\xFA",note_added:"\u0110\xE3 th\xEAm ghi ch\xFA th\xE0nh c\xF4ng",note_updated:"\u0110\xE3 c\u1EADp nh\u1EADt ghi ch\xFA th\xE0nh c\xF4ng",note_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Ghi ch\xFA n\xE0y",already_in_use:"Ghi ch\xFA \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"\u0110\xE3 x\xF3a ghi ch\xFA th\xE0nh c\xF4ng"}},account_settings:{profile_picture:"\u1EA2nh \u0111\u1EA1i di\u1EC7n",name:"T\xEAn",email:"E-mail",password:"M\u1EADt kh\u1EA9u",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u",account_settings:"C\xE0i \u0111\u1EB7t t\xE0i kho\u1EA3n",save:"L\u01B0u",section_description:"B\u1EA1n c\xF3 th\u1EC3 c\u1EADp nh\u1EADt t\xEAn, email c\u1EE7a m\xECnh",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t t\xE0i kho\u1EA3n th\xE0nh c\xF4ng"},user_profile:{name:"T\xEAn",email:"E-mail",password:"M\u1EADt kh\u1EA9u",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u"},notification:{title:"Th\xF4ng b\xE1o",email:"G\u1EEDi th\xF4ng b\xE1o t\u1EDBi",description:"B\u1EA1n mu\u1ED1n nh\u1EADn th\xF4ng b\xE1o email n\xE0o khi c\xF3 \u0111i\u1EC1u g\xEC \u0111\xF3 thay \u0111\u1ED5i?",invoice_viewed:"H\xF3a \u0111\u01A1n \u0111\xE3 xem",invoice_viewed_desc:"Khi kh\xE1ch h\xE0ng c\u1EE7a b\u1EA1n xem h\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c g\u1EEDi qua b\u1EA3ng \u0111i\u1EC1u khi\u1EC3n mi\u1EC7ng n\xFAi l\u1EEDa.",estimate_viewed:"\u01AF\u1EDBc t\xEDnh \u0111\xE3 xem",estimate_viewed_desc:"Khi kh\xE1ch h\xE0ng c\u1EE7a b\u1EA1n xem \u01B0\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c g\u1EEDi qua b\u1EA3ng \u0111i\u1EC1u khi\u1EC3n mi\u1EC7ng n\xFAi l\u1EEDa.",save:"L\u01B0u",email_save_message:"Email \u0111\xE3 \u0111\u01B0\u1EE3c l\u01B0u th\xE0nh c\xF4ng",please_enter_email:"Vui l\xF2ng nh\u1EADp Email"},tax_types:{title:"C\xE1c lo\u1EA1i thu\u1EBF",add_tax:"Th\xEAm thu\u1EBF",edit_tax:"Ch\u1EC9nh s\u1EEDa thu\u1EBF",description:"B\u1EA1n c\xF3 th\u1EC3 th\xEAm ho\u1EB7c b\u1EDBt thu\u1EBF t\xF9y \xFD. Crater h\u1ED7 tr\u1EE3 Thu\u1EBF \u0111\u1ED1i v\u1EDBi c\xE1c m\u1EB7t h\xE0ng ri\xEAng l\u1EBB c\u0169ng nh\u01B0 tr\xEAn h\xF3a \u0111\u01A1n.",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",tax_settings:"C\xE0i \u0111\u1EB7t thu\u1EBF",tax_per_item:"Thu\u1EBF m\u1ED7i m\u1EB7t h\xE0ng",tax_name:"T\xEAn thu\u1EBF",compound_tax:"Thu\u1EBF t\u1ED5ng h\u1EE3p",percent:"Ph\u1EA7n tr\u0103m",action:"Ho\u1EA1t \u0111\u1ED9ng",tax_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n th\xEAm thu\u1EBF v\xE0o c\xE1c m\u1EE5c h\xF3a \u0111\u01A1n ri\xEAng l\u1EBB. Theo m\u1EB7c \u0111\u1ECBnh, thu\u1EBF \u0111\u01B0\u1EE3c th\xEAm tr\u1EF1c ti\u1EBFp v\xE0o h\xF3a \u0111\u01A1n.",created_message:"Lo\u1EA1i thu\u1EBF \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt th\xE0nh c\xF4ng lo\u1EA1i thu\u1EBF",deleted_message:"\u0110\xE3 x\xF3a th\xE0nh c\xF4ng lo\u1EA1i thu\u1EBF",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Lo\u1EA1i thu\u1EBF n\xE0y",already_in_use:"Thu\u1EBF \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng"},expense_category:{title:"H\u1EA1ng m\u1EE5c Chi ph\xED",action:"Ho\u1EA1t \u0111\u1ED9ng",description:"C\xE1c danh m\u1EE5c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u \u0111\u1EC3 th\xEAm c\xE1c m\u1EE5c chi ph\xED. B\u1EA1n c\xF3 th\u1EC3 Th\xEAm ho\u1EB7c X\xF3a c\xE1c danh m\u1EE5c n\xE0y t\xF9y theo s\u1EDF th\xEDch c\u1EE7a m\xECnh.",add_new_category:"Th\xEAm danh m\u1EE5c m\u1EDBi",add_category:"th\xEAm th\xEA\u0309 loa\u0323i",edit_category:"Ch\u1EC9nh s\u1EEDa danh m\u1EE5c",category_name:"t\xEAn danh m\u1EE5c",category_description:"Mi\xEAu t\u1EA3",created_message:"Danh m\u1EE5c Chi ph\xED \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a th\xE0nh c\xF4ng danh m\u1EE5c chi ph\xED",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt danh m\u1EE5c chi ph\xED th\xE0nh c\xF4ng",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Danh m\u1EE5c Chi ph\xED n\xE0y",already_in_use:"Danh m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng"},preferences:{currency:"Ti\u1EC1n t\u1EC7",default_language:"Ng\xF4n ng\u1EEF m\u1EB7c \u0111\u1ECBnh",time_zone:"M\xFAi gi\u1EDD",fiscal_year:"N\u0103m t\xE0i ch\xEDnh",date_format:"\u0110\u1ECBnh d\u1EA1ng ng\xE0y th\xE1ng",discount_setting:"C\xE0i \u0111\u1EB7t chi\u1EBFt kh\u1EA5u",discount_per_item:"Gi\u1EA3m gi\xE1 cho m\u1ED7i m\u1EB7t h\xE0ng",discount_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n th\xEAm Gi\u1EA3m gi\xE1 v\xE0o c\xE1c m\u1EB7t h\xE0ng h\xF3a \u0111\u01A1n ri\xEAng l\u1EBB. Theo m\u1EB7c \u0111\u1ECBnh, Gi\u1EA3m gi\xE1 \u0111\u01B0\u1EE3c th\xEAm tr\u1EF1c ti\u1EBFp v\xE0o h\xF3a \u0111\u01A1n.",save:"L\u01B0u",preference:"S\u1EDF th\xEDch | S\u1EDF th\xEDch",general_settings:"T\xF9y ch\u1ECDn m\u1EB7c \u0111\u1ECBnh cho h\u1EC7 th\u1ED1ng.",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt th\xE0nh c\xF4ng c\xE1c t\xF9y ch\u1ECDn",select_language:"Ch\u1ECDn ng\xF4n ng\u1EEF",select_time_zone:"Ch\u1ECDn m\xFAi gi\u1EDD",select_date_format:"Ch\u1ECDn \u0111\u1ECBnh d\u1EA1ng ng\xE0y",select_financial_year:"Ch\u1ECDn n\u0103m t\xE0i ch\xEDnh"},update_app:{title:"C\u1EADp nh\u1EADt \u1EE9ng d\u1EE5ng",description:"B\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng c\u1EADp nh\u1EADt Crater b\u1EB1ng c\xE1ch ki\u1EC3m tra b\u1EA3n c\u1EADp nh\u1EADt m\u1EDBi b\u1EB1ng c\xE1ch nh\u1EA5p v\xE0o n\xFAt b\xEAn d\u01B0\u1EDBi",check_update:"Ki\u1EC3m tra c\u1EADp nh\u1EADt",avail_update:"C\u1EADp nh\u1EADt m\u1EDBi c\xF3 s\u1EB5n",next_version:"Phi\xEAn b\u1EA3n ti\u1EBFp theo",requirements:"Y\xEAu c\u1EA7u",update:"C\u1EADp nh\u1EADt b\xE2y gi\u1EDD",update_progress:"\u0110ang c\u1EADp nh\u1EADt ...",progress_text:"N\xF3 s\u1EBD ch\u1EC9 m\u1EA5t m\u1ED9t v\xE0i ph\xFAt. Vui l\xF2ng kh\xF4ng l\xE0m m\u1EDBi m\xE0n h\xECnh ho\u1EB7c \u0111\xF3ng c\u1EEDa s\u1ED5 tr\u01B0\u1EDBc khi c\u1EADp nh\u1EADt k\u1EBFt th\xFAc",update_success:"\u1EE8ng d\u1EE5ng \u0111\xE3 \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt! Vui l\xF2ng \u0111\u1EE3i trong khi c\u1EEDa s\u1ED5 tr\xECnh duy\u1EC7t c\u1EE7a b\u1EA1n \u0111\u01B0\u1EE3c t\u1EA3i l\u1EA1i t\u1EF1 \u0111\u1ED9ng.",latest_message:"Kh\xF4ng c\xF3 b\u1EA3n c\u1EADp nh\u1EADt n\xE0o! B\u1EA1n \u0111ang s\u1EED d\u1EE5ng phi\xEAn b\u1EA3n m\u1EDBi nh\u1EA5t.",current_version:"Phi\xEAn b\u1EA3n hi\u1EC7n t\u1EA1i",download_zip_file:"T\u1EA3i xu\u1ED1ng t\u1EC7p ZIP",unzipping_package:"G\xF3i gi\u1EA3i n\xE9n",copying_files:"Sao ch\xE9p c\xE1c t\u1EADp tin",deleting_files:"X\xF3a c\xE1c t\u1EC7p kh\xF4ng s\u1EED d\u1EE5ng",running_migrations:"Ch\u1EA1y di c\u01B0",finishing_update:"C\u1EADp nh\u1EADt k\u1EBFt th\xFAc",update_failed:"C\u1EADp nh\u1EADt kh\xF4ng th\xE0nh c\xF4ng",update_failed_text:"L\u1EA5y l\xE0m ti\u1EBFc! C\u1EADp nh\u1EADt c\u1EE7a b\u1EA1n kh\xF4ng th\xE0nh c\xF4ng v\xE0o: b\u01B0\u1EDBc {step}"},backup:{title:"Sao l\u01B0u | Sao l\u01B0u",description:"B\u1EA3n sao l\u01B0u l\xE0 m\u1ED9t t\u1EC7p zip ch\u1EE9a t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p trong th\u01B0 m\u1EE5c b\u1EA1n ch\u1EC9 \u0111\u1ECBnh c\xF9ng v\u1EDBi m\u1ED9t k\u1EBFt xu\u1EA5t c\u01A1 s\u1EDF d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n",new_backup:"Th\xEAm b\u1EA3n sao l\u01B0u m\u1EDBi",create_backup:"T\u1EA1o b\u1EA3n sao",select_backup_type:"Ch\u1ECDn lo\u1EA1i sao l\u01B0u",backup_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c B\u1EA3n sao l\u01B0u n\xE0y",path:"con \u0111\u01B0\u1EDDng",new_disk:"\u0110\u0129a m\u1EDBi",created_at:"\u0111\u01B0\u1EE3c t\u1EA1o ra t\u1EA1i",size:"k\xEDch th\u01B0\u1EDBc",dropbox:"dropbox",local:"\u0111\u1ECBa ph\u01B0\u01A1ng",healthy:"kh\u1ECFe m\u1EA1nh",amount_of_backups:"l\u01B0\u1EE3ng sao l\u01B0u",newest_backups:"b\u1EA3n sao l\u01B0u m\u1EDBi nh\u1EA5t",used_storage:"l\u01B0u tr\u1EEF \u0111\xE3 s\u1EED d\u1EE5ng",select_disk:"Ch\u1ECDn \u0111\u0129a",action:"Ho\u1EA1t \u0111\u1ED9ng",deleted_message:"\u0110\xE3 x\xF3a b\u1EA3n sao l\u01B0u th\xE0nh c\xF4ng",created_message:"\u0110\xE3 t\u1EA1o th\xE0nh c\xF4ng b\u1EA3n sao l\u01B0u",invalid_disk_credentials:"Th\xF4ng tin \u0111\u0103ng nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7 c\u1EE7a \u0111\u0129a \u0111\xE3 ch\u1ECDn"},disk:{title:"\u0110\u0129a t\u1EADp tin | \u0110\u0129a T\u1EC7p",description:"Theo m\u1EB7c \u0111\u1ECBnh, Crater s\u1EBD s\u1EED d\u1EE5ng \u0111\u0129a c\u1EE5c b\u1ED9 c\u1EE7a b\u1EA1n \u0111\u1EC3 l\u01B0u c\xE1c b\u1EA3n sao l\u01B0u, \u1EA3nh \u0111\u1EA1i di\u1EC7n v\xE0 c\xE1c t\u1EC7p h\xECnh \u1EA3nh kh\xE1c. B\u1EA1n c\xF3 th\u1EC3 \u0111\u1ECBnh c\u1EA5u h\xECnh nhi\u1EC1u h\u01A1n m\u1ED9t tr\xECnh \u0111i\u1EC1u khi\u1EC3n \u0111\u0129a nh\u01B0 DigitalOcean, S3 v\xE0 Dropbox theo s\u1EDF th\xEDch c\u1EE7a m\xECnh.",created_at:"\u0111\u01B0\u1EE3c t\u1EA1o ra t\u1EA1i",dropbox:"dropbox",name:"T\xEAn",driver:"Ng\u01B0\u1EDDi l\xE1i xe",disk_type:"Ki\u1EC3u",disk_name:"T\xEAn \u0111\u0129a",new_disk:"Th\xEAm \u0111\u0129a m\u1EDBi",filesystem_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n h\u1EC7 th\u1ED1ng t\u1EADp tin",local_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n \u0111\u1ECBa ph\u01B0\u01A1ng",local_root:"G\u1ED1c c\u1EE5c b\u1ED9",public_driver:"T\xE0i x\u1EBF c\xF4ng c\u1ED9ng",public_root:"G\u1ED1c c\xF4ng khai",public_url:"URL c\xF4ng khai",public_visibility:"Hi\u1EC3n th\u1ECB c\xF4ng khai",media_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n ph\u01B0\u01A1ng ti\u1EC7n",media_root:"G\u1ED1c ph\u01B0\u01A1ng ti\u1EC7n",aws_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n AWS",aws_key:"Kh\xF3a AWS",aws_secret:"Kh\xF3a AWS",aws_region:"Khu v\u1EF1c AWS",aws_bucket:"Nh\xF3m AWS",aws_root:"G\u1ED1c AWS",do_spaces_type:"L\xE0m ki\u1EC3u Spaces",do_spaces_key:"Do ph\xEDm Spaces",do_spaces_secret:"L\xE0m b\xED m\u1EADt v\u1EC1 kh\xF4ng gian",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Lo\u1EA1i h\u1ED9p ch\u1EE9a",dropbox_token:"M\xE3 th\xF4ng b\xE1o Dropbox",dropbox_key:"Kh\xF3a Dropbox",dropbox_secret:"Kh\xF3a Dropbox",dropbox_app:"\u1EE8ng d\u1EE5ng Dropbox",dropbox_root:"G\u1ED1c Dropbox",default_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n m\u1EB7c \u0111\u1ECBnh",is_default:"L\xC0 \u0110\u1ECANH NGH\u0128A",set_default_disk:"\u0110\u1EB7t \u0111\u0129a m\u1EB7c \u0111\u1ECBnh",set_default_disk_confirm:"\u0110\u0129a n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\u1EB7t l\xE0m m\u1EB7c \u0111\u1ECBnh v\xE0 t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p PDF m\u1EDBi s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u tr\xEAn \u0111\u0129a n\xE0y",success_set_default_disk:"\u0110\u0129a \u0111\u01B0\u1EE3c \u0111\u1EB7t l\xE0m m\u1EB7c \u0111\u1ECBnh th\xE0nh c\xF4ng",save_pdf_to_disk:"L\u01B0u PDF v\xE0o \u0111\u0129a",disk_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y, n\u1EBFu b\u1EA1n mu\u1ED1n l\u01B0u m\u1ED9t b\u1EA3n sao c\u1EE7a m\u1ED7i H\xF3a \u0111\u01A1n, \u01AF\u1EDBc t\xEDnh",select_disk:"Ch\u1ECDn \u0111\u0129a",disk_settings:"C\xE0i \u0111\u1EB7t \u0111\u0129a",confirm_delete:"T\u1EC7p hi\u1EC7n c\xF3 c\u1EE7a b\u1EA1n",action:"Ho\u1EA1t \u0111\u1ED9ng",edit_file_disk:"Ch\u1EC9nh s\u1EEDa \u0110\u0129a T\u1EC7p",success_create:"\u0110\xE3 th\xEAm \u0111\u0129a th\xE0nh c\xF4ng",success_update:"\u0110\xE3 c\u1EADp nh\u1EADt \u0111\u0129a th\xE0nh c\xF4ng",error:"Th\xEAm \u0111\u0129a kh\xF4ng th\xE0nh c\xF4ng",deleted_message:"\u0110\u0129a T\u1EC7p \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",disk_variables_save_successfully:"\u0110\xE3 c\u1EA5u h\xECnh \u0111\u0129a th\xE0nh c\xF4ng",disk_variables_save_error:"C\u1EA5u h\xECnh \u0111\u0129a kh\xF4ng th\xE0nh c\xF4ng.",invalid_disk_credentials:"Th\xF4ng tin \u0111\u0103ng nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7 c\u1EE7a \u0111\u0129a \u0111\xE3 ch\u1ECDn"}},Oy={account_info:"th\xF4ng tin t\xE0i kho\u1EA3n",account_info_desc:"Th\xF4ng tin chi ti\u1EBFt d\u01B0\u1EDBi \u0111\xE2y s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 t\u1EA1o t\xE0i kho\u1EA3n Qu\u1EA3n tr\u1ECB vi\xEAn ch\xEDnh. Ngo\xE0i ra, b\u1EA1n c\xF3 th\u1EC3 thay \u0111\u1ED5i th\xF4ng tin chi ti\u1EBFt b\u1EA5t c\u1EE9 l\xFAc n\xE0o sau khi \u0111\u0103ng nh\u1EADp.",name:"T\xEAn",email:"E-mail",password:"M\u1EADt kh\u1EA9u",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u",save_cont:"L\u01B0u",company_info:"Th\xF4ng tin c\xF4ng ty",company_info_desc:"Th\xF4ng tin n\xE0y s\u1EBD \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB tr\xEAn h\xF3a \u0111\u01A1n. L\u01B0u \xFD r\u1EB1ng b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9nh s\u1EEDa \u0111i\u1EC1u n\xE0y sau tr\xEAn trang c\xE0i \u0111\u1EB7t.",company_name:"T\xEAn c\xF4ng ty",company_logo:"Logo c\xF4ng ty",logo_preview:"Xem tr\u01B0\u1EDBc Logo",preferences:"S\u1EDF th\xEDch",preferences_desc:"T\xF9y ch\u1ECDn m\u1EB7c \u0111\u1ECBnh cho h\u1EC7 th\u1ED1ng.",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",address:"\u0110\u1ECBa ch\u1EC9",street:"Ph\u1ED11 | Street2",phone:"\u0110i\u1EC7n tho\u1EA1i",zip_code:"M\xE3 B\u01B0u Ch\xEDnh",go_back:"Quay l\u1EA1i",currency:"Ti\u1EC1n t\u1EC7",language:"Ng\xF4n ng\u1EEF",time_zone:"M\xFAi gi\u1EDD",fiscal_year:"N\u0103m t\xE0i ch\xEDnh",date_format:"\u0110\u1ECBnh d\u1EA1ng ng\xE0y th\xE1ng",from_address:"T\u1EEB \u0111\u1ECBa ch\u1EC9",username:"t\xEAn t\xE0i kho\u1EA3n",next:"K\u1EBF ti\u1EBFp",continue:"Ti\u1EBFp t\u1EE5c",skip:"Nh\u1EA3y",database:{database:"URL trang web",connection:"K\u1EBFt n\u1ED1i c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",host:"M\xE1y ch\u1EE7 c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",port:"C\u1ED5ng c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",password:"M\u1EADt kh\u1EA9u c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",app_url:"URL \u1EE9ng d\u1EE5ng",app_domain:"Mi\u1EC1n \u1EE9ng d\u1EE5ng",username:"T\xEAn ng\u01B0\u1EDDi d\xF9ng c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",db_name:"T\xEAn c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",db_path:"\u0110\u01B0\u1EDDng d\u1EABn c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",desc:"T\u1EA1o c\u01A1 s\u1EDF d\u1EEF li\u1EC7u tr\xEAn m\xE1y ch\u1EE7 c\u1EE7a b\u1EA1n v\xE0 \u0111\u1EB7t th\xF4ng tin \u0111\u0103ng nh\u1EADp b\u1EB1ng bi\u1EC3u m\u1EABu b\xEAn d\u01B0\u1EDBi."},permissions:{permissions:"Quy\u1EC1n",permission_confirm_title:"B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n ti\u1EBFp t\u1EE5c kh\xF4ng?",permission_confirm_desc:"Ki\u1EC3m tra quy\u1EC1n th\u01B0 m\u1EE5c kh\xF4ng th\xE0nh c\xF4ng",permission_desc:"D\u01B0\u1EDBi \u0111\xE2y l\xE0 danh s\xE1ch c\xE1c quy\u1EC1n \u0111\u1ED1i v\u1EDBi th\u01B0 m\u1EE5c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u \u0111\u1EC3 \u1EE9ng d\u1EE5ng ho\u1EA1t \u0111\u1ED9ng. N\u1EBFu ki\u1EC3m tra quy\u1EC1n kh\xF4ng th\xE0nh c\xF4ng, h\xE3y \u0111\u1EA3m b\u1EA3o c\u1EADp nh\u1EADt quy\u1EC1n th\u01B0 m\u1EE5c c\u1EE7a b\u1EA1n."},mail:{host:"M\xE1y ch\u1EE7 Th\u01B0",port:"C\u1ED5ng th\u01B0",driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n Th\u01B0",secret:"Kh\xF3a",mailgun_secret:"Kh\xF3a Mailgun",mailgun_domain:"Mi\u1EC1n",mailgun_endpoint:"\u0110i\u1EC3m cu\u1ED1i c\u1EE7a Mailgun",ses_secret:"Kh\xF3a SES",ses_key:"Kh\xF3a SES",password:"M\u1EADt kh\u1EA9u th\u01B0",username:"T\xEAn ng\u01B0\u1EDDi d\xF9ng th\u01B0",mail_config:"C\u1EA5u h\xECnh th\u01B0",from_name:"T\u1EEB t\xEAn th\u01B0",from_mail:"T\u1EEB \u0111\u1ECBa ch\u1EC9 th\u01B0",encryption:"M\xE3 h\xF3a Th\u01B0",mail_config_desc:"D\u01B0\u1EDBi \u0111\xE2y l\xE0 bi\u1EC3u m\u1EABu \u0110\u1ECBnh c\u1EA5u h\xECnh tr\xECnh \u0111i\u1EC1u khi\u1EC3n Email \u0111\u1EC3 g\u1EEDi email t\u1EEB \u1EE9ng d\u1EE5ng. B\u1EA1n c\u0169ng c\xF3 th\u1EC3 \u0111\u1ECBnh c\u1EA5u h\xECnh c\xE1c nh\xE0 cung c\u1EA5p b\xEAn th\u1EE9 ba nh\u01B0 Sendgrid, SES, v.v."},req:{system_req:"y\xEAu c\u1EA7u h\u1EC7 th\u1ED1ng",php_req_version:"Php (version {version} required)",check_req:"Ki\u1EC3m tra y\xEAu c\u1EA7u",system_req_desc:"Crater c\xF3 m\u1ED9t s\u1ED1 y\xEAu c\u1EA7u m\xE1y ch\u1EE7. \u0110\u1EA3m b\u1EA3o r\u1EB1ng m\xE1y ch\u1EE7 c\u1EE7a b\u1EA1n c\xF3 phi\xEAn b\u1EA3n php b\u1EAFt bu\u1ED9c v\xE0 t\u1EA5t c\u1EA3 c\xE1c ph\u1EA7n m\u1EDF r\u1ED9ng \u0111\u01B0\u1EE3c \u0111\u1EC1 c\u1EADp b\xEAn d\u01B0\u1EDBi."},errors:{migrate_failed:"Di chuy\u1EC3n kh\xF4ng th\xE0nh c\xF4ng",database_variables_save_error:"Kh\xF4ng th\u1EC3 ghi c\u1EA5u h\xECnh v\xE0o t\u1EC7p .env. Vui l\xF2ng ki\u1EC3m tra quy\u1EC1n \u0111\u1ED1i v\u1EDBi t\u1EC7p c\u1EE7a n\xF3",mail_variables_save_error:"C\u1EA5u h\xECnh email kh\xF4ng th\xE0nh c\xF4ng.",connection_failed:"K\u1EBFt n\u1ED1i c\u01A1 s\u1EDF d\u1EEF li\u1EC7u kh\xF4ng th\xE0nh c\xF4ng",database_should_be_empty:"C\u01A1 s\u1EDF d\u1EEF li\u1EC7u ph\u1EA3i tr\u1ED1ng"},success:{mail_variables_save_successfully:"Email \u0111\u01B0\u1EE3c \u0111\u1ECBnh c\u1EA5u h\xECnh th\xE0nh c\xF4ng",database_variables_save_successfully:"\u0110\xE3 c\u1EA5u h\xECnh th\xE0nh c\xF4ng c\u01A1 s\u1EDF d\u1EEF li\u1EC7u."}},Ly={invalid_phone:"S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",invalid_url:"Url kh\xF4ng h\u1EE3p l\u1EC7 (v\xED d\u1EE5: http://www.craterapp.com)",invalid_domain_url:"Url kh\xF4ng h\u1EE3p l\u1EC7 (v\xED d\u1EE5: craterapp.com)",required:"L\u0129nh v\u1EF1c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u",email_incorrect:"Email kh\xF4ng ch\xEDnh x\xE1c.",email_already_taken:"L\xE1 th\u01B0 \u0111\xE3 \u0111\u01B0\u1EE3c l\u1EA5y \u0111i.",email_does_not_exist:"Ng\u01B0\u1EDDi d\xF9ng c\xF3 email \u0111\xE3 cho kh\xF4ng t\u1ED3n t\u1EA1i",item_unit_already_taken:"T\xEAn \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng n\xE0y \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",payment_mode_already_taken:"T\xEAn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n n\xE0y \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",send_reset_link:"G\u1EEDi li\xEAn k\u1EBFt \u0111\u1EB7t l\u1EA1i",not_yet:"Ch\u01B0a? G\u1EEDi l\u1EA1i",password_min_length:"M\u1EADt kh\u1EA9u ph\u1EA3i ch\u1EE9a {count} k\xFD t\u1EF1",name_min_length:"T\xEAn ph\u1EA3i c\xF3 \xEDt nh\u1EA5t {count} ch\u1EEF c\xE1i.",enter_valid_tax_rate:"Nh\u1EADp thu\u1EBF su\u1EA5t h\u1EE3p l\u1EC7",numbers_only:"Ch\u1EC9 s\u1ED1.",characters_only:"Ch\u1EC9 nh\xE2n v\u1EADt.",password_incorrect:"M\u1EADt kh\u1EA9u ph\u1EA3i gi\u1ED1ng h\u1EC7t nhau",password_length:"M\u1EADt kh\u1EA9u ph\u1EA3i d\xE0i {count} k\xFD t\u1EF1.",qty_must_greater_than_zero:"S\u1ED1 l\u01B0\u1EE3ng ph\u1EA3i l\u1EDBn h\u01A1n kh\xF4ng.",price_greater_than_zero:"Gi\xE1 ph\u1EA3i l\u1EDBn h\u01A1n 0.",payment_greater_than_zero:"Kho\u1EA3n thanh to\xE1n ph\u1EA3i l\u1EDBn h\u01A1n 0.",payment_greater_than_due_amount:"Thanh to\xE1n \u0111\xE3 nh\u1EADp nhi\u1EC1u h\u01A1n s\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n c\u1EE7a h\xF3a \u0111\u01A1n n\xE0y.",quantity_maxlength:"S\u1ED1 l\u01B0\u1EE3ng kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 20 ch\u1EEF s\u1ED1.",price_maxlength:"Gi\xE1 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 20 ch\u1EEF s\u1ED1.",price_minvalue:"Gi\xE1 ph\u1EA3i l\u1EDBn h\u01A1n 0.",amount_maxlength:"S\u1ED1 ti\u1EC1n kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 20 ch\u1EEF s\u1ED1.",amount_minvalue:"S\u1ED1 ti\u1EC1n ph\u1EA3i l\u1EDBn h\u01A1n 0.",description_maxlength:"M\xF4 t\u1EA3 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 65.000 k\xFD t\u1EF1.",subject_maxlength:"Ch\u1EE7 \u0111\u1EC1 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 100 k\xFD t\u1EF1.",message_maxlength:"Tin nh\u1EAFn kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 255 k\xFD t\u1EF1.",maximum_options_error:"\u0110\xE3 ch\u1ECDn t\u1ED1i \u0111a {max} t\xF9y ch\u1ECDn. \u0110\u1EA7u ti\xEAn, h\xE3y x\xF3a m\u1ED9t t\xF9y ch\u1ECDn \u0111\xE3 ch\u1ECDn \u0111\u1EC3 ch\u1ECDn m\u1ED9t t\xF9y ch\u1ECDn kh\xE1c.",notes_maxlength:"Ghi ch\xFA kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 65.000 k\xFD t\u1EF1.",address_maxlength:"\u0110\u1ECBa ch\u1EC9 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 255 k\xFD t\u1EF1.",ref_number_maxlength:"S\u1ED1 tham chi\u1EBFu kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 255 k\xFD t\u1EF1.",prefix_maxlength:"Ti\u1EC1n t\u1ED1 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 5 k\xFD t\u1EF1.",something_went_wrong:"c\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n"},Uy="\u01AF\u1EDBc t\xEDnh",Ky="S\u1ED1 \u01B0\u1EDBc t\xEDnh",qy="Ng\xE0y \u01B0\u1EDBc t\xEDnh",Zy="Ng\xE0y h\u1EBFt h\u1EA1n",Wy="H\xF3a \u0111\u01A1n",Hy="S\u1ED1 h\xF3a \u0111\u01A1n",Gy="Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",Yy="Ng\xE0y \u0111\xE1o h\u1EA1n",Jy="Ghi ch\xFA",Xy="M\u1EB7t h\xE0ng",Qy="\u0110\u1ECBnh l\u01B0\u1EE3ng",eb="Gi\xE1 b\xE1n",tb="Gi\u1EA3m gi\xE1",ab="S\u1ED1 ti\u1EC1n",sb="T\u1ED5ng ph\u1EE5",nb="To\xE0n b\u1ED9",ib="Thanh to\xE1n",ob="H\xD3A \u0110\u01A0N THANH TO\xC1N",rb="Ng\xE0y thanh to\xE1n",db="S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3",lb="Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",cb="S\u1ED1 ti\u1EC1n nh\u1EADn \u0111\u01B0\u1EE3c",_b="B\xC1O C\xC1O CHI PH\xCD",ub="T\u1ED4NG CHI PH\xCD",mb="L\u1EE2I NHU\u1EACN",pb="B\xE1o c\xE1o kh\xE1ch h\xE0ng b\xE1n h\xE0ng",gb="B\xE1o c\xE1o m\u1EB7t h\xE0ng b\xE1n h\xE0ng",fb="B\xE1o c\xE1o T\xF3m t\u1EAFt Thu\u1EBF",hb="THU NH\u1EACP = EARNINGS",vb="L\u1EE2I NHU\u1EACN R\xD2NG",yb="B\xE1o c\xE1o b\xE1n h\xE0ng: Theo kh\xE1ch h\xE0ng",bb="T\u1ED4NG DOANH S\u1ED0 B\xC1N H\xC0NG",kb="B\xE1o c\xE1o b\xE1n h\xE0ng: Theo m\u1EB7t h\xE0ng",wb="B\xC1O C\xC1O THU\u1EBE",xb="T\u1ED4NG THU\u1EBE",zb="C\xE1c lo\u1EA1i thu\u1EBF",Sb="Chi ph\xED",jb="Xu\u1EA5t t\u1EEB,",Pb="Chuy\u1EC3n t\u1EDBi,",Db="Nh\xE2\u0323n t\u1EEB:",Cb="Thu\u1EBF";var Ab={navigation:jy,general:Py,dashboard:Dy,tax_types:Cy,global_search:Ay,customers:Ey,items:Ny,estimates:Ty,invoices:Iy,payments:$y,expenses:Ry,login:Fy,users:My,reports:Vy,settings:By,wizard:Oy,validation:Ly,pdf_estimate_label:Uy,pdf_estimate_number:Ky,pdf_estimate_date:qy,pdf_estimate_expire_date:Zy,pdf_invoice_label:Wy,pdf_invoice_number:Hy,pdf_invoice_date:Gy,pdf_invoice_due_date:Yy,pdf_notes:Jy,pdf_items_label:Xy,pdf_quantity_label:Qy,pdf_price_label:eb,pdf_discount_label:tb,pdf_amount_label:ab,pdf_subtotal:sb,pdf_total:nb,pdf_payment_label:ib,pdf_payment_receipt_label:ob,pdf_payment_date:rb,pdf_payment_number:db,pdf_payment_mode:lb,pdf_payment_amount_received_label:cb,pdf_expense_report_label:_b,pdf_total_expenses_label:ub,pdf_profit_loss_label:mb,pdf_sales_customers_label:pb,pdf_sales_items_label:gb,pdf_tax_summery_label:fb,pdf_income_label:hb,pdf_net_profit_label:vb,pdf_customer_sales_report:yb,pdf_total_sales_label:bb,pdf_item_sales_label:kb,pdf_tax_report_label:wb,pdf_total_tax_label:xb,pdf_tax_types_label:zb,pdf_expenses_label:Sb,pdf_bill_to:jb,pdf_ship_to:Pb,pdf_received_from:Db,pdf_tax_label:Cb},Eb={en:Qn,fr:no,es:cr,ar:gd,de:bl,ja:Sc,pt_BR:W_,it:Xu,sr:sp,nl:dg,ko:pf,lv:yh,sv:zv,sk:Sy,vi:Ab,pl:E_};const Nb={props:{bgColor:{type:String,default:null},color:{type:String,default:null}},setup(s){return(r,i)=>(l(),_("span",{class:"px-2 py-1 text-sm font-normal text-center text-green-800 uppercase bg-success",style:Ce({backgroundColor:s.bgColor,color:s.color})},[F(r.$slots,"default")],4))}};var Tb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nb});const Ib={name:"BaseBreadcrumb"},$b={class:"flex flex-wrap py-4 text-gray-900 rounded list-reset"};function Rb(s,r,i,a,t,n){return l(),_("nav",null,[c("ol",$b,[F(s.$slots,"default")])])}var Fb=ee(Ib,[["render",Rb]]),Mb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fb});const Vb={class:"pr-2 text-sm"},Bb={key:0,class:"px-1"},Ob={props:{title:{type:String,default:String},to:{type:String,default:"#"},active:{type:Boolean,default:!1,required:!1}},setup(s){return(r,i)=>{const a=C("router-link");return l(),_("li",Vb,[u(a,{class:"m-0 mr-2 text-sm font-medium leading-5 text-gray-900 outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-400",to:s.to},{default:g(()=>[K(w(s.title),1)]),_:1},8,["to"]),s.active?S("",!0):(l(),_("span",Bb,"/"))])}}};var Lb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ob});const Ub={},Kb={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},qb=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Zb=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Wb=[qb,Zb];function Hb(s,r){return l(),_("svg",Kb,Wb)}var Gb=ee(Ub,[["render",Hb]]);const Yb={props:{contentLoading:{type:Boolean,default:!1},defaultClass:{type:String,default:"inline-flex whitespace-nowrap items-center border font-medium focus:outline-none focus:ring-2 focus:ring-offset-2"},tag:{type:String,default:"button"},disabled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,default:"md",validator:function(s){return["xs","sm","md","lg","xl"].indexOf(s)!==-1}},variant:{type:String,default:"primary",validator:function(s){return["primary","secondary","primary-outline","white","danger","gray"].indexOf(s)!==-1}}},setup(s){const r=s,i=D(()=>({"px-2.5 py-1.5 text-xs leading-4 rounded":r.size==="xs","px-3 py-2 text-sm leading-4 rounded-md":r.size=="sm","px-4 py-2 text-sm leading-5 rounded-md":r.size==="md","px-4 py-2 text-base leading-6 rounded-md":r.size==="lg","px-6 py-3 text-base leading-6 rounded-md":r.size==="xl"})),a=D(()=>{switch(r.size){case"xs":return"32";case"sm":return"38";case"md":return"42";case"lg":return"42";case"xl":return"46";default:return""}}),t=D(()=>({"border-transparent shadow-sm text-white bg-primary-600 hover:bg-primary-700 focus:ring-primary-500":r.variant==="primary","border-transparent text-primary-700 bg-primary-100 hover:bg-primary-200 focus:ring-primary-500":r.variant==="secondary","border-transparent  border-solid border-primary-500 font-normal transition ease-in-out duration-150 text-primary-500 hover:bg-primary-200 shadow-inner focus:ring-primary-500":r.variant=="primary-outline","border-gray-200 text-gray-700 bg-white hover:bg-gray-50 focus:ring-primary-500 focus:ring-offset-0":r.variant=="white","border-transparent shadow-sm text-white bg-red-600 hover:bg-red-700 focus:ring-red-500":r.variant==="danger","border-transparent bg-gray-200 border hover:bg-opacity-60 focus:ring-gray-500 focus:ring-offset-0":r.variant==="gray"})),n=D(()=>r.rounded?"!rounded-full":""),e=D(()=>({"-ml-0.5 mr-2 h-4 w-4":r.size=="sm","-ml-1 mr-2 h-5 w-5":r.size==="md","-ml-1 mr-3 h-5 w-5":r.size==="lg"||r.size==="xl"})),o=D(()=>({"text-white":r.variant==="primary","text-primary-700":r.variant==="secondary","text-gray-700":r.variant==="white","text-gray-400":r.variant==="gray"})),m=D(()=>({"ml-2 -mr-0.5 h-4 w-4":r.size=="sm","ml-2 -mr-1 h-5 w-5":r.size==="md","ml-3 -mr-1 h-5 w-5":r.size==="lg"||r.size==="xl"}));return(p,k)=>{const x=C("BaseContentPlaceholdersBox"),b=C("BaseContentPlaceholders"),h=C("BaseCustomTag");return s.contentLoading?(l(),T(b,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:g(()=>[u(x,{rounded:!0,style:Ce([{width:"96px"},`height: ${d(a)}px;`])},null,8,["style"])]),_:1})):(l(),T(h,{key:1,tag:s.tag,disabled:s.disabled,class:A([s.defaultClass,d(i),d(t),d(n)])},{default:g(()=>[s.loading?(l(),T(Gb,{key:0,class:A([d(e),d(o)])},null,8,["class"])):F(p.$slots,"left",{key:1,class:A(d(e))}),F(p.$slots,"default"),F(p.$slots,"right",{class:A([d(m),d(o)])})]),_:3},8,["tag","disabled","class"]))}}};var Jb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Yb});const Xb={class:"bg-white rounded-lg shadow"},Qb={key:0,class:"px-5 py-4 text-black border-b border-gray-100 border-solid"},ek={key:1,class:"px-5 py-4 border-t border-gray-100 border-solid sm:px-6"},tk={props:{containerClass:{type:String,default:"px-4 py-5 sm:px-8 sm:py-8"}},setup(s){const r=pe(),i=D(()=>!!r.header),a=D(()=>!!r.footer);return(t,n)=>(l(),_("div",Xb,[d(i)?(l(),_("div",Qb,[F(t.$slots,"header")])):S("",!0),c("div",{class:A(s.containerClass)},[F(t.$slots,"default")],2),d(a)?(l(),_("div",ek,[F(t.$slots,"footer")])):S("",!0)]))}};var ak=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tk});const sk={class:"relative flex items-start"},nk={class:"flex items-center h-5"},ik=["id","disabled"],ok={class:"ml-3 text-sm"},rk=["for"],dk={props:{label:{type:String,default:""},modelValue:{type:[Boolean,Array],default:!1},id:{type:[Number,String],default:()=>`check_${Math.random().toString(36).substr(2,9)}`},disabled:{type:Boolean,default:!1},checkboxClass:{type:String,default:"w-4 h-4 border-gray-300 rounded cursor-pointer"},setInitialValue:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{emit:r}){const i=s;i.setInitialValue&&r("update:modelValue",i.modelValue);const a=D({get:()=>i.modelValue,set:n=>{r("update:modelValue",n),r("change",n)}}),t=D(()=>i.disabled?"text-gray-300 cursor-not-allowed":"text-primary-600 focus:ring-primary-500");return(n,e)=>(l(),_("div",sk,[c("div",nk,[xe(c("input",le({id:s.id,"onUpdate:modelValue":e[0]||(e[0]=o=>J(a)?a.value=o:null)},n.$attrs,{disabled:s.disabled,type:"checkbox",class:[s.checkboxClass,d(t)]}),null,16,ik),[[Bt,d(a)]])]),c("div",ok,[s.label?(l(),_("label",{key:0,for:s.id,class:A(`font-medium ${s.disabled?"text-gray-400 cursor-not-allowed":"text-gray-600"} cursor-pointer `)},w(s.label),11,rk)):S("",!0)])]))}};var lk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:dk});const ck={props:{rounded:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},animated:{type:Boolean,default:!0}},setup(s){const r=s,i=D(()=>({"base-content-placeholders":!0,"base-content-placeholders-is-rounded":r.rounded,"base-content-placeholders-is-centered":r.centered,"base-content-placeholders-is-animated":r.animated}));return(a,t)=>(l(),_("div",{class:A(d(i))},[F(a.$slots,"default")],2))}};var _k=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ck});const uk={props:{circle:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(s){const r=s,i=D(()=>({"base-content-circle":r.circle,"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",{class:A(["base-content-placeholders-box",d(i)])},null,2))}};var mk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:uk});const pk={class:"base-content-placeholders-heading"},gk={key:0,class:"base-content-placeholders-heading__box"},fk=c("div",{class:"base-content-placeholders-heading__content"},[c("div",{class:"base-content-placeholders-heading__title",style:{background:"#eee"}}),c("div",{class:"base-content-placeholders-heading__subtitle"})],-1),hk={props:{box:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(s){return(r,i)=>(l(),_("div",pk,[s.box?(l(),_("div",gk)):S("",!0),fk]))}};var vk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:hk});const yk={class:"base-content-placeholders-text"},bk={props:{lines:{type:Number,default:4},rounded:{type:Boolean,default:!1}},setup(s){const r=s,i=D(()=>({"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",yk,[(l(!0),_(Q,null,ae(s.lines,n=>(l(),_("div",{key:n,class:A([d(i),"w-full h-full base-content-placeholders-text__line"])},null,2))),128))]))}};var kk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bk}),xt={id:null,label:null,type:null,name:null,default_answer:null,is_required:!1,placeholder:null,model_type:null,order:1,options:[]},wk=s=>Qe({locale:"en",fallbackLocale:"en",messages:s});const{global:ne}=wk;var Ze={isImageFile(s){return["image/gif","image/jpeg","image/png"].includes(s)},addClass(s,r){s.classList?s.classList.add(r):s.className+=" "+r},hasClass(s,r){return s.classList?s.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(s.className)},formatMoney(s,r=0){r||(r={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),s=s/100;let{precision:i,decimal_separator:a,thousand_separator:t,symbol:n,swap_currency_symbol:e}=r;try{i=Math.abs(i),i=isNaN(i)?2:i;const o=s<0?"-":"";let m=parseInt(s=Math.abs(Number(s)||0).toFixed(i)).toString(),p=m.length>3?m.length%3:0,k=`${n}`,x=p?m.substr(0,p)+t:"",b=m.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+t),h=i?a+Math.abs(s-m).toFixed(i).slice(2):"",E=o+x+b+h;return e?E+" "+k:k+" "+E}catch(o){console.error(o)}},mergeSettings(s,r){Object.keys(r).forEach(function(i){i in s&&(s[i]=r[i])})},checkValidUrl(s){return s.includes("http://localhost")||s.includes("http://127.0.0.1")||s.includes("https://localhost")||s.includes("https://127.0.0.1")?!0:!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(s)},checkValidDomainUrl(s){return s.includes("localhost")||s.includes("127.0.0.1")?!0:!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(s)},fallbackCopyTextToClipboard(s){var r=document.createElement("textarea");r.value=s,r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{var i=document.execCommand("copy"),a=i?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+a)}catch(t){console.error("Fallback: Oops, unable to copy",t)}document.body.removeChild(r)},copyTextToClipboard(s){if(!navigator.clipboard){this.fallbackCopyTextToClipboard(s);return}navigator.clipboard.writeText(s).then(function(){return!0},function(r){return!1})},arrayDifference(s,r){return s==null?void 0:s.filter(i=>(r==null?void 0:r.indexOf(i))<0)},getBadgeStatusColor(s){switch(s){case"DRAFT":return{bgColor:"#F8EDCB",color:"#744210"};case"PAID":return{bgColor:"#D5EED0",color:"#276749"};case"UNPAID":return{bgColor:"#F8EDC",color:"#744210"};case"SENT":return{bgColor:"rgba(246, 208, 154, 0.4)",color:"#975a16"};case"REJECTED":return{bgColor:"#E1E0EA",color:"#1A1841"};case"ACCEPTED":return{bgColor:"#D5EED0",color:"#276749"};case"VIEWED":return{bgColor:"#C9E3EC",color:"#2c5282"};case"EXPIRED":return{bgColor:"#FED7D7",color:"#c53030"};case"PARTIALLY PAID":return{bgColor:"#C9E3EC",color:"#2c5282"};case"OVERDUE":return{bgColor:"#FED7D7",color:"#c53030"};case"COMPLETED":return{bgColor:"#D5EED0",color:"#276749"};case"DUE":return{bgColor:"#F8EDCB",color:"#744210"};case"YES":return{bgColor:"#D5EED0",color:"#276749"};case"NO":return{bgColor:"#FED7D7",color:"#c53030"}}},getStatusTranslation(s){switch(s){case"DRAFT":return ne.t("general.draft");case"PAID":return ne.t("invoices.paid");case"UNPAID":return ne.t("invoices.unpaid");case"SENT":return ne.t("general.sent");case"REJECTED":return ne.t("estimates.rejected");case"ACCEPTED":return ne.t("estimates.accepted");case"VIEWED":return ne.t("invoices.viewed");case"EXPIRED":return ne.t("estimates.expired");case"PARTIALLY PAID":return ne.t("estimates.partially_paid");case"OVERDUE":return ne.t("invoices.overdue");case"COMPLETED":return ne.t("invoices.completed");case"DUE":return ne.t("general.due");default:return s}},toFormData(s){const r=new FormData;return Object.keys(s).forEach(i=>{Ot.exports.isArray(s[i])?r.append(i,JSON.stringify(s[i])):(s[i]===null&&(s[i]=""),r.append(i,s[i]))}),r}};const xk=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"custom-field",state:()=>({customFields:[],isRequestOngoing:!1,currentCustomField:R({},xt)}),getters:{isEdit(){return!!this.currentCustomField.id}},actions:{resetCustomFields(){this.customFields=[]},resetCurrentCustomField(){this.currentCustomField=R({},xt)},fetchCustomFields(a){return new Promise((t,n)=>{f.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchNoteCustomFields(a){return new Promise((t,n)=>{if(this.isRequestOngoing)return t({requestOnGoing:!0}),!0;this.isRequestOngoing=!0,f.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,this.isRequestOngoing=!1,t(e)}).catch(e=>{this.isRequestOngoing=!1,v(e),n(e)})})},fetchCustomField(a){return new Promise((t,n)=>{f.get(`/api/v1/custom-fields/${a}`).then(e=>{this.currentCustomField=e.data.data,this.currentCustomField.options&&this.currentCustomField.options.length&&(this.currentCustomField.options=this.currentCustomField.options.map(o=>o={name:o})),t(e)}).catch(e=>{v(e),n(e)})})},addCustomField(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/custom-fields",a).then(o=>{let m=R({},o.data.data);m.options&&(m.options=m.options.map(p=>({name:p||""}))),this.customFields.push(m),t.showNotification({type:"success",message:i.t("settings.custom_fields.added_message")}),n(o)}).catch(o=>{v(o),e(o)})})},updateCustomField(a){const t=M();return new Promise((n,e)=>{f.put(`/api/v1/custom-fields/${a.id}`,a).then(o=>{let m=R({},o.data.data);m.options&&(m.options=m.options.map(k=>({name:k||""})));let p=this.customFields.findIndex(k=>k.id===m.id);this.customFields[p]&&(this.customFields[p]=m),t.showNotification({type:"success",message:i.t("settings.custom_fields.updated_message")}),n(o)}).catch(o=>{v(o),e(o)})})},deleteCustomFields(a){const t=M();return new Promise((n,e)=>{f.delete(`/api/v1/custom-fields/${a}`).then(o=>{let m=this.customFields.findIndex(p=>p.id===a);this.customFields.splice(m,1),o.data.error?t.showNotification({type:"error",message:i.t("settings.custom_fields.already_in_use")}):t.showNotification({type:"success",message:i.t("settings.custom_fields.deleted_message")}),n(o)}).catch(o=>{v(o),e(o)})})}}})()},zk={key:1,class:"relative"},Sk={class:"absolute bottom-0 right-0 z-10"},jk={class:"flex p-2"},Pk={class:"mb-1 ml-2 text-xs font-semibold text-gray-500 uppercase"},Dk=["onClick"],Ck={class:"flex pl-1"},Ak={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:String,default:""},fields:{type:Array,default:null}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=xk();let t=q([]),n=q([]),e=q([]),o=q([]),m=q([]);ge(()=>i.fields,b=>{i.fields&&i.fields.length>0&&x()}),ge(()=>a.customFields,b=>{n.value=b?b.filter(h=>h.model_type==="Invoice"):[],m.value=b?b.filter(h=>h.model_type==="Customer"):[],o.value=b?b.filter(h=>h.model_type==="Payment"):[],e.value=b.filter(h=>h.model_type==="Estimate"),x()}),ze(()=>{k()});const p=D({get:()=>i.modelValue,set:b=>{r("update:modelValue",b)}});async function k(){await a.fetchCustomFields()}async function x(){t.value=[],i.fields&&i.fields.length>0&&(i.fields.find(b=>b=="shipping")&&t.value.push({label:"Shipping Address",fields:[{label:"Address name",value:"SHIPPING_ADDRESS_NAME"},{label:"Country",value:"SHIPPING_COUNTRY"},{label:"State",value:"SHIPPING_STATE"},{label:"City",value:"SHIPPING_CITY"},{label:"Address Street 1",value:"SHIPPING_ADDRESS_STREET_1"},{label:"Address Street 2",value:"SHIPPING_ADDRESS_STREET_2"},{label:"Phone",value:"SHIPPING_PHONE"},{label:"Zip Code",value:"SHIPPING_ZIP_CODE"}]}),i.fields.find(b=>b=="billing")&&t.value.push({label:"Billing Address",fields:[{label:"Address name",value:"BILLING_ADDRESS_NAME"},{label:"Country",value:"BILLING_COUNTRY"},{label:"State",value:"BILLING_STATE"},{label:"City",value:"BILLING_CITY"},{label:"Address Street 1",value:"BILLING_ADDRESS_STREET_1"},{label:"Address Street 2",value:"BILLING_ADDRESS_STREET_2"},{label:"Phone",value:"BILLING_PHONE"},{label:"Zip Code",value:"BILLING_ZIP_CODE"}]}),i.fields.find(b=>b=="customer")&&t.value.push({label:"Customer",fields:[{label:"Display Name",value:"CONTACT_DISPLAY_NAME"},{label:"Contact Name",value:"PRIMARY_CONTACT_NAME"},{label:"Email",value:"CONTACT_EMAIL"},{label:"Phone",value:"CONTACT_PHONE"},{label:"Website",value:"CONTACT_WEBSITE"},...m.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="invoice")&&t.value.push({label:"Invoice",fields:[{label:"Date",value:"INVOICE_DATE"},{label:"Due Date",value:"INVOICE_DUE_DATE"},{label:"Number",value:"INVOICE_NUMBER"},{label:"Ref Number",value:"INVOICE_REF_NUMBER"},{label:"Invoice Link",value:"INVOICE_LINK"},...n.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="estimate")&&t.value.push({label:"Estimate",fields:[{label:"Date",value:"ESTIMATE_DATE"},{label:"Expiry Date",value:"ESTIMATE_EXPIRY_DATE"},{label:"Number",value:"ESTIMATE_NUMBER"},{label:"Ref Number",value:"ESTIMATE_REF_NUMBER"},{label:"Estimate Link",value:"ESTIMATE_LINK"},...e.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="payment")&&t.value.push({label:"Payment",fields:[{label:"Date",value:"PAYMENT_DATE"},{label:"Number",value:"PAYMENT_NUMBER"},{label:"Mode",value:"PAYMENT_MODE"},{label:"Amount",value:"PAYMENT_AMOUNT"},{label:"Payment Link",value:"PAYMENT_LINK"},...o.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="company")&&t.value.push({label:"Company",fields:[{label:"Company Name",value:"COMPANY_NAME"},{label:"Country",value:"COMPANY_COUNTRY"},{label:"State",value:"COMPANY_STATE"},{label:"City",value:"COMPANY_CITY"},{label:"Address Street 1",value:"COMPANY_ADDRESS_STREET_1"},{label:"Address Street 2",value:"COMPANY_ADDRESS_STREET_2"},{label:"Phone",value:"COMPANY_PHONE"},{label:"Zip Code",value:"COMPANY_ZIP_CODE"}]}))}return x(),(b,h)=>{const E=C("BaseContentPlaceholdersBox"),$=C("BaseContentPlaceholders"),I=C("BaseIcon"),z=C("BaseButton"),V=C("BaseDropdown"),L=C("BaseEditor");return s.contentLoading?(l(),T($,{key:0},{default:g(()=>[u(E,{rounded:!0,class:"w-full",style:{height:"200px"}})]),_:1})):(l(),_("div",zk,[c("div",Sk,[u(V,{"close-on-select":!0,"max-height":"220",position:"top-end","width-class":"w-92",class:"mb-2"},{activator:g(()=>[u(z,{type:"button",variant:"primary-outline",class:"mr-4"},{left:g(G=>[u(I,{name:"PlusSmIcon",class:A(G.class)},null,8,["class"])]),default:g(()=>[K(w(b.$t("settings.customization.insert_fields"))+" ",1)]),_:1})]),default:g(()=>[c("div",jk,[(l(!0),_(Q,null,ae(d(t),(G,me)=>(l(),_("ul",{key:me,class:"list-none"},[c("li",Pk,w(G.label),1),(l(!0),_(Q,null,ae(G.fields,(Z,N)=>(l(),_("li",{key:N,class:"w-48 text-sm font-normal cursor-pointer hover:bg-gray-100 rounded ml-1 py-0.5",onClick:y=>p.value+=`{${Z.value}}`},[c("div",Ck,[u(I,{name:"ChevronDoubleRightIcon",class:"h-3 mt-1 mr-2 text-gray-400"}),K(" "+w(Z.label),1)])],8,Dk))),128))]))),128))])]),_:1})]),u(L,{modelValue:d(p),"onUpdate:modelValue":h[0]||(h[0]=G=>J(p)?p.value=G:null)},null,8,["modelValue"])]))}}};var Ek=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ak});const Nk={props:{tag:{type:String,default:"button"}},setup(s,{slots:r,attrs:i,emit:a}){return()=>Lt(`${s.tag}`,i,r)}};var Tk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nk});const Ik={key:0,class:"text-sm font-bold leading-5 text-black non-italic space-y-1"},$k={key:0},Rk={key:1},Fk={key:2},Mk={key:3},Vk={key:4},Bk={key:5},Ok={props:{address:{type:Object,required:!0}},setup(s){return(r,i)=>{var a,t,n,e,o,m,p,k,x,b,h,E,$,I;return s.address?(l(),_("div",Ik,[((a=s.address)==null?void 0:a.address_street_1)?(l(),_("p",$k,w((t=s.address)==null?void 0:t.address_street_1)+",",1)):S("",!0),((n=s.address)==null?void 0:n.address_street_2)?(l(),_("p",Rk,w((e=s.address)==null?void 0:e.address_street_2)+",",1)):S("",!0),((o=s.address)==null?void 0:o.city)?(l(),_("p",Fk,w((m=s.address)==null?void 0:m.city)+",",1)):S("",!0),((p=s.address)==null?void 0:p.state)?(l(),_("p",Mk,w((k=s.address)==null?void 0:k.state)+",",1)):S("",!0),((b=(x=s.address)==null?void 0:x.country)==null?void 0:b.name)?(l(),_("p",Vk,w((E=(h=s.address)==null?void 0:h.country)==null?void 0:E.name)+",",1)):S("",!0),(($=s.address)==null?void 0:$.zip)?(l(),_("p",Bk,w((I=s.address)==null?void 0:I.zip)+".",1)):S("",!0)])):S("",!0)}}};var Lk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ok}),Re={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null};function zt(){return{name:"",contact_name:"",email:"",phone:null,password:"",confirm_password:"",currency_id:null,website:null,billing:R({},Re),shipping:R({},Re),customFields:[],fields:[],enable_portal:!1}}const be=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"customer",state:()=>({customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{},isFetchingInitialSettings:!1,isFetchingViewData:!1,currentCustomer:R({},zt())}),getters:{isEdit:a=>!!a.currentCustomer.id},actions:{resetCurrentCustomer(){this.currentCustomer=R({},zt())},copyAddress(){this.currentCustomer.shipping=W(R({},this.currentCustomer.billing),{type:"shipping"})},fetchCustomerInitialSettings(a){const t=fe(),n=Ie(),e=_e();this.isFetchingInitialSettings=!0;let o=[];a?o=[this.fetchCustomer(t.params.id)]:this.currentCustomer.currency_id=e.selectedCompanyCurrency.id,Promise.all([n.fetchCurrencies(),n.fetchCountries(),...o]).then(async([m,p,k])=>{this.isFetchingInitialSettings=!1}).catch(m=>{v(m)})},fetchCustomers(a){return new Promise((t,n)=>{f.get("/api/v1/customers",{params:a}).then(e=>{this.customers=e.data.data,this.totalCustomers=e.data.meta.customer_total_count,t(e)}).catch(e=>{v(e),n(e)})})},fetchViewCustomer(a){return new Promise((t,n)=>{this.isFetchingViewData=!0,f.get(`/api/v1/customers/${a.id}/stats`,{params:a}).then(e=>{this.selectedViewCustomer={},Object.assign(this.selectedViewCustomer,e.data.data),this.setAddressStub(e.data.data),this.isFetchingViewData=!1,t(e)}).catch(e=>{this.isFetchingViewData=!1,v(e),n(e)})})},fetchCustomer(a){return new Promise((t,n)=>{f.get(`/api/v1/customers/${a}`).then(e=>{Object.assign(this.currentCustomer,e.data.data),this.setAddressStub(e.data.data),t(e)}).catch(e=>{v(e),n(e)})})},addCustomer(a){return new Promise((t,n)=>{f.post("/api/v1/customers",a).then(e=>{this.customers.push(e.data.data),M().showNotification({type:"success",message:i.t("customers.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},updateCustomer(a){return new Promise((t,n)=>{f.put(`/api/v1/customers/${a.id}`,a).then(e=>{if(e.data){let o=this.customers.findIndex(p=>p.id===e.data.data.id);this.customers[o]=a,M().showNotification({type:"success",message:i.t("customers.updated_message")})}t(e)}).catch(e=>{v(e),n(e)})})},deleteCustomer(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/customers/delete",a).then(o=>{let m=this.customers.findIndex(p=>p.id===a);this.customers.splice(m,1),t.showNotification({type:"success",message:i.tc("customers.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleCustomers(){const a=M();return new Promise((t,n)=>{f.post("/api/v1/customers/delete",{ids:this.selectedCustomers}).then(e=>{this.selectedCustomers.forEach(o=>{let m=this.customers.findIndex(p=>p.id===o.id);this.customers.splice(m,1)}),a.showNotification({type:"success",message:i.tc("customers.deleted_message",2)}),t(e)}).catch(e=>{v(e),n(e)})})},setSelectAllState(a){this.selectAllField=a},selectCustomer(a){this.selectedCustomers=a,this.selectedCustomers.length===this.customers.length?this.selectAllField=!0:this.selectAllField=!1},selectAllCustomers(){if(this.selectedCustomers.length===this.customers.length)this.selectedCustomers=[],this.selectAllField=!1;else{let a=this.customers.map(t=>t.id);this.selectedCustomers=a,this.selectAllField=!0}},setAddressStub(a){a.billing||(this.currentCustomer.billing=R({},Re)),a.shipping||(this.currentCustomer.shipping=R({},Re))}}})()},Pe=(s=!1)=>(s?window.pinia.defineStore:X)({id:"modal",state:()=>({active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""}),getters:{isEdit(){return!!this.id}},actions:{openModal(i){this.componentName=i.componentName,this.active=!0,i.id&&(this.id=i.id),this.title=i.title,i.content&&(this.content=i.content),i.data&&(this.data=i.data),i.refreshData&&(this.refreshData=i.refreshData),i.variant&&(this.variant=i.variant),i.size&&(this.size=i.size)},resetModalData(){this.content="",this.title="",this.componentName="",this.id="",this.data=null,this.refreshData=null},closeModal(){this.active=!1,setTimeout(()=>{this.resetModalData()},300)}}})(),Fe=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"item",state:()=>({items:[],totalItems:0,selectAllField:!1,selectedItems:[],itemUnits:[],currentItemUnit:{id:null,name:""},currentItem:{name:"",description:"",price:0,unit_id:"",unit:null,taxes:[],tax_per_item:!1}}),getters:{isItemUnitEdit:a=>!!a.currentItemUnit.id},actions:{resetCurrentItem(){this.currentItem={name:"",description:"",price:0,unit_id:"",unit:null,taxes:[]}},fetchItems(a){return new Promise((t,n)=>{f.get("/api/v1/items",{params:a}).then(e=>{this.items=e.data.data,this.totalItems=e.data.meta.item_total_count,t(e)}).catch(e=>{v(e),n(e)})})},fetchItem(a){return new Promise((t,n)=>{f.get(`/api/v1/items/${a}`).then(e=>{e.data&&Object.assign(this.currentItem,e.data.data),t(e)}).catch(e=>{v(e),n(e)})})},addItem(a){return new Promise((t,n)=>{f.post("/api/v1/items",a).then(e=>{const o=M();this.items.push(e.data.data),o.showNotification({type:"success",message:i.t("items.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},updateItem(a){return new Promise((t,n)=>{f.put(`/api/v1/items/${a.id}`,a).then(e=>{if(e.data){const o=M();let m=this.items.findIndex(p=>p.id===e.data.data.id);this.items[m]=a.item,o.showNotification({type:"success",message:i.t("items.updated_message")})}t(e)}).catch(e=>{v(e),n(e)})})},deleteItem(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/items/delete",a).then(o=>{let m=this.items.findIndex(p=>p.id===a);this.items.splice(m,1),t.showNotification({type:"success",message:i.tc("items.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleItems(){const a=M();return new Promise((t,n)=>{f.post("/api/v1/items/delete",{ids:this.selectedItems}).then(e=>{this.selectedItems.forEach(o=>{let m=this.items.findIndex(p=>p.id===o.id);this.items.splice(m,1)}),a.showNotification({type:"success",message:i.tc("items.deleted_message",2)}),t(e)}).catch(e=>{v(e),n(e)})})},selectItem(a){this.selectedItems=a,this.selectedItems.length===this.items.length?this.selectAllField=!0:this.selectAllField=!1},selectAllItems(a){if(this.selectedItems.length===this.items.length)this.selectedItems=[],this.selectAllField=!1;else{let t=this.items.map(n=>n.id);this.selectedItems=t,this.selectAllField=!0}},addItemUnit(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/units",a).then(o=>{this.itemUnits.push(o.data.data),o.data.data&&t.showNotification({type:"success",message:i.t("settings.customization.items.item_unit_added")}),o.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),n(o)}).catch(o=>{v(o),e(o)})})},updateItemUnit(a){const t=M();return new Promise((n,e)=>{f.put(`/api/v1/units/${a.id}`,a).then(o=>{let m=this.itemUnits.findIndex(p=>p.id===o.data.data.id);this.itemUnits[m]=a,o.data.data&&t.showNotification({type:"success",message:i.t("settings.customization.items.item_unit_updated")}),o.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),n(o)}).catch(o=>{v(o),e(o)})})},fetchItemUnits(a){return new Promise((t,n)=>{f.get("/api/v1/units",{params:a}).then(e=>{this.itemUnits=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchItemUnit(a){return new Promise((t,n)=>{f.get(`/api/v1/units/${a}`).then(e=>{this.currentItemUnit=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},deleteItemUnit(a){const t=M();return new Promise((n,e)=>{f.delete(`/api/v1/units/${a}`).then(o=>{if(!o.data.error){let m=this.itemUnits.findIndex(p=>p.id===a);this.itemUnits.splice(m,1)}o.data.success&&t.showNotification({type:"success",message:i.t("settings.customization.items.deleted_message")}),n(o)}).catch(o=>{v(o),e(o)})})}}})()},ke=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"taxType",state:()=>({taxTypes:[],currentTaxType:{id:null,name:"",percent:0,description:"",compound_tax:!1,collective_tax:0}}),getters:{isEdit:a=>!!a.currentTaxType.id},actions:{resetCurrentTaxType(){this.currentTaxType={id:null,name:"",percent:0,description:"",compound_tax:!1,collective_tax:0}},fetchTaxTypes(a){return new Promise((t,n)=>{f.get("/api/v1/tax-types",{params:a}).then(e=>{this.taxTypes=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchTaxType(a){return new Promise((t,n)=>{f.get(`/api/v1/tax-types/${a}`).then(e=>{this.currentTaxType=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},addTaxType(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/tax-types",a).then(o=>{this.taxTypes.push(o.data.data),t.showNotification({type:"success",message:i.t("settings.tax_types.created_message")}),n(o)}).catch(o=>{v(o),e(o)})})},updateTaxType(a){const t=M();return new Promise((n,e)=>{f.put(`/api/v1/tax-types/${a.id}`,a).then(o=>{if(o.data){let m=this.taxTypes.findIndex(p=>p.id===o.data.data.id);this.taxTypes[m]=a.taxTypes,t.showNotification({type:"success",message:i.t("settings.tax_types.updated_message")})}n(o)}).catch(o=>{v(o),e(o)})})},fetchSalesTax(a){return new Promise((t,n)=>{f.post("/api/m/sales-tax-us/current-tax",a).then(e=>{if(e.data){let o=this.taxTypes.findIndex(m=>m.name==="SalesTaxUs");o>-1&&this.taxTypes.splice(o,1),this.taxTypes.push(W(R({},e.data.data),{tax_type_id:e.data.data.id}))}t(e)}).catch(e=>{v(e),n(e)})})},deleteTaxType(a){return new Promise((t,n)=>{f.delete(`/api/v1/tax-types/${a}`).then(e=>{if(e.data.success){let o=this.taxTypes.findIndex(p=>p.id===a);this.taxTypes.splice(o,1),M().showNotification({type:"success",message:i.t("settings.tax_types.deleted_message")})}t(e)}).catch(e=>{v(e),n(e)})})}}})()};var We={estimate_id:null,item_id:null,name:"",title:"",description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,sub_total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]},ie={name:"",tax_type_id:0,type:"GENERAL",amount:null,percent:null,compound_tax:!1};function St(){return{id:null,customer:null,template_name:"",tax_per_item:null,sales_tax_type:null,sales_tax_address_type:null,discount_per_item:null,estimate_date:"",expiry_date:"",estimate_number:"",customer_id:null,sub_total:0,total:0,tax:0,notes:"",discount_type:"fixed",discount_val:0,reference_number:null,discount:0,items:[W(R({},We),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})],taxes:[],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const He=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"estimate",state:()=>({templates:[],estimates:[],selectAllField:!1,selectedEstimates:[],totalEstimateCount:0,isFetchingInitialSettings:!1,showExchangeRate:!1,newEstimate:R({},St())}),getters:{getSubTotal(){return this.newEstimate.items.reduce(function(a,t){return a+t.total},0)},getTotalSimpleTax(){return oe.sumBy(this.newEstimate.taxes,function(a){return a.compound_tax?0:a.amount})},getTotalCompoundTax(){return oe.sumBy(this.newEstimate.taxes,function(a){return a.compound_tax?a.amount:0})},getTotalTax(){return this.newEstimate.tax_per_item==="NO"||this.newEstimate.tax_per_item===null?this.getTotalSimpleTax+this.getTotalCompoundTax:oe.sumBy(this.newEstimate.items,function(a){return a.tax})},getSubtotalWithDiscount(){return this.getSubTotal-this.newEstimate.discount_val},getTotal(){return this.getSubtotalWithDiscount+this.getTotalTax},isEdit:a=>!!a.newEstimate.id},actions:{resetCurrentEstimate(){this.newEstimate=R({},St())},previewEstimate(a){return new Promise((t,n)=>{f.get(`/api/v1/estimates/${a.id}/send/preview`,{params:a}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},fetchEstimates(a){return new Promise((t,n)=>{f.get("/api/v1/estimates",{params:a}).then(e=>{this.estimates=e.data.data,this.totalEstimateCount=e.data.meta.estimate_total_count,t(e)}).catch(e=>{v(e),n(e)})})},getNextNumber(a,t=!1){return new Promise((n,e)=>{f.get("/api/v1/next-number?key=estimate",{params:a}).then(o=>{t&&(this.newEstimate.estimate_number=o.data.nextNumber),n(o)}).catch(o=>{v(o),e(o)})})},fetchEstimate(a){return new Promise((t,n)=>{f.get(`/api/v1/estimates/${a}`).then(e=>{Object.assign(this.newEstimate,e.data.data),t(e)}).catch(e=>{console.log(e),v(e),n(e)})})},addSalesTaxUs(){const a=ke();let t=R({},ie),n=this.newEstimate.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(n){for(const e in n)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=n[e]);t.id=n.tax_type_id,console.log(t,"salesTax"),a.taxTypes.push(t),console.log(a.taxTypes)}},sendEstimate(a){const t=M();return new Promise((n,e)=>{f.post(`/api/v1/estimates/${a.id}/send`,a).then(o=>{a.is_preview||t.showNotification({type:"success",message:i.t("estimates.send_estimate_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},addEstimate(a){return new Promise((t,n)=>{f.post("/api/v1/estimates",a).then(e=>{this.estimates=[...this.estimates,e.data.estimate],M().showNotification({type:"success",message:i.t("estimates.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},deleteEstimate(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/estimates/delete",a).then(o=>{let m=this.estimates.findIndex(p=>p.id===a);this.estimates.splice(m,1),t.showNotification({type:"success",message:i.t("estimates.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleEstimates(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/estimates/delete",{ids:this.selectedEstimates}).then(o=>{this.selectedEstimates.forEach(m=>{let p=this.estimates.findIndex(k=>k.id===m.id);this.estimates.splice(p,1)}),this.selectedEstimates=[],t.showNotification({type:"success",message:i.tc("estimates.deleted_message",2)}),n(o)}).catch(o=>{v(o),e(o)})})},updateEstimate(a){return new Promise((t,n)=>{f.put(`/api/v1/estimates/${a.id}`,a).then(e=>{let o=this.estimates.findIndex(p=>p.id===e.data.data.id);this.estimates[o]=e.data.data,M().showNotification({type:"success",message:i.t("estimates.updated_message")}),t(e)}).catch(e=>{v(e),n(e)})})},markAsAccepted(a){return new Promise((t,n)=>{f.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let o=this.estimates.findIndex(m=>m.id===a.id);this.estimates[o]&&(this.estimates[o].status="ACCEPTED",M().showNotification({type:"success",message:i.t("estimates.marked_as_accepted_message")})),t(e)}).catch(e=>{v(e),n(e)})})},markAsRejected(a){return new Promise((t,n)=>{f.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{M().showNotification({type:"success",message:i.t("estimates.marked_as_rejected_message")}),t(e)}).catch(e=>{v(e),n(e)})})},markAsSent(a){return new Promise((t,n)=>{f.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let o=this.estimates.findIndex(m=>m.id===a.id);this.estimates[o]&&(this.estimates[o].status="SENT",M().showNotification({type:"success",message:i.t("estimates.mark_as_sent_successfully")})),t(e)}).catch(e=>{v(e),n(e)})})},convertToInvoice(a){const t=M();return new Promise((n,e)=>{f.post(`/api/v1/estimates/${a}/convert-to-invoice`).then(o=>{t.showNotification({type:"success",message:i.t("estimates.conversion_message")}),n(o)}).catch(o=>{v(o),e(o)})})},searchEstimate(a){return new Promise((t,n)=>{f.get(`/api/v1/estimates?${a}`).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},selectEstimate(a){this.selectedEstimates=a,this.selectedEstimates.length===this.estimates.length?this.selectAllField=!0:this.selectAllField=!1},selectAllEstimates(){if(this.selectedEstimates.length===this.estimates.length)this.selectedEstimates=[],this.selectAllField=!1;else{let a=this.estimates.map(t=>t.id);this.selectedEstimates=a,this.selectAllField=!0}},selectCustomer(a){return new Promise((t,n)=>{f.get(`/api/v1/customers/${a}`).then(e=>{this.newEstimate.customer=e.data.data,this.newEstimate.customer_id=e.data.data.id,t(e)}).catch(e=>{v(e),n(e)})})},fetchEstimateTemplates(a){return new Promise((t,n)=>{f.get("/api/v1/estimates/templates",{params:a}).then(e=>{this.templates=e.data.estimateTemplates,t(e)}).catch(e=>{v(e),n(e)})})},setTemplate(a){this.newEstimate.template_name=a},resetSelectedCustomer(){this.newEstimate.customer=null,this.newEstimate.customer_id=""},selectNote(a){this.newEstimate.selectedNote=null,this.newEstimate.selectedNote=a},resetSelectedNote(){this.newEstimate.selectedNote=null},addItem(){this.newEstimate.items.push(W(R({},We),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]}))},updateItem(a){Object.assign(this.newEstimate.items[a.index],R({},a))},removeItem(a){this.newEstimate.items.splice(a,1)},deselectItem(a){this.newEstimate.items[a]=W(R({},We),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})},async fetchEstimateInitialSettings(a){const t=_e(),n=be(),e=Fe(),o=ke(),m=fe();if(this.isFetchingInitialSettings=!0,this.newEstimate.selectedCurrency=t.selectedCompanyCurrency,m.query.customer){let k=await n.fetchCustomer(m.query.customer);this.newEstimate.customer=k.data.data,this.newEstimate.customer_id=k.data.data.id}let p=[];a?p=[this.fetchEstimate(m.params.id)]:(this.newEstimate.tax_per_item=t.selectedCompanySettings.tax_per_item,this.newEstimate.sales_tax_type=t.selectedCompanySettings.sales_tax_type,this.newEstimate.sales_tax_address_type=t.selectedCompanySettings.sales_tax_address_type,this.newEstimate.discount_per_item=t.selectedCompanySettings.discount_per_item,this.newEstimate.estimate_date=ye().format("YYYY-MM-DD"),t.selectedCompanySettings.estimate_set_expiry_date_automatically==="YES"&&(this.newEstimate.expiry_date=ye().add(t.selectedCompanySettings.estimate_expiry_date_days,"days").format("YYYY-MM-DD"))),Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),this.fetchEstimateTemplates(),this.getNextNumber(),o.fetchTaxTypes({limit:"all"}),...p]).then(async([k,x,b,h,E,$,I])=>{a||(h.data&&(this.newEstimate.estimate_number=h.data.nextNumber),this.setTemplate(this.templates[0].name)),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(k=>{v(k),this.isFetchingInitialSettings=!1})}}})()};var Ge={invoice_id:null,item_id:null,name:"",title:"",description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]};function jt(){return{id:null,invoice_number:"",customer:null,customer_id:null,template_name:null,invoice_date:"",due_date:"",notes:"",discount:0,discount_type:"fixed",discount_val:0,reference_number:null,tax:0,sub_total:0,total:0,tax_per_item:null,sales_tax_type:null,sales_tax_address_type:null,discount_per_item:null,taxes:[],items:[W(R({},Ge),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const Me=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n,a=M();return r({id:"invoice",state:()=>({templates:[],invoices:[],selectedInvoices:[],selectAllField:!1,invoiceTotalCount:0,showExchangeRate:!1,isFetchingInitialSettings:!1,isFetchingInvoice:!1,newInvoice:R({},jt())}),getters:{getInvoice:t=>n=>{let e=parseInt(n);return t.invoices.find(o=>o.id===e)},getSubTotal(){return this.newInvoice.items.reduce(function(t,n){return t+n.total},0)},getTotalSimpleTax(){return oe.sumBy(this.newInvoice.taxes,function(t){return t.compound_tax?0:t.amount})},getTotalCompoundTax(){return oe.sumBy(this.newInvoice.taxes,function(t){return t.compound_tax?t.amount:0})},getTotalTax(){return this.newInvoice.tax_per_item==="NO"||this.newInvoice.tax_per_item===null?this.getTotalSimpleTax+this.getTotalCompoundTax:oe.sumBy(this.newInvoice.items,function(t){return t.tax})},getSubtotalWithDiscount(){return this.getSubTotal-this.newInvoice.discount_val},getTotal(){return this.getSubtotalWithDiscount+this.getTotalTax},isEdit:t=>!!t.newInvoice.id},actions:{resetCurrentInvoice(){this.newInvoice=R({},jt())},previewInvoice(t){return new Promise((n,e)=>{f.get(`/api/v1/invoices/${t.id}/send/preview`,{params:t}).then(o=>{n(o)}).catch(o=>{v(o),e(o)})})},fetchInvoices(t){return new Promise((n,e)=>{f.get("/api/v1/invoices",{params:t}).then(o=>{this.invoices=o.data.data,this.invoiceTotalCount=o.data.meta.invoice_total_count,n(o)}).catch(o=>{v(o),e(o)})})},fetchInvoice(t){return new Promise((n,e)=>{f.get(`/api/v1/invoices/${t}`).then(o=>{Object.assign(this.newInvoice,o.data.data),this.newInvoice.customer=o.data.data.customer,n(o)}).catch(o=>{v(o),e(o)})})},addSalesTaxUs(){const t=ke();let n=R({},ie),e=this.newInvoice.taxes.find(o=>o.name==="Sales Tax"&&o.type==="MODULE");if(e){for(const o in e)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=e[o]);n.id=e.tax_type_id,t.taxTypes.push(n)}},sendInvoice(t){return new Promise((n,e)=>{f.post(`/api/v1/invoices/${t.id}/send`,t).then(o=>{a.showNotification({type:"success",message:i.t("invoices.invoice_sent_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},addInvoice(t){return new Promise((n,e)=>{f.post("/api/v1/invoices",t).then(o=>{this.invoices=[...this.invoices,o.data.invoice],a.showNotification({type:"success",message:i.t("invoices.created_message")}),n(o)}).catch(o=>{v(o),e(o)})})},deleteInvoice(t){return new Promise((n,e)=>{f.post("/api/v1/invoices/delete",t).then(o=>{let m=this.invoices.findIndex(p=>p.id===t);this.invoices.splice(m,1),a.showNotification({type:"success",message:i.t("invoices.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleInvoices(t){return new Promise((n,e)=>{f.post("/api/v1/invoices/delete",{ids:this.selectedInvoices}).then(o=>{this.selectedInvoices.forEach(m=>{let p=this.invoices.findIndex(k=>k.id===m.id);this.invoices.splice(p,1)}),this.selectedInvoices=[],a.showNotification({type:"success",message:i.tc("invoices.deleted_message",2)}),n(o)}).catch(o=>{v(o),e(o)})})},updateInvoice(t){return new Promise((n,e)=>{f.put(`/api/v1/invoices/${t.id}`,t).then(o=>{let m=this.invoices.findIndex(p=>p.id===o.data.data.id);this.invoices[m]=o.data.data,a.showNotification({type:"success",message:i.t("invoices.updated_message")}),n(o)}).catch(o=>{v(o),e(o)})})},cloneInvoice(t){return new Promise((n,e)=>{f.post(`/api/v1/invoices/${t.id}/clone`,t).then(o=>{a.showNotification({type:"success",message:i.t("invoices.cloned_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},markAsSent(t){return new Promise((n,e)=>{f.post(`/api/v1/invoices/${t.id}/status`,t).then(o=>{let m=this.invoices.findIndex(p=>p.id===t.id);this.invoices[m]&&(this.invoices[m].status="SENT"),a.showNotification({type:"success",message:i.t("invoices.mark_as_sent_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},getNextNumber(t,n=!1){return new Promise((e,o)=>{f.get("/api/v1/next-number?key=invoice",{params:t}).then(m=>{n&&(this.newInvoice.invoice_number=m.data.nextNumber),e(m)}).catch(m=>{v(m),o(m)})})},searchInvoice(t){return new Promise((n,e)=>{f.get(`/api/v1/invoices?${t}`).then(o=>{n(o)}).catch(o=>{v(o),e(o)})})},selectInvoice(t){this.selectedInvoices=t,this.selectedInvoices.length===this.invoices.length?this.selectAllField=!0:this.selectAllField=!1},selectAllInvoices(){if(this.selectedInvoices.length===this.invoices.length)this.selectedInvoices=[],this.selectAllField=!1;else{let t=this.invoices.map(n=>n.id);this.selectedInvoices=t,this.selectAllField=!0}},selectCustomer(t){return new Promise((n,e)=>{f.get(`/api/v1/customers/${t}`).then(o=>{this.newInvoice.customer=o.data.data,this.newInvoice.customer_id=o.data.data.id,n(o)}).catch(o=>{v(o),e(o)})})},fetchInvoiceTemplates(t){return new Promise((n,e)=>{f.get("/api/v1/invoices/templates",{params:t}).then(o=>{this.templates=o.data.invoiceTemplates,n(o)}).catch(o=>{v(o),e(o)})})},selectNote(t){this.newInvoice.selectedNote=null,this.newInvoice.selectedNote=t},setTemplate(t){this.newInvoice.template_name=t},resetSelectedCustomer(){this.newInvoice.customer=null,this.newInvoice.customer_id=null},addItem(){this.newInvoice.items.push(W(R({},Ge),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]}))},updateItem(t){Object.assign(this.newInvoice.items[t.index],R({},t))},removeItem(t){this.newInvoice.items.splice(t,1)},deselectItem(t){this.newInvoice.items[t]=W(R({},Ge),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})},resetSelectedNote(){this.newInvoice.selectedNote=null},async fetchInvoiceInitialSettings(t){const n=_e(),e=be(),o=Fe(),m=ke(),p=fe();if(this.isFetchingInitialSettings=!0,this.newInvoice.selectedCurrency=n.selectedCompanyCurrency,p.query.customer){let x=await e.fetchCustomer(p.query.customer);this.newInvoice.customer=x.data.data,this.newInvoice.customer_id=x.data.data.id}let k=[];t?k=[this.fetchInvoice(p.params.id)]:(this.newInvoice.tax_per_item=n.selectedCompanySettings.tax_per_item,this.newInvoice.sales_tax_type=n.selectedCompanySettings.sales_tax_type,this.newInvoice.sales_tax_address_type=n.selectedCompanySettings.sales_tax_address_type,this.newInvoice.discount_per_item=n.selectedCompanySettings.discount_per_item,this.newInvoice.invoice_date=ye().format("YYYY-MM-DD"),n.selectedCompanySettings.invoice_set_due_date_automatically==="YES"&&(this.newInvoice.due_date=ye().add(n.selectedCompanySettings.invoice_due_date_days,"days").format("YYYY-MM-DD"))),Promise.all([o.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),this.fetchInvoiceTemplates(),this.getNextNumber(),m.fetchTaxTypes({limit:"all"}),...k]).then(async([x,b,h,E,$,I])=>{t||(E.data&&(this.newInvoice.invoice_number=E.data.nextNumber),h.data&&this.setTemplate(this.templates[0].name)),t&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(x=>{v(x),reject(x)})}}})()},Uk={class:"relative flex px-4 py-2 rounded-lg bg-opacity-40 bg-gray-300 whitespace-nowrap flex-col mt-1"},Kk=c("rect",{width:"37",height:"37",rx:"10",fill:"currentColor"},null,-1),qk=c("path",{d:"M16 10C15.7348 10 15.4804 10.1054 15.2929 10.2929C15.1054 10.4804 15 10.7348 15 11C15 11.2652 15.1054 11.5196 15.2929 11.7071C15.4804 11.8946 15.7348 12 16 12H18C18.2652 12 18.5196 11.8946 18.7071 11.7071C18.8946 11.5196 19 11.2652 19 11C19 10.7348 18.8946 10.4804 18.7071 10.2929C18.5196 10.1054 18.2652 10 18 10H16Z",fill:"white"},null,-1),Zk=c("path",{d:"M11 13C11 12.4696 11.2107 11.9609 11.5858 11.5858C11.9609 11.2107 12.4696 11 13 11C13 11.7956 13.3161 12.5587 13.8787 13.1213C14.4413 13.6839 15.2044 14 16 14H18C18.7956 14 19.5587 13.6839 20.1213 13.1213C20.6839 12.5587 21 11.7956 21 11C21.5304 11 22.0391 11.2107 22.4142 11.5858C22.7893 11.9609 23 12.4696 23 13V19H18.414L19.707 17.707C19.8892 17.5184 19.99 17.2658 19.9877 17.0036C19.9854 16.7414 19.8802 16.4906 19.6948 16.3052C19.5094 16.1198 19.2586 16.0146 18.9964 16.0123C18.7342 16.01 18.4816 16.1108 18.293 16.293L15.293 19.293C15.1055 19.4805 15.0002 19.7348 15.0002 20C15.0002 20.2652 15.1055 20.5195 15.293 20.707L18.293 23.707C18.4816 23.8892 18.7342 23.99 18.9964 23.9877C19.2586 23.9854 19.5094 23.8802 19.6948 23.6948C19.8802 23.5094 19.9854 23.2586 19.9877 22.9964C19.99 22.7342 19.8892 22.4816 19.707 22.293L18.414 21H23V24C23 24.5304 22.7893 25.0391 22.4142 25.4142C22.0391 25.7893 21.5304 26 21 26H13C12.4696 26 11.9609 25.7893 11.5858 25.4142C11.2107 25.0391 11 24.5304 11 24V13ZM23 19H25C25.2652 19 25.5196 19.1054 25.7071 19.2929C25.8946 19.4804 26 19.7348 26 20C26 20.2652 25.8946 20.5196 25.7071 20.7071C25.5196 20.8946 25.2652 21 25 21H23V19Z",fill:"white"},null,-1),Wk=[Kk,qk,Zk],Hk={props:{token:{type:String,default:null,required:!0}},setup(s){const r=M(),i=q(""),{t:a}=Se();function t(e){let o;document.selection?(o=document.body.createTextRange(),o.moveToElementText(e),o.select()):window.getSelection&&(o=document.createRange(),o.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(o))}function n(){t(i.value),document.execCommand("copy"),r.showNotification({type:"success",message:a("general.copied_url_clipboard")})}return(e,o)=>{const m=et("tooltip");return l(),_("div",Uk,[c("span",{ref:(p,k)=>{k.publicUrl=p,i.value=p},class:"pr-10 text-sm font-medium text-black truncate select-all select-color"},w(s.token),513),xe((l(),_("svg",{class:"absolute right-0 h-full inset-y-0 cursor-pointer focus:outline-none text-primary-500",width:"37",viewBox:"0 0 37 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n},Wk,512)),[[m,{content:"Copy to Clipboard"}]])])}}};var Ye={recurring_invoice_id:null,item_id:null,name:"",title:"",sales_tax_type:null,sales_tax_address_type:null,description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]};function Pt(){return{currency:null,customer:null,customer_id:null,invoice_template_id:1,sub_total:0,total:0,tax:0,notes:"",discount_type:"fixed",discount_val:0,discount:0,starts_at:null,send_automatically:!0,status:"ACTIVE",company_id:null,next_invoice_at:null,next_invoice_date:null,frequency:"0 0 * * 0",limit_count:null,limit_by:"NONE",limit_date:null,exchange_rate:null,tax_per_item:null,discount_per_item:null,template_name:null,items:[W(R({},Ye),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})],taxes:[],customFields:[],fields:[],invoices:[],selectedNote:null,selectedFrequency:{label:"Every Week",value:"0 0 * * 0"},selectedInvoice:null}}const Dt=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"recurring-invoice",state:()=>({templates:[],recurringInvoices:[],selectedRecurringInvoices:[],totalRecurringInvoices:0,isFetchingInitialSettings:!1,isFetchingViewData:!1,showExchangeRate:!1,selectAllField:!1,newRecurringInvoice:R({},Pt()),frequencies:[{label:"Every Minute",value:"* * * * *"},{label:"Every 30 Minute",value:"*/30 * * * *"},{label:"Every Hour",value:"0 * * * *"},{label:"Every 2 Hour",value:"0 */2 * * *"},{label:"Twice A Day",value:"0 13-15 * * *"},{label:"Every Week",value:"0 0 * * 0"},{label:"Every 15 Days",value:"0 5 */15 * *"},{label:"First Day Of Month",value:"0 0 1 * *"},{label:"Every 6 Month",value:"0 0 1 */6 *"},{label:"Every Year",value:"0 0 1 1 *"},{label:"Custom",value:"CUSTOM"}]}),getters:{getSubTotal(){var a;return((a=this.newRecurringInvoice)==null?void 0:a.items.reduce(function(t,n){return t+n.total},0))||0},getTotalSimpleTax(){return oe.sumBy(this.newRecurringInvoice.taxes,function(a){return a.compound_tax?0:a.amount})},getTotalCompoundTax(){return oe.sumBy(this.newRecurringInvoice.taxes,function(a){return a.compound_tax?a.amount:0})},getTotalTax(){return this.newRecurringInvoice.tax_per_item==="NO"||this.newRecurringInvoice.tax_per_item===null?this.getTotalSimpleTax+this.getTotalCompoundTax:oe.sumBy(this.newRecurringInvoice.items,function(a){return a.tax})},getSubtotalWithDiscount(){return this.getSubTotal-this.newRecurringInvoice.discount_val},getTotal(){return this.getSubtotalWithDiscount+this.getTotalTax}},actions:{resetCurrentRecurringInvoice(){this.newRecurringInvoice=R({},Pt())},deselectItem(a){this.newRecurringInvoice.items[a]=W(R({},Ye),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})},addRecurringInvoice(a){return new Promise((t,n)=>{f.post("/api/v1/recurring-invoices",a).then(e=>{this.recurringInvoices=[...this.recurringInvoices,e.data.recurringInvoice],M().showNotification({type:"success",message:i.t("recurring_invoices.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},fetchRecurringInvoice(a){return new Promise((t,n)=>{this.isFetchingViewData=!0,f.get(`/api/v1/recurring-invoices/${a}`).then(e=>{Object.assign(this.newRecurringInvoice,e.data.data),this.newRecurringInvoice.invoices=e.data.data.invoices||[],this.setSelectedFrequency(),this.isFetchingViewData=!1,t(e)}).catch(e=>{this.isFetchingViewData=!1,v(e),n(e)})})},updateRecurringInvoice(a){return new Promise((t,n)=>{f.put(`/api/v1/recurring-invoices/${a.id}`,a).then(e=>{t(e),M().showNotification({type:"success",message:i.t("recurring_invoices.updated_message")});let m=this.recurringInvoices.findIndex(p=>p.id===e.data.data.id);this.recurringInvoices[m]=e.data.data}).catch(e=>{v(e),n(e)})})},selectCustomer(a){return new Promise((t,n)=>{f.get(`/api/v1/customers/${a}`).then(e=>{this.newRecurringInvoice.customer=e.data.data,this.newRecurringInvoice.customer_id=e.data.data.id,t(e)}).catch(e=>{v(e),n(e)})})},searchRecurringInvoice(a){return new Promise((t,n)=>{f.get(`/api/v1/recurring-invoices?${a}`).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},fetchRecurringInvoices(a){return new Promise((t,n)=>{f.get("/api/v1/recurring-invoices",{params:a}).then(e=>{this.recurringInvoices=e.data.data,this.totalRecurringInvoices=e.data.meta.recurring_invoice_total_count,t(e)}).catch(e=>{v(e),n(e)})})},deleteRecurringInvoice(a){return new Promise((t,n)=>{f.post("/api/v1/recurring-invoices/delete",a).then(e=>{let o=this.recurringInvoices.findIndex(m=>m.id===a);this.recurringInvoices.splice(o,1),t(e)}).catch(e=>{v(e),n(e)})})},deleteMultipleRecurringInvoices(a){return new Promise((t,n)=>{let e=this.selectedRecurringInvoices;a&&(e=[a]),f.post("/api/v1/recurring-invoices/delete",{ids:e}).then(o=>{this.selectedRecurringInvoices.forEach(m=>{let p=this.recurringInvoices.findIndex(k=>k.id===m.id);this.recurringInvoices.splice(p,1)}),this.selectedRecurringInvoices=[],t(o)}).catch(o=>{v(o),n(o)})})},resetSelectedCustomer(){this.newRecurringInvoice.customer=null,this.newRecurringInvoice.customer_id=""},selectRecurringInvoice(a){this.selectedRecurringInvoices=a,this.selectedRecurringInvoices.length===this.recurringInvoices.length?this.selectAllField=!0:this.selectAllField=!1},selectAllRecurringInvoices(){if(this.selectedRecurringInvoices.length===this.recurringInvoices.length)this.selectedRecurringInvoices=[],this.selectAllField=!1;else{let a=this.recurringInvoices.map(t=>t.id);this.selectedRecurringInvoices=a,this.selectAllField=!0}},addItem(){this.newRecurringInvoice.items.push(W(R({},Ye),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]}))},removeItem(a){this.newRecurringInvoice.items.splice(a,1)},updateItem(a){Object.assign(this.newRecurringInvoice.items[a.index],R({},a))},async fetchRecurringInvoiceInitialSettings(a){const t=_e(),n=be(),e=Fe(),o=Me(),m=ke(),p=fe();if(this.isFetchingInitialSettings=!0,this.newRecurringInvoice.currency=t.selectedCompanyCurrency,p.query.customer){let x=await n.fetchCustomer(p.query.customer);this.newRecurringInvoice.customer=x.data.data,this.selectCustomer(x.data.data.id)}let k=[];a?k=[this.fetchRecurringInvoice(p.params.id)]:(this.newRecurringInvoice.tax_per_item=t.selectedCompanySettings.tax_per_item,this.newRecurringInvoice.discount_per_item=t.selectedCompanySettings.discount_per_item,this.newRecurringInvoice.sales_tax_type=t.selectedCompanySettings.sales_tax_type,this.newRecurringInvoice.sales_tax_address_type=t.selectedCompanySettings.sales_tax_address_type,this.newRecurringInvoice.starts_at=ye().format("YYYY-MM-DD"),this.newRecurringInvoice.next_invoice_date=ye().add(7,"days").format("YYYY-MM-DD")),Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),o.fetchInvoiceTemplates(),m.fetchTaxTypes({limit:"all"}),...k]).then(async([x,b,h,E,$])=>{var I,z;h.data&&(this.templates=o.templates),a||this.setTemplate(this.templates[0].name),a&&($==null?void 0:$.data)&&(R({},$.data.data),this.setTemplate((z=(I=$==null?void 0:$.data)==null?void 0:I.data)==null?void 0:z.template_name)),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(x=>{console.log(x),v(x)})},addSalesTaxUs(){const a=ke();let t=R({},ie),n=this.newRecurringInvoice.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(n){for(const e in n)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=n[e]);t.id=n.tax_type_id,a.taxTypes.push(t)}},setTemplate(a){this.newRecurringInvoice.template_name=a},setSelectedFrequency(){let a=this.frequencies.find(t=>t.value===this.newRecurringInvoice.frequency);a?this.newRecurringInvoice.selectedFrequency=a:this.newRecurringInvoice.selectedFrequency={label:"Custom",value:"CUSTOM"}},resetSelectedNote(){this.newRecurringInvoice.selectedNote=null},fetchRecurringInvoiceFrequencyDate(a){return new Promise((t,n)=>{f.get("/api/v1/recurring-invoice-frequency",{params:a}).then(e=>{this.newRecurringInvoice.next_invoice_at=e.data.next_invoice_at,t(e)}).catch(e=>{M().showNotification({type:"error",message:i.t("errors.enter_valid_cron_format")}),n(e)})})}}})()},Gk={class:"flex justify-between w-full"},Yk=["onSubmit"],Jk={class:"px-6 pb-3"},Xk={class:"md:col-span-2"},Qk={class:"text-sm text-gray-500"},ew={class:"grid md:grid-cols-12"},tw={class:"flex justify-end col-span-12"},aw={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Ct={setup(s){const r=Dt(),i=Pe(),a=He(),t=be(),n=_e(),e=Ie(),o=Me(),m=M();let p=q(!1);const{t:k}=Se(),x=fe();q(!1);const b=q(!1);let h=q(!1),E=q(!1);const $=D(()=>i.active&&i.componentName==="CustomerModal"),I=D(()=>({name:{required:te.withMessage(k("validation.required"),tt),minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ve(3))},currency_id:{required:te.withMessage(k("validation.required"),tt)},password:{required:te.withMessage(k("validation.required"),at(t.currentCustomer.enable_portal==!0&&!t.currentCustomer.password_added)),minLength:te.withMessage(k("validation.password_min_length",{count:8}),Ve(8))},confirm_password:{sameAsPassword:te.withMessage(k("validation.password_incorrect"),Ut(t.currentCustomer.password))},email:{required:te.withMessage(k("validation.required"),at(t.currentCustomer.enable_portal==!0)),email:te.withMessage(k("validation.email_incorrect"),Kt)},prefix:{minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ve(3))},website:{url:te.withMessage(k("validation.invalid_url"),qt)},billing:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))}},shipping:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))}}})),z=Zt(I,D(()=>t.currentCustomer)),V=D(()=>`${window.location.origin}/${n.selectedCompany.slug}/customer/login`);function L(){t.copyAddress()}async function G(){t.isEdit||(t.currentCustomer.currency_id=n.selectedCompanyCurrency.id)}async function me(){if(t.currentCustomer.email===""&&m.showNotification({type:"error",message:k("settings.notification.please_enter_email")}),z.value.$touch(),z.value.$invalid)return!0;b.value=!0;let N=R({},t.currentCustomer);try{let y=null;t.isEdit?y=await t.updateCustomer(N):y=await t.addCustomer(N),y.data&&(b.value=!1,(x.name==="invoices.create"||x.name==="invoices.edit")&&o.selectCustomer(y.data.data.id),(x.name==="estimates.create"||x.name==="estimates.edit")&&a.selectCustomer(y.data.data.id),(x.name==="recurring-invoices.create"||x.name==="recurring-invoices.edit")&&r.selectCustomer(y.data.data.id),Z())}catch(y){console.error(y),b.value=!1}}function Z(){i.closeModal(),setTimeout(()=>{t.resetCurrentCustomer(),z.value.$reset()},300)}return(N,y)=>{const ue=C("BaseIcon"),H=C("BaseInput"),U=C("BaseInputGroup"),we=C("BaseMultiselect"),de=C("BaseInputGrid"),he=C("BaseTab"),se=C("BaseSwitch"),ve=C("BaseTextarea"),De=C("BaseButton"),Et=C("BaseTabGroup"),Nt=C("BaseModal");return l(),T(Nt,{show:d($),onClose:Z,onOpen:G},{header:g(()=>[c("div",Gk,[K(w(d(i).title)+" ",1),u(ue,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:Z})])]),default:g(()=>[c("form",{action:"",onSubmit:re(me,["prevent"])},[c("div",Jk,[u(Et,null,{default:g(()=>[u(he,{title:N.$t("customers.basic_info"),class:"!mt-2"},{default:g(()=>[u(de,{layout:"one-column"},{default:g(()=>[u(U,{label:N.$t("customers.display_name"),required:"",error:d(z).name.$error&&d(z).name.$errors[0].$message},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.name,"onUpdate:modelValue":y[0]||(y[0]=P=>d(t).currentCustomer.name=P),modelModifiers:{trim:!0},type:"text",name:"name",class:"mt-1 md:mt-0",invalid:d(z).name.$error,onInput:y[1]||(y[1]=P=>d(z).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(U,{label:N.$tc("settings.currencies.currency"),required:"",error:d(z).currency_id.$error&&d(z).currency_id.$errors[0].$message},{default:g(()=>[u(we,{modelValue:d(t).currentCustomer.currency_id,"onUpdate:modelValue":y[2]||(y[2]=P=>d(t).currentCustomer.currency_id=P),options:d(e).currencies,"value-prop":"id",searchable:"",placeholder:N.$t("customers.select_currency"),"max-height":200,class:"mt-1 md:mt-0","track-by":"name",invalid:d(z).currency_id.$error,label:"name"},null,8,["modelValue","options","placeholder","invalid"])]),_:1},8,["label","error"]),u(U,{label:N.$t("customers.primary_contact_name")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.contact_name,"onUpdate:modelValue":y[3]||(y[3]=P=>d(t).currentCustomer.contact_name=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("login.email"),error:d(z).email.$error&&d(z).email.$errors[0].$message},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.email,"onUpdate:modelValue":y[4]||(y[4]=P=>d(t).currentCustomer.email=P),modelModifiers:{trim:!0},type:"text",name:"email",class:"mt-1 md:mt-0",invalid:d(z).email.$error,onInput:y[5]||(y[5]=P=>d(z).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(U,{label:N.$t("customers.prefix"),error:d(z).prefix.$error&&d(z).prefix.$errors[0].$message,"content-loading":d(p)},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.prefix,"onUpdate:modelValue":y[6]||(y[6]=P=>d(t).currentCustomer.prefix=P),"content-loading":d(p),type:"text",name:"name",class:"",invalid:d(z).prefix.$error,onInput:y[7]||(y[7]=P=>d(z).prefix.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),u(de,null,{default:g(()=>[u(U,{label:N.$t("customers.phone")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.phone,"onUpdate:modelValue":y[8]||(y[8]=P=>d(t).currentCustomer.phone=P),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.website"),error:d(z).website.$error&&d(z).website.$errors[0].$message},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.website,"onUpdate:modelValue":y[9]||(y[9]=P=>d(t).currentCustomer.website=P),type:"url",class:"mt-1 md:mt-0",invalid:d(z).website.$error,onInput:y[10]||(y[10]=P=>d(z).website.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),_:1})]),_:1},8,["title"]),u(he,{title:N.$t("customers.portal_access")},{default:g(()=>[u(de,{class:"col-span-5 lg:col-span-4"},{default:g(()=>[c("div",Xk,[c("p",Qk,w(N.$t("customers.portal_access_text")),1),u(se,{modelValue:d(t).currentCustomer.enable_portal,"onUpdate:modelValue":y[11]||(y[11]=P=>d(t).currentCustomer.enable_portal=P),class:"mt-1 flex"},null,8,["modelValue"])]),d(t).currentCustomer.enable_portal?(l(),T(U,{key:0,"content-loading":d(p),label:N.$t("customers.portal_access_url"),class:"md:col-span-2","help-text":N.$t("customers.portal_access_url_help")},{default:g(()=>[u(Hk,{token:d(V)},null,8,["token"])]),_:1},8,["content-loading","label","help-text"])):S("",!0),d(t).currentCustomer.enable_portal?(l(),T(U,{key:1,"content-loading":d(p),error:d(z).password.$error&&d(z).password.$errors[0].$message,label:N.$t("customers.password")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.password,"onUpdate:modelValue":y[14]||(y[14]=P=>d(t).currentCustomer.password=P),modelModifiers:{trim:!0},"content-loading":d(p),type:d(h)?"text":"password",name:"password",invalid:d(z).password.$error,onInput:y[15]||(y[15]=P=>d(z).password.$touch())},{right:g(()=>[d(h)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[12]||(y[12]=P=>J(h)?h.value=!d(h):h=!d(h))})):(l(),T(ue,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[13]||(y[13]=P=>J(h)?h.value=!d(h):h=!d(h))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["content-loading","error","label"])):S("",!0),d(t).currentCustomer.enable_portal?(l(),T(U,{key:2,error:d(z).confirm_password.$error&&d(z).confirm_password.$errors[0].$message,"content-loading":d(p),label:"Confirm Password"},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.confirm_password,"onUpdate:modelValue":y[18]||(y[18]=P=>d(t).currentCustomer.confirm_password=P),modelModifiers:{trim:!0},"content-loading":d(p),type:d(E)?"text":"password",name:"confirm_password",invalid:d(z).confirm_password.$error,onInput:y[19]||(y[19]=P=>d(z).confirm_password.$touch())},{right:g(()=>[d(E)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[16]||(y[16]=P=>J(E)?E.value=!d(E):E=!d(E))})):(l(),T(ue,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[17]||(y[17]=P=>J(E)?E.value=!d(E):E=!d(E))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["error","content-loading"])):S("",!0)]),_:1})]),_:1},8,["title"]),u(he,{title:N.$t("customers.billing_address"),class:"!mt-2"},{default:g(()=>[u(de,{layout:"one-column"},{default:g(()=>[u(U,{label:N.$t("customers.name")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.name,"onUpdate:modelValue":y[20]||(y[20]=P=>d(t).currentCustomer.billing.name=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.country")},{default:g(()=>[u(we,{modelValue:d(t).currentCustomer.billing.country_id,"onUpdate:modelValue":y[21]||(y[21]=P=>d(t).currentCustomer.billing.country_id=P),options:d(e).countries,searchable:"","show-labels":!1,placeholder:N.$t("general.select_country"),"allow-empty":!1,"track-by":"name",class:"mt-1 md:mt-0",label:"name","value-prop":"id"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.state")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.state,"onUpdate:modelValue":y[22]||(y[22]=P=>d(t).currentCustomer.billing.state=P),type:"text",name:"billingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.city")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.city,"onUpdate:modelValue":y[23]||(y[23]=P=>d(t).currentCustomer.billing.city=P),type:"text",name:"billingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.address"),error:d(z).billing.address_street_1.$error&&d(z).billing.address_street_1.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.billing.address_street_1,"onUpdate:modelValue":y[24]||(y[24]=P=>d(t).currentCustomer.billing.address_street_1=P),placeholder:N.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(z).billing.address_street_1.$error,onInput:y[25]||(y[25]=P=>d(z).billing.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:g(()=>[u(U,{error:d(z).billing.address_street_2.$error&&d(z).billing.address_street_2.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.billing.address_street_2,"onUpdate:modelValue":y[26]||(y[26]=P=>d(t).currentCustomer.billing.address_street_2=P),placeholder:N.$t("general.street_2"),rows:"2",cols:"50",invalid:d(z).billing.address_street_2.$error,onInput:y[27]||(y[27]=P=>d(z).billing.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(U,{label:N.$t("customers.phone")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.phone,"onUpdate:modelValue":y[28]||(y[28]=P=>d(t).currentCustomer.billing.phone=P),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.zip_code")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.zip,"onUpdate:modelValue":y[29]||(y[29]=P=>d(t).currentCustomer.billing.zip=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"]),u(he,{title:N.$t("customers.shipping_address"),class:"!mt-2"},{default:g(()=>[c("div",ew,[c("div",tw,[u(De,{variant:"primary",type:"button",size:"xs",onClick:y[30]||(y[30]=P=>L())},{default:g(()=>[K(w(N.$t("customers.copy_billing_address")),1)]),_:1})])]),u(de,{layout:"one-column"},{default:g(()=>[u(U,{label:N.$t("customers.name")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.name,"onUpdate:modelValue":y[31]||(y[31]=P=>d(t).currentCustomer.shipping.name=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.country")},{default:g(()=>[u(we,{modelValue:d(t).currentCustomer.shipping.country_id,"onUpdate:modelValue":y[32]||(y[32]=P=>d(t).currentCustomer.shipping.country_id=P),options:d(e).countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:N.$t("general.select_country"),"track-by":"name",class:"mt-1 md:mt-0",label:"name","value-prop":"id"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.state")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.state,"onUpdate:modelValue":y[33]||(y[33]=P=>d(t).currentCustomer.shipping.state=P),type:"text",name:"shippingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.city")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.city,"onUpdate:modelValue":y[34]||(y[34]=P=>d(t).currentCustomer.shipping.city=P),type:"text",name:"shippingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.address"),error:d(z).shipping.address_street_1.$error&&d(z).shipping.address_street_1.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.shipping.address_street_1,"onUpdate:modelValue":y[35]||(y[35]=P=>d(t).currentCustomer.shipping.address_street_1=P),placeholder:N.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(z).shipping.address_street_1.$error,onInput:y[36]||(y[36]=P=>d(z).shipping.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:g(()=>[u(U,{error:d(z).shipping.address_street_2.$error&&d(z).shipping.address_street_2.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.shipping.address_street_2,"onUpdate:modelValue":y[37]||(y[37]=P=>d(t).currentCustomer.shipping.address_street_2=P),placeholder:N.$t("general.street_2"),rows:"2",cols:"50",invalid:d(z).shipping.address_street_1.$error,onInput:y[38]||(y[38]=P=>d(z).shipping.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(U,{label:N.$t("customers.phone")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.phone,"onUpdate:modelValue":y[39]||(y[39]=P=>d(t).currentCustomer.shipping.phone=P),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.zip_code")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.zip,"onUpdate:modelValue":y[40]||(y[40]=P=>d(t).currentCustomer.shipping.zip=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"])]),_:1})]),c("div",aw,[u(De,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:Z},{default:g(()=>[K(w(N.$t("general.cancel")),1)]),_:1}),u(De,{loading:b.value,variant:"primary",type:"submit"},{left:g(P=>[b.value?S("",!0):(l(),T(ue,{key:0,name:"SaveIcon",class:A(P.class)},null,8,["class"]))]),default:g(()=>[K(" "+w(N.$t("general.save")),1)]),_:1},8,["loading"])])],40,Yk)]),_:1},8,["show"])}}},sw={props:{modelValue:{type:[String,Number,Object],default:""},fetchAll:{type:Boolean,default:!1},showAction:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,{t:a}=Se(),t=Pe(),n=be(),e=je(),o=D({get:()=>i.modelValue,set:k=>{r("update:modelValue",k)}});async function m(k){let x={search:k};return i.fetchAll&&(x.limit="all"),(await n.fetchCustomers(x)).data.data}async function p(){n.resetCurrentCustomer(),t.openModal({title:a("customers.add_new_customer"),componentName:"CustomerModal"})}return(k,x)=>{const b=C("BaseIcon"),h=C("BaseSelectAction"),E=C("BaseMultiselect");return l(),_(Q,null,[u(E,le({modelValue:d(o),"onUpdate:modelValue":x[0]||(x[0]=$=>J(o)?o.value=$:null)},k.$attrs,{"track-by":"name","value-prop":"id",label:"name","filter-results":!1,"resolve-on-load":"",delay:500,searchable:!0,options:m,"label-value":"name",placeholder:k.$t("customers.type_or_click"),"can-deselect":!1,class:"w-full"}),Wt({_:2},[s.showAction?{name:"action",fn:g(()=>[d(e).hasAbilities(d(O).CREATE_CUSTOMER)?(l(),T(h,{key:0,onClick:p},{default:g(()=>[u(b,{name:"UserAddIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),K(" "+w(k.$t("customers.add_new_customer")),1)]),_:1})):S("",!0)])}:void 0]),1040,["modelValue","placeholder"]),u(Ct)],64)}}};var nw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sw});const iw={key:1,class:"max-h-[173px]"},ow={class:"flex relative justify-between mb-2"},rw={class:"flex"},dw=["onClick"],lw={class:"grid grid-cols-2 gap-8 mt-2"},cw={key:0,class:"flex flex-col"},_w={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},uw={key:0,class:"flex flex-col flex-1 p-0 text-left"},mw={key:0,class:"relative w-11/12 text-sm truncate"},pw={class:"relative w-11/12 text-sm truncate"},gw={key:0},fw={key:1},hw={key:2},vw={key:1,class:"relative w-11/12 text-sm truncate"},yw={key:1,class:"flex flex-col"},bw={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},kw={key:0,class:"flex flex-col flex-1 p-0 text-left"},ww={key:0,class:"relative w-11/12 text-sm truncate"},xw={class:"relative w-11/12 text-sm truncate"},zw={key:0},Sw={key:1},jw={key:2},Pw={key:1,class:"relative w-11/12 text-sm truncate"},Dw={class:"relative flex justify-center px-0 p-0 py-16 bg-white border border-gray-200 border-solid rounded-md min-h-[170px]"},Cw={class:"mt-1"},Aw={class:"text-lg font-medium text-gray-900"},Ew=c("span",{class:"text-red-500"}," * ",-1),Nw={key:0,class:"text-red-500 text-sm absolute right-3 bottom-3"},Tw={key:0,class:"absolute min-w-full z-10"},Iw={class:"relative"},$w={class:"max-h-80 flex flex-col overflow-auto list border-t border-gray-200"},Rw=["onClick"],Fw={class:"flex items-center content-center justify-center w-10 h-10 mr-4 text-xl font-semibold leading-9 text-white bg-gray-300 rounded-full avatar"},Mw={class:"flex flex-col justify-center text-left"},Vw={key:0,class:"flex justify-center p-5 text-gray-400"},Bw={class:"text-base text-gray-500 cursor-pointer"},Ow={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},Lw={props:{valid:{type:Object,default:()=>{}},customerId:{type:Number,default:null},type:{type:String,default:null},contentLoading:{type:Boolean,default:!1}},setup(s){const r=s,i=Pe(),a=He(),t=be(),n=Ie(),e=Me(),o=Dt(),m=je(),p=fe(),{t:k}=Se(),x=q(null),b=q(!1),h=D(()=>{switch(r.type){case"estimate":return a.newEstimate.customer;case"invoice":return e.newInvoice.customer;case"recurring-invoice":return o.newRecurringInvoice.customer;default:return""}});function E(){r.type==="estimate"?a.resetSelectedCustomer():r.type==="invoice"?e.resetSelectedCustomer():o.resetSelectedCustomer()}r.customerId&&r.type==="estimate"?a.selectCustomer(r.customerId):r.customerId&&r.type==="invoice"?e.selectCustomer(r.customerId):r.customerId&&o.selectCustomer(r.customerId);async function $(){await t.fetchCustomer(h.value.id),i.openModal({title:k("customers.edit_customer"),componentName:"CustomerModal"})}async function I(){await t.fetchCustomers({filter:{},orderByField:"",orderBy:"",customer_id:r.customerId})}const z=Jt(()=>{b.value=!0,V()},500);async function V(){let Z={display_name:x.value,page:1};await t.fetchCustomers(Z),b.value=!1}function L(){i.openModal({title:k("customers.add_customer"),componentName:"CustomerModal",variant:"md"})}function G(Z){if(Z)return Z.split(" ")[0].charAt(0).toUpperCase()}function me(Z,N){let y={userId:Z};p.params.id&&(y.model_id=p.params.id),r.type==="estimate"?(a.getNextNumber(y,!0),a.selectCustomer(Z)):r.type==="invoice"?(e.getNextNumber(y,!0),e.selectCustomer(Z)):o.selectCustomer(Z),N(),x.value=null}return n.fetchCurrencies(),n.fetchCountries(),I(),(Z,N)=>{const y=C("BaseContentPlaceholdersBox"),ue=C("BaseContentPlaceholders"),H=C("BaseText"),U=C("BaseIcon"),we=C("BaseInput");return s.contentLoading?(l(),T(ue,{key:0},{default:g(()=>[u(y,{rounded:!0,class:"w-full",style:{"min-height":"170px"}})]),_:1})):(l(),_("div",iw,[u(Ct),d(h)?(l(),_("div",{key:0,class:"flex flex-col p-4 bg-white border border-gray-200 border-solid min-h-[170px] rounded-md",onClick:N[0]||(N[0]=re(()=>{},["stop"]))},[c("div",ow,[u(H,{text:d(h).name,length:30,class:"flex-1 text-base font-medium text-left text-gray-900"},null,8,["text"]),c("div",rw,[c("a",{class:"relative my-0 ml-6 text-sm font-medium cursor-pointer text-primary-500 items-center flex",onClick:re($,["stop"])},[u(U,{name:"PencilIcon",class:"text-gray-500 h-4 w-4 mr-1"}),K(" "+w(Z.$t("general.edit")),1)],8,dw),c("a",{class:"relative my-0 ml-6 text-sm flex items-center font-medium cursor-pointer text-primary-500",onClick:E},[u(U,{name:"XCircleIcon",class:"text-gray-500 h-4 w-4 mr-1"}),K(" "+w(Z.$t("general.deselect")),1)])])]),c("div",lw,[d(h).billing?(l(),_("div",cw,[c("label",_w,w(Z.$t("general.bill_to")),1),d(h).billing?(l(),_("div",uw,[d(h).billing.name?(l(),_("label",mw,w(d(h).billing.name),1)):S("",!0),c("label",pw,[d(h).billing.city?(l(),_("span",gw,w(d(h).billing.city),1)):S("",!0),d(h).billing.city&&d(h).billing.state?(l(),_("span",fw," , ")):S("",!0),d(h).billing.state?(l(),_("span",hw,w(d(h).billing.state),1)):S("",!0)]),d(h).billing.zip?(l(),_("label",vw,w(d(h).billing.zip),1)):S("",!0)])):S("",!0)])):S("",!0),d(h).shipping?(l(),_("div",yw,[c("label",bw,w(Z.$t("general.ship_to")),1),d(h).shipping?(l(),_("div",kw,[d(h).shipping.name?(l(),_("label",ww,w(d(h).shipping.name),1)):S("",!0),c("label",xw,[d(h).shipping.city?(l(),_("span",zw,w(d(h).shipping.city),1)):S("",!0),d(h).shipping.city&&d(h).shipping.state?(l(),_("span",Sw," , ")):S("",!0),d(h).shipping.state?(l(),_("span",jw,w(d(h).shipping.state),1)):S("",!0)]),d(h).shipping.zip?(l(),_("label",Pw,w(d(h).shipping.zip),1)):S("",!0)])):S("",!0)])):S("",!0)])])):(l(),T(d(Yt),{key:1,class:"relative flex flex-col rounded-md"},{default:g(({open:de})=>[u(d(Ht),{class:A([{"text-opacity-90":de,"border border-solid border-red-500 focus:ring-red-500 rounded":s.valid.$error,"focus:ring-2 focus:ring-primary-400":!s.valid.$error},"w-full outline-none rounded-md"])},{default:g(()=>[c("div",Dw,[u(U,{name:"UserIcon",class:"flex justify-center !w-10 !h-10 p-2 mr-5 text-sm text-white bg-gray-200 rounded-full font-base"}),c("div",Cw,[c("label",Aw,[K(w(Z.$t("customers.new_customer"))+" ",1),Ew]),s.valid.$error&&s.valid.$errors[0].$message?(l(),_("p",Nw,w(Z.$t("estimates.errors.required")),1)):S("",!0)])])]),_:2},1032,["class"]),u(Ee,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:g(()=>[de?(l(),_("div",Tw,[u(d(Gt),{focus:"",static:"",class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5 bg-white"},{default:g(({close:he})=>[c("div",Iw,[u(we,{modelValue:x.value,"onUpdate:modelValue":[N[1]||(N[1]=se=>x.value=se),N[2]||(N[2]=se=>d(z)(se))],"container-class":"m-4",placeholder:Z.$t("general.search"),type:"text",icon:"search"},null,8,["modelValue","placeholder"]),c("ul",$w,[(l(!0),_(Q,null,ae(d(t).customers,(se,ve)=>(l(),_("li",{key:ve,href:"#",class:"flex px-6 py-2 border-b border-gray-200 border-solid cursor-pointer hover:cursor-pointer hover:bg-gray-100 focus:outline-none focus:bg-gray-100 last:border-b-0",onClick:De=>me(se.id,he)},[c("span",Fw,w(G(se.name)),1),c("div",Mw,[se.name?(l(),T(H,{key:0,text:se.name,length:30,class:"m-0 text-base font-normal leading-tight cursor-pointer"},null,8,["text"])):S("",!0),se.contact_name?(l(),T(H,{key:1,text:se.contact_name,length:30,class:"m-0 text-sm font-medium text-gray-400 cursor-pointer"},null,8,["text"])):S("",!0)])],8,Rw))),128)),d(t).customers.length===0?(l(),_("div",Vw,[c("label",Bw,w(Z.$t("customers.no_customers_found")),1)])):S("",!0)])]),d(m).hasAbilities(d(O).CREATE_CUSTOMER)?(l(),_("button",{key:0,type:"button",class:"h-10 flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none focus:bg-gray-300",onClick:L},[u(U,{name:"UserAddIcon",class:"text-primary-400"}),c("label",Ow,w(Z.$t("customers.add_new_customer")),1)])):S("",!0)]),_:1})])):S("",!0)]),_:2},1024)]),_:1}))]))}}};var Uw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Lw});const Kw=c("path",{"fill-rule":"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z","clip-rule":"evenodd"},null,-1),qw=[Kw],Zw={props:{modelValue:{type:[String,Date],default:()=>new Date},contentLoading:{type:Boolean,default:!1},placeholder:{type:String,default:null},invalid:{type:Boolean,default:!1},enableTime:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showCalendarIcon:{type:Boolean,default:!0},containerClass:{type:String,default:""},defaultInputClass:{type:String,default:"font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-200 rounded-md text-black"},time24hr:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=q(null),t=pe(),n=_e();let e=Be({altInput:!0,enableTime:i.enableTime,time_24hr:i.time24hr});const o=D({get:()=>i.modelValue,set:E=>{r("update:modelValue",E)}}),m=D(()=>{var E;return(E=n.selectedCompanySettings)==null?void 0:E.carbon_date_format}),p=D(()=>!!t.icon),k=D(()=>`${i.containerClass} `),x=D(()=>i.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),b=D(()=>i.disabled?"border border-solid rounded-md outline-none input-field box-border-2 base-date-picker-input placeholder-gray-400 bg-gray-200 text-gray-600 border-gray-200":"");function h(E){a.value.fp.open()}return ge(()=>i.enableTime,E=>{i.enableTime&&(e.enableTime=i.enableTime)},{immediate:!0}),ge(()=>m,()=>{i.enableTime?e.altFormat=m.value?`${m.value} H:i `:"d M Y H:i":e.altFormat=m.value?m.value:"d M Y"},{immediate:!0}),(E,$)=>{const I=C("BaseContentPlaceholdersBox"),z=C("BaseContentPlaceholders");return s.contentLoading?(l(),T(z,{key:0},{default:g(()=>[u(I,{rounded:!0,class:A(`w-full ${d(k)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:A([d(k),"relative flex flex-row"])},[s.showCalendarIcon&&!d(p)?(l(),_("svg",{key:0,viewBox:"0 0 20 20",fill:"currentColor",class:"absolute w-4 h-4 mx-2 my-2.5 text-sm not-italic font-black text-gray-400 cursor-pointer",onClick:h},qw)):S("",!0),s.showCalendarIcon&&d(p)?F(E.$slots,"icon",{key:1}):S("",!0),u(d(st),le({ref:(V,L)=>{L.dp=V,a.value=V},modelValue:d(o),"onUpdate:modelValue":$[0]||($[0]=V=>J(o)?o.value=V:null)},E.$attrs,{disabled:s.disabled,config:d(e),class:[s.defaultInputClass,d(x),d(b)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var Ww=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Zw});const Hw={},Gw={class:"grid gap-4 mt-5 md:grid-cols-2 lg:grid-cols-3"};function Yw(s,r){return l(),_("div",Gw,[F(s.$slots,"default")])}var Jw=ee(Hw,[["render",Yw]]),Xw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Jw});const Qw={key:1},ex={class:"text-sm font-bold leading-5 text-black non-italic"},tx={props:{label:{type:String,required:!0},value:{type:[String,Number],default:""},contentLoading:{type:Boolean,default:!1}},setup(s){return(r,i)=>{const a=C("BaseContentPlaceholdersBox"),t=C("BaseContentPlaceholders"),n=C("BaseLabel");return l(),_("div",null,[s.contentLoading?(l(),T(t,{key:0},{default:g(()=>[u(a,{class:"w-20 h-5 mb-1"}),u(a,{class:"w-40 h-5"})]),_:1})):(l(),_("div",Qw,[u(n,{class:"font-normal mb-1"},{default:g(()=>[K(w(s.label),1)]),_:1}),c("p",ex,[K(w(s.value)+" ",1),F(r.$slots,"default")])]))])}}};var ax=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tx});const sx=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"dialog",state:()=>({active:!1,title:"",message:"",size:"md",data:null,variant:"danger",yesLabel:i.t("settings.custom_fields.yes"),noLabel:i.t("settings.custom_fields.no"),noLabel:"No",resolve:null,hideNoButton:!1}),actions:{openDialog(a){return this.active=!0,this.title=a.title,this.message=a.message,this.size=a.size,this.data=a.data,this.variant=a.variant,this.yesLabel=a.yesLabel,this.noLabel=a.noLabel,this.hideNoButton=a.hideNoButton,new Promise((t,n)=>{this.resolve=t})},closeDialog(){this.active=!1,setTimeout(()=>{this.title="",this.message="",this.data=null},300)}}})()},nx={class:"flex items-end justify-center min-h-screen min-h-screen-ios px-4 pt-4 pb-20 text-center sm:block sm:p-0"},ix=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen sm:h-screen-ios","aria-hidden":"true"},"\u200B",-1),ox={class:"mt-3 text-center sm:mt-5"},rx={class:"mt-2"},dx={class:"text-sm text-gray-500"},lx={setup(s){const r=sx();function i(t){r.resolve(t),r.closeDialog()}const a=D(()=>{switch(r.size){case"sm":return"sm:max-w-sm";case"md":return"sm:max-w-md";case"lg":return"sm:max-w-lg";default:return"sm:max-w-md"}});return(t,n)=>{const e=C("BaseIcon"),o=C("base-button");return l(),T(d(ot),{as:"template",show:d(r).active},{default:g(()=>[u(d(it),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:d(r).active,onClose:d(r).closeDialog},{default:g(()=>[c("div",nx,[u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:g(()=>[u(d(nt),{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75"})]),_:1}),ix,u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:g(()=>[c("div",{class:A(["inline-block px-4 pt-5 pb-4 overflow-hidden text-left align-bottom transition-all bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:w-full sm:p-6 relative",d(a)])},[c("div",null,[c("div",{class:A(["flex items-center justify-center w-12 h-12 mx-auto bg-green-100 rounded-full",{"bg-green-100":d(r).variant==="primary","bg-red-100":d(r).variant==="danger"}])},[d(r).variant==="primary"?(l(),T(e,{key:0,name:"CheckIcon",class:"w-6 h-6 text-green-600"})):(l(),T(e,{key:1,name:"ExclamationIcon",class:"w-6 h-6 text-red-600","aria-hidden":"true"}))],2),c("div",ox,[u(d(Xt),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:g(()=>[K(w(d(r).title),1)]),_:1}),c("div",rx,[c("p",dx,w(d(r).message),1)])])]),c("div",{class:A(["mt-5 sm:mt-6",{"sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense":!d(r).hideNoButton}])},[u(o,{class:A(["justify-center",{"w-full":d(r).hideNoButton}]),variant:d(r).variant,onClick:n[0]||(n[0]=m=>i(!0))},{default:g(()=>[K(w(d(r).yesLabel),1)]),_:1},8,["variant","class"]),d(r).hideNoButton?S("",!0):(l(),T(o,{key:0,class:"justify-center",variant:"white",onClick:n[1]||(n[1]=m=>i(!1))},{default:g(()=>[K(w(d(r).noLabel),1)]),_:1}))],2)],2)]),_:1})])]),_:1},8,["open","onClose"])]),_:1},8,["show"])}}};var cx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lx});const _x={},ux={class:"w-full text-gray-300"};function mx(s,r){return l(),_("hr",ux)}var px=ee(_x,[["render",mx]]),gx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:px});function fx(s){let r=q(null),i=q(null),a=q(null);return ze(()=>{rt(t=>{if(!i.value||!r.value)return;let n=i.value.el||i.value,e=r.value.el||r.value;e instanceof HTMLElement&&n instanceof HTMLElement&&(a.value=Qt(e,n,s),t(a.value.destroy))})}),[r,i,a]}const hx={class:"py-1"},vx={props:{containerClass:{type:String,required:!1,default:""},widthClass:{type:String,default:"w-56"},positionClass:{type:String,default:"absolute z-10 right-0"},position:{type:String,default:"bottom-end"},wrapperClass:{type:String,default:"inline-block h-full text-left"},contentLoading:{type:Boolean,default:!1}},setup(s){const r=s,i=D(()=>`origin-top-right rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-100 focus:outline-none ${r.containerClass}`);let[a,t,n]=fx({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}}]});function e(){n.value.update()}return(o,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return l(),_("div",{class:A(["relative",s.wrapperClass])},[s.contentLoading?(l(),T(k,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:g(()=>[u(p,{rounded:!0,class:"w-14",style:{height:"42px"}})]),_:1})):(l(),T(d(aa),{key:1},{default:g(()=>[u(d(ea),{ref:(x,b)=>{b.trigger=x,J(a)?a.value=x:a=x},class:"focus:outline-none",onClick:e},{default:g(()=>[F(o.$slots,"activator")]),_:3},512),c("div",{ref:(x,b)=>{b.container=x,J(t)?t.value=x:t=x},class:A(["z-10",s.widthClass])},[u(Ee,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"scale-95 opacity-0","enter-to-class":"scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"scale-100 opacity-100","leave-to-class":"scale-95 opacity-0"},{default:g(()=>[u(d(ta),{class:A(d(i))},{default:g(()=>[c("div",hx,[F(o.$slots,"default")])]),_:3},8,["class"])]),_:3})],2)]),_:3}))],2)}}};var yx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vx});const bx={setup(s){return(r,i)=>(l(),T(d(ia),sa(na(r.$attrs)),{default:g(({active:a})=>[c("a",{href:"#",class:A([a?"bg-gray-100 text-gray-900":"text-gray-700","group flex items-center px-4 py-2 text-sm font-normal"])},[F(r.$slots,"default",{active:a})],2)]),_:3},16))}};var kx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bx});const wx={class:"flex flex-col items-center justify-center mt-16"},xx={class:"flex flex-col items-center justify-center"},zx={class:"mt-2"},Sx={class:"font-medium"},jx={class:"mt-2"},Px={class:"text-gray-500"},Dx={class:"mt-6"},Cx={props:{title:{type:String,default:String},description:{type:String,default:String}},setup(s){return(r,i)=>(l(),_("div",wx,[c("div",xx,[F(r.$slots,"default")]),c("div",zx,[c("label",Sx,w(s.title),1)]),c("div",jx,[c("label",Px,w(s.description),1)]),c("div",Dx,[F(r.$slots,"actions")])]))}};var Ax=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Cx});const Ex={class:"rounded-md bg-red-50 p-4"},Nx={class:"flex"},Tx={class:"shrink-0"},Ix={class:"ml-3"},$x={class:"text-sm font-medium text-red-800"},Rx={class:"mt-2 text-sm text-red-700"},Fx={role:"list",class:"list-disc pl-5 space-y-1"},Mx={props:{errorTitle:{type:String,default:"There were some errors with your submission"},errors:{type:Array,default:null}},setup(s){return(r,i)=>(l(),_("div",Ex,[c("div",Nx,[c("div",Tx,[u(d(oa),{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),c("div",Ix,[c("h3",$x,w(s.errorTitle),1),c("div",Rx,[c("ul",Fx,[(l(!0),_(Q,null,ae(s.errors,(a,t)=>(l(),_("li",{key:t},w(a),1))),128))])])])])]))}};var Vx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Mx});const Bx={props:{status:{type:String,required:!1,default:""}},setup(s){const r=s,i=D(()=>{switch(r.status){case"DRAFT":return"bg-yellow-300 bg-opacity-25 px-2  py-1 text-sm  text-yellow-800 uppercase font-normal text-center ";case"SENT":return" bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm  text-yellow-900 uppercase font-normal text-center ";case"VIEWED":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";case"EXPIRED":return"bg-red-300 bg-opacity-25 px-2 py-1 text-sm  text-red-800 uppercase font-normal text-center";case"ACCEPTED":return"bg-green-400 bg-opacity-25 px-2 py-1 text-sm  text-green-800 uppercase font-normal text-center";case"REJECTED":return"bg-purple-300 bg-opacity-25 px-2 py-1 text-sm  text-purple-800 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 px-2 py-1 text-sm  text-gray-900 uppercase font-normal text-center"}});return(a,t)=>(l(),_("span",{class:A(d(i))},[F(a.$slots,"default")],2))}};var Ox=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Bx});const Lx=["multiple","name","accept"],Ux={key:0,class:""},Kx=["src"],qx=["onClick"],Zx={key:1,class:"flex flex-col items-center"},Wx={class:"text-xs leading-4 text-center text-gray-400"},Hx=K(" Drag a file here or "),Gx=["onClick"],Yx=K(" to choose a file "),Jx={class:"text-xs leading-4 text-center text-gray-400 mt-2"},Xx={key:2,class:"flex w-full h-full border border-gray-200 rounded"},Qx=["src"],ez={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},tz=c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.25",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),az={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},sz={key:3,class:"flex flex-wrap w-full"},nz=["src"],iz={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},oz=c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.25",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),rz={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},dz=["onClick"],lz={key:4,class:"flex w-full items-center justify-center"},cz=["src"],_z={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},uz=c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.25",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),mz={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},pz=["onClick"],gz={props:{multiple:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},autoProcess:{type:Boolean,default:!1},uploadUrl:{type:String,default:""},preserveLocalFiles:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},inputFieldName:{type:String,default:"photos"},base64:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]},recommendedText:{type:String,default:""}},emits:["change","remove","update:modelValue"],setup(s,{emit:r}){const i=s;let a=q([]);const t=q([]),n=q(null);q(null),q(null);function e(){a.value=[],i.modelValue&&i.modelValue.length?t.value=[...i.modelValue]:t.value=[]}function o($){return f.post(i.uploadUrl,$).then(I=>I.data).then(I=>I.map(z=>W(R({},z),{url:`/images/${z.id}`})))}function m($){o($).then(I=>{a=[].concat(I)}).catch(I=>{})}function p($){return new Promise((I,z)=>{const V=new FileReader;V.readAsDataURL($),V.onload=()=>I(V.result),V.onerror=L=>z(L)})}function k($,I,z){if(!I.length||(i.multiple?r("change",$,I,z):i.base64?p(I[0]).then(L=>{r("change",$,L,z,I[0])}):r("change",$,I[0],z),i.preserveLocalFiles||(t.value=[]),Array.from(Array(I.length).keys()).forEach(L=>{const G=I[L];Ze.isImageFile(G.type)?p(G).then(me=>{t.value.push({fileObject:G,type:G.type,name:G.name,image:me})}):t.value.push({fileObject:G,type:G.type,name:G.name})}),r("update:modelValue",t.value),!i.autoProcess))return;const V=new FormData;Array.from(Array(I.length).keys()).forEach(L=>{V.append($,I[L],I[L].name)}),m(V)}function x(){n.value&&n.value.click()}function b($){t.value=[],r("remove",$)}function h($){t.value.splice($,1)}function E(){return new URL("/build/img/default-avatar.jpg",self.location)}return ze(()=>{e()}),ge(()=>i.modelValue,$=>{t.value=[...$]}),($,I)=>{const z=C("BaseIcon");return l(),_("form",{enctype:"multipart/form-data",class:A(["relative flex items-center justify-center p-2 border-2 border-dashed rounded-md cursor-pointer avatar-upload border-gray-200 transition-all duration-300 ease-in-out isolate w-full hover:border-gray-300 group min-h-[100px] bg-gray-50",s.avatar?"w-32 h-32":"w-full"])},[c("input",{id:"file-upload",ref:(V,L)=>{L.inputRef=V,n.value=V},type:"file",tabindex:"-1",multiple:s.multiple,name:s.inputFieldName,accept:s.accept,class:"absolute z-10 w-full h-full opacity-0 cursor-pointer",onChange:I[0]||(I[0]=V=>k(V.target.name,V.target.files,V.target.files.length))},null,40,Lx),!t.value.length&&s.avatar?(l(),_("div",Ux,[c("img",{src:E(),class:"rounded",alt:"Default Avatar"},null,8,Kx),c("a",{href:"#",class:"absolute z-30 bg-white rounded-full -bottom-3 -right-3 group",onClick:re(x,["prevent","stop"])},[u(z,{name:"PlusCircleIcon",class:"h-8 text-xl leading-6 text-primary-500 group-hover:text-primary-600"})],8,qx)])):t.value.length?t.value.length&&s.avatar&&!s.multiple?(l(),_("div",Xx,[t.value[0].image?(l(),_("img",{key:0,for:"file-upload",src:t.value[0].image,class:"block object-cover w-full h-full rounded opacity-100",style:{animation:"fadeIn 2s ease"}},null,8,Qx)):(l(),_("div",ez,[tz,t.value[0].name?(l(),_("p",az,w(t.value[0].name),1)):S("",!0)])),c("a",{href:"#",class:"box-border absolute z-30 flex items-center justify-center w-8 h-8 bg-white border border-gray-200 rounded-full shadow-md -bottom-3 -right-3 group hover:border-gray-300",onClick:I[1]||(I[1]=re(V=>b(t.value[0]),["prevent","stop"]))},[u(z,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})])])):t.value.length&&s.multiple?(l(),_("div",sz,[(l(!0),_(Q,null,ae(t.value,(V,L)=>(l(),_("a",{key:V,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:I[2]||(I[2]=re(()=>{},["prevent"]))},[V.image?(l(),_("img",{key:0,for:"file-upload",src:V.image,class:"block object-cover w-20 h-20 opacity-100",style:{animation:"fadeIn 2s ease"}},null,8,nz)):(l(),_("div",iz,[oz,V.name?(l(),_("p",rz,w(V.name),1)):S("",!0)])),c("a",{href:"#",class:"box-border absolute z-30 flex items-center justify-center w-8 h-8 bg-white border border-gray-200 rounded-full shadow-md -bottom-3 -right-3 group hover:border-gray-300",onClick:re(G=>h(L),["prevent","stop"])},[u(z,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,dz)]))),128))])):(l(),_("div",lz,[(l(!0),_(Q,null,ae(t.value,(V,L)=>(l(),_("a",{key:V,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:I[3]||(I[3]=re(()=>{},["prevent"]))},[V.image?(l(),_("img",{key:0,for:"file-upload",src:V.image,class:"block object-contain h-20 opacity-100 min-w-[5rem]",style:{animation:"fadeIn 2s ease"}},null,8,cz)):(l(),_("div",_z,[uz,V.name?(l(),_("p",mz,w(V.name),1)):S("",!0)])),c("a",{href:"#",class:"box-border absolute z-30 flex items-center justify-center w-8 h-8 bg-white border border-gray-200 rounded-full shadow-md -bottom-3 -right-3 group hover:border-gray-300",onClick:re(G=>h(L),["prevent","stop"])},[u(z,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,pz)]))),128))])):(l(),_("div",Zx,[u(z,{name:"CloudUploadIcon",class:"h-6 mb-2 text-xl leading-6 text-gray-400"}),c("p",Wx,[Hx,c("a",{class:"cursor-pointer text-primary-500 hover:text-primary-600 hover:font-medium relative z-20",href:"#",onClick:re(x,["prevent","stop"])}," browse ",8,Gx),Yx]),c("p",Jx,w(s.recommendedText),1)]))],2)}}};var fz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:gz});const hz={class:"relative z-10 p-4 md:p-8 bg-gray-200 rounded"},vz={props:{show:{type:Boolean,default:!1},rowOnXl:{type:Boolean,default:!1}},emits:["clear"],setup(s){return(r,i)=>(l(),T(Ee,{"enter-active-class":"transition duration-500 ease-in-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition ease-in-out","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:g(()=>[xe(c("div",hz,[F(r.$slots,"filter-header"),c("label",{class:"absolute text-sm leading-snug text-gray-900 cursor-pointer hover:text-gray-700 top-2.5 right-3.5",onClick:i[0]||(i[0]=a=>r.$emit("clear"))},w(r.$t("general.clear_all")),1),c("div",{class:A(["flex flex-col space-y-3",s.rowOnXl?"xl:flex-row xl:space-x-4 xl:space-y-0 xl:items-center":"lg:flex-row lg:space-x-4 lg:space-y-0 lg:items-center"])},[F(r.$slots,"default")],2)],512),[[dt,s.show]])]),_:3}))}};var yz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vz});const bz={style:{"font-family":"sans-serif"}},kz={props:{amount:{type:[Number,String],required:!0},currency:{type:Object,default:()=>null}},setup(s){const r=s,i=ra("utils"),a=_e(),t=D(()=>i.formatMoney(r.amount,r.currency||a.selectedCompanyCurrency));return(n,e)=>(l(),_("span",bz,w(d(t)),1))}};var wz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:kz});const xz={viewBox:"0 0 225 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zz=lt('<path d="M211.738 32.1659V27.7768C214.619 24.947 218.409 23.3831 224.397 23.1597V11.6916C218.939 11.6916 214.998 13.4043 211.738 16.1597V12.2873H199.576C199.507 12.9433 199.472 13.609 199.472 14.2828C199.472 22.3755 204.546 29.3041 211.738 32.1659Z" fill="url(#paint0_linear_499_29)"></path><path d="M211.738 36.1165C206.645 34.4592 202.327 31.1297 199.459 26.7902V48.4045H211.738V36.1165Z" fill="url(#paint1_linear_499_29)"></path><path d="M16.0297 48.8865C19.2962 46.1641 21.7924 42.5768 23.1519 38.4848C25.3401 37.6506 26.8605 35.8956 27.2881 33.5853H38.8855C38.0517 42.8939 30.2443 49.2237 20.087 49.2237C18.6861 49.2237 17.3305 49.1085 16.0297 48.8865Z" fill="url(#paint2_linear_499_29)"></path><path d="M20.087 11.4682C17.9247 11.4682 15.8704 11.7426 13.9591 12.26C17.5644 14.6466 20.4567 17.9932 22.2562 21.9269C24.9219 22.5899 26.8043 24.4928 27.2881 27.1065H38.8855C38.0517 17.798 30.2443 11.4682 20.087 11.4682Z" fill="url(#paint3_linear_499_29)"></path><path d="M0 30.3087C0 38.354 4.52386 44.7328 11.4781 47.5909C14.7638 45.5212 17.3803 42.5159 18.9382 38.9578C14.3944 38.4418 11.6732 34.8526 11.6732 30.3087C11.6732 26.0841 14.0253 22.7398 18.0075 21.8837C16.0622 18.4948 13.104 15.7418 9.53648 14.0211C3.69365 17.1959 0 23.0881 0 30.3087Z" fill="url(#paint4_linear_499_29)"></path><path d="M69.9096 23.1597V11.6916C64.452 11.6916 60.5104 13.4043 57.251 16.1597V12.2873H44.9714V48.4045H57.251V27.7768C60.1314 24.947 63.9214 23.3831 69.9096 23.1597Z" fill="url(#paint5_linear_499_29)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M113.912 48.4045V12.2873H101.633V14.2235C98.9038 12.5107 95.5686 11.4682 91.5512 11.4682C81.6214 11.4682 73.2833 19.5108 73.2833 30.3087C73.2833 41.0322 81.6214 49.1492 91.5512 49.1492C95.5686 49.1492 98.9038 48.1067 101.633 46.3939V48.4045H113.912ZM93.9768 39.2449C88.974 39.2449 85.3356 35.2981 85.3356 30.3087C85.3356 25.3193 88.974 21.298 93.9768 21.298C96.7056 21.298 99.3586 22.1172 101.633 24.7236V35.8938C99.3586 38.5002 96.7056 39.2449 93.9768 39.2449Z" fill="url(#paint6_linear_499_29)"></path><path d="M151.738 47.7343L150.374 37.5321C147.645 38.0534 145.598 38.4258 143.855 38.4258C140.217 38.4258 138.094 36.6385 138.094 32.9896V22.6384H150.601V12.2873H138.094V0H125.815V12.2873H118.614V22.6384H125.815V33.3619C125.815 43.1173 131.727 49.5216 140.596 49.5216C144.234 49.5216 146.963 49.2237 151.738 47.7343Z" fill="url(#paint7_linear_499_29)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M193.36 29.564C193.36 18.6916 185.25 11.4682 174.562 11.4682C162.813 11.4682 155.005 19.3618 155.005 30.3087C155.005 41.33 163.04 49.2237 175.092 49.2237C184.188 49.2237 191.238 44.5322 192.981 37.0853H180.853C179.792 38.7236 177.821 39.6917 175.244 39.6917C170.544 39.6917 167.967 37.1598 166.982 33.8832H193.209L193.133 33.6598C193.36 32.3193 193.36 30.9044 193.36 29.564ZM174.562 20.7767C178.503 20.7767 181.156 22.8618 181.839 26.8087H166.83C167.74 23.1597 170.393 20.7767 174.562 20.7767Z" fill="url(#paint8_linear_499_29)"></path>',9),Sz={id:"paint0_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},jz=["stop-color"],Pz=["stop-color"],Dz={id:"paint1_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Cz=["stop-color"],Az=["stop-color"],Ez={id:"paint2_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Nz=["stop-color"],Tz=["stop-color"],Iz={id:"paint3_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},$z=["stop-color"],Rz=["stop-color"],Fz={id:"paint4_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Mz=["stop-color"],Vz=["stop-color"],Bz={id:"paint5_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Oz=["stop-color"],Lz=["stop-color"],Uz={id:"paint6_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Kz=["stop-color"],qz=["stop-color"],Zz={id:"paint7_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Wz=["stop-color"],Hz=["stop-color"],Gz={id:"paint8_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Yz=["stop-color"],Jz=["stop-color"],Xz={props:{darkColor:{type:String,default:"rgba(var(--color-primary-500), var(--tw-text-opacity))"},lightColor:{type:String,default:"rgba(var(--color-primary-400), var(--tw-text-opacity))"}},setup(s){return(r,i)=>(l(),_("svg",xz,[zz,c("defs",null,[c("linearGradient",Sz,[c("stop",{"stop-color":s.darkColor},null,8,jz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Pz)]),c("linearGradient",Dz,[c("stop",{"stop-color":s.darkColor},null,8,Cz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Az)]),c("linearGradient",Ez,[c("stop",{"stop-color":s.darkColor},null,8,Nz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Tz)]),c("linearGradient",Iz,[c("stop",{"stop-color":s.darkColor},null,8,$z),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Rz)]),c("linearGradient",Fz,[c("stop",{"stop-color":s.darkColor},null,8,Mz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Vz)]),c("linearGradient",Bz,[c("stop",{"stop-color":s.darkColor},null,8,Oz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Lz)]),c("linearGradient",Uz,[c("stop",{"stop-color":s.darkColor},null,8,Kz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,qz)]),c("linearGradient",Zz,[c("stop",{"stop-color":s.darkColor},null,8,Wz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Hz)]),c("linearGradient",Gz,[c("stop",{"stop-color":s.darkColor},null,8,Yz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Jz)])])]))}};const Qz={class:"flex flex-col items-center justify-center h-screen h-screen-ios"},eS={class:"loader loader-white"},tS=lt('<div class="loader-spined"><div class="loader--icon"><svg class="offset-45deg text-primary-500" width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.9053 1.75122C25.8037 1.44653 25.5498 1.19263 25.2451 1.09106C23.6201 0.735596 22.3506 0.735596 21.0811 0.735596C15.8506 0.735596 12.7021 3.57935 10.3662 7.2356L5.03418 7.2356C4.22168 7.28638 3.25684 7.84497 2.85059 8.60669L0.362305 13.634C0.311523 13.7864 0.260742 13.9895 0.260742 14.1418C0.260742 14.8528 0.768555 15.3606 1.47949 15.3606H6.70996L5.59277 16.5286C4.9834 17.0872 4.93262 18.1536 5.59277 18.8137L8.18262 21.4036C8.74121 21.9622 9.80762 22.0637 10.4678 21.4036L11.585 20.2864V25.5168C11.6357 26.2278 12.1436 26.7356 12.8545 26.7356C13.0068 26.7356 13.21 26.6848 13.3623 26.634L18.3896 24.1458C19.1514 23.7395 19.71 22.7747 19.71 21.9622V16.6301C23.417 14.2942 26.21 11.1458 26.21 5.91528C26.2607 4.64575 26.2607 3.37622 25.9053 1.75122ZM19.7607 9.26685C18.5928 9.26685 17.7295 8.40356 17.7295 7.2356C17.7295 6.11841 18.5928 5.20435 19.7607 5.20435C20.8779 5.20435 21.792 6.11841 21.792 7.2356C21.792 8.40356 20.8779 9.26685 19.7607 9.26685Z" fill="currentColor"></path></svg></div></div><div class="pufs text-primary-500"><i class="text-primary-500"></i><i></i><i></i> <i></i><i></i><i></i><i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i></div><div class="particles text-primary-500"><i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i></div>',3),aS={props:{showBgOverlay:{default:!1,type:Boolean}},setup(s){return(r,i)=>(l(),_("div",Qz,[c("div",eS,[tS,u(Xz,{class:"absolute block h-auto max-w-full transform -translate-x-1/2 -translate-y-1/2 w-28 text-primary-400 top-1/2 left-1/2",alt:"Crater Logo"})])]))}};var sS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:aS});const nS={props:{type:{type:String,default:"section-title",validator:function(s){return["section-title","heading-title"].indexOf(s)!==-1}}},setup(s){const r=s,i=D(()=>({"text-gray-900 text-lg font-medium":r.type==="heading-title","text-gray-500 uppercase text-base":r.type==="section-title"}));return(a,t)=>(l(),_("h6",{class:A(d(i))},[F(a.$slots,"default")],2))}};var iS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nS});const oS={props:{name:{type:String,required:!0}},setup(s){const r=q(!1);return ze(()=>{r.value=!0}),(i,a)=>r.value?(l(),T(da(d(la)[s.name]),{key:0,class:"h-5 w-5"})):S("",!0)}};var rS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:oS});const dS={class:"rounded-md bg-yellow-50 p-4 relative"},lS={class:"flex flex-col"},cS={class:"flex"},_S={class:"shrink-0"},uS={class:"ml-3"},mS={class:"text-sm font-medium text-yellow-800"},pS={class:"mt-2 text-sm text-yellow-700"},gS={role:"list",class:"list-disc pl-5 space-y-1"},fS={key:0,class:"mt-4 ml-3"},hS={class:"-mx-2 -my-1.5 flex flex-row-reverse"},vS=["onClick"],yS={props:{title:{type:String,default:"There were some errors with your submission"},lists:{type:Array,default:null},actions:{type:Array,default:()=>["Dismiss"]}},emits:["hide"],setup(s,{emit:r}){return(i,a)=>{const t=C("BaseIcon");return l(),_("div",dS,[u(t,{name:"XIcon",class:"h-5 w-5 text-yellow-500 absolute right-4 cursor-pointer",onClick:a[0]||(a[0]=n=>i.$emit("hide"))}),c("div",lS,[c("div",cS,[c("div",_S,[u(t,{name:"ExclamationIcon",class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),c("div",uS,[c("h3",mS,w(s.title),1),c("div",pS,[c("ul",gS,[(l(!0),_(Q,null,ae(s.lists,(n,e)=>(l(),_("li",{key:e},w(n),1))),128))])])])]),s.actions.length?(l(),_("div",fS,[c("div",hS,[(l(!0),_(Q,null,ae(s.actions,(n,e)=>(l(),_("button",{key:e,type:"button",class:"bg-yellow-50 px-2 py-1.5 rounded-md text-sm font-medium text-yellow-800 hover:bg-yellow-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-yellow-50 focus:ring-yellow-600 mr-3",onClick:o=>i.$emit(`${n}`)},w(n),9,vS))),128))])])):S("",!0)])])}}};var bS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:yS});const kS={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},wS=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),xS=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),zS=[wS,xS],SS={key:1,class:"absolute inset-y-0 left-0 flex items-center pl-3"},jS={key:2,class:"inline-flex items-center px-3 text-gray-500 border border-r-0 border-gray-200 rounded-l-md bg-gray-50 sm:text-sm"},PS={key:3,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},DS={class:"text-gray-500 sm:text-sm"},CS=["type","value","disabled"],AS={key:4,class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"},ES=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),NS=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),TS=[ES,NS],IS={key:5,class:"absolute inset-y-0 right-0 flex items-center pr-3"},$S={props:{contentLoading:{type:Boolean,default:!1},type:{type:[Number,String],default:"text"},modelValue:{type:[String,Number],default:""},loading:{type:Boolean,default:!1},loadingPosition:{type:String,default:"left"},addon:{type:String,default:null},inlineAddon:{type:String,default:""},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},containerClass:{type:String,default:""},contentLoadClass:{type:String,default:""},defaultInputClass:{type:String,default:"font-base block w-full sm:text-sm border-gray-200 rounded-md text-black"},iconLeftClass:{type:String,default:"h-5 w-5 text-gray-400"},iconRightClass:{type:String,default:"h-5 w-5 text-gray-400"},modelModifiers:{default:()=>({})}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s;q(!1);const a=pe(),t=D(()=>!!a.left||i.loading&&i.loadingPosition==="left"),n=D(()=>!!a.right||i.loading&&i.loadingPosition==="right"),e=D(()=>t.value&&n.value?"px-10":t.value?"pl-10":n.value?"pr-10":""),o=D(()=>i.addon?"flex-1 min-w-0 block w-full px-3 py-2 !rounded-none !rounded-r-md":i.inlineAddon?"pl-7":""),m=D(()=>i.invalid?"border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500":"focus:ring-primary-400 focus:border-primary-400"),p=D(()=>i.disabled?"border-gray-100 bg-gray-100 !text-gray-400 ring-gray-200 focus:ring-gray-200 focus:border-gray-100":""),k=D(()=>{let b=`${i.containerClass} `;return i.addon?`${i.containerClass} flex`:b});function x(b){let h=b.target.value;i.modelModifiers.uppercase&&(h=h.toUpperCase()),r("update:modelValue",h)}return(b,h)=>{const E=C("BaseContentPlaceholdersBox"),$=C("BaseContentPlaceholders");return s.contentLoading?(l(),T($,{key:0},{default:g(()=>[u(E,{rounded:!0,class:A(`w-full ${s.contentLoadClass}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:A([[s.containerClass,d(k)],"relative rounded-md shadow-sm font-base"])},[s.loading&&s.loadingPosition==="left"?(l(),_("div",kS,[(l(),_("svg",{class:A(["animate-spin !text-primary-500",[s.iconLeftClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},zS,2))])):d(t)?(l(),_("div",SS,[F(b.$slots,"left",{class:A(s.iconLeftClass)})])):S("",!0),s.addon?(l(),_("span",jS,w(s.addon),1)):S("",!0),s.inlineAddon?(l(),_("div",PS,[c("span",DS,w(s.inlineAddon),1)])):S("",!0),c("input",le(b.$attrs,{type:s.type,value:s.modelValue,disabled:s.disabled,class:[s.defaultInputClass,d(e),d(o),d(m),d(p)],onInput:x}),null,16,CS),s.loading&&s.loadingPosition==="right"?(l(),_("div",AS,[(l(),_("svg",{class:A(["animate-spin !text-primary-500",[s.iconRightClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},TS,2))])):S("",!0),d(n)?(l(),_("div",IS,[F(b.$slots,"right",{class:A(s.iconRightClass)})])):S("",!0)],2))}}};var RS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$S});const FS={props:{layout:{type:String,default:"two-column"}},setup(s){const r=s,i=D(()=>r.layout==="two-column"?"grid gap-y-6 gap-x-4 grid-cols-1 md:grid-cols-2":"grid gap-y-6 gap-x-4 grid-cols-1");return(a,t)=>(l(),_("div",{class:A(d(i))},[F(a.$slots,"default")],2))}};var MS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:FS});const VS={class:"text-sm text-red-500"},BS={key:0,class:"text-gray-500 text-xs mt-1 font-light"},OS={key:1,class:"block mt-0.5 text-sm text-red-500"},LS={props:{contentLoading:{type:Boolean,default:!1},contentLoadClass:{type:String,default:"w-16 h-5"},label:{type:String,default:""},variant:{type:String,default:"vertical"},error:{type:[String,Boolean],default:null},required:{type:Boolean,default:!1},tooltip:{type:String,default:null,required:!1},helpText:{type:String,default:null,required:!1}},setup(s){const r=s,i=D(()=>r.variant==="horizontal"?"grid md:grid-cols-12 items-center":""),a=D(()=>r.variant==="horizontal"?"relative pr-0 pt-1 mr-3 text-sm md:col-span-4 md:text-right mb-1  md:mb-0":""),t=D(()=>r.variant==="horizontal"?"md:col-span-8 md:col-start-5 md:col-ends-12":"flex flex-col mt-1"),n=pe(),e=D(()=>!!n.labelRight);return(o,m)=>{const p=C("BaseContentPlaceholdersText"),k=C("BaseContentPlaceholders"),x=C("BaseIcon"),b=et("tooltip");return l(),_("div",{class:A([d(i),"relative w-full text-left"])},[s.contentLoading?(l(),T(k,{key:0},{default:g(()=>[u(p,{lines:1,class:A(s.contentLoadClass)},null,8,["class"])]),_:1})):s.label?(l(),_("label",{key:1,class:A([d(a),"flex text-sm not-italic items-center font-medium text-gray-800 whitespace-nowrap justify-between"])},[c("div",null,[K(w(s.label)+" ",1),xe(c("span",VS," * ",512),[[dt,s.required]])]),d(e)?F(o.$slots,"labelRight",{key:0}):S("",!0),s.tooltip?xe((l(),T(x,{key:1,name:"InformationCircleIcon",class:"h-4 text-gray-400 cursor-pointer hover:text-gray-600"},null,512)),[[b,{content:s.tooltip}]]):S("",!0)],2)):S("",!0),c("div",{class:A(d(t))},[F(o.$slots,"default"),s.helpText?(l(),_("span",BS,w(s.helpText),1)):S("",!0),s.error?(l(),_("span",OS,w(s.error),1)):S("",!0)],2)],2)}}};var US=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:LS});const KS={props:{status:{type:String,required:!1,default:""}},setup(s){return{badgeColorClasses:D(()=>{switch(s.status){case"DRAFT":return"bg-yellow-300 bg-opacity-25 px-2  py-1 text-sm  text-yellow-800 uppercase font-normal text-center";case"SENT":return" bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm  text-yellow-900 uppercase font-normal text-center ";case"VIEWED":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";case"COMPLETED":return"bg-green-500 bg-opacity-25 px-2  py-1 text-sm  text-green-900 uppercase font-normal text-center";case"DUE":return"bg-yellow-500 bg-opacity-25 px-2  py-1 text-sm  text-yellow-900 uppercase font-normal text-center";case"OVERDUE":return"bg-red-300 bg-opacity-50 px-2  py-1 text-sm  text-red-900 uppercase font-normal text-center";case"UNPAID":return"bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm  text-yellow-900 uppercase font-normal text-center";case"PARTIALLY_PAID":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";case"PAID":return"bg-green-500 bg-opacity-25 px-2 py-1 text-sm  text-green-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 px-2 py-1 text-sm  text-gray-900 uppercase font-normal text-center"}})}}};function qS(s,r,i,a,t,n){return l(),_("span",{class:A(a.badgeColorClasses)},[F(s.$slots,"default")],2)}var ZS=ee(KS,[["render",qS]]),WS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ZS});const HS={class:"flex-1 text-sm"},GS={key:0,class:"relative flex items-center h-10 pl-2 bg-gray-200 border border-gray-200 border-solid rounded"},YS={class:"w-full pt-1 text-xs text-light"},JS={key:0},XS={class:"text-red-600"},QS={props:{contentLoading:{type:Boolean,default:!1},type:{type:String,default:null},item:{type:Object,required:!0},index:{type:Number,default:0},invalid:{type:Boolean,required:!1,default:!1},invalidDescription:{type:Boolean,required:!1,default:!1},taxPerItem:{type:String,default:""},taxes:{type:Array,default:null},store:{type:Object,default:null},storeProp:{type:String,default:""}},emits:["search","select"],setup(s,{emit:r}){const i=s,a=Fe();He(),Me();const t=Pe(),n=je();fe();const{t:e}=Se(),o=q(null);q(!1);let m=Be(R({},i.item));Object.assign(m,i.item),D(()=>0);const p=D({get:()=>i.item.description,set:h=>{i.store[i.storeProp].items[i.index].description=h}});async function k(h){return(await a.fetchItems({search:h})).data.data}function x(){t.openModal({title:e("items.add_item"),componentName:"ItemModal",refreshData:h=>r("select",h),data:{taxPerItem:i.taxPerItem,taxes:i.taxes,itemIndex:i.index,store:i.store,storeProps:i.storeProp}})}function b(h){i.store.deselectItem(h)}return(h,E)=>{const $=C("BaseIcon"),I=C("BaseSelectAction"),z=C("BaseMultiselect"),V=C("BaseTextarea");return l(),_("div",HS,[s.item.item_id?(l(),_("div",GS,[K(w(s.item.name)+" ",1),c("span",{class:"absolute text-gray-400 cursor-pointer top-[8px] right-[10px]",onClick:E[0]||(E[0]=L=>b(s.index))},[u($,{name:"XCircleIcon"})])])):(l(),T(z,{key:1,modelValue:o.value,"onUpdate:modelValue":[E[1]||(E[1]=L=>o.value=L),E[2]||(E[2]=L=>h.$emit("select",L))],"content-loading":s.contentLoading,"value-prop":"id","track-by":"id",invalid:s.invalid,"preserve-search":"","initial-search":d(m).name,label:"name",filterResults:!1,"resolve-on-load":"",delay:500,searchable:"",options:k,object:"",onSearchChange:E[3]||(E[3]=L=>h.$emit("search",L))},{action:g(()=>[d(n).hasAbilities(d(O).CREATE_ITEM)?(l(),T(I,{key:0,onClick:x},{default:g(()=>[u($,{name:"PlusCircleIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),K(" "+w(h.$t("general.add_new_item")),1)]),_:1})):S("",!0)]),_:1},8,["modelValue","content-loading","invalid","initial-search"])),c("div",YS,[u(V,{modelValue:d(p),"onUpdate:modelValue":E[4]||(E[4]=L=>J(p)?p.value=L:null),"content-loading":s.contentLoading,autosize:!0,class:"text-xs",borderless:!0,placeholder:h.$t("estimates.item.type_item_description"),invalid:s.invalidDescription},null,8,["modelValue","content-loading","placeholder","invalid"]),s.invalidDescription?(l(),_("div",JS,[c("span",XS,w(h.$tc("validation.description_maxlength")),1)])):S("",!0)])])}}};var ej=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:QS});const tj={},aj={class:"text-sm not-italic font-medium leading-5 text-primary-800"};function sj(s,r){return l(),_("label",aj,[F(s.$slots,"default")])}var nj=ee(tj,[["render",sj]]),ij=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nj});const oj={class:"flex items-end justify-center min-h-screen min-h-screen-ios px-4 text-center sm:block sm:px-2"},rj=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen sm:h-screen-ios","aria-hidden":"true"},"\u200B",-1),dj={key:0,class:"flex items-center justify-between px-6 py-4 text-lg font-medium text-black border-b border-gray-200 border-solid"},lj={props:{show:{type:Boolean,default:!1}},emits:["close","open"],setup(s,{emit:r}){const i=s,a=pe(),t=Pe();rt(()=>{i.show&&r("open",i.show)});const n=D(()=>{switch(t.size){case"sm":return"sm:max-w-2xl w-full";case"md":return"sm:max-w-4xl w-full";case"lg":return"sm:max-w-6xl w-full";default:return"sm:max-w-2xl w-full"}}),e=D(()=>!!a.header);return(o,m)=>(l(),T(ca,{to:"body"},[u(d(ot),{appear:"",as:"template",show:s.show},{default:g(()=>[u(d(it),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:s.show,onClose:m[0]||(m[0]=p=>o.$emit("close"))},{default:g(()=>[c("div",oj,[u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:g(()=>[u(d(nt),{class:"fixed inset-0 transition-opacity bg-gray-700 bg-opacity-25"})]),_:1}),rj,u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:g(()=>[c("div",{class:A(`inline-block
              border-t-8 border-solid rounded shadow-xl  border-primary-500`)},[d(e)?(l(),_("div",dj,[F(o.$slots,"header")])):S("",!0),F(o.$slots,"default"),F(o.$slots,"footer")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"])]))}};var cj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lj});const _j={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:[String,Number],required:!0,default:""},invalid:{type:Boolean,default:!1},inputClass:{type:String,default:"font-base block w-full sm:text-sm border-gray-200 rounded-md text-black"},disabled:{type:Boolean,default:!1},percent:{type:Boolean,default:!1},currency:{type:Object,default:null}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s;let a=_a;const t=_e();let n=!1;const e=D({get:()=>i.modelValue,set:p=>{if(!n){n=!0;return}r("update:modelValue",p)}}),o=D(()=>{const p=i.currency?i.currency:t.selectedCompanyCurrency;return{decimal:p.decimal_separator,thousands:p.thousand_separator,prefix:p.symbol+" ",precision:p.precision,masked:!1}}),m=D(()=>i.invalid?"border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500":"focus:ring-primary-400 focus:border-primary-400");return(p,k)=>{const x=C("BaseContentPlaceholdersBox"),b=C("BaseContentPlaceholders");return s.contentLoading?(l(),T(b,{key:0},{default:g(()=>[u(x,{rounded:!0,class:"w-full",style:{height:"38px"}})]),_:1})):(l(),T(d(a),le({key:1,modelValue:d(e),"onUpdate:modelValue":k[0]||(k[0]=h=>J(e)?e.value=h:null)},d(o),{class:[s.inputClass,d(m)],disabled:s.disabled}),null,16,["modelValue","class","disabled"]))}}};var uj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_j});const mj={props:{sucess:{type:Boolean,default:!1}},setup(s){return(r,i)=>(l(),_("span",{class:A([s.sucess?"bg-green-100 text-green-700 ":"bg-red-100 text-red-700","px-2 py-1 text-sm font-normal text-center uppercase"])},[F(r.$slots,"default")],2))}};var pj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:mj});const gj={},fj={class:"flex-1 p-4 md:p-8 flex flex-col"};function hj(s,r){return l(),_("div",fj,[F(s.$slots,"default")])}var vj=ee(gj,[["render",hj]]),yj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vj});const bj={class:"flex flex-wrap justify-between"},kj={class:"text-2xl font-bold text-left text-black"},wj={class:"flex items-center"},xj={props:{title:{type:[String],default:"",required:!0}},setup(s){return(r,i)=>(l(),_("div",bj,[c("div",null,[c("h3",kj,w(s.title),1),F(r.$slots,"default")]),c("div",wj,[F(r.$slots,"actions")])]))}};var zj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:xj});const Sj={props:{status:{type:String,required:!1,default:""},defaultClass:{type:String,default:"px-1 py-0.5 text-xs"}},setup(s){return{badgeColorClasses:D(()=>{switch(s.status){case"PAID":return"bg-primary-300 bg-opacity-25 text-primary-800 uppercase font-normal text-center";case"UNPAID":return" bg-yellow-500 bg-opacity-25 text-yellow-900 uppercase font-normal text-center ";case"PARTIALLY_PAID":return"bg-blue-400 bg-opacity-25 text-blue-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 text-gray-900 uppercase font-normal text-center"}})}}};function jj(s,r,i,a,t,n){return l(),_("span",{class:A([[a.badgeColorClasses,i.defaultClass],""])},[F(s.$slots,"default")],2)}var Pj=ee(Sj,[["render",jj]]),Dj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Pj});const Cj=K(" Privacy setting "),Aj={class:"-space-y-px rounded-md"},Ej={class:"relative flex cursor-pointer focus:outline-none"},Nj=c("span",{class:"rounded-full bg-white w-1.5 h-1.5"},null,-1),Tj=[Nj],Ij={class:"flex flex-col ml-3"},$j={props:{id:{type:[String,Number],required:!1,default:()=>`radio_${Math.random().toString(36).substr(2,9)}`},label:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},name:{type:[String,Number],default:""},checkedStateClass:{type:String,default:"bg-primary-600"},unCheckedStateClass:{type:String,default:"bg-white "},optionGroupActiveStateClass:{type:String,default:"ring-2 ring-offset-2 ring-primary-500"},checkedStateLabelClass:{type:String,default:"text-primary-900 "},unCheckedStateLabelClass:{type:String,default:"text-gray-900"},optionGroupClass:{type:String,default:"h-4 w-4 mt-0.5 cursor-pointer rounded-full border flex items-center justify-center"},optionGroupLabelClass:{type:String,default:"block text-sm font-light"}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=D({get:()=>i.modelValue,set:t=>r("update:modelValue",t)});return(t,n)=>(l(),T(d(ma),{modelValue:d(a),"onUpdate:modelValue":n[0]||(n[0]=e=>J(a)?a.value=e:null)},{default:g(()=>[u(d(ct),{class:"sr-only"},{default:g(()=>[Cj]),_:1}),c("div",Aj,[u(d(ua),le({id:s.id,as:"template",value:s.value,name:s.name},t.$attrs),{default:g(({checked:e,active:o})=>[c("div",Ej,[c("span",{class:A([e?s.checkedStateClass:s.unCheckedStateClass,o?s.optionGroupActiveStateClass:"",s.optionGroupClass]),"aria-hidden":"true"},Tj,2),c("div",Ij,[u(d(ct),{as:"span",class:A([e?s.checkedStateLabelClass:s.unCheckedStateLabelClass,s.optionGroupLabelClass])},{default:g(()=>[K(w(s.label),1)]),_:2},1032,["class"])])])]),_:1},16,["id","value","name"])])]),_:1},8,["modelValue"]))}};var Rj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$j});const Fj={name:"StarsRating",components:{},directives:{},props:{config:{type:Object,default:null},rating:{type:[Number],default:0}},data:function(){return{stars:[],emptyStar:0,fullStar:1,totalStars:5,isIndicatorActive:!1,style:{fullStarColor:"#F1C644",emptyStarColor:"#D4D4D4",starWidth:20,starHeight:20}}},computed:{getStarPoints:function(){let s=this.style.starWidth/2,r=this.style.starHeight/2,i=5,a=this.style.starWidth/i,n=a*2.5;return this.calcStarPoints(s,r,i,a,n)}},created(){this.initStars(),this.setStars(),this.setConfigData()},methods:{calcStarPoints(s,r,i,a,t){let n=Math.PI/i,e=60,o=i*2,m="";for(let p=0;p<o;p++){let x=p%2==0?t:a,b=s+Math.cos(p*n+e)*x,h=r+Math.sin(p*n+e)*x;m+=b+","+h+" "}return m},initStars(){for(let s=0;s<this.totalStars;s++)this.stars.push({raw:this.emptyStar,percent:this.emptyStar+"%"})},setStars(){let s=Math.floor(this.rating);for(let r=0;r<this.stars.length;r++)if(s!==0)this.stars[r].raw=this.fullStar,this.stars[r].percent=this.calcStarFullness(this.stars[r]),s--;else{let i=Math.round(this.rating%1*10)/10,a=Math.round(i*10)/10;return this.stars[r].raw=a,this.stars[r].percent=this.calcStarFullness(this.stars[r])}},setConfigData(){this.config&&(this.setBindedProp(this.style,this.config.style,"fullStarColor"),this.setBindedProp(this.style,this.config.style,"emptyStarColor"),this.setBindedProp(this.style,this.config.style,"starWidth"),this.setBindedProp(this.style,this.config.style,"starHeight"),this.config.isIndicatorActive&&(this.isIndicatorActive=this.config.isIndicatorActive),console.log("isIndicatorActive: ",this.isIndicatorActive))},getFullFillColor(s){return s.raw!==this.emptyStar?this.style.fullStarColor:this.style.emptyStarColor},calcStarFullness(s){return s.raw*100+"%"},setBindedProp(s,r,i){r[i]&&(s[i]=r[i])}}},Mj={class:"star-rating"},Vj=["title"],Bj=["points"],Oj=["id"],Lj=["offset","stop-color"],Uj=["offset","stop-color"],Kj=["offset","stop-color"],qj=["stop-color"],Zj={key:0,class:"indicator"};function Wj(s,r,i,a,t,n){return l(),_("div",Mj,[(l(!0),_(Q,null,ae(s.stars,(e,o)=>(l(),_("div",{key:o,title:i.rating,class:"star-container"},[(l(),_("svg",{style:Ce([{fill:`url(#gradient${e.raw})`},{width:s.style.starWidth},{height:s.style.starHeight}]),class:"star-svg"},[c("polygon",{points:n.getStarPoints,style:{"fill-rule":"nonzero"}},null,8,Bj),c("defs",null,[c("linearGradient",{id:`gradient${e.raw}`},[c("stop",{id:"stop1",offset:e.percent,"stop-color":n.getFullFillColor(e),"stop-opacity":"1"},null,8,Lj),c("stop",{id:"stop2",offset:e.percent,"stop-color":n.getFullFillColor(e),"stop-opacity":"0"},null,8,Uj),c("stop",{id:"stop3",offset:e.percent,"stop-color":s.style.emptyStarColor,"stop-opacity":"1"},null,8,Kj),c("stop",{id:"stop4","stop-color":s.style.emptyStarColor,offset:"100%","stop-opacity":"1"},null,8,qj)],8,Oj)])],4))],8,Vj))),128)),s.isIndicatorActive?(l(),_("div",Zj,w(i.rating),1)):S("",!0)])}var Hj=ee(Fj,[["render",Wj],["__scopeId","data-v-52311750"]]),Gj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Hj});const Yj={props:{status:{type:String,required:!1,default:""}},setup(s){return{badgeColorClasses:D(()=>{switch(s.status){case"COMPLETED":return"bg-green-500 bg-opacity-25 px-2  py-1 text-sm  text-green-900 uppercase font-normal text-center";case"ON_HOLD":return"bg-yellow-500 bg-opacity-25 px-2  py-1 text-sm  text-yellow-900 uppercase font-normal text-center";case"ACTIVE":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 px-2 py-1 text-sm  text-gray-900 uppercase font-normal text-center"}})}}};function Jj(s,r,i,a,t,n){return l(),_("span",{class:A(a.badgeColorClasses)},[F(s.$slots,"default")],2)}var Xj=ee(Yj,[["render",Jj]]),Qj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Xj});const eP={},tP={class:"flex flex-col"},aP={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},sP={class:"py-2 align-middle inline-block min-w-full sm:px-4 lg:px-6"},nP={class:"overflow-hidden sm:px-2 lg:p-2"};function iP(s,r){return l(),_("div",tP,[c("div",aP,[c("div",sP,[c("div",nP,[F(s.$slots,"default")])])])])}var oP=ee(eP,[["render",iP]]),rP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:oP});const dP={},lP={class:"flex items-center justify-center w-full px-6 py-2 text-sm bg-gray-200 cursor-pointer text-primary-400"};function cP(s,r){return l(),_("div",lP,[F(s.$slots,"default")])}var _P=ee(dP,[["render",cP]]),uP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_P});const mP={class:"relative"},pP={key:0,class:"block truncate"},gP={key:1,class:"block text-gray-400 truncate"},fP={key:2,class:"block text-gray-400 truncate"},hP={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},vP={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:""},options:{type:Array,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},labelKey:{type:[String],default:"label"},valueProp:{type:String,default:null},multiple:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s;let a=q(i.modelValue);function t(e){return typeof e=="object"&&e!==null}function n(e){return t(e)?e[i.labelKey]:e}return ge(()=>i.modelValue,()=>{i.valueProp&&i.options.length?a.value=i.options.find(e=>{if(e[i.valueProp])return e[i.valueProp]===i.modelValue}):a.value=i.modelValue}),ge(a,e=>{i.valueProp?r("update:modelValue",e[i.valueProp]):r("update:modelValue",e)}),(e,o)=>{const m=C("BaseContentPlaceholdersBox"),p=C("BaseContentPlaceholders"),k=C("BaseIcon");return s.contentLoading?(l(),T(p,{key:0},{default:g(()=>[u(m,{rounded:!0,class:"w-full h-10"})]),_:1})):(l(),T(d(va),le({key:1,modelValue:d(a),"onUpdate:modelValue":o[0]||(o[0]=x=>J(a)?a.value=x:a=x),as:"div"},R({},e.$attrs)),{default:g(()=>[s.label?(l(),T(d(pa),{key:0,class:"block text-sm not-italic font-medium text-gray-800 mb-0.5"},{default:g(()=>[K(w(s.label),1)]),_:1})):S("",!0),c("div",mP,[u(d(ga),{class:"relative w-full py-2 pl-3 pr-10 text-left bg-white border border-gray-200 rounded-md shadow-sm cursor-default focus:outline-none focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm"},{default:g(()=>[n(d(a))?(l(),_("span",pP,w(n(d(a))),1)):s.placeholder?(l(),_("span",gP,w(s.placeholder),1)):(l(),_("span",fP," Please select an option ")),c("span",hP,[u(k,{name:"SelectorIcon",class:"text-gray-400","aria-hidden":"true"})])]),_:1}),u(Ee,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:g(()=>[u(d(fa),{class:"absolute z-10 w-full py-1 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:g(()=>[(l(!0),_(Q,null,ae(s.options,x=>(l(),T(d(ha),{key:x.id,value:x,as:"template"},{default:g(({active:b,selected:h})=>[c("li",{class:A([b?"text-white bg-primary-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[c("span",{class:A([h?"font-semibold":"font-normal","block truncate"])},w(n(x)),3),h?(l(),_("span",{key:0,class:A([b?"text-white":"text-primary-600","absolute inset-y-0 right-0 flex items-center pr-4"])},[u(k,{name:"CheckIcon","aria-hidden":"true"})],2)):S("",!0)],2)]),_:2},1032,["value"]))),128)),F(e.$slots,"default")]),_:3})]),_:3})])]),_:3},16,["modelValue"]))}}};var yP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vP});const bP={class:"flex flex-wrap justify-between lg:flex-nowrap mb-5"},kP={class:"font-medium text-lg text-left"},wP={class:"mt-2 text-sm leading-snug text-left text-gray-500 max-w-[680px]"},xP={class:"mt-4 lg:mt-0 lg:ml-2"},zP={props:{title:{type:String,required:!0},description:{type:String,required:!0}},setup(s){return(r,i)=>{const a=C("BaseCard");return l(),T(a,null,{default:g(()=>[c("div",bP,[c("div",null,[c("h6",kP,w(s.title),1),c("p",wP,w(s.description),1)]),c("div",xP,[F(r.$slots,"action")])]),F(r.$slots,"default")]),_:3})}}};var SP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zP});const jP={},PP={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},DP=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),CP=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),AP=[DP,CP];function EP(s,r){return l(),_("svg",PP,AP)}var NP=ee(jP,[["render",EP]]),TP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NP});const IP={class:"flex flex-row items-start"},$P={props:{labelLeft:{type:String,default:""},labelRight:{type:String,default:""},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=D({get:()=>i.modelValue,set:t=>r("update:modelValue",t)});return(t,n)=>(l(),T(d(ut),null,{default:g(()=>[c("div",IP,[s.labelLeft?(l(),T(d(Oe),{key:0,class:"mr-4 cursor-pointer"},{default:g(()=>[K(w(s.labelLeft),1)]),_:1})):S("",!0),u(d(_t),le({modelValue:d(a),"onUpdate:modelValue":n[0]||(n[0]=e=>J(a)?a.value=e:null),class:[d(a)?"bg-primary-500":"bg-gray-300","relative inline-flex items-center h-6 transition-colors rounded-full w-11 focus:outline-none focus:ring-primary-500"]},t.$attrs),{default:g(()=>[c("span",{class:A([d(a)?"translate-x-6":"translate-x-1","inline-block w-4 h-4 transition-transform bg-white rounded-full"])},null,2)]),_:1},16,["modelValue","class"]),s.labelRight?(l(),T(d(Oe),{key:1,class:"ml-4 cursor-pointer"},{default:g(()=>[K(w(s.labelRight),1)]),_:1})):S("",!0)])]),_:1}))}};var RP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$P});const FP={class:"flex flex-col"},MP={props:{title:{type:String,required:!0},description:{type:String,default:""},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){function i(a){r("update:modelValue",a)}return(a,t)=>(l(),T(d(ut),{as:"li",class:"py-4 flex items-center justify-between"},{default:g(()=>[c("div",FP,[u(d(Oe),{as:"p",class:"p-0 mb-1 text-sm leading-snug text-black font-medium",passive:""},{default:g(()=>[K(w(s.title),1)]),_:1}),u(d(ya),{class:"text-sm text-gray-500"},{default:g(()=>[K(w(s.description),1)]),_:1})]),u(d(_t),{disabled:s.disabled,"model-value":s.modelValue,class:A([s.modelValue?"bg-primary-500":"bg-gray-200","ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"]),"onUpdate:modelValue":i},{default:g(()=>[c("span",{"aria-hidden":"true",class:A([s.modelValue?"translate-x-5":"translate-x-0","inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["disabled","model-value","class"])]),_:1}))}};var VP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:MP});const BP={props:{title:{type:[String,Number],default:"Tab"},count:{type:[String,Number],default:""},countVariant:{type:[String,Number],default:""},tabPanelContainer:{type:String,default:"py-4 mt-px"}},setup(s){return(r,i)=>(l(),T(d(ba),{class:A([s.tabPanelContainer,"focus:outline-none"])},{default:g(()=>[F(r.$slots,"default")]),_:3},8,["class"]))}};var OP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:BP});const LP={props:{defaultIndex:{type:Number,default:0},filter:{type:String,default:null}},emits:["change"],setup(s,{emit:r}){const i=pe(),a=D(()=>i.default().map(n=>n.props));function t(n){r("change",a.value[n])}return(n,e)=>{const o=C("BaseBadge");return l(),_("div",null,[u(d(za),{"default-index":s.defaultIndex,onChange:t},{default:g(()=>[u(d(ka),{class:A(["flex border-b border-grey-light","relative overflow-x-auto overflow-y-hidden","lg:pb-0 lg:ml-0"])},{default:g(()=>[(l(!0),_(Q,null,ae(d(a),(m,p)=>(l(),T(d(wa),{key:p,as:"template"},{default:g(({selected:k})=>[c("button",{class:A(["px-8 py-2 text-sm leading-5 font-medium flex items-center relative border-b-2 mt-4 focus:outline-none whitespace-nowrap",k?" border-primary-400 text-black font-medium":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"])},[K(w(m.title)+" ",1),m.count?(l(),T(o,{key:0,class:"!rounded-full overflow-hidden ml-2",variant:m["count-variant"],"default-class":"flex items-center justify-center w-5 h-5 p-1 rounded-full text-medium"},{default:g(()=>[K(w(m.count),1)]),_:2},1032,["variant"])):S("",!0)],2)]),_:2},1024))),128))]),_:1}),F(n.$slots,"before-tabs"),u(d(xa),null,{default:g(()=>[F(n.$slots,"default")]),_:3})]),_:3},8,["default-index"])])}}};var UP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:LP});const KP={props:{tag:{type:String,default:"div"},text:{type:String,default:""},length:{type:Number,default:0}},setup(s){const r=s,i=D(()=>r.text.length<r.length?r.text:`${r.text.substring(0,r.length)}...`);return(a,t)=>{const n=C("BaseCustomTag");return l(),T(n,{tag:s.tag,title:s.text},{default:g(()=>[K(w(d(i)),1)]),_:1},8,["tag","title"])}}};var qP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:KP});const ZP=["value","disabled"],WP={props:{contentLoading:{type:Boolean,default:!1},row:{type:Number,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:[String,Number],default:""},defaultInputClass:{type:String,default:"box-border w-full px-3 py-2 text-sm not-italic font-normal leading-snug text-left text-black placeholder-gray-400 bg-white border border-gray-200 border-solid rounded outline-none"},autosize:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=q(null),t=D(()=>i.invalid&&!i.borderless?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":i.borderless?"border-none outline-none focus:ring-primary-400 focus:border focus:border-primary-400":"focus:ring-primary-400 focus:border-primary-400"),n=D(()=>{switch(i.row){case 2:return"56";case 4:return"94";default:return"56"}});function e(o){r("update:modelValue",o.target.value),i.autosize&&(o.target.style.height="auto",o.target.style.height=`${o.target.scrollHeight}px`)}return ze(()=>{a.value&&i.autosize&&(a.value.style.height=a.value.scrollHeight+"px",a.value.style.overflow&&a.value.style.overflow.y&&(a.value.style.overflow.y="hidden"),a.value.style.resize="none")}),(o,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return s.contentLoading?(l(),T(k,{key:0},{default:g(()=>[u(p,{rounded:!0,class:"w-full",style:Ce(`height: ${d(n)}px`)},null,8,["style"])]),_:1})):(l(),_("textarea",le({key:1},o.$attrs,{ref:(x,b)=>{b.textarea=x,a.value=x},value:s.modelValue,class:[s.defaultInputClass,d(t)],disabled:s.disabled,onInput:e}),null,16,ZP))}}};var HP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:WP});const GP=c("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"},null,-1),YP=[GP],JP={props:{modelValue:{type:[String,Date],default:()=>moment(new Date)},contentLoading:{type:Boolean,default:!1},placeholder:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},containerClass:{type:String,default:""},clockIcon:{type:Boolean,default:!0},defaultInputClass:{type:String,default:"font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-300 rounded-md text-black"}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=q(null),t=pe();let n=Be({enableTime:!0,noCalendar:!0,dateFormat:"H:i",time_24hr:!0});const e=D({get:()=>i.modelValue,set:b=>r("update:modelValue",b)}),o=D(()=>!!t.icon);function m(b){a.value.fp.open()}const p=D(()=>`${i.containerClass} `),k=D(()=>i.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),x=D(()=>i.disabled?"border border-solid rounded-md outline-none input-field box-border-2 base-date-picker-input placeholder-gray-400 bg-gray-300 text-gray-600 border-gray-300":"");return(b,h)=>{const E=C("BaseContentPlaceholdersBox"),$=C("BaseContentPlaceholders");return s.contentLoading?(l(),T($,{key:0},{default:g(()=>[u(E,{rounded:!0,class:A(`w-full ${d(p)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:A([d(p),"relative flex flex-row"])},[s.clockIcon&&!d(o)?(l(),_("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",class:"absolute top-px w-4 h-4 mx-2 my-2.5 text-sm not-italic font-black text-gray-400 cursor-pointer",viewBox:"0 0 20 20",fill:"currentColor",onClick:m},YP)):S("",!0),s.clockIcon&&d(o)?F(b.$slots,"icon",{key:1}):S("",!0),u(d(st),le({ref:(I,z)=>{z.dpt=I,a.value=I},modelValue:d(e),"onUpdate:modelValue":h[0]||(h[0]=I=>J(e)?e.value=I:null)},b.$attrs,{disabled:s.disabled,config:d(n),class:[s.defaultInputClass,d(k),d(x)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var XP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:JP});const QP={props:{currentStep:{type:Number,default:null},steps:{type:Number,default:null},containerClass:{type:String,default:"flex justify-between w-full my-10 max-w-xl mx-auto"},progress:{type:String,default:"rounded-full float-left w-6 h-6 border-4 cursor-pointer"},currentStepClass:{type:String,default:"bg-white border-primary-500"},nextStepClass:{type:String,default:"border-gray-200 bg-white"},previousStepClass:{type:String,default:"bg-primary-500 border-primary-500 flex justify-center items-center"},iconClass:{type:String,default:"flex items-center justify-center w-full h-full text-sm font-black text-center text-white"}},emits:["click"],setup(s){function r(i){return s.currentStep===i?[s.currentStepClass,s.progress]:s.currentStep>i?[s.previousStepClass,s.progress]:s.currentStep<i?[s.nextStepClass,s.progress]:[s.progress]}return{stepStyle:r}}},eD=["onClick"],tD=["onClick"],aD=c("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1),sD=[aD];function nD(s,r,i,a,t,n){return l(),_("div",{class:A([i.containerClass,"relative after:bg-gray-200 after:absolute after:transform after:top-1/2 after:-translate-y-1/2 after:h-2 after:w-full"])},[(l(!0),_(Q,null,ae(i.steps,(e,o)=>(l(),_("a",{key:o,class:A([a.stepStyle(e),"z-10"]),href:"#",onClick:re(m=>s.$emit("click",o),["prevent"])},[i.currentStep>e?(l(),_("svg",{key:0,class:A(i.iconClass),fill:"currentColor",viewBox:"0 0 20 20",onClick:m=>s.$emit("click",o)},sD,10,tD)):S("",!0)],10,eD))),128))],2)}var At=ee(QP,[["render",nD]]),iD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:At});const oD={class:"w-full"},rD={props:{wizardStepsContainerClass:{type:String,default:"relative flex items-center justify-center"},currentStep:{type:Number,default:0},steps:{type:Number,default:0}},emits:["click"],setup(s,{emit:r}){return(i,a)=>(l(),_("div",oD,[F(i.$slots,"nav",{},()=>[u(At,{"current-step":s.currentStep,steps:s.steps,onClick:a[0]||(a[0]=t=>i.$emit("click",t))},null,8,["current-step","steps"])]),c("div",{class:A(s.wizardStepsContainerClass)},[F(i.$slots,"default")],2)]))}};var dD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:rD});const lD={key:0},cD={props:{title:{type:String,default:null},description:{type:String,default:null},stepContainerClass:{type:String,default:"w-full p-8 mb-8 bg-white border border-gray-200 border-solid rounded"},stepTitleClass:{type:String,default:"text-2xl not-italic font-semibold leading-7 text-black"},stepDescriptionClass:{type:String,default:"w-full mt-2.5 mb-8 text-sm not-italic leading-snug text-gray-500 lg:w-7/12 md:w-7/12 sm:w-7/12"}},setup(s){return(r,i)=>(l(),_("div",{class:A(s.stepContainerClass)},[s.title||s.description?(l(),_("div",lD,[s.title?(l(),_("p",{key:0,class:A(s.stepTitleClass)},w(s.title),3)):S("",!0),s.description?(l(),_("p",{key:1,class:A(s.stepDescriptionClass)},w(s.description),3)):S("",!0)])):S("",!0),F(r.$slots,"default")],2))}};var _D=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:cD});const uD=s=>{Object.entries({"./components/base/BaseBadge.vue":Tb,"./components/base/BaseBreadcrumb.vue":Mb,"./components/base/BaseBreadcrumbItem.vue":Lb,"./components/base/BaseButton.vue":Jb,"./components/base/BaseCard.vue":ak,"./components/base/BaseCheckbox.vue":lk,"./components/base/BaseContentPlaceholders.vue":_k,"./components/base/BaseContentPlaceholdersBox.vue":mk,"./components/base/BaseContentPlaceholdersHeading.vue":vk,"./components/base/BaseContentPlaceholdersText.vue":kk,"./components/base/BaseCustomInput.vue":Ek,"./components/base/BaseCustomTag.vue":Tk,"./components/base/BaseCustomerAddressDisplay.vue":Lk,"./components/base/BaseCustomerSelectInput.vue":nw,"./components/base/BaseCustomerSelectPopup.vue":Uw,"./components/base/BaseDatePicker.vue":Ww,"./components/base/BaseDescriptionList.vue":Xw,"./components/base/BaseDescriptionListItem.vue":ax,"./components/base/BaseDialog.vue":cx,"./components/base/BaseDivider.vue":gx,"./components/base/BaseDropdown.vue":yx,"./components/base/BaseDropdownItem.vue":kx,"./components/base/BaseEmptyPlaceholder.vue":Ax,"./components/base/BaseErrorAlert.vue":Vx,"./components/base/BaseEstimateStatusBadge.vue":Ox,"./components/base/BaseFileUploader.vue":fz,"./components/base/BaseFilterWrapper.vue":yz,"./components/base/BaseFormatMoney.vue":wz,"./components/base/BaseGlobalLoader.vue":sS,"./components/base/BaseHeading.vue":iS,"./components/base/BaseIcon.vue":rS,"./components/base/BaseInfoAlert.vue":bS,"./components/base/BaseInput.vue":RS,"./components/base/BaseInputGrid.vue":MS,"./components/base/BaseInputGroup.vue":US,"./components/base/BaseInvoiceStatusBadge.vue":WS,"./components/base/BaseItemSelect.vue":ej,"./components/base/BaseLabel.vue":ij,"./components/base/BaseModal.vue":cj,"./components/base/BaseMoney.vue":uj,"./components/base/BaseNewBadge.vue":pj,"./components/base/BasePage.vue":yj,"./components/base/BasePageHeader.vue":zj,"./components/base/BasePaidStatusBadge.vue":Dj,"./components/base/BaseRadio.vue":Rj,"./components/base/BaseRating.vue":Gj,"./components/base/BaseRecurringInvoiceStatusBadge.vue":Qj,"./components/base/BaseScrollPane.vue":rP,"./components/base/BaseSelectAction.vue":uP,"./components/base/BaseSelectInput.vue":yP,"./components/base/BaseSettingCard.vue":SP,"./components/base/BaseSpinner.vue":TP,"./components/base/BaseSwitch.vue":RP,"./components/base/BaseSwitchSection.vue":VP,"./components/base/BaseTab.vue":OP,"./components/base/BaseTabGroup.vue":UP,"./components/base/BaseText.vue":qP,"./components/base/BaseTextarea.vue":HP,"./components/base/BaseTimePicker.vue":XP,"./components/base/BaseWizard.vue":dD,"./components/base/BaseWizardNavigation.vue":iD,"./components/base/BaseWizardStep.vue":_D}).forEach(([n,e])=>{const o=n.split("/").pop().replace(/\.\w+$/,"");s.component(o,e.default)});const i=Le(()=>j(()=>import("./BaseTable.440de545.js"),["assets/BaseTable.440de545.js","assets/vendor.01d0adc5.js"])),a=Le(()=>j(()=>import("./BaseMultiselect.b84023ff.js"),["assets/BaseMultiselect.b84023ff.js","assets/vendor.01d0adc5.js"])),t=Le(()=>j(()=>import("./BaseEditor.ef23aa4a.js"),["assets/BaseEditor.ef23aa4a.js","assets/BaseEditor.bacb9608.css","assets/vendor.01d0adc5.js"]));s.component("BaseTable",i),s.component("BaseMultiselect",a),s.component("BaseEditor",t)},ce=Sa(Ls);class mD{constructor(){this.bootingCallbacks=[],this.messages=Eb}booting(r){this.bootingCallbacks.push(r)}executeCallbacks(){this.bootingCallbacks.forEach(r=>{r(ce,$e)})}addMessages(r=[]){oe.merge(this.messages,r)}start(){this.executeCallbacks(),uD(ce),ce.provide("$utils",Ze);const r=Qe({locale:"en",fallbackLocale:"en",globalInjection:!0,messages:this.messages});window.i18n=r;const{createPinia:i}=window.pinia;ce.use($e),ce.use(ja),ce.use(r),ce.use(i()),ce.provide("utils",Ze),ce.directive("tooltip",Pa),ce.mount("body")}}window.pinia=Da;window.Vuelidate=Ca;window.Vue=Aa;window.router=$e;window.VueRouter=Ea;window.Crater=new mD;export{Ue as L,Gb as S,ie as T,ee as _,Na as a,_e as b,Pe as c,Ie as d,je as e,Xz as f,O as g,v as h,Me as i,sx as j,He as k,be as l,xk as m,Hk as n,j as o,Fe as p,ke as q,Ta as r,Ze as s,Dt as t,M as u,Vs as v,bx as w,vx as x};
import{h as s}from"./auth.77d12976.js";import{a as o}from"./vendor.01d0adc5.js";const{defineStore:i}=window.pinia,d=i({id:"customerPaymentStore",state:()=>({payments:[],selectedViewPayment:[],totalPayments:0}),actions:{fetchPayments(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payments`,{params:e}).then(t=>{this.payments=t.data.data,this.totalPayments=t.data.meta.paymentTotalCount,n(t)}).catch(t=>{s(t),m(t)})})},fetchViewPayment(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payments/${e.id}`).then(t=>{this.selectedViewPayment=t.data.data,n(t)}).catch(t=>{s(t),m(t)})})},searchPayment(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payments`,{params:e}).then(t=>{this.payments=t.data,n(t)}).catch(t=>{s(t),m(t)})})},fetchPaymentModes(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payment-method`,{params:e}).then(t=>{n(t)}).catch(t=>{s(t),m(t)})})}}});export{d as u};
var f=Object.defineProperty;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var u=(y,o,i)=>o in y?f(y,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[o]=i,p=(y,o)=>{for(var i in o||(o={}))g.call(o,i)&&u(y,i,o[i]);if(r)for(var i of r(o))w.call(o,i)&&u(y,i,o[i]);return y};import{G as v,I as _,a as d,d as N}from"./vendor.01d0adc5.js";import{b as S,h as m,u as h}from"./main.832b14c7.js";var P={maxPayableAmount:Number.MAX_SAFE_INTEGER,selectedCustomer:"",currency:null,currency_id:"",customer_id:"",payment_number:"",payment_date:"",amount:0,invoice_id:"",notes:"",payment_method_id:"",customFields:[],fields:[]};const I=(y=!1)=>{const o=y?window.pinia.defineStore:N,{global:i}=window.i18n;return o({id:"payment",state:()=>({payments:[],paymentTotalCount:0,selectAllField:!1,selectedPayments:[],selectedNote:null,showExchangeRate:!1,drivers:[],providers:[],paymentProviders:{id:null,name:"",driver:"",active:!1,settings:{key:"",secret:""}},currentPayment:p({},P),paymentModes:[],currentPaymentMode:{id:"",name:null},isFetchingInitialData:!1}),getters:{isEdit:t=>!!t.paymentProviders.id},actions:{fetchPaymentInitialData(t){const n=S(),s=v();this.isFetchingInitialData=!0;let e=[];t&&(e=[this.fetchPayment(s.params.id)]),Promise.all([this.fetchPaymentModes({limit:"all"}),this.getNextNumber(),...e]).then(async([a,l,c])=>{t?c.data.data.invoice&&(this.currentPayment.maxPayableAmount=parseInt(c.data.data.invoice.due_amount)):!t&&l.data&&(this.currentPayment.payment_date=_().format("YYYY-MM-DD"),this.currentPayment.payment_number=l.data.nextNumber,this.currentPayment.currency=n.selectedCompanyCurrency),this.isFetchingInitialData=!1}).catch(a=>{m(a)})},fetchPayments(t){return new Promise((n,s)=>{d.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data.data,this.paymentTotalCount=e.data.meta.payment_total_count,n(e)}).catch(e=>{m(e),s(e)})})},fetchPayment(t){return new Promise((n,s)=>{d.get(`/api/v1/payments/${t}`).then(e=>{Object.assign(this.currentPayment,e.data.data),n(e)}).catch(e=>{m(e),s(e)})})},addPayment(t){return new Promise((n,s)=>{d.post("/api/v1/payments",t).then(e=>{this.payments.push(e.data),h().showNotification({type:"success",message:i.t("payments.created_message")}),n(e)}).catch(e=>{m(e),s(e)})})},updatePayment(t){return new Promise((n,s)=>{d.put(`/api/v1/payments/${t.id}`,t).then(e=>{if(e.data){let a=this.payments.findIndex(c=>c.id===e.data.data.id);this.payments[a]=t.payment,h().showNotification({type:"success",message:i.t("payments.updated_message")})}n(e)}).catch(e=>{m(e),s(e)})})},deletePayment(t){const n=h();return new Promise((s,e)=>{d.post("/api/v1/payments/delete",t).then(a=>{let l=this.payments.findIndex(c=>c.id===t);this.payments.splice(l,1),n.showNotification({type:"success",message:i.t("payments.deleted_message",1)}),s(a)}).catch(a=>{m(a),e(a)})})},deleteMultiplePayments(){const t=h();return new Promise((n,s)=>{d.post("/api/v1/payments/delete",{ids:this.selectedPayments}).then(e=>{this.selectedPayments.forEach(a=>{let l=this.payments.findIndex(c=>c.id===a.id);this.payments.splice(l,1)}),t.showNotification({type:"success",message:i.tc("payments.deleted_message",2)}),n(e)}).catch(e=>{m(e),s(e)})})},setSelectAllState(t){this.selectAllField=t},selectPayment(t){this.selectedPayments=t,this.selectedPayments.length===this.payments.length?this.selectAllField=!0:this.selectAllField=!1},selectAllPayments(){if(this.selectedPayments.length===this.payments.length)this.selectedPayments=[],this.selectAllField=!1;else{let t=this.payments.map(n=>n.id);this.selectedPayments=t,this.selectAllField=!0}},selectNote(t){this.selectedNote=null,this.selectedNote=t},resetSelectedNote(t){this.selectedNote=null},searchPayment(t){return new Promise((n,s)=>{d.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data,n(e)}).catch(e=>{m(e),s(e)})})},previewPayment(t){return new Promise((n,s)=>{d.get(`/api/v1/payments/${t.id}/send/preview`,{params:t}).then(e=>{n(e)}).catch(e=>{m(e),s(e)})})},sendEmail(t){return new Promise((n,s)=>{d.post(`/api/v1/payments/${t.id}/send`,t).then(e=>{n(e)}).catch(e=>{m(e),s(e)})})},getNextNumber(t,n=!1){return new Promise((s,e)=>{d.get("/api/v1/next-number?key=payment",{params:t}).then(a=>{n&&(this.currentPayment.payment_number=a.data.nextNumber),s(a)}).catch(a=>{m(a),e(a)})})},resetCurrentPayment(){this.currentPayment=p({},P)},fetchPaymentModes(t){return new Promise((n,s)=>{d.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,n(e)}).catch(e=>{m(e),s(e)})})},fetchPaymentMode(t){return new Promise((n,s)=>{d.get(`/api/v1/payment-methods/${t}`).then(e=>{this.currentPaymentMode=e.data.data,n(e)}).catch(e=>{m(e),s(e)})})},addPaymentMode(t){const n=h();return new Promise((s,e)=>{d.post("/api/v1/payment-methods",t).then(a=>{this.paymentModes.push(a.data.data),n.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_added")}),s(a)}).catch(a=>{m(a),e(a)})})},updatePaymentMode(t){const n=h();return new Promise((s,e)=>{d.put(`/api/v1/payment-methods/${t.id}`,t).then(a=>{if(a.data){let l=this.paymentModes.findIndex(c=>c.id===a.data.data.id);this.paymentModes[l]=t.paymentModes,n.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_updated")})}s(a)}).catch(a=>{m(a),e(a)})})},deletePaymentMode(t){const n=h();return new Promise((s,e)=>{d.delete(`/api/v1/payment-methods/${t}`).then(a=>{let l=this.paymentModes.findIndex(c=>c.id===t);this.paymentModes.splice(l,1),a.data.success&&n.showNotification({type:"success",message:i.t("settings.payment_modes.deleted_message")}),s(a)}).catch(a=>{m(a),e(a)})})}}})()};export{I as u};
import{a as l,d as p}from"./vendor.01d0adc5.js";import{h as o,u as d}from"./main.832b14c7.js";const w=(u=!1)=>{const m=u?window.pinia.defineStore:p,{global:n}=window.i18n;return m({id:"users",state:()=>({roles:[],users:[],totalUsers:0,currentUser:null,selectAllField:!1,selectedUsers:[],customerList:[],userList:[],userData:{name:"",email:"",password:null,phone:null,companies:[]}}),actions:{resetUserData(){this.userData={name:"",email:"",password:null,phone:null,role:null,companies:[]}},fetchUsers(s){return new Promise((i,t)=>{l.get("/api/v1/users",{params:s}).then(e=>{this.users=e.data.data,this.totalUsers=e.data.meta.total,i(e)}).catch(e=>{o(e),t(e)})})},fetchUser(s){return new Promise((i,t)=>{l.get(`/api/v1/users/${s}`).then(e=>{var a,r;this.userData=e.data.data,((r=(a=this.userData)==null?void 0:a.companies)==null?void 0:r.length)&&this.userData.companies.forEach((c,f)=>{this.userData.roles.forEach(h=>{h.scope===c.id&&(this.userData.companies[f].role=h.name)})}),i(e)}).catch(e=>{console.log(e),o(e),t(e)})})},fetchRoles(s){return new Promise((i,t)=>{l.get("/api/v1/roles").then(e=>{this.roles=e.data.data,i(e)}).catch(e=>{o(e),t(e)})})},addUser(s){return new Promise((i,t)=>{l.post("/api/v1/users",s).then(e=>{this.users.push(e.data),d().showNotification({type:"success",message:n.t("users.created_message")}),i(e)}).catch(e=>{o(e),t(e)})})},updateUser(s){return new Promise((i,t)=>{l.put(`/api/v1/users/${s.id}`,s).then(e=>{if(e){let r=this.users.findIndex(c=>c.id===e.data.data.id);this.users[r]=e.data.data}d().showNotification({type:"success",message:n.t("users.updated_message")}),i(e)}).catch(e=>{o(e),t(e)})})},deleteUser(s){const i=d();return new Promise((t,e)=>{l.post("/api/v1/users/delete",{users:s.ids}).then(a=>{let r=this.users.findIndex(c=>c.id===s);this.users.splice(r,1),i.showNotification({type:"success",message:n.tc("users.deleted_message",1)}),t(a)}).catch(a=>{o(a),e(a)})})},deleteMultipleUsers(){return new Promise((s,i)=>{l.post("/api/v1/users/delete",{users:this.selectedUsers}).then(t=>{this.selectedUsers.forEach(a=>{let r=this.users.findIndex(c=>c.id===a.id);this.users.splice(r,1)}),d().showNotification({type:"success",message:n.tc("users.deleted_message",2)}),s(t)}).catch(t=>{o(t),i(t)})})},searchUsers(s){return new Promise((i,t)=>{l.get("/api/v1/search",{params:s}).then(e=>{this.userList=e.data.users.data,this.customerList=e.data.customers.data,i(e)}).catch(e=>{o(e),t(e)})})},setSelectAllState(s){this.selectAllField=s},selectUser(s){this.selectedUsers=s,this.selectedUsers.length===this.users.length?this.selectAllField=!0:this.selectAllField=!1},selectAllUsers(){if(this.selectedUsers.length===this.users.length)this.selectedUsers=[],this.selectAllField=!1;else{let s=this.users.map(i=>i.id);this.selectedUsers=s,this.selectAllField=!0}}}})()};export{w as u};
    "file": "assets/main.832b14c7.js",
    "file": "assets/LayoutInstallation.cb149016.js",
      "_NotificationRoot.9c69192b.js",
  "_NotificationRoot.9c69192b.js": {
    "file": "assets/NotificationRoot.9c69192b.js",
    "file": "assets/Login.983aaf9c.js",
    "file": "assets/LayoutBasic.9356da77.js",
      "_exchange-rate.45b62b37.js",
      "_users.936a04ee.js",
      "_NotificationRoot.9c69192b.js",
  "_exchange-rate.45b62b37.js": {
    "file": "assets/exchange-rate.45b62b37.js",
  "_users.936a04ee.js": {
    "file": "assets/users.936a04ee.js",
    "file": "assets/LayoutLogin.ff8102a9.js",
      "_NotificationRoot.9c69192b.js",
    "file": "assets/ResetPassword.d74cc4af.js",
    "file": "assets/ForgotPassword.0995a53b.js",
    "file": "assets/Dashboard.82801319.js",
      "_EstimateIcon.4571f94d.js",
      "_LineChart.cef8475e.js",
      "_InvoiceIndexDropdown.a0cb5742.js",
      "_EstimateIndexDropdown.5b4a2113.js"
  "_EstimateIcon.4571f94d.js": {
    "file": "assets/EstimateIcon.4571f94d.js",
  "_LineChart.cef8475e.js": {
    "file": "assets/LineChart.cef8475e.js",
  "_InvoiceIndexDropdown.a0cb5742.js": {
    "file": "assets/InvoiceIndexDropdown.a0cb5742.js",
  "_EstimateIndexDropdown.5b4a2113.js": {
    "file": "assets/EstimateIndexDropdown.5b4a2113.js",
    "file": "assets/Index.e2a0d22a.js",
      "_CustomerIndexDropdown.8fced79d.js",
  "_CustomerIndexDropdown.8fced79d.js": {
    "file": "assets/CustomerIndexDropdown.8fced79d.js",
    "file": "assets/Create.475a76c5.js",
      "_CreateCustomFields.940787b7.js"
  "_CreateCustomFields.940787b7.js": {
    "file": "assets/CreateCustomFields.940787b7.js",
    "file": "assets/View.e4530ad0.js",
      "_LoadingIcon.cfb2fcf9.js",
      "_LineChart.cef8475e.js",
      "_CustomerIndexDropdown.8fced79d.js"
  "_LoadingIcon.cfb2fcf9.js": {
    "file": "assets/LoadingIcon.cfb2fcf9.js",
    "file": "assets/SettingsIndex.a567c11a.js",
      "_BaseListItem.9b6cf3ed.js"
  "_BaseListItem.9b6cf3ed.js": {
    "file": "assets/BaseListItem.9b6cf3ed.js",
    "file": "assets/AccountSetting.da52ee4f.js",
    "file": "assets/CompanyInfoSettings.7205fcd8.js",
    "file": "assets/PreferencesSetting.1aed7c20.js",
    "file": "assets/CustomizationSetting.737665c8.js",
      "_DragIcon.88fb50b8.js",
      "_payment.372edbf1.js",
      "_ItemUnitModal.076e3ed4.js"
  "_ItemUnitModal.076e3ed4.js": {
    "file": "assets/ItemUnitModal.076e3ed4.js",
  "_payment.372edbf1.js": {
    "file": "assets/payment.372edbf1.js",
  "_DragIcon.88fb50b8.js": {
    "file": "assets/DragIcon.88fb50b8.js",
    "file": "assets/NotificationsSetting.11df416b.js",
    "file": "assets/TaxTypesSetting.fd3301df.js",
      "_TaxTypeModal.cf69664d.js"
  "_TaxTypeModal.cf69664d.js": {
    "file": "assets/TaxTypeModal.cf69664d.js",
    "file": "assets/PaymentsModeSetting.dcc78254.js",
      "_payment.372edbf1.js",
      "_PaymentModeModal.c3a19345.js"
  "_PaymentModeModal.c3a19345.js": {
    "file": "assets/PaymentModeModal.c3a19345.js",
      "_payment.372edbf1.js",
    "file": "assets/CustomFieldsSetting.501ee588.js",
    "file": "assets/NotesSetting.e9205a98.js",
      "_NoteModal.a07ce50b.js",
      "_payment.372edbf1.js"
  "_NoteModal.a07ce50b.js": {
    "file": "assets/NoteModal.a07ce50b.js",
      "_payment.372edbf1.js"
    "file": "assets/ExpenseCategorySetting.c1ee4ee9.js",
      "_category.c27e9638.js",
      "_CategoryModal.9d414df9.js"
  "_category.c27e9638.js": {
    "file": "assets/category.c27e9638.js",
  "_CategoryModal.9d414df9.js": {
    "file": "assets/CategoryModal.9d414df9.js",
      "_category.c27e9638.js",
    "file": "assets/ExchangeRateProviderSetting.9a85b8a9.js",
      "_exchange-rate.45b62b37.js",
    "file": "assets/BaseTable.440de545.js",
    "file": "assets/MailConfigSetting.bed82965.js",
      "_mail-driver.1b5e2a8f.js",
  "_mail-driver.1b5e2a8f.js": {
    "file": "assets/mail-driver.1b5e2a8f.js",
    "file": "assets/FileDiskSetting.d58a523e.js",
      "_disk.3cfd12a4.js",
  "_disk.3cfd12a4.js": {
    "file": "assets/disk.3cfd12a4.js",
    "file": "assets/BackupSetting.55f66228.js",
      "_disk.3cfd12a4.js"
    "file": "assets/UpdateAppSetting.6d85b6d6.js",
      "_LoadingIcon.cfb2fcf9.js",
      "_exchange-rate.45b62b37.js"
    "file": "assets/RolesSettings.eab2dae6.js",
    "file": "assets/Index.e62ad0f6.js",
    "file": "assets/Create.2eca81af.js",
      "_ItemUnitModal.076e3ed4.js"
    "file": "assets/Index.e0ef1077.js",
      "_expense.e774182e.js",
      "_category.c27e9638.js",
  "_expense.e774182e.js": {
    "file": "assets/expense.e774182e.js",
    "file": "assets/Create.d23f75f8.js",
      "_expense.e774182e.js",
      "_category.c27e9638.js",
      "_CreateCustomFields.940787b7.js",
      "_CategoryModal.9d414df9.js",
      "_ExchangeRateConverter.357f31c9.js",
      "_exchange-rate.45b62b37.js"
  "_ExchangeRateConverter.357f31c9.js": {
    "file": "assets/ExchangeRateConverter.357f31c9.js",
      "_exchange-rate.45b62b37.js",
    "file": "assets/Index.009ded38.js",
      "_users.936a04ee.js",
    "file": "assets/Create.475841f0.js",
      "_users.936a04ee.js"
    "file": "assets/Index.d9ed68a7.js",
      "_EstimateIndexDropdown.5b4a2113.js",
      "_SendEstimateModal.63b9a1be.js",
      "_mail-driver.1b5e2a8f.js"
  "_SendEstimateModal.63b9a1be.js": {
    "file": "assets/SendEstimateModal.63b9a1be.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/EstimateCreate.74ff5f87.js",
      "_SalesTax.da1d755f.js",
      "_CreateCustomFields.940787b7.js",
      "_ExchangeRateConverter.357f31c9.js",
      "_TaxTypeModal.cf69664d.js",
      "_DragIcon.88fb50b8.js",
      "_SelectNotePopup.b35e7850.js",
      "_NoteModal.a07ce50b.js",
      "_payment.372edbf1.js",
      "_exchange-rate.45b62b37.js"
  "_SalesTax.da1d755f.js": {
    "file": "assets/SalesTax.da1d755f.js",
      "_DragIcon.88fb50b8.js",
      "_SelectNotePopup.b35e7850.js"
  "_SelectNotePopup.b35e7850.js": {
    "file": "assets/SelectNotePopup.b35e7850.js",
      "_NoteModal.a07ce50b.js",
    "file": "assets/View.bd09940e.js",
      "_EstimateIndexDropdown.5b4a2113.js",
      "_SendEstimateModal.63b9a1be.js",
      "_LoadingIcon.cfb2fcf9.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/Index.4e4fe99e.js",
      "_payment.372edbf1.js",
      "_SendPaymentModal.a713aa7b.js",
      "_mail-driver.1b5e2a8f.js"
  "_SendPaymentModal.a713aa7b.js": {
    "file": "assets/SendPaymentModal.a713aa7b.js",
      "_payment.372edbf1.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/Create.7565e912.js",
      "_ExchangeRateConverter.357f31c9.js",
      "_payment.372edbf1.js",
      "_SelectNotePopup.b35e7850.js",
      "_CreateCustomFields.940787b7.js",
      "_PaymentModeModal.c3a19345.js",
      "_exchange-rate.45b62b37.js",
      "_NoteModal.a07ce50b.js"
    "file": "assets/View.9d1371a6.js",
      "_payment.372edbf1.js",
      "_SendPaymentModal.a713aa7b.js",
      "_LoadingIcon.cfb2fcf9.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/Index.2bd1ee98.js",
      "_InvoiceIndexDropdown.a0cb5742.js",
      "_SendInvoiceModal.35678ab1.js",
      "_mail-driver.1b5e2a8f.js"
  "_SendInvoiceModal.35678ab1.js": {
    "file": "assets/SendInvoiceModal.35678ab1.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/InvoiceCreate.1070946f.js",
      "_SalesTax.da1d755f.js",
      "_ExchangeRateConverter.357f31c9.js",
      "_CreateCustomFields.940787b7.js",
      "_TaxTypeModal.cf69664d.js",
      "_DragIcon.88fb50b8.js",
      "_SelectNotePopup.b35e7850.js",
      "_NoteModal.a07ce50b.js",
      "_payment.372edbf1.js",
      "_exchange-rate.45b62b37.js"
    "file": "assets/View.8105b510.js",
      "_InvoiceIndexDropdown.a0cb5742.js",
      "_SendInvoiceModal.35678ab1.js",
      "_LoadingIcon.cfb2fcf9.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/Index.b07c0ccb.js",
      "_SendInvoiceModal.35678ab1.js",
      "_RecurringInvoiceIndexDropdown.c53e92ab.js",
      "_mail-driver.1b5e2a8f.js"
  "_RecurringInvoiceIndexDropdown.c53e92ab.js": {
    "file": "assets/RecurringInvoiceIndexDropdown.c53e92ab.js",
    "file": "assets/RecurringInvoiceCreate.6dc9a09d.js",
      "_SalesTax.da1d755f.js",
      "_ExchangeRateConverter.357f31c9.js",
      "_CreateCustomFields.940787b7.js",
      "_TaxTypeModal.cf69664d.js",
      "_DragIcon.88fb50b8.js",
      "_SelectNotePopup.b35e7850.js",
      "_NoteModal.a07ce50b.js",
      "_payment.372edbf1.js",
      "_exchange-rate.45b62b37.js"
    "file": "assets/View.07e96e55.js",
      "_LoadingIcon.cfb2fcf9.js",
      "_InvoiceIndexDropdown.a0cb5742.js",
      "_RecurringInvoiceIndexDropdown.c53e92ab.js"
    "file": "assets/Index.b248ed67.js",
    "file": "assets/Installation.6e376b8f.js",
      "_mail-driver.1b5e2a8f.js"
    "file": "assets/Index.d59517a0.js",
    "file": "assets/View.da3f3d2d.js",
    "file": "assets/LayoutBasic.93ba7a34.js",
      "_auth.77d12976.js",
      "_global.8697213a.js",
      "_NotificationRoot.9c69192b.js"
  "_global.8697213a.js": {
    "file": "assets/global.8697213a.js",
      "_auth.77d12976.js",
  "_auth.77d12976.js": {
    "file": "assets/auth.77d12976.js",
    "file": "assets/LayoutLogin.2470450f.js",
      "_NotificationRoot.9c69192b.js",
    "file": "assets/Login.ac27c54a.js",
      "_auth.77d12976.js",
    "file": "assets/ForgotPassword.3e4f7a08.js",
      "_auth.77d12976.js",
    "file": "assets/ResetPassword.5e8676a5.js",
      "_global.8697213a.js",
      "_auth.77d12976.js",
    "file": "assets/Dashboard.63b9cd0b.js",
      "_EstimateIcon.4571f94d.js",
      "_global.8697213a.js",
      "_auth.77d12976.js",
    "file": "assets/Index.783e6ec5.js",
      "_invoice.fd03309f.js",
      "_global.8697213a.js",
      "_auth.77d12976.js",
  "_invoice.fd03309f.js": {
    "file": "assets/invoice.fd03309f.js",
      "_auth.77d12976.js",
    "file": "assets/View.323e6604.js",
      "_invoice.fd03309f.js",
      "_global.8697213a.js",
      "_auth.77d12976.js"
    "file": "assets/Index.2e179c87.js",
      "_global.8697213a.js",
      "_estimate.5745bb55.js",
      "_auth.77d12976.js"
  "_estimate.5745bb55.js": {
    "file": "assets/estimate.5745bb55.js",
      "_auth.77d12976.js"
    "file": "assets/View.a394d4d6.js",
      "_estimate.5745bb55.js",
      "_global.8697213a.js",
      "_auth.77d12976.js"
    "file": "assets/Index.16cd769b.js",
      "_payment.b36842df.js",
      "_global.8697213a.js",
      "_auth.77d12976.js"
  "_payment.b36842df.js": {
    "file": "assets/payment.b36842df.js",
      "_auth.77d12976.js",
    "file": "assets/View.9e3aab31.js",
      "_payment.b36842df.js",
      "_global.8697213a.js",
      "_auth.77d12976.js"
    "file": "assets/SettingsIndex.137f25aa.js",
      "_BaseListItem.9b6cf3ed.js",
      "_global.8697213a.js",
      "_auth.77d12976.js"
    "file": "assets/CustomerSettings.e1586718.js",
      "_global.8697213a.js",
      "_auth.77d12976.js",
    "file": "assets/AddressInformation.1c2a332c.js",
      "_global.8697213a.js",
      "_auth.77d12976.js",
    "file": "assets/BaseMultiselect.b84023ff.js",
    "file": "assets/BaseEditor.ef23aa4a.js",
  if (customerStore.currentCustomer.email === '') {
  v$.value.$touch()
        }, 3000)

Fixed code:
var L=Object.defineProperty,R=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var b=(u,s,i)=>s in u?L(u,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[s]=i,U=(u,s)=>{for(var i in s||(s={}))T.call(s,i)&&b(u,i,s[i]);if(V)for(var i of V(s))z.call(s,i)&&b(u,i,s[i]);return u},S=(u,s)=>R(u,P(s));import{J as E,B,k as I,L as v,M as y,Q as J,N as Q,P as H,a0 as K,T as O,r as m,o as C,e as W,f as r,w as d,u as e,x as X,l as Y,m as Z,j as x,i as ee,t as ae,U as se,h as te}from"./vendor.01d0adc5.js";import{e as ne,d as oe,b as re}from"./main.75722495.js";const le=["onSubmit"],ie=te("span",null,null,-1),pe={setup(u){const s=ne(),i=oe(),M=re(),{t:g}=E();let p=B(!1),w=B(null),f=B([]);s.currentUser.avatar&&f.value.push({image:s.currentUser.avatar});const F=I(()=>({name:{required:v.withMessage(g("validation.required"),y)},email:{required:v.withMessage(g("validation.required"),y),email:v.withMessage(g("validation.email_incorrect"),J)},password:{minLength:v.withMessage(g("validation.password_length",{count:8}),Q(8))},confirm_password:{sameAsPassword:v.withMessage(g("validation.password_incorrect"),H(t.password))}})),t=K({name:s.currentUser.name,email:s.currentUser.email,language:s.currentUserSettings.language||M.selectedCompanySettings.language,password:"",confirm_password:""}),o=O(F,I(()=>t));function q(l,a){w.value=a}function k(){w.value=null}async function N(){if(o.value.$touch(),o.value.$invalid)return!0;p.value=!0;let l={name:t.name,email:t.email};try{if(t.password!=null&&t.password!==void 0&&t.password!==""&&(l=S(U({},l),{password:t.password})),s.currentUserSettings.language!==t.language&&await s.updateUserSettings({settings:{language:t.language}}),(await s.updateCurrentUser(l)).data.data){if(p.value=!1,w.value){let $=new FormData;$.append("admin_avatar",w.value),await s.uploadAvatar($)}t.password="",t.confirm_password=""}}catch{return p.value=!1,!0}}return(l,a)=>{const $=m("BaseFileUploader"),c=m("BaseInputGroup"),_=m("BaseInput"),G=m("BaseMultiselect"),D=m("BaseInputGrid"),h=m("BaseIcon"),j=m("BaseButton"),A=m("BaseSettingCard");return C(),W("form",{class:"relative",onSubmit:se(N,["prevent"])},[r(A,{title:l.$t("settings.account_settings.account_settings"),description:l.$t("settings.account_settings.section_description")},{default:d(()=>[r(D,null,{default:d(()=>[r(c,{label:l.$tc("settings.account_settings.profile_picture")},{default:d(()=>[r($,{modelValue:e(f),"onUpdate:modelValue":a[0]||(a[0]=n=>X(f)?f.value=n:f=n),avatar:!0,accept:"image/*",onChange:q,onRemove:k},null,8,["modelValue"])]),_:1},8,["label"]),ie,r(c,{label:l.$tc("settings.account_settings.name"),error:e(o).name.$error&&e(o).name.$errors[0].$message,required:""},{default:d(()=>[r(_,{modelValue:e(t).name,"onUpdate:modelValue":a[1]||(a[1]=n=>e(t).name=n),invalid:e(o).name.$error,onInput:a[2]||(a[2]=n=>e(o).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(c,{label:l.$tc("settings.account_settings.email"),error:e(o).email.$error&&e(o).email.$errors[0].$message,required:""},{default:d(()=>[r(_,{modelValue:e(t).email,"onUpdate:modelValue":a[3]||(a[3]=n=>e(t).email=n),invalid:e(o).email.$error,onInput:a[4]||(a[4]=n=>e(o).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(c,{error:e(o).password.$error&&e(o).password.$errors[0].$message,label:l.$tc("settings.account_settings.password")},{default:d(()=>[r(_,{modelValue:e(t).password,"onUpdate:modelValue":a[5]||(a[5]=n=>e(t).password=n),type:"password",onInput:a[6]||(a[6]=n=>e(o).password.$touch())},null,8,["modelValue"])]),_:1},8,["error","label"]),r(c,{label:l.$tc("settings.account_settings.confirm_password"),error:e(o).confirm_password.$error&&e(o).confirm_password.$errors[0].$message},{default:d(()=>[r(_,{modelValue:e(t).confirm_password,"onUpdate:modelValue":a[7]||(a[7]=n=>e(t).confirm_password=n),type:"password",onInput:a[8]||(a[8]=n=>e(o).confirm_password.$touch())},null,8,["modelValue"])]),_:1},8,["label","error"]),r(c,{label:l.$tc("settings.language")},{default:d(()=>[r(G,{modelValue:e(t).language,"onUpdate:modelValue":a[9]||(a[9]=n=>e(t).language=n),options:e(i).config.languages,label:"name","value-prop":"code","track-by":"code","open-direction":"top"},null,8,["modelValue","options"])]),_:1},8,["label"])]),_:1}),r(j,{loading:e(p),disabled:e(p),class:"mt-6"},{left:d(n=>[e(p)?x("",!0):(C(),Y(h,{key:0,name:"SaveIcon",class:Z(n.class)},null,8,["class"]))]),default:d(()=>[ee(" "+ae(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])],40,le)}}};export{pe as default};
import{G as C,J as z,B as I,r as m,o as b,e as y,f as o,w as r,h as d,t as p,u as e,m as h,i as F,j as v,l as S,U as j}from"./vendor.01d0adc5.js";import{a as k,u as w}from"./global.08b6a984.js";import"./auth.4644c288.js";import"./main.75722495.js";const D=["onSubmit"],G={class:"mb-6"},N={class:"font-bold text-left"},A={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},T={class:"grid grid-cols-5 gap-4 mb-8"},E={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},J={class:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},R={class:"md:col-span-3"},q={class:"flex items-center justify-start mb-6 md:justify-end md:mb-0"},H={class:"p-1"},K={class:"grid grid-cols-5 gap-4 mb-8"},L={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},O={key:0,class:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},P={class:"md:col-span-3"},Q={class:"flex items-center justify-end"},se={setup(W){const s=k();C();const{tm:$,t:X}=z(),g=w();let u=I(!1);g.fetchCountries();function B(){u.value=!0;let a=s.userForm;s.updateCurrentUser({data:a,message:$("customers.address_updated_message")}).then(t=>{u.value=!1}).catch(t=>{u.value=!1})}return(a,t)=>{const i=m("BaseInput"),n=m("BaseInputGroup"),f=m("BaseMultiselect"),c=m("BaseTextarea"),U=m("BaseDivider"),_=m("BaseIcon"),V=m("BaseButton"),M=m("BaseCard");return b(),y("form",{class:"relative h-full mt-4",onSubmit:j(B,["prevent"])},[o(M,null,{default:r(()=>[d("div",G,[d("h6",N,p(a.$t("settings.menu_title.address_information")),1),d("p",A,p(a.$t("settings.address_information.section_description")),1)]),d("div",T,[d("h6",E,p(a.$t("customers.billing_address")),1),d("div",J,[o(n,{label:a.$t("customers.name"),class:"w-full md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.name,"onUpdate:modelValue":t[0]||(t[0]=l=>e(s).userForm.billing.name=l),modelModifiers:{trim:!0},type:"text",class:"w-full",name:"address_name"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.country"),class:"md:col-span-3"},{default:r(()=>[o(f,{modelValue:e(s).userForm.billing.country_id,"onUpdate:modelValue":t[1]||(t[1]=l=>e(s).userForm.billing.country_id=l),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"",options:e(g).countries,placeholder:a.$t("general.select_country"),class:"w-full"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.state"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.state,"onUpdate:modelValue":t[2]||(t[2]=l=>e(s).userForm.billing.state=l),name:"billing.state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.city"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.city,"onUpdate:modelValue":t[3]||(t[3]=l=>e(s).userForm.billing.city=l),name:"billing.city",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.address"),class:"md:col-span-3"},{default:r(()=>[o(c,{modelValue:e(s).userForm.billing.address_street_1,"onUpdate:modelValue":t[4]||(t[4]=l=>e(s).userForm.billing.address_street_1=l),modelModifiers:{trim:!0},placeholder:a.$t("general.street_1"),type:"text",name:"billing_street1","container-class":"mt-3"},null,8,["modelValue","placeholder"]),o(c,{modelValue:e(s).userForm.billing.address_street_2,"onUpdate:modelValue":t[5]||(t[5]=l=>e(s).userForm.billing.address_street_2=l),modelModifiers:{trim:!0},placeholder:a.$t("general.street_2"),type:"text",class:"mt-3",name:"billing_street2","container-class":"mt-3"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),d("div",R,[o(n,{label:a.$t("customers.phone"),class:"text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.phone,"onUpdate:modelValue":t[6]||(t[6]=l=>e(s).userForm.billing.phone=l),modelModifiers:{trim:!0},type:"text",name:"phone"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.zip_code"),class:"mt-2 text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.billing.zip,"onUpdate:modelValue":t[7]||(t[7]=l=>e(s).userForm.billing.zip=l),modelModifiers:{trim:!0},type:"text",name:"zip"},null,8,["modelValue"])]),_:1},8,["label"])])])]),o(U,{class:"mb-5 md:mb-8"}),d("div",q,[d("div",H,[o(V,{ref:(l,x)=>{x.sameAddress=l},type:"button",onClick:t[8]||(t[8]=l=>e(s).copyAddress(!0))},{left:r(l=>[o(_,{name:"DocumentDuplicateIcon",class:h(l.class)},null,8,["class"])]),default:r(()=>[F(" "+p(a.$t("customers.copy_billing_address")),1)]),_:1},512)])]),d("div",K,[d("h6",L,p(a.$t("customers.shipping_address")),1),e(s).userForm.shipping?(b(),y("div",O,[o(n,{label:a.$t("customers.name"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.name,"onUpdate:modelValue":t[9]||(t[9]=l=>e(s).userForm.shipping.name=l),modelModifiers:{trim:!0},type:"text",name:"address_name"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.country"),class:"md:col-span-3"},{default:r(()=>[o(f,{modelValue:e(s).userForm.shipping.country_id,"onUpdate:modelValue":t[10]||(t[10]=l=>e(s).userForm.shipping.country_id=l),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"",options:e(g).countries,placeholder:a.$t("general.select_country"),class:"w-full"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.state"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.state,"onUpdate:modelValue":t[11]||(t[11]=l=>e(s).userForm.shipping.state=l),name:"shipping.state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.city"),class:"md:col-span-3"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.city,"onUpdate:modelValue":t[12]||(t[12]=l=>e(s).userForm.shipping.city=l),name:"shipping.city",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.address"),class:"md:col-span-3"},{default:r(()=>[o(c,{modelValue:e(s).userForm.shipping.address_street_1,"onUpdate:modelValue":t[13]||(t[13]=l=>e(s).userForm.shipping.address_street_1=l),modelModifiers:{trim:!0},type:"text",placeholder:a.$t("general.street_1"),name:"shipping_street1"},null,8,["modelValue","placeholder"]),o(c,{modelValue:e(s).userForm.shipping.address_street_2,"onUpdate:modelValue":t[14]||(t[14]=l=>e(s).userForm.shipping.address_street_2=l),modelModifiers:{trim:!0},type:"text",placeholder:a.$t("general.street_2"),name:"shipping_street2",class:"mt-3"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),d("div",P,[o(n,{label:a.$t("customers.phone"),class:"text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.phone,"onUpdate:modelValue":t[15]||(t[15]=l=>e(s).userForm.shipping.phone=l),modelModifiers:{trim:!0},type:"text",name:"phone"},null,8,["modelValue"])]),_:1},8,["label"]),o(n,{label:a.$t("customers.zip_code"),class:"mt-2 text-left"},{default:r(()=>[o(i,{modelValue:e(s).userForm.shipping.zip,"onUpdate:modelValue":t[16]||(t[16]=l=>e(s).userForm.shipping.zip=l),modelModifiers:{trim:!0},type:"text",name:"zip"},null,8,["modelValue"])]),_:1},8,["label"])])])):v("",!0)]),d("div",Q,[o(V,{loading:e(u),disabled:e(u)},{left:r(l=>[e(u)?v("",!0):(b(),S(_,{key:0,name:"SaveIcon",class:h(l.class)},null,8,["class"]))]),default:r(()=>[F(" "+p(a.$t("general.save")),1)]),_:1},8,["loading","disabled"])])]),_:1})],40,D)}}};export{se as default};
var te=Object.defineProperty,ae=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var F=(u,t,l)=>t in u?te(u,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):u[t]=l,q=(u,t)=>{for(var l in t||(t={}))oe.call(t,l)&&F(u,l,t[l]);if(U)for(var l of U(t))ne.call(t,l)&&F(u,l,t[l]);return u},G=(u,t)=>ae(u,se(t));import{a as x,d as le,B as w,a0 as E,J as O,k as D,L as R,M as A,T as ce,r as d,o as L,l as H,w as i,h as $,i as S,t as C,u as o,f as n,m as J,j as ie,U as re,e as de,F as ue}from"./vendor.01d0adc5.js";import{h as P,u as X,c as K,j as pe}from"./main.75722495.js";import{u as Q}from"./disk.518ebc4b.js";const W=(u=!1)=>{const t=u?window.pinia.defineStore:le,{global:l}=window.i18n;return t({id:"backup",state:()=>({backups:[],currentBackupData:{option:"full",selected_disk:null}}),actions:{fetchBackups(b){return new Promise((c,s)=>{x.get("/api/v1/backups",{params:b}).then(e=>{this.backups=e.data.data,c(e)}).catch(e=>{P(e),s(e)})})},createBackup(b){return new Promise((c,s)=>{x.post("/api/v1/backups",b).then(e=>{X().showNotification({type:"success",message:l.t("settings.backup.created_message")}),c(e)}).catch(e=>{P(e),s(e)})})},removeBackup(b){return new Promise((c,s)=>{x.delete(`/api/v1/backups/${b.disk}`,{params:b}).then(e=>{X().showNotification({type:"success",message:l.t("settings.backup.deleted_message")}),c(e)}).catch(e=>{P(e),s(e)})})}}})()},ke={class:"flex justify-between w-full"},me=["onSubmit"],fe={class:"p-6"},_e={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},be={setup(u){w(null),w(!1);let t=w(!1),l=w(!1);const b=E(["full","only-db","only-files"]),c=W(),s=K(),e=Q(),{t:f}=O(),_=D(()=>s.active&&s.componentName==="BackupModal"),M=D(()=>e.disks.map(r=>G(q({},r),{name:r.name+" \u2014 ["+r.driver+"]"}))),V=D(()=>({currentBackupData:{option:{required:R.withMessage(f("validation.required"),A)},selected_disk:{required:R.withMessage(f("validation.required"),A)}}})),g=ce(V,D(()=>c));async function N(){if(g.value.currentBackupData.$touch(),g.value.currentBackupData.$invalid)return!0;let r={option:c.currentBackupData.option,file_disk_id:c.currentBackupData.selected_disk.id};try{t.value=!0,(await c.createBackup(r)).data&&(t.value=!1,s.refreshData&&s.refreshData(),s.closeModal())}catch{t.value=!1}}async function j(){l.value=!0;let r=await e.fetchDisks({limit:"all"});c.currentBackupData.selected_disk=r.data.data[0],l.value=!1}function I(){s.closeModal(),setTimeout(()=>{g.value.$reset(),c.$reset()})}return(r,h)=>{const a=d("BaseIcon"),p=d("BaseMultiselect"),m=d("BaseInputGroup"),k=d("BaseInputGrid"),y=d("BaseButton"),T=d("BaseModal");return L(),H(T,{show:o(_),onClose:I,onOpen:j},{header:i(()=>[$("div",ke,[S(C(o(s).title)+" ",1),n(a,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:I})])]),default:i(()=>[$("form",{onSubmit:re(N,["prevent"])},[$("div",fe,[n(k,{layout:"one-column"},{default:i(()=>[n(m,{label:r.$t("settings.backup.select_backup_type"),error:o(g).currentBackupData.option.$error&&o(g).currentBackupData.option.$errors[0].$message,horizontal:"",required:"",class:"py-2"},{default:i(()=>[n(p,{modelValue:o(c).currentBackupData.option,"onUpdate:modelValue":h[0]||(h[0]=v=>o(c).currentBackupData.option=v),options:o(b),"can-deselect":!1,placeholder:r.$t("settings.backup.select_backup_type"),searchable:""},null,8,["modelValue","options","placeholder"])]),_:1},8,["label","error"]),n(m,{label:r.$t("settings.disk.select_disk"),error:o(g).currentBackupData.selected_disk.$error&&o(g).currentBackupData.selected_disk.$errors[0].$message,horizontal:"",required:"",class:"py-2"},{default:i(()=>[n(p,{modelValue:o(c).currentBackupData.selected_disk,"onUpdate:modelValue":h[1]||(h[1]=v=>o(c).currentBackupData.selected_disk=v),"content-loading":o(l),options:o(M),searchable:!0,"allow-empty":!1,label:"name","value-prop":"id",placeholder:r.$t("settings.disk.select_disk"),"track-by":"id",object:""},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","error"])]),_:1})]),$("div",_e,[n(y,{class:"mr-3",variant:"primary-outline",type:"button",onClick:I},{default:i(()=>[S(C(r.$t("general.cancel")),1)]),_:1}),n(y,{loading:o(t),disabled:o(t),variant:"primary",type:"submit"},{left:i(v=>[o(t)?ie("",!0):(L(),H(a,{key:0,name:"SaveIcon",class:J(v.class)},null,8,["class"]))]),default:i(()=>[S(" "+C(r.$t("general.create")),1)]),_:1},8,["loading","disabled"])])],40,me)]),_:1},8,["show"])}}},ge={class:"grid my-14 md:grid-cols-3"},Be={class:"inline-block"},De={setup(u){const t=pe(),l=W(),b=K(),c=Q(),{t:s}=O(),e=E({selected_disk:{driver:"local"}}),f=w("");let _=w(!0);const M=D(()=>[{key:"path",label:s("settings.backup.path"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"created_at",label:s("settings.backup.created_at"),tdClass:"font-medium text-gray-900"},{key:"size",label:s("settings.backup.size"),tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),V=D(()=>c.disks.map(a=>G(q({},a),{name:a.name+" \u2014 ["+a.driver+"]"})));j();function g(a){t.openDialog({title:s("general.are_you_sure"),message:s("settings.backup.backup_confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async p=>{if(p){let m={disk:e.selected_disk.driver,file_disk_id:e.selected_disk.id,path:a.path},k=await l.removeBackup(m);if(k.data.success||k.data.backup)return f.value&&f.value.refresh(),!0}})}function N(){setTimeout(()=>{f.value.refresh()},100)}async function j(){_.value=!0;let a=await c.fetchDisks({limit:"all"});a.data.error,e.selected_disk=a.data.data.find(p=>p.set_as_default==0),_.value=!1}async function I({page:a,filter:p,sort:m}){let k={disk:e.selected_disk.driver,filed_disk_id:e.selected_disk.id};_.value=!0;let y=await l.fetchBackups(k);return _.value=!1,{data:y.data.backups,pagination:{totalPages:1,currentPage:1}}}async function r(){b.openModal({title:s("settings.backup.create_backup"),componentName:"BackupModal",refreshData:f.value&&f.value.refresh,size:"sm"})}async function h(a){_.value=!0,window.axios({method:"GET",url:"/api/v1/download-backup",responseType:"blob",params:{disk:e.selected_disk.driver,file_disk_id:e.selected_disk.id,path:a.path}}).then(p=>{const m=window.URL.createObjectURL(new Blob([p.data])),k=document.createElement("a");k.href=m,k.setAttribute("download",a.path.split("/")[1]),document.body.appendChild(k),k.click(),_.value=!1}).catch(p=>{_.value=!1})}return(a,p)=>{const m=d("BaseIcon"),k=d("BaseButton"),y=d("BaseMultiselect"),T=d("BaseInputGroup"),v=d("BaseDropdownItem"),Y=d("BaseDropdown"),Z=d("BaseTable"),ee=d("BaseSettingCard");return L(),de(ue,null,[n(be),n(ee,{title:a.$tc("settings.backup.title",1),description:a.$t("settings.backup.description")},{action:i(()=>[n(k,{variant:"primary-outline",onClick:r},{left:i(B=>[n(m,{class:J(B.class),name:"PlusIcon"},null,8,["class"])]),default:i(()=>[S(" "+C(a.$t("settings.backup.new_backup")),1)]),_:1})]),default:i(()=>[$("div",ge,[n(T,{label:a.$t("settings.disk.select_disk"),"content-loading":o(_)},{default:i(()=>[n(y,{modelValue:o(e).selected_disk,"onUpdate:modelValue":p[0]||(p[0]=B=>o(e).selected_disk=B),"content-loading":o(_),options:o(V),"track-by":"id",placeholder:a.$t("settings.disk.select_disk"),label:"name",searchable:!0,object:"",class:"w-full","value-prop":"id",onSelect:N},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","content-loading"])]),n(Z,{ref:(B,z)=>{z.table=B,f.value=B},class:"mt-10","show-filter":!1,data:I,columns:o(M)},{"cell-actions":i(({row:B})=>[n(Y,null,{activator:i(()=>[$("div",Be,[n(m,{name:"DotsHorizontalIcon",class:"text-gray-500"})])]),default:i(()=>[n(v,{onClick:z=>h(B.data)},{default:i(()=>[n(m,{name:"CloudDownloadIcon",class:"mr-3 text-gray-600"}),S(" "+C(a.$t("general.download")),1)]),_:2},1032,["onClick"]),n(v,{onClick:z=>g(B.data)},{default:i(()=>[n(m,{name:"TrashIcon",class:"mr-3 text-gray-600"}),S(" "+C(a.$t("general.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{De as default};
var nc=Object.defineProperty,oc=Object.defineProperties;var ic=Object.getOwnPropertyDescriptors;var Mr=Object.getOwnPropertySymbols;var Ko=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable;var Uo=(e,t,r)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Ko.call(t,r)&&Uo(e,r,t[r]);if(Mr)for(var r of Mr(t))$o.call(t,r)&&Uo(e,r,t[r]);return e},wt=(e,t)=>oc(e,ic(t));var Go=(e,t)=>{var r={};for(var n in e)Ko.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mr)for(var n of Mr(e))t.indexOf(n)<0&&$o.call(e,n)&&(r[n]=e[n]);return r};import{bf as sc,a8 as ac,bg as $e,B as Cr,D as sn,b1 as xr,E as ye,bh as cc,a7 as lc,be as uc,u as fc,al as pc,a0 as dc,bi as hc,bj as mc,o as kt,e as Tt,h as _,ai as vc,bk as gc,C as yc,aS as bc,r as ut,l as kc,w as an,f as q,m as V,j as Sc}from"./vendor.01d0adc5.js";import{_ as Dt}from"./main.75722495.js";function ft(e){this.content=e}ft.prototype={constructor:ft,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,r){var n=r&&r!=e?this.remove(r):this,o=n.find(e),i=n.content.slice();return o==-1?i.push(r||e,t):(i[o+1]=t,r&&(i[o]=r)),new ft(i)},remove:function(e){var t=this.find(e);if(t==-1)return this;var r=this.content.slice();return r.splice(t,2),new ft(r)},addToStart:function(e,t){return new ft([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new ft(r)},addBefore:function(e,t,r){var n=this.remove(t),o=n.content.slice(),i=n.find(e);return o.splice(i==-1?o.length:i,0,t,r),new ft(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ft.from(e),e.size?new ft(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ft.from(e),e.size?new ft(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ft.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},get size(){return this.content.length>>1}};ft.from=function(e){if(e instanceof ft)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new ft(t)};var Yo=ft;function Xo(e,t,r){for(var n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;var o=e.child(n),i=t.child(n);if(o==i){r+=o.nodeSize;continue}if(!o.sameMarkup(i))return r;if(o.isText&&o.text!=i.text){for(var s=0;o.text[s]==i.text[s];s++)r++;return r}if(o.content.size||i.content.size){var a=Xo(o.content,i.content,r+1);if(a!=null)return a}r+=o.nodeSize}}function Qo(e,t,r,n){for(var o=e.childCount,i=t.childCount;;){if(o==0||i==0)return o==i?null:{a:r,b:n};var s=e.child(--o),a=t.child(--i),c=s.nodeSize;if(s==a){r-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:r,b:n};if(s.isText&&s.text!=a.text){for(var l=0,u=Math.min(s.text.length,a.text.length);l<u&&s.text[s.text.length-l-1]==a.text[a.text.length-l-1];)l++,r--,n--;return{a:r,b:n}}if(s.content.size||a.content.size){var f=Qo(s.content,a.content,r-1,n-1);if(f)return f}r-=c,n-=c}}var k=function(t,r){if(this.content=t,this.size=r||0,r==null)for(var n=0;n<t.length;n++)this.size+=t[n].nodeSize},Or={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};k.prototype.nodesBetween=function(t,r,n,o,i){o===void 0&&(o=0);for(var s=0,a=0;a<r;s++){var c=this.content[s],l=a+c.nodeSize;if(l>t&&n(c,o+a,i,s)!==!1&&c.content.size){var u=a+1;c.nodesBetween(Math.max(0,t-u),Math.min(c.content.size,r-u),n,o+u)}a=l}};k.prototype.descendants=function(t){this.nodesBetween(0,this.size,t)};k.prototype.textBetween=function(t,r,n,o){var i="",s=!0;return this.nodesBetween(t,r,function(a,c){a.isText?(i+=a.text.slice(Math.max(t,c)-c,r-c),s=!n):a.isLeaf&&o?(i+=o,s=!n):!s&&a.isBlock&&(i+=n,s=!0)},0),i};k.prototype.append=function(t){if(!t.size)return this;if(!this.size)return t;var r=this.lastChild,n=t.firstChild,o=this.content.slice(),i=0;for(r.isText&&r.sameMarkup(n)&&(o[o.length-1]=r.withText(r.text+n.text),i=1);i<t.content.length;i++)o.push(t.content[i]);return new k(o,this.size+t.size)};k.prototype.cut=function(t,r){if(r==null&&(r=this.size),t==0&&r==this.size)return this;var n=[],o=0;if(r>t)for(var i=0,s=0;s<r;i++){var a=this.content[i],c=s+a.nodeSize;c>t&&((s<t||c>r)&&(a.isText?a=a.cut(Math.max(0,t-s),Math.min(a.text.length,r-s)):a=a.cut(Math.max(0,t-s-1),Math.min(a.content.size,r-s-1))),n.push(a),o+=a.nodeSize),s=c}return new k(n,o)};k.prototype.cutByIndex=function(t,r){return t==r?k.empty:t==0&&r==this.content.length?this:new k(this.content.slice(t,r))};k.prototype.replaceChild=function(t,r){var n=this.content[t];if(n==r)return this;var o=this.content.slice(),i=this.size+r.nodeSize-n.nodeSize;return o[t]=r,new k(o,i)};k.prototype.addToStart=function(t){return new k([t].concat(this.content),this.size+t.nodeSize)};k.prototype.addToEnd=function(t){return new k(this.content.concat(t),this.size+t.nodeSize)};k.prototype.eq=function(t){if(this.content.length!=t.content.length)return!1;for(var r=0;r<this.content.length;r++)if(!this.content[r].eq(t.content[r]))return!1;return!0};Or.firstChild.get=function(){return this.content.length?this.content[0]:null};Or.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null};Or.childCount.get=function(){return this.content.length};k.prototype.child=function(t){var r=this.content[t];if(!r)throw new RangeError("Index "+t+" out of range for "+this);return r};k.prototype.maybeChild=function(t){return this.content[t]};k.prototype.forEach=function(t){for(var r=0,n=0;r<this.content.length;r++){var o=this.content[r];t(o,n,r),n+=o.nodeSize}};k.prototype.findDiffStart=function(t,r){return r===void 0&&(r=0),Xo(this,t,r)};k.prototype.findDiffEnd=function(t,r,n){return r===void 0&&(r=this.size),n===void 0&&(n=t.size),Qo(this,t,r,n)};k.prototype.findIndex=function(t,r){if(r===void 0&&(r=-1),t==0)return wr(0,t);if(t==this.size)return wr(this.content.length,t);if(t>this.size||t<0)throw new RangeError("Position "+t+" outside of fragment ("+this+")");for(var n=0,o=0;;n++){var i=this.child(n),s=o+i.nodeSize;if(s>=t)return s==t||r>0?wr(n+1,s):wr(n,o);o=s}};k.prototype.toString=function(){return"<"+this.toStringInner()+">"};k.prototype.toStringInner=function(){return this.content.join(", ")};k.prototype.toJSON=function(){return this.content.length?this.content.map(function(t){return t.toJSON()}):null};k.fromJSON=function(t,r){if(!r)return k.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new k(r.map(t.nodeFromJSON))};k.fromArray=function(t){if(!t.length)return k.empty;for(var r,n=0,o=0;o<t.length;o++){var i=t[o];n+=i.nodeSize,o&&i.isText&&t[o-1].sameMarkup(i)?(r||(r=t.slice(0,o)),r[r.length-1]=i.withText(r[r.length-1].text+i.text)):r&&r.push(i)}return new k(r||t,n)};k.from=function(t){if(!t)return k.empty;if(t instanceof k)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new k([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))};Object.defineProperties(k.prototype,Or);var cn={index:0,offset:0};function wr(e,t){return cn.index=e,cn.offset=t,cn}k.empty=new k([],0);function Tr(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;var r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!Tr(e[n],t[n]))return!1}else{for(var o in e)if(!(o in t)||!Tr(e[o],t[o]))return!1;for(var i in t)if(!(i in e))return!1}return!0}var R=function(t,r){this.type=t,this.attrs=r};R.prototype.addToSet=function(t){for(var r,n=!1,o=0;o<t.length;o++){var i=t[o];if(this.eq(i))return t;if(this.type.excludes(i.type))r||(r=t.slice(0,o));else{if(i.type.excludes(this.type))return t;!n&&i.type.rank>this.type.rank&&(r||(r=t.slice(0,o)),r.push(this),n=!0),r&&r.push(i)}}return r||(r=t.slice()),n||r.push(this),r};R.prototype.removeFromSet=function(t){for(var r=0;r<t.length;r++)if(this.eq(t[r]))return t.slice(0,r).concat(t.slice(r+1));return t};R.prototype.isInSet=function(t){for(var r=0;r<t.length;r++)if(this.eq(t[r]))return!0;return!1};R.prototype.eq=function(t){return this==t||this.type==t.type&&Tr(this.attrs,t.attrs)};R.prototype.toJSON=function(){var t={type:this.type.name};for(var r in this.attrs){t.attrs=this.attrs;break}return t};R.fromJSON=function(t,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");var n=t.marks[r.type];if(!n)throw new RangeError("There is no mark type "+r.type+" in this schema");return n.create(r.attrs)};R.sameSet=function(t,r){if(t==r)return!0;if(t.length!=r.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].eq(r[n]))return!1;return!0};R.setFrom=function(t){if(!t||t.length==0)return R.none;if(t instanceof R)return[t];var r=t.slice();return r.sort(function(n,o){return n.type.rank-o.type.rank}),r};R.none=[];function Jt(e){var t=Error.call(this,e);return t.__proto__=Jt.prototype,t}Jt.prototype=Object.create(Error.prototype);Jt.prototype.constructor=Jt;Jt.prototype.name="ReplaceError";var O=function(t,r,n){this.content=t,this.openStart=r,this.openEnd=n},Zo={size:{configurable:!0}};Zo.size.get=function(){return this.content.size-this.openStart-this.openEnd};O.prototype.insertAt=function(t,r){var n=ei(this.content,t+this.openStart,r,null);return n&&new O(n,this.openStart,this.openEnd)};O.prototype.removeBetween=function(t,r){return new O(ti(this.content,t+this.openStart,r+this.openStart),this.openStart,this.openEnd)};O.prototype.eq=function(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd};O.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"};O.prototype.toJSON=function(){if(!this.content.size)return null;var t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t};O.fromJSON=function(t,r){if(!r)return O.empty;var n=r.openStart||0,o=r.openEnd||0;if(typeof n!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new O(k.fromJSON(t,r.content),n,o)};O.maxOpen=function(t,r){r===void 0&&(r=!0);for(var n=0,o=0,i=t.firstChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.firstChild)n++;for(var s=t.lastChild;s&&!s.isLeaf&&(r||!s.type.spec.isolating);s=s.lastChild)o++;return new O(t,n,o)};Object.defineProperties(O.prototype,Zo);function ti(e,t,r){var n=e.findIndex(t),o=n.index,i=n.offset,s=e.maybeChild(o),a=e.findIndex(r),c=a.index,l=a.offset;if(i==t||s.isText){if(l!=r&&!e.child(c).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(o!=c)throw new RangeError("Removing non-flat range");return e.replaceChild(o,s.copy(ti(s.content,t-i-1,r-i-1)))}function ei(e,t,r,n){var o=e.findIndex(t),i=o.index,s=o.offset,a=e.maybeChild(i);if(s==t||a.isText)return n&&!n.canReplace(i,i,r)?null:e.cut(0,t).append(r).append(e.cut(t));var c=ei(a.content,t-s-1,r);return c&&e.replaceChild(i,a.copy(c))}O.empty=new O(k.empty,0,0);function Mc(e,t,r){if(r.openStart>e.depth)throw new Jt("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new Jt("Inconsistent open depths");return ri(e,t,r,0)}function ri(e,t,r,n){var o=e.index(n),i=e.node(n);if(o==t.index(n)&&n<e.depth-r.openStart){var s=ri(e,t,r,n+1);return i.copy(i.content.replaceChild(o,s))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&e.depth==n&&t.depth==n){var a=e.parent,c=a.content;return ke(a,c.cut(0,e.parentOffset).append(r.content).append(c.cut(t.parentOffset)))}else{var l=Cc(r,e),u=l.start,f=l.end;return ke(i,oi(e,u,f,t,n))}else return ke(i,Ar(e,t,n))}function ni(e,t){if(!t.type.compatibleContent(e.type))throw new Jt("Cannot join "+t.type.name+" onto "+e.type.name)}function ln(e,t,r){var n=e.node(r);return ni(n,t.node(r)),n}function be(e,t){var r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function Ue(e,t,r,n){var o=(t||e).node(r),i=0,s=t?t.index(r):o.childCount;e&&(i=e.index(r),e.depth>r?i++:e.textOffset&&(be(e.nodeAfter,n),i++));for(var a=i;a<s;a++)be(o.child(a),n);t&&t.depth==r&&t.textOffset&&be(t.nodeBefore,n)}function ke(e,t){if(!e.type.validContent(t))throw new Jt("Invalid content for node "+e.type.name);return e.copy(t)}function oi(e,t,r,n,o){var i=e.depth>o&&ln(e,t,o+1),s=n.depth>o&&ln(r,n,o+1),a=[];return Ue(null,e,o,a),i&&s&&t.index(o)==r.index(o)?(ni(i,s),be(ke(i,oi(e,t,r,n,o+1)),a)):(i&&be(ke(i,Ar(e,t,o+1)),a),Ue(t,r,o,a),s&&be(ke(s,Ar(r,n,o+1)),a)),Ue(n,null,o,a),new k(a)}function Ar(e,t,r){var n=[];if(Ue(null,e,r,n),e.depth>r){var o=ln(e,t,r+1);be(ke(o,Ar(e,t,r+1)),n)}return Ue(t,null,r,n),new k(n)}function Cc(e,t){for(var r=t.depth-e.openStart,n=t.node(r),o=n.copy(e.content),i=r-1;i>=0;i--)o=t.node(i).copy(k.from(o));return{start:o.resolveNoCache(e.openStart+r),end:o.resolveNoCache(o.content.size-e.openEnd-r)}}var K=function(t,r,n){this.pos=t,this.path=r,this.depth=r.length/3-1,this.parentOffset=n},De={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};K.prototype.resolveDepth=function(t){return t==null?this.depth:t<0?this.depth+t:t};De.parent.get=function(){return this.node(this.depth)};De.doc.get=function(){return this.node(0)};K.prototype.node=function(t){return this.path[this.resolveDepth(t)*3]};K.prototype.index=function(t){return this.path[this.resolveDepth(t)*3+1]};K.prototype.indexAfter=function(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)};K.prototype.start=function(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1};K.prototype.end=function(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size};K.prototype.before=function(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]};K.prototype.after=function(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize};De.textOffset.get=function(){return this.pos-this.path[this.path.length-1]};De.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n};De.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)};K.prototype.posAtIndex=function(t,r){r=this.resolveDepth(r);for(var n=this.path[r*3],o=r==0?0:this.path[r*3-1]+1,i=0;i<t;i++)o+=n.child(i).nodeSize;return o};K.prototype.marks=function(){var t=this.parent,r=this.index();if(t.content.size==0)return R.none;if(this.textOffset)return t.child(r).marks;var n=t.maybeChild(r-1),o=t.maybeChild(r);if(!n){var i=n;n=o,o=i}for(var s=n.marks,a=0;a<s.length;a++)s[a].type.spec.inclusive===!1&&(!o||!s[a].isInSet(o.marks))&&(s=s[a--].removeFromSet(s));return s};K.prototype.marksAcross=function(t){var r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;for(var n=r.marks,o=t.parent.maybeChild(t.index()),i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!o||!n[i].isInSet(o.marks))&&(n=n[i--].removeFromSet(n));return n};K.prototype.sharedDepth=function(t){for(var r=this.depth;r>0;r--)if(this.start(r)<=t&&this.end(r)>=t)return r;return 0};K.prototype.blockRange=function(t,r){if(t===void 0&&(t=this),t.pos<this.pos)return t.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!r||r(this.node(n))))return new Ge(this,t,n)};K.prototype.sameParent=function(t){return this.pos-this.parentOffset==t.pos-t.parentOffset};K.prototype.max=function(t){return t.pos>this.pos?t:this};K.prototype.min=function(t){return t.pos<this.pos?t:this};K.prototype.toString=function(){for(var t="",r=1;r<=this.depth;r++)t+=(t?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return t+":"+this.parentOffset};K.resolve=function(t,r){if(!(r>=0&&r<=t.content.size))throw new RangeError("Position "+r+" out of range");for(var n=[],o=0,i=r,s=t;;){var a=s.content.findIndex(i),c=a.index,l=a.offset,u=i-l;if(n.push(s,c,o+l),!u||(s=s.child(c),s.isText))break;i=u-1,o+=l+1}return new K(r,n,i)};K.resolveCached=function(t,r){for(var n=0;n<un.length;n++){var o=un[n];if(o.pos==r&&o.doc==t)return o}var i=un[fn]=K.resolve(t,r);return fn=(fn+1)%xc,i};Object.defineProperties(K.prototype,De);var un=[],fn=0,xc=12,Ge=function(t,r,n){this.$from=t,this.$to=r,this.depth=n},Ie={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};Ie.start.get=function(){return this.$from.before(this.depth+1)};Ie.end.get=function(){return this.$to.after(this.depth+1)};Ie.parent.get=function(){return this.$from.node(this.depth)};Ie.startIndex.get=function(){return this.$from.index(this.depth)};Ie.endIndex.get=function(){return this.$to.indexAfter(this.depth)};Object.defineProperties(Ge.prototype,Ie);var Oc=Object.create(null),P=function(t,r,n,o){this.type=t,this.attrs=r,this.content=n||k.empty,this.marks=o||R.none},At={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};At.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size};At.childCount.get=function(){return this.content.childCount};P.prototype.child=function(t){return this.content.child(t)};P.prototype.maybeChild=function(t){return this.content.maybeChild(t)};P.prototype.forEach=function(t){this.content.forEach(t)};P.prototype.nodesBetween=function(t,r,n,o){o===void 0&&(o=0),this.content.nodesBetween(t,r,n,o,this)};P.prototype.descendants=function(t){this.nodesBetween(0,this.content.size,t)};At.textContent.get=function(){return this.textBetween(0,this.content.size,"")};P.prototype.textBetween=function(t,r,n,o){return this.content.textBetween(t,r,n,o)};At.firstChild.get=function(){return this.content.firstChild};At.lastChild.get=function(){return this.content.lastChild};P.prototype.eq=function(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)};P.prototype.sameMarkup=function(t){return this.hasMarkup(t.type,t.attrs,t.marks)};P.prototype.hasMarkup=function(t,r,n){return this.type==t&&Tr(this.attrs,r||t.defaultAttrs||Oc)&&R.sameSet(this.marks,n||R.none)};P.prototype.copy=function(t){return t===void 0&&(t=null),t==this.content?this:new this.constructor(this.type,this.attrs,t,this.marks)};P.prototype.mark=function(t){return t==this.marks?this:new this.constructor(this.type,this.attrs,this.content,t)};P.prototype.cut=function(t,r){return t==0&&r==this.content.size?this:this.copy(this.content.cut(t,r))};P.prototype.slice=function(t,r,n){if(r===void 0&&(r=this.content.size),n===void 0&&(n=!1),t==r)return O.empty;var o=this.resolve(t),i=this.resolve(r),s=n?0:o.sharedDepth(r),a=o.start(s),c=o.node(s),l=c.content.cut(o.pos-a,i.pos-a);return new O(l,o.depth-s,i.depth-s)};P.prototype.replace=function(t,r,n){return Mc(this.resolve(t),this.resolve(r),n)};P.prototype.nodeAt=function(t){for(var r=this;;){var n=r.content.findIndex(t),o=n.index,i=n.offset;if(r=r.maybeChild(o),!r)return null;if(i==t||r.isText)return r;t-=i+1}};P.prototype.childAfter=function(t){var r=this.content.findIndex(t),n=r.index,o=r.offset;return{node:this.content.maybeChild(n),index:n,offset:o}};P.prototype.childBefore=function(t){if(t==0)return{node:null,index:0,offset:0};var r=this.content.findIndex(t),n=r.index,o=r.offset;if(o<t)return{node:this.content.child(n),index:n,offset:o};var i=this.content.child(n-1);return{node:i,index:n-1,offset:o-i.nodeSize}};P.prototype.resolve=function(t){return K.resolveCached(this,t)};P.prototype.resolveNoCache=function(t){return K.resolve(this,t)};P.prototype.rangeHasMark=function(t,r,n){var o=!1;return r>t&&this.nodesBetween(t,r,function(i){return n.isInSet(i.marks)&&(o=!0),!o}),o};At.isBlock.get=function(){return this.type.isBlock};At.isTextblock.get=function(){return this.type.isTextblock};At.inlineContent.get=function(){return this.type.inlineContent};At.isInline.get=function(){return this.type.isInline};At.isText.get=function(){return this.type.isText};At.isLeaf.get=function(){return this.type.isLeaf};At.isAtom.get=function(){return this.type.isAtom};P.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),ii(this.marks,t)};P.prototype.contentMatchAt=function(t){var r=this.type.contentMatch.matchFragment(this.content,0,t);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r};P.prototype.canReplace=function(t,r,n,o,i){n===void 0&&(n=k.empty),o===void 0&&(o=0),i===void 0&&(i=n.childCount);var s=this.contentMatchAt(t).matchFragment(n,o,i),a=s&&s.matchFragment(this.content,r);if(!a||!a.validEnd)return!1;for(var c=o;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0};P.prototype.canReplaceWith=function(t,r,n,o){if(o&&!this.type.allowsMarks(o))return!1;var i=this.contentMatchAt(t).matchType(n),s=i&&i.matchFragment(this.content,r);return s?s.validEnd:!1};P.prototype.canAppend=function(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)};P.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var t=R.none,r=0;r<this.marks.length;r++)t=this.marks[r].addToSet(t);if(!R.sameSet(t,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map(function(n){return n.type.name}));this.content.forEach(function(n){return n.check()})};P.prototype.toJSON=function(){var t={type:this.type.name};for(var r in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(function(n){return n.toJSON()})),t};P.fromJSON=function(t,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(t.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(r.text,n)}var o=k.fromJSON(t,r.content);return t.nodeType(r.type).create(r.attrs,o,n)};Object.defineProperties(P.prototype,At);var wc=function(e){function t(n,o,i,s){if(e.call(this,n,o,null,s),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ii(this.marks,JSON.stringify(this.text))},r.textContent.get=function(){return this.text},t.prototype.textBetween=function(o,i){return this.text.slice(o,i)},r.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(o){return o==this.marks?this:new t(this.type,this.attrs,this.text,o)},t.prototype.withText=function(o){return o==this.text?this:new t(this.type,this.attrs,o,this.marks)},t.prototype.cut=function(o,i){return o===void 0&&(o=0),i===void 0&&(i=this.text.length),o==0&&i==this.text.length?this:this.withText(this.text.slice(o,i))},t.prototype.eq=function(o){return this.sameMarkup(o)&&this.text==o.text},t.prototype.toJSON=function(){var o=e.prototype.toJSON.call(this);return o.text=this.text,o},Object.defineProperties(t.prototype,r),t}(P);function ii(e,t){for(var r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}var pt=function(t){this.validEnd=t,this.next=[],this.wrapCache=[]},_r={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};pt.parse=function(t,r){var n=new Nr(t,r);if(n.next==null)return pt.empty;var o=ai(n);n.next&&n.err("Unexpected trailing text");var i=Ic(Dc(o));return Rc(i,n),i};pt.prototype.matchType=function(t){for(var r=0;r<this.next.length;r+=2)if(this.next[r]==t)return this.next[r+1];return null};pt.prototype.matchFragment=function(t,r,n){r===void 0&&(r=0),n===void 0&&(n=t.childCount);for(var o=this,i=r;o&&i<n;i++)o=o.matchType(t.child(i).type);return o};_r.inlineContent.get=function(){var e=this.next[0];return e?e.isInline:!1};_r.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}};pt.prototype.compatible=function(t){for(var r=0;r<this.next.length;r+=2)for(var n=0;n<t.next.length;n+=2)if(this.next[r]==t.next[n])return!0;return!1};pt.prototype.fillBefore=function(t,r,n){r===void 0&&(r=!1),n===void 0&&(n=0);var o=[this];function i(s,a){var c=s.matchFragment(t,n);if(c&&(!r||c.validEnd))return k.from(a.map(function(d){return d.createAndFill()}));for(var l=0;l<s.next.length;l+=2){var u=s.next[l],f=s.next[l+1];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);var p=i(f,a.concat(u));if(p)return p}}}return i(this,[])};pt.prototype.findWrapping=function(t){for(var r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];var n=this.computeWrapping(t);return this.wrapCache.push(t,n),n};pt.prototype.computeWrapping=function(t){for(var r=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var o=n.shift(),i=o.match;if(i.matchType(t)){for(var s=[],a=o;a.type;a=a.via)s.push(a.type);return s.reverse()}for(var c=0;c<i.next.length;c+=2){var l=i.next[c];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in r)&&(!o.type||i.next[c+1].validEnd)&&(n.push({match:l.contentMatch,type:l,via:o}),r[l.name]=!0)}}};_r.edgeCount.get=function(){return this.next.length>>1};pt.prototype.edge=function(t){var r=t<<1;if(r>=this.next.length)throw new RangeError("There's no "+t+"th edge in this content match");return{type:this.next[r],next:this.next[r+1]}};pt.prototype.toString=function(){var t=[];function r(n){t.push(n);for(var o=1;o<n.next.length;o+=2)t.indexOf(n.next[o])==-1&&r(n.next[o])}return r(this),t.map(function(n,o){for(var i=o+(n.validEnd?"*":" ")+" ",s=0;s<n.next.length;s+=2)i+=(s?", ":"")+n.next[s].name+"->"+t.indexOf(n.next[s+1]);return i}).join(`
import{_ as o}from"./main.75722495.js";import{o as n,e as c,g as i,k as l,r as u,l as m,w as _,j as f,h as $,t as h,s as B}from"./vendor.01d0adc5.js";const k={name:"List"},v={class:"list-none"};function x(e,r,t,s,a,d){return n(),c("div",v,[i(e.$slots,"default")])}var L=o(k,[["render",x]]);const y={name:"ListItem",props:{title:{type:String,required:!1,default:""},active:{type:Boolean,required:!0},index:{type:Number,default:null}},setup(e,{slots:r}){const t="cursor-pointer pb-2 pr-0 text-sm font-medium leading-5  flex items-center";let s=l(()=>!!r.icon),a=l(()=>e.active?`${t} text-primary-500`:`${t} text-gray-500`);return{hasIconSlot:s,containerClass:a}}},g={key:0,class:"mr-3"};function C(e,r,t,s,a,d){const p=u("router-link");return n(),m(p,B(e.$attrs,{class:s.containerClass}),{default:_(()=>[s.hasIconSlot?(n(),c("span",g,[i(e.$slots,"icon")])):f("",!0),$("span",null,h(t.title),1)]),_:3},16,["class"])}var j=o(y,[["render",C]]);export{j as B,L as a};
var Xe=Object.defineProperty,Ye=Object.defineProperties;var Ze=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var $e=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var qe=(e,n,a)=>n in e?Xe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,G=(e,n)=>{for(var a in n||(n={}))$e.call(n,a)&&qe(e,a,n[a]);if(Be)for(var a of Be(n))_e.call(n,a)&&qe(e,a,n[a]);return e},Ce=(e,n)=>Ye(e,Ze(n));import{bd as x,B as N,k as w,C as re,be as Te,r as De,o as I,l as el,w as ll,f as al,e as B,m as O,U as ve,j as E,F as ae,y as se,g as T,i as tl,t as J,h as P}from"./vendor.01d0adc5.js";import{_ as nl}from"./main.75722495.js";function F(e){return[null,void 0,!1].indexOf(e)!==-1}function rl(e,n,a){const{object:i,valueProp:o,mode:v}=x(e),f=a.iv,g=p=>{f.value=c(p);const b=t(p);n.emit("change",b),n.emit("input",b),n.emit("update:modelValue",b)},t=p=>i.value||F(p)?p:Array.isArray(p)?p.map(b=>b[o.value]):p[o.value],c=p=>F(p)?v.value==="single"?{}:[]:p;return{update:g}}function sl(e,n){const{value:a,modelValue:i,mode:o,valueProp:v}=x(e),f=N(o.value!=="single"?[]:{}),g=n.expose!==void 0?i:a,t=w(()=>o.value==="single"?f.value[v.value]:f.value.map(p=>p[v.value])),c=w(()=>o.value!=="single"?f.value.map(p=>p[v.value]).join(","):f.value[v.value]);return{iv:f,internalValue:f,ev:g,externalValue:g,textValue:c,plainValue:t}}function ul(e,n,a){const{preserveSearch:i}=x(e),o=N(e.initialSearch)||N(null),v=N(null),f=()=>{i.value||(o.value="")},g=c=>{o.value=c.target.value},t=c=>{n.emit("paste",c)};return re(o,c=>{n.emit("search-change",c)}),{search:o,input:v,clearSearch:f,handleSearchInput:g,handlePaste:t}}function ol(e,n,a){const{groupSelect:i,mode:o,groups:v}=x(e),f=N(null),g=c=>{c===void 0||c!==null&&c.disabled||v.value&&c&&c.group&&(o.value==="single"||!i.value)||(f.value=c)};return{pointer:f,setPointer:g,clearPointer:()=>{g(null)}}}function Ee(e,n=!0){return n?String(e).toLowerCase().trim():String(e).normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase().trim()}function il(e){return Object.prototype.toString.call(e)==="[object Object]"}function cl(e,n){const a=n.slice().sort();return e.length===n.length&&e.slice().sort().every(function(i,o){return i===a[o]})}function dl(e,n,a){const{options:i,mode:o,trackBy:v,limit:f,hideSelected:g,createTag:t,label:c,appendNewTag:p,multipleLabel:b,object:q,loading:V,delay:D,resolveOnLoad:m,minChars:s,filterResults:A,clearOnSearch:Z,clearOnSelect:k,valueProp:d,canDeselect:j,max:L,strict:Q,closeOnSelect:X,groups:$,groupLabel:ue,groupOptions:M,groupHideEmpty:pe,groupSelect:fe}=x(e),S=a.iv,z=a.ev,C=a.search,_=a.clearSearch,ee=a.update,ge=a.pointer,oe=a.clearPointer,W=a.blur,te=a.deactivate,r=N([]),h=N([]),R=N(!1),H=w(()=>{if($.value){let l=h.value||[],u=[];return l.forEach(y=>{ke(y[M.value]).forEach(U=>{u.push(Object.assign({},U,y.disabled?{disabled:!0}:{}))})}),u}else{let l=ke(h.value||[]);return r.value.length&&(l=l.concat(r.value)),l}}),Oe=w(()=>$.value?Ue((h.value||[]).map(l=>{const u=ke(l[M.value]);return Ce(G({},l),{group:!0,[M.value]:Se(u,!1).map(y=>Object.assign({},y,l.disabled?{disabled:!0}:{})),__VISIBLE__:Se(u).map(y=>Object.assign({},y,l.disabled?{disabled:!0}:{}))})})):[]),ie=w(()=>{let l=H.value;return me.value.length&&(l=me.value.concat(l)),l=Se(l),f.value>0&&(l=l.slice(0,f.value)),l}),be=w(()=>{switch(o.value){case"single":return!F(S.value[d.value]);case"multiple":case"tags":return!F(S.value)&&S.value.length>0}}),Ve=w(()=>b!==void 0&&b.value!==void 0?b.value(S.value):S.value&&S.value.length>1?`${S.value.length} options selected`:"1 option selected"),je=w(()=>!H.value.length&&!R.value&&!me.value.length),Re=w(()=>H.value.length>0&&ie.value.length==0&&(C.value&&$.value||!$.value)),me=w(()=>t.value===!1||!C.value?[]:ze(C.value)!==-1?[]:[{[d.value]:C.value,[c.value]:C.value,[v.value]:C.value}]),Ge=w(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),Ae=w(()=>V.value||R.value),ne=l=>{switch(typeof l!="object"&&(l=K(l)),o.value){case"single":ee(l);break;case"multiple":case"tags":ee(S.value.concat(l));break}n.emit("select",Le(l),l)},le=l=>{switch(typeof l!="object"&&(l=K(l)),o.value){case"single":Ie();break;case"tags":case"multiple":ee(Array.isArray(l)?S.value.filter(u=>l.map(y=>y[d.value]).indexOf(u[d.value])===-1):S.value.filter(u=>u[d.value]!=l[d.value]));break}n.emit("deselect",Le(l),l)},Le=l=>q.value?l:l[d.value],Pe=l=>{le(l)},Me=(l,u)=>{if(u.button!==0){u.preventDefault();return}Pe(l)},Ie=()=>{n.emit("clear"),ee(Ge.value)},Y=l=>{if(l.group!==void 0)return o.value==="single"?!1:Fe(l[M.value])&&l[M.value].length;switch(o.value){case"single":return!F(S.value)&&S.value[d.value]==l[d.value];case"tags":case"multiple":return!F(S.value)&&S.value.map(u=>u[d.value]).indexOf(l[d.value])!==-1}},he=l=>l.disabled===!0,ye=()=>L===void 0||L.value===-1||!be.value&&L.value>0?!1:S.value.length>=L.value,Ne=l=>{if(!he(l)){switch(o.value){case"single":if(Y(l)){j.value&&le(l);return}W(),ne(l);break;case"multiple":if(Y(l)){le(l);return}if(ye())return;ne(l),k.value&&_(),g.value&&oe(),X.value&&W();break;case"tags":if(Y(l)){le(l);return}if(ye())return;K(l[d.value])===void 0&&t.value&&(n.emit("tag",l[d.value]),p.value&&We(l),_()),k.value&&_(),ne(l),g.value&&oe(),X.value&&W();break}X.value&&te()}},He=l=>{if(!(he(l)||o.value==="single"||!fe.value)){switch(o.value){case"multiple":case"tags":xe(l[M.value])?le(l[M.value]):ne(l[M.value].filter(u=>S.value.map(y=>y[d.value]).indexOf(u[d.value])===-1).filter(u=>!u.disabled).filter((u,y)=>S.value.length+1+y<=L.value||L.value===-1));break}X.value&&te()}},xe=l=>l.find(u=>!Y(u)&&!u.disabled)===void 0,Fe=l=>l.find(u=>!Y(u))===void 0,K=l=>H.value[H.value.map(u=>String(u[d.value])).indexOf(String(l))],ze=(l,u=!0)=>H.value.map(y=>y[v.value]).indexOf(l),Ke=l=>["tags","multiple"].indexOf(o.value)!==-1&&g.value&&Y(l),We=l=>{r.value.push(l)},Ue=l=>pe.value?l.filter(u=>C.value?u.__VISIBLE__.length:u[M.value].length):l.filter(u=>C.value?u.__VISIBLE__.length:!0),Se=(l,u=!0)=>{let y=l;return C.value&&A.value&&(y=y.filter(U=>Ee(U[v.value],Q.value).indexOf(Ee(C.value,Q.value))!==-1)),g.value&&u&&(y=y.filter(U=>!Ke(U))),y},ke=l=>{let u=l;return il(u)&&(u=Object.keys(u).map(y=>{let U=u[y];return{[d.value]:y,[v.value]:U,[c.value]:U}})),u=u.map(y=>typeof y=="object"?y:{[d.value]:y,[v.value]:y,[c.value]:y}),u},ce=()=>{F(z.value)||(S.value=de(z.value))},we=l=>{R.value=!0,i.value(C.value).then(u=>{h.value=u,typeof l=="function"&&l(u),R.value=!1})},Je=()=>{if(!!be.value)if(o.value==="single"){let l=K(S.value[d.value])[c.value];S.value[c.value]=l,q.value&&(z.value[c.value]=l)}else S.value.forEach((l,u)=>{let y=K(S.value[u][d.value])[c.value];S.value[u][c.value]=y,q.value&&(z.value[u][c.value]=y)})},Qe=l=>{we(l)},de=l=>F(l)?o.value==="single"?{}:[]:q.value?l:o.value==="single"?K(l)||{}:l.filter(u=>!!K(u)).map(u=>K(u));if(o.value!=="single"&&!F(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return i&&typeof i.value=="function"?m.value?we(ce):q.value==!0&&ce():(h.value=i.value,ce()),D.value>-1&&re(C,l=>{l.length<s.value||(R.value=!0,Z.value&&(h.value=[]),setTimeout(()=>{l==C.value&&i.value(C.value).then(u=>{l==C.value&&(h.value=u,ge.value=ie.value.filter(y=>y.disabled!==!0)[0]||null,R.value=!1)})},D.value))},{flush:"sync"}),re(z,l=>{if(F(l)){S.value=de(l);return}switch(o.value){case"single":(q.value?l[d.value]!=S.value[d.value]:l!=S.value[d.value])&&(S.value=de(l));break;case"multiple":case"tags":cl(q.value?l.map(u=>u[d.value]):l,S.value.map(u=>u[d.value]))||(S.value=de(l));break}},{deep:!0}),typeof e.options!="function"&&re(i,(l,u)=>{h.value=e.options,Object.keys(S.value).length||ce(),Je()}),{fo:ie,filteredOptions:ie,hasSelected:be,multipleLabelText:Ve,eo:H,extendedOptions:H,fg:Oe,filteredGroups:Oe,noOptions:je,noResults:Re,resolving:R,busy:Ae,select:ne,deselect:le,remove:Pe,clear:Ie,isSelected:Y,isDisabled:he,isMax:ye,getOption:K,handleOptionClick:Ne,handleGroupClick:He,handleTagRemove:Me,refreshOptions:Qe,resolveOptions:we}}function vl(e,n,a){const{valueProp:i,showOptions:o,searchable:v,groupLabel:f,groups:g,mode:t,groupSelect:c}=x(e),p=a.fo,b=a.fg,q=a.handleOptionClick,V=a.handleGroupClick,D=a.search,m=a.pointer,s=a.setPointer,A=a.clearPointer,Z=a.multiselect,k=w(()=>p.value.filter(r=>!r.disabled)),d=w(()=>b.value.filter(r=>!r.disabled)),j=w(()=>t.value!=="single"&&c.value),L=w(()=>m.value&&m.value.group),Q=w(()=>W(m.value)),X=w(()=>{const r=L.value?m.value:W(m.value),h=d.value.map(H=>H[f.value]).indexOf(r[f.value]);let R=d.value[h-1];return R===void 0&&(R=ue.value),R}),$=w(()=>{let r=d.value.map(h=>h.label).indexOf(L.value?m.value[f.value]:W(m.value)[f.value])+1;return d.value.length<=r&&(r=0),d.value[r]}),ue=w(()=>[...d.value].slice(-1)[0]),M=w(()=>m.value.__VISIBLE__.filter(r=>!r.disabled)[0]),pe=w(()=>{const r=Q.value.__VISIBLE__.filter(h=>!h.disabled);return r[r.map(h=>h[i.value]).indexOf(m.value[i.value])-1]}),fe=w(()=>{const r=W(m.value).__VISIBLE__.filter(h=>!h.disabled);return r[r.map(h=>h[i.value]).indexOf(m.value[i.value])+1]}),S=w(()=>[...X.value.__VISIBLE__.filter(r=>!r.disabled)].slice(-1)[0]),z=w(()=>[...ue.value.__VISIBLE__.filter(r=>!r.disabled)].slice(-1)[0]),C=r=>{if(!!m.value)return r.group?m.value[f.value]==r[f.value]:m.value[i.value]==r[i.value]},_=()=>{s(k.value[0]||null)},ee=()=>{!m.value||m.value.disabled===!0||(L.value?V(m.value):q(m.value))},ge=()=>{if(m.value===null)s((g.value&&j.value?d.value[0]:k.value[0])||null);else if(g.value&&j.value){let r=L.value?M.value:fe.value;r===void 0&&(r=$.value),s(r||null)}else{let r=k.value.map(h=>h[i.value]).indexOf(m.value[i.value])+1;k.value.length<=r&&(r=0),s(k.value[r]||null)}Te(()=>{te()})},oe=()=>{if(m.value===null){let r=k.value[k.value.length-1];g.value&&j.value&&(r=z.value,r===void 0&&(r=ue.value)),s(r||null)}else if(g.value&&j.value){let r=L.value?S.value:pe.value;r===void 0&&(r=L.value?X.value:Q.value),s(r||null)}else{let r=k.value.map(h=>h[i.value]).indexOf(m.value[i.value])-1;r<0&&(r=k.value.length-1),s(k.value[r]||null)}Te(()=>{te()})},W=r=>d.value.find(h=>h.__VISIBLE__.map(R=>R[i.value]).indexOf(r[i.value])!==-1),te=()=>{let r=Z.value.querySelector("[data-pointed]");if(!r)return;let h=r.parentElement.parentElement;g.value&&(h=L.value?r.parentElement.parentElement.parentElement:r.parentElement.parentElement.parentElement.parentElement),r.offsetTop+r.offsetHeight>h.clientHeight+h.scrollTop&&(h.scrollTop=r.offsetTop+r.offsetHeight-h.clientHeight),r.offsetTop<h.scrollTop&&(h.scrollTop=r.offsetTop)};return re(D,r=>{v.value&&(r.length&&o.value?_():A())}),{pointer:m,canPointGroups:j,isPointed:C,setPointerFirst:_,selectPointer:ee,forwardPointer:ge,backwardPointer:oe}}function pl(e,n,a){const{disabled:i}=x(e),o=N(!1);return{isOpen:o,open:()=>{o.value||i.value||(o.value=!0,n.emit("open"))},close:()=>{!o.value||(o.value=!1,n.emit("close"))}}}function fl(e,n,a){const{searchable:i,disabled:o}=x(e),v=a.input,f=a.open,g=a.close,t=a.clearSearch,c=N(null),p=N(!1),b=w(()=>i.value||o.value?-1:0),q=()=>{i.value&&v.value.blur(),c.value.blur()},V=()=>{i.value&&!o.value&&v.value.focus()},D=()=>{o.value||(p.value=!0,f())},m=()=>{p.value=!1,setTimeout(()=>{p.value||(g(),t())},1)};return{multiselect:c,tabindex:b,isActive:p,blur:q,handleFocus:V,activate:D,deactivate:m,handleCaretClick:()=>{p.value?(m(),q()):D()}}}function gl(e,n,a){const{mode:i,addTagOn:o,createTag:v,openDirection:f,searchable:g,showOptions:t,valueProp:c,groups:p}=x(e),b=a.iv,q=a.update,V=a.search,D=a.setPointer,m=a.selectPointer,s=a.backwardPointer,A=a.forwardPointer,Z=a.blur,k=a.fo,d=()=>{i.value==="tags"&&!t.value&&v.value&&g.value&&!p.value&&D(k.value[k.value.map(L=>L[c.value]).indexOf(V.value)])};return{handleKeydown:L=>{switch(L.keyCode){case 8:if(i.value==="single"||g.value&&[null,""].indexOf(V.value)===-1||b.value.length===0)return;q([...b.value].slice(0,-1));break;case 13:if(L.preventDefault(),i.value==="tags"&&o.value.indexOf("enter")===-1&&v.value)return;d(),m();break;case 32:if(g.value&&i.value!=="tags"&&!v.value||i.value==="tags"&&(o.value.indexOf("space")===-1&&v.value||!v.value))return;L.preventDefault(),d(),m();break;case 9:case 186:case 188:if(i.value!=="tags")return;const Q={9:"tab",186:";",188:","};if(o.value.indexOf(Q[L.keyCode])===-1||!v.value)return;d(),m(),L.preventDefault();break;case 27:Z();break;case 38:if(L.preventDefault(),!t.value)return;f.value==="top"?A():s();break;case 40:if(L.preventDefault(),!t.value)return;f.value==="top"?s():A();break}},preparePointer:d}}function bl(e,n,a){const i=x(e),{disabled:o,openDirection:v,showOptions:f,invalid:g}=i,t=a.isOpen,c=a.isPointed,p=a.isSelected,b=a.isDisabled,q=a.isActive,V=a.canPointGroups,D=a.resolving,m=a.fo,s=G({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",containerInvalid:"is-invalid",containerInvalidActive:"is-invalid-active",singleLabel:"multiselect-single-label",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",spacer:"multiselect-spacer"},i.classes.value),A=w(()=>!!(t.value&&f.value&&(!D.value||D.value&&m.value.length)));return{classList:w(()=>({container:[s.container].concat(o.value?s.containerDisabled:[]).concat(A.value&&v.value==="top"?s.containerOpenTop:[]).concat(A.value&&v.value!=="top"?s.containerOpen:[]).concat(q.value?s.containerActive:[]).concat(g.value?s.containerInvalid:[]),spacer:s.spacer,singleLabel:s.singleLabel,multipleLabel:s.multipleLabel,search:s.search,tags:s.tags,tag:[s.tag].concat(o.value?s.tagDisabled:[]),tagRemove:s.tagRemove,tagRemoveIcon:s.tagRemoveIcon,tagsSearchWrapper:s.tagsSearchWrapper,tagsSearch:s.tagsSearch,tagsSearchCopy:s.tagsSearchCopy,placeholder:s.placeholder,caret:[s.caret].concat(t.value?s.caretOpen:[]),clear:s.clear,clearIcon:s.clearIcon,spinner:s.spinner,dropdown:[s.dropdown].concat(v.value==="top"?s.dropdownTop:[]).concat(!t.value||!f.value||!A.value?s.dropdownHidden:[]),options:[s.options].concat(v.value==="top"?s.optionsTop:[]),group:s.group,groupLabel:k=>{let d=[s.groupLabel];return c(k)?d.push(p(k)?s.groupLabelSelectedPointed:s.groupLabelPointed):p(k)&&V.value?d.push(b(k)?s.groupLabelSelectedDisabled:s.groupLabelSelected):b(k)&&d.push(s.groupLabelDisabled),V.value&&d.push(s.groupLabelPointable),d},groupOptions:s.groupOptions,option:(k,d)=>{let j=[s.option];return c(k)?j.push(p(k)?s.optionSelectedPointed:s.optionPointed):p(k)?j.push(b(k)?s.optionSelectedDisabled:s.optionSelected):(b(k)||d&&b(d))&&j.push(s.optionDisabled),j},noOptions:s.noOptions,noResults:s.noResults,fakeInput:s.fakeInput})),showDropdown:A}}const ml={name:"BaseMultiselect",props:{preserveSearch:{type:Boolean,default:!1},initialSearch:{type:String,default:null},contentLoading:{type:Boolean,default:!1},value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:"label"},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:!1},appendNewTag:{type:Boolean,required:!1,default:!0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:String,required:!1,default:"The list is empty"},noResultsText:{type:String,required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!1},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},addTagOn:{type:Array,required:!1,default:()=>["enter"]},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},invalid:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({container:"p-0 relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-gray-200 rounded-md bg-white text-sm leading-snug outline-none max-h-10",containerDisabled:"cursor-default bg-gray-200 bg-opacity-50 !text-gray-400",containerOpen:"",containerOpenTop:"",containerActive:"ring-1 ring-primary-400 border-primary-400",containerInvalid:"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400",containerInvalidActive:"ring-1 border-red-400 ring-red-400",singleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5",search:"w-full absolute inset-0 outline-none appearance-none box-border border-0 text-sm font-sans bg-white rounded-md pl-3.5",tags:"grow shrink flex flex-wrap mt-1 pl-2",tag:"bg-primary-500 text-white text-sm font-semibold py-0.5 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap",tagDisabled:"pr-2 !bg-gray-400 text-white",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove text-white bg-center bg-no-repeat opacity-30 inline-block w-3 h-3 group-hover:opacity-60",tagsSearchWrapper:"inline-block relative mx-1 mb-1 grow shrink h-full",tagsSearch:"absolute inset-0 border-0 focus:outline-none !shadow-none !focus:shadow-none appearance-none p-0 text-sm font-sans box-border w-full",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-gray-400 text-sm",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-5 py-px box-content z-5 relative mr-1 opacity-40 shrink-0 grow-0 transition-transform",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3.5 relative z-10 opacity-40 transition duration-300 shrink-0 grow-0 flex hover:opacity-80",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin shrink-0 grow-0",dropdown:"max-h-60 shadow-lg absolute -left-px -right-px -bottom-1 translate-y-full border border-gray-300 mt-1 overflow-y-auto z-50 bg-white flex flex-col rounded-md",dropdownTop:"-translate-y-full -top-2 bottom-auto flex-col-reverse rounded-md",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"flex-col-reverse",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-gray-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-gray-300 text-gray-700",groupLabelSelected:"bg-primary-600 text-white",groupLabelDisabled:"bg-gray-100 text-gray-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-600 text-white opacity-90",groupLabelSelectedDisabled:"text-primary-100 bg-primary-600 bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-sm leading-snug py-2 px-3",optionPointed:"text-gray-800 bg-gray-100",optionSelected:"text-white bg-primary-500",optionDisabled:"text-gray-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary-500 opacity-90",optionSelectedDisabled:"text-primary-100 bg-primary-500 bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-gray-600 bg-white",noResults:"py-2 px-3 text-gray-600 bg-white",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"}},emits:["open","close","select","deselect","input","search-change","tag","update:modelValue","change","clear"],setup(e,n){const a=sl(e,n),i=ol(e),o=pl(e,n),v=ul(e,n),f=rl(e,n,{iv:a.iv}),g=fl(e,n,{input:v.input,open:o.open,close:o.close,clearSearch:v.clearSearch}),t=dl(e,n,{ev:a.ev,iv:a.iv,search:v.search,clearSearch:v.clearSearch,update:f.update,pointer:i.pointer,clearPointer:i.clearPointer,blur:g.blur,deactivate:g.deactivate}),c=vl(e,n,{fo:t.fo,fg:t.fg,handleOptionClick:t.handleOptionClick,handleGroupClick:t.handleGroupClick,search:v.search,pointer:i.pointer,setPointer:i.setPointer,clearPointer:i.clearPointer,multiselect:g.multiselect}),p=gl(e,n,{iv:a.iv,update:f.update,search:v.search,setPointer:i.setPointer,selectPointer:c.selectPointer,backwardPointer:c.backwardPointer,forwardPointer:c.forwardPointer,blur:g.blur,fo:t.fo}),b=bl(e,n,{isOpen:o.isOpen,isPointed:c.isPointed,canPointGroups:c.canPointGroups,isSelected:t.isSelected,isDisabled:t.isDisabled,isActive:g.isActive,resolving:t.resolving,fo:t.fo});return G(G(G(G(G(G(G(G(G(G({},a),o),g),i),f),v),t),c),p),b)}},hl=["id","tabindex"],yl=["type","modelValue","value","autocomplete"],Sl=["onMousedown"],kl=["type","modelValue","value","autocomplete"],wl={class:"w-full overflow-y-auto"},Ol=["data-pointed","onMouseenter","onClick"],Ll=["data-pointed","onMouseenter","onClick"],Pl=["data-pointed","onMouseenter","onClick"],Il=["innerHTML"],Bl=["innerHTML"],ql=["value"],Cl=["name","value"],Tl=["name","value"];function Dl(e,n,a,i,o,v){const f=De("BaseContentPlaceholdersBox"),g=De("BaseContentPlaceholders");return a.contentLoading?(I(),el(g,{key:0},{default:ll(()=>[al(f,{rounded:!0,class:"w-full",style:{height:"40px"}})]),_:1})):(I(),B("div",{key:1,id:a.id,ref:"multiselect",tabindex:e.tabindex,class:O(e.classList.container),onFocusin:n[6]||(n[6]=(...t)=>e.activate&&e.activate(...t)),onFocusout:n[7]||(n[7]=(...t)=>e.deactivate&&e.deactivate(...t)),onKeydown:n[8]||(n[8]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onFocus:n[9]||(n[9]=(...t)=>e.handleFocus&&e.handleFocus(...t))},[a.mode!=="tags"&&a.searchable&&!a.disabled?(I(),B("input",{key:0,ref:"input",type:a.inputType,modelValue:e.search,value:e.search,class:O(e.classList.search),autocomplete:a.autocomplete,onInput:n[0]||(n[0]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onPaste:n[1]||(n[1]=ve((...t)=>e.handlePaste&&e.handlePaste(...t),["stop"]))},null,42,yl)):E("",!0),a.mode=="tags"?(I(),B("div",{key:1,class:O(e.classList.tags)},[(I(!0),B(ae,null,se(e.iv,(t,c,p)=>T(e.$slots,"tag",{option:t,handleTagRemove:e.handleTagRemove,disabled:a.disabled},()=>[(I(),B("span",{key:p,class:O(e.classList.tag)},[tl(J(t[a.label])+" ",1),a.disabled?E("",!0):(I(),B("span",{key:0,class:O(e.classList.tagRemove),onMousedown:ve(b=>e.handleTagRemove(t,b),["stop"])},[P("span",{class:O(e.classList.tagRemoveIcon)},null,2)],42,Sl))],2))])),256)),P("div",{class:O(e.classList.tagsSearchWrapper)},[P("span",{class:O(e.classList.tagsSearchCopy)},J(e.search),3),a.searchable&&!a.disabled?(I(),B("input",{key:0,ref:"input",type:a.inputType,modelValue:e.search,value:e.search,class:O(e.classList.tagsSearch),autocomplete:a.autocomplete,style:{"box-shadow":"none !important"},onInput:n[2]||(n[2]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onPaste:n[3]||(n[3]=ve((...t)=>e.handlePaste&&e.handlePaste(...t),["stop"]))},null,42,kl)):E("",!0)],2)],2)):E("",!0),a.mode=="single"&&e.hasSelected&&!e.search&&e.iv?T(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[P("div",{class:O(e.classList.singleLabel)},J(e.iv[a.label]),3)]):E("",!0),a.mode=="multiple"&&e.hasSelected&&!e.search?T(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[P("div",{class:O(e.classList.multipleLabel)},J(e.multipleLabelText),3)]):E("",!0),a.placeholder&&!e.hasSelected&&!e.search?T(e.$slots,"placeholder",{key:4},()=>[P("div",{class:O(e.classList.placeholder)},J(a.placeholder),3)]):E("",!0),e.busy?T(e.$slots,"spinner",{key:5},()=>[P("span",{class:O(e.classList.spinner)},null,2)]):E("",!0),e.hasSelected&&!a.disabled&&a.canClear&&!e.busy?T(e.$slots,"clear",{key:6,clear:e.clear},()=>[P("span",{class:O(e.classList.clear),onMousedown:n[4]||(n[4]=(...t)=>e.clear&&e.clear(...t))},[P("span",{class:O(e.classList.clearIcon)},null,2)],34)]):E("",!0),a.caret?T(e.$slots,"caret",{key:7},()=>[P("span",{class:O(e.classList.caret),onMousedown:n[5]||(n[5]=ve((...t)=>e.handleCaretClick&&e.handleCaretClick(...t),["prevent","stop"]))},null,34)]):E("",!0),P("div",{class:O(e.classList.dropdown),tabindex:"-1"},[P("div",wl,[T(e.$slots,"beforelist",{options:e.fo}),P("ul",{class:O(e.classList.options)},[a.groups?(I(!0),B(ae,{key:0},se(e.fg,(t,c,p)=>(I(),B("li",{key:p,class:O(e.classList.group)},[P("div",{class:O(e.classList.groupLabel(t)),"data-pointed":e.isPointed(t),onMouseenter:b=>e.setPointer(t),onClick:b=>e.handleGroupClick(t)},[T(e.$slots,"grouplabel",{group:t},()=>[P("span",null,J(t[a.groupLabel]),1)])],42,Ol),P("ul",{class:O(e.classList.groupOptions)},[(I(!0),B(ae,null,se(t.__VISIBLE__,(b,q,V)=>(I(),B("li",{key:V,class:O(e.classList.option(b,t)),"data-pointed":e.isPointed(b),onMouseenter:D=>e.setPointer(b),onClick:D=>e.handleOptionClick(b)},[T(e.$slots,"option",{option:b,search:e.search},()=>[P("span",null,J(b[a.label]),1)])],42,Ll))),128))],2)],2))),128)):(I(!0),B(ae,{key:1},se(e.fo,(t,c,p)=>(I(),B("li",{key:p,class:O(e.classList.option(t)),"data-pointed":e.isPointed(t),onMouseenter:b=>e.setPointer(t),onClick:b=>e.handleOptionClick(t)},[T(e.$slots,"option",{option:t,search:e.search},()=>[P("span",null,J(t[a.label]),1)])],42,Pl))),128))],2),e.noOptions?T(e.$slots,"nooptions",{key:0},()=>[P("div",{class:O(e.classList.noOptions),innerHTML:a.noOptionsText},null,10,Il)]):E("",!0),e.noResults?T(e.$slots,"noresults",{key:1},()=>[P("div",{class:O(e.classList.noResults),innerHTML:a.noResultsText},null,10,Bl)]):E("",!0),T(e.$slots,"afterlist",{options:e.fo})]),T(e.$slots,"action")],2),a.required?(I(),B("input",{key:8,class:O(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,ql)):E("",!0),a.nativeSupport?(I(),B(ae,{key:9},[a.mode=="single"?(I(),B("input",{key:0,type:"hidden",name:a.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,Cl)):(I(!0),B(ae,{key:1},se(e.plainValue,(t,c)=>(I(),B("input",{key:c,type:"hidden",name:`${a.name}[]`,value:t},null,8,Tl))),128))],64)):E("",!0),P("div",{class:O(e.classList.spacer)},null,2)],42,hl))}var Rl=nl(ml,[["render",Dl]]);export{Rl as default};
import{I as O,r as T,o as i,e as s,h as u,m as c,t as h,j as m,f as k,F as C,y as P,i as _,a0 as N,B as F,k as A,C as J,D as K,g as L,u as y,w as Q,A as U,l as X}from"./vendor.01d0adc5.js";import{_ as Z,S as $}from"./main.75722495.js";function V(a,t){if(!t||a===null||typeof a!="object")return a;const[e,n]=t.split(/\.(.+)/);return V(a[e],n)}function ee(a,t){return t.reduce((e,n)=>(e[n]=a[n],e),{})}class te{constructor(t,e){this.data=t,this.columns=e}getValue(t){return V(this.data,t)}getColumn(t){return this.columns.find(e=>e.key===t)}getSortableValue(t){const e=this.getColumn(t).dataType;let n=this.getValue(t);if(n==null)return"";if(n instanceof String&&(n=n.toLowerCase()),e.startsWith("date")){const b=e.replace("date:","");return O(n,b).format("YYYYMMDDHHmmss")}return e==="numeric"?n:n.toString()}}class ae{constructor(t){const e=ee(t,["key","label","thClass","tdClass","sortBy","sortable","hidden","dataType"]);for(const n in e)this[n]=t[n];e.dataType||(this.dataType="string"),e.sortable===void 0&&(this.sortable=!0)}getFilterFieldName(){return this.filterOn||this.key}isSortable(){return this.sortable}getSortPredicate(t,e){const n=this.getSortFieldName(),l=e.find(g=>g.key===n).dataType;return l.startsWith("date")||l==="numeric"?(g,d)=>{const p=g.getSortableValue(n),x=d.getSortableValue(n);return t==="desc"?x<p?-1:1:p<x?-1:1}:(g,d)=>{const p=g.getSortableValue(n),x=d.getSortableValue(n);return t==="desc"?x.localeCompare(p):p.localeCompare(x)}}getSortFieldName(){return this.sortBy||this.key}}const ne={props:{pagination:{type:Object,default:()=>({})}},computed:{pages(){return this.pagination.totalPages===void 0?[]:this.pageLinks()},hasFirst(){return this.pagination.currentPage>=4||this.pagination.totalPages<10},hasLast(){return this.pagination.currentPage<=this.pagination.totalPages-3||this.pagination.totalPages<10},hasFirstEllipsis(){return this.pagination.currentPage>=4&&this.pagination.totalPages>=10},hasLastEllipsis(){return this.pagination.currentPage<=this.pagination.totalPages-3&&this.pagination.totalPages>=10},shouldShowPagination(){return this.pagination.totalPages===void 0||this.pagination.count===0?!1:this.pagination.totalPages>1}},methods:{isActive(a){return(this.pagination.currentPage||1)===a},pageClicked(a){a==="..."||a===this.pagination.currentPage||a>this.pagination.totalPages||a<1||this.$emit("pageChange",a)},pageLinks(){const a=[];let t=2,e=this.pagination.totalPages-1;this.pagination.totalPages>=10&&(t=Math.max(1,this.pagination.currentPage-2),e=Math.min(this.pagination.currentPage+2,this.pagination.totalPages));for(let n=t;n<=e;n++)a.push(n);return a}}},re={key:0,class:"flex items-center justify-between px-4 py-3 bg-white border-t border-gray-200 sm:px-6"},ie={class:"flex justify-between flex-1 sm:hidden"},se={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},le={class:"text-sm text-gray-700"},oe=_(" Showing "+h(" ")+" "),de={key:0,class:"font-medium"},ge=_(" "+h(" ")+" to "+h(" ")+" "),ue={key:1,class:"font-medium"},ce={key:0},he={key:1},ye=_(" "+h(" ")+" of "+h(" ")+" "),fe={key:2,class:"font-medium"},me=_(" "+h(" ")+" results "),pe={class:"relative z-0 inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination"},be=u("span",{class:"sr-only"},"Previous",-1),xe={key:1,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300"},ve=["onClick"],ke={key:2,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300"},Ce=u("span",{class:"sr-only"},"Next",-1);function Pe(a,t,e,n,b,l){const g=T("BaseIcon");return l.shouldShowPagination?(i(),s("div",re,[u("div",ie,[u("a",{href:"#",class:c([{"disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===1},"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"]),onClick:t[0]||(t[0]=d=>l.pageClicked(e.pagination.currentPage-1))}," Previous ",2),u("a",{href:"#",class:c([{"disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===e.pagination.totalPages},"relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"]),onClick:t[1]||(t[1]=d=>l.pageClicked(e.pagination.currentPage+1))}," Next ",2)]),u("div",se,[u("div",null,[u("p",le,[oe,e.pagination.limit&&e.pagination.currentPage?(i(),s("span",de,h(e.pagination.currentPage*e.pagination.limit-(e.pagination.limit-1)),1)):m("",!0),ge,e.pagination.limit&&e.pagination.currentPage?(i(),s("span",ue,[e.pagination.currentPage*e.pagination.limit<=e.pagination.totalCount?(i(),s("span",ce,h(e.pagination.currentPage*e.pagination.limit),1)):(i(),s("span",he,h(e.pagination.totalCount),1))])):m("",!0),ye,e.pagination.totalCount?(i(),s("span",fe,h(e.pagination.totalCount),1)):m("",!0),me])]),u("div",null,[u("nav",pe,[u("a",{href:"#",class:c([{"disabled cursor-normal pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===1},"relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md hover:bg-gray-50"]),onClick:t[2]||(t[2]=d=>l.pageClicked(e.pagination.currentPage-1))},[be,k(g,{name:"ChevronLeftIcon"})],2),l.hasFirst?(i(),s("a",{key:0,href:"#","aria-current":"page",class:c([{"z-10 bg-primary-50 border-primary-500 text-primary-600":l.isActive(1),"bg-white border-gray-300 text-gray-500 hover:bg-gray-50":!l.isActive(1)},"relative inline-flex items-center px-4 py-2 text-sm font-medium border"]),onClick:t[3]||(t[3]=d=>l.pageClicked(1))}," 1 ",2)):m("",!0),l.hasFirstEllipsis?(i(),s("span",xe," ... ")):m("",!0),(i(!0),s(C,null,P(l.pages,d=>(i(),s("a",{key:d,href:"#",class:c([{"z-10 bg-primary-50 border-primary-500 text-primary-600":l.isActive(d),"bg-white border-gray-300 text-gray-500 hover:bg-gray-50":!l.isActive(d),disabled:d==="..."},"relative items-center hidden px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 hover:bg-gray-50 md:inline-flex"]),onClick:p=>l.pageClicked(d)},h(d),11,ve))),128)),l.hasLastEllipsis?(i(),s("span",ke," ... ")):m("",!0),l.hasLast?(i(),s("a",{key:3,href:"#","aria-current":"page",class:c([{"z-10 bg-primary-50 border-primary-500 text-primary-600":l.isActive(e.pagination.totalPages),"bg-white border-gray-300 text-gray-500 hover:bg-gray-50":!l.isActive(e.pagination.totalPages)},"relative inline-flex items-center px-4 py-2 text-sm font-medium border"]),onClick:t[4]||(t[4]=d=>l.pageClicked(e.pagination.totalPages))},h(e.pagination.totalPages),3)):m("",!0),u("a",{href:"#",class:c(["relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md hover:bg-gray-50",{"disabled cursor-default pointer-events-none !bg-gray-100 !text-gray-400":e.pagination.currentPage===e.pagination.totalPages}]),onClick:t[5]||(t[5]=d=>l.pageClicked(e.pagination.currentPage+1))},[Ce,k(g,{name:"ChevronRightIcon"})],2)])])])])):m("",!0)}var _e=Z(ne,[["render",Pe]]);const we={class:"flex flex-col"},Se={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8 pb-4 lg:pb-0"},Te={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Ne={class:"relative overflow-hidden bg-white border-b border-gray-200 shadow sm:rounded-lg"},Be=["onClick"],Fe={key:0,class:"asc-direction"},Ae={key:1,class:"desc-direction"},Le={key:0},Ve={key:1},Ie={key:0,class:"absolute top-0 left-0 z-10 flex items-center justify-center w-full h-full bg-white bg-opacity-60"},De={key:1,class:"text-center text-gray-500 pb-2 flex h-[160px] justify-center items-center flex-col"},Me={class:"block mt-1"},Re={props:{columns:{type:Array,required:!0},data:{type:[Array,Function],required:!0},sortBy:{type:String,default:""},sortOrder:{type:String,default:""},tableClass:{type:String,default:"min-w-full divide-y divide-gray-200"},theadClass:{type:String,default:"bg-gray-50"},tbodyClass:{type:String,default:""},noResultsMessage:{type:String,default:"No Results Found"},loading:{type:Boolean,default:!1},loadingType:{type:String,default:"placeholder",validator:function(a){return["placeholder","spinner"].indexOf(a)!==-1}},placeholderCount:{type:Number,default:3}},setup(a,{expose:t}){const e=a;let n=N([]),b=F(!1),l=N(e.columns.map(r=>new ae(r))),g=N({fieldName:"",order:""}),d=F("");const p=A(()=>Array.isArray(e.data)),x=A(()=>{if(!p.value||g.fieldName===""||l.length===0)return n.value;const r=I(g.fieldName);return r?[...n.value].sort(r.getSortPredicate(g.order,l)):n.value});function I(r){return l.find(o=>o.key===r)}function D(r){let o="whitespace-nowrap px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider";return r.defaultThClass&&(o=r.defaultThClass),r.sortable?o=`${o} cursor-pointer`:o=`${o} pointer-events-none`,r.thClass&&(o=`${o} ${r.thClass}`),o}function B(r){let o="px-6 py-4 text-sm text-gray-500 whitespace-nowrap";return r.defaultTdClass&&(o=r.defaultTdClass),r.tdClass&&(o=`${o} ${r.tdClass}`),o}function M(r){let o="w-full";return r.placeholderClass&&(o=`${o} ${r.placeholderClass}`),o}function z(){return d.value=null,e.data}async function E(){const r=d.value&&d.value.currentPage||1;b.value=!0;const o=await e.data({sort:g,page:r});return b.value=!1,d.value=o.pagination,o.data}function R(r){g.fieldName!==r.key?(g.fieldName=r.key,g.order="asc"):g.order=g.order==="asc"?"desc":"asc",p.value||w()}async function w(){const r=p.value?z():await E();n.value=r.map(o=>new te(o,l))}async function j(r){d.value.currentPage=r,await w()}async function Y(){await w()}function H(r,o){return U.exports.get(r,o)}return p.value&&J(()=>e.data,()=>{w()}),K(async()=>{await w()}),t({refresh:Y}),(r,o)=>{const q=T("base-content-placeholders-text"),W=T("base-content-placeholders"),G=T("BaseIcon");return i(),s("div",we,[u("div",Se,[u("div",Te,[u("div",Ne,[L(r.$slots,"header"),u("table",{class:c(a.tableClass)},[u("thead",{class:c(a.theadClass)},[u("tr",null,[(i(!0),s(C,null,P(y(l),f=>(i(),s("th",{key:f.key,class:c([D(f),{"text-bold text-black":y(g).fieldName===f.key}]),onClick:v=>R(f)},[_(h(f.label)+" ",1),y(g).fieldName===f.key&&y(g).order==="asc"?(i(),s("span",Fe," \u2191 ")):m("",!0),y(g).fieldName===f.key&&y(g).order==="desc"?(i(),s("span",Ae," \u2193 ")):m("",!0)],10,Be))),128))])],2),a.loadingType==="placeholder"&&(a.loading||y(b))?(i(),s("tbody",Le,[(i(!0),s(C,null,P(a.placeholderCount,f=>(i(),s("tr",{key:f,class:c(f%2==0?"bg-white":"bg-gray-50")},[(i(!0),s(C,null,P(a.columns,v=>(i(),s("td",{key:v.key,class:c(["",B(v)])},[k(W,{class:c(M(v)),rounded:!0},{default:Q(()=>[k(q,{class:"w-full h-6",lines:1})]),_:2},1032,["class"])],2))),128))],2))),128))])):(i(),s("tbody",Ve,[(i(!0),s(C,null,P(y(x),(f,v)=>(i(),s("tr",{key:v,class:c(v%2==0?"bg-white":"bg-gray-50")},[(i(!0),s(C,null,P(a.columns,S=>(i(),s("td",{key:S.key,class:c(["",B(S)])},[L(r.$slots,"cell-"+S.key,{row:f},()=>[_(h(H(f.data,S.key)),1)])],2))),128))],2))),128))]))],2),a.loadingType==="spinner"&&(a.loading||y(b))?(i(),s("div",Ie,[k($,{class:"w-10 h-10 text-primary-500"})])):!a.loading&&!y(b)&&y(x)&&y(x).length===0?(i(),s("div",De,[k(G,{name:"ExclamationCircleIcon",class:"w-6 h-6 text-gray-400"}),u("span",Me,h(a.noResultsMessage),1)])):m("",!0),y(d)?(i(),X(_e,{key:2,pagination:y(d),onPageChange:j},null,8,["pagination"])):m("",!0)])])])])}}};export{Re as default};
import{J as j,B as k,k as g,L as y,M as N,N as L,S as T,T as q,r as i,o as B,l as b,w as r,h as m,i as f,t as C,u as e,f as n,m as D,j as G,U}from"./vendor.01d0adc5.js";import{u as z}from"./category.4b37f0ed.js";import{c as E}from"./main.75722495.js";const A={class:"flex justify-between w-full"},J=["onSubmit"],X={class:"p-8 sm:p-6"},F={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},Q={setup(H){const t=z(),u=E(),{t:p}=j();let c=k(!1);const h=g(()=>({currentCategory:{name:{required:y.withMessage(p("validation.required"),N),minLength:y.withMessage(p("validation.name_min_length",{count:3}),L(3))},description:{maxLength:y.withMessage(p("validation.description_maxlength",{count:255}),T(255))}}})),o=q(h,g(()=>t)),w=g(()=>u.active&&u.componentName==="CategoryModal");async function I(){if(o.value.currentCategory.$touch(),o.value.currentCategory.$invalid)return!0;const s=t.isEdit?t.updateCategory:t.addCategory;c.value=!0,await s(t.currentCategory),c.value=!1,u.refreshData&&u.refreshData(),d()}function d(){u.closeModal(),setTimeout(()=>{t.$reset(),o.value.$reset()},300)}return(s,a)=>{const v=i("BaseIcon"),x=i("BaseInput"),_=i("BaseInputGroup"),M=i("BaseTextarea"),V=i("BaseInputGrid"),$=i("BaseButton"),S=i("BaseModal");return B(),b(S,{show:e(w),onClose:d},{header:r(()=>[m("div",A,[f(C(e(u).title)+" ",1),n(v,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:d})])]),default:r(()=>[m("form",{action:"",onSubmit:U(I,["prevent"])},[m("div",X,[n(V,{layout:"one-column"},{default:r(()=>[n(_,{label:s.$t("expenses.category"),error:e(o).currentCategory.name.$error&&e(o).currentCategory.name.$errors[0].$message,required:""},{default:r(()=>[n(x,{modelValue:e(t).currentCategory.name,"onUpdate:modelValue":a[0]||(a[0]=l=>e(t).currentCategory.name=l),invalid:e(o).currentCategory.name.$error,type:"text",onInput:a[1]||(a[1]=l=>e(o).currentCategory.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),n(_,{label:s.$t("expenses.description"),error:e(o).currentCategory.description.$error&&e(o).currentCategory.description.$errors[0].$message},{default:r(()=>[n(M,{modelValue:e(t).currentCategory.description,"onUpdate:modelValue":a[2]||(a[2]=l=>e(t).currentCategory.description=l),rows:"4",cols:"50",onInput:a[3]||(a[3]=l=>e(o).currentCategory.description.$touch())},null,8,["modelValue"])]),_:1},8,["label","error"])]),_:1})]),m("div",F,[n($,{type:"button",variant:"primary-outline",class:"mr-3 text-sm",onClick:d},{default:r(()=>[f(C(s.$t("general.cancel")),1)]),_:1}),n($,{loading:e(c),disabled:e(c),variant:"primary",type:"submit"},{left:r(l=>[e(c)?G("",!0):(B(),b(v,{key:0,name:"SaveIcon",class:D(l.class)},null,8,["class"]))]),default:r(()=>[f(" "+C(e(t).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,J)]),_:1},8,["show"])}}};export{Q as _};
var te=Object.defineProperty;var L=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var T=(f,s,d)=>s in f?te(f,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):f[s]=d,A=(f,s)=>{for(var d in s||(s={}))oe.call(s,d)&&T(f,d,s[d]);if(L)for(var d of L(s))se.call(s,d)&&T(f,d,s[d]);return f};import{aN as ne,J as R,B as h,a0 as J,k as F,L as I,M as k,P as le,T as E,r as i,o as S,l as q,w as r,h as u,t as v,u as e,f as o,i as j,m as O,j as z,U as P,ah as de,N as re,e as H,x as ie,F as ue}from"./vendor.01d0adc5.js";import{b as K,c as Q,d as W}from"./main.75722495.js";const me={class:"flex justify-between w-full"},ce={class:"px-6 pt-6"},pe={class:"font-medium text-lg text-left"},_e={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},fe=["onSubmit"],ye={class:"p-4 sm:p-6 space-y-4"},ge={class:"z-0 flex justify-end p-4 bg-gray-50 border-modal-bg"},ve={setup(f){const s=K(),d=Q(),M=W(),B=ne(),{t:D}=R();let m=h(!1);const a=J({id:s.selectedCompany.id,name:null}),b=F(()=>d.active&&d.componentName==="DeleteCompanyModal"),V={formData:{name:{required:I.withMessage(D("validation.required"),k),sameAsName:I.withMessage(D("validation.company_name_not_same"),le(s.selectedCompany.name))}}},p=E(V,{formData:a},{$scope:!1});async function U(){if(p.value.$touch(),p.value.$invalid)return!0;const g=s.companies[0];m.value=!0;try{const y=await s.deleteCompany(a);console.log(y.data.success),y.data.success&&(C(),await s.setSelectedCompany(g),B.push("/admin/dashboard"),await M.setIsAppLoaded(!1),await M.bootstrap()),m.value=!1}catch{m.value=!1}}function _(){a.id=null,a.name="",p.value.$reset()}function C(){d.closeModal(),setTimeout(()=>{_(),p.value.$reset()},300)}return(g,y)=>{const x=i("BaseInput"),l=i("BaseInputGroup"),t=i("BaseButton"),N=i("BaseIcon"),c=i("BaseModal");return S(),q(c,{show:e(b),onClose:C},{default:r(()=>[u("div",me,[u("div",ce,[u("h6",pe,v(e(d).title),1),u("p",_e,v(g.$t("settings.company_info.delete_company_modal_desc",{company:e(s).selectedCompany.name})),1)])]),u("form",{action:"",onSubmit:P(U,["prevent"])},[u("div",ye,[o(l,{label:g.$t("settings.company_info.delete_company_modal_label",{company:e(s).selectedCompany.name}),error:e(p).formData.name.$error&&e(p).formData.name.$errors[0].$message,required:""},{default:r(()=>[o(x,{modelValue:e(a).name,"onUpdate:modelValue":y[0]||(y[0]=$=>e(a).name=$),invalid:e(p).formData.name.$error,onInput:y[1]||(y[1]=$=>e(p).formData.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),u("div",ge,[o(t,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:C},{default:r(()=>[j(v(g.$t("general.cancel")),1)]),_:1}),o(t,{loading:e(m),disabled:e(m),variant:"danger",type:"submit"},{left:r($=>[e(m)?z("",!0):(S(),q(N,{key:0,name:"TrashIcon",class:O($.class)},null,8,["class"]))]),default:r(()=>[j(" "+v(g.$t("general.delete")),1)]),_:1},8,["loading","disabled"])])],40,fe)]),_:1},8,["show"])}}},be=["onSubmit"],$e={key:0,class:"py-5"},Be={class:"text-lg leading-6 font-medium text-gray-900"},Ve={class:"mt-2 max-w-xl text-sm text-gray-500"},Ce={class:"mt-5"},Se={setup(f){const s=K(),d=W(),M=Q(),{t:B}=R(),D=de("utils");let m=h(!1);const a=J({name:null,logo:null,address:{address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:"",phone:"",zip:""}});D.mergeSettings(a,A({},s.selectedCompany));let b=h([]),V=h(null),p=h(null);a.logo&&b.value.push({image:a.logo});const U=F(()=>({name:{required:I.withMessage(B("validation.required"),k),minLength:I.withMessage(B("validation.name_min_length"),re(3))},address:{country_id:{required:I.withMessage(B("validation.required"),k)}}})),_=E(U,F(()=>a));d.fetchCountries();function C(l,t,N,c){p.value=c.name,V.value=t}function g(){V.value=null}async function y(){if(_.value.$touch(),_.value.$invalid)return!0;if(m.value=!0,(await s.updateCompany(a)).data.data){if(V.value){let t=new FormData;t.append("company_logo",JSON.stringify({name:p.value,data:V.value})),await s.updateCompanyLogo(t)}m.value=!1}m.value=!1}function x(l){M.openModal({title:B("settings.company_info.are_you_absolutely_sure"),componentName:"DeleteCompanyModal",size:"sm"})}return(l,t)=>{const N=i("BaseFileUploader"),c=i("BaseInputGroup"),$=i("BaseInputGrid"),w=i("BaseInput"),X=i("BaseMultiselect"),G=i("BaseTextarea"),Y=i("BaseIcon"),Z=i("BaseButton"),ee=i("BaseDivider"),ae=i("BaseSettingCard");return S(),H(ue,null,[u("form",{onSubmit:P(y,["prevent"])},[o(ae,{title:l.$t("settings.company_info.company_info"),description:l.$t("settings.company_info.section_description")},{default:r(()=>[o($,{class:"mt-5"},{default:r(()=>[o(c,{label:l.$tc("settings.company_info.company_logo")},{default:r(()=>[o(N,{modelValue:e(b),"onUpdate:modelValue":t[0]||(t[0]=n=>ie(b)?b.value=n:b=n),base64:"",onChange:C,onRemove:g},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),o($,{class:"mt-5"},{default:r(()=>[o(c,{label:l.$tc("settings.company_info.company_name"),error:e(_).name.$error&&e(_).name.$errors[0].$message,required:""},{default:r(()=>[o(w,{modelValue:e(a).name,"onUpdate:modelValue":t[1]||(t[1]=n=>e(a).name=n),invalid:e(_).name.$error,onBlur:t[2]||(t[2]=n=>e(_).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(c,{label:l.$tc("settings.company_info.phone")},{default:r(()=>[o(w,{modelValue:e(a).address.phone,"onUpdate:modelValue":t[3]||(t[3]=n=>e(a).address.phone=n)},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:l.$tc("settings.company_info.country"),error:e(_).address.country_id.$error&&e(_).address.country_id.$errors[0].$message,required:""},{default:r(()=>[o(X,{modelValue:e(a).address.country_id,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).address.country_id=n),label:"name",invalid:e(_).address.country_id.$error,options:e(d).countries,"value-prop":"id","can-deselect":!0,"can-clear":!1,searchable:"","track-by":"name"},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),o(c,{label:l.$tc("settings.company_info.state")},{default:r(()=>[o(w,{modelValue:e(a).address.state,"onUpdate:modelValue":t[5]||(t[5]=n=>e(a).address.state=n),name:"state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:l.$tc("settings.company_info.city")},{default:r(()=>[o(w,{modelValue:e(a).address.city,"onUpdate:modelValue":t[6]||(t[6]=n=>e(a).address.city=n),type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:l.$tc("settings.company_info.zip")},{default:r(()=>[o(w,{modelValue:e(a).address.zip,"onUpdate:modelValue":t[7]||(t[7]=n=>e(a).address.zip=n)},null,8,["modelValue"])]),_:1},8,["label"]),u("div",null,[o(c,{label:l.$tc("settings.company_info.address")},{default:r(()=>[o(G,{modelValue:e(a).address.address_street_1,"onUpdate:modelValue":t[8]||(t[8]=n=>e(a).address.address_street_1=n),rows:"2"},null,8,["modelValue"])]),_:1},8,["label"]),o(G,{modelValue:e(a).address.address_street_2,"onUpdate:modelValue":t[9]||(t[9]=n=>e(a).address.address_street_2=n),rows:"2",row:2,class:"mt-2"},null,8,["modelValue"])])]),_:1}),o(Z,{loading:e(m),disabled:e(m),type:"submit",class:"mt-6"},{left:r(n=>[e(m)?z("",!0):(S(),q(Y,{key:0,class:O(n.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[j(" "+v(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"]),e(s).companies.length!==1?(S(),H("div",$e,[o(ee,{class:"my-4"}),u("h3",Be,v(l.$tc("settings.company_info.delete_company")),1),u("div",Ve,[u("p",null,v(l.$tc("settings.company_info.delete_company_description")),1)]),u("div",Ce,[u("button",{type:"button",class:"inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:text-sm",onClick:x},v(l.$tc("general.delete")),1)])])):z("",!0)]),_:1},8,["title","description"])],40,be),o(ve)],64)}}};export{Se as default};
var ae=Object.defineProperty;var G=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var N=(y,o,b)=>o in y?ae(y,o,{enumerable:!0,configurable:!0,writable:!0,value:b}):y[o]=b,T=(y,o)=>{for(var b in o||(o={}))ie.call(o,b)&&N(y,b,o[b]);if(G)for(var b of G(o))ue.call(o,b)&&N(y,b,o[b]);return y};import{J as de,aN as me,G as ce,B,k as M,L as g,M as R,N as F,O as A,Q as pe,P as ge,R as be,S as q,T as Ce,r as p,o as _,l as $,w as i,h as m,f as r,m as O,i as H,t as v,u as e,j as V,x as L,e as J,U as fe}from"./vendor.01d0adc5.js";import{l as _e,m as $e,d as ye,b as ve,n as Ve}from"./main.75722495.js";import{_ as we}from"./CreateCustomFields.a3a572c4.js";const he=["onSubmit"],Be={class:"flex items-center justify-end"},Me={class:"grid grid-cols-5 gap-4 mb-8"},Ie={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},xe={class:"grid grid-cols-5 gap-4 mb-8"},Ue={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},ke={class:"md:col-span-2"},Se={class:"text-sm text-gray-500"},qe={class:"grid grid-cols-5 gap-4 mb-8"},Le={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},ze={class:"space-y-6"},Pe={class:"flex items-center justify-start mb-6 md:justify-end md:mb-0"},Fe={class:"p-1"},je={key:0,class:"grid grid-cols-5 gap-4 mb-8"},De={class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},Ee={class:"space-y-6"},Ge={class:"grid grid-cols-5 gap-2 mb-8"},Ne={key:0,class:"col-span-5 text-lg font-semibold text-left lg:col-span-1"},Te={class:"col-span-5 lg:col-span-4"},Je={setup(y){const o=_e(),b=$e(),z=ye(),Q=ve(),j="customFields",{t:c}=de(),K=me(),W=ce();let s=B(!1),C=B(!1),f=B(!1);B(!1);const I=B(!1),h=M(()=>W.name==="customers.edit");let X=M(()=>o.isFetchingInitialSettings);const D=M(()=>h.value?c("customers.edit_customer"):c("customers.new_customer")),Y=M(()=>({currentCustomer:{name:{required:g.withMessage(c("validation.required"),R),minLength:g.withMessage(c("validation.name_min_length",{count:3}),F(3))},prefix:{minLength:g.withMessage(c("validation.name_min_length",{count:3}),F(3))},currency_id:{required:g.withMessage(c("validation.required"),R)},email:{required:g.withMessage(c("validation.required"),A(o.currentCustomer.enable_portal==!0)),email:g.withMessage(c("validation.email_incorrect"),pe)},password:{required:g.withMessage(c("validation.required"),A(o.currentCustomer.enable_portal==!0&&!o.currentCustomer.password_added)),minLength:g.withMessage(c("validation.password_min_length",{count:8}),F(8))},confirm_password:{sameAsPassword:g.withMessage(c("validation.password_incorrect"),ge(o.currentCustomer.password))},website:{url:g.withMessage(c("validation.invalid_url"),be)},billing:{address_street_1:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))},address_street_2:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))}},shipping:{address_street_1:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))},address_street_2:{maxLength:g.withMessage(c("validation.address_maxlength",{count:255}),q(255))}}}})),Z=M(()=>`${window.location.origin}/${Q.selectedCompany.slug}/customer/login`),a=Ce(Y,o,{$scope:j});o.resetCurrentCustomer(),o.fetchCustomerInitialSettings(h.value);async function ee(){if(a.value.$touch(),a.value.$invalid)return!0;I.value=!0;let l=T({},o.currentCustomer),t=null;try{t=await(h.value?o.updateCustomer:o.addCustomer)(l)}catch{I.value=!1;return}K.push(`/admin/customers/${t.data.data.id}/view`)}return(l,t)=>{const x=p("BaseBreadcrumbItem"),te=p("BaseBreadcrumb-item"),oe=p("BaseBreadcrumb"),w=p("BaseIcon"),E=p("BaseButton"),ne=p("BasePageHeader"),d=p("BaseInput"),u=p("BaseInputGroup"),P=p("BaseMultiselect"),U=p("BaseInputGrid"),k=p("BaseDivider"),re=p("BaseSwitch"),S=p("BaseTextarea"),se=p("BaseCard"),le=p("BasePage");return _(),$(le,null,{default:i(()=>[m("form",{onSubmit:fe(ee,["prevent"])},[r(ne,{title:e(D)},{actions:i(()=>[m("div",Be,[r(E,{type:"submit",loading:I.value,disabled:I.value},{left:i(n=>[r(w,{name:"SaveIcon",class:O(n.class)},null,8,["class"])]),default:i(()=>[H(" "+v(e(h)?l.$t("customers.update_customer"):l.$t("customers.save_customer")),1)]),_:1},8,["loading","disabled"])])]),default:i(()=>[r(oe,null,{default:i(()=>[r(x,{title:l.$t("general.home"),to:"dashboard"},null,8,["title"]),r(x,{title:l.$tc("customers.customer",2),to:"/admin/customers"},null,8,["title"]),r(te,{title:e(D),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(se,{class:"mt-5"},{default:i(()=>[m("div",Me,[m("h6",Ie,v(l.$t("customers.basic_info")),1),r(U,{class:"col-span-5 lg:col-span-4"},{default:i(()=>[r(u,{label:l.$t("customers.display_name"),required:"",error:e(a).currentCustomer.name.$error&&e(a).currentCustomer.name.$errors[0].$message,"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(o).currentCustomer.name=n),"content-loading":e(s),type:"text",name:"name",class:"",invalid:e(a).currentCustomer.name.$error,onInput:t[1]||(t[1]=n=>e(a).currentCustomer.name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),r(u,{label:l.$t("customers.primary_contact_name"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.contact_name,"onUpdate:modelValue":t[2]||(t[2]=n=>e(o).currentCustomer.contact_name=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{error:e(a).currentCustomer.email.$error&&e(a).currentCustomer.email.$errors[0].$message,"content-loading":e(s),label:l.$t("customers.email")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.email,"onUpdate:modelValue":t[3]||(t[3]=n=>e(o).currentCustomer.email=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"email",invalid:e(a).currentCustomer.email.$error,onInput:t[4]||(t[4]=n=>e(a).currentCustomer.email.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["error","content-loading","label"]),r(u,{label:l.$t("customers.phone"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.phone,"onUpdate:modelValue":t[5]||(t[5]=n=>e(o).currentCustomer.phone=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"phone"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.primary_currency"),"content-loading":e(s),error:e(a).currentCustomer.currency_id.$error&&e(a).currentCustomer.currency_id.$errors[0].$message,required:""},{default:i(()=>[r(P,{modelValue:e(o).currentCustomer.currency_id,"onUpdate:modelValue":t[6]||(t[6]=n=>e(o).currentCustomer.currency_id=n),"value-prop":"id",label:"name","track-by":"name","content-loading":e(s),options:e(z).currencies,searchable:"","can-deselect":!1,placeholder:l.$t("customers.select_currency"),invalid:e(a).currentCustomer.currency_id.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","content-loading","error"]),r(u,{error:e(a).currentCustomer.website.$error&&e(a).currentCustomer.website.$errors[0].$message,label:l.$t("customers.website"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.website,"onUpdate:modelValue":t[7]||(t[7]=n=>e(o).currentCustomer.website=n),"content-loading":e(s),type:"url",onInput:t[8]||(t[8]=n=>e(a).currentCustomer.website.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["error","label","content-loading"]),r(u,{label:l.$t("customers.prefix"),error:e(a).currentCustomer.prefix.$error&&e(a).currentCustomer.prefix.$errors[0].$message,"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.prefix,"onUpdate:modelValue":t[9]||(t[9]=n=>e(o).currentCustomer.prefix=n),"content-loading":e(s),type:"text",name:"name",class:"",invalid:e(a).currentCustomer.prefix.$error,onInput:t[10]||(t[10]=n=>e(a).currentCustomer.prefix.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"])]),_:1})]),r(k,{class:"mb-5 md:mb-8"}),m("div",xe,[m("h6",Ue,v(l.$t("customers.portal_access")),1),r(U,{class:"col-span-5 lg:col-span-4"},{default:i(()=>[m("div",ke,[m("p",Se,v(l.$t("customers.portal_access_text")),1),r(re,{modelValue:e(o).currentCustomer.enable_portal,"onUpdate:modelValue":t[11]||(t[11]=n=>e(o).currentCustomer.enable_portal=n),class:"mt-1 flex"},null,8,["modelValue"])]),e(o).currentCustomer.enable_portal?(_(),$(u,{key:0,"content-loading":e(s),label:l.$t("customers.portal_access_url"),class:"md:col-span-2","help-text":l.$t("customers.portal_access_url_help")},{default:i(()=>[r(Ve,{token:e(Z)},null,8,["token"])]),_:1},8,["content-loading","label","help-text"])):V("",!0),e(o).currentCustomer.enable_portal?(_(),$(u,{key:1,"content-loading":e(s),error:e(a).currentCustomer.password.$error&&e(a).currentCustomer.password.$errors[0].$message,label:l.$t("customers.password")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.password,"onUpdate:modelValue":t[14]||(t[14]=n=>e(o).currentCustomer.password=n),modelModifiers:{trim:!0},"content-loading":e(s),type:e(C)?"text":"password",name:"password",invalid:e(a).currentCustomer.password.$error,onInput:t[15]||(t[15]=n=>e(a).currentCustomer.password.$touch())},{right:i(()=>[e(C)?(_(),$(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[12]||(t[12]=n=>L(C)?C.value=!e(C):C=!e(C))})):(_(),$(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[13]||(t[13]=n=>L(C)?C.value=!e(C):C=!e(C))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["content-loading","error","label"])):V("",!0),e(o).currentCustomer.enable_portal?(_(),$(u,{key:2,error:e(a).currentCustomer.confirm_password.$error&&e(a).currentCustomer.confirm_password.$errors[0].$message,"content-loading":e(s),label:"Confirm Password"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.confirm_password,"onUpdate:modelValue":t[18]||(t[18]=n=>e(o).currentCustomer.confirm_password=n),modelModifiers:{trim:!0},"content-loading":e(s),type:e(f)?"text":"password",name:"confirm_password",invalid:e(a).currentCustomer.confirm_password.$error,onInput:t[19]||(t[19]=n=>e(a).currentCustomer.confirm_password.$touch())},{right:i(()=>[e(f)?(_(),$(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[16]||(t[16]=n=>L(f)?f.value=!e(f):f=!e(f))})):(_(),$(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:t[17]||(t[17]=n=>L(f)?f.value=!e(f):f=!e(f))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["error","content-loading"])):V("",!0)]),_:1})]),r(k,{class:"mb-5 md:mb-8"}),m("div",qe,[m("h6",Le,v(l.$t("customers.billing_address")),1),e(o).currentCustomer.billing?(_(),$(U,{key:0,class:"col-span-5 lg:col-span-4"},{default:i(()=>[r(u,{label:l.$t("customers.name"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.name,"onUpdate:modelValue":t[20]||(t[20]=n=>e(o).currentCustomer.billing.name=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",class:"w-full",name:"address_name"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.country"),"content-loading":e(s)},{default:i(()=>[r(P,{modelValue:e(o).currentCustomer.billing.country_id,"onUpdate:modelValue":t[21]||(t[21]=n=>e(o).currentCustomer.billing.country_id=n),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"","content-loading":e(s),options:e(z).countries,placeholder:l.$t("general.select_country"),class:"w-full"},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.state"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.state,"onUpdate:modelValue":t[22]||(t[22]=n=>e(o).currentCustomer.billing.state=n),"content-loading":e(s),name:"billing.state",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{"content-loading":e(s),label:l.$t("customers.city")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.city,"onUpdate:modelValue":t[23]||(t[23]=n=>e(o).currentCustomer.billing.city=n),"content-loading":e(s),name:"billing.city",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.address"),error:e(a).currentCustomer.billing.address_street_1.$error&&e(a).currentCustomer.billing.address_street_1.$errors[0].$message||e(a).currentCustomer.billing.address_street_2.$error&&e(a).currentCustomer.billing.address_street_2.$errors[0].$message,"content-loading":e(s)},{default:i(()=>[r(S,{modelValue:e(o).currentCustomer.billing.address_street_1,"onUpdate:modelValue":t[24]||(t[24]=n=>e(o).currentCustomer.billing.address_street_1=n),modelModifiers:{trim:!0},"content-loading":e(s),placeholder:l.$t("general.street_1"),type:"text",name:"billing_street1","container-class":"mt-3",onInput:t[25]||(t[25]=n=>e(a).currentCustomer.billing.address_street_1.$touch())},null,8,["modelValue","content-loading","placeholder"]),r(S,{modelValue:e(o).currentCustomer.billing.address_street_2,"onUpdate:modelValue":t[26]||(t[26]=n=>e(o).currentCustomer.billing.address_street_2=n),modelModifiers:{trim:!0},"content-loading":e(s),placeholder:l.$t("general.street_2"),type:"text",class:"mt-3",name:"billing_street2","container-class":"mt-3",onInput:t[27]||(t[27]=n=>e(a).currentCustomer.billing.address_street_2.$touch())},null,8,["modelValue","content-loading","placeholder"])]),_:1},8,["label","error","content-loading"]),m("div",ze,[r(u,{"content-loading":e(s),label:l.$t("customers.phone"),class:"text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.phone,"onUpdate:modelValue":t[28]||(t[28]=n=>e(o).currentCustomer.billing.phone=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"phone"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.zip_code"),"content-loading":e(s),class:"mt-2 text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.billing.zip,"onUpdate:modelValue":t[29]||(t[29]=n=>e(o).currentCustomer.billing.zip=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"zip"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"])])]),_:1})):V("",!0)]),r(k,{class:"mb-5 md:mb-8"}),m("div",Pe,[m("div",Fe,[r(E,{type:"button","content-loading":e(s),size:"sm",variant:"primary-outline",onClick:t[30]||(t[30]=n=>e(o).copyAddress(!0))},{left:i(n=>[r(w,{name:"DocumentDuplicateIcon",class:O(n.class)},null,8,["class"])]),default:i(()=>[H(" "+v(l.$t("customers.copy_billing_address")),1)]),_:1},8,["content-loading"])])]),e(o).currentCustomer.shipping?(_(),J("div",je,[m("h6",De,v(l.$t("customers.shipping_address")),1),r(U,{class:"col-span-5 lg:col-span-4"},{default:i(()=>[r(u,{"content-loading":e(s),label:l.$t("customers.name")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.name,"onUpdate:modelValue":t[31]||(t[31]=n=>e(o).currentCustomer.shipping.name=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"address_name"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.country"),"content-loading":e(s)},{default:i(()=>[r(P,{modelValue:e(o).currentCustomer.shipping.country_id,"onUpdate:modelValue":t[32]||(t[32]=n=>e(o).currentCustomer.shipping.country_id=n),"value-prop":"id",label:"name","track-by":"name","resolve-on-load":"",searchable:"","content-loading":e(s),options:e(z).countries,placeholder:l.$t("general.select_country"),class:"w-full"},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["label","content-loading"]),r(u,{label:l.$t("customers.state"),"content-loading":e(s)},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.state,"onUpdate:modelValue":t[33]||(t[33]=n=>e(o).currentCustomer.shipping.state=n),"content-loading":e(s),name:"shipping.state",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(u,{"content-loading":e(s),label:l.$t("customers.city")},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.city,"onUpdate:modelValue":t[34]||(t[34]=n=>e(o).currentCustomer.shipping.city=n),"content-loading":e(s),name:"shipping.city",type:"text"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.address"),"content-loading":e(s),error:e(a).currentCustomer.shipping.address_street_1.$error&&e(a).currentCustomer.shipping.address_street_1.$errors[0].$message||e(a).currentCustomer.shipping.address_street_2.$error&&e(a).currentCustomer.shipping.address_street_2.$errors[0].$message},{default:i(()=>[r(S,{modelValue:e(o).currentCustomer.shipping.address_street_1,"onUpdate:modelValue":t[35]||(t[35]=n=>e(o).currentCustomer.shipping.address_street_1=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",placeholder:l.$t("general.street_1"),name:"shipping_street1",onInput:t[36]||(t[36]=n=>e(a).currentCustomer.shipping.address_street_1.$touch())},null,8,["modelValue","content-loading","placeholder"]),r(S,{modelValue:e(o).currentCustomer.shipping.address_street_2,"onUpdate:modelValue":t[37]||(t[37]=n=>e(o).currentCustomer.shipping.address_street_2=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",placeholder:l.$t("general.street_2"),name:"shipping_street2",class:"mt-3","container-class":"mt-3",onInput:t[38]||(t[38]=n=>e(a).currentCustomer.shipping.address_street_2.$touch())},null,8,["modelValue","content-loading","placeholder"])]),_:1},8,["label","content-loading","error"]),m("div",Ee,[r(u,{"content-loading":e(s),label:l.$t("customers.phone"),class:"text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.phone,"onUpdate:modelValue":t[39]||(t[39]=n=>e(o).currentCustomer.shipping.phone=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"phone"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),r(u,{label:l.$t("customers.zip_code"),"content-loading":e(s),class:"mt-2 text-left"},{default:i(()=>[r(d,{modelValue:e(o).currentCustomer.shipping.zip,"onUpdate:modelValue":t[40]||(t[40]=n=>e(o).currentCustomer.shipping.zip=n),modelModifiers:{trim:!0},"content-loading":e(s),type:"text",name:"zip"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"])])]),_:1})])):V("",!0),e(b).customFields.length>0?(_(),$(k,{key:1,class:"mb-5 md:mb-8"})):V("",!0),m("div",Ge,[e(b).customFields.length>0?(_(),J("h6",Ne,v(l.$t("settings.custom_fields.title")),1)):V("",!0),m("div",Te,[r(we,{type:"Customer",store:e(o),"store-prop":"currentCustomer","is-edit":e(h),"is-loading":e(X),"custom-field-scope":j},null,8,["store","is-edit","is-loading"])])])]),_:1})],40,he)]),_:1})}}};export{Je as default};
var W=Object.defineProperty,X=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var k=(m,a,o)=>a in m?W(m,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):m[a]=o,j=(m,a)=>{for(var o in a||(a={}))Z.call(a,o)&&k(m,o,a[o]);if(S)for(var o of S(a))x.call(a,o)&&k(m,o,a[o]);return m},N=(m,a)=>X(m,Y(a));import{J as ee,G as ae,aN as te,B as w,k as V,L as p,M as $,N as G,Q as oe,O as se,T as ne,r as d,o as b,l as h,w as u,f as s,u as e,h as y,e as re,y as le,F as ie,m as ue,j as de,i as me,t as ce,U as pe}from"./vendor.01d0adc5.js";import{b as ge}from"./main.75722495.js";import{V as fe}from"./index.esm.998a6eeb.js";import{u as ve}from"./users.73a3faa4.js";const $e=["onSubmit"],De={class:"grid grid-cols-12"},Be={class:"space-y-6"},ye={setup(m){const a=ve(),{t:o}=ee(),q=ae(),L=te(),P=ge();let g=w(!1),l=w(!1);w([]);let I=w([]);const f=V(()=>q.name==="users.edit"),M=V(()=>f.value?o("users.edit_user"):o("users.new_user")),E=V(()=>({userData:{name:{required:p.withMessage(o("validation.required"),$),minLength:p.withMessage(o("validation.name_min_length",{count:3}),G(3))},email:{required:p.withMessage(o("validation.required"),$),email:p.withMessage(o("validation.email_incorrect"),oe)},password:{required:se(function(){return p.withMessage(o("validation.required"),$),!f.value}),minLength:p.withMessage(o("validation.password_min_length",{count:8}),G(8))},companies:{required:p.withMessage(o("validation.required"),$)}}})),F={role:{required:p.withMessage(o("validation.required"),$)}},n=ne(E,a,{$scope:!0});R(),a.resetUserData();async function R(){var i;l.value=!0;try{f.value&&await a.fetchUser(q.params.id);let t=await P.fetchUserCompanies();((i=t==null?void 0:t.data)==null?void 0:i.data)&&(I.value=t.data.data.map(c=>(c.role=null,c)))}catch{l.value=!1}l.value=!1}async function T(){if(n.value.$touch(),n.value.$invalid)return!0;try{g.value=!0;let i=N(j({},a.userData),{companies:a.userData.companies.map(c=>({role:c.role,id:c.id}))});await(f.value?a.updateUser:a.addUser)(i),L.push("/admin/users"),g.value=!1}catch{g.value=!1}}return(i,t)=>{const c=d("BaseBreadcrumbItem"),H=d("BaseBreadcrumb"),z=d("BasePageHeader"),D=d("BaseInput"),v=d("BaseInputGroup"),U=d("BaseMultiselect"),A=d("BaseInputGrid"),J=d("BaseIcon"),O=d("BaseButton"),Q=d("BaseCard"),K=d("BasePage");return b(),h(K,null,{default:u(()=>[s(z,{title:e(M)},{default:u(()=>[s(H,null,{default:u(()=>[s(c,{title:i.$t("general.home"),to:"dashboard"},null,8,["title"]),s(c,{title:i.$tc("users.user",2),to:"/admin/users"},null,8,["title"]),s(c,{title:e(M),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),y("form",{action:"",autocomplete:"off",onSubmit:pe(T,["prevent"])},[y("div",De,[s(Q,{class:"mt-6 col-span-12 md:col-span-8"},{default:u(()=>[s(A,{layout:"one-column"},{default:u(()=>[s(v,{"content-loading":e(l),label:i.$t("users.name"),error:e(n).userData.name.$error&&e(n).userData.name.$errors[0].$message,required:""},{default:u(()=>[s(D,{modelValue:e(a).userData.name,"onUpdate:modelValue":t[0]||(t[0]=r=>e(a).userData.name=r),modelModifiers:{trim:!0},"content-loading":e(l),invalid:e(n).userData.name.$error,onInput:t[1]||(t[1]=r=>e(n).userData.name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["content-loading","label","error"]),s(v,{"content-loading":e(l),label:i.$t("users.email"),error:e(n).userData.email.$error&&e(n).userData.email.$errors[0].$message,required:""},{default:u(()=>[s(D,{modelValue:e(a).userData.email,"onUpdate:modelValue":t[2]||(t[2]=r=>e(a).userData.email=r),modelModifiers:{trim:!0},type:"email","content-loading":e(l),invalid:e(n).userData.email.$error,onInput:t[3]||(t[3]=r=>e(n).userData.email.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["content-loading","label","error"]),s(v,{"content-loading":e(l),label:i.$t("users.companies"),error:e(n).userData.companies.$error&&e(n).userData.companies.$errors[0].$message,required:""},{default:u(()=>[s(U,{modelValue:e(a).userData.companies,"onUpdate:modelValue":t[4]||(t[4]=r=>e(a).userData.companies=r),mode:"tags",object:!0,autocomplete:"new-password",label:"name",options:e(I),"value-prop":"id",invalid:e(n).userData.companies.$error,"content-loading":e(l),searchable:"","can-deselect":!1,class:"w-full"},null,8,["modelValue","options","invalid","content-loading"])]),_:1},8,["content-loading","label","error"]),(b(!0),re(ie,null,le(e(a).userData.companies,(r,B)=>(b(),h(e(fe),{key:B,state:r,rules:F},{default:u(({v:_})=>[y("div",Be,[s(v,{"content-loading":e(l),label:i.$t("users.select_company_role",{company:r.name}),error:_.role.$error&&_.role.$errors[0].$message,required:""},{default:u(()=>[s(U,{modelValue:e(a).userData.companies[B].role,"onUpdate:modelValue":C=>e(a).userData.companies[B].role=C,"value-prop":"name","track-by":"id",autocomplete:"off","content-loading":e(l),label:"name",options:e(a).userData.companies[B].roles,"can-deselect":!1,invalid:_.role.$invalid,onChange:C=>_.role.$touch()},null,8,["modelValue","onUpdate:modelValue","content-loading","options","invalid","onChange"])]),_:2},1032,["content-loading","label","error"])])]),_:2},1032,["state"]))),128)),s(v,{"content-loading":e(l),label:i.$tc("users.password"),error:e(n).userData.password.$error&&e(n).userData.password.$errors[0].$message,required:!e(f)},{default:u(()=>[s(D,{modelValue:e(a).userData.password,"onUpdate:modelValue":t[5]||(t[5]=r=>e(a).userData.password=r),name:"new-password",autocomplete:"new-password","content-loading":e(l),type:"password",invalid:e(n).userData.password.$error,onInput:t[6]||(t[6]=r=>e(n).userData.password.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["content-loading","label","error","required"]),s(v,{"content-loading":e(l),label:i.$t("users.phone")},{default:u(()=>[s(D,{modelValue:e(a).userData.phone,"onUpdate:modelValue":t[7]||(t[7]=r=>e(a).userData.phone=r),modelModifiers:{trim:!0},"content-loading":e(l)},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"])]),_:1}),s(O,{"content-loading":e(l),type:"submit",loading:e(g),disabled:e(g),class:"mt-6"},{left:u(r=>[e(g)?de("",!0):(b(),h(J,{key:0,name:"SaveIcon",class:ue(r.class)},null,8,["class"]))]),default:u(()=>[me(" "+ce(e(f)?i.$t("users.update_user"):i.$t("users.save_user")),1)]),_:1},8,["content-loading","loading","disabled"])]),_:1})])],40,$e)]),_:1})}}};export{ye as default};
import{G as le,aN as ie,J as ue,B as U,k as _,L as p,M as y,b2 as ce,S as j,O as de,aP as pe,T as me,r as u,o as E,e as xe,f as r,w as o,h as V,u as e,l as w,m as S,i as b,t as $,j as M,x as ge,U as _e,F as ye}from"./vendor.01d0adc5.js";import{u as fe}from"./expense.e270a61c.js";import{u as ve}from"./category.4b37f0ed.js";import{l as Ee,b as be,m as $e,c as he,d as Be}from"./main.75722495.js";import{_ as Ce}from"./CreateCustomFields.a3a572c4.js";import{_ as Ve}from"./CategoryModal.9a2e05b9.js";import{_ as we}from"./ExchangeRateConverter.7d8c4309.js";import"./exchange-rate.dffa79b6.js";const Se=["onSubmit"],Me={class:"hidden md:block"},Ie={class:"block md:hidden"},Ge={setup(qe){const D=Ee(),I=be(),n=fe(),P=ve(),N=$e(),R=he(),g=le(),G=ie(),{t:c}=ue(),q=Be();let m=U(!1),i=U(!1);const k="newExpense",T=_(()=>({currentExpense:{expense_category_id:{required:p.withMessage(c("validation.required"),y)},expense_date:{required:p.withMessage(c("validation.required"),y)},amount:{required:p.withMessage(c("validation.required"),y),minValue:p.withMessage(c("validation.price_minvalue"),ce(.1)),maxLength:p.withMessage(c("validation.price_maxlength"),j(20))},notes:{maxLength:p.withMessage(c("validation.description_maxlength"),j(65e3))},currency_id:{required:p.withMessage(c("validation.required"),y)},exchange_rate:{required:de(function(){return p.withMessage(c("validation.required"),y),n.showExchangeRate}),decimal:p.withMessage(c("validation.valid_exchange_rate"),pe)}}})),l=me(T,n,{$scope:k}),h=_({get:()=>n.currentExpense.amount/100,set:t=>{n.currentExpense.amount=Math.round(t*100)}}),d=_(()=>g.name==="expenses.edit"),F=_(()=>d.value?c("expenses.edit_expense"):c("expenses.new_expense")),L=_(()=>d.value?`/expenses/${g.params.id}/download-receipt`:"");n.resetCurrentExpenseData(),N.resetCustomFields(),Q();function z(t,a){n.currentExpense.attachment_receipt=a}function A(){n.currentExpense.attachment_receipt=null}function H(){R.openModal({title:c("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm"})}function J(t){n.currentExpense.selectedCurrency=q.currencies.find(a=>a.id===t)}async function O(t){return(await P.fetchCategories({search:t})).data.data}async function K(t){return(await D.fetchCustomers({search:t})).data.data}async function Q(){d.value||(n.currentExpense.currency_id=I.selectedCompanyCurrency.id,n.currentExpense.selectedCurrency=I.selectedCompanyCurrency),i.value=!0,await n.fetchPaymentModes({limit:"all"}),d.value?(await n.fetchExpense(g.params.id),n.currentExpense.currency_id=n.currentExpense.selectedCurrency.id):g.query.customer&&(n.currentExpense.customer_id=g.query.customer),i.value=!1}async function W(){if(l.value.$touch(),l.value.$invalid)return;m.value=!0;let t=n.currentExpense;try{d.value?await n.updateExpense({id:g.params.id,data:t}):await n.addExpense(t),m.value=!1,G.push("/admin/expenses")}catch(a){console.error(a),m.value=!1;return}}return(t,a)=>{const B=u("BaseBreadcrumbItem"),X=u("BaseBreadcrumb"),f=u("BaseIcon"),C=u("BaseButton"),Y=u("BasePageHeader"),Z=u("BaseSelectAction"),v=u("BaseMultiselect"),x=u("BaseInputGroup"),ee=u("BaseDatePicker"),ne=u("BaseMoney"),te=u("BaseTextarea"),ae=u("BaseFileUploader"),re=u("BaseInputGrid"),se=u("BaseCard"),oe=u("BasePage");return E(),xe(ye,null,[r(Ve),r(oe,{class:"relative"},{default:o(()=>[V("form",{action:"",onSubmit:_e(W,["prevent"])},[r(Y,{title:e(F),class:"mb-5"},{actions:o(()=>[e(d)&&e(n).currentExpense.attachment_receipt?(E(),w(C,{key:0,href:e(L),tag:"a",variant:"primary-outline",type:"button",class:"mr-2"},{left:o(s=>[r(f,{name:"DownloadIcon",class:S(s.class)},null,8,["class"])]),default:o(()=>[b(" "+$(t.$t("expenses.download_receipt")),1)]),_:1},8,["href"])):M("",!0),V("div",Me,[r(C,{loading:e(m),"content-loading":e(i),disabled:e(m),variant:"primary",type:"submit"},{left:o(s=>[e(m)?M("",!0):(E(),w(f,{key:0,name:"SaveIcon",class:S(s.class)},null,8,["class"]))]),default:o(()=>[b(" "+$(e(d)?t.$t("expenses.update_expense"):t.$t("expenses.save_expense")),1)]),_:1},8,["loading","content-loading","disabled"])])]),default:o(()=>[r(X,null,{default:o(()=>[r(B,{title:t.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(B,{title:t.$tc("expenses.expense",2),to:"/admin/expenses"},null,8,["title"]),r(B,{title:e(F),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(se,null,{default:o(()=>[r(re,null,{default:o(()=>[r(x,{label:t.$t("expenses.category"),error:e(l).currentExpense.expense_category_id.$error&&e(l).currentExpense.expense_category_id.$errors[0].$message,"content-loading":e(i),required:""},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.expense_category_id,"onUpdate:modelValue":a[0]||(a[0]=s=>e(n).currentExpense.expense_category_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:O,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",invalid:e(l).currentExpense.expense_category_id.$error,placeholder:t.$t("expenses.categories.select_a_category"),onInput:a[1]||(a[1]=s=>e(l).currentExpense.expense_category_id.$touch())},{action:o(()=>[r(Z,{onClick:H},{default:o(()=>[r(f,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),b(" "+$(t.$t("settings.expense_category.add_new_category")),1)]),_:1})]),_:1},8,["modelValue","content-loading","invalid","placeholder"])]),_:1},8,["label","error","content-loading"]),r(x,{label:t.$t("expenses.expense_date"),error:e(l).currentExpense.expense_date.$error&&e(l).currentExpense.expense_date.$errors[0].$message,"content-loading":e(i),required:""},{default:o(()=>[r(ee,{modelValue:e(n).currentExpense.expense_date,"onUpdate:modelValue":a[2]||(a[2]=s=>e(n).currentExpense.expense_date=s),"content-loading":e(i),"calendar-button":!0,invalid:e(l).currentExpense.expense_date.$error,onInput:a[3]||(a[3]=s=>e(l).currentExpense.expense_date.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),r(x,{label:t.$t("expenses.amount"),error:e(l).currentExpense.amount.$error&&e(l).currentExpense.amount.$errors[0].$message,"content-loading":e(i),required:""},{default:o(()=>[r(ne,{key:e(n).currentExpense.selectedCurrency,modelValue:e(h),"onUpdate:modelValue":a[4]||(a[4]=s=>ge(h)?h.value=s:null),class:"focus:border focus:border-solid focus:border-primary-500",invalid:e(l).currentExpense.amount.$error,currency:e(n).currentExpense.selectedCurrency,onInput:a[5]||(a[5]=s=>e(l).currentExpense.amount.$touch())},null,8,["modelValue","invalid","currency"])]),_:1},8,["label","error","content-loading"]),r(x,{label:t.$t("expenses.currency"),"content-loading":e(i),error:e(l).currentExpense.currency_id.$error&&e(l).currentExpense.currency_id.$errors[0].$message,required:""},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.currency_id,"onUpdate:modelValue":[a[6]||(a[6]=s=>e(n).currentExpense.currency_id=s),J],"value-prop":"id",label:"name","track-by":"name","content-loading":e(i),options:e(q).currencies,searchable:"","can-deselect":!1,placeholder:t.$t("customers.select_currency"),invalid:e(l).currentExpense.currency_id.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","content-loading","error"]),r(we,{store:e(n),"store-prop":"currentExpense",v:e(l).currentExpense,"is-loading":e(i),"is-edit":e(d),"customer-currency":e(n).currentExpense.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"]),r(x,{"content-loading":e(i),label:t.$t("expenses.customer")},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.customer_id,"onUpdate:modelValue":a[7]||(a[7]=s=>e(n).currentExpense.customer_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:K,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",placeholder:t.$t("customers.select_a_customer")},null,8,["modelValue","content-loading","placeholder"])]),_:1},8,["content-loading","label"]),r(x,{"content-loading":e(i),label:t.$t("payments.payment_mode")},{default:o(()=>[r(v,{modelValue:e(n).currentExpense.payment_method_id,"onUpdate:modelValue":a[8]||(a[8]=s=>e(n).currentExpense.payment_method_id=s),"content-loading":e(i),label:"name","value-prop":"id","track-by":"name",options:e(n).paymentModes,placeholder:t.$t("payments.select_payment_mode"),searchable:""},null,8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),r(x,{"content-loading":e(i),label:t.$t("expenses.note"),error:e(l).currentExpense.notes.$error&&e(l).currentExpense.notes.$errors[0].$message},{default:o(()=>[r(te,{modelValue:e(n).currentExpense.notes,"onUpdate:modelValue":a[9]||(a[9]=s=>e(n).currentExpense.notes=s),"content-loading":e(i),row:4,rows:"4",onInput:a[10]||(a[10]=s=>e(l).currentExpense.notes.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label","error"]),r(x,{label:t.$t("expenses.receipt")},{default:o(()=>[r(ae,{modelValue:e(n).currentExpense.receiptFiles,"onUpdate:modelValue":a[11]||(a[11]=s=>e(n).currentExpense.receiptFiles=s),accept:"image/*,.doc,.docx,.pdf,.csv,.xlsx,.xls",onChange:z,onRemove:A},null,8,["modelValue"])]),_:1},8,["label"]),r(Ce,{"is-edit":e(d),class:"col-span-2","is-loading":e(i),type:"Expense",store:e(n),"store-prop":"currentExpense","custom-field-scope":k},null,8,["is-edit","is-loading","store"]),V("div",Ie,[r(C,{loading:e(m),tabindex:6,variant:"primary",type:"submit",class:"flex justify-center w-full"},{left:o(s=>[e(m)?M("",!0):(E(),w(f,{key:0,name:"SaveIcon",class:S(s.class)},null,8,["class"]))]),default:o(()=>[b(" "+$(e(d)?t.$t("expenses.update_expense"):t.$t("expenses.save_expense")),1)]),_:1},8,["loading"])])]),_:1})]),_:1})],40,Se)]),_:1})],64)}}};export{Ge as default};
var ce=Object.defineProperty;var E=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var F=(_,s,c)=>s in _?ce(_,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):_[s]=c,G=(_,s)=>{for(var c in s||(s={}))de.call(s,c)&&F(_,c,s[c]);if(E)for(var c of E(s))ye.call(s,c)&&F(_,c,s[c]);return _};import{G as pe,aN as _e,ah as fe,J as ve,B as M,a0 as Pe,k as C,L as I,M as w,aX as ge,O as be,aP as Be,T as $e,a7 as he,b1 as Ie,r as m,o as N,e as Se,f as o,w as l,h as S,u as e,l as R,m as L,j as T,i as q,t as g,x as Ce,U as Ve,F as Me}from"./vendor.01d0adc5.js";import{_ as we}from"./ExchangeRateConverter.7d8c4309.js";import{u as qe,l as Ne,m as je,b as ke,c as Ue,i as xe,d as De}from"./main.75722495.js";import{u as Ae}from"./payment.5c57bec3.js";import{_ as Ee}from"./SelectNotePopup.781ad74a.js";import{_ as Fe}from"./CreateCustomFields.a3a572c4.js";import{_ as Ge}from"./PaymentModeModal.9b5fc610.js";import"./exchange-rate.dffa79b6.js";import"./NoteModal.f6d01f84.js";const Re=["onSubmit"],Le={class:"absolute left-3.5"},Te={class:"relative w-full"},ze={class:"relative mt-6"},He={class:"z-20 float-right text-sm font-semibold leading-5 text-primary-400"},Je={class:"mb-4 text-sm font-medium text-gray-800"},nt={setup(_){const s=pe(),c=_e(),t=Ae();qe();const z=Ne();je(),ke();const H=Ue(),j=xe();De();const k=fe("utils"),{t:p}=ve();let b=M(!1),V=M(!1),f=M([]);const v=M(null),U="newEstimate",J=Pe(["customer","company","customerCustom","payment","paymentCustom"]),$=C({get:()=>t.currentPayment.amount/100,set:a=>{t.currentPayment.amount=Math.round(a*100)}}),u=C(()=>t.isFetchingInitialData),d=C(()=>s.name==="payments.edit"),x=C(()=>d.value?p("payments.edit_payment"):p("payments.new_payment")),O=C(()=>({currentPayment:{customer_id:{required:I.withMessage(p("validation.required"),w)},payment_date:{required:I.withMessage(p("validation.required"),w)},amount:{required:I.withMessage(p("validation.required"),w),between:I.withMessage(p("validation.payment_greater_than_due_amount"),ge(0,t.currentPayment.maxPayableAmount))},exchange_rate:{required:be(function(){return I.withMessage(p("validation.required"),w),t.showExchangeRate}),decimal:I.withMessage(p("validation.valid_exchange_rate"),Be)}}})),i=$e(O,t,{$scope:U});he(()=>{t.currentPayment.customer_id&&Y(t.currentPayment.customer_id),s.query.customer&&(t.currentPayment.customer_id=s.query.customer)}),t.resetCurrentPayment(),s.query.customer&&(t.currentPayment.customer_id=s.query.customer),t.fetchPaymentInitialData(d.value),s.params.id&&!d.value&&Q();async function X(){H.openModal({title:p("settings.payment_modes.add_payment_mode"),componentName:"PaymentModeModal"})}function K(a){t.currentPayment.notes=""+a.notes}async function Q(){var n;let a=await j.fetchInvoice((n=s==null?void 0:s.params)==null?void 0:n.id);t.currentPayment.customer_id=a.data.data.customer.id,t.currentPayment.invoice_id=a.data.data.id}async function W(a){a&&(v.value=f.value.find(n=>n.id===a),$.value=v.value.due_amount/100,t.currentPayment.maxPayableAmount=v.value.due_amount)}function Y(a){if(a){let n={customer_id:a,status:"DUE",limit:"all"};d.value&&(n.status=""),V.value=!0,Promise.all([j.fetchInvoices(n),z.fetchCustomer(a)]).then(async([y,B])=>{y&&(f.value=[...y.data.data]),B&&B.data&&(t.currentPayment.selectedCustomer=B.data.data,t.currentPayment.customer=B.data.data,t.currentPayment.currency=B.data.data.currency),t.currentPayment.invoice_id&&(v.value=f.value.find(P=>P.id===t.currentPayment.invoice_id),t.currentPayment.maxPayableAmount=v.value.due_amount+t.currentPayment.amount,$.value===0&&($.value=v.value.due_amount/100)),d.value&&(f.value=f.value.filter(P=>P.due_amount>0||P.id==t.currentPayment.invoice_id)),V.value=!1}).catch(y=>{V.value=!1,console.error(y,"error")})}}Ie(()=>{t.resetCurrentPayment(),f.value=[]});async function Z(){if(i.value.$touch(),i.value.$invalid)return!1;b.value=!0;let a=G({},t.currentPayment),n=null;try{n=await(d.value?t.updatePayment:t.addPayment)(a),c.push(`/admin/payments/${n.data.data.id}/view`)}catch{b.value=!1}}function ee(a){let n={userId:a};s.params.id&&(n.model_id=s.params.id),t.currentPayment.invoice_id=v.value=null,t.currentPayment.amount=0,f.value=[],t.getNextNumber(n,!0)}return(a,n)=>{const y=m("BaseBreadcrumbItem"),B=m("BaseBreadcrumb"),P=m("BaseIcon"),D=m("BaseButton"),te=m("BasePageHeader"),ae=m("BaseDatePicker"),h=m("BaseInputGroup"),ne=m("BaseInput"),oe=m("BaseCustomerSelectInput"),A=m("BaseMultiselect"),re=m("BaseMoney"),se=m("BaseSelectAction"),le=m("BaseInputGrid"),ue=m("BaseCustomInput"),me=m("BaseCard"),ie=m("BasePage");return N(),Se(Me,null,[o(Ge),o(ie,{class:"relative payment-create"},{default:l(()=>[S("form",{action:"",onSubmit:Ve(Z,["prevent"])},[o(te,{title:e(x),class:"mb-5"},{actions:l(()=>[o(D,{loading:e(b),disabled:e(b),variant:"primary",type:"submit",class:"hidden sm:flex"},{left:l(r=>[e(b)?T("",!0):(N(),R(P,{key:0,name:"SaveIcon",class:L(r.class)},null,8,["class"]))]),default:l(()=>[q(" "+g(e(d)?a.$t("payments.update_payment"):a.$t("payments.save_payment")),1)]),_:1},8,["loading","disabled"])]),default:l(()=>[o(B,null,{default:l(()=>[o(y,{title:a.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),o(y,{title:a.$tc("payments.payment",2),to:"/admin/payments"},null,8,["title"]),o(y,{title:e(x),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),o(me,null,{default:l(()=>[o(le,null,{default:l(()=>[o(h,{label:a.$t("payments.date"),"content-loading":e(u),required:"",error:e(i).currentPayment.payment_date.$error&&e(i).currentPayment.payment_date.$errors[0].$message},{default:l(()=>[o(ae,{modelValue:e(t).currentPayment.payment_date,"onUpdate:modelValue":[n[0]||(n[0]=r=>e(t).currentPayment.payment_date=r),n[1]||(n[1]=r=>e(i).currentPayment.payment_date.$touch())],"content-loading":e(u),"calendar-button":!0,"calendar-button-icon":"calendar",invalid:e(i).currentPayment.payment_date.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),o(h,{label:a.$t("payments.payment_number"),"content-loading":e(u),required:""},{default:l(()=>[o(ne,{modelValue:e(t).currentPayment.payment_number,"onUpdate:modelValue":n[2]||(n[2]=r=>e(t).currentPayment.payment_number=r),"content-loading":e(u)},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),o(h,{label:a.$t("payments.customer"),error:e(i).currentPayment.customer_id.$error&&e(i).currentPayment.customer_id.$errors[0].$message,"content-loading":e(u),required:""},{default:l(()=>[o(oe,{modelValue:e(t).currentPayment.customer_id,"onUpdate:modelValue":[n[3]||(n[3]=r=>e(t).currentPayment.customer_id=r),n[4]||(n[4]=r=>ee(e(t).currentPayment.customer_id))],"content-loading":e(u),invalid:e(i).currentPayment.customer_id.$error,placeholder:a.$t("customers.select_a_customer"),"fetch-all":e(d),"show-action":""},null,8,["modelValue","content-loading","invalid","placeholder","fetch-all"])]),_:1},8,["label","error","content-loading"]),o(h,{"content-loading":e(u),label:a.$t("payments.invoice"),"help-text":v.value?`Due Amount: ${e(t).currentPayment.maxPayableAmount/100}`:""},{default:l(()=>[o(A,{modelValue:e(t).currentPayment.invoice_id,"onUpdate:modelValue":n[5]||(n[5]=r=>e(t).currentPayment.invoice_id=r),"content-loading":e(u),"value-prop":"id","track-by":"invoice_number",label:"invoice_number",options:e(f),loading:e(V),placeholder:a.$t("invoices.select_invoice"),onSelect:W},{singlelabel:l(({value:r})=>[S("div",Le,g(r.invoice_number)+" ("+g(e(k).formatMoney(r.total,r.customer.currency))+") ",1)]),option:l(({option:r})=>[q(g(r.invoice_number)+" ("+g(e(k).formatMoney(r.total,r.customer.currency))+") ",1)]),_:1},8,["modelValue","content-loading","options","loading","placeholder"])]),_:1},8,["content-loading","label","help-text"]),o(h,{label:a.$t("payments.amount"),"content-loading":e(u),error:e(i).currentPayment.amount.$error&&e(i).currentPayment.amount.$errors[0].$message,required:""},{default:l(()=>[S("div",Te,[o(re,{key:e(t).currentPayment.currency,modelValue:e($),"onUpdate:modelValue":[n[6]||(n[6]=r=>Ce($)?$.value=r:null),n[7]||(n[7]=r=>e(i).currentPayment.amount.$touch())],currency:e(t).currentPayment.currency,"content-loading":e(u),invalid:e(i).currentPayment.amount.$error},null,8,["modelValue","currency","content-loading","invalid"])])]),_:1},8,["label","content-loading","error"]),o(h,{"content-loading":e(u),label:a.$t("payments.payment_mode")},{default:l(()=>[o(A,{modelValue:e(t).currentPayment.payment_method_id,"onUpdate:modelValue":n[8]||(n[8]=r=>e(t).currentPayment.payment_method_id=r),"content-loading":e(u),label:"name","value-prop":"id","track-by":"name",options:e(t).paymentModes,placeholder:a.$t("payments.select_payment_mode"),searchable:""},{action:l(()=>[o(se,{onClick:X},{default:l(()=>[o(P,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),q(" "+g(a.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),_:1},8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),o(we,{store:e(t),"store-prop":"currentPayment",v:e(i).currentPayment,"is-loading":e(u),"is-edit":e(d),"customer-currency":e(t).currentPayment.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])]),_:1}),o(Fe,{type:"Payment","is-edit":e(d),"is-loading":e(u),store:e(t),"store-prop":"currentPayment","custom-field-scope":U,class:"mt-6"},null,8,["is-edit","is-loading","store"]),S("div",ze,[S("div",He,[o(Ee,{type:"Payment",onSelect:K})]),S("label",Je,g(a.$t("estimates.notes")),1),o(ue,{modelValue:e(t).currentPayment.notes,"onUpdate:modelValue":n[9]||(n[9]=r=>e(t).currentPayment.notes=r),"content-loading":e(u),fields:e(J),class:"mt-1"},null,8,["modelValue","content-loading","fields"])]),o(D,{loading:e(b),"content-loading":e(u),variant:"primary",type:"submit",class:"flex justify-center w-full mt-4 sm:hidden md:hidden"},{left:l(r=>[e(b)?T("",!0):(N(),R(P,{key:0,name:"SaveIcon",class:L(r.class)},null,8,["class"]))]),default:l(()=>[q(" "+g(e(d)?a.$t("payments.update_payment"):a.$t("payments.save_payment")),1)]),_:1},8,["loading","content-loading"])]),_:1})],40,Re)]),_:1})],64)}}};export{nt as default};
var oe=Object.defineProperty,se=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var P=(u,e,r)=>e in u?oe(u,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[e]=r,b=(u,e)=>{for(var r in e||(e={}))re.call(e,r)&&P(u,r,e[r]);if(N)for(var r of N(e))ie.call(e,r)&&P(u,r,e[r]);return u},h=(u,e)=>se(u,le(e));import{J as me,G as ue,aN as ce,B as T,k as p,L as x,M as de,N as pe,S as _e,T as ge,r as s,o as M,l as w,w as l,f as o,u as t,h as j,x as q,i as E,t as G,j as L,m as Ie,U as fe}from"./vendor.01d0adc5.js";import{p as ve,q as Be,c as be,b as $e,e as ye,g as Ve}from"./main.75722495.js";import{_ as Se}from"./ItemUnitModal.01494bfb.js";const he=["onSubmit"],Ue={setup(u){const e=ve(),r=Be(),$=be(),z=$e(),{t:_}=me(),y=ue(),A=ce(),D=ye(),I=T(!1),V=T(z.selectedCompanySettings.tax_per_item);let i=T(!1);e.$reset(),J();const v=p({get:()=>e.currentItem.price/100,set:n=>{e.currentItem.price=Math.round(n*100)}}),S=p({get:()=>{var n,a;return(a=(n=e==null?void 0:e.currentItem)==null?void 0:n.taxes)==null?void 0:a.map(d=>{if(d)return h(b({},d),{tax_type_id:d.id,tax_name:d.name+" ("+d.percent+"%)"})})},set:n=>{e.currentItem.taxes=n}}),B=p(()=>y.name==="items.edit"),U=p(()=>B.value?_("items.edit_item"):_("items.new_item")),R=p(()=>r.taxTypes.map(n=>h(b({},n),{tax_type_id:n.id,tax_name:n.name+" ("+n.percent+"%)"}))),Y=p(()=>V.value==="YES"),H=p(()=>({currentItem:{name:{required:x.withMessage(_("validation.required"),de),minLength:x.withMessage(_("validation.name_min_length",{count:3}),pe(3))},description:{maxLength:x.withMessage(_("validation.description_maxlength"),_e(65e3))}}})),c=ge(H,e);async function F(){$.openModal({title:_("settings.customization.items.add_item_unit"),componentName:"ItemUnitModal",size:"sm"})}async function J(){if(i.value=!0,await e.fetchItemUnits({limit:"all"}),D.hasAbilities(Ve.VIEW_TAX_TYPE)&&await r.fetchTaxTypes({limit:"all"}),B.value){let n=y.params.id;await e.fetchItem(n),e.currentItem.tax_per_item===1?V.value="YES":V.value="NO"}i.value=!1}async function O(){if(c.value.currentItem.$touch(),c.value.currentItem.$invalid)return!1;I.value=!0;try{let a=b({id:y.params.id},e.currentItem);e.currentItem&&e.currentItem.taxes&&(a.taxes=e.currentItem.taxes.map(g=>({tax_type_id:g.tax_type_id,amount:v.value*g.percent,percent:g.percent,name:g.name,collective_tax:0}))),await(B.value?e.updateItem:e.addItem)(a),I.value=!1,A.push("/admin/items"),n()}catch{I.value=!1;return}function n(){$.closeModal(),setTimeout(()=>{e.resetCurrentItem(),$.$reset(),c.value.$reset()},300)}}return(n,a)=>{const d=s("BaseBreadcrumbItem"),g=s("BaseBreadcrumb"),W=s("BasePageHeader"),X=s("BaseInput"),f=s("BaseInputGroup"),K=s("BaseMoney"),C=s("BaseIcon"),Q=s("BaseSelectAction"),k=s("BaseMultiselect"),Z=s("BaseTextarea"),ee=s("BaseButton"),te=s("BaseInputGrid"),ne=s("BaseCard"),ae=s("BasePage");return M(),w(ae,null,{default:l(()=>[o(W,{title:t(U)},{default:l(()=>[o(g,null,{default:l(()=>[o(d,{title:n.$t("general.home"),to:"dashboard"},null,8,["title"]),o(d,{title:n.$tc("items.item",2),to:"/admin/items"},null,8,["title"]),o(d,{title:t(U),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),o(Se),j("form",{class:"grid lg:grid-cols-2 mt-6",action:"submit",onSubmit:fe(O,["prevent"])},[o(ne,{class:"w-full"},{default:l(()=>[o(te,{layout:"one-column"},{default:l(()=>[o(f,{label:n.$t("items.name"),"content-loading":t(i),required:"",error:t(c).currentItem.name.$error&&t(c).currentItem.name.$errors[0].$message},{default:l(()=>[o(X,{modelValue:t(e).currentItem.name,"onUpdate:modelValue":a[0]||(a[0]=m=>t(e).currentItem.name=m),"content-loading":t(i),invalid:t(c).currentItem.name.$error,onInput:a[1]||(a[1]=m=>t(c).currentItem.name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),o(f,{label:n.$t("items.price"),"content-loading":t(i)},{default:l(()=>[o(K,{modelValue:t(v),"onUpdate:modelValue":a[2]||(a[2]=m=>q(v)?v.value=m:null),"content-loading":t(i)},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),o(f,{"content-loading":t(i),label:n.$t("items.unit")},{default:l(()=>[o(k,{modelValue:t(e).currentItem.unit_id,"onUpdate:modelValue":a[3]||(a[3]=m=>t(e).currentItem.unit_id=m),"content-loading":t(i),label:"name",options:t(e).itemUnits,"value-prop":"id","can-deselect":!1,"can-clear":!1,placeholder:n.$t("items.select_a_unit"),searchable:"","track-by":"name"},{action:l(()=>[o(Q,{onClick:F},{default:l(()=>[o(C,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),E(" "+G(n.$t("settings.customization.items.add_item_unit")),1)]),_:1})]),_:1},8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),t(Y)?(M(),w(f,{key:0,label:n.$t("items.taxes"),"content-loading":t(i)},{default:l(()=>[o(k,{modelValue:t(S),"onUpdate:modelValue":a[4]||(a[4]=m=>q(S)?S.value=m:null),"content-loading":t(i),options:t(R),mode:"tags",label:"tax_name",class:"w-full","value-prop":"id","can-deselect":!1,"can-clear":!1,searchable:"","track-by":"tax_name",object:""},null,8,["modelValue","content-loading","options"])]),_:1},8,["label","content-loading"])):L("",!0),o(f,{label:n.$t("items.description"),"content-loading":t(i),error:t(c).currentItem.description.$error&&t(c).currentItem.description.$errors[0].$message},{default:l(()=>[o(Z,{modelValue:t(e).currentItem.description,"onUpdate:modelValue":a[5]||(a[5]=m=>t(e).currentItem.description=m),"content-loading":t(i),name:"description",row:2,rows:"2",onInput:a[6]||(a[6]=m=>t(c).currentItem.description.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),j("div",null,[o(ee,{"content-loading":t(i),type:"submit",loading:I.value},{left:l(m=>[I.value?L("",!0):(M(),w(C,{key:0,name:"SaveIcon",class:Ie(m.class)},null,8,["class"]))]),default:l(()=>[E(" "+G(t(B)?n.$t("items.update_item"):n.$t("items.save_item")),1)]),_:1},8,["content-loading","loading"])])]),_:1})]),_:1})],40,he)]),_:1})}}};export{Ue as default};
var I=Object.defineProperty,g=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var _=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))b.call(t,r)&&_(e,r,t[r]);if(y)for(var r of y(t))h.call(t,r)&&_(e,r,t[r]);return e},v=(e,t)=>g(e,q(t));import{J as j,L as w,O as V,T as L,k as T,aE as F,r as E,o as n,l as m,w as P,aj as O,u as c,_ as S,C as x,e as D,f as A,F as R,y as k,j as B,I as C}from"./vendor.01d0adc5.js";import{o as i,m as Y}from"./main.75722495.js";function $(e){switch(e){case"./types/DateTimeType.vue":return i(()=>import("./DateTimeType.164ef007.js"),["assets/DateTimeType.164ef007.js","assets/vendor.01d0adc5.js"]);case"./types/DateType.vue":return i(()=>import("./DateType.757171f6.js"),["assets/DateType.757171f6.js","assets/vendor.01d0adc5.js"]);case"./types/DropdownType.vue":return i(()=>import("./DropdownType.631322dc.js"),["assets/DropdownType.631322dc.js","assets/vendor.01d0adc5.js"]);case"./types/InputType.vue":return i(()=>import("./InputType.4e1e4da6.js"),["assets/InputType.4e1e4da6.js","assets/vendor.01d0adc5.js"]);case"./types/NumberType.vue":return i(()=>import("./NumberType.137b13f5.js"),["assets/NumberType.137b13f5.js","assets/vendor.01d0adc5.js"]);case"./types/PhoneType.vue":return i(()=>import("./PhoneType.57e436b9.js"),["assets/PhoneType.57e436b9.js","assets/vendor.01d0adc5.js"]);case"./types/SwitchType.vue":return i(()=>import("./SwitchType.59d9fde0.js"),["assets/SwitchType.59d9fde0.js","assets/vendor.01d0adc5.js"]);case"./types/TextAreaType.vue":return i(()=>import("./TextAreaType.ebc60805.js"),["assets/TextAreaType.ebc60805.js","assets/vendor.01d0adc5.js"]);case"./types/TimeType.vue":return i(()=>import("./TimeType.a6077fcb.js"),["assets/TimeType.a6077fcb.js","assets/vendor.01d0adc5.js"]);case"./types/UrlType.vue":return i(()=>import("./UrlType.4a23df64.js"),["assets/UrlType.4a23df64.js","assets/vendor.01d0adc5.js"]);default:return new Promise(function(t,r){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const M={props:{field:{type:Object,required:!0},customFieldScope:{type:String,required:!0},index:{type:Number,required:!0},store:{type:Object,required:!0},storeProp:{type:String,required:!0}},setup(e){const t=e,{t:r}=j(),d={value:{required:w.withMessage(r("validation.required"),V(t.field.is_required))}},a=L(d,T(()=>t.field),{$scope:t.customFieldScope}),o=T(()=>t.field.type?F(()=>$(`./types/${t.field.type}Type.vue`)):!1);return(u,s)=>{const l=E("BaseInputGroup");return n(),m(l,{label:e.field.label,required:!!e.field.is_required,error:c(a).value.$error&&c(a).value.$errors[0].$message},{default:P(()=>[(n(),m(O(c(o)),{modelValue:e.field.value,"onUpdate:modelValue":s[0]||(s[0]=p=>e.field.value=p),options:e.field.options,invalid:c(a).value.$error,placeholder:e.field.placeholder},null,8,["modelValue","options","invalid","placeholder"]))]),_:1},8,["label","required","error"])}}},N={key:0},J={props:{store:{type:Object,required:!0},storeProp:{type:String,required:!0},isEdit:{type:Boolean,default:!1},type:{type:String,default:null},gridLayout:{type:String,default:"two-column"},isLoading:{type:Boolean,default:null},customFieldScope:{type:String,required:!0}},setup(e){const t=e,r=Y();a();function d(){t.isEdit&&t.store[t.storeProp].fields.forEach(o=>{const u=t.store[t.storeProp].customFields.findIndex(s=>s.id===o.custom_field_id);if(u>-1){let s=o.default_answer;s&&o.custom_field.type==="DateTime"&&(s=C(o.default_answer,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD HH:mm")),t.store[t.storeProp].customFields[u]=v(f({},o),{id:o.custom_field_id,value:s,label:o.custom_field.label,options:o.custom_field.options,is_required:o.custom_field.is_required,placeholder:o.custom_field.placeholder,order:o.custom_field.order})}})}async function a(){let u=(await r.fetchCustomFields({type:t.type,limit:"all"})).data.data;u.map(s=>s.value=s.default_answer),t.store[t.storeProp].customFields=S.sortBy(u,s=>s.order),d()}return x(()=>t.store[t.storeProp].fields,o=>{d()}),(o,u)=>{const s=E("BaseInputGrid");return e.store[e.storeProp]&&e.store[e.storeProp].customFields.length>0&&!e.isLoading?(n(),D("div",N,[A(s,{layout:e.gridLayout},{default:P(()=>[(n(!0),D(R,null,k(e.store[e.storeProp].customFields,(l,p)=>(n(),m(M,{key:l.id,"custom-field-scope":e.customFieldScope,store:e.store,"store-prop":e.storeProp,index:p,field:l},null,8,["custom-field-scope","store","store-prop","index","field"]))),128))]),_:1},8,["layout"])])):B("",!0)}}};export{J as _};
var ie=Object.defineProperty;var W=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var Z=(m,n,e)=>n in m?ie(m,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[n]=e,ee=(m,n)=>{for(var e in n||(n={}))de.call(n,e)&&Z(m,e,n[e]);if(W)for(var e of W(n))me.call(n,e)&&Z(m,e,n[e]);return m};import{J as H,G as ce,ah as te,r as d,o as C,l as F,w as u,f as l,u as t,i as B,t as $,j as M,B as L,e as z,aY as pe,U as se,a0 as le,k as D,aE as _e,L as k,M as A,aT as fe,T as ye,h as O,x as oe,y as ve,m as G,F as Ce,aj as be,V as ge}from"./vendor.01d0adc5.js";import{j as Fe,u as Te,m as K,e as ae,c as Y,g as U,o as T}from"./main.75722495.js";const we={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(m){const n=m,e=Fe();Te();const{t:i}=H(),v=K();ce();const f=ae(),c=Y();te("utils");async function p(b){await v.fetchCustomField(b),c.openModal({title:i("settings.custom_fields.edit_custom_field"),componentName:"CustomFieldModal",size:"sm",data:b,refreshData:n.loadData})}async function V(b){e.openDialog({title:i("general.are_you_sure"),message:i("settings.custom_fields.custom_field_confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async g=>{g&&(await v.deleteCustomFields(b),n.loadData&&n.loadData())})}return(b,g)=>{const y=d("BaseIcon"),I=d("BaseDropdownItem"),h=d("BaseDropdown");return C(),F(h,null,{activator:u(()=>[l(y,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"})]),default:u(()=>[t(f).hasAbilities(t(U).EDIT_CUSTOM_FIELDS)?(C(),F(I,{key:0,onClick:g[0]||(g[0]=o=>p(m.row.id))},{default:u(()=>[l(y,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),B(" "+$(b.$t("general.edit")),1)]),_:1})):M("",!0),t(f).hasAbilities(t(U).DELETE_CUSTOM_FIELDS)?(C(),F(I,{key:1,onClick:g[1]||(g[1]=o=>V(m.row.id))},{default:u(()=>[l(y,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),B(" "+$(b.$t("general.delete")),1)]),_:1})):M("",!0)]),_:1})}}},$e={class:"flex items-center mt-1"},Ie={emits:["onAdd"],setup(m,{emit:n}){const e=L(null);function i(){if(e.value==null||e.value==""||e.value==null)return!0;n("onAdd",e.value),e.value=null}return(v,f)=>{const c=d("BaseInput"),p=d("BaseIcon");return C(),z("div",$e,[l(c,{modelValue:e.value,"onUpdate:modelValue":f[0]||(f[0]=V=>e.value=V),type:"text",class:"w-full md:w-96",placeholder:v.$t("settings.custom_fields.press_enter_to_add"),onClick:i,onKeydown:pe(se(i,["prevent","stop"]),["enter"])},null,8,["modelValue","placeholder","onKeydown"]),l(p,{name:"PlusCircleIcon",class:"ml-1 text-primary-500 cursor-pointer",onClick:i})])}}};function he(m){switch(m){case"../../custom-fields/types/DateTimeType.vue":return T(()=>import("./DateTimeType.164ef007.js"),["assets/DateTimeType.164ef007.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/DateType.vue":return T(()=>import("./DateType.757171f6.js"),["assets/DateType.757171f6.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/DropdownType.vue":return T(()=>import("./DropdownType.631322dc.js"),["assets/DropdownType.631322dc.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/InputType.vue":return T(()=>import("./InputType.4e1e4da6.js"),["assets/InputType.4e1e4da6.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/NumberType.vue":return T(()=>import("./NumberType.137b13f5.js"),["assets/NumberType.137b13f5.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/PhoneType.vue":return T(()=>import("./PhoneType.57e436b9.js"),["assets/PhoneType.57e436b9.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/SwitchType.vue":return T(()=>import("./SwitchType.59d9fde0.js"),["assets/SwitchType.59d9fde0.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/TextAreaType.vue":return T(()=>import("./TextAreaType.ebc60805.js"),["assets/TextAreaType.ebc60805.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/TimeType.vue":return T(()=>import("./TimeType.a6077fcb.js"),["assets/TimeType.a6077fcb.js","assets/vendor.01d0adc5.js"]);case"../../custom-fields/types/UrlType.vue":return T(()=>import("./UrlType.4a23df64.js"),["assets/UrlType.4a23df64.js","assets/vendor.01d0adc5.js"]);default:return new Promise(function(n,e){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(e.bind(null,new Error("Unknown variable dynamic import: "+m)))})}}const Be={class:"flex justify-between w-full"},De=["onSubmit"],Ve={class:"overflow-y-auto max-h-[550px]"},Se={class:"px-4 md:px-8 py-8 overflow-y-auto sm:p-6"},Ee={class:"z-0 flex justify-end p-4 border-t border-solid border-gray-light border-modal-bg"},qe={setup(m){const n=Y(),e=K(),{t:i}=H();let v=L(!1);const f=le(["Customer","Invoice","Estimate","Expense","Payment"]),c=le([{label:"Text",value:"Input"},{label:"Textarea",value:"TextArea"},{label:"Phone",value:"Phone"},{label:"URL",value:"Url"},{label:"Number",value:"Number"},{label:"Select Field",value:"Dropdown"},{label:"Switch Toggle",value:"Switch"},{label:"Date",value:"Date"},{label:"Time",value:"Time"},{label:"Date & Time",value:"DateTime"}]);let p=L(c[0]);const V=D(()=>n.active&&n.componentName==="CustomFieldModal"),b=D(()=>p.value&&p.value.label==="Switch Toggle"),g=D(()=>p.value&&p.value.label==="Select Field"),y=D(()=>e.currentCustomField.type?_e(()=>he(`../../custom-fields/types/${e.currentCustomField.type}Type.vue`)):!1),I=D({get:()=>e.currentCustomField.is_required===1,set:s=>{const a=s?1:0;e.currentCustomField.is_required=a}}),h=D(()=>({currentCustomField:{type:{required:k.withMessage(i("validation.required"),A)},name:{required:k.withMessage(i("validation.required"),A)},label:{required:k.withMessage(i("validation.required"),A)},model_type:{required:k.withMessage(i("validation.required"),A)},order:{required:k.withMessage(i("validation.required"),A),numeric:k.withMessage(i("validation.numbers_only"),fe)},type:{required:k.withMessage(i("validation.required"),A)}}})),o=ye(h,D(()=>e));function S(){e.isEdit?p.value=c.find(s=>s.value==e.currentCustomField.type):(e.currentCustomField.model_type=f[0],e.currentCustomField.type=c[0].value,p.value=c[0])}async function P(){if(o.value.currentCustomField.$touch(),o.value.currentCustomField.$invalid)return!0;v.value=!0;let s=ee({},e.currentCustomField);if(e.currentCustomField.options&&(s.options=e.currentCustomField.options.map(E=>E.name)),s.type=="Time"&&typeof s.default_answer=="object"){let E=s&&s.default_answer&&s.default_answer.HH?s.default_answer.HH:null,q=s&&s.default_answer&&s.default_answer.mm?s.default_answer.mm:null;s&&s.default_answer&&s.default_answer.ss&&s.default_answer.ss,s.default_answer=`${E}:${q}`}await(e.isEdit?e.updateCustomField:e.addCustomField)(s),v.value=!1,n.refreshData&&n.refreshData(),R()}function x(s){e.currentCustomField.options=[{name:s},...e.currentCustomField.options]}function _(s){if(e.isEdit&&e.currentCustomField.in_use)return;e.currentCustomField.options[s].name===e.currentCustomField.default_answer&&(e.currentCustomField.default_answer=null),e.currentCustomField.options.splice(s,1)}function N(s){e.currentCustomField.type=s.value}function R(){n.closeModal(),setTimeout(()=>{e.resetCurrentCustomField(),o.value.$reset()},300)}return(s,a)=>{const E=d("BaseIcon"),q=d("BaseInput"),w=d("BaseInputGroup"),J=d("BaseMultiselect"),re=d("BaseSwitch"),ne=d("BaseInputGrid"),X=d("BaseButton"),ue=d("BaseModal");return C(),F(ue,{show:t(V),onOpen:S},{header:u(()=>[O("div",Be,[B($(t(n).title)+" ",1),l(E,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:R})])]),default:u(()=>[O("form",{action:"",onSubmit:se(P,["prevent"])},[O("div",Ve,[O("div",Se,[l(ne,{layout:"one-column"},{default:u(()=>[l(w,{label:s.$t("settings.custom_fields.name"),required:"",error:t(o).currentCustomField.name.$error&&t(o).currentCustomField.name.$errors[0].$message},{default:u(()=>[l(q,{ref:(r,j)=>{j.name=r},modelValue:t(e).currentCustomField.name,"onUpdate:modelValue":a[0]||(a[0]=r=>t(e).currentCustomField.name=r),invalid:t(o).currentCustomField.name.$error,onInput:a[1]||(a[1]=r=>t(o).currentCustomField.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),l(w,{label:s.$t("settings.custom_fields.model"),error:t(o).currentCustomField.model_type.$error&&t(o).currentCustomField.model_type.$errors[0].$message,"help-text":t(e).currentCustomField.in_use?s.$t("settings.custom_fields.model_in_use"):"",required:""},{default:u(()=>[l(J,{modelValue:t(e).currentCustomField.model_type,"onUpdate:modelValue":a[2]||(a[2]=r=>t(e).currentCustomField.model_type=r),options:t(f),"can-deselect":!1,invalid:t(o).currentCustomField.model_type.$error,searchable:!0,disabled:t(e).currentCustomField.in_use,onInput:a[3]||(a[3]=r=>t(o).currentCustomField.model_type.$touch())},null,8,["modelValue","options","invalid","disabled"])]),_:1},8,["label","error","help-text"]),l(w,{class:"flex items-center space-x-4",label:s.$t("settings.custom_fields.required")},{default:u(()=>[l(re,{modelValue:t(I),"onUpdate:modelValue":a[4]||(a[4]=r=>oe(I)?I.value=r:null)},null,8,["modelValue"])]),_:1},8,["label"]),l(w,{label:s.$t("settings.custom_fields.type"),error:t(o).currentCustomField.type.$error&&t(o).currentCustomField.type.$errors[0].$message,"help-text":t(e).currentCustomField.in_use?s.$t("settings.custom_fields.type_in_use"):"",required:""},{default:u(()=>[l(J,{modelValue:t(p),"onUpdate:modelValue":[a[5]||(a[5]=r=>oe(p)?p.value=r:p=r),N],options:t(c),invalid:t(o).currentCustomField.type.$error,disabled:t(e).currentCustomField.in_use,searchable:!0,"can-deselect":!1,object:""},null,8,["modelValue","options","invalid","disabled"])]),_:1},8,["label","error","help-text"]),l(w,{label:s.$t("settings.custom_fields.label"),required:"",error:t(o).currentCustomField.label.$error&&t(o).currentCustomField.label.$errors[0].$message},{default:u(()=>[l(q,{modelValue:t(e).currentCustomField.label,"onUpdate:modelValue":a[6]||(a[6]=r=>t(e).currentCustomField.label=r),invalid:t(o).currentCustomField.label.$error,onInput:a[7]||(a[7]=r=>t(o).currentCustomField.label.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(g)?(C(),F(w,{key:0,label:s.$t("settings.custom_fields.options")},{default:u(()=>[l(Ie,{onOnAdd:x}),(C(!0),z(Ce,null,ve(t(e).currentCustomField.options,(r,j)=>(C(),z("div",{key:j,class:"flex items-center mt-5"},[l(q,{modelValue:r.name,"onUpdate:modelValue":Q=>r.name=Q,class:"w-64"},null,8,["modelValue","onUpdate:modelValue"]),l(E,{name:"MinusCircleIcon",class:G(["ml-1 cursor-pointer",t(e).currentCustomField.in_use?"text-gray-300":"text-red-300"]),onClick:Q=>_(j)},null,8,["class","onClick"])]))),128))]),_:1},8,["label"])):M("",!0),l(w,{label:s.$t("settings.custom_fields.default_value"),class:"relative"},{default:u(()=>[(C(),F(be(t(y)),{modelValue:t(e).currentCustomField.default_answer,"onUpdate:modelValue":a[8]||(a[8]=r=>t(e).currentCustomField.default_answer=r),options:t(e).currentCustomField.options,"default-date-time":t(e).currentCustomField.dateTimeValue},null,8,["modelValue","options","default-date-time"]))]),_:1},8,["label"]),t(b)?M("",!0):(C(),F(w,{key:1,label:s.$t("settings.custom_fields.placeholder")},{default:u(()=>[l(q,{modelValue:t(e).currentCustomField.placeholder,"onUpdate:modelValue":a[9]||(a[9]=r=>t(e).currentCustomField.placeholder=r)},null,8,["modelValue"])]),_:1},8,["label"])),l(w,{label:s.$t("settings.custom_fields.order"),error:t(o).currentCustomField.order.$error&&t(o).currentCustomField.order.$errors[0].$message,required:""},{default:u(()=>[l(q,{modelValue:t(e).currentCustomField.order,"onUpdate:modelValue":a[10]||(a[10]=r=>t(e).currentCustomField.order=r),type:"number",invalid:t(o).currentCustomField.order.$error,onInput:a[11]||(a[11]=r=>t(o).currentCustomField.order.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})])]),O("div",Ee,[l(X,{class:"mr-3",type:"button",variant:"primary-outline",onClick:R},{default:u(()=>[B($(s.$t("general.cancel")),1)]),_:1}),l(X,{variant:"primary",loading:t(v),disabled:t(v),type:"submit"},{left:u(r=>[t(v)?M("",!0):(C(),F(E,{key:0,class:G(r.class),name:"SaveIcon"},null,8,["class"]))]),default:u(()=>[B(" "+$(t(e).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,De)]),_:1},8,["show"])}}},ke={class:"text-xs text-gray-500"},Ue={setup(m){const n=Y(),e=K(),i=ae(),v=te("utils"),{t:f}=H(),c=L(null),p=D(()=>[{key:"name",label:f("settings.custom_fields.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"model_type",label:f("settings.custom_fields.model")},{key:"type",label:f("settings.custom_fields.type")},{key:"is_required",label:f("settings.custom_fields.required")},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function V({page:y,filter:I,sort:h}){let o={orderByField:h.fieldName||"created_at",orderBy:h.order||"desc",page:y},S=await e.fetchCustomFields(o);return{data:S.data.data,pagination:{totalPages:S.data.meta.last_page,currentPage:y,limit:5,totalCount:S.data.meta.total}}}function b(){n.openModal({title:f("settings.custom_fields.add_custom_field"),componentName:"CustomFieldModal",size:"sm",refreshData:c.value&&c.value.refresh})}async function g(){c.value&&c.value.refresh()}return(y,I)=>{const h=d("BaseIcon"),o=d("BaseButton"),S=d("BaseBadge"),P=d("BaseTable"),x=d("BaseSettingCard");return C(),F(x,{title:y.$t("settings.menu_title.custom_fields"),description:y.$t("settings.custom_fields.section_description")},{action:u(()=>[t(i).hasAbilities(t(U).CREATE_CUSTOM_FIELDS)?(C(),F(o,{key:0,variant:"primary-outline",onClick:b},{left:u(_=>[l(h,{class:G(_.class),name:"PlusIcon"},null,8,["class"]),B(" "+$(y.$t("settings.custom_fields.add_custom_field")),1)]),_:1})):M("",!0)]),default:u(()=>[l(qe),l(P,{ref:(_,N)=>{N.table=_,c.value=_},data:V,columns:t(p),class:"mt-16"},ge({"cell-name":u(({row:_})=>[B($(_.data.name)+" ",1),O("span",ke," ("+$(_.data.slug)+")",1)]),"cell-is_required":u(({row:_})=>[l(S,{"bg-color":t(v).getBadgeStatusColor(_.data.is_required?"YES":"NO").bgColor,color:t(v).getBadgeStatusColor(_.data.is_required?"YES":"NO").color},{default:u(()=>[B($(_.data.is_required?y.$t("settings.custom_fields.yes"):y.$t("settings.custom_fields.no").replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),_:2},[t(i).hasAbilities([t(U).DELETE_CUSTOM_FIELDS,t(U).EDIT_CUSTOM_FIELDS])?{name:"cell-actions",fn:u(({row:_})=>[l(we,{row:_.data,table:c.value,"load-data":g},null,8,["row","table"])])}:void 0]),1032,["columns"])]),_:1},8,["title","description"])}}};export{Ue as default};
import{l as S,u as C,j as b,e as x,g}from"./main.75722495.js";import{J as E,G as j,aN as T,ah as N,r as l,o as a,l as s,w as t,u as e,f as n,i as p,t as f,j as y}from"./vendor.01d0adc5.js";const V={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(i){const w=i,_=S();C();const v=b(),m=x(),{t:u}=E(),h=j();T(),N("utils");function B(r){v.openDialog({title:u("general.are_you_sure"),message:u("customers.confirm_delete",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(c=>{c&&_.deleteCustomer({ids:[r]}).then(o=>{if(o.data.success)return w.loadData&&w.loadData(),!0})})}return(r,c)=>{const o=l("BaseIcon"),I=l("BaseButton"),d=l("BaseDropdownItem"),D=l("router-link"),k=l("BaseDropdown");return a(),s(k,{"content-loading":e(_).isFetchingViewData},{activator:t(()=>[e(h).name==="customers.view"?(a(),s(I,{key:0,variant:"primary"},{default:t(()=>[n(o,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(a(),s(o,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[e(m).hasAbilities(e(g).EDIT_CUSTOMER)?(a(),s(D,{key:0,to:`/admin/customers/${i.row.id}/edit`},{default:t(()=>[n(d,null,{default:t(()=>[n(o,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+f(r.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):y("",!0),e(h).name!=="customers.view"&&e(m).hasAbilities(e(g).VIEW_CUSTOMER)?(a(),s(D,{key:1,to:`customers/${i.row.id}/view`},{default:t(()=>[n(d,null,{default:t(()=>[n(o,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+f(r.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):y("",!0),e(m).hasAbilities(e(g).DELETE_CUSTOMER)?(a(),s(d,{key:2,onClick:c[0]||(c[0]=$=>B(i.row.id))},{default:t(()=>[n(o,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+f(r.$t("general.delete")),1)]),_:1})):y("",!0)]),_:1},8,["content-loading"])}}};export{V as _};
import{G as E,J as G,B as F,k as h,L as p,M as C,N as k,Q as L,P,T as R,r as c,o as g,e as D,f as u,w as i,h as $,t as I,u as e,x as _,l as y,m as A,j as O,i as T,U as z}from"./vendor.01d0adc5.js";import{a as J,u as Q}from"./global.08b6a984.js";import"./auth.4644c288.js";import"./main.75722495.js";const H=["onSubmit"],K={class:"font-bold text-left"},W={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},X={class:"grid gap-6 sm:grid-col-1 md:grid-cols-2 mt-6"},Y=$("span",null,null,-1),oe={setup(Z){const r=J();Q(),E();const{t:m,tm:S}=G();let v=F([]),d=F(!1),B=F(null),n=F(!1),l=F(!1);r.userForm.avatar&&v.value.push({image:r.userForm.avatar});const U=h(()=>({userForm:{name:{required:p.withMessage(m("validation.required"),C),minLength:p.withMessage(m("validation.name_min_length",{count:3}),k(3))},email:{required:p.withMessage(m("validation.required"),C),email:p.withMessage(m("validation.email_incorrect"),L)},password:{minLength:p.withMessage(m("validation.password_min_length",{count:8}),k(8))},confirm_password:{sameAsPassword:p.withMessage(m("validation.password_incorrect"),P(r.userForm.password))}}})),o=R(U,h(()=>r));function x(t,s){B.value=s}function M(){B.value=null}function q(){if(o.value.userForm.$touch(),o.value.userForm.$invalid)return!0;d.value=!0;let t=new FormData;t.append("name",r.userForm.name),t.append("email",r.userForm.email),r.userForm.password!=null&&r.userForm.password!==void 0&&r.userForm.password!==""&&t.append("password",r.userForm.password),B.value&&t.append("customer_avatar",B.value),r.updateCurrentUser({data:t,message:S("settings.account_settings.updated_message")}).then(s=>{s.data.data&&(d.value=!1,r.$patch(V=>{V.userForm.password="",V.userForm.confirm_password=""}))}).catch(s=>{d.value=!1})}return(t,s)=>{const V=c("BaseFileUploader"),f=c("BaseInputGroup"),b=c("BaseInput"),w=c("BaseIcon"),N=c("BaseButton"),j=c("BaseCard");return g(),D("form",{class:"relative h-full mt-4",onSubmit:z(q,["prevent"])},[u(j,null,{default:i(()=>[$("div",null,[$("h6",K,I(t.$t("settings.account_settings.account_settings")),1),$("p",W,I(t.$t("settings.account_settings.section_description")),1)]),$("div",X,[u(f,{label:t.$tc("settings.account_settings.profile_picture")},{default:i(()=>[u(V,{modelValue:e(v),"onUpdate:modelValue":s[0]||(s[0]=a=>_(v)?v.value=a:v=a),avatar:!0,accept:"image/*",onChange:x,onRemove:M},null,8,["modelValue"])]),_:1},8,["label"]),Y,u(f,{label:t.$tc("settings.account_settings.name"),error:e(o).userForm.name.$error&&e(o).userForm.name.$errors[0].$message,required:""},{default:i(()=>[u(b,{modelValue:e(r).userForm.name,"onUpdate:modelValue":s[1]||(s[1]=a=>e(r).userForm.name=a),invalid:e(o).userForm.name.$error,onInput:s[2]||(s[2]=a=>e(o).userForm.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(f,{label:t.$tc("settings.account_settings.email"),error:e(o).userForm.email.$error&&e(o).userForm.email.$errors[0].$message,required:""},{default:i(()=>[u(b,{modelValue:e(r).userForm.email,"onUpdate:modelValue":s[3]||(s[3]=a=>e(r).userForm.email=a),invalid:e(o).userForm.email.$error,onInput:s[4]||(s[4]=a=>e(o).userForm.email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(f,{error:e(o).userForm.password.$error&&e(o).userForm.password.$errors[0].$message,label:t.$tc("settings.account_settings.password")},{default:i(()=>[u(b,{modelValue:e(r).userForm.password,"onUpdate:modelValue":s[7]||(s[7]=a=>e(r).userForm.password=a),type:e(n)?"text":"password",invalid:e(o).userForm.password.$error,onInput:s[8]||(s[8]=a=>e(o).userForm.password.$touch())},{right:i(()=>[e(n)?(g(),y(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[5]||(s[5]=a=>_(n)?n.value=!e(n):n=!e(n))})):(g(),y(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[6]||(s[6]=a=>_(n)?n.value=!e(n):n=!e(n))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["error","label"]),u(f,{label:t.$tc("settings.account_settings.confirm_password"),error:e(o).userForm.confirm_password.$error&&e(o).userForm.confirm_password.$errors[0].$message},{default:i(()=>[u(b,{modelValue:e(r).userForm.confirm_password,"onUpdate:modelValue":s[11]||(s[11]=a=>e(r).userForm.confirm_password=a),type:e(l)?"text":"password",invalid:e(o).userForm.confirm_password.$error,onInput:s[12]||(s[12]=a=>e(o).userForm.confirm_password.$touch())},{right:i(()=>[e(l)?(g(),y(w,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[9]||(s[9]=a=>_(l)?l.value=!e(l):l=!e(l))})):(g(),y(w,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[10]||(s[10]=a=>_(l)?l.value=!e(l):l=!e(l))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["label","error"])]),u(N,{loading:e(d),disabled:e(d),class:"mt-6"},{left:i(a=>[e(d)?O("",!0):(g(),y(w,{key:0,name:"SaveIcon",class:A(a.class)},null,8,["class"]))]),default:i(()=>[T(" "+I(t.$t("general.save")),1)]),_:1},8,["loading","disabled"])]),_:1})],40,H)}}};export{oe as default};
var ut=Object.defineProperty,rt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var st=(v,o,i)=>o in v?ut(v,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):v[o]=i,x=(v,o)=>{for(var i in o||(o={}))ct.call(o,i)&&st(v,i,o[i]);if(et)for(var i of et(o))_t.call(o,i)&&st(v,i,o[i]);return v},W=(v,o)=>rt(v,dt(o));import{b as N,d as Z,i as pt,k as gt,p as yt,c as ft,j as vt}from"./main.75722495.js";import{J as j,B as z,k as F,C as bt,H as at,$ as St,r as d,o as $,e as D,h as c,t as b,f as t,w as r,U as Y,m as G,i as k,F as L,y as $t,l as E,u as e,j as R,ah as M,a0 as T,L as X,O as nt,aT as it,T as ot,x as H}from"./vendor.01d0adc5.js";import{D as Bt,d as ht}from"./DragIcon.213b1d78.js";import{u as zt}from"./payment.5c57bec3.js";import{_ as Vt}from"./ItemUnitModal.01494bfb.js";const It={class:"text-gray-900 text-lg font-medium"},xt={class:"mt-1 text-sm text-gray-500"},wt={class:"overflow-x-auto"},Ct={class:"w-full mt-6 table-fixed"},Dt=c("colgroup",null,[c("col",{style:{width:"4%"}}),c("col",{style:{width:"45%"}}),c("col",{style:{width:"27%"}}),c("col",{style:{width:"24%"}})],-1),Ut=c("thead",null,[c("tr",null,[c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"}),c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"}," Component "),c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"}," Parameter "),c("th",{class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"})])],-1),Ft={class:"relative"},kt={class:"text-gray-300 cursor-move handle align-middle"},Et={class:"px-5 py-4"},Nt={class:"block text-sm not-italic font-medium text-primary-800 whitespace-nowrap mr-2 min-w-[200px]"},Mt={class:"text-xs text-gray-500 mt-1"},Tt={class:"px-5 py-4 text-left align-middle"},Gt={class:"px-5 py-4 text-right align-middle pt-10"},qt=k(" Remove "),Lt={colspan:"2",class:"px-5 py-4"},Rt={class:"px-5 py-4 text-right align-middle",colspan:"2"},tt={props:{type:{type:String,required:!0},typeStore:{type:Object,required:!0},defaultSeries:{type:String,default:"INV"}},setup(v){const o=v,{t:i}=j(),p=N(),g=Z(),u=z([]),a=z(!1),m=z([{label:i("settings.customization.series"),description:i("settings.customization.series_description"),name:"SERIES",paramLabel:i("settings.customization.series_param_label"),value:o.defaultSeries,inputDisabled:!1,inputType:"text",allowMultiple:!1},{label:i("settings.customization.sequence"),description:i("settings.customization.sequence_description"),name:"SEQUENCE",paramLabel:i("settings.customization.sequence_param_label"),value:"6",inputDisabled:!1,inputType:"number",allowMultiple:!1},{label:i("settings.customization.delimiter"),description:i("settings.customization.delimiter_description"),name:"DELIMITER",paramLabel:i("settings.customization.delimiter_param_label"),value:"-",inputDisabled:!1,inputType:"text",allowMultiple:!0},{label:i("settings.customization.customer_series"),description:i("settings.customization.customer_series_description"),name:"CUSTOMER_SERIES",paramLabel:"",value:"",inputDisabled:!0,inputType:"text",allowMultiple:!1},{label:i("settings.customization.customer_sequence"),description:i("settings.customization.customer_sequence_description"),name:"CUSTOMER_SEQUENCE",paramLabel:i("settings.customization.customer_sequence_param_label"),value:"6",inputDisabled:!1,inputType:"number",allowMultiple:!1},{label:i("settings.customization.date_format"),description:i("settings.customization.date_format_description"),name:"DATE_FORMAT",paramLabel:i("settings.customization.date_format_param_label"),value:"Y",inputDisabled:!1,inputType:"text",allowMultiple:!0},{label:i("settings.customization.random_sequence"),description:i("settings.customization.random_sequence_description"),name:"RANDOM_SEQUENCE",paramLabel:i("settings.customization.random_sequence_param_label"),value:"6",inputDisabled:!1,inputType:"number",allowMultiple:!1}]),s=F(()=>m.value.filter(function(f){return!u.value.some(function(V){return f.allowMultiple?!1:f.name==V.name})})),_=z(""),n=z(!1),l=z(!1),y=F(()=>{let f="";return u.value.forEach(V=>{let q=`{{${V.name}`;V.value&&(q+=`:${V.value}`),f+=`${q}}}`}),f});bt(u,f=>{U()}),B();async function B(){let f={format:p.selectedCompanySettings[`${o.type}_number_format`]};l.value=!0,(await g.fetchPlaceholders(f)).data.placeholders.forEach(q=>{var O;let J=m.value.find(K=>K.name===q.name);const Q=(O=q.value)!=null?O:"";u.value.push(W(x({},J),{value:Q,id:at.raw()}))}),l.value=!1,U()}function C(f){return u.value.find(V=>V.name===f.name)}function h(f){C(f)&&!f.allowMultiple||(u.value.push(W(x({},f),{id:at.raw()})),U())}function S(f){u.value=u.value.filter(function(V){return f.id!==V.id})}function w(f,V){switch(V.name){case"SERIES":f.length>=6&&(f=f.substring(0,6));break;case"DELIMITER":f.length>=1&&(f=f.substring(0,1));break}setTimeout(()=>{V.value=f,U()},100)}const U=St(()=>{P()},500);async function P(){if(!y.value){_.value="";return}let f={key:o.type,format:y.value};n.value=!0;let V=await o.typeStore.getNextNumber(f);n.value=!1,V.data&&(_.value=V.data.nextNumber)}async function lt(){if(n.value||l.value)return;a.value=!0;let f={settings:{}};return f.settings[o.type+"_number_format"]=y.value,await p.updateCompanySettings({data:f,message:`settings.customization.${o.type}s.${o.type}_settings_updated`}),a.value=!1,!0}return(f,V)=>{const q=d("BaseInput"),J=d("BaseInputGroup"),Q=d("BaseIcon"),O=d("BaseButton"),K=d("BaseDropdownItem"),mt=d("BaseDropdown");return $(),D(L,null,[c("h6",It,b(f.$t(`settings.customization.${v.type}s.${v.type}_number_format`)),1),c("p",xt,b(f.$t(`settings.customization.${v.type}s.${v.type}_number_format_description`)),1),c("div",wt,[c("table",Ct,[Dt,Ut,t(e(ht),{modelValue:u.value,"onUpdate:modelValue":V[1]||(V[1]=I=>u.value=I),class:"divide-y divide-gray-200","item-key":"id",tag:"tbody",handle:".handle",filter:".ignore-element"},{item:r(({element:I})=>[c("tr",Ft,[c("td",kt,[t(Bt)]),c("td",Et,[c("label",Nt,b(I.label),1),c("p",Mt,b(I.description),1)]),c("td",Tt,[t(J,{label:I.paramLabel,class:"lg:col-span-3",required:""},{default:r(()=>[t(q,{modelValue:I.value,"onUpdate:modelValue":[A=>I.value=A,A=>w(A,I)],disabled:I.inputDisabled,type:I.inputType},null,8,["modelValue","onUpdate:modelValue","disabled","type"])]),_:2},1032,["label"])]),c("td",Gt,[t(O,{variant:"white",onClick:Y(A=>S(I),["prevent"])},{left:r(A=>[t(Q,{name:"XIcon",class:G(["!sm:m-0",A.class])},null,8,["class"])]),default:r(()=>[qt]),_:2},1032,["onClick"])])])]),footer:r(()=>[c("tr",null,[c("td",Lt,[t(J,{label:f.$t(`settings.customization.${v.type}s.preview_${v.type}_number`)},{default:r(()=>[t(q,{modelValue:_.value,"onUpdate:modelValue":V[0]||(V[0]=I=>_.value=I),disabled:"",loading:n.value},null,8,["modelValue","loading"])]),_:1},8,["label"])]),c("td",Rt,[t(mt,{"wrapper-class":"flex items-center justify-end mt-5"},{activator:r(()=>[t(O,{variant:"primary-outline"},{left:r(I=>[t(Q,{class:G(I.class),name:"PlusIcon"},null,8,["class"])]),default:r(()=>[k(" "+b(f.$t("settings.customization.add_new_component")),1)]),_:1})]),default:r(()=>[($(!0),D(L,null,$t(e(s),I=>($(),E(K,{key:I.label,onClick:Y(A=>h(I),["prevent"])},{default:r(()=>[k(b(I.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})])])]),_:1},8,["modelValue"])])]),t(O,{loading:a.value,disabled:a.value,variant:"primary",type:"submit",class:"mt-4",onClick:lt},{left:r(I=>[a.value?R("",!0):($(),E(Q,{key:0,class:G(I.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(f.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],64)}}},At={setup(v){const o=pt();return(i,p)=>($(),E(tt,{type:"invoice","type-store":e(o),"default-series":"INV"},null,8,["type-store"]))}},Yt={class:"text-gray-900 text-lg font-medium"},Ot={class:"mt-1 text-sm text-gray-500"},jt={setup(v){const{t:o,tm:i}=j(),p=N(),g=Z(),u=M("utils"),a=T({retrospective_edits:null});u.mergeSettings(a,x({},p.selectedCompanySettings)),F(()=>g.config.retrospective_edits.map(s=>(s.title=o(s.key),s)));async function m(){let s={settings:x({},a)};return await p.updateCompanySettings({data:s,message:"settings.customization.invoices.invoice_settings_updated"}),!0}return(s,_)=>{const n=d("BaseRadio"),l=d("BaseInputGroup");return $(),D(L,null,[c("h6",Yt,b(s.$tc("settings.customization.invoices.retrospective_edits")),1),c("p",Ot,b(s.$t("settings.customization.invoices.retrospective_edits_description")),1),t(l,{required:""},{default:r(()=>[t(n,{id:"allow",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[0]||(_[0]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.allow"),size:"sm",name:"filter",value:"allow",class:"mt-2"},null,8,["modelValue","label"]),t(n,{id:"disable_on_invoice_partial_paid",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[1]||(_[1]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.disable_on_invoice_partial_paid"),size:"sm",name:"filter",value:"disable_on_invoice_partial_paid",class:"mt-2"},null,8,["modelValue","label"]),t(n,{id:"disable_on_invoice_paid",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[2]||(_[2]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.disable_on_invoice_paid"),size:"sm",name:"filter",value:"disable_on_invoice_paid",class:"my-2"},null,8,["modelValue","label"]),t(n,{id:"disable_on_invoice_sent",modelValue:e(a).retrospective_edits,"onUpdate:modelValue":[_[3]||(_[3]=y=>e(a).retrospective_edits=y),m],label:s.$t("settings.customization.invoices.disable_on_invoice_sent"),size:"sm",name:"filter",value:"disable_on_invoice_sent"},null,8,["modelValue","label"])]),_:1})],64)}}},Pt=["onSubmit"],Qt={class:"text-gray-900 text-lg font-medium"},Ht={class:"mt-1 text-sm text-gray-500 mb-2"},Jt={class:"w-full sm:w-1/2 md:w-1/4 lg:w-1/5"},Xt={setup(v){const{t:o}=j(),i=N(),p=M("utils");let g=z(!1);const u=T({invoice_set_due_date_automatically:null,invoice_due_date_days:null});p.mergeSettings(u,x({},i.selectedCompanySettings));const a=F({get:()=>u.invoice_set_due_date_automatically==="YES",set:async n=>{const l=n?"YES":"NO";u.invoice_set_due_date_automatically=l}}),m=F(()=>({dueDateSettings:{invoice_due_date_days:{required:X.withMessage(o("validation.required"),nt(a.value)),numeric:X.withMessage(o("validation.numbers_only"),it)}}})),s=ot(m,{dueDateSettings:u});async function _(){if(s.value.dueDateSettings.$touch(),s.value.dueDateSettings.$invalid)return!1;g.value=!0;let n={settings:x({},u)};return a.value||delete n.settings.invoice_due_date_days,await i.updateCompanySettings({data:n,message:"settings.customization.invoices.invoice_settings_updated"}),g.value=!1,!0}return(n,l)=>{const y=d("BaseSwitchSection"),B=d("BaseInput"),C=d("BaseInputGroup"),h=d("BaseIcon"),S=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",Qt,b(n.$t("settings.customization.invoices.due_date")),1),c("p",Ht,b(n.$t("settings.customization.invoices.due_date_description")),1),t(y,{modelValue:e(a),"onUpdate:modelValue":l[0]||(l[0]=w=>H(a)?a.value=w:null),title:n.$t("settings.customization.invoices.set_due_date_automatically"),description:n.$t("settings.customization.invoices.set_due_date_automatically_description")},null,8,["modelValue","title","description"]),e(a)?($(),E(C,{key:0,label:n.$t("settings.customization.invoices.due_date_days"),error:e(s).dueDateSettings.invoice_due_date_days.$error&&e(s).dueDateSettings.invoice_due_date_days.$errors[0].$message,class:"mt-2 mb-4"},{default:r(()=>[c("div",Jt,[t(B,{modelValue:e(u).invoice_due_date_days,"onUpdate:modelValue":l[1]||(l[1]=w=>e(u).invoice_due_date_days=w),invalid:e(s).dueDateSettings.invoice_due_date_days.$error,type:"number",onInput:l[2]||(l[2]=w=>e(s).dueDateSettings.invoice_due_date_days.$touch())},null,8,["modelValue","invalid"])])]),_:1},8,["label","error"])):R("",!0),t(S,{loading:e(g),disabled:e(g),variant:"primary",type:"submit",class:"mt-4"},{left:r(w=>[e(g)?R("",!0):($(),E(h,{key:0,class:G(w.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,Pt)}}},Kt=["onSubmit"],Wt={class:"text-gray-900 text-lg font-medium"},Zt={class:"mt-1 text-sm text-gray-500 mb-2"},te={setup(v){const o=N(),i=M("utils"),p=z(["customer","customerCustom","invoice","invoiceCustom","company"]),g=z(["billing","customer","customerCustom","invoiceCustom"]),u=z(["shipping","customer","customerCustom","invoiceCustom"]),a=z(["company","invoiceCustom"]);let m=z(!1);const s=T({invoice_mail_body:null,invoice_company_address_format:null,invoice_shipping_address_format:null,invoice_billing_address_format:null});i.mergeSettings(s,x({},o.selectedCompanySettings));async function _(){m.value=!0;let n={settings:x({},s)};return await o.updateCompanySettings({data:n,message:"settings.customization.invoices.invoice_settings_updated"}),m.value=!1,!0}return(n,l)=>{const y=d("BaseCustomInput"),B=d("BaseInputGroup"),C=d("BaseIcon"),h=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",Wt,b(n.$t("settings.customization.invoices.default_formats")),1),c("p",Zt,b(n.$t("settings.customization.invoices.default_formats_description")),1),t(B,{label:n.$t("settings.customization.invoices.default_invoice_email_body"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_mail_body,"onUpdate:modelValue":l[0]||(l[0]=S=>e(s).invoice_mail_body=S),fields:p.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.invoices.company_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_company_address_format,"onUpdate:modelValue":l[1]||(l[1]=S=>e(s).invoice_company_address_format=S),fields:a.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.invoices.shipping_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_shipping_address_format,"onUpdate:modelValue":l[2]||(l[2]=S=>e(s).invoice_shipping_address_format=S),fields:u.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.invoices.billing_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).invoice_billing_address_format,"onUpdate:modelValue":l[3]||(l[3]=S=>e(s).invoice_billing_address_format=S),fields:g.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(h,{loading:e(m),disabled:e(m),variant:"primary",type:"submit",class:"mt-4"},{left:r(S=>[e(m)?R("",!0):($(),E(C,{key:0,class:G(S.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,Kt)}}},ee={class:"divide-y divide-gray-200"},se={setup(v){const o=M("utils"),i=N(),p=T({invoice_email_attachment:null});o.mergeSettings(p,x({},i.selectedCompanySettings));const g=F({get:()=>p.invoice_email_attachment==="YES",set:async u=>{const a=u?"YES":"NO";let m={settings:{invoice_email_attachment:a}};p.invoice_email_attachment=a,await i.updateCompanySettings({data:m,message:"general.setting_updated"})}});return(u,a)=>{const m=d("BaseDivider"),s=d("BaseSwitchSection");return $(),D(L,null,[t(At),t(m,{class:"my-8"}),t(Xt),t(m,{class:"my-8"}),t(jt),t(m,{class:"my-8"}),t(te),t(m,{class:"mt-6 mb-2"}),c("ul",ee,[t(s,{modelValue:e(g),"onUpdate:modelValue":a[0]||(a[0]=_=>H(g)?g.value=_:null),title:u.$t("settings.customization.invoices.invoice_email_attachment"),description:u.$t("settings.customization.invoices.invoice_email_attachment_setting_description")},null,8,["modelValue","title","description"])])],64)}}},ae={setup(v){const o=gt();return(i,p)=>($(),E(tt,{type:"estimate","type-store":e(o),"default-series":"EST"},null,8,["type-store"]))}},ne=["onSubmit"],ie={class:"text-gray-900 text-lg font-medium"},oe={class:"mt-1 text-sm text-gray-500 mb-2"},le={class:"w-full sm:w-1/2 md:w-1/4 lg:w-1/5"},me={setup(v){const{t:o}=j(),i=N(),p=M("utils");let g=z(!1);const u=T({estimate_set_expiry_date_automatically:null,estimate_expiry_date_days:null});p.mergeSettings(u,x({},i.selectedCompanySettings));const a=F({get:()=>u.estimate_set_expiry_date_automatically==="YES",set:async n=>{const l=n?"YES":"NO";u.estimate_set_expiry_date_automatically=l}}),m=F(()=>({expiryDateSettings:{estimate_expiry_date_days:{required:X.withMessage(o("validation.required"),nt(a.value)),numeric:X.withMessage(o("validation.numbers_only"),it)}}})),s=ot(m,{expiryDateSettings:u});async function _(){if(s.value.expiryDateSettings.$touch(),s.value.expiryDateSettings.$invalid)return!1;g.value=!0;let n={settings:x({},u)};return a.value||delete n.settings.estimate_expiry_date_days,await i.updateCompanySettings({data:n,message:"settings.customization.estimates.estimate_settings_updated"}),g.value=!1,!0}return(n,l)=>{const y=d("BaseSwitchSection"),B=d("BaseInput"),C=d("BaseInputGroup"),h=d("BaseIcon"),S=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",ie,b(n.$t("settings.customization.estimates.expiry_date")),1),c("p",oe,b(n.$t("settings.customization.estimates.expiry_date_description")),1),t(y,{modelValue:e(a),"onUpdate:modelValue":l[0]||(l[0]=w=>H(a)?a.value=w:null),title:n.$t("settings.customization.estimates.set_expiry_date_automatically"),description:n.$t("settings.customization.estimates.set_expiry_date_automatically_description")},null,8,["modelValue","title","description"]),e(a)?($(),E(C,{key:0,label:n.$t("settings.customization.estimates.expiry_date_days"),error:e(s).expiryDateSettings.estimate_expiry_date_days.$error&&e(s).expiryDateSettings.estimate_expiry_date_days.$errors[0].$message,class:"mt-2 mb-4"},{default:r(()=>[c("div",le,[t(B,{modelValue:e(u).estimate_expiry_date_days,"onUpdate:modelValue":l[1]||(l[1]=w=>e(u).estimate_expiry_date_days=w),invalid:e(s).expiryDateSettings.estimate_expiry_date_days.$error,type:"number",onInput:l[2]||(l[2]=w=>e(s).expiryDateSettings.estimate_expiry_date_days.$touch())},null,8,["modelValue","invalid"])])]),_:1},8,["label","error"])):R("",!0),t(S,{loading:e(g),disabled:e(g),variant:"primary",type:"submit",class:"mt-4"},{left:r(w=>[e(g)?R("",!0):($(),E(h,{key:0,class:G(w.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,ne)}}},ue=["onSubmit"],re={class:"text-gray-900 text-lg font-medium"},de={class:"mt-1 text-sm text-gray-500 mb-2"},ce={setup(v){const o=N(),i=M("utils"),p=z(["customer","customerCustom","estimate","estimateCustom","company"]),g=z(["billing","customer","customerCustom","estimateCustom"]),u=z(["shipping","customer","customerCustom","estimateCustom"]),a=z(["company","estimateCustom"]);let m=z(!1);const s=T({estimate_mail_body:null,estimate_company_address_format:null,estimate_shipping_address_format:null,estimate_billing_address_format:null});i.mergeSettings(s,x({},o.selectedCompanySettings));async function _(){m.value=!0;let n={settings:x({},s)};return await o.updateCompanySettings({data:n,message:"settings.customization.estimates.estimate_settings_updated"}),m.value=!1,!0}return(n,l)=>{const y=d("BaseCustomInput"),B=d("BaseInputGroup"),C=d("BaseIcon"),h=d("BaseButton");return $(),D("form",{onSubmit:Y(_,["prevent"])},[c("h6",re,b(n.$t("settings.customization.estimates.default_formats")),1),c("p",de,b(n.$t("settings.customization.estimates.default_formats_description")),1),t(B,{label:n.$t("settings.customization.estimates.default_estimate_email_body"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_mail_body,"onUpdate:modelValue":l[0]||(l[0]=S=>e(s).estimate_mail_body=S),fields:p.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.estimates.company_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_company_address_format,"onUpdate:modelValue":l[1]||(l[1]=S=>e(s).estimate_company_address_format=S),fields:a.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.estimates.shipping_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_shipping_address_format,"onUpdate:modelValue":l[2]||(l[2]=S=>e(s).estimate_shipping_address_format=S),fields:u.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(B,{label:n.$t("settings.customization.estimates.billing_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(y,{modelValue:e(s).estimate_billing_address_format,"onUpdate:modelValue":l[3]||(l[3]=S=>e(s).estimate_billing_address_format=S),fields:g.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(h,{loading:e(m),disabled:e(m),variant:"primary",type:"submit",class:"mt-4"},{left:r(S=>[e(m)?R("",!0):($(),E(C,{key:0,class:G(S.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(n.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,ue)}}},_e={class:"text-gray-900 text-lg font-medium"},pe={class:"mt-1 text-sm text-gray-500"},ge={setup(v){const{t:o,tm:i}=j(),p=N(),g=Z(),u=M("utils"),a=T({estimate_convert_action:null});u.mergeSettings(a,x({},p.selectedCompanySettings)),F(()=>g.config.estimate_convert_action.map(s=>(s.title=o(s.key),s)));async function m(){let s={settings:x({},a)};return await p.updateCompanySettings({data:s,message:"settings.customization.estimates.estimate_settings_updated"}),!0}return(s,_)=>{const n=d("BaseRadio"),l=d("BaseInputGroup");return $(),D(L,null,[c("h6",_e,b(s.$tc("settings.customization.estimates.convert_estimate_options")),1),c("p",pe,b(s.$t("settings.customization.estimates.convert_estimate_description")),1),t(l,{required:""},{default:r(()=>[t(n,{id:"no_action",modelValue:e(a).estimate_convert_action,"onUpdate:modelValue":[_[0]||(_[0]=y=>e(a).estimate_convert_action=y),m],label:s.$t("settings.customization.estimates.no_action"),size:"sm",name:"filter",value:"no_action",class:"mt-2"},null,8,["modelValue","label"]),t(n,{id:"delete_estimate",modelValue:e(a).estimate_convert_action,"onUpdate:modelValue":[_[1]||(_[1]=y=>e(a).estimate_convert_action=y),m],label:s.$t("settings.customization.estimates.delete_estimate"),size:"sm",name:"filter",value:"delete_estimate",class:"my-2"},null,8,["modelValue","label"]),t(n,{id:"mark_estimate_as_accepted",modelValue:e(a).estimate_convert_action,"onUpdate:modelValue":[_[2]||(_[2]=y=>e(a).estimate_convert_action=y),m],label:s.$t("settings.customization.estimates.mark_estimate_as_accepted"),size:"sm",name:"filter",value:"mark_estimate_as_accepted"},null,8,["modelValue","label"])]),_:1})],64)}}},ye={class:"divide-y divide-gray-200"},fe={setup(v){const o=M("utils"),i=N(),p=T({estimate_email_attachment:null});o.mergeSettings(p,x({},i.selectedCompanySettings));const g=F({get:()=>p.estimate_email_attachment==="YES",set:async u=>{const a=u?"YES":"NO";let m={settings:{estimate_email_attachment:a}};p.estimate_email_attachment=a,await i.updateCompanySettings({data:m,message:"general.setting_updated"})}});return(u,a)=>{const m=d("BaseDivider"),s=d("BaseSwitchSection");return $(),D(L,null,[t(ae),t(m,{class:"my-8"}),t(me),t(m,{class:"my-8"}),t(ge),t(m,{class:"my-8"}),t(ce),t(m,{class:"mt-6 mb-2"}),c("ul",ye,[t(s,{modelValue:e(g),"onUpdate:modelValue":a[0]||(a[0]=_=>H(g)?g.value=_:null),title:u.$t("settings.customization.estimates.estimate_email_attachment"),description:u.$t("settings.customization.estimates.estimate_email_attachment_setting_description")},null,8,["modelValue","title","description"])])],64)}}},ve={setup(v){const o=zt();return(i,p)=>($(),E(tt,{type:"payment","type-store":e(o),"default-series":"PAY"},null,8,["type-store"]))}},be=["onSubmit"],Se={class:"text-gray-900 text-lg font-medium"},$e={class:"mt-1 text-sm text-gray-500 mb-2"},Be={setup(v){const o=N(),i=M("utils"),p=z(["customer","customerCustom","company","payment","paymentCustom"]),g=z(["billing","customer","customerCustom","paymentCustom"]),u=z(["company","paymentCustom"]);let a=z(!1);const m=T({payment_mail_body:null,payment_company_address_format:null,payment_from_customer_address_format:null});i.mergeSettings(m,x({},o.selectedCompanySettings));async function s(){a.value=!0;let _={settings:x({},m)};return await o.updateCompanySettings({data:_,message:"settings.customization.payments.payment_settings_updated"}),a.value=!1,!0}return(_,n)=>{const l=d("BaseCustomInput"),y=d("BaseInputGroup"),B=d("BaseIcon"),C=d("BaseButton");return $(),D("form",{onSubmit:Y(s,["prevent"])},[c("h6",Se,b(_.$t("settings.customization.payments.default_formats")),1),c("p",$e,b(_.$t("settings.customization.payments.default_formats_description")),1),t(y,{label:_.$t("settings.customization.payments.default_payment_email_body"),class:"mt-6 mb-4"},{default:r(()=>[t(l,{modelValue:e(m).payment_mail_body,"onUpdate:modelValue":n[0]||(n[0]=h=>e(m).payment_mail_body=h),fields:p.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(y,{label:_.$t("settings.customization.payments.company_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(l,{modelValue:e(m).payment_company_address_format,"onUpdate:modelValue":n[1]||(n[1]=h=>e(m).payment_company_address_format=h),fields:u.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(y,{label:_.$t("settings.customization.payments.from_customer_address_format"),class:"mt-6 mb-4"},{default:r(()=>[t(l,{modelValue:e(m).payment_from_customer_address_format,"onUpdate:modelValue":n[2]||(n[2]=h=>e(m).payment_from_customer_address_format=h),fields:g.value},null,8,["modelValue","fields"])]),_:1},8,["label"]),t(C,{loading:e(a),disabled:e(a),variant:"primary",type:"submit",class:"mt-4"},{left:r(h=>[e(a)?R("",!0):($(),E(B,{key:0,class:G(h.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[k(" "+b(_.$t("settings.customization.save")),1)]),_:1},8,["loading","disabled"])],40,be)}}},he={class:"divide-y divide-gray-200"},ze={setup(v){const o=M("utils"),i=N(),p=T({payment_email_attachment:null});o.mergeSettings(p,x({},i.selectedCompanySettings));const g=F({get:()=>p.payment_email_attachment==="YES",set:async u=>{const a=u?"YES":"NO";let m={settings:{payment_email_attachment:a}};p.payment_email_attachment=a,await i.updateCompanySettings({data:m,message:"general.setting_updated"})}});return(u,a)=>{const m=d("BaseDivider"),s=d("BaseSwitchSection");return $(),D(L,null,[t(ve),t(m,{class:"my-8"}),t(Be),t(m,{class:"mt-6 mb-2"}),c("ul",he,[t(s,{modelValue:e(g),"onUpdate:modelValue":a[0]||(a[0]=_=>H(g)?g.value=_:null),title:u.$t("settings.customization.payments.payment_email_attachment"),description:u.$t("settings.customization.payments.payment_email_attachment_setting_description")},null,8,["modelValue","title","description"])])],64)}}},Ve={class:"flex flex-wrap justify-end mt-2 lg:flex-nowrap"},Ie={class:"inline-block"},xe={setup(v){const{t:o}=j(),i=z(null),p=yt(),g=ft(),u=vt(),a=F(()=>[{key:"name",label:o("settings.customization.items.unit_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function m({page:l,filter:y,sort:B}){let C={orderByField:B.fieldName||"created_at",orderBy:B.order||"desc",page:l},h=await p.fetchItemUnits(C);return{data:h.data.data,pagination:{totalPages:h.data.meta.last_page,currentPage:l,totalCount:h.data.meta.total,limit:5}}}async function s(){g.openModal({title:o("settings.customization.items.add_item_unit"),componentName:"ItemUnitModal",refreshData:i.value.refresh,size:"sm"})}async function _(l){p.fetchItemUnit(l.data.id),g.openModal({title:o("settings.customization.items.edit_item_unit"),componentName:"ItemUnitModal",id:l.data.id,data:l.data,refreshData:i.value&&i.value.refresh})}function n(l){u.openDialog({title:o("general.are_you_sure"),message:o("settings.customization.items.item_unit_confirm_delete"),yesLabel:o("general.yes"),noLabel:o("general.no"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async y=>{y&&(await p.deleteItemUnit(l.data.id),i.value&&i.value.refresh())})}return(l,y)=>{const B=d("BaseIcon"),C=d("BaseButton"),h=d("BaseDropdownItem"),S=d("BaseDropdown"),w=d("BaseTable");return $(),D(L,null,[t(Vt),c("div",Ve,[t(C,{variant:"primary-outline",onClick:s},{left:r(U=>[t(B,{class:G(U.class),name:"PlusIcon"},null,8,["class"])]),default:r(()=>[k(" "+b(l.$t("settings.customization.items.add_item_unit")),1)]),_:1})]),t(w,{ref:(U,P)=>{P.table=U,i.value=U},class:"mt-10",data:m,columns:e(a)},{"cell-actions":r(({row:U})=>[t(S,null,{activator:r(()=>[c("div",Ie,[t(B,{name:"DotsHorizontalIcon",class:"text-gray-500"})])]),default:r(()=>[t(h,{onClick:P=>_(U)},{default:r(()=>[t(B,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),k(" "+b(l.$t("general.edit")),1)]),_:2},1032,["onClick"]),t(h,{onClick:P=>n(U)},{default:r(()=>[t(B,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),k(" "+b(l.$t("general.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["columns"])],64)}}},we={class:"relative"},Ne={setup(v){return(o,i)=>{const p=d("BaseTab"),g=d("BaseTabGroup"),u=d("BaseCard");return $(),D("div",we,[t(u,{"container-class":"px-4 py-5 sm:px-8 sm:py-2"},{default:r(()=>[t(g,null,{default:r(()=>[t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.invoices.title")},{default:r(()=>[t(se)]),_:1},8,["title"]),t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.estimates.title")},{default:r(()=>[t(fe)]),_:1},8,["title"]),t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.payments.title")},{default:r(()=>[t(ze)]),_:1},8,["title"]),t(p,{"tab-panel-container":"py-4 mt-px",title:o.$t("settings.customization.items.title")},{default:r(()=>[t(xe)]),_:1},8,["title"])]),_:1})]),_:1})])}}};export{Ne as default};
import{D as I,_ as L,a as M}from"./EstimateIcon.1f3b368d.js";import{o as m,e as v,m as $,h as r,a as V,r as i,l as h,w as s,f as t,g as F,t as u,aj as T,ah as w,u as n,i as _,J as z,G as A,k as D}from"./vendor.01d0adc5.js";import{u as C}from"./global.08b6a984.js";import{h as Z}from"./auth.4644c288.js";import{_ as k}from"./main.75722495.js";import S from"./BaseTable.6e206ca7.js";const q=r("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),N=r("path",{d:"M17.8 17.8C17.1635 17.8 16.5531 18.0529 16.103 18.503C15.6529 18.9531 15.4 19.5635 15.4 20.2V21.4H34.6V20.2C34.6 19.5635 34.3472 18.9531 33.8971 18.503C33.447 18.0529 32.8365 17.8 32.2 17.8H17.8Z",fill:"currentColor"},null,-1),G=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M34.6 23.8H15.4V29.8C15.4 30.4366 15.6529 31.047 16.103 31.4971C16.5531 31.9472 17.1635 32.2 17.8 32.2H32.2C32.8365 32.2 33.447 31.9472 33.8971 31.4971C34.3472 31.047 34.6 30.4366 34.6 29.8V23.8ZM17.8 28.6C17.8 28.2818 17.9265 27.9766 18.1515 27.7515C18.3765 27.5265 18.6818 27.4 19 27.4H20.2C20.5183 27.4 20.8235 27.5265 21.0486 27.7515C21.2736 27.9766 21.4 28.2818 21.4 28.6C21.4 28.9183 21.2736 29.2235 21.0486 29.4486C20.8235 29.6736 20.5183 29.8 20.2 29.8H19C18.6818 29.8 18.3765 29.6736 18.1515 29.4486C17.9265 29.2235 17.8 28.9183 17.8 28.6ZM23.8 27.4C23.4818 27.4 23.1765 27.5265 22.9515 27.7515C22.7265 27.9766 22.6 28.2818 22.6 28.6C22.6 28.9183 22.7265 29.2235 22.9515 29.4486C23.1765 29.6736 23.4818 29.8 23.8 29.8H25C25.3183 29.8 25.6235 29.6736 25.8486 29.4486C26.0736 29.2235 26.2 28.9183 26.2 28.6C26.2 28.2818 26.0736 27.9766 25.8486 27.7515C25.6235 27.5265 25.3183 27.4 25 27.4H23.8Z",fill:"currentColor"},null,-1),O=[q,N,G],J={props:{colorClass:{type:String,default:"text-primary-500"}},setup(c){return(a,o)=>(m(),v("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:$(c.colorClass)},O,2))}},{defineStore:R}=window.pinia,P=R({id:"dashboard",state:()=>({recentInvoices:[],recentEstimates:[],invoiceCount:0,estimateCount:0,paymentCount:0,totalDueAmount:[],isDashboardDataLoaded:!1}),actions:{loadData(c){const a=C();return new Promise((o,d)=>{V.get(`/api/v1/${a.companySlug}/customer/dashboard`,{data:c}).then(e=>{this.totalDueAmount=e.data.due_amount,this.estimateCount=e.data.estimate_count,this.invoiceCount=e.data.invoice_count,this.paymentCount=e.data.payment_count,this.recentInvoices=e.data.recentInvoices,this.recentEstimates=e.data.recentEstimates,a.getDashboardDataLoaded=!0,o(e)}).catch(e=>{Z(e),d(e)})})}}}),K={},Q={class:"flex items-center"};function U(c,a){const o=i("BaseContentPlaceholdersText"),d=i("BaseContentPlaceholdersBox"),e=i("BaseContentPlaceholders");return m(),h(e,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-3 xl:p-4"},{default:s(()=>[r("div",null,[t(o,{class:"h-5 -mb-1 w-14 xl:mb-6 xl:h-7",lines:1}),t(o,{class:"h-3 w-28 xl:h-4",lines:1})]),r("div",Q,[t(d,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var W=k(K,[["render",U]]);const X={},Y={class:"flex items-center"};function ee(c,a){const o=i("BaseContentPlaceholdersText"),d=i("BaseContentPlaceholdersBox"),e=i("BaseContentPlaceholders");return m(),h(e,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-2 xl:p-4"},{default:s(()=>[r("div",null,[t(o,{class:"w-12 h-5 -mb-1 xl:mb-6 xl:h-7",lines:1}),t(o,{class:"w-20 h-3 xl:h-4",lines:1})]),r("div",Y,[t(d,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var te=k(X,[["render",ee]]);const ae={class:"text-xl font-semibold leading-tight text-black xl:text-3xl"},se={class:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},oe={class:"flex items-center"},f={props:{iconComponent:{type:Object,required:!0},loading:{type:Boolean,default:!1},route:{type:Object,required:!0},label:{type:String,required:!0},large:{type:Boolean,default:!1}},setup(c){return(a,o)=>{const d=i("router-link");return c.loading?c.large?(m(),h(W,{key:1})):(m(),h(te,{key:2})):(m(),h(d,{key:0,class:$(["relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-50 xl:p-4 lg:col-span-2",{"lg:!col-span-3":c.large}]),to:c.route},{default:s(()=>[r("div",null,[r("span",ae,[F(a.$slots,"default")]),r("span",se,u(c.label),1)]),r("div",oe,[(m(),h(T(c.iconComponent),{class:"w-10 h-10 xl:w-12 xl:h-12"}))])]),_:3},8,["class","to"]))}}},ne={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},le={setup(c){w("utils");const a=C(),o=P();return o.loadData(),(d,e)=>{const g=i("BaseFormatMoney");return m(),v("div",ne,[t(f,{"icon-component":I,loading:!n(a).getDashboardDataLoaded,route:{name:"invoices.dashboard"},large:!0,label:d.$t("dashboard.cards.due_amount")},{default:s(()=>[t(g,{amount:n(o).totalDueAmount,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["loading","route","label"]),t(f,{"icon-component":L,loading:!n(a).getDashboardDataLoaded,route:{name:"invoices.dashboard"},label:d.$t("dashboard.cards.invoices")},{default:s(()=>[_(u(n(o).invoiceCount),1)]),_:1},8,["loading","route","label"]),t(f,{"icon-component":M,loading:!n(a).getDashboardDataLoaded,route:{name:"estimates.dashboard"},label:d.$t("dashboard.cards.estimates")},{default:s(()=>[_(u(n(o).estimateCount),1)]),_:1},8,["loading","route","label"]),t(f,{"icon-component":J,loading:!n(a).getDashboardDataLoaded,route:{name:"payments.dashboard"},label:d.$t("dashboard.cards.payments")},{default:s(()=>[_(u(n(o).paymentCount),1)]),_:1},8,["loading","route","label"])])}}},re={class:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},ce={class:"due-invoices"},de={class:"relative z-10 flex items-center justify-between mb-3"},ie={class:"mb-0 text-xl font-semibold leading-normal"},ue={class:"recent-estimates"},me={class:"relative z-10 flex items-center justify-between mb-3"},_e={class:"mb-0 text-xl font-semibold leading-normal"},he={setup(c){const a=C(),o=P(),{tm:d,t:e}=z();w("utils"),A();const g=D(()=>[{key:"formattedDueDate",label:e("dashboard.recent_invoices_card.due_on")},{key:"invoice_number",label:e("invoices.number")},{key:"paid_status",label:e("invoices.status")},{key:"due_amount",label:e("dashboard.recent_invoices_card.amount_due")}]),j=D(()=>[{key:"formattedEstimateDate",label:e("dashboard.recent_estimate_card.date")},{key:"estimate_number",label:e("estimates.number")},{key:"status",label:e("estimates.status")},{key:"total",label:e("dashboard.recent_estimate_card.amount_due")}]);return(b,p)=>{const x=i("BaseButton"),y=i("router-link"),E=i("BasePaidStatusBadge"),B=i("BaseFormatMoney"),H=i("BaseEstimateStatusBadge");return m(),v("div",re,[r("div",ce,[r("div",de,[r("h6",ie,u(b.$t("dashboard.recent_invoices_card.title")),1),t(x,{size:"sm",variant:"primary-outline",onClick:p[0]||(p[0]=l=>b.$router.push({name:"invoices.dashboard"}))},{default:s(()=>[_(u(b.$t("dashboard.recent_invoices_card.view_all")),1)]),_:1})]),t(S,{data:n(o).recentInvoices,columns:n(g),loading:!n(a).getDashboardDataLoaded},{"cell-invoice_number":s(({row:l})=>[t(y,{to:{path:`/${n(a).companySlug}/customer/invoices/${l.data.id}/view`},class:"font-medium text-primary-500"},{default:s(()=>[_(u(l.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-paid_status":s(({row:l})=>[t(E,{status:l.data.paid_status},{default:s(()=>[_(u(l.data.paid_status),1)]),_:2},1032,["status"])]),"cell-due_amount":s(({row:l})=>[t(B,{amount:l.data.due_amount,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["data","columns","loading"])]),r("div",ue,[r("div",me,[r("h6",_e,u(b.$t("dashboard.recent_estimate_card.title")),1),t(x,{variant:"primary-outline",size:"sm",onClick:p[1]||(p[1]=l=>b.$router.push({name:"estimates.dashboard"}))},{default:s(()=>[_(u(b.$t("dashboard.recent_estimate_card.view_all")),1)]),_:1})]),t(S,{data:n(o).recentEstimates,columns:n(j),loading:!n(a).getDashboardDataLoaded},{"cell-estimate_number":s(({row:l})=>[t(y,{to:{path:`/${n(a).companySlug}/customer/estimates/${l.data.id}/view`},class:"font-medium text-primary-500"},{default:s(()=>[_(u(l.data.estimate_number),1)]),_:2},1032,["to"])]),"cell-status":s(({row:l})=>[t(H,{status:l.data.status,class:"px-3 py-1"},{default:s(()=>[_(u(l.data.status),1)]),_:2},1032,["status"])]),"cell-total":s(({row:l})=>[t(B,{amount:l.data.total,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["data","columns","loading"])])])}}},xe={setup(c){return(a,o)=>{const d=i("BasePage");return m(),h(d,null,{default:s(()=>[t(le),t(he)]),_:1})}}};export{xe as default};
import{D as O,_ as L,a as F}from"./EstimateIcon.1f3b368d.js";import{o as _,e as v,m as j,h as t,r as c,l as x,w as r,f as e,g as R,t as m,aj as W,a as z,d as q,ah as A,u as s,i as y,B as $,C as H,J as U,k as V,V as M,G as Z,aN as G,D as J}from"./vendor.01d0adc5.js";import{_ as I,h as Y,b as N,e as D,g as h}from"./main.75722495.js";import{_ as K}from"./LineChart.a92f3bea.js";import{_ as Q}from"./InvoiceIndexDropdown.430bc329.js";import{_ as X}from"./EstimateIndexDropdown.4eab32d4.js";const tt=t("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),et=t("path",{d:"M28.2656 23.0547C27.3021 24.0182 26.1302 24.5 24.75 24.5C23.3698 24.5 22.1849 24.0182 21.1953 23.0547C20.2318 22.0651 19.75 20.8802 19.75 19.5C19.75 18.1198 20.2318 16.9479 21.1953 15.9844C22.1849 14.9948 23.3698 14.5 24.75 14.5C26.1302 14.5 27.3021 14.9948 28.2656 15.9844C29.2552 16.9479 29.75 18.1198 29.75 19.5C29.75 20.8802 29.2552 22.0651 28.2656 23.0547ZM28.2656 25.75C29.6979 25.75 30.9219 26.2708 31.9375 27.3125C32.9792 28.3281 33.5 29.5521 33.5 30.9844V32.625C33.5 33.1458 33.3177 33.5885 32.9531 33.9531C32.5885 34.3177 32.1458 34.5 31.625 34.5H17.875C17.3542 34.5 16.9115 34.3177 16.5469 33.9531C16.1823 33.5885 16 33.1458 16 32.625V30.9844C16 29.5521 16.5078 28.3281 17.5234 27.3125C18.5651 26.2708 19.8021 25.75 21.2344 25.75H21.8984C22.8099 26.1667 23.7604 26.375 24.75 26.375C25.7396 26.375 26.6901 26.1667 27.6016 25.75H28.2656Z",fill:"currentColor"},null,-1),at=[tt,et],st={props:{colorClass:{type:String,default:"text-primary-500"}},setup(i){return(o,a)=>(_(),v("svg",{width:"50",height:"50",viewBox:"0 0 50 50",class:j(i.colorClass),fill:"none",xmlns:"http://www.w3.org/2000/svg"},at,2))}},ot={},lt={class:"flex items-center"};function nt(i,o){const a=c("BaseContentPlaceholdersText"),n=c("BaseContentPlaceholdersBox"),d=c("BaseContentPlaceholders");return _(),x(d,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-3 xl:p-4"},{default:r(()=>[t("div",null,[e(a,{class:"h-5 -mb-1 w-14 xl:mb-6 xl:h-7",lines:1}),e(a,{class:"h-3 w-28 xl:h-4",lines:1})]),t("div",lt,[e(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var ct=I(ot,[["render",nt]]);const rt={},it={class:"flex items-center"};function dt(i,o){const a=c("BaseContentPlaceholdersText"),n=c("BaseContentPlaceholdersBox"),d=c("BaseContentPlaceholders");return _(),x(d,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-2 xl:p-4"},{default:r(()=>[t("div",null,[e(a,{class:"w-12 h-5 -mb-1 xl:mb-6 xl:h-7",lines:1}),e(a,{class:"w-20 h-3 xl:h-4",lines:1})]),t("div",it,[e(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var ut=I(rt,[["render",dt]]);const mt={class:"text-xl font-semibold leading-tight text-black xl:text-3xl"},_t={class:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},ht={class:"flex items-center"},B={props:{iconComponent:{type:Object,required:!0},loading:{type:Boolean,default:!1},route:{type:String,required:!0},label:{type:String,required:!0},large:{type:Boolean,default:!1}},setup(i){return(o,a)=>{const n=c("router-link");return i.loading?i.large?(_(),x(ct,{key:1})):(_(),x(ut,{key:2})):(_(),x(n,{key:0,class:j(["relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-50 xl:p-4 lg:col-span-2",{"lg:!col-span-3":i.large}]),to:i.route},{default:r(()=>[t("div",null,[t("span",mt,[R(o.$slots,"default")]),t("span",_t,m(i.label),1)]),t("div",ht,[(_(),x(W(i.iconComponent),{class:"w-10 h-10 xl:w-12 xl:h-12"}))])]),_:3},8,["class","to"]))}}},T=(i=!1)=>(i?window.pinia.defineStore:q)({id:"dashboard",state:()=>({stats:{totalAmountDue:0,totalCustomerCount:0,totalInvoiceCount:0,totalEstimateCount:0},chartData:{months:[],invoiceTotals:[],expenseTotals:[],receiptTotals:[],netIncomeTotals:[]},totalSales:null,totalReceipts:null,totalExpenses:null,totalNetIncome:null,recentDueInvoices:[],recentEstimates:[],isDashboardDataLoaded:!1}),actions:{loadData(a){return new Promise((n,d)=>{z.get("/api/v1/dashboard",{params:a}).then(l=>{this.stats.totalAmountDue=l.data.total_amount_due,this.stats.totalCustomerCount=l.data.total_customer_count,this.stats.totalInvoiceCount=l.data.total_invoice_count,this.stats.totalEstimateCount=l.data.total_estimate_count,this.chartData&&l.data.chart_data&&(this.chartData.months=l.data.chart_data.months,this.chartData.invoiceTotals=l.data.chart_data.invoice_totals,this.chartData.expenseTotals=l.data.chart_data.expense_totals,this.chartData.receiptTotals=l.data.chart_data.receipt_totals,this.chartData.netIncomeTotals=l.data.chart_data.net_income_totals),this.totalSales=l.data.total_sales,this.totalReceipts=l.data.total_receipts,this.totalExpenses=l.data.total_expenses,this.totalNetIncome=l.data.total_net_income,this.recentDueInvoices=l.data.recent_due_invoices,this.recentEstimates=l.data.recent_estimates,this.isDashboardDataLoaded=!0,n(l)}).catch(l=>{Y(l),d(l)})})}}})(),pt={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},bt={setup(i){A("utils");const o=T(),a=N(),n=D();return(d,l)=>{const f=c("BaseFormatMoney");return _(),v("div",pt,[e(B,{"icon-component":O,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_INVOICE)?"/admin/invoices":"",large:!0,label:d.$t("dashboard.cards.due_amount")},{default:r(()=>[e(f,{amount:s(o).stats.totalAmountDue,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])]),_:1},8,["loading","route","label"]),e(B,{"icon-component":st,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_CUSTOMER)?"/admin/customers":"",label:d.$t("dashboard.cards.customers")},{default:r(()=>[y(m(s(o).stats.totalCustomerCount),1)]),_:1},8,["loading","route","label"]),e(B,{"icon-component":L,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_INVOICE)?"/admin/invoices":"",label:d.$t("dashboard.cards.invoices")},{default:r(()=>[y(m(s(o).stats.totalInvoiceCount),1)]),_:1},8,["loading","route","label"]),e(B,{"icon-component":F,loading:!s(o).isDashboardDataLoaded,route:s(n).hasAbilities(s(h).VIEW_ESTIMATE)?"/admin/estimates":"",label:d.$t("dashboard.cards.estimates")},{default:r(()=>[y(m(s(o).stats.totalEstimateCount),1)]),_:1},8,["loading","route","label"])])}}},xt={},ft={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-8"},gt={class:"flex items-center justify-between mb-2 xl:mb-4"},yt={class:"grid grid-cols-3 col-span-10 text-center border-t border-l border-gray-200 border-solid lg:border-t-0 lg:text-right lg:col-span-3 xl:col-span-2 lg:grid-cols-1"},Ct={class:"flex flex-col items-center justify-center p-6 lg:justify-end lg:items-end"},vt={class:"flex flex-col items-center justify-center p-6 lg:justify-end lg:items-end"},wt={class:"flex flex-col items-center justify-center p-6 lg:justify-end lg:items-end"},$t={class:"flex flex-col items-center justify-center col-span-3 p-6 border-t border-gray-200 border-solid lg:justify-end lg:items-end lg:col-span-1"};function Dt(i,o){const a=c("BaseContentPlaceholdersText"),n=c("BaseContentPlaceholdersBox"),d=c("BaseContentPlaceholders");return _(),x(d,{class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},{default:r(()=>[t("div",ft,[t("div",gt,[e(a,{class:"h-10 w-36",lines:1}),e(a,{class:"h-10 w-36 !mt-0",lines:1})]),e(n,{class:"h-80 xl:h-72 sm:w-full"})]),t("div",yt,[t("div",Ct,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",vt,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",wt,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",$t,[e(a,{class:"h-3 w-14 xl:h-4",lines:1}),e(a,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var Bt=I(xt,[["render",Dt]]);const Et={key:0,class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},It={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-6"},Tt={class:"flex justify-between mt-1 mb-4 flex-col md:flex-row"},St={class:"flex items-center sw-section-title h-10"},kt={class:"w-full my-2 md:m-0 md:w-40 h-10"},Pt={class:"grid grid-cols-3 col-span-10 text-center border-t border-l border-gray-200 border-solid lg:border-t-0 lg:text-right lg:col-span-3 xl:col-span-2 lg:grid-cols-1"},jt={class:"p-6"},At={class:"text-xs leading-5 lg:text-sm"},Vt=t("br",null,null,-1),Mt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl"},Nt={class:"p-6"},Ot={class:"text-xs leading-5 lg:text-sm"},Lt=t("br",null,null,-1),Ft={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-green-400"},Rt={class:"p-6"},Wt={class:"text-xs leading-5 lg:text-sm"},zt=t("br",null,null,-1),qt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-red-400"},Ht={class:"col-span-3 p-6 border-t border-gray-200 border-solid lg:col-span-1"},Ut={class:"text-xs leading-5 lg:text-sm"},Zt=t("br",null,null,-1),Gt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-primary-500"},Jt={setup(i){const o=T(),a=N();A("utils");const n=D(),d=$(["This year","Previous year"]),l=$("This year");H(l,p=>{p==="Previous year"?f({previous_year:!0}):f()},{immediate:!0});async function f(p){n.hasAbilities(h.DASHBOARD)&&await o.loadData(p)}return(p,C)=>{const E=c("BaseIcon"),g=c("BaseMultiselect"),b=c("BaseFormatMoney");return _(),v("div",null,[s(o).isDashboardDataLoaded?(_(),v("div",Et,[t("div",It,[t("div",Tt,[t("h6",St,[e(E,{name:"ChartSquareBarIcon",class:"text-primary-400 mr-1"}),y(" "+m(p.$t("dashboard.monthly_chart.title")),1)]),t("div",kt,[e(g,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=w=>l.value=w),options:d.value,"allow-empty":!1,"show-labels":!1,placeholder:p.$t("dashboard.select_year"),"can-deselect":!1},null,8,["modelValue","options","placeholder"])])]),e(K,{invoices:s(o).chartData.invoiceTotals,expenses:s(o).chartData.expenseTotals,receipts:s(o).chartData.receiptTotals,income:s(o).chartData.netIncomeTotals,labels:s(o).chartData.months,class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])]),t("div",Pt,[t("div",jt,[t("span",At,m(p.$t("dashboard.chart_info.total_sales")),1),Vt,t("span",Mt,[e(b,{amount:s(o).totalSales,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Nt,[t("span",Ot,m(p.$t("dashboard.chart_info.total_receipts")),1),Lt,t("span",Ft,[e(b,{amount:s(o).totalReceipts,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Rt,[t("span",Wt,m(p.$t("dashboard.chart_info.total_expense")),1),zt,t("span",qt,[e(b,{amount:s(o).totalExpenses,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Ht,[t("span",Ut,m(p.$t("dashboard.chart_info.net_income")),1),Zt,t("span",Gt,[e(b,{amount:s(o).totalNetIncome,currency:s(a).selectedCompanyCurrency},null,8,["amount","currency"])])])])])):(_(),x(Bt,{key:1}))])}}},Yt={class:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},Kt={class:"due-invoices"},Qt={class:"relative z-10 flex items-center justify-between mb-3"},Xt={class:"mb-0 text-xl font-semibold leading-normal"},te={class:"recent-estimates"},ee={class:"relative z-10 flex items-center justify-between mb-3"},ae={class:"mb-0 text-xl font-semibold leading-normal"},se={setup(i){const o=T(),{t:a}=U(),n=D(),d=$(null),l=$(null),f=V(()=>[{key:"formattedDueDate",label:a("dashboard.recent_invoices_card.due_on")},{key:"user",label:a("dashboard.recent_invoices_card.customer")},{key:"due_amount",label:a("dashboard.recent_invoices_card.amount_due")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]),p=V(()=>[{key:"formattedEstimateDate",label:a("dashboard.recent_estimate_card.date")},{key:"user",label:a("dashboard.recent_estimate_card.customer")},{key:"total",label:a("dashboard.recent_estimate_card.amount_due")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]);function C(){return n.hasAbilities([h.DELETE_INVOICE,h.EDIT_INVOICE,h.VIEW_INVOICE,h.SEND_INVOICE])}function E(){return n.hasAbilities([h.CREATE_ESTIMATE,h.EDIT_ESTIMATE,h.VIEW_ESTIMATE,h.SEND_ESTIMATE])}return(g,b)=>{const w=c("BaseButton"),S=c("router-link"),k=c("BaseFormatMoney"),P=c("BaseTable");return _(),v("div",null,[t("div",Yt,[t("div",Kt,[t("div",Qt,[t("h6",Xt,m(g.$t("dashboard.recent_invoices_card.title")),1),e(w,{size:"sm",variant:"primary-outline",onClick:b[0]||(b[0]=u=>g.$router.push("/admin/invoices"))},{default:r(()=>[y(m(g.$t("dashboard.recent_invoices_card.view_all")),1)]),_:1})]),e(P,{data:s(o).recentDueInvoices,columns:s(f),loading:!s(o).isDashboardDataLoaded},M({"cell-user":r(({row:u})=>[e(S,{to:{path:`invoices/${u.data.id}/view`},class:"font-medium text-primary-500"},{default:r(()=>[y(m(u.data.customer.name),1)]),_:2},1032,["to"])]),"cell-due_amount":r(({row:u})=>[e(k,{amount:u.data.due_amount,currency:u.data.customer.currency},null,8,["amount","currency"])]),_:2},[C()?{name:"cell-actions",fn:r(({row:u})=>[e(Q,{row:u.data,table:d.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])]),t("div",te,[t("div",ee,[t("h6",ae,m(g.$t("dashboard.recent_estimate_card.title")),1),e(w,{variant:"primary-outline",size:"sm",onClick:b[1]||(b[1]=u=>g.$router.push("/admin/estimates"))},{default:r(()=>[y(m(g.$t("dashboard.recent_estimate_card.view_all")),1)]),_:1})]),e(P,{data:s(o).recentEstimates,columns:s(p),loading:!s(o).isDashboardDataLoaded},M({"cell-user":r(({row:u})=>[e(S,{to:{path:`estimates/${u.data.id}/view`},class:"font-medium text-primary-500"},{default:r(()=>[y(m(u.data.customer.name),1)]),_:2},1032,["to"])]),"cell-total":r(({row:u})=>[e(k,{amount:u.data.total,currency:u.data.customer.currency},null,8,["amount","currency"])]),_:2},[E()?{name:"cell-actions",fn:r(({row:u})=>[e(X,{row:u,table:l.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])])])}}},de={setup(i){const o=Z(),a=D(),n=G();return J(()=>{o.meta.ability&&!a.hasAbilities(o.meta.ability)?n.push({name:"account.settings"}):o.meta.isOwner&&!a.currentUser.is_owner&&n.push({name:"account.settings"})}),(d,l)=>{const f=c("BasePage");return _(),x(f,null,{default:r(()=>[e(bt),e(Jt),e(se)]),_:1})}}};export{de as default};
import{aU as $r,aV as Br,aQ as Kr,aW as Hr,o as Wr,e as Xr,h as Yr}from"./vendor.01d0adc5.js";import{_ as Vr}from"./main.75722495.js";var gr={exports:{}};/**!
var A=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var I=(a,e,n)=>e in a?A(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,V=(a,e)=>{for(var n in e||(e={}))W.call(e,n)&&I(a,n,e[n]);if(x)for(var n of x(e))X.call(e,n)&&I(a,n,e[n]);return a},j=(a,e)=>K(a,Q(e));import{r as o,o as g,e as q,f as s,u as t,w as l,J as Z,B as L,G as ee,aN as te,k as b,L as v,M as E,S as ae,O as se,aP as ne,T as ie,C as oe,l as y,j as h,h as B,t as T,m as le,i as re,U as me,F as de}from"./vendor.01d0adc5.js";import{k as P,r as ue,b as ce,m as pe}from"./main.75722495.js";import{_ as ge,a as _e,b as fe,c as ve,d as be,e as ye,f as we}from"./SalesTax.0ff2d954.js";import{_ as Ee}from"./CreateCustomFields.a3a572c4.js";import{_ as Be}from"./ExchangeRateConverter.7d8c4309.js";import{_ as $e}from"./TaxTypeModal.bf6662b3.js";import"./DragIcon.213b1d78.js";import"./SelectNotePopup.781ad74a.js";import"./NoteModal.f6d01f84.js";import"./payment.5c57bec3.js";import"./exchange-rate.dffa79b6.js";const Se={class:"md:grid-cols-12 grid-cols-1 md:gap-x-6 mt-6 mb-8 grid gap-y-5"},he={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(a){const e=P();return(n,r)=>{const $=o("BaseCustomerSelectPopup"),m=o("BaseDatePicker"),c=o("BaseInputGroup"),p=o("BaseInput"),S=o("BaseInputGrid");return g(),q("div",Se,[s($,{modelValue:t(e).newEstimate.customer,"onUpdate:modelValue":r[0]||(r[0]=d=>t(e).newEstimate.customer=d),valid:a.v.customer_id,"content-loading":a.isLoading,type:"estimate",class:"col-span-5 pr-0"},null,8,["modelValue","valid","content-loading"]),s(S,{class:"col-span-7"},{default:l(()=>[s(c,{label:n.$t("reports.estimates.estimate_date"),"content-loading":a.isLoading,required:"",error:a.v.estimate_date.$error&&a.v.estimate_date.$errors[0].$message},{default:l(()=>[s(m,{modelValue:t(e).newEstimate.estimate_date,"onUpdate:modelValue":r[1]||(r[1]=d=>t(e).newEstimate.estimate_date=d),"content-loading":a.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),s(c,{label:n.$t("estimates.expiry_date"),"content-loading":a.isLoading},{default:l(()=>[s(m,{modelValue:t(e).newEstimate.expiry_date,"onUpdate:modelValue":r[2]||(r[2]=d=>t(e).newEstimate.expiry_date=d),"content-loading":a.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),s(c,{label:n.$t("estimates.estimate_number"),"content-loading":a.isLoading,required:"",error:a.v.estimate_number.$error&&a.v.estimate_number.$errors[0].$message},{default:l(()=>[s(p,{modelValue:t(e).newEstimate.estimate_number,"onUpdate:modelValue":r[3]||(r[3]=d=>t(e).newEstimate.estimate_number=d),"content-loading":a.isLoading},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),s(Be,{store:t(e),"store-prop":"newEstimate",v:a.v,"is-loading":a.isLoading,"is-edit":a.isEdit,"customer-currency":t(e).newEstimate.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])]),_:1})])}}},Ce=["onSubmit"],ke={class:"flex"},xe={class:"block mt-10 estimate-foot lg:flex lg:justify-between lg:items-start"},Ie={class:"relative w-full lg:w-1/2"},Re={setup(a){const e=P(),n=ue(),r=ce(),$=pe(),{t:m}=Z(),c="newEstimate";let p=L(!1);const S=L(["customer","company","customerCustom","estimate","estimateCustom"]);let d=ee(),M=te(),_=b(()=>e.isFetchingInitialSettings),F=b(()=>f.value?m("estimates.edit_estimate"):m("estimates.new_estimate")),f=b(()=>d.name==="estimates.edit");const N=b(()=>r.selectedCompanySettings.sales_tax_us_enabled==="YES"&&n.salesTaxUSEnabled),U={estimate_date:{required:v.withMessage(m("validation.required"),E)},estimate_number:{required:v.withMessage(m("validation.required"),E)},reference_number:{maxLength:v.withMessage(m("validation.price_maxlength"),ae(255))},customer_id:{required:v.withMessage(m("validation.required"),E)},exchange_rate:{required:se(function(){return v.withMessage(m("validation.required"),E),e.showExchangeRate}),decimal:v.withMessage(m("validation.valid_exchange_rate"),ne)}},w=ie(U,b(()=>e.newEstimate),{$scope:c});oe(()=>e.newEstimate.customer,i=>{i&&i.currency?e.newEstimate.selectedCurrency=i.currency:e.newEstimate.selectedCurrency=r.selectedCompanyCurrency}),e.resetCurrentEstimate(),$.resetCustomFields(),w.value.$reset,e.fetchEstimateInitialSettings(f.value);async function G(){if(w.value.$touch(),w.value.$invalid)return!1;p.value=!0;let i=j(V({},e.newEstimate),{sub_total:e.getSubTotal,total:e.getTotal,tax:e.getTotalTax});const C=f.value?e.updateEstimate:e.addEstimate;try{let u=await C(i);u.data.data&&M.push(`/admin/estimates/${u.data.data.id}/view`)}catch(u){console.error(u)}p.value=!1}return(i,C)=>{const u=o("BaseBreadcrumbItem"),D=o("BaseBreadcrumb"),k=o("BaseButton"),R=o("router-link"),H=o("BaseIcon"),O=o("BasePageHeader"),z=o("BaseScrollPane"),J=o("BasePage");return g(),q(de,null,[s(ge),s(_e),s($e),t(N)&&(!t(_)||t(d).query.customer)?(g(),y(fe,{key:0,store:t(e),"store-prop":"newEstimate","is-edit":t(f),customer:t(e).newEstimate.customer},null,8,["store","is-edit","customer"])):h("",!0),s(J,{class:"relative estimate-create-page"},{default:l(()=>[B("form",{onSubmit:me(G,["prevent"])},[s(O,{title:t(F)},{actions:l(()=>[i.$route.name==="estimates.edit"?(g(),y(R,{key:0,to:`/estimates/pdf/${t(e).newEstimate.unique_hash}`,target:"_blank"},{default:l(()=>[s(k,{class:"mr-3",variant:"primary-outline",type:"button"},{default:l(()=>[B("span",ke,T(i.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):h("",!0),s(k,{loading:t(p),disabled:t(p),"content-loading":t(_),variant:"primary",type:"submit"},{left:l(Y=>[t(p)?h("",!0):(g(),y(H,{key:0,class:le(Y.class),name:"SaveIcon"},null,8,["class"]))]),default:l(()=>[re(" "+T(i.$t("estimates.save_estimate")),1)]),_:1},8,["loading","disabled","content-loading"])]),default:l(()=>[s(D,null,{default:l(()=>[s(u,{title:i.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),s(u,{title:i.$tc("estimates.estimate",2),to:"/admin/estimates"},null,8,["title"]),i.$route.name==="estimates.edit"?(g(),y(u,{key:0,title:i.$t("estimates.edit_estimate"),to:"#",active:""},null,8,["title"])):(g(),y(u,{key:1,title:i.$t("estimates.new_estimate"),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),s(he,{v:t(w),"is-loading":t(_),"is-edit":t(f)},null,8,["v","is-loading","is-edit"]),s(z,null,{default:l(()=>[s(ve,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(_),"item-validation-scope":c,store:t(e),"store-prop":"newEstimate"},null,8,["currency","is-loading","store"]),B("div",xe,[B("div",Ie,[s(be,{store:t(e),"store-prop":"newEstimate",fields:S.value,type:"Estimate"},null,8,["store","fields"]),s(Ee,{type:"Estimate","is-edit":t(f),"is-loading":t(_),store:t(e),"store-prop":"newEstimate","custom-field-scope":c,class:"mb-6"},null,8,["is-edit","is-loading","store"]),s(ye,{store:t(e),"component-name":"EstimateTemplate","store-prop":"newEstimate"},null,8,["store"])]),s(we,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(_),store:t(e),"store-prop":"newEstimate","tax-popup-type":"estimate"},null,8,["currency","is-loading","store"])])]),_:1})],40,Ce)]),_:1})],64)}}};export{Re as default};
import{_ as r}from"./main.75722495.js";import{o as s,e as o,h as C,m as l}from"./vendor.01d0adc5.js";const n={},i={width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_=C("circle",{cx:"25",cy:"25",r:"25",fill:"#FDE4E5"},null,-1),a=C("path",{d:"M27.2031 23.6016C28.349 23.9401 29.2083 24.6562 29.7812 25.75C30.3802 26.8438 30.4714 27.9766 30.0547 29.1484C29.7422 30.0078 29.2083 30.6979 28.4531 31.2188C27.6979 31.7135 26.8516 31.974 25.9141 32V33.875C25.9141 34.0573 25.849 34.2005 25.7188 34.3047C25.6146 34.4349 25.4714 34.5 25.2891 34.5H24.0391C23.8568 34.5 23.7005 34.4349 23.5703 34.3047C23.4661 34.2005 23.4141 34.0573 23.4141 33.875V32C22.1641 32 21.0443 31.6094 20.0547 30.8281C19.8984 30.6979 19.8073 30.5417 19.7812 30.3594C19.7552 30.1771 19.8203 30.0208 19.9766 29.8906L21.3047 28.5625C21.5651 28.3281 21.8255 28.3021 22.0859 28.4844C22.4766 28.7448 22.9193 28.875 23.4141 28.875H25.9922C26.3307 28.875 26.6042 28.7708 26.8125 28.5625C27.0469 28.3281 27.1641 28.0417 27.1641 27.7031C27.1641 27.1302 26.8906 26.7656 26.3438 26.6094L22.3203 25.4375C21.4349 25.1771 20.6927 24.7083 20.0938 24.0312C19.4948 23.3542 19.1432 22.5729 19.0391 21.6875C18.9349 20.4115 19.2995 19.3177 20.1328 18.4062C20.9922 17.4688 22.0599 17 23.3359 17H23.4141V15.125C23.4141 14.9427 23.4661 14.7995 23.5703 14.6953C23.7005 14.5651 23.8568 14.5 24.0391 14.5H25.2891C25.4714 14.5 25.6146 14.5651 25.7188 14.6953C25.849 14.7995 25.9141 14.9427 25.9141 15.125V17C27.1641 17 28.2839 17.3906 29.2734 18.1719C29.4297 18.3021 29.5208 18.4583 29.5469 18.6406C29.5729 18.8229 29.5078 18.9792 29.3516 19.1094L28.0234 20.4375C27.763 20.6719 27.5026 20.6979 27.2422 20.5156C26.8516 20.2552 26.4089 20.125 25.9141 20.125H23.3359C22.9974 20.125 22.7109 20.2422 22.4766 20.4766C22.2682 20.6849 22.1641 20.9583 22.1641 21.2969C22.1641 21.5312 22.2422 21.7526 22.3984 21.9609C22.5547 22.1693 22.75 22.3125 22.9844 22.3906L27.2031 23.6016Z",fill:"#FB7178"},null,-1),h=[_,a];function H(t,e){return s(),o("svg",i,h)}var g=r(n,[["render",H]]);const V=C("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),d=C("path",{d:"M28.25 24.5V27H20.75V24.5H28.25ZM31.7266 18.6016C31.9089 18.7839 32 19.0052 32 19.2656V19.5H27V14.5H27.2344C27.4948 14.5 27.7161 14.5911 27.8984 14.7734L31.7266 18.6016ZM25.75 19.8125C25.75 20.0729 25.8411 20.2943 26.0234 20.4766C26.2057 20.6589 26.4271 20.75 26.6875 20.75H32V33.5625C32 33.8229 31.9089 34.0443 31.7266 34.2266C31.5443 34.4089 31.3229 34.5 31.0625 34.5H17.9375C17.6771 34.5 17.4557 34.4089 17.2734 34.2266C17.0911 34.0443 17 33.8229 17 33.5625V15.4375C17 15.1771 17.0911 14.9557 17.2734 14.7734C17.4557 14.5911 17.6771 14.5 17.9375 14.5H25.75V19.8125ZM19.5 17.3125V17.9375C19.5 18.1458 19.6042 18.25 19.8125 18.25H22.9375C23.1458 18.25 23.25 18.1458 23.25 17.9375V17.3125C23.25 17.1042 23.1458 17 22.9375 17H19.8125C19.6042 17 19.5 17.1042 19.5 17.3125ZM19.5 19.8125V20.4375C19.5 20.6458 19.6042 20.75 19.8125 20.75H22.9375C23.1458 20.75 23.25 20.6458 23.25 20.4375V19.8125C23.25 19.6042 23.1458 19.5 22.9375 19.5H19.8125C19.6042 19.5 19.5 19.6042 19.5 19.8125ZM29.5 31.6875V31.0625C29.5 30.8542 29.3958 30.75 29.1875 30.75H26.0625C25.8542 30.75 25.75 30.8542 25.75 31.0625V31.6875C25.75 31.8958 25.8542 32 26.0625 32H29.1875C29.3958 32 29.5 31.8958 29.5 31.6875ZM29.5 23.875C29.5 23.6927 29.4349 23.5495 29.3047 23.4453C29.2005 23.3151 29.0573 23.25 28.875 23.25H20.125C19.9427 23.25 19.7865 23.3151 19.6562 23.4453C19.5521 23.5495 19.5 23.6927 19.5 23.875V27.625C19.5 27.8073 19.5521 27.9635 19.6562 28.0938C19.7865 28.1979 19.9427 28.25 20.125 28.25H28.875C29.0573 28.25 29.2005 28.1979 29.3047 28.0938C29.4349 27.9635 29.5 27.8073 29.5 27.625V23.875Z",fill:"currentColor"},null,-1),p=[V,d],v={props:{colorClass:{type:String,default:"text-primary-500"}},setup(t){return(e,c)=>(s(),o("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:l(t.colorClass)},p,2))}},f=C("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),u=C("path",{d:"M26.75 19.8125C26.75 20.0729 26.8411 20.2943 27.0234 20.4766C27.2057 20.6589 27.4271 20.75 27.6875 20.75H33V33.5625C33 33.8229 32.9089 34.0443 32.7266 34.2266C32.5443 34.4089 32.3229 34.5 32.0625 34.5H18.9375C18.6771 34.5 18.4557 34.4089 18.2734 34.2266C18.0911 34.0443 18 33.8229 18 33.5625V15.4375C18 15.1771 18.0911 14.9557 18.2734 14.7734C18.4557 14.5911 18.6771 14.5 18.9375 14.5H26.75V19.8125ZM33 19.2656V19.5H28V14.5H28.2344C28.4948 14.5 28.7161 14.5911 28.8984 14.7734L32.7266 18.6016C32.9089 18.7839 33 19.0052 33 19.2656Z",fill:"currentColor"},null,-1),w=[f,u],M={props:{colorClass:{type:String,default:"text-primary-500"}},setup(t){return(e,c)=>(s(),o("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:l(t.colorClass)},w,2))}};export{g as D,v as _,M as a};
import{k as R,c as z,u as P,j as V,e as J,g as E}from"./main.75722495.js";import{ah as O,J as U,G as H,aN as W,r as T,o as i,l,w as r,u as n,f as m,i as u,t as d,j as g}from"./vendor.01d0adc5.js";const G={props:{row:{type:Object,default:null},table:{type:Object,default:null}},setup(o){const y=o,S=O("utils"),k=R(),D=z(),_=P(),p=V(),f=J(),{t:s}=U(),v=H(),I=W();async function C(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(t=>{e=e,t&&k.deleteEstimate({ids:[e]}).then(a=>{a&&(y.table&&y.table.refresh(),a.data&&I.push("/admin/estimates"),k.$patch(h=>{h.selectedEstimates=[],h.selectAllField=!1}))})})}function $(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_conversion"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{t&&k.convertToInvoice(e).then(a=>{a.data&&I.push(`/admin/invoices/${a.data.data.id}/edit`)})})}async function N(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_mark_as_sent"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{const a={id:e,status:"SENT"};t&&k.markAsSent(a).then(h=>{y.table&&y.table.refresh()})})}function x(e){return(e.status=="SENT"||e.status=="VIEWED")&&v.name!=="estimates.view"&&f.hasAbilities(E.SEND_ESTIMATE)}async function b(e){D.openModal({title:s("estimates.send_estimate"),componentName:"SendEstimateModal",id:e.id,data:e,variant:"lg"})}async function B(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_mark_as_accepted"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{const a={id:e,status:"ACCEPTED"};t&&k.markAsAccepted(a).then(h=>{y.table&&y.table.refresh()})})}async function M(e){p.openDialog({title:s("general.are_you_sure"),message:s("estimates.confirm_mark_as_rejected"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(t=>{const a={id:e,status:"REJECTED"};t&&k.markAsRejected(a).then(h=>{y.table&&y.table.refresh()})})}function L(){let e=`${window.location.origin}/estimates/pdf/${y.row.unique_hash}`;S.copyTextToClipboard(e),_.showNotification({type:"success",message:s("general.copied_pdf_url_clipboard")})}return(e,t)=>{const a=T("BaseIcon"),h=T("BaseButton"),c=T("BaseDropdownItem"),A=T("router-link"),j=T("BaseDropdown");return i(),l(j,null,{activator:r(()=>[n(v).name==="estimates.view"?(i(),l(h,{key:0,variant:"primary"},{default:r(()=>[m(a,{name:"DotsHorizontalIcon",class:"text-white"})]),_:1})):(i(),l(a,{key:1,class:"text-gray-500",name:"DotsHorizontalIcon"}))]),default:r(()=>[n(v).name==="estimates.view"?(i(),l(c,{key:0,onClick:L},{default:r(()=>[m(a,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.copy_pdf_url")),1)]),_:1})):g("",!0),n(f).hasAbilities(n(E).EDIT_ESTIMATE)?(i(),l(A,{key:1,to:`/admin/estimates/${o.row.id}/edit`},{default:r(()=>[m(c,null,{default:r(()=>[m(a,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):g("",!0),n(f).hasAbilities(n(E).DELETE_ESTIMATE)?(i(),l(c,{key:2,onClick:t[0]||(t[0]=w=>C(o.row.id))},{default:r(()=>[m(a,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.delete")),1)]),_:1})):g("",!0),n(v).name!=="estimates.view"&&n(f).hasAbilities(n(E).VIEW_ESTIMATE)?(i(),l(A,{key:3,to:`estimates/${o.row.id}/view`},{default:r(()=>[m(c,null,{default:r(()=>[m(a,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):g("",!0),n(f).hasAbilities(n(E).CREATE_INVOICE)?(i(),l(c,{key:4,onClick:t[1]||(t[1]=w=>$(o.row.id))},{default:r(()=>[m(a,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.convert_to_invoice")),1)]),_:1})):g("",!0),o.row.status!=="SENT"&&n(v).name!=="estimates.view"&&n(f).hasAbilities(n(E).SEND_ESTIMATE)?(i(),l(c,{key:5,onClick:t[2]||(t[2]=w=>N(o.row.id))},{default:r(()=>[m(a,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.mark_as_sent")),1)]),_:1})):g("",!0),o.row.status!=="SENT"&&n(v).name!=="estimates.view"&&n(f).hasAbilities(n(E).SEND_ESTIMATE)?(i(),l(c,{key:6,onClick:t[3]||(t[3]=w=>b(o.row))},{default:r(()=>[m(a,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.send_estimate")),1)]),_:1})):g("",!0),x(o.row)?(i(),l(c,{key:7,onClick:t[4]||(t[4]=w=>b(o.row))},{default:r(()=>[m(a,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.resend_estimate")),1)]),_:1})):g("",!0),o.row.status!=="ACCEPTED"&&n(f).hasAbilities(n(E).EDIT_ESTIMATE)?(i(),l(c,{key:8,onClick:t[5]||(t[5]=w=>B(o.row.id))},{default:r(()=>[m(a,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.mark_as_accepted")),1)]),_:1})):g("",!0),o.row.status!=="REJECTED"&&n(f).hasAbilities(n(E).EDIT_ESTIMATE)?(i(),l(c,{key:9,onClick:t[6]||(t[6]=w=>M(o.row.id))},{default:r(()=>[m(a,{name:"XCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),u(" "+d(e.$t("estimates.mark_as_rejected")),1)]),_:1})):g("",!0)]),_:1})}}};export{G as _};
import{d as V,b as _}from"./main.75722495.js";import{u as D}from"./exchange-rate.dffa79b6.js";import{B as p,k as u,C as l,b1 as F,r as d,K as N,u as a,o as x,l as A,w as h,e as G,q,f as v,m as L,j as C,h as E,t as b}from"./vendor.01d0adc5.js";const O={key:0},U={class:"text-gray-500 sm:text-sm"},z={class:"text-gray-400 text-xs mt-2 font-light"},M={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},store:{type:Object,default:null},storeProp:{type:String,default:""},isEdit:{type:Boolean,default:!1},customerCurrency:{type:[String,Number],default:null}},setup(r){const e=r,m=V(),B=_(),g=D(),f=p(!1);let n=p(!1);m.fetchCurrencies();const s=u(()=>B.selectedCompanyCurrency),c=u(()=>m.currencies.find(t=>t.id===e.store[e.storeProp].currency_id)),P=u(()=>s.value.id!==e.customerCurrency);l(()=>e.store[e.storeProp].customer,t=>{R(t)},{deep:!0}),l(()=>e.store[e.storeProp].currency_id,t=>{$(t)},{immediate:!0}),l(()=>e.customerCurrency,t=>{t&&e.isEdit&&w()},{immediate:!0});function w(){P.value&&g.checkForActiveProvider(e.customerCurrency).then(t=>{t.data.success&&(f.value=!0)})}function R(t){t?e.store[e.storeProp].currency_id=t.currency.id:e.store[e.storeProp].currency_id=s.value.id}async function $(t){t!==s.value.id?(!e.isEdit&&t&&await y(t),e.store.showExchangeRate=!0):e.store.showExchangeRate=!1}function y(t){n.value=!0,g.getCurrentExchangeRate(t).then(o=>{o.data&&!o.data.error?e.store[e.storeProp].exchange_rate=o.data.exchangeRate[0]:e.store[e.storeProp].exchange_rate="",n.value=!1}).catch(o=>{n.value=!1})}return F(()=>{e.store.showExchangeRate=!1}),(t,o)=>{const k=d("BaseIcon"),S=d("BaseInput"),I=d("BaseInputGroup"),j=N("tooltip");return r.store.showExchangeRate&&a(c)?(x(),A(I,{key:0,"content-loading":a(n)&&!r.isEdit,label:t.$t("settings.exchange_rate.exchange_rate"),error:r.v.exchange_rate.$error&&r.v.exchange_rate.$errors[0].$message,required:""},{labelRight:h(()=>[f.value&&r.isEdit?(x(),G("div",O,[q(v(k,{name:"RefreshIcon",class:L(`h-4 w-4 text-primary-500 cursor-pointer outline-none ${a(n)?" animate-spin rotate-180 cursor-not-allowed pointer-events-none ":""}`),onClick:o[0]||(o[0]=i=>y(r.customerCurrency))},null,8,["class"]),[[j,{content:"Fetch Latest Exchange rate"}]])])):C("",!0)]),default:h(()=>[v(S,{modelValue:r.store[r.storeProp].exchange_rate,"onUpdate:modelValue":o[1]||(o[1]=i=>r.store[r.storeProp].exchange_rate=i),"content-loading":a(n)&&!r.isEdit,addon:`1 ${a(c).code} =`,disabled:a(n),onInput:o[2]||(o[2]=i=>r.v.exchange_rate.$touch())},{right:h(()=>[E("span",U,b(a(s).code),1)]),_:1},8,["modelValue","content-loading","addon","disabled"]),E("span",z,b(t.$t("settings.exchange_rate.exchange_help_text",{currency:a(c).code,baseCurrency:a(s).code})),1)]),_:1},8,["content-loading","label","error"])):C("",!0)}}};export{M as _};
var ie=Object.defineProperty;var J=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var X=(C,c,n)=>c in C?ie(C,c,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[c]=n,T=(C,c)=>{for(var n in c||(c={}))ue.call(c,n)&&X(C,n,c[n]);if(J)for(var n of J(c))de.call(c,n)&&X(C,n,c[n]);return C};import{u as Z}from"./exchange-rate.dffa79b6.js";import{c as K,b as ge,j as ve}from"./main.75722495.js";import{J as Q,B,k as b,L as V,M as G,O as W,R as pe,T as he,C as L,A as me,r as v,o as k,l as I,w as l,h as y,i as w,t as x,u as e,f as s,j as M,m as ee,U as fe,ah as ye,e as _e,aZ as xe,x as Ce,a_ as Ee,a$ as $e,b0 as be,F as Re,a0 as Be}from"./vendor.01d0adc5.js";import ke from"./BaseTable.6e206ca7.js";const we={class:"flex justify-between w-full"},Ve=["onSubmit"],Ie={class:"px-4 md:px-8 py-8 overflow-y-auto sm:p-6"},Se={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},De={setup(C){const{t:c}=Q();let n=B(!1),u=B(!1),E=B(!1),m=B([]),p=B([]);const _=K(),t=Z();let q=B([]);const A=b(()=>({currentExchangeRate:{key:{required:V.withMessage(c("validation.required"),G)},driver:{required:V.withMessage(c("validation.required"),G)},currencies:{required:V.withMessage(c("validation.required"),G)}},currencyConverter:{type:{required:V.withMessage(c("validation.required"),W(i))},url:{required:V.withMessage(c("validation.required"),W($)),url:V.withMessage(c("validation.invalid_url"),pe)}}})),O=b(()=>t.drivers.map(r=>Object.assign({},r,{key:c(r.key)}))),z=b(()=>_.active&&_.componentName==="ExchangeRateProviderModal");b(()=>_.title);const i=b(()=>t.currentExchangeRate.driver==="currency_converter"),$=b(()=>t.currencyConverter&&t.currencyConverter.type==="DEDICATED"),S=b(()=>{switch(t.currentExchangeRate.driver){case"currency_converter":return"https://www.currencyconverterapi.com";case"currency_freak":return"https://currencyfreaks.com";case"currency_layer":return"https://currencylayer.com";case"open_exchange_rate":return"https://openexchangerates.org";default:return""}}),o=he(A,b(()=>t));function N(){m.value=[]}function F(){const{currencies:r}=t.currentExchangeRate;m.value.forEach(a=>{r.forEach((h,f)=>{h===a&&r.splice(f,1)})}),m.value=[]}function j(){t.currentExchangeRate.key=null,t.currentExchangeRate.currencies=[],t.supportedCurrencies=[]}function d(){t.supportedCurrencies=[],p.value=[],t.currentExchangeRate={id:null,name:"",driver:"",key:"",active:!0,currencies:[]},t.currencyConverter={type:"",url:""},m.value=[]}async function D(){t.currentExchangeRate.driver="currency_converter";let r={};t.isEdit&&(r.provider_id=t.currentExchangeRate.id),u.value=!0,await t.fetchDefaultProviders(),await t.fetchActiveCurrency(r),p.value=t.currentExchangeRate.currencies,u.value=!1}L(()=>i.value,(r,a)=>{r&&ae()},{immediate:!0}),L(()=>t.currentExchangeRate.key,(r,a)=>{r&&P()}),L(()=>{var r;return(r=t==null?void 0:t.currencyConverter)==null?void 0:r.type},(r,a)=>{r&&P()}),P=me.exports.debounce(P,500);function te(){return o.value.$touch(),ne(),!!(o.value.$invalid||m.value.length&&t.currentExchangeRate.active)}async function re(){if(te())return!0;let r=T({},t.currentExchangeRate);i.value&&(r.driver_config=T({},t.currencyConverter),$.value||(r.driver_config.url=""));const a=t.isEdit?t.updateProvider:t.addProvider;n.value=!0,await a(r).then(h=>{n.value=!1,_.refreshData&&_.refreshData(),U()}).catch(h=>{n.value=!1})}async function ae(){let r=await t.getCurrencyConverterServers();q.value=r.data.currency_converter_servers,t.currencyConverter.type="FREE"}function P(){var h;const{driver:r,key:a}=t.currentExchangeRate;if(r&&a){E.value=!0;let f={driver:r,key:a};if(i.value&&!t.currencyConverter.type){E.value=!1;return}((h=t==null?void 0:t.currencyConverter)==null?void 0:h.type)&&(f.type=t.currencyConverter.type),t.fetchCurrencies(f).then(R=>{E.value=!1}).catch(R=>{E.value=!1})}}function ne(r=!0){var h;m.value=[];const{currencies:a}=t.currentExchangeRate;a.length&&((h=t.activeUsedCurrencies)==null?void 0:h.length)&&a.forEach(f=>{t.activeUsedCurrencies.includes(f)&&m.value.push(f)})}function U(){_.closeModal(),setTimeout(()=>{d(),o.value.$reset()},300)}return(r,a)=>{const h=v("BaseIcon"),f=v("BaseMultiselect"),R=v("BaseInputGroup"),Y=v("BaseInput"),oe=v("BaseSwitch"),se=v("BaseInputGrid"),le=v("BaseInfoAlert"),H=v("BaseButton"),ce=v("BaseModal");return k(),I(ce,{show:e(z),onClose:U,onOpen:D},{header:l(()=>[y("div",we,[w(x(e(_).title)+" ",1),s(h,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:U})])]),default:l(()=>[y("form",{onSubmit:fe(re,["prevent"])},[y("div",Ie,[s(se,{layout:"one-column"},{default:l(()=>[s(R,{label:r.$tc("settings.exchange_rate.driver"),"content-loading":e(u),required:"",error:e(o).currentExchangeRate.driver.$error&&e(o).currentExchangeRate.driver.$errors[0].$message,"help-text":e(S)},{default:l(()=>[s(f,{modelValue:e(t).currentExchangeRate.driver,"onUpdate:modelValue":[a[0]||(a[0]=g=>e(t).currentExchangeRate.driver=g),j],options:e(O),"content-loading":e(u),"value-prop":"value","can-deselect":!0,label:"key",searchable:!0,invalid:e(o).currentExchangeRate.driver.$error,onInput:a[1]||(a[1]=g=>e(o).currentExchangeRate.driver.$touch())},null,8,["modelValue","options","content-loading","invalid"])]),_:1},8,["label","content-loading","error","help-text"]),e(i)?(k(),I(R,{key:0,required:"",label:r.$t("settings.exchange_rate.server"),"content-loading":e(u),error:e(o).currencyConverter.type.$error&&e(o).currencyConverter.type.$errors[0].$message},{default:l(()=>[s(f,{modelValue:e(t).currencyConverter.type,"onUpdate:modelValue":[a[2]||(a[2]=g=>e(t).currencyConverter.type=g),j],"content-loading":e(u),"value-prop":"value",searchable:"",options:e(q),invalid:e(o).currencyConverter.type.$error,label:"value"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"])):M("",!0),s(R,{label:r.$t("settings.exchange_rate.key"),required:"","content-loading":e(u),error:e(o).currentExchangeRate.key.$error&&e(o).currentExchangeRate.key.$errors[0].$message},{default:l(()=>[s(Y,{modelValue:e(t).currentExchangeRate.key,"onUpdate:modelValue":a[3]||(a[3]=g=>e(t).currentExchangeRate.key=g),"content-loading":e(u),type:"text",name:"key",loading:e(E),"loading-position":"right",invalid:e(o).currentExchangeRate.key.$error},null,8,["modelValue","content-loading","loading","invalid"])]),_:1},8,["label","content-loading","error"]),e(t).supportedCurrencies.length?(k(),I(R,{key:1,label:r.$t("settings.exchange_rate.currency"),"content-loading":e(u),error:e(o).currentExchangeRate.currencies.$error&&e(o).currentExchangeRate.currencies.$errors[0].$message,"help-text":r.$t("settings.exchange_rate.currency_help_text")},{default:l(()=>[s(f,{modelValue:e(t).currentExchangeRate.currencies,"onUpdate:modelValue":a[4]||(a[4]=g=>e(t).currentExchangeRate.currencies=g),"content-loading":e(u),"value-prop":"code",mode:"tags",searchable:"",options:e(t).supportedCurrencies,invalid:e(o).currentExchangeRate.currencies.$error,label:"code","track-by":"code",onInput:a[5]||(a[5]=g=>e(o).currentExchangeRate.currencies.$touch()),openDirection:"top"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error","help-text"])):M("",!0),e($)?(k(),I(R,{key:2,label:r.$t("settings.exchange_rate.url"),"content-loading":e(u),error:e(o).currencyConverter.url.$error&&e(o).currencyConverter.url.$errors[0].$message},{default:l(()=>[s(Y,{modelValue:e(t).currencyConverter.url,"onUpdate:modelValue":a[6]||(a[6]=g=>e(t).currencyConverter.url=g),"content-loading":e(u),type:"url",invalid:e(o).currencyConverter.url.$error,onInput:a[7]||(a[7]=g=>e(o).currencyConverter.url.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])):M("",!0),s(oe,{modelValue:e(t).currentExchangeRate.active,"onUpdate:modelValue":a[8]||(a[8]=g=>e(t).currentExchangeRate.active=g),class:"flex","label-right":r.$t("settings.exchange_rate.active")},null,8,["modelValue","label-right"])]),_:1}),e(m).length&&e(t).currentExchangeRate.active?(k(),I(le,{key:0,class:"mt-5",title:r.$t("settings.exchange_rate.currency_in_used"),lists:[e(m).toString()],actions:["Remove"],onHide:N,onRemove:F},null,8,["title","lists"])):M("",!0)]),y("div",Se,[s(H,{class:"mr-3",variant:"primary-outline",type:"button",disabled:e(n),onClick:U},{default:l(()=>[w(x(r.$t("general.cancel")),1)]),_:1},8,["disabled"]),s(H,{loading:e(n),disabled:e(n)||e(E),variant:"primary",type:"submit"},{left:l(g=>[e(n)?M("",!0):(k(),I(h,{key:0,name:"SaveIcon",class:ee(g.class)},null,8,["class"]))]),default:l(()=>[w(" "+x(e(t).isEdit?r.$t("general.update"):r.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Ve)]),_:1},8,["show"])}}},Me={slot:"header",class:"flex flex-wrap justify-between lg:flex-nowrap"},qe={class:"text-lg font-medium text-left"},Ne={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},je={class:"mt-4 lg:mt-0 lg:ml-2"},Pe={class:"capitalize"},Ue={class:"inline-block"},Ge={setup(C){const{tm:c,t:n}=Q();ge();const u=Z(),E=K(),m=ve();let p=B("");const _=ye("utils"),t=b(()=>[{key:"driver",label:n("settings.exchange_rate.driver"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"key",label:n("settings.exchange_rate.key"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"active",label:n("settings.exchange_rate.active"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function q({page:i,sort:$}){let S=Be({orderByField:$.fieldName||"created_at",orderBy:$.order||"desc",page:i}),o=await u.fetchProviders(S);return{data:o.data.data,pagination:{totalPages:o.data.meta.last_page,currentPage:i,totalCount:o.data.meta.total,limit:5}}}function A(){E.openModal({title:n("settings.exchange_rate.new_driver"),componentName:"ExchangeRateProviderModal",size:"md",refreshData:p.value&&p.value.refresh})}function O(i){u.fetchProvider(i),E.openModal({title:n("settings.exchange_rate.edit_driver"),componentName:"ExchangeRateProviderModal",size:"md",data:i,refreshData:p.value&&p.value.refresh})}function z(i){m.openDialog({title:n("general.are_you_sure"),message:n("settings.exchange_rate.exchange_rate_confirm_delete"),yesLabel:n("general.ok"),noLabel:n("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async $=>{$&&(await u.deleteExchangeRate(i),p.value&&p.value.refresh())})}return(i,$)=>{const S=v("BaseButton"),o=v("BaseBadge"),N=v("BaseDropdownItem"),F=v("BaseDropdown"),j=v("BaseCard");return k(),_e(Re,null,[s(De),s(j,null,{default:l(()=>[y("div",Me,[y("div",null,[y("h6",qe,x(i.$t("settings.menu_title.exchange_rate")),1),y("p",Ne,x(i.$t("settings.exchange_rate.providers_description")),1)]),y("div",je,[s(S,{variant:"primary-outline",size:"lg",onClick:A},{left:l(d=>[s(e(xe),{class:ee(d.class)},null,8,["class"])]),default:l(()=>[w(" "+x(i.$t("settings.exchange_rate.new_driver")),1)]),_:1})])]),s(ke,{ref:(d,D)=>{D.table=d,Ce(p)?p.value=d:p=d},class:"mt-16",data:q,columns:e(t)},{"cell-driver":l(({row:d})=>[y("span",Pe,x(d.data.driver.replace("_"," ")),1)]),"cell-active":l(({row:d})=>[s(o,{"bg-color":e(_).getBadgeStatusColor(d.data.active?"YES":"NO").bgColor,color:e(_).getBadgeStatusColor(d.data.active?"YES":"NO").color},{default:l(()=>[w(x(d.data.active?"YES":"NO"),1)]),_:2},1032,["bg-color","color"])]),"cell-actions":l(({row:d})=>[s(F,null,{activator:l(()=>[y("div",Ue,[s(e(Ee),{class:"w-5 text-gray-500"})])]),default:l(()=>[s(N,{onClick:D=>O(d.data.id)},{default:l(()=>[s(e($e),{class:"h-5 mr-3 text-gray-600"}),w(" "+x(i.$t("general.edit")),1)]),_:2},1032,["onClick"]),s(N,{onClick:D=>z(d.data.id)},{default:l(()=>[s(e(be),{class:"h-5 mr-3 text-gray-600"}),w(" "+x(i.$t("general.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["columns"])]),_:1})],64)}}};export{Ge as default};
import{j as v,u as $,e as M,c as S,g as k}from"./main.75722495.js";import{u as E}from"./category.4b37f0ed.js";import{J as I,G as T,ah as z,r as i,o as m,l as p,w as e,u as g,f as n,i as w,t as C,j as N,B as P,k as F,e as V,m as L,h as j,F as A}from"./vendor.01d0adc5.js";import{_ as H}from"./CategoryModal.9a2e05b9.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(y){const d=y,B=v();$();const{t:o}=I(),s=E(),h=T(),_=M(),x=S();z("utils");function b(l){s.fetchCategory(l),x.openModal({title:o("settings.expense_category.edit_category"),componentName:"CategoryModal",refreshData:d.loadData,size:"sm"})}function r(l){B.openDialog({title:o("general.are_you_sure"),message:o("settings.expense_category.confirm_delete"),yesLabel:o("general.ok"),noLabel:o("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async()=>{if((await s.deleteCategory(l)).data.success)return d.loadData&&d.loadData(),!0;d.loadData&&d.loadData()})}return(l,t)=>{const c=i("BaseIcon"),u=i("BaseButton"),f=i("BaseDropdownItem"),a=i("BaseDropdown");return m(),p(a,null,{activator:e(()=>[g(h).name==="expenseCategorys.view"?(m(),p(u,{key:0,variant:"primary"},{default:e(()=>[n(c,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),p(c,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:e(()=>[g(_).hasAbilities(g(k).EDIT_EXPENSE)?(m(),p(f,{key:0,onClick:t[0]||(t[0]=D=>b(y.row.id))},{default:e(()=>[n(c,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),w(" "+C(l.$t("general.edit")),1)]),_:1})):N("",!0),g(_).hasAbilities(g(k).DELETE_EXPENSE)?(m(),p(f,{key:1,onClick:t[1]||(t[1]=D=>r(y.row.id))},{default:e(()=>[n(c,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),w(" "+C(l.$t("general.delete")),1)]),_:1})):N("",!0)]),_:1})}}},X={class:"w-64"},G={class:"truncate"},K={setup(y){const d=E();v();const B=S(),{t:o}=I(),s=P(null),h=F(()=>[{key:"name",label:o("settings.expense_category.category_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"description",label:o("settings.expense_category.category_description"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function _({page:r,filter:l,sort:t}){let c={orderByField:t.fieldName||"created_at",orderBy:t.order||"desc",page:r},u=await d.fetchCategories(c);return{data:u.data.data,pagination:{totalPages:u.data.meta.last_page,currentPage:r,totalCount:u.data.meta.total,limit:5}}}function x(){B.openModal({title:o("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm",refreshData:s.value&&s.value.refresh})}async function b(){s.value&&s.value.refresh()}return(r,l)=>{const t=i("BaseIcon"),c=i("BaseButton"),u=i("BaseTable"),f=i("BaseSettingCard");return m(),V(A,null,[n(H),n(f,{title:r.$t("settings.expense_category.title"),description:r.$t("settings.expense_category.description")},{action:e(()=>[n(c,{variant:"primary-outline",type:"button",onClick:x},{left:e(a=>[n(t,{class:L(a.class),name:"PlusIcon"},null,8,["class"])]),default:e(()=>[w(" "+C(r.$t("settings.expense_category.add_new_category")),1)]),_:1})]),default:e(()=>[n(u,{ref:(a,D)=>{D.table=a,s.value=a},data:_,columns:g(h),class:"mt-16"},{"cell-description":e(({row:a})=>[j("div",X,[j("p",G,C(a.data.description),1)])]),"cell-actions":e(({row:a})=>[n(O,{row:a.data,table:s.value,"load-data":b},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{K as default};
var re=Object.defineProperty;var X=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var Q=(t,i,a)=>i in t?re(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a,W=(t,i)=>{for(var a in i||(i={}))se.call(i,a)&&Q(t,a,i[a]);if(X)for(var a of X(i))le.call(i,a)&&Q(t,a,i[a]);return t};import{u as j}from"./disk.518ebc4b.js";import{_ as F,c as G,b as ne,j as de}from"./main.75722495.js";import{J as A,B as p,k as S,L as g,M as D,T as R,b1 as Y,a0 as L,r as f,o as y,e as h,h as b,f as r,w as n,t as V,j as E,g as z,U as K,R as ue,a7 as fe,l as N,i as U,aj as ke,ah as me,m as ve,x as Z,u as P,F as ge}from"./vendor.01d0adc5.js";const ce={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(null),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.dropBoxDiskConfig.selected_driver=v}}),m=S(()=>({dropBoxDiskConfig:{root:{required:g.withMessage(u("validation.required"),D)},key:{required:g.withMessage(u("validation.required"),D)},secret:{required:g.withMessage(u("validation.required"),D)},token:{required:g.withMessage(u("validation.required"),D)},app:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)},name:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.dropBoxDiskConfig={name:null,selected_driver:"dropbox",token:null,key:null,secret:null,app:null}}),B();async function B(){s.value=!0;let v=L({disk:"dropbox"});if(t.isEdit)Object.assign(a.dropBoxDiskConfig,e.data),k.value=e.data.set_as_default,k.value&&(l.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.dropBoxDiskConfig,$.data)}d.value=t.disks.find($=>$.value=="dropbox"),s.value=!1}const M=S(()=>!!(t.isEdit&&k.value&&l.value));async function w(){if(o.value.dropBoxDiskConfig.$touch(),o.value.dropBoxDiskConfig.$invalid)return!0;let v={credentials:a.dropBoxDiskConfig,name:a.dropBoxDiskConfig.name,driver:d.value.value,set_as_default:k.value};return i("submit",v),!1}function I(){i("onChangeDisk",a.dropBoxDiskConfig.selected_driver)}return{v$:o,diskStore:a,selected_driver:c,set_as_default:k,isLoading:s,is_current_disk:l,selected_disk:d,isDisabled:M,loadData:B,submitData:w,onChangeDriver:I}}},De={class:"px-8 py-6"},Ce={key:0,class:"flex items-center mt-6"},pe={class:"relative flex items-center w-12"},_e={class:"ml-4 right"},be={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function Se(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{onSubmit:i[15]||(i[15]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",De,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.dropBoxDiskConfig.name.$error&&e.v$.dropBoxDiskConfig.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.dropBoxDiskConfig.name=o),type:"text",name:"name",invalid:e.v$.dropBoxDiskConfig.name.$error,onInput:i[1]||(i[1]=o=>e.v$.dropBoxDiskConfig.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.driver"),error:e.v$.dropBoxDiskConfig.selected_driver.$error&&e.v$.dropBoxDiskConfig.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],invalid:e.v$.dropBoxDiskConfig.selected_driver.$error,"value-prop":"value",options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_root"),error:e.v$.dropBoxDiskConfig.root.$error&&e.v$.dropBoxDiskConfig.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.dropBoxDiskConfig.root=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. /user/root/",invalid:e.v$.dropBoxDiskConfig.root.$error,onInput:i[5]||(i[5]=o=>e.v$.dropBoxDiskConfig.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_token"),error:e.v$.dropBoxDiskConfig.token.$error&&e.v$.dropBoxDiskConfig.token.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.token,"onUpdate:modelValue":i[6]||(i[6]=o=>e.diskStore.dropBoxDiskConfig.token=o),modelModifiers:{trim:!0},type:"text",name:"name",invalid:e.v$.dropBoxDiskConfig.token.$error,onInput:i[7]||(i[7]=o=>e.v$.dropBoxDiskConfig.token.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_key"),error:e.v$.dropBoxDiskConfig.key.$error&&e.v$.dropBoxDiskConfig.key.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.key,"onUpdate:modelValue":i[8]||(i[8]=o=>e.diskStore.dropBoxDiskConfig.key=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS",invalid:e.v$.dropBoxDiskConfig.key.$error,onInput:i[9]||(i[9]=o=>e.v$.dropBoxDiskConfig.key.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_secret"),error:e.v$.dropBoxDiskConfig.secret.$error&&e.v$.dropBoxDiskConfig.secret.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.secret,"onUpdate:modelValue":i[10]||(i[10]=o=>e.diskStore.dropBoxDiskConfig.secret=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. ********",invalid:e.v$.dropBoxDiskConfig.secret.$error,onInput:i[11]||(i[11]=o=>e.v$.dropBoxDiskConfig.secret.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.dropbox_app"),error:e.v$.dropBoxDiskConfig.app.$error&&e.v$.dropBoxDiskConfig.app.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.dropBoxDiskConfig.app,"onUpdate:modelValue":i[12]||(i[12]=o=>e.diskStore.dropBoxDiskConfig.app=o),modelModifiers:{trim:!0},type:"text",name:"name",invalid:e.v$.dropBoxDiskConfig.app.$error,onInput:i[13]||(i[13]=o=>e.v$.dropBoxDiskConfig.app.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",Ce,[b("div",pe,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[14]||(i[14]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",_e,[b("p",be,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var $e=F(ce,[["render",Se]]);const ye={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(""),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.localDiskConfig.selected_driver=v}}),m=S(()=>({localDiskConfig:{name:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)},root:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.localDiskConfig={name:null,selected_driver:"local",root:null}}),B();async function B(){k.value=!0;let v=L({disk:"local"});if(t.isEdit)Object.assign(a.localDiskConfig,e.data),a.localDiskConfig.root=e.data.credentials,s.value=e.data.set_as_default,s.value&&(d.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.localDiskConfig,$.data)}l.value=t.disks.find($=>$.value=="local"),k.value=!1}const M=S(()=>!!(t.isEdit&&s.value&&d.value));async function w(){if(o.value.localDiskConfig.$touch(),o.value.localDiskConfig.$invalid)return!0;let v=L({credentials:a.localDiskConfig.root,name:a.localDiskConfig.name,driver:a.localDiskConfig.selected_driver,set_as_default:s.value});return i("submit",v),!1}function I(){i("onChangeDisk",a.localDiskConfig.selected_driver)}return{v$:o,diskStore:a,modalStore:e,selected_driver:c,selected_disk:l,isLoading:k,set_as_default:s,is_current_disk:d,submitData:w,onChangeDriver:I,isDisabled:M}}},Be={class:"px-4 sm:px-8 py-6"},xe={key:0,class:"flex items-center mt-6"},Ve={class:"relative flex items-center w-12"},qe={class:"ml-4 right"},Me={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function we(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{action:"",onSubmit:i[7]||(i[7]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",Be,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.localDiskConfig.name.$error&&e.v$.localDiskConfig.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.localDiskConfig.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.localDiskConfig.name=o),type:"text",name:"name",invalid:e.v$.localDiskConfig.name.$error,onInput:i[1]||(i[1]=o=>e.v$.localDiskConfig.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$tc("settings.disk.driver"),error:e.v$.localDiskConfig.selected_driver.$error&&e.v$.localDiskConfig.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],"value-prop":"value",invalid:e.v$.localDiskConfig.selected_driver.$error,options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.local_root"),error:e.v$.localDiskConfig.root.$error&&e.v$.localDiskConfig.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.localDiskConfig.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.localDiskConfig.root=o),modelModifiers:{trim:!0},type:"text",name:"name",invalid:e.v$.localDiskConfig.root.$error,placeholder:"Ex./user/root/",onInput:i[5]||(i[5]=o=>e.v$.localDiskConfig.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",xe,[b("div",Ve,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[6]||(i[6]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",qe,[b("p",Me,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var Ie=F(ye,[["render",we]]);const he={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(null),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.s3DiskConfigData.selected_driver=v}}),m=S(()=>({s3DiskConfigData:{name:{required:g.withMessage(u("validation.required"),D)},root:{required:g.withMessage(u("validation.required"),D)},key:{required:g.withMessage(u("validation.required"),D)},secret:{required:g.withMessage(u("validation.required"),D)},region:{required:g.withMessage(u("validation.required"),D)},bucket:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.s3DiskConfigData={name:null,selected_driver:"s3",key:null,secret:null,region:null,bucket:null,root:null}}),B();async function B(){s.value=!0;let v=L({disk:"s3"});if(t.isEdit)Object.assign(a.s3DiskConfigData,e.data),k.value=e.data.set_as_default,k.value&&(d.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.s3DiskConfigData,$.data)}l.value=t.disks.find($=>$.value=="s3"),s.value=!1}const M=S(()=>!!(t.isEdit&&k.value&&d.value));async function w(){if(o.value.s3DiskConfigData.$touch(),o.value.s3DiskConfigData.$invalid)return!0;let v={credentials:a.s3DiskConfigData,name:a.s3DiskConfigData.name,driver:l.value.value,set_as_default:k.value};return i("submit",v),!1}function I(){i("onChangeDisk",a.s3DiskConfigData.selected_driver)}return{v$:o,diskStore:a,modalStore:e,set_as_default:k,isLoading:s,selected_disk:l,selected_driver:c,is_current_disk:d,loadData:B,submitData:w,onChangeDriver:I,isDisabled:M}}},Ee={class:"px-8 py-6"},Ue={key:0,class:"flex items-center mt-6"},Le={class:"relative flex items-center w-12"},Ne={class:"ml-4 right"},je={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function Ge(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{onSubmit:i[15]||(i[15]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",Ee,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.s3DiskConfigData.name.$error&&e.v$.s3DiskConfigData.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.s3DiskConfigData.name=o),type:"text",name:"name",invalid:e.v$.s3DiskConfigData.name.$error,onInput:i[1]||(i[1]=o=>e.v$.s3DiskConfigData.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$tc("settings.disk.driver"),error:e.v$.s3DiskConfigData.selected_driver.$error&&e.v$.s3DiskConfigData.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],invalid:e.v$.s3DiskConfigData.selected_driver.$error,"value-prop":"value",options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_root"),error:e.v$.s3DiskConfigData.root.$error&&e.v$.s3DiskConfigData.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.s3DiskConfigData.root=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. /user/root/",invalid:e.v$.s3DiskConfigData.root.$error,onInput:i[5]||(i[5]=o=>e.v$.s3DiskConfigData.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_key"),error:e.v$.s3DiskConfigData.key.$error&&e.v$.s3DiskConfigData.key.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.key,"onUpdate:modelValue":i[6]||(i[6]=o=>e.diskStore.s3DiskConfigData.key=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS",invalid:e.v$.s3DiskConfigData.key.$error,onInput:i[7]||(i[7]=o=>e.v$.s3DiskConfigData.key.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_secret"),error:e.v$.s3DiskConfigData.secret.$error&&e.v$.s3DiskConfigData.secret.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.secret,"onUpdate:modelValue":i[8]||(i[8]=o=>e.diskStore.s3DiskConfigData.secret=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. ********",invalid:e.v$.s3DiskConfigData.secret.$error,onInput:i[9]||(i[9]=o=>e.v$.s3DiskConfigData.secret.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_region"),error:e.v$.s3DiskConfigData.region.$error&&e.v$.s3DiskConfigData.region.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.region,"onUpdate:modelValue":i[10]||(i[10]=o=>e.diskStore.s3DiskConfigData.region=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. us-west",invalid:e.v$.s3DiskConfigData.region.$error,onInput:i[11]||(i[11]=o=>e.v$.s3DiskConfigData.region.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.aws_bucket"),error:e.v$.s3DiskConfigData.bucket.$error&&e.v$.s3DiskConfigData.bucket.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.s3DiskConfigData.bucket,"onUpdate:modelValue":i[12]||(i[12]=o=>e.diskStore.s3DiskConfigData.bucket=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. AppName",invalid:e.v$.s3DiskConfigData.bucket.$error,onInput:i[13]||(i[13]=o=>e.v$.s3DiskConfigData.bucket.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",Ue,[b("div",Le,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[14]||(i[14]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",Ne,[b("p",je,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var Oe=F(he,[["render",Ge]]);const Fe={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},emits:["submit","onChangeDisk"],setup(t,{emit:i}){const a=j(),e=G(),{t:u}=A();let k=p(!1),s=p(!1),l=p(""),d=p(null);const c=S({get:()=>a.selected_driver,set:v=>{a.selected_driver=v,a.doSpaceDiskConfig.selected_driver=v}}),m=S(()=>({doSpaceDiskConfig:{root:{required:g.withMessage(u("validation.required"),D)},key:{required:g.withMessage(u("validation.required"),D)},secret:{required:g.withMessage(u("validation.required"),D)},region:{required:g.withMessage(u("validation.required"),D)},endpoint:{required:g.withMessage(u("validation.required"),D),url:g.withMessage(u("validation.invalid_url"),ue)},bucket:{required:g.withMessage(u("validation.required"),D)},selected_driver:{required:g.withMessage(u("validation.required"),D)},name:{required:g.withMessage(u("validation.required"),D)}}})),o=R(m,S(()=>a));Y(()=>{a.doSpaceDiskConfig={name:null,selected_driver:"doSpaces",key:null,secret:null,region:null,bucket:null,endpoint:null,root:null}}),B();async function B(){k.value=!0;let v=L({disk:"doSpaces"});if(t.isEdit)Object.assign(a.doSpaceDiskConfig,JSON.parse(e.data.credentials)),s.value=e.data.set_as_default,s.value&&(d.value=!0);else{let $=await a.fetchDiskEnv(v);Object.assign(a.doSpaceDiskConfig,$.data)}l.value=t.disks.find($=>$.value=="doSpaces"),k.value=!1}const M=S(()=>!!(t.isEdit&&s.value&&d.value));async function w(){if(o.value.doSpaceDiskConfig.$touch(),o.value.doSpaceDiskConfig.$invalid)return!0;let v={credentials:a.doSpaceDiskConfig,name:a.doSpaceDiskConfig.name,driver:l.value.value,set_as_default:s.value};return i("submit",v),!1}function I(){i("onChangeDisk",a.doSpaceDiskConfig.selected_driver)}return{v$:o,diskStore:a,selected_driver:c,isLoading:k,set_as_default:s,selected_disk:l,is_current_disk:d,loadData:B,submitData:w,onChangeDriver:I,isDisabled:M}}},Ae={class:"px-8 py-6"},Te={key:0,class:"flex items-center mt-6"},Re={class:"relative flex items-center w-12"},Ye={class:"ml-4 right"},ze={class:"p-0 mb-1 text-base leading-snug text-black box-title"};function Ke(t,i,a,e,u,k){const s=f("BaseInput"),l=f("BaseInputGroup"),d=f("BaseMultiselect"),c=f("BaseInputGrid"),m=f("BaseSwitch");return y(),h("form",{onSubmit:i[17]||(i[17]=K((...o)=>e.submitData&&e.submitData(...o),["prevent"]))},[b("div",Ae,[r(c,null,{default:n(()=>[r(l,{label:t.$t("settings.disk.name"),error:e.v$.doSpaceDiskConfig.name.$error&&e.v$.doSpaceDiskConfig.name.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.name,"onUpdate:modelValue":i[0]||(i[0]=o=>e.diskStore.doSpaceDiskConfig.name=o),type:"text",name:"name",invalid:e.v$.doSpaceDiskConfig.name.$error,onInput:i[1]||(i[1]=o=>e.v$.doSpaceDiskConfig.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$tc("settings.disk.driver"),error:e.v$.doSpaceDiskConfig.selected_driver.$error&&e.v$.doSpaceDiskConfig.selected_driver.$errors[0].$message,required:""},{default:n(()=>[r(d,{modelValue:e.selected_driver,"onUpdate:modelValue":[i[2]||(i[2]=o=>e.selected_driver=o),i[3]||(i[3]=o=>e.onChangeDriver(t.data))],invalid:e.v$.doSpaceDiskConfig.selected_driver.$error,"value-prop":"value",options:a.disks,searchable:"",label:"name","can-deselect":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_root"),error:e.v$.doSpaceDiskConfig.root.$error&&e.v$.doSpaceDiskConfig.root.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.root,"onUpdate:modelValue":i[4]||(i[4]=o=>e.diskStore.doSpaceDiskConfig.root=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. /user/root/",invalid:e.v$.doSpaceDiskConfig.root.$error,onInput:i[5]||(i[5]=o=>e.v$.doSpaceDiskConfig.root.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_key"),error:e.v$.doSpaceDiskConfig.key.$error&&e.v$.doSpaceDiskConfig.key.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.key,"onUpdate:modelValue":i[6]||(i[6]=o=>e.diskStore.doSpaceDiskConfig.key=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS",invalid:e.v$.doSpaceDiskConfig.key.$error,onInput:i[7]||(i[7]=o=>e.v$.doSpaceDiskConfig.key.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_secret"),error:e.v$.doSpaceDiskConfig.secret.$error&&e.v$.doSpaceDiskConfig.secret.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.secret,"onUpdate:modelValue":i[8]||(i[8]=o=>e.diskStore.doSpaceDiskConfig.secret=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. ********",invalid:e.v$.doSpaceDiskConfig.secret.$error,onInput:i[9]||(i[9]=o=>e.v$.doSpaceDiskConfig.secret.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_region"),error:e.v$.doSpaceDiskConfig.region.$error&&e.v$.doSpaceDiskConfig.region.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.region,"onUpdate:modelValue":i[10]||(i[10]=o=>e.diskStore.doSpaceDiskConfig.region=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. nyc3",invalid:e.v$.doSpaceDiskConfig.region.$error,onInput:i[11]||(i[11]=o=>e.v$.doSpaceDiskConfig.region.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_endpoint"),error:e.v$.doSpaceDiskConfig.endpoint.$error&&e.v$.doSpaceDiskConfig.endpoint.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.endpoint,"onUpdate:modelValue":i[12]||(i[12]=o=>e.diskStore.doSpaceDiskConfig.endpoint=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. https://nyc3.digitaloceanspaces.com",invalid:e.v$.doSpaceDiskConfig.endpoint.$error,onInput:i[13]||(i[13]=o=>e.v$.doSpaceDiskConfig.endpoint.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),r(l,{label:t.$t("settings.disk.do_spaces_bucket"),error:e.v$.doSpaceDiskConfig.bucket.$error&&e.v$.doSpaceDiskConfig.bucket.$errors[0].$message,required:""},{default:n(()=>[r(s,{modelValue:e.diskStore.doSpaceDiskConfig.bucket,"onUpdate:modelValue":i[14]||(i[14]=o=>e.diskStore.doSpaceDiskConfig.bucket=o),modelModifiers:{trim:!0},type:"text",name:"name",placeholder:"Ex. my-new-space",invalid:e.v$.doSpaceDiskConfig.bucket.$error,onInput:i[15]||(i[15]=o=>e.v$.doSpaceDiskConfig.bucket.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1}),e.isDisabled?E("",!0):(y(),h("div",Te,[b("div",Re,[r(m,{modelValue:e.set_as_default,"onUpdate:modelValue":i[16]||(i[16]=o=>e.set_as_default=o),class:"flex"},null,8,["modelValue"])]),b("div",Ye,[b("p",ze,V(t.$t("settings.disk.is_default")),1)])]))]),z(t.$slots,"default",{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],32)}var Pe=F(Fe,[["render",Ke]]);const Je={components:{Dropbox:$e,Local:Ie,S3:Oe,DoSpaces:Pe},setup(){const t=j(),i=G();let a=p(!1),e=p(!1);fe(()=>{i.id&&(e.value=!0)});const u=S(()=>i.active&&i.componentName==="FileDiskModal");function k(m){return m&&(m.diskData.isLoading.value||a.value)}async function s(){a.value=!0;let m=await t.fetchDiskDrivers();e.value?t.selected_driver=i.data.driver:t.selected_driver=m.data.drivers[0].value,a.value=!1}async function l(m){Object.assign(t.diskConfigData,m),a.value=!0;let o=W({id:i.id},m);await(e.value?t.updateDisk:t.createDisk)(o),a.value=!1,i.refreshData(),d()}function d(){i.closeModal()}function c(m){t.selected_driver=m,t.diskConfigData.selected_driver=m}return{isEdit:e,createNewDisk:l,isRequestFire:k,diskStore:t,closeDiskModal:d,loadData:s,diskChange:c,modalStore:i,isLoading:a,modalActive:u}}},He={class:"flex justify-between w-full"},Xe={class:"file-disk-modal"},Qe={class:"z-0 flex justify-end p-4 border-t border-solid border-gray-light"};function We(t,i,a,e,u,k){const s=f("BaseIcon"),l=f("BaseButton"),d=f("BaseModal");return y(),N(d,{show:e.modalActive,onClose:e.closeDiskModal,onOpen:e.loadData},{header:n(()=>[b("div",He,[U(V(e.modalStore.title)+" ",1),r(s,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:e.closeDiskModal},null,8,["onClick"])])]),default:n(()=>[b("div",Xe,[(y(),N(ke(e.diskStore.selected_driver),{loading:e.isLoading,disks:e.diskStore.getDiskDrivers,"is-edit":e.isEdit,onOnChangeDisk:i[0]||(i[0]=c=>e.diskChange(c)),onSubmit:e.createNewDisk},{default:n(c=>[b("div",Qe,[r(l,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:e.closeDiskModal},{default:n(()=>[U(V(t.$t("general.cancel")),1)]),_:1},8,["onClick"]),r(l,{loading:e.isRequestFire(c),disabled:e.isRequestFire(c),variant:"primary",type:"submit"},{default:n(()=>[e.isRequestFire(c)?E("",!0):(y(),N(s,{key:0,name:"SaveIcon",class:"w-6 mr-2"})),U(" "+V(t.$t("general.save")),1)]),_:2},1032,["loading","disabled"])])]),_:1},8,["loading","disks","is-edit","onSubmit"]))])]),_:1},8,["show","onClose","onOpen"])}var Ze=F(Je,[["render",We]]);const ei={class:"inline-block"},ri={setup(t){const i=me("utils"),a=G(),e=j(),u=ne(),k=de(),{t:s}=A();let l=p(!1),d=p("");const c=S(()=>[{key:"name",label:s("settings.disk.disk_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"driver",label:s("settings.disk.filesystem_driver"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"type",label:s("settings.disk.disk_type"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"set_as_default",label:s("settings.disk.is_default"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),m=p(u.selectedCompanySettings.save_pdf_to_disk),o=S({get:()=>m.value==="YES",set:async C=>{const q=C?"YES":"NO";let x={settings:{save_pdf_to_disk:q}};m.value=q,await u.updateCompanySettings({data:x,message:"general.setting_updated"})}});async function B({page:C,filter:q,sort:x}){let J=L({orderByField:x.fieldName||"created_at",orderBy:x.order||"desc",page:C}),O=await e.fetchDisks(J);return{data:O.data.data,pagination:{totalPages:O.data.meta.last_page,currentPage:C,totalCount:O.data.meta.total}}}function M(C){return C.set_as_default?!(C.type=="SYSTEM"&&C.set_as_default):!0}function w(){a.openModal({title:s("settings.disk.new_disk"),componentName:"FileDiskModal",variant:"lg",refreshData:d.value&&d.value.refresh})}function I(C){a.openModal({title:s("settings.disk.edit_file_disk"),componentName:"FileDiskModal",variant:"lg",id:C.id,data:C,refreshData:d.value&&d.value.refresh})}function v(C){k.openDialog({title:s("general.are_you_sure"),message:s("settings.disk.set_default_disk_confirm"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(async q=>{if(q){l.value=!0;let x=L({set_as_default:!0,id:C});await e.updateDisk(x).then(()=>{d.value&&d.value.refresh()})}})}function $(C){k.openDialog({title:s("general.are_you_sure"),message:s("settings.disk.confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async q=>{if(q&&(await e.deleteFileDisk(C)).data.success)return d.value&&d.value.refresh(),!0})}return(C,q)=>{const x=f("BaseIcon"),J=f("BaseButton"),O=f("BaseBadge"),H=f("BaseDropdownItem"),ee=f("BaseDropdown"),ie=f("BaseTable"),oe=f("BaseDivider"),ae=f("BaseSwitchSection"),te=f("BaseSettingCard");return y(),h(ge,null,[r(Ze),r(te,{title:C.$tc("settings.disk.title",1),description:C.$t("settings.disk.description")},{action:n(()=>[r(J,{variant:"primary-outline",onClick:w},{left:n(_=>[r(x,{class:ve(_.class),name:"PlusIcon"},null,8,["class"])]),default:n(()=>[U(" "+V(C.$t("settings.disk.new_disk")),1)]),_:1})]),default:n(()=>[r(ie,{ref:(_,T)=>{T.table=_,Z(d)?d.value=_:d=_},class:"mt-16",data:B,columns:P(c)},{"cell-set_as_default":n(({row:_})=>[r(O,{"bg-color":P(i).getBadgeStatusColor(_.data.set_as_default?"YES":"NO").bgColor,color:P(i).getBadgeStatusColor(_.data.set_as_default?"YES":"NO").color},{default:n(()=>[U(V(_.data.set_as_default?"Yes":"No".replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),"cell-actions":n(({row:_})=>[M(_.data)?(y(),N(ee,{key:0},{activator:n(()=>[b("div",ei,[r(x,{name:"DotsHorizontalIcon",class:"text-gray-500"})])]),default:n(()=>[_.data.set_as_default?E("",!0):(y(),N(H,{key:0,onClick:T=>v(_.data.id)},{default:n(()=>[r(x,{class:"mr-3 tetx-gray-600",name:"CheckCircleIcon"}),U(" "+V(C.$t("settings.disk.set_default_disk")),1)]),_:2},1032,["onClick"])),_.data.type!=="SYSTEM"?(y(),N(H,{key:1,onClick:T=>I(_.data)},{default:n(()=>[r(x,{name:"PencilIcon",class:"mr-3 text-gray-600"}),U(" "+V(C.$t("general.edit")),1)]),_:2},1032,["onClick"])):E("",!0),_.data.type!=="SYSTEM"&&!_.data.set_as_default?(y(),N(H,{key:2,onClick:T=>$(_.data.id)},{default:n(()=>[r(x,{name:"TrashIcon",class:"mr-3 text-gray-600"}),U(" "+V(C.$t("general.delete")),1)]),_:2},1032,["onClick"])):E("",!0)]),_:2},1024)):E("",!0)]),_:1},8,["columns"]),r(oe,{class:"mt-8 mb-2"}),r(ae,{modelValue:P(o),"onUpdate:modelValue":q[0]||(q[0]=_=>Z(o)?o.value=_:null),title:C.$t("settings.disk.save_pdf_to_disk"),description:C.$t("settings.disk.disk_setting_description")},null,8,["modelValue","title","description"])]),_:1},8,["title","description"])],64)}}};export{ri as default};
var M=Object.defineProperty,j=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var B=(a,e,t)=>e in a?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,$=(a,e)=>{for(var t in e||(e={}))N.call(e,t)&&B(a,t,e[t]);if(h)for(var t of h(e))C.call(e,t)&&B(a,t,e[t]);return a},y=(a,e)=>j(a,G(e));import{J as D,G as L,a0 as T,B as b,k as U,L as k,M as A,Q as E,T as F,r as u,o as c,e as p,f as m,w as v,u as r,t as _,h as J,i as P,U as Q}from"./vendor.01d0adc5.js";import{u as R}from"./auth.4644c288.js";import"./main.75722495.js";const z=["onSubmit"],H={key:0},K={key:1},O={class:"mt-4 mb-4 text-sm"},ee={setup(a){const e=R(),{t}=D(),S=L(),l=T({email:"",company:""}),f=b(!1),n=b(!1),V=U(()=>({email:{required:k.withMessage(t("validation.required"),A),email:k.withMessage(t("validation.email_incorrect"),E)}})),o=F(V,l);function w(i){if(o.value.$touch(),o.value.$invalid)return!0;n.value=!0;let s=y($({},l),{company:S.params.company});e.forgotPassword(s).then(d=>{n.value=!1}).catch(d=>{n.value=!1}),f.value=!0}return(i,s)=>{const d=u("BaseInput"),I=u("BaseInputGroup"),q=u("BaseButton"),x=u("router-link");return c(),p("form",{id:"loginForm",onSubmit:Q(w,["prevent"])},[m(I,{error:r(o).email.$error&&r(o).email.$errors[0].$message,label:i.$t("login.enter_email"),class:"mb-4",required:""},{default:v(()=>[m(d,{modelValue:r(l).email,"onUpdate:modelValue":s[0]||(s[0]=g=>r(l).email=g),type:"email",name:"email",invalid:r(o).email.$error,onInput:s[1]||(s[1]=g=>r(o).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),m(q,{loading:n.value,disabled:n.value,type:"submit",variant:"primary"},{default:v(()=>[f.value?(c(),p("div",K,_(i.$t("validation.not_yet")),1)):(c(),p("div",H,_(i.$t("validation.send_reset_link")),1))]),_:1},8,["loading","disabled"]),J("div",O,[m(x,{to:"login",class:"text-sm text-primary-400 hover:text-gray-700"},{default:v(()=>[P(_(i.$t("general.back_to_login")),1)]),_:1})])],40,z)}}};export{ee as default};
import{J as w,a0 as S,B as _,L as f,M as V,Q as I,T as x,r as n,o as l,e as u,f as r,w as m,u as t,t as d,h as M,i as N,U as q,a as j}from"./vendor.01d0adc5.js";import{u as C,h as D}from"./main.75722495.js";const E=["onSubmit"],G={key:0},L={key:1},T={class:"mt-4 mb-4 text-sm"},Q={setup(U){const g=C(),{t:c}=w(),i=S({email:""}),p=_(!1),o=_(!1),h={email:{required:f.withMessage(c("validation.required"),V),email:f.withMessage(c("validation.email_incorrect"),I)}},a=x(h,i);async function y(s){if(a.value.$touch(),!a.value.$invalid)try{o.value=!0,(await j.post("/api/v1/auth/password/email",i)).data&&g.showNotification({type:"success",message:"Mail sent successfully"}),p.value=!0,o.value=!1}catch(e){D(e),o.value=!1}}return(s,e)=>{const $=n("BaseInput"),B=n("BaseInputGroup"),b=n("BaseButton"),k=n("router-link");return l(),u("form",{id:"loginForm",onSubmit:q(y,["prevent"])},[r(B,{error:t(a).email.$error&&t(a).email.$errors[0].$message,label:s.$t("login.enter_email"),class:"mb-4",required:""},{default:m(()=>[r($,{modelValue:t(i).email,"onUpdate:modelValue":e[0]||(e[0]=v=>t(i).email=v),invalid:t(a).email.$error,focus:"",type:"email",name:"email",onInput:e[1]||(e[1]=v=>t(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),r(b,{loading:o.value,disabled:o.value,type:"submit",variant:"primary"},{default:m(()=>[p.value?(l(),u("div",L,d(s.$t("validation.not_yet")),1)):(l(),u("div",G,d(s.$t("validation.send_reset_link")),1))]),_:1},8,["loading","disabled"]),M("div",T,[r(k,{to:"/login",class:"text-sm text-primary-400 hover:text-gray-700"},{default:m(()=>[N(d(s.$t("general.back_to_login")),1)]),_:1})])],40,E)}}};export{Q as default};
import{J as z,G as ue,aN as me,ah as H,r as o,o as m,l as C,w as t,u as a,f as l,i as g,t as y,j as M,e as pe,h as n,m as u,B as Z,a0 as Ce,k as A,aR as fe,aS as he,q as P,ag as U,V as ye,x as ve}from"./vendor.01d0adc5.js";import{j as G,u as W,p as O,e as q,g as L,b as _e}from"./main.75722495.js";const ge={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(i){const r=i,F=G();W();const{t:B}=z(),b=O(),f=ue();me();const _=q();H("utils");function I(d){F.openDialog({title:B("general.are_you_sure"),message:B("items.confirm_delete"),yesLabel:B("general.ok"),noLabel:B("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(p=>{p&&b.deleteItem({ids:[d]}).then(v=>(v.data.success&&r.loadData&&r.loadData(),!0))})}return(d,p)=>{const v=o("BaseIcon"),w=o("BaseButton"),$=o("BaseDropdownItem"),D=o("router-link"),E=o("BaseDropdown");return m(),C(E,null,{activator:t(()=>[a(f).name==="items.view"?(m(),C(w,{key:0,variant:"primary"},{default:t(()=>[l(v,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),C(v,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(_).hasAbilities(a(L).EDIT_ITEM)?(m(),C(D,{key:0,to:`/admin/items/${i.row.id}/edit`},{default:t(()=>[l($,null,{default:t(()=>[l(v,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+y(d.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):M("",!0),a(_).hasAbilities(a(L).DELETE_ITEM)?(m(),C($,{key:1,onClick:p[0]||(p[0]=j=>I(i.row.id))},{default:t(()=>[l(v,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+y(d.$t("general.delete")),1)]),_:1})):M("",!0)]),_:1})}}},Be={width:"110",height:"110",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Le={"clip-path":"url(#clip0)"},be=n("defs",null,[n("clipPath",{id:"clip0"},[n("rect",{width:"110",height:"110",fill:"white"})])],-1),Ie={props:{primaryFillColor:{type:String,default:"fill-primary-500"},secondaryFillColor:{type:String,default:"fill-gray-600"}},setup(i){return(r,F)=>(m(),pe("svg",Be,[n("g",Le,[n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.76398 22.9512L4.54883 21.7361L21.7363 4.54858L22.9515 5.76374L5.76398 22.9512Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M88.264 105.451L87.0488 104.236L104.236 87.0486L105.451 88.2637L88.264 105.451Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.8265 81.3887L28.6113 80.1736L38.9238 69.8611L40.139 71.0762L29.8265 81.3887Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9375 81.6406C30.9375 83.0637 29.7825 84.2188 28.3594 84.2188C26.9362 84.2188 25.7812 83.0637 25.7812 81.6406C25.7812 80.2175 26.9362 79.0625 28.3594 79.0625C29.7825 79.0625 30.9375 80.2175 30.9375 81.6406Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M77.3435 61.5801C76.4635 61.5801 75.5835 61.9152 74.9132 62.5873L62.5863 74.9124C61.244 76.2548 61.244 78.4324 62.5863 79.7748L92.8123 110.001L110 92.8132L79.7738 62.5873C79.1035 61.9152 78.2235 61.5801 77.3435 61.5801ZM77.3435 63.2988C77.8024 63.2988 78.2338 63.4776 78.5587 63.8024L107.569 92.8132L92.8123 107.569L63.8015 78.5596C63.4767 78.2348 63.2979 77.8034 63.2979 77.3445C63.2979 76.8838 63.4767 76.4524 63.8015 76.1276L76.1284 63.8024C76.4532 63.4776 76.8846 63.2988 77.3435 63.2988Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.1875 0L0 17.1875L30.2259 47.4134C30.8963 48.0838 31.7763 48.4206 32.6562 48.4206C33.5363 48.4206 34.4162 48.0838 35.0866 47.4134L47.4134 35.0866C48.7558 33.7442 48.7558 31.5683 47.4134 30.2259L17.1875 0ZM17.1875 2.43031L46.1983 31.4411C46.5231 31.7659 46.7019 32.1973 46.7019 32.6562C46.7019 33.1152 46.5231 33.5466 46.1983 33.8714L33.8714 46.1983C33.5466 46.5231 33.1152 46.7019 32.6562 46.7019C32.1973 46.7019 31.7659 46.5231 31.4411 46.1983L2.43031 17.1875L17.1875 2.43031Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.156 28.9238C59.276 28.9238 58.396 29.259 57.7257 29.931L29.9301 57.7249C28.5878 59.0673 28.5878 61.2449 29.9301 62.5873L47.4132 80.0687C48.0835 80.7407 48.9635 81.0759 49.8435 81.0759C50.7235 81.0759 51.6035 80.7407 52.2738 80.0687L80.0695 52.2748C81.4118 50.9324 81.4118 48.7548 80.0695 47.4124L62.5863 29.931C61.916 29.259 61.036 28.9238 60.156 28.9238ZM60.156 30.6426C60.6149 30.6426 61.0463 30.8213 61.3712 31.1462L78.8543 48.6276C79.1792 48.9524 79.3579 49.3838 79.3579 49.8445C79.3579 50.3034 79.1792 50.7348 78.8543 51.0596L51.0587 78.8535C50.7338 79.1784 50.3024 79.3571 49.8435 79.3571C49.3846 79.3571 48.9532 79.1784 48.6284 78.8535L31.1453 61.3721C30.8204 61.0473 30.6417 60.6159 30.6417 60.157C30.6417 59.6963 30.8204 59.2649 31.1453 58.9401L58.9409 31.1462C59.2657 30.8213 59.6971 30.6426 60.156 30.6426Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M71.0765 40.1387L69.8613 38.9236L72.4395 36.3455L73.6546 37.5606L71.0765 40.1387Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M72.9858 24.8608C69.6291 28.2176 69.6291 33.6574 72.9858 37.0141C74.6633 38.6916 76.8633 39.5321 79.0633 39.5321C81.2616 39.5321 83.4616 38.6916 85.1391 37.0141L72.9858 24.8608ZM73.1388 27.4441L82.5558 36.8612C81.5091 37.4816 80.3111 37.8133 79.0633 37.8133C77.226 37.8133 75.5003 37.0966 74.201 35.799C72.9033 34.4996 72.1883 32.774 72.1883 30.9383C72.1883 29.6888 72.5183 28.4908 73.1388 27.4441Z",class:u(i.secondaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M86.1459 32.0051C85.9259 32.0051 85.7059 31.9209 85.5374 31.7542C85.2023 31.4173 85.2023 30.8742 85.5374 30.5373C86.3504 29.7261 86.7973 28.6467 86.7973 27.5003C86.7973 26.3522 86.3504 25.2728 85.5374 24.4615C83.9149 22.839 81.0859 22.839 79.4616 24.4615C79.1265 24.7984 78.5834 24.7984 78.2465 24.4615C77.9113 24.1264 77.9113 23.5833 78.2465 23.2464C80.5187 20.9742 84.4821 20.9742 86.7543 23.2464C87.8904 24.3825 88.516 25.8933 88.516 27.5003C88.516 29.1073 87.8904 30.6181 86.7543 31.7542C86.5859 31.9209 86.3659 32.0051 86.1459 32.0051Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M89.792 35.6514C89.572 35.6514 89.352 35.5672 89.1836 35.4004C88.8484 35.0636 88.8484 34.5204 89.1836 34.1836C90.9711 32.3978 91.9525 30.0259 91.9525 27.4994C91.9525 24.9745 90.9711 22.6009 89.1836 20.8151C87.3978 19.0294 85.0259 18.0462 82.4994 18.0462C79.9745 18.0462 77.6009 19.0294 75.8152 20.8151C75.48 21.1503 74.9352 21.1503 74.6 20.8151C74.2648 20.48 74.2648 19.9351 74.6 19.6C78.9553 15.2447 86.0434 15.2447 90.4005 19.6C94.7558 23.9553 94.7558 31.0434 90.4005 35.4004C90.232 35.5672 90.012 35.6514 89.792 35.6514Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M93.4379 39.297C93.2179 39.297 92.9979 39.2128 92.8295 39.0461C92.4944 38.7092 92.4944 38.1661 92.8295 37.8292C95.5898 35.0706 97.1092 31.4028 97.1092 27.4995C97.1092 23.5979 95.5898 19.9284 92.8295 17.1698C90.0709 14.4112 86.4031 12.8901 82.4998 12.8901C78.5983 12.8901 74.9287 14.4112 72.1701 17.1698C71.835 17.505 71.2901 17.505 70.955 17.1698C70.6198 16.8347 70.6198 16.2898 70.955 15.9547C74.0384 12.8712 78.1394 11.1714 82.4998 11.1714C86.862 11.1714 90.9612 12.8712 94.0464 15.9547C97.1298 19.0381 98.8279 23.139 98.8279 27.4995C98.8279 31.8617 97.1298 35.9609 94.0464 39.0461C93.8779 39.2128 93.6579 39.297 93.4379 39.297Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.7832 40.9981L8.8457 10.0606L10.0609 8.84546L40.9984 39.783L39.7832 40.9981Z",class:u(i.primaryFillColor)},null,2),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99.9395 101.154L69.002 70.2169L70.2171 69.0017L101.155 99.9392L99.9395 101.154Z",class:u(i.primaryFillColor)},null,2)]),be]))}},we={class:"flex items-center justify-end space-x-5"},ke={class:"relative table-container"},Me={class:"relative flex items-center justify-end h-5 border-gray-200 border-solid"},Fe={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},$e={class:"absolute items-center left-6 top-2.5 select-none"},De={class:"relative block"},Se={setup(i){H("utils");const r=O(),F=_e();W();const B=G(),b=q(),{t:f}=z();let _=Z(!1),I=Z(!0);const d=Ce({name:"",unit_id:"",price:""}),p=Z(null),v=A(()=>!r.totalItems&&!I.value),w=A({get:()=>r.selectedItems,set:s=>r.selectItem(s)}),$=A(()=>[{key:"status",thClass:"extra w-10",tdClass:"font-medium text-gray-900",placeholderClass:"w-10",sortable:!1},{key:"name",label:f("items.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"unit_name",label:f("items.unit")},{key:"price",label:f("items.price")},{key:"created_at",label:f("items.added_on")},{key:"actions",thClass:"text-right",tdClass:"text-right text-sm font-medium",sortable:!1}]);fe(d,()=>{J()},{debounce:500}),r.fetchItemUnits({limit:"all"}),he(()=>{r.selectAllField&&r.selectAllItems()});function D(){d.name="",d.unit_id="",d.price=""}function E(){return b.hasAbilities([L.DELETE_ITEM,L.EDIT_ITEM])}function j(){_.value&&D(),_.value=!_.value}function N(){p.value&&p.value.refresh()}function J(){N()}async function X(s){return(await r.fetchItemUnits({search:s})).data.data}async function K({page:s,filter:c,sort:k}){let V={search:d.name,unit_id:d.unit_id!==null?d.unit_id:"",price:Math.round(d.price*100),orderByField:k.fieldName||"created_at",orderBy:k.order||"desc",page:s};I.value=!0;let h=await r.fetchItems(V);return I.value=!1,{data:h.data.data,pagination:{totalPages:h.data.meta.last_page,currentPage:s,totalCount:h.data.meta.total,limit:10}}}function Q(){B.openDialog({title:f("general.are_you_sure"),message:f("items.confirm_delete",2),yesLabel:f("general.ok"),noLabel:f("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(s=>{s&&r.deleteMultipleItems().then(c=>{c.data.success&&p.value&&p.value.refresh()})})}return(s,c)=>{const k=o("BaseBreadcrumbItem"),V=o("BaseBreadcrumb"),h=o("BaseIcon"),S=o("BaseButton"),Y=o("BasePageHeader"),ee=o("BaseInput"),x=o("BaseInputGroup"),te=o("BaseMultiselect"),le=o("BaseMoney"),ae=o("BaseFilterWrapper"),ne=o("BaseEmptyPlaceholder"),se=o("BaseDropdownItem"),oe=o("BaseDropdown"),R=o("BaseCheckbox"),ie=o("router-link"),re=o("BaseFormatMoney"),de=o("BaseTable"),ce=o("BasePage");return m(),C(ce,null,{default:t(()=>[l(Y,{title:s.$t("items.title")},{actions:t(()=>[n("div",we,[P(l(S,{variant:"primary-outline",onClick:j},{right:t(e=>[a(_)?(m(),C(h,{key:1,name:"XIcon",class:u(e.class)},null,8,["class"])):(m(),C(h,{key:0,class:u(e.class),name:"FilterIcon"},null,8,["class"]))]),default:t(()=>[g(y(s.$t("general.filter"))+" ",1)]),_:1},512),[[U,a(r).totalItems]]),a(b).hasAbilities(a(L).CREATE_ITEM)?(m(),C(S,{key:0,onClick:c[0]||(c[0]=e=>s.$router.push("/admin/items/create"))},{left:t(e=>[l(h,{name:"PlusIcon",class:u(e.class)},null,8,["class"])]),default:t(()=>[g(" "+y(s.$t("items.add_item")),1)]),_:1})):M("",!0)])]),default:t(()=>[l(V,null,{default:t(()=>[l(k,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),l(k,{title:s.$tc("items.item",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),l(ae,{show:a(_),class:"mt-5",onClear:D},{default:t(()=>[l(x,{label:s.$tc("items.name"),class:"text-left"},{default:t(()=>[l(ee,{modelValue:a(d).name,"onUpdate:modelValue":c[1]||(c[1]=e=>a(d).name=e),type:"text",name:"name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),l(x,{label:s.$tc("items.unit"),class:"text-left"},{default:t(()=>[l(te,{modelValue:a(d).unit_id,"onUpdate:modelValue":c[2]||(c[2]=e=>a(d).unit_id=e),placeholder:s.$t("items.select_a_unit"),"value-prop":"id","track-by":"name","filter-results":!1,label:"name","resolve-on-load":"",delay:500,searchable:"",class:"w-full",options:X},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(x,{class:"text-left",label:s.$tc("items.price")},{default:t(()=>[l(le,{modelValue:a(d).price,"onUpdate:modelValue":c[3]||(c[3]=e=>a(d).price=e)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),P(l(ne,{title:s.$t("items.no_items"),description:s.$t("items.list_of_items")},{actions:t(()=>[a(b).hasAbilities(a(L).CREATE_ITEM)?(m(),C(S,{key:0,variant:"primary-outline",onClick:c[4]||(c[4]=e=>s.$router.push("/admin/items/create"))},{left:t(e=>[l(h,{name:"PlusIcon",class:u(e.class)},null,8,["class"])]),default:t(()=>[g(" "+y(s.$t("items.add_new_item")),1)]),_:1})):M("",!0)]),default:t(()=>[l(Ie,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[U,a(v)]]),P(n("div",ke,[n("div",Me,[a(r).selectedItems.length?(m(),C(oe,{key:0},{activator:t(()=>[n("span",Fe,[g(y(s.$t("general.actions"))+" ",1),l(h,{name:"ChevronDownIcon"})])]),default:t(()=>[l(se,{onClick:Q},{default:t(()=>[l(h,{name:"TrashIcon",class:"mr-3 text-gray-600"}),g(" "+y(s.$t("general.delete")),1)]),_:1})]),_:1})):M("",!0)]),l(de,{ref:(e,T)=>{T.table=e,p.value=e},data:K,columns:a($),"placeholder-count":a(r).totalItems>=20?10:5,class:"mt-3"},ye({header:t(()=>[n("div",$e,[l(R,{modelValue:a(r).selectAllField,"onUpdate:modelValue":c[5]||(c[5]=e=>a(r).selectAllField=e),variant:"primary",onChange:a(r).selectAllItems},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[n("div",De,[l(R,{id:e.id,modelValue:a(w),"onUpdate:modelValue":c[6]||(c[6]=T=>ve(w)?w.value=T:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[l(ie,{to:{path:`items/${e.data.id}/edit`},class:"font-medium text-primary-500"},{default:t(()=>[g(y(e.data.name),1)]),_:2},1032,["to"])]),"cell-unit_name":t(({row:e})=>[n("span",null,y(e.data.unit?e.data.unit.name:"-"),1)]),"cell-price":t(({row:e})=>[l(re,{amount:e.data.price,currency:a(F).selectedCompanyCurrency},null,8,["amount","currency"])]),"cell-created_at":t(({row:e})=>[n("span",null,y(e.data.formatted_created_at),1)]),_:2},[E()?{name:"cell-actions",fn:t(({row:e})=>[l(ge,{row:e.data,table:p.value,"load-data":N},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[U,!a(v)]])]),_:1})}}};export{Se as default};
import{J as Q,ah as Y,G as Z,B as y,a0 as ee,k as I,aR as te,r as l,o as c,l as d,w as a,f as t,u as o,m as w,i as _,t as p,j as C,q as S,ag as F,h as P}from"./vendor.01d0adc5.js";import ae from"./BaseTable.6e206ca7.js";import{u as se}from"./global.08b6a984.js";import{u as le}from"./estimate.e6573e64.js";import{_ as oe}from"./ObservatoryIcon.1877bd3e.js";import"./main.75722495.js";import"./auth.4644c288.js";const ne=P("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),re={class:"relative table-container"},be={setup(me){const{t:f}=Q();Y("utils"),Z();const E=y(null);let u=y(!1),h=y(!0);const j=y(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]),s=ee({status:"",from_date:"",to_date:"",estimate_number:""}),v=se(),b=le(),x=I(()=>[{key:"estimate_date",label:f("estimates.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"estimate_number",label:f("estimates.number",2)},{key:"status",label:f("estimates.status")},{key:"total",label:f("estimates.total")},{key:"actions",thClass:"text-right",tdClass:"text-right text-sm font-medium",sortable:!1}]),k=I(()=>!b.totalEstimates&&!h.value);I(()=>v.currency),te(s,()=>{N()},{debounce:500});function T(){E.value.refresh()}function N(){T()}function D(){s.status="",s.from_date="",s.to_date="",s.estimate_number=""}function H(){u.value&&D(),u.value=!u.value}async function R({page:n,sort:r}){let B={status:s.status,estimate_number:s.estimate_number,from_date:s.from_date,to_date:s.to_date,orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:n};h.value=!0;let i=await b.fetchEstimate(B,v.companySlug);return h.value=!1,{data:i.data.data,pagination:{totalPages:i.data.meta.last_page,currentPage:n,totalCount:i.data.meta.total,limit:10}}}return(n,r)=>{const B=l("BaseBreadcrumbItem"),i=l("BaseBreadcrumb"),m=l("BaseIcon"),G=l("BaseButton"),U=l("BasePageHeader"),W=l("BaseSelectInput"),g=l("BaseInputGroup"),z=l("BaseInput"),V=l("BaseDatePicker"),A=l("BaseFilterWrapper"),J=l("BaseEmptyPlaceholder"),$=l("router-link"),M=l("BaseEstimateStatusBadge"),X=l("BaseFormatMoney"),q=l("BaseDropdownItem"),O=l("BaseDropdown"),K=l("BasePage");return c(),d(K,null,{default:a(()=>[t(U,{title:n.$t("estimates.title")},{actions:a(()=>[o(b).totalEstimates?(c(),d(G,{key:0,variant:"primary-outline",onClick:H},{right:a(e=>[o(u)?(c(),d(m,{key:1,name:"XIcon",class:w(e.class)},null,8,["class"])):(c(),d(m,{key:0,name:"FilterIcon",class:w(e.class)},null,8,["class"]))]),default:a(()=>[_(p(n.$t("general.filter"))+" ",1)]),_:1})):C("",!0)]),default:a(()=>[t(i,null,{default:a(()=>[t(B,{title:n.$t("general.home"),to:`/${o(v).companySlug}/customer/dashboard`},null,8,["title","to"]),t(B,{title:n.$tc("estimates.estimate",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),S(t(A,{onClear:D},{default:a(()=>[t(g,{label:n.$t("estimates.status"),class:"px-3"},{default:a(()=>[t(W,{modelValue:o(s).status,"onUpdate:modelValue":r[0]||(r[0]=e=>o(s).status=e),options:j.value,searchable:"","show-labels":!1,"allow-empty":!1,placeholder:n.$t("general.select_a_status")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(g,{label:n.$t("estimates.estimate_number"),color:"black-light",class:"px-3 mt-2"},{default:a(()=>[t(z,{modelValue:o(s).estimate_number,"onUpdate:modelValue":r[1]||(r[1]=e=>o(s).estimate_number=e)},{default:a(()=>[t(m,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}),t(m,{name:"HashtagIcon",class:"h-5 mr-3 text-gray-600"})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(g,{label:n.$t("general.from"),class:"px-3"},{default:a(()=>[t(V,{modelValue:o(s).from_date,"onUpdate:modelValue":r[2]||(r[2]=e=>o(s).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),ne,t(g,{label:n.$t("general.to"),class:"px-3"},{default:a(()=>[t(V,{modelValue:o(s).to_date,"onUpdate:modelValue":r[3]||(r[3]=e=>o(s).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[F,o(u)]]),o(k)?(c(),d(J,{key:0,title:n.$t("estimates.no_estimates"),description:n.$t("estimates.list_of_estimates")},{default:a(()=>[t(oe,{class:"mt-5 mb-4"})]),_:1},8,["title","description"])):C("",!0),S(P("div",re,[t(ae,{ref:(e,L)=>{L.table=e,E.value=e},data:R,columns:o(x),"placeholder-count":o(b).totalEstimates>=20?10:5,class:"mt-10"},{"cell-estimate_date":a(({row:e})=>[_(p(e.data.formatted_estimate_date),1)]),"cell-estimate_number":a(({row:e})=>[t($,{to:{path:`estimates/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:a(()=>[_(p(e.data.estimate_number),1)]),_:2},1032,["to"])]),"cell-status":a(({row:e})=>[t(M,{status:e.data.status,class:"px-3 py-1"},{default:a(()=>[_(p(e.data.status),1)]),_:2},1032,["status"])]),"cell-total":a(({row:e})=>[t(X,{amount:e.data.total},null,8,["amount"])]),"cell-actions":a(({row:e})=>[t(O,null,{activator:a(()=>[t(m,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"})]),default:a(()=>[t($,{to:`estimates/${e.data.id}/view`},{default:a(()=>[t(q,null,{default:a(()=>[t(m,{name:"EyeIcon",class:"h-5 mr-3 text-gray-600"}),_(" "+p(n.$t("general.view")),1)]),_:1})]),_:2},1032,["to"])]),_:2},1024)]),_:1},8,["columns","placeholder-count"])],512),[[F,!o(k)]])]),_:1})}}};export{be as default};
import{J as ie,B as E,a0 as ce,k as C,aR as de,aS as pe,r as s,o as f,l as b,w as t,f as a,q as Y,ag as R,u as l,m as g,i as d,t as c,j as S,V as W,h as p,x as F}from"./vendor.01d0adc5.js";import{b as ye,j as _e,e as fe,g as B}from"./main.75722495.js";import{u as be}from"./payment.5c57bec3.js";import{_ as Be}from"./CapsuleIcon.dc769b69.js";import{_ as ve,a as he}from"./SendPaymentModal.1bb9d371.js";import"./mail-driver.4ea1af6b.js";const ge={class:"relative table-container"},Ce={class:"relative flex items-center justify-end h-5"},ke={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Pe={class:"absolute items-center left-6 top-2.5 select-none"},Ie={class:"relative block"},Me={setup($e){const{t:i}=ie();let v=E(!1),k=E(!0),y=E(null);const r=ce({customer:"",payment_mode:"",payment_number:""}),m=be();ye();const H=_e(),P=fe(),M=C(()=>!m.paymentTotalCount&&!k.value),L=C(()=>[{key:"status",sortable:!1,thClass:"extra w-10",tdClass:"text-left text-sm font-medium extra"},{key:"payment_date",label:i("payments.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"payment_number",label:i("payments.payment_number")},{key:"name",label:i("payments.customer")},{key:"payment_mode",label:i("payments.payment_mode")},{key:"invoice_number",label:i("invoices.invoice_number")},{key:"amount",label:i("payments.amount")},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),I=C({get:()=>m.selectedPayments,set:n=>m.selectPayment(n)}),$=C({get:()=>m.selectAllField,set:n=>m.setSelectAllState(n)});de(r,()=>{J()},{debounce:500}),pe(()=>{m.selectAllField&&m.selectAllPayments()}),m.fetchPaymentModes({limit:"all"});async function z(n){return(await m.fetchPaymentModes({search:n})).data.data}function G(){return P.hasAbilities([B.DELETE_PAYMENT,B.EDIT_PAYMENT,B.VIEW_PAYMENT,B.SEND_PAYMENT])}async function q({page:n,filter:o,sort:h}){let V={customer_id:r.customer_id,payment_method_id:r.payment_mode!==null?r.payment_mode:"",payment_number:r.payment_number,orderByField:h.fieldName||"created_at",orderBy:h.order||"desc",page:n};k.value=!0;let u=await m.fetchPayments(V);return k.value=!1,{data:u.data.data,pagination:{totalPages:u.data.meta.last_page,currentPage:n,totalCount:u.data.meta.total,limit:10}}}function D(){y.value&&y.value.refresh()}function J(){D()}function N(){r.customer_id="",r.payment_mode="",r.payment_number=""}function O(){v.value&&N(),v.value=!v.value}function X(){H.openDialog({title:i("general.are_you_sure"),message:i("payments.confirm_delete",2),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(n=>{n&&m.deleteMultiplePayments().then(o=>{o.data.success&&D()})})}return(n,o)=>{const h=s("BaseBreadcrumbItem"),V=s("BaseBreadcrumb"),u=s("BaseIcon"),T=s("BaseButton"),K=s("BasePageHeader"),Q=s("BaseCustomerSelectInput"),A=s("BaseInputGroup"),Z=s("BaseInput"),ee=s("BaseMultiselect"),te=s("BaseFilterWrapper"),ae=s("BaseEmptyPlaceholder"),ne=s("BaseDropdownItem"),le=s("BaseDropdown"),j=s("BaseCheckbox"),se=s("router-link"),oe=s("BaseText"),me=s("BaseFormatMoney"),re=s("BaseTable"),ue=s("BasePage");return f(),b(ue,{class:"payments"},{default:t(()=>[a(ve),a(K,{title:n.$t("payments.title")},{actions:t(()=>[Y(a(T,{variant:"primary-outline",onClick:O},{right:t(e=>[l(v)?(f(),b(u,{key:1,name:"XIcon",class:g(e.class)},null,8,["class"])):(f(),b(u,{key:0,class:g(e.class),name:"FilterIcon"},null,8,["class"]))]),default:t(()=>[d(c(n.$t("general.filter"))+" ",1)]),_:1},512),[[R,l(m).paymentTotalCount]]),l(P).hasAbilities(l(B).CREATE_PAYMENT)?(f(),b(T,{key:0,variant:"primary",class:"ml-4",onClick:o[0]||(o[0]=e=>n.$router.push("/admin/payments/create"))},{left:t(e=>[a(u,{name:"PlusIcon",class:g(e.class)},null,8,["class"])]),default:t(()=>[d(" "+c(n.$t("payments.add_payment")),1)]),_:1})):S("",!0)]),default:t(()=>[a(V,null,{default:t(()=>[a(h,{title:n.$t("general.home"),to:"dashboard"},null,8,["title"]),a(h,{title:n.$tc("payments.payment",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(te,{show:l(v),class:"mt-3",onClear:N},{default:t(()=>[a(A,{label:n.$t("payments.customer")},{default:t(()=>[a(Q,{modelValue:l(r).customer_id,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).customer_id=e),placeholder:n.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(A,{label:n.$t("payments.payment_number")},{default:t(()=>[a(Z,{modelValue:l(r).payment_number,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).payment_number=e)},{left:t(e=>[a(u,{name:"HashtagIcon",class:g(e.class)},null,8,["class"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),a(A,{label:n.$t("payments.payment_mode")},{default:t(()=>[a(ee,{modelValue:l(r).payment_mode,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).payment_mode=e),"value-prop":"id","track-by":"name","filter-results":!1,label:"name","resolve-on-load":"",delay:500,searchable:"",options:z},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),l(M)?(f(),b(ae,{key:0,title:n.$t("payments.no_payments"),description:n.$t("payments.list_of_payments")},W({default:t(()=>[a(Be,{class:"mt-5 mb-4"})]),_:2},[l(P).hasAbilities(l(B).CREATE_PAYMENT)?{name:"actions",fn:t(()=>[a(T,{variant:"primary-outline",onClick:o[4]||(o[4]=e=>n.$router.push("/admin/payments/create"))},{left:t(e=>[a(u,{name:"PlusIcon",class:g(e.class)},null,8,["class"])]),default:t(()=>[d(" "+c(n.$t("payments.add_new_payment")),1)]),_:1})])}:void 0]),1032,["title","description"])):S("",!0),Y(p("div",ge,[p("div",Ce,[l(m).selectedPayments.length?(f(),b(le,{key:0},{activator:t(()=>[p("span",ke,[d(c(n.$t("general.actions"))+" ",1),a(u,{name:"ChevronDownIcon"})])]),default:t(()=>[a(ne,{onClick:X},{default:t(()=>[a(u,{name:"TrashIcon",class:"mr-3 text-gray-600"}),d(" "+c(n.$t("general.delete")),1)]),_:1})]),_:1})):S("",!0)]),a(re,{ref:(e,_)=>{_.tableComponent=e,F(y)?y.value=e:y=e},data:q,columns:l(L),"placeholder-count":l(m).paymentTotalCount>=20?10:5,class:"mt-3"},W({header:t(()=>[p("div",Pe,[a(j,{modelValue:l($),"onUpdate:modelValue":o[5]||(o[5]=e=>F($)?$.value=e:null),variant:"primary",onChange:l(m).selectAllPayments},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[p("div",Ie,[a(j,{id:e.id,modelValue:l(I),"onUpdate:modelValue":o[6]||(o[6]=_=>F(I)?I.value=_:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-payment_date":t(({row:e})=>[d(c(e.data.formatted_payment_date),1)]),"cell-payment_number":t(({row:e})=>[a(se,{to:{path:`payments/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:t(()=>[d(c(e.data.payment_number),1)]),_:2},1032,["to"])]),"cell-name":t(({row:e})=>[a(oe,{text:e.data.customer.name,length:30,tag:"span"},null,8,["text"])]),"cell-payment_mode":t(({row:e})=>[p("span",null,c(e.data.payment_method?e.data.payment_method.name:"-"),1)]),"cell-invoice_number":t(({row:e})=>{var _,x,w,U;return[p("span",null,c(((x=(_=e==null?void 0:e.data)==null?void 0:_.invoice)==null?void 0:x.invoice_number)?(U=(w=e==null?void 0:e.data)==null?void 0:w.invoice)==null?void 0:U.invoice_number:"-"),1)]}),"cell-amount":t(({row:e})=>[a(me,{amount:e.data.amount,currency:e.data.customer.currency},null,8,["amount","currency"])]),_:2},[G()?{name:"cell-actions",fn:t(({row:e})=>[a(he,{row:e.data,table:l(y)},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[R,!l(M)]])]),_:1})}}};export{Me as default};
import{J as ve,ah as pe,B,aN as fe,a0 as be,k as F,aR as ge,aS as Be,r as i,o as I,l as h,w as l,f as t,q as D,ag as V,u as o,m as y,i as m,t as _,j as L,V as M,h as p,x as Ie}from"./vendor.01d0adc5.js";import{i as he,j as ye,u as ke,e as Ee,g as f}from"./main.75722495.js";import{_ as Ce}from"./MoonwalkerIcon.ab503573.js";import{_ as De}from"./InvoiceIndexDropdown.430bc329.js";import{_ as Ve}from"./SendInvoiceModal.89e6012d.js";import"./mail-driver.4ea1af6b.js";const Te=p("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Ae={class:"relative table-container"},$e={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Se={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Pe={class:"absolute items-center left-6 top-2.5 select-none"},we={class:"relative block"},Fe={class:"flex justify-between"},Me={setup(Ne){const c=he(),W=ye();ke();const{t:n}=ve();pe("$utils");const k=B(null),b=B(!1),G=B([{label:"Status",options:["DRAFT","DUE","SENT","VIEWED","OVERDUE","COMPLETED"]},{label:"Paid Status",options:["UNPAID","PAID","PARTIALLY_PAID"]},,]),T=B(!0),u=B("general.draft");fe();const E=Ee();let s=be({customer_id:"",status:"DRAFT",from_date:"",to_date:"",invoice_number:""});const N=F(()=>!c.invoiceTotalCount&&!T.value),A=F({get:()=>c.selectedInvoices,set:a=>c.selectInvoice(a)}),H=F(()=>[{key:"checkbox",thClass:"extra w-10",tdClass:"font-medium text-gray-900",placeholderClass:"w-10",sortable:!1},{key:"invoice_date",label:n("invoices.date"),thClass:"extra",tdClass:"font-medium"},{key:"invoice_number",label:n("invoices.number")},{key:"name",label:n("invoices.customer")},{key:"status",label:n("invoices.status")},{key:"due_amount",label:n("dashboard.recent_invoices_card.amount_due")},{key:"total",label:n("invoices.total"),tdClass:"font-medium text-gray-900"},{key:"actions",label:n("invoices.action"),tdClass:"text-right text-sm font-medium",thClass:"text-right",sortable:!1}]);ge(s,()=>{X()},{debounce:500}),Be(()=>{c.selectAllField&&c.selectAllInvoices()});function q(){return E.hasAbilities([f.DELETE_INVOICE,f.EDIT_INVOICE,f.VIEW_INVOICE,f.SEND_INVOICE])}async function z(a,r){s.status="",$()}function $(){k.value&&k.value.refresh()}async function Y({page:a,filter:r,sort:v}){let S={customer_id:s.customer_id,status:s.status,from_date:s.from_date,to_date:s.to_date,invoice_number:s.invoice_number,orderByField:v.fieldName||"created_at",orderBy:v.order||"desc",page:a};T.value=!0;let d=await c.fetchInvoices(S);return T.value=!1,{data:d.data.data,pagination:{totalPages:d.data.meta.last_page,currentPage:a,totalCount:d.data.meta.total,limit:10}}}function J(a){if(u.value==a.title)return!0;switch(u.value=a.title,a.title){case n("general.draft"):s.status="DRAFT";break;case n("general.sent"):s.status="SENT";break;case n("general.due"):s.status="DUE";break;default:s.status="";break}}function X(){c.$patch(a=>{a.selectedInvoices=[],a.selectAllField=!1}),$()}function U(){s.customer_id="",s.status="",s.from_date="",s.to_date="",s.invoice_number="",u.value=n("general.all")}async function K(){W.openDialog({title:n("general.are_you_sure"),message:n("invoices.confirm_delete"),yesLabel:n("general.ok"),noLabel:n("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async a=>{a&&await c.deleteMultipleInvoices().then(r=>{r.data.success&&($(),c.$patch(v=>{v.selectedInvoices=[],v.selectAllField=!1}))})})}function Q(){b.value&&U(),b.value=!b.value}function Z(a){switch(a){case"DRAFT":u.value=n("general.draft");break;case"SENT":u.value=n("general.sent");break;case"DUE":u.value=n("general.due");break;case"COMPLETED":u.value=n("invoices.completed");break;case"PAID":u.value=n("invoices.paid");break;case"UNPAID":u.value=n("invoices.unpaid");break;case"PARTIALLY_PAID":u.value=n("invoices.partially_paid");break;case"VIEWED":u.value=n("invoices.viewed");break;case"OVERDUE":u.value=n("invoices.overdue");break;default:u.value=n("general.all");break}}return(a,r)=>{const v=i("BaseBreadcrumbItem"),S=i("BaseBreadcrumb"),d=i("BaseIcon"),P=i("BaseButton"),R=i("router-link"),ee=i("BasePageHeader"),te=i("BaseCustomerSelectInput"),g=i("BaseInputGroup"),ae=i("BaseMultiselect"),O=i("BaseDatePicker"),le=i("BaseInput"),se=i("BaseFilterWrapper"),oe=i("BaseEmptyPlaceholder"),C=i("BaseTab"),ne=i("BaseTabGroup"),ie=i("BaseDropdownItem"),re=i("BaseDropdown"),j=i("BaseCheckbox"),ce=i("BaseText"),x=i("BaseFormatMoney"),ue=i("BaseInvoiceStatusBadge"),de=i("BasePaidStatusBadge"),me=i("BaseTable"),_e=i("BasePage");return I(),h(_e,null,{default:l(()=>[t(Ve),t(ee,{title:a.$t("invoices.title")},{actions:l(()=>[D(t(P,{variant:"primary-outline",onClick:Q},{right:l(e=>[b.value?(I(),h(d,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(I(),h(d,{key:0,name:"FilterIcon",class:y(e.class)},null,8,["class"]))]),default:l(()=>[m(_(a.$t("general.filter"))+" ",1)]),_:1},512),[[V,o(c).invoiceTotalCount]]),o(E).hasAbilities(o(f).CREATE_INVOICE)?(I(),h(R,{key:0,to:"invoices/create"},{default:l(()=>[t(P,{variant:"primary",class:"ml-4"},{left:l(e=>[t(d,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:l(()=>[m(" "+_(a.$t("invoices.new_invoice")),1)]),_:1})]),_:1})):L("",!0)]),default:l(()=>[t(S,null,{default:l(()=>[t(v,{title:a.$t("general.home"),to:"dashboard"},null,8,["title"]),t(v,{title:a.$tc("invoices.invoice",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),D(t(se,{"row-on-xl":!0,onClear:U},{default:l(()=>[t(g,{label:a.$tc("customers.customer",1)},{default:l(()=>[t(te,{modelValue:o(s).customer_id,"onUpdate:modelValue":r[0]||(r[0]=e=>o(s).customer_id=e),placeholder:a.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(g,{label:a.$t("invoices.status")},{default:l(()=>[t(ae,{modelValue:o(s).status,"onUpdate:modelValue":[r[1]||(r[1]=e=>o(s).status=e),Z],groups:!0,options:G.value,searchable:"",placeholder:a.$t("general.select_a_status"),onRemove:r[2]||(r[2]=e=>z())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(g,{label:a.$t("general.from")},{default:l(()=>[t(O,{modelValue:o(s).from_date,"onUpdate:modelValue":r[3]||(r[3]=e=>o(s).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Te,t(g,{label:a.$t("general.to"),class:"mt-2"},{default:l(()=>[t(O,{modelValue:o(s).to_date,"onUpdate:modelValue":r[4]||(r[4]=e=>o(s).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),t(g,{label:a.$t("invoices.invoice_number")},{default:l(()=>[t(le,{modelValue:o(s).invoice_number,"onUpdate:modelValue":r[5]||(r[5]=e=>o(s).invoice_number=e)},{left:l(e=>[t(d,{name:"HashtagIcon",class:y(e.class)},null,8,["class"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[V,b.value]]),D(t(oe,{title:a.$t("invoices.no_invoices"),description:a.$t("invoices.list_of_invoices")},M({default:l(()=>[t(Ce,{class:"mt-5 mb-4"})]),_:2},[o(E).hasAbilities(o(f).CREATE_INVOICE)?{name:"actions",fn:l(()=>[t(P,{variant:"primary-outline",onClick:r[6]||(r[6]=e=>a.$router.push("/admin/invoices/create"))},{left:l(e=>[t(d,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:l(()=>[m(" "+_(a.$t("invoices.add_new_invoice")),1)]),_:1})])}:void 0]),1032,["title","description"]),[[V,o(N)]]),D(p("div",Ae,[p("div",$e,[t(ne,{class:"-mb-5",onChange:J},{default:l(()=>[t(C,{title:a.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),t(C,{title:a.$t("general.due"),filter:"DUE"},null,8,["title"]),t(C,{title:a.$t("general.sent"),filter:"SENT"},null,8,["title"]),t(C,{title:a.$t("general.all"),filter:""},null,8,["title"])]),_:1}),o(c).selectedInvoices.length&&o(E).hasAbilities(o(f).DELETE_INVOICE)?(I(),h(re,{key:0,class:"absolute float-right"},{activator:l(()=>[p("span",Se,[m(_(a.$t("general.actions"))+" ",1),t(d,{name:"ChevronDownIcon"})])]),default:l(()=>[t(ie,{onClick:K},{default:l(()=>[t(d,{name:"TrashIcon",class:"mr-3 text-gray-600"}),m(" "+_(a.$t("general.delete")),1)]),_:1})]),_:1})):L("",!0)]),t(me,{ref:(e,w)=>{w.table=e,k.value=e},data:Y,columns:o(H),"placeholder-count":o(c).invoiceTotalCount>=20?10:5,class:"mt-10"},M({header:l(()=>[p("div",Pe,[t(j,{modelValue:o(c).selectAllField,"onUpdate:modelValue":r[7]||(r[7]=e=>o(c).selectAllField=e),variant:"primary",onChange:o(c).selectAllInvoices},null,8,["modelValue","onChange"])])]),"cell-checkbox":l(({row:e})=>[p("div",we,[t(j,{id:e.id,modelValue:o(A),"onUpdate:modelValue":r[8]||(r[8]=w=>Ie(A)?A.value=w:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-name":l(({row:e})=>[t(ce,{text:e.data.customer.name,length:30},null,8,["text"])]),"cell-invoice_number":l(({row:e})=>[t(R,{to:{path:`invoices/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:l(()=>[m(_(e.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-invoice_date":l(({row:e})=>[m(_(e.data.formatted_invoice_date),1)]),"cell-total":l(({row:e})=>[t(x,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":l(({row:e})=>[t(ue,{status:e.data.status,class:"px-3 py-1"},{default:l(()=>[m(_(e.data.status),1)]),_:2},1032,["status"])]),"cell-due_amount":l(({row:e})=>[p("div",Fe,[t(x,{amount:e.data.due_amount,currency:e.data.currency},null,8,["amount","currency"]),t(de,{status:e.data.paid_status,class:"px-1 py-0.5 ml-2"},{default:l(()=>[m(_(e.data.paid_status),1)]),_:2},1032,["status"])])]),_:2},[q()?{name:"cell-actions",fn:l(({row:e})=>[t(De,{row:e.data,table:k.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[V,!o(N)]])]),_:1})}}};export{Me as default};
import{B as g,J as le,a0 as oe,k as b,aR as ne,aS as re,I as ue,r as n,o as p,l as _,w as t,f as a,h as i,q as F,ag as A,u as l,m as v,i as B,t as d,j as U,V as ce,x as M}from"./vendor.01d0adc5.js";import{b as me,j as ie,l as de,e as pe,g as C}from"./main.75722495.js";import{_ as _e}from"./CustomerIndexDropdown.3adf4218.js";import{_ as fe}from"./AstronautIcon.948728ac.js";const he={class:"flex items-center justify-end space-x-5"},ye={class:"relative table-container"},Be={class:"relative flex items-center justify-end h-5"},Ce={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},ge={class:"absolute z-10 items-center left-6 top-2.5 select-none"},be={class:"relative block"},Se={setup(ve){me();const W=ie(),u=de(),k=pe();let f=g(null),h=g(!1),x=g(!0);const{t:m}=le();let r=oe({display_name:"",contact_name:"",phone:""});const P=b(()=>!u.totalCustomers&&!x.value),I=b({get:()=>u.selectedCustomers,set:s=>u.selectCustomer(s)}),V=b({get:()=>u.selectAllField,set:s=>u.setSelectAllState(s)}),Y=b(()=>[{key:"status",thClass:"extra w-10 pr-0",sortable:!1,tdClass:"font-medium text-gray-900 pr-0"},{key:"name",label:m("customers.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"phone",label:m("customers.phone")},{key:"due_amount",label:m("customers.amount_due")},{key:"created_at",label:m("items.added_on")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"pl-0",sortable:!1}]);ne(r,()=>{z()},{debounce:500}),re(()=>{u.selectAllField&&u.selectAllCustomers()});function S(){f.value.refresh()}function z(){S()}function L(){return k.hasAbilities([C.DELETE_CUSTOMER,C.EDIT_CUSTOMER,C.VIEW_CUSTOMER])}async function G({page:s,filter:o,sort:y}){let $={display_name:r.display_name,contact_name:r.contact_name,phone:r.phone,orderByField:y.fieldName||"created_at",orderBy:y.order||"desc",page:s};x.value=!0;let c=await u.fetchCustomers($);return x.value=!1,{data:c.data.data,pagination:{totalPages:c.data.meta.last_page,currentPage:s,totalCount:c.data.meta.total,limit:10}}}function R(){r.display_name="",r.contact_name="",r.phone=""}function H(){h.value&&R(),h.value=!h.value}let j=g(new Date);j.value=ue(j).format("YYYY-MM-DD");function q(){W.openDialog({title:m("general.are_you_sure"),message:m("customers.confirm_delete",2),yesLabel:m("general.ok"),noLabel:m("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(s=>{s&&u.deleteMultipleCustomers().then(o=>{o.data&&S()})})}return(s,o)=>{const y=n("BaseBreadcrumbItem"),$=n("BaseBreadcrumb"),c=n("BaseIcon"),D=n("BaseButton"),J=n("BasePageHeader"),E=n("BaseInput"),w=n("BaseInputGroup"),X=n("BaseFilterWrapper"),K=n("BaseEmptyPlaceholder"),Q=n("BaseDropdownItem"),Z=n("BaseDropdown"),N=n("BaseCheckbox"),O=n("BaseText"),ee=n("router-link"),te=n("BaseFormatMoney"),ae=n("BaseTable"),se=n("BasePage");return p(),_(se,null,{default:t(()=>[a(J,{title:s.$t("customers.title")},{actions:t(()=>[i("div",he,[F(a(D,{variant:"primary-outline",onClick:H},{right:t(e=>[l(h)?(p(),_(c,{key:1,name:"XIcon",class:v(e.class)},null,8,["class"])):(p(),_(c,{key:0,name:"FilterIcon",class:v(e.class)},null,8,["class"]))]),default:t(()=>[B(d(s.$t("general.filter"))+" ",1)]),_:1},512),[[A,l(u).totalCustomers]]),l(k).hasAbilities(l(C).CREATE_CUSTOMER)?(p(),_(D,{key:0,onClick:o[0]||(o[0]=e=>s.$router.push("customers/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:v(e.class)},null,8,["class"])]),default:t(()=>[B(" "+d(s.$t("customers.new_customer")),1)]),_:1})):U("",!0)])]),default:t(()=>[a($,null,{default:t(()=>[a(y,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),a(y,{title:s.$tc("customers.customer",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(X,{show:l(h),class:"mt-5",onClear:R},{default:t(()=>[a(w,{label:s.$t("customers.display_name"),class:"text-left"},{default:t(()=>[a(E,{modelValue:l(r).display_name,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).display_name=e),type:"text",name:"name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(w,{label:s.$t("customers.contact_name"),class:"text-left"},{default:t(()=>[a(E,{modelValue:l(r).contact_name,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).contact_name=e),type:"text",name:"address_name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(w,{label:s.$t("customers.phone"),class:"text-left"},{default:t(()=>[a(E,{modelValue:l(r).phone,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).phone=e),type:"text",name:"phone",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),F(a(K,{title:s.$t("customers.no_customers"),description:s.$t("customers.list_of_customers")},{actions:t(()=>[l(k).hasAbilities(l(C).CREATE_CUSTOMER)?(p(),_(D,{key:0,variant:"primary-outline",onClick:o[4]||(o[4]=e=>s.$router.push("/admin/customers/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:v(e.class)},null,8,["class"])]),default:t(()=>[B(" "+d(s.$t("customers.add_new_customer")),1)]),_:1})):U("",!0)]),default:t(()=>[a(fe,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[A,l(P)]]),F(i("div",ye,[i("div",Be,[l(u).selectedCustomers.length?(p(),_(Z,{key:0},{activator:t(()=>[i("span",Ce,[B(d(s.$t("general.actions"))+" ",1),a(c,{name:"ChevronDownIcon"})])]),default:t(()=>[a(Q,{onClick:q},{default:t(()=>[a(c,{name:"TrashIcon",class:"mr-3 text-gray-600"}),B(" "+d(s.$t("general.delete")),1)]),_:1})]),_:1})):U("",!0)]),a(ae,{ref:(e,T)=>{T.tableComponent=e,M(f)?f.value=e:f=e},class:"mt-3",data:G,columns:l(Y)},ce({header:t(()=>[i("div",ge,[a(N,{modelValue:l(V),"onUpdate:modelValue":o[5]||(o[5]=e=>M(V)?V.value=e:null),variant:"primary",onChange:l(u).selectAllCustomers},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[i("div",be,[a(N,{id:e.data.id,modelValue:l(I),"onUpdate:modelValue":o[6]||(o[6]=T=>M(I)?I.value=T:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[a(ee,{to:{path:`customers/${e.data.id}/view`}},{default:t(()=>[a(O,{text:e.data.name,length:30,tag:"span",class:"font-medium text-primary-500 flex flex-col"},null,8,["text"]),a(O,{text:e.data.contact_name?e.data.contact_name:"",length:30,tag:"span",class:"text-xs text-gray-400"},null,8,["text"])]),_:2},1032,["to"])]),"cell-phone":t(({row:e})=>[i("span",null,d(e.data.phone?e.data.phone:"-"),1)]),"cell-due_amount":t(({row:e})=>[a(te,{amount:e.data.due_amount||0,currency:e.data.currency},null,8,["amount","currency"])]),"cell-created_at":t(({row:e})=>[i("span",null,d(e.data.formatted_created_at),1)]),_:2},[L()?{name:"cell-actions",fn:t(({row:e})=>[a(_e,{row:e.data,table:l(f),"load-data":S},null,8,["row","table"])])}:void 0]),1032,["columns"])],512),[[A,!l(P)]])]),_:1})}}};export{Se as default};
import{J as G,G as oe,aN as M,ah as re,r as o,o as p,l as f,w as t,u as n,f as a,i as g,t as d,B as b,a0 as ue,k as D,C as ie,D as ce,aS as de,h as B,q as T,ag as z,m as V,j as E,V as me,x as H}from"./vendor.01d0adc5.js";import{u as O}from"./users.73a3faa4.js";import{j as W,u as q,e as J}from"./main.75722495.js";import{_ as pe}from"./AstronautIcon.948728ac.js";const fe={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(U){const $=U,u=W();q();const{t:_}=G();J();const y=oe();M();const k=O();re("utils");function m(i){u.openDialog({title:_("general.are_you_sure"),message:_("users.confirm_delete",1),yesLabel:_("general.ok"),noLabel:_("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(l=>{l&&k.deleteUser({ids:[i]}).then(h=>{h&&$.loadData&&$.loadData()})})}return(i,l)=>{const h=o("BaseIcon"),C=o("BaseButton"),v=o("BaseDropdownItem"),w=o("router-link"),x=o("BaseDropdown");return p(),f(x,null,{activator:t(()=>[n(y).name==="users.view"?(p(),f(C,{key:0,variant:"primary"},{default:t(()=>[a(h,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),f(h,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(w,{to:`/admin/users/${U.row.id}/edit`},{default:t(()=>[a(v,null,{default:t(()=>[a(h,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+d(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"]),a(v,{onClick:l[0]||(l[0]=S=>m(U.row.id))},{default:t(()=>[a(h,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),g(" "+d(i.$t("general.delete")),1)]),_:1})]),_:1})}}},_e={class:"flex items-center justify-end space-x-5"},he={class:"relative table-container"},ge={class:"relative flex items-center justify-end h-5 border-gray-200 border-solid"},Be={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},ye={class:"absolute z-10 items-center left-6 top-2.5 select-none"},ve={class:"custom-control custom-checkbox"},Ue={setup(U){q();const $=W(),u=O(),_=J();M();let y=b(!1),k=b(!0);b(null),b("created_at"),b(!1);const{t:m}=G();let i=b(null),l=ue({name:"",email:"",phone:""});const h=D(()=>[{key:"status",thClass:"extra",tdClass:"font-medium text-gray-900",sortable:!1},{key:"name",label:m("users.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"email",label:"Email"},{key:"phone",label:m("users.phone")},{key:"created_at",label:m("users.added_on")},{key:"actions",tdClass:"text-right text-sm font-medium",sortable:!1}]),C=D(()=>!u.totalUsers&&!k.value),v=D({get:()=>u.selectedUsers,set:s=>u.selectUser(s)}),w=D({get:()=>u.selectAllField,set:s=>u.setSelectAllState(s)});ie(l,()=>{x()},{deep:!0}),ce(()=>{u.fetchUsers(),u.fetchRoles()}),de(()=>{u.selectAllField&&u.selectAllUsers()});function x(){S()}function S(){i.value&&i.value.refresh()}async function X({page:s,filter:r,sort:I}){let F={display_name:l.name!==null?l.name:"",phone:l.phone!==null?l.phone:"",email:l.email!==null?l.email:"",orderByField:I.fieldName||"created_at",orderBy:I.order||"desc",page:s};k.value=!0;let c=await u.fetchUsers(F);return k.value=!1,{data:c.data.data,pagination:{totalPages:c.data.meta.last_page,currentPage:s,totalCount:c.data.meta.total,limit:10}}}function L(){l.name="",l.email="",l.phone=null}function K(){y.value&&L(),y.value=!y.value}function Q(){$.openDialog({title:m("general.are_you_sure"),message:m("users.confirm_delete",2),yesLabel:m("general.ok"),noLabel:m("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(s=>{s&&u.deleteMultipleUsers().then(r=>{r.data.success&&i.value&&i.value.refresh()})})}return(s,r)=>{const I=o("BaseBreadcrumbItem"),F=o("BaseBreadcrumb"),c=o("BaseIcon"),j=o("BaseButton"),Y=o("BasePageHeader"),P=o("BaseInput"),N=o("BaseInputGroup"),Z=o("BaseFilterWrapper"),ee=o("BaseEmptyPlaceholder"),te=o("BaseDropdownItem"),ae=o("BaseDropdown"),R=o("BaseCheckbox"),se=o("router-link"),le=o("BaseTable"),ne=o("BasePage");return p(),f(ne,null,{default:t(()=>[a(Y,{title:s.$t("users.title")},{actions:t(()=>[B("div",_e,[T(a(j,{variant:"primary-outline",onClick:K},{right:t(e=>[n(y)?(p(),f(c,{key:1,name:"XIcon",class:V(e.class)},null,8,["class"])):(p(),f(c,{key:0,name:"FilterIcon",class:V(e.class)},null,8,["class"]))]),default:t(()=>[g(d(s.$t("general.filter"))+" ",1)]),_:1},512),[[z,n(u).totalUsers]]),n(_).currentUser.is_owner?(p(),f(j,{key:0,onClick:r[0]||(r[0]=e=>s.$router.push("users/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:V(e.class),"aria-hidden":"true"},null,8,["class"])]),default:t(()=>[g(" "+d(s.$t("users.add_user")),1)]),_:1})):E("",!0)])]),default:t(()=>[a(F,null,{default:t(()=>[a(I,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),a(I,{title:s.$tc("users.title",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(Z,{show:n(y),class:"mt-3",onClear:L},{default:t(()=>[a(N,{label:s.$tc("users.name"),class:"flex-1 mt-2 mr-4"},{default:t(()=>[a(P,{modelValue:n(l).name,"onUpdate:modelValue":r[1]||(r[1]=e=>n(l).name=e),type:"text",name:"name",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(N,{label:s.$tc("users.email"),class:"flex-1 mt-2 mr-4"},{default:t(()=>[a(P,{modelValue:n(l).email,"onUpdate:modelValue":r[2]||(r[2]=e=>n(l).email=e),type:"text",name:"email",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),a(N,{class:"flex-1 mt-2",label:s.$tc("users.phone")},{default:t(()=>[a(P,{modelValue:n(l).phone,"onUpdate:modelValue":r[3]||(r[3]=e=>n(l).phone=e),type:"text",name:"phone",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),T(a(ee,{title:s.$t("users.no_users"),description:s.$t("users.list_of_users")},{actions:t(()=>[n(_).currentUser.is_owner?(p(),f(j,{key:0,variant:"primary-outline",onClick:r[4]||(r[4]=e=>s.$router.push("/admin/users/create"))},{left:t(e=>[a(c,{name:"PlusIcon",class:V(e.class)},null,8,["class"])]),default:t(()=>[g(" "+d(s.$t("users.add_user")),1)]),_:1})):E("",!0)]),default:t(()=>[a(pe,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[z,n(C)]]),T(B("div",he,[B("div",ge,[n(u).selectedUsers.length?(p(),f(ae,{key:0},{activator:t(()=>[B("span",Be,[g(d(s.$t("general.actions"))+" ",1),a(c,{name:"ChevronDownIcon",class:"h-5"})])]),default:t(()=>[a(te,{onClick:Q},{default:t(()=>[a(c,{name:"TrashIcon",class:"h-5 mr-3 text-gray-600"}),g(" "+d(s.$t("general.delete")),1)]),_:1})]),_:1})):E("",!0)]),a(le,{ref:(e,A)=>{A.table=e,H(i)?i.value=e:i=e},data:X,columns:n(h),class:"mt-3"},me({header:t(()=>[B("div",ye,[a(R,{modelValue:n(w),"onUpdate:modelValue":r[5]||(r[5]=e=>H(w)?w.value=e:null),variant:"primary",onChange:n(u).selectAllUsers},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[B("div",ve,[a(R,{id:e.data.id,modelValue:n(v),"onUpdate:modelValue":r[6]||(r[6]=A=>H(v)?v.value=A:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[a(se,{to:{path:`users/${e.data.id}/edit`},class:"font-medium text-primary-500"},{default:t(()=>[g(d(e.data.name),1)]),_:2},1032,["to"])]),"cell-phone":t(({row:e})=>[B("span",null,d(e.data.phone?e.data.phone:"-"),1)]),"cell-created_at":t(({row:e})=>[B("span",null,d(e.data.formatted_created_at),1)]),_:2},[n(_).currentUser.is_owner?{name:"cell-actions",fn:t(({row:e})=>[a(fe,{row:e.data,table:n(i),"load-data":S},null,8,["row","table"])])}:void 0]),1032,["columns"])],512),[[z,!n(C)]])]),_:1})}}};export{Ue as default};
import{J as A,B as b,a0 as K,ah as O,G as Q,k as I,aR as Y,r as o,o as B,l as h,w as t,f as n,q as P,ag as C,u as l,m as M,i as v,t as c,j as Z,h as g,x as ee}from"./vendor.01d0adc5.js";import te from"./BaseTable.6e206ca7.js";import{_ as ae}from"./CapsuleIcon.dc769b69.js";import{x as ne,w as le}from"./main.75722495.js";import{u as oe}from"./payment.037dd620.js";import{u as se}from"./global.08b6a984.js";import"./auth.4644c288.js";const me={class:"relative table-container"},re=["innerHTML"],Be={setup(ce){const{tm:ue,t:u}=A();let i=b(!1);b("created_at");let $=b(!0),y=b(null);const s=K({payment_mode:"",payment_number:""}),D=O("utils");Q();const d=oe(),_=se(),w=I(()=>!d.totalPayments&&!$.value),H=I(()=>_.currency),N=I(()=>[{key:"payment_date",label:u("payments.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"payment_number",label:u("payments.payment_number")},{key:"payment_mode",label:u("payments.payment_mode")},{key:"invoice_number",label:u("invoices.invoice_number")},{key:"amount",label:u("payments.amount")},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);Y(s,()=>{R()},{debounce:500});async function T(a){return(await d.fetchPaymentModes(a,_.companySlug)).data.data}async function E({page:a,filter:r,sort:p}){let k={payment_method_id:s.payment_mode!==null?s.payment_mode:"",payment_number:s.payment_number,orderByField:p.fieldName||"created_at",orderBy:p.order||"desc",page:a};$.value=!0;let m=await d.fetchPayments(k,_.companySlug);return $.value=!1,{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:a,totalCount:m.data.meta.total,limit:10}}}function G(){y.value.refresh()}function R(){G()}function S(){s.customer="",s.payment_mode="",s.payment_number=""}function W(){i.value&&S(),i.value=!i.value}return(a,r)=>{const p=o("BaseBreadcrumbItem"),k=o("BaseBreadcrumb"),m=o("BaseIcon"),x=o("BaseButton"),z=o("BasePageHeader"),L=o("BaseInput"),V=o("BaseInputGroup"),U=o("BaseMultiselect"),q=o("BaseFilterWrapper"),J=o("BaseEmptyPlaceholder"),j=o("router-link"),X=o("BasePage");return B(),h(X,null,{default:t(()=>[n(z,{title:a.$t("payments.title")},{actions:t(()=>[P(n(x,{variant:"primary-outline",onClick:W},{right:t(e=>[l(i)?(B(),h(m,{key:1,class:M(e.class),name:"XIcon"},null,8,["class"])):(B(),h(m,{key:0,class:M(e.class),name:"FilterIcon"},null,8,["class"]))]),default:t(()=>[v(c(a.$t("general.filter"))+" ",1)]),_:1},512),[[C,l(d).totalPayments]])]),default:t(()=>[n(k,{slot:"breadcrumbs"},{default:t(()=>[n(p,{title:a.$t("general.home"),to:`/${l(_).companySlug}/customer/dashboard`},null,8,["title","to"]),n(p,{title:a.$tc("payments.payment",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),P(n(q,{onClear:S},{default:t(()=>[n(V,{label:a.$t("payments.payment_number"),class:"px-3"},{default:t(()=>[n(L,{modelValue:l(s).payment_number,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).payment_number=e),placeholder:a.$t("payments.payment_number")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(V,{label:a.$t("payments.payment_mode"),class:"px-3"},{default:t(()=>[n(U,{modelValue:l(s).payment_mode,"onUpdate:modelValue":r[1]||(r[1]=e=>l(s).payment_mode=e),"value-prop":"id","track-by":"name","filter-results":!1,label:"name","resolve-on-load":"",delay:100,searchable:"",options:T,placeholder:a.$t("payments.payment_mode")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},512),[[C,l(i)]]),l(w)?(B(),h(J,{key:0,title:a.$t("payments.no_payments"),description:a.$t("payments.list_of_payments")},{default:t(()=>[n(ae,{class:"mt-5 mb-4"})]),_:1},8,["title","description"])):Z("",!0),P(g("div",me,[n(te,{ref:(e,f)=>{f.table=e,ee(y)?y.value=e:y=e},data:E,columns:l(N),"placeholder-count":l(d).totalPayments>=20?10:5,class:"mt-10"},{"cell-payment_date":t(({row:e})=>[v(c(e.data.formatted_payment_date),1)]),"cell-payment_number":t(({row:e})=>[n(j,{to:{path:`payments/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:t(()=>[v(c(e.data.payment_number),1)]),_:2},1032,["to"])]),"cell-payment_mode":t(({row:e})=>[g("span",null,c(e.data.payment_method?e.data.payment_method.name:a.$t("payments.not_selected")),1)]),"cell-invoice_number":t(({row:e})=>{var f,F;return[g("span",null,c(((f=e.data.invoice)==null?void 0:f.invoice_number)?(F=e.data.invoice)==null?void 0:F.invoice_number:a.$t("payments.no_invoice")),1)]}),"cell-amount":t(({row:e})=>[g("div",{innerHTML:l(D).formatMoney(e.data.amount,l(H))},null,8,re)]),"cell-actions":t(({row:e})=>[n(ne,null,{activator:t(()=>[n(m,{name:"DotsHorizontalIcon",class:"w-5 text-gray-500"})]),default:t(()=>[n(j,{to:`payments/${e.data.id}/view`},{default:t(()=>[n(le,null,{default:t(()=>[n(m,{name:"EyeIcon",class:"h-5 mr-3 text-gray-600"}),v(" "+c(a.$t("general.view")),1)]),_:1})]),_:2},1032,["to"])]),_:2},1024)]),_:1},8,["columns","placeholder-count"])],512),[[C,!l(w)]])]),_:1})}}};export{Be as default};
var ge=Object.defineProperty,he=Object.defineProperties;var Ce=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var W=(r,s,u)=>s in r?ge(r,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):r[s]=u,O=(r,s)=>{for(var u in s||(s={}))be.call(s,u)&&W(r,u,s[u]);if(G)for(var u of G(s))xe.call(s,u)&&W(r,u,s[u]);return r},q=(r,s)=>he(r,Ce(s));import{o as m,e as ve,h as c,m as y,J,G as Be,aN as Ee,ah as ke,r as o,l as _,w as t,u as a,f as l,i as b,t as g,j as I,B as M,a0 as we,k as F,aR as Se,aS as De,D as Ie,q as j,ag as X,V as K,x as U}from"./vendor.01d0adc5.js";import{u as Q}from"./expense.e270a61c.js";import{u as $e}from"./category.4b37f0ed.js";import{j as Y,u as Fe,e as ee,g as v,b as Ve}from"./main.75722495.js";const Pe={width:"110",height:"110",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Le={props:{primaryFillColor:{type:String,default:"fill-primary-500"},secondaryFillColor:{type:String,default:"fill-gray-600"}},setup(r){return(s,u)=>(m(),ve("svg",Pe,[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55 13.75C24.6245 13.75 0 22.9848 0 34.375C0 45.7652 24.6245 55 55 55C85.3755 55 110 45.7652 110 34.375C110 22.9848 85.3755 13.75 55 13.75ZM55 15.4688C86.8708 15.4688 108.281 25.245 108.281 34.375C108.281 43.505 86.8708 53.2812 55 53.2812C23.1292 53.2812 1.71875 43.505 1.71875 34.375C1.71875 25.245 23.1292 15.4688 55 15.4688Z",class:y(r.secondaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.9999 1.71875C66.0842 1.71875 75.7452 7.92172 80.697 17.038L82.732 17.2081C77.6737 7.01078 67.1549 0 54.9999 0C42.7985 0 32.2454 7.06406 27.2095 17.3267L29.2479 17.1411C34.1824 7.96812 43.8745 1.71875 54.9999 1.71875Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55 96.25C40.7619 96.25 25.7812 99.3283 25.7812 103.125C25.7812 106.922 40.7619 110 55 110C69.2381 110 84.2188 106.922 84.2188 103.125C84.2188 99.3283 69.2381 96.25 55 96.25ZM55 97.9688C70.4602 97.9688 81.5959 101.317 82.4811 103.125C81.5959 104.933 70.4602 108.281 55 108.281C39.5398 108.281 28.4041 104.933 27.5189 103.125C28.4041 101.317 39.5398 97.9688 55 97.9688Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27.4756 103.328L25.8049 102.922L41.2737 39.3286L42.9443 39.7342L27.4756 103.328Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M82.5247 103.328L67.0559 39.7342L68.7265 39.3286L84.1953 102.922L82.5247 103.328Z",class:y(r.primaryFillColor)},null,2),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M68.75 39.5312C68.75 42.3792 62.5934 44.6875 55 44.6875C47.4066 44.6875 41.25 42.3792 41.25 39.5312C41.25 36.6833 47.4066 34.375 55 34.375C62.5934 34.375 68.75 36.6833 68.75 39.5312Z",class:y(r.secondaryFillColor)},null,2)]))}},Ne={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(r){const s=r,u=Y();Fe();const{t:B}=J(),E=Q(),w=Be();Ee();const x=ee();ke("utils");function d(h){u.openDialog({title:B("general.are_you_sure"),message:B("expenses.confirm_delete",1),yesLabel:B("general.ok"),noLabel:B("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(p=>{p&&E.deleteExpense({ids:[h]}).then(C=>{C&&s.loadData&&s.loadData()})})}return(h,p)=>{const C=o("BaseIcon"),S=o("BaseButton"),k=o("BaseDropdownItem"),V=o("router-link"),P=o("BaseDropdown");return m(),_(P,null,{activator:t(()=>[a(w).name==="expenses.view"?(m(),_(S,{key:0,variant:"primary"},{default:t(()=>[l(C,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),_(C,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(x).hasAbilities(a(v).EDIT_EXPENSE)?(m(),_(V,{key:0,to:`/admin/expenses/${r.row.id}/edit`},{default:t(()=>[l(k,null,{default:t(()=>[l(C,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),b(" "+g(h.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):I("",!0),a(x).hasAbilities(a(v).DELETE_EXPENSE)?(m(),_(k,{key:1,onClick:p[0]||(p[0]=Z=>d(r.row.id))},{default:t(()=>[l(C,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),b(" "+g(h.$t("general.delete")),1)]),_:1})):I("",!0)]),_:1})}}},Ae=c("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Te={class:"relative table-container"},Me={class:"relative flex items-center justify-end h-5"},je={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Xe={class:"absolute items-center left-6 top-2.5 select-none"},Ue={class:"relative block"},Ze={class:"notes"},Re={class:"truncate note w-60"},qe={setup(r){Ve();const s=Q(),u=Y(),B=$e(),E=ee();let w=M(!0),x=M(null);const d=we({expense_category_id:"",from_date:"",to_date:"",customer_id:""}),{t:h}=J();let p=M(null);const C=F(()=>!s.totalExpenses&&!w.value),S=F({get:()=>s.selectedExpenses,set:n=>s.selectExpense(n)}),k=F({get:()=>s.selectAllField,set:n=>s.setSelectAllState(n)}),V=F(()=>[{key:"status",thClass:"extra w-10",tdClass:"font-medium text-gray-900",placeholderClass:"w-10",sortable:!1},{key:"expense_date",label:"Date",thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"name",label:"Category",thClass:"extra",tdClass:"cursor-pointer font-medium text-primary-500"},{key:"user_name",label:"Customer"},{key:"notes",label:"Note"},{key:"amount",label:"Amount"},{key:"actions",sortable:!1,tdClass:"text-right text-sm font-medium"}]);Se(d,()=>{te()},{debounce:500}),De(()=>{s.selectAllField&&s.selectAllExpenses()}),Ie(()=>{B.fetchCategories({limit:"all"})});async function P(n){return(await B.fetchCategories({search:n})).data.data}async function Z({page:n,filter:i,sort:D}){let N=q(O({},d),{orderByField:D.fieldName||"created_at",orderBy:D.order||"desc",page:n});w.value=!0;let f=await s.fetchExpenses(N);return w.value=!1,{data:f.data.data,pagination:{data:f.data.data,totalPages:f.data.meta.last_page,currentPage:n,totalCount:f.data.meta.total,limit:10}}}function L(){p.value&&p.value.refresh()}function te(){L()}function R(){d.expense_category_id="",d.from_date="",d.to_date="",d.customer_id=""}function ae(){x.value&&R(),x.value=!x.value}function le(){return E.hasAbilities([v.DELETE_EXPENSE,v.EDIT_EXPENSE])}function se(){u.openDialog({title:h("general.are_you_sure"),message:h("expenses.confirm_delete",2),yesLabel:h("general.ok"),noLabel:h("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(n=>{n&&s.deleteMultipleExpenses().then(i=>{i.data&&L()})})}return(n,i)=>{const D=o("BaseBreadcrumbItem"),N=o("BaseBreadcrumb"),f=o("BaseIcon"),A=o("BaseButton"),ne=o("BasePageHeader"),oe=o("BaseCustomerSelectInput"),$=o("BaseInputGroup"),re=o("BaseMultiselect"),z=o("BaseDatePicker"),ie=o("BaseFilterWrapper"),de=o("BaseEmptyPlaceholder"),ue=o("BaseDropdownItem"),ce=o("BaseDropdown"),H=o("BaseCheckbox"),me=o("router-link"),pe=o("BaseFormatMoney"),fe=o("BaseText"),_e=o("BaseTable"),ye=o("BasePage");return m(),_(ye,null,{default:t(()=>[l(ne,{title:n.$t("expenses.title")},{actions:t(()=>[j(l(A,{variant:"primary-outline",onClick:ae},{right:t(e=>[a(x)?(m(),_(f,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(m(),_(f,{key:0,name:"FilterIcon",class:y(e.class)},null,8,["class"]))]),default:t(()=>[b(g(n.$t("general.filter"))+" ",1)]),_:1},512),[[X,a(s).totalExpenses]]),a(E).hasAbilities(a(v).CREATE_EXPENSE)?(m(),_(A,{key:0,class:"ml-4",variant:"primary",onClick:i[0]||(i[0]=e=>n.$router.push("expenses/create"))},{left:t(e=>[l(f,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:t(()=>[b(" "+g(n.$t("expenses.add_expense")),1)]),_:1})):I("",!0)]),default:t(()=>[l(N,null,{default:t(()=>[l(D,{title:n.$t("general.home"),to:"dashboard"},null,8,["title"]),l(D,{title:n.$tc("expenses.expense",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),l(ie,{show:a(x),class:"mt-5",onClear:R},{default:t(()=>[l($,{label:n.$t("expenses.customer")},{default:t(()=>[l(oe,{modelValue:a(d).customer_id,"onUpdate:modelValue":i[1]||(i[1]=e=>a(d).customer_id=e),placeholder:n.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l($,{label:n.$t("expenses.category")},{default:t(()=>[l(re,{modelValue:a(d).expense_category_id,"onUpdate:modelValue":i[2]||(i[2]=e=>a(d).expense_category_id=e),"value-prop":"id",label:"name","track-by":"name","filter-results":!1,"resolve-on-load":"",delay:500,options:P,searchable:"",placeholder:n.$t("expenses.categories.select_a_category")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l($,{label:n.$t("expenses.from_date")},{default:t(()=>[l(z,{modelValue:a(d).from_date,"onUpdate:modelValue":i[3]||(i[3]=e=>a(d).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Ae,l($,{label:n.$t("expenses.to_date")},{default:t(()=>[l(z,{modelValue:a(d).to_date,"onUpdate:modelValue":i[4]||(i[4]=e=>a(d).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["show"]),j(l(de,{title:n.$t("expenses.no_expenses"),description:n.$t("expenses.list_of_expenses")},K({default:t(()=>[l(Le,{class:"mt-5 mb-4"})]),_:2},[a(E).hasAbilities(a(v).CREATE_EXPENSE)?{name:"actions",fn:t(()=>[l(A,{variant:"primary-outline",onClick:i[5]||(i[5]=e=>n.$router.push("/admin/expenses/create"))},{left:t(e=>[l(f,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:t(()=>[b(" "+g(n.$t("expenses.add_new_expense")),1)]),_:1})])}:void 0]),1032,["title","description"]),[[X,a(C)]]),j(c("div",Te,[c("div",Me,[a(s).selectedExpenses.length&&a(E).hasAbilities(a(v).DELETE_EXPENSE)?(m(),_(ce,{key:0},{activator:t(()=>[c("span",je,[b(g(n.$t("general.actions"))+" ",1),l(f,{name:"ChevronDownIcon"})])]),default:t(()=>[a(E).hasAbilities(a(v).DELETE_EXPENSE)?(m(),_(ue,{key:0,onClick:se},{default:t(()=>[l(f,{name:"TrashIcon",class:"h-5 mr-3 text-gray-600"}),b(" "+g(n.$t("general.delete")),1)]),_:1})):I("",!0)]),_:1})):I("",!0)]),l(_e,{ref:(e,T)=>{T.tableComponent=e,U(p)?p.value=e:p=e},data:Z,columns:a(V),class:"mt-3"},K({header:t(()=>[c("div",Xe,[l(H,{modelValue:a(k),"onUpdate:modelValue":i[6]||(i[6]=e=>U(k)?k.value=e:null),variant:"primary",onChange:a(s).selectAllExpenses},null,8,["modelValue","onChange"])])]),"cell-status":t(({row:e})=>[c("div",Ue,[l(H,{id:e.id,modelValue:a(S),"onUpdate:modelValue":i[7]||(i[7]=T=>U(S)?S.value=T:null),value:e.data.id,variant:"primary"},null,8,["id","modelValue","value"])])]),"cell-name":t(({row:e})=>[l(me,{to:{path:`expenses/${e.data.id}/edit`},class:"font-medium text-primary-500"},{default:t(()=>[b(g(e.data.expense_category.name),1)]),_:2},1032,["to"])]),"cell-amount":t(({row:e})=>[l(pe,{amount:e.data.amount,currency:e.data.currency},null,8,["amount","currency"])]),"cell-expense_date":t(({row:e})=>[b(g(e.data.formatted_expense_date),1)]),"cell-user_name":t(({row:e})=>[l(fe,{text:e.data.customer?e.data.customer.name:"-",length:30},null,8,["text"])]),"cell-notes":t(({row:e})=>[c("div",Ze,[c("div",Re,g(e.data.notes?e.data.notes:"-"),1)])]),_:2},[le()?{name:"cell-actions",fn:t(({row:e})=>[l(Ne,{row:e.data,table:a(p),"load-data":L},null,8,["row","table"])])}:void 0]),1032,["columns"])],512),[[X,!a(C)]])]),_:1})}}};export{qe as default};
import{J as K,ah as Q,G as Y,B as b,a0 as Z,k as I,aR as ee,r as s,o as B,l as y,w as a,f as t,q as k,ag as V,u as n,m as F,i,t as u,j as te,h as x}from"./vendor.01d0adc5.js";import{u as ae}from"./invoice.b61ade7d.js";import oe from"./BaseTable.6e206ca7.js";import{u as se}from"./global.08b6a984.js";import{_ as ne}from"./MoonwalkerIcon.ab503573.js";import"./auth.4644c288.js";import"./main.75722495.js";const le=x("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),re={class:"relative table-container"},fe={setup(ce){const{t:d}=K();Q("utils"),Y();const D=b(null);let g=b(!0),m=b(!1);const P=b(["DRAFT","DUE","SENT","VIEWED","OVERDUE","COMPLETED"]),o=Z({status:"",from_date:"",to_date:"",invoice_number:""}),p=ae(),h=se();I(()=>h.currency);const j=I(()=>[{key:"invoice_date",label:d("invoices.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"invoice_number",label:d("invoices.number")},{key:"status",label:d("invoices.status")},{key:"paid_status",label:d("invoices.paid_status")},{key:"due_amount",label:d("dashboard.recent_invoices_card.amount_due")},{key:"actions",thClass:"text-right",tdClass:"text-right text-sm font-medium",sortable:!1}]),$=I(()=>!p.totalInvoices&&!g.value);ee(o,()=>{T()},{debounce:500});function N(){D.value.refresh()}function T(){N()}function S(){o.status="",o.from_date="",o.to_date="",o.invoice_number=""}function U(){m.value&&S(),m.value=!m.value}async function H({page:l,sort:r}){let v={status:o.status,invoice_number:o.invoice_number,from_date:o.from_date,to_date:o.to_date,orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:l};g.value=!0;let _=await p.fetchInvoices(v,h.companySlug);return g.value=!1,{data:_.data.data,pagination:{totalPages:_.data.meta.last_page,currentPage:l,totalCount:_.data.meta.total,limit:10}}}return(l,r)=>{const v=s("BaseBreadcrumbItem"),_=s("BaseBreadcrumb"),c=s("BaseIcon"),G=s("BaseButton"),M=s("BasePageHeader"),R=s("BaseSelectInput"),f=s("BaseInputGroup"),W=s("BaseInput"),w=s("BaseDatePicker"),z=s("BaseFilterWrapper"),O=s("BaseEmptyPlaceholder"),C=s("router-link"),q=s("BaseFormatMoney"),E=s("BaseInvoiceStatusBadge"),A=s("BaseDropdownItem"),J=s("BaseDropdown"),L=s("BasePage");return B(),y(L,null,{default:a(()=>[t(M,{title:l.$t("invoices.title")},{actions:a(()=>[k(t(G,{variant:"primary-outline",onClick:U},{right:a(e=>[n(m)?(B(),y(c,{key:1,name:"XIcon",class:F(e.class)},null,8,["class"])):(B(),y(c,{key:0,name:"FilterIcon",class:F(e.class)},null,8,["class"]))]),default:a(()=>[i(u(l.$t("general.filter"))+" ",1)]),_:1},512),[[V,n(p).totalInvoices]])]),default:a(()=>[t(_,null,{default:a(()=>[t(v,{title:l.$t("general.home"),to:`/${n(h).companySlug}/customer/dashboard`},null,8,["title","to"]),t(v,{title:l.$tc("invoices.invoice",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),k(t(z,{onClear:S},{default:a(()=>[t(f,{label:l.$t("invoices.status"),class:"px-3"},{default:a(()=>[t(R,{modelValue:n(o).status,"onUpdate:modelValue":r[0]||(r[0]=e=>n(o).status=e),options:P.value,searchable:"","allow-empty":!1,placeholder:l.$t("general.select_a_status")},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(f,{label:l.$t("invoices.invoice_number"),color:"black-light",class:"px-3 mt-2"},{default:a(()=>[t(W,{modelValue:n(o).invoice_number,"onUpdate:modelValue":r[1]||(r[1]=e=>n(o).invoice_number=e)},{default:a(()=>[t(c,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}),t(c,{name:"HashtagIcon",class:"h-5 ml-3 text-gray-600"})]),_:1},8,["modelValue"])]),_:1},8,["label"]),t(f,{label:l.$t("general.from"),class:"px-3"},{default:a(()=>[t(w,{modelValue:n(o).from_date,"onUpdate:modelValue":r[2]||(r[2]=e=>n(o).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),le,t(f,{label:l.$t("general.to"),class:"px-3"},{default:a(()=>[t(w,{modelValue:n(o).to_date,"onUpdate:modelValue":r[3]||(r[3]=e=>n(o).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[V,n(m)]]),n($)?(B(),y(O,{key:0,title:l.$t("invoices.no_invoices"),description:l.$t("invoices.list_of_invoices")},{default:a(()=>[t(ne,{class:"mt-5 mb-4"})]),_:1},8,["title","description"])):te("",!0),k(x("div",re,[t(oe,{ref:(e,X)=>{X.table=e,D.value=e},data:H,columns:n(j),"placeholder-count":n(p).totalInvoices>=20?10:5,class:"mt-10"},{"cell-invoice_date":a(({row:e})=>[i(u(e.data.formatted_invoice_date),1)]),"cell-invoice_number":a(({row:e})=>[t(C,{to:{path:`invoices/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:a(()=>[i(u(e.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-due_amount":a(({row:e})=>[t(q,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":a(({row:e})=>[t(E,{status:e.data.status,class:"px-3 py-1"},{default:a(()=>[i(u(e.data.status),1)]),_:2},1032,["status"])]),"cell-paid_status":a(({row:e})=>[t(E,{status:e.data.paid_status,class:"px-3 py-1"},{default:a(()=>[i(u(e.data.paid_status),1)]),_:2},1032,["status"])]),"cell-actions":a(({row:e})=>[t(J,null,{activator:a(()=>[t(c,{name:"DotsHorizontalIcon",class:"h-5 text-gray-500"})]),default:a(()=>[t(C,{to:`invoices/${e.data.id}/view`},{default:a(()=>[t(A,null,{default:a(()=>[t(c,{name:"EyeIcon",class:"h-5 mr-3 text-gray-600"}),i(" "+u(l.$t("general.view")),1)]),_:1})]),_:2},1032,["to"])]),_:2},1024)]),_:1},8,["columns","placeholder-count"])],512),[[V,!n($)]])]),_:1})}}};export{fe as default};
import{J as j,a0 as C,B as b,I as r,k as M,C as L,D as F,r as i,o as I,e as N,h as m,f as t,w as c,u as p,i as U,t as P,U as H,l as K,m as X}from"./vendor.01d0adc5.js";import{d as W,b as z}from"./main.75722495.js";const Z={class:"grid gap-8 md:grid-cols-12 pt-10"},ee={class:"col-span-8 md:col-span-4"},te={class:"flex flex-col my-6 lg:space-x-3 lg:flex-row"},ae=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),oe={class:"col-span-8"},re=["src"],ne={setup(G){const{t:g}=j(),v=W();v.downloadReport=x;const u=C([g("dateRange.today"),g("dateRange.this_week"),g("dateRange.this_month"),g("dateRange.this_quarter"),g("dateRange.this_year"),g("dateRange.previous_week"),g("dateRange.previous_month"),g("dateRange.previous_quarter"),g("dateRange.previous_year"),g("dateRange.custom")]),$=b(["By Customer","By Item"]),o=b("By Customer"),k=b(g("dateRange.this_month"));let w=b(new Date),D=b(null),e=b(null),y=b(null),s=C({from_date:r().startOf("month").format("YYYY-MM-DD").toString(),to_date:r().endOf("month").format("YYYY-MM-DD").toString()});const O=z(),n=M(()=>D.value),d=M(()=>O.selectedCompany),V=M(()=>`${e.value}?from_date=${r(s.from_date).format("YYYY-MM-DD")}&to_date=${r(s.to_date).format("YYYY-MM-DD")}`),T=M(()=>`${y.value}?from_date=${r(s.from_date).format("YYYY-MM-DD")}&to_date=${r(s.to_date).format("YYYY-MM-DD")}`);L(w,f=>{s.from_date=r(f).startOf("year").toString(),s.to_date=r(f).endOf("year").toString()}),F(()=>{e.value=`/reports/sales/customers/${d.value.unique_hash}`,y.value=`/reports/sales/items/${d.value.unique_hash}`,l()});function _(f,Y){return r()[f](Y).format("YYYY-MM-DD")}function B(f,Y){return r().subtract(1,Y)[f](Y).format("YYYY-MM-DD")}function a(){switch(k.value){case"Today":s.from_date=r().format("YYYY-MM-DD"),s.to_date=r().format("YYYY-MM-DD");break;case"This Week":s.from_date=_("startOf","isoWeek"),s.to_date=_("endOf","isoWeek");break;case"This Month":s.from_date=_("startOf","month"),s.to_date=_("endOf","month");break;case"This Quarter":s.from_date=_("startOf","quarter"),s.to_date=_("endOf","quarter");break;case"This Year":s.from_date=_("startOf","year"),s.to_date=_("endOf","year");break;case"Previous Week":s.from_date=B("startOf","isoWeek"),s.to_date=B("endOf","isoWeek");break;case"Previous Month":s.from_date=B("startOf","month"),s.to_date=B("endOf","month");break;case"Previous Quarter":s.from_date=B("startOf","quarter"),s.to_date=B("endOf","quarter");break;case"Previous Year":s.from_date=B("startOf","year"),s.to_date=B("endOf","year");break}}async function l(){return o.value==="By Customer"?(D.value=V.value,!0):(D.value=T.value,!0)}async function S(){let f=await R();return window.open(n.value,"_blank"),f}function R(){return o.value==="By Customer"?(D.value=V.value,!0):(D.value=T.value,!0)}function x(){if(!R())return!1;window.open(n.value+"&download=true"),setTimeout(()=>o.value==="By Customer"?(D.value=V.value,!0):(D.value=T.value,!0),200)}return(f,Y)=>{const h=i("BaseMultiselect"),Q=i("BaseInputGroup"),E=i("BaseDatePicker"),J=i("BaseButton"),A=i("BaseIcon");return I(),N("div",Z,[m("div",ee,[t(Q,{label:f.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(h,{modelValue:k.value,"onUpdate:modelValue":[Y[0]||(Y[0]=q=>k.value=q),a],options:p(u)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",te,[t(Q,{label:f.$t("reports.sales.from_date")},{default:c(()=>[t(E,{modelValue:p(s).from_date,"onUpdate:modelValue":Y[1]||(Y[1]=q=>p(s).from_date=q)},null,8,["modelValue"])]),_:1},8,["label"]),ae,t(Q,{label:f.$t("reports.sales.to_date")},{default:c(()=>[t(E,{modelValue:p(s).to_date,"onUpdate:modelValue":Y[2]||(Y[2]=q=>p(s).to_date=q)},null,8,["modelValue"])]),_:1},8,["label"])]),t(Q,{label:f.$t("reports.sales.report_type"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(h,{modelValue:o.value,"onUpdate:modelValue":[Y[3]||(Y[3]=q=>o.value=q),l],options:$.value,placeholder:f.$t("reports.sales.report_type"),class:"mt-1"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(J,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(R,["prevent"])},{default:c(()=>[U(P(f.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",oe,[m("iframe",{src:p(n),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,re),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500",onClick:S},[t(A,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(f.$t("reports.view_pdf")),1)])])])}}},se={class:"grid gap-8 md:grid-cols-12 pt-10"},le={class:"col-span-8 md:col-span-4"},de={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},ue=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),ie={class:"col-span-8"},me=["src"],ce={setup(G){const g=W(),v=z(),{t:u}=j();g.downloadReport=B;const $=C([u("dateRange.today"),u("dateRange.this_week"),u("dateRange.this_month"),u("dateRange.this_quarter"),u("dateRange.this_year"),u("dateRange.previous_week"),u("dateRange.previous_month"),u("dateRange.previous_quarter"),u("dateRange.previous_year"),u("dateRange.custom")]),o=b(u("dateRange.this_month"));let k=b(new Date),w=b(null),D=b(null);const e=C({from_date:r().startOf("month").toString(),to_date:r().endOf("month").toString()}),y=M(()=>w.value),s=M(()=>v.selectedCompany),O=M(()=>`${D.value}?from_date=${r(e.from_date).format("YYYY-MM-DD")}&to_date=${r(e.to_date).format("YYYY-MM-DD")}`);F(()=>{D.value=`/reports/expenses/${s.value.unique_hash}`,w.value=O.value}),L(()=>k,a=>{e.from_date=r(a).startOf("year").toString(),e.to_date=r(a).endOf("year").toString()});function n(a,l){return r()[a](l).format("YYYY-MM-DD")}function d(a,l){return r().subtract(1,l)[a](l).format("YYYY-MM-DD")}function V(){switch(o.value){case"Today":e.from_date=r().format("YYYY-MM-DD"),e.to_date=r().format("YYYY-MM-DD");break;case"This Week":e.from_date=n("startOf","isoWeek"),e.to_date=n("endOf","isoWeek");break;case"This Month":e.from_date=n("startOf","month"),e.to_date=n("endOf","month");break;case"This Quarter":e.from_date=n("startOf","quarter"),e.to_date=n("endOf","quarter");break;case"This Year":e.from_date=n("startOf","year"),e.to_date=n("endOf","year");break;case"Previous Week":e.from_date=d("startOf","isoWeek"),e.to_date=d("endOf","isoWeek");break;case"Previous Month":e.from_date=d("startOf","month"),e.to_date=d("endOf","month");break;case"Previous Quarter":e.from_date=d("startOf","quarter"),e.to_date=d("endOf","quarter");break;case"Previous Year":e.from_date=d("startOf","year"),e.to_date=d("endOf","year");break}}async function T(){let a=await _();return window.open(y.value,"_blank"),a}function _(){return w.value=O.value,!0}function B(){!_(),window.open(y.value+"&download=true"),setTimeout(()=>{w.value=O.value},200)}return(a,l)=>{const S=i("BaseMultiselect"),R=i("BaseInputGroup"),x=i("BaseDatePicker"),f=i("BaseButton"),Y=i("BaseIcon");return I(),N("div",se,[m("div",le,[t(R,{label:a.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(S,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=h=>o.value=h),V],options:p($)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",de,[t(R,{label:a.$t("reports.expenses.from_date")},{default:c(()=>[t(x,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=h=>p(e).from_date=h)},null,8,["modelValue"])]),_:1},8,["label"]),ue,t(R,{label:a.$t("reports.expenses.to_date")},{default:c(()=>[t(x,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=h=>p(e).to_date=h)},null,8,["modelValue"])]),_:1},8,["label"])]),t(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:c(()=>[U(P(a.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",ie,[m("iframe",{src:p(y),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,me),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500 cursor-pointer",onClick:T},[t(Y,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(a.$t("reports.view_pdf")),1)])])])}}},pe={class:"grid gap-8 md:grid-cols-12 pt-10"},fe={class:"col-span-8 md:col-span-4"},_e={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},he=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),ge={class:"col-span-8"},ve=["src"],Ye={setup(G){const g=W(),v=z(),{t:u}=j();g.downloadReport=B;const $=C([u("dateRange.today"),u("dateRange.this_week"),u("dateRange.this_month"),u("dateRange.this_quarter"),u("dateRange.this_year"),u("dateRange.previous_week"),u("dateRange.previous_month"),u("dateRange.previous_quarter"),u("dateRange.previous_year"),u("dateRange.custom")]),o=b(u("dateRange.this_month"));let k=b(null),w=b(null),D=b(new Date);const e=C({from_date:r().startOf("month").toString(),to_date:r().endOf("month").toString()}),y=M(()=>k.value),s=M(()=>v.selectedCompany),O=M(()=>`${w.value}?from_date=${r(e.from_date).format("YYYY-MM-DD")}&to_date=${r(e.to_date).format("YYYY-MM-DD")}`);L(D,a=>{e.from_date=r(a).startOf("year").toString(),e.to_date=r(a).endOf("year").toString()}),F(()=>{w.value=`/reports/profit-loss/${s.value.unique_hash}`,k.value=O.value});function n(a,l){return r()[a](l).format("YYYY-MM-DD")}function d(a,l){return r().subtract(1,l)[a](l).format("YYYY-MM-DD")}function V(){switch(o.value){case"Today":e.from_date=r().format("YYYY-MM-DD"),e.to_date=r().format("YYYY-MM-DD");break;case"This Week":e.from_date=n("startOf","isoWeek"),e.to_date=n("endOf","isoWeek");break;case"This Month":e.from_date=n("startOf","month"),e.to_date=n("endOf","month");break;case"This Quarter":e.from_date=n("startOf","quarter"),e.to_date=n("endOf","quarter");break;case"This Year":e.from_date=n("startOf","year"),e.to_date=n("endOf","year");break;case"Previous Week":e.from_date=d("startOf","isoWeek"),e.to_date=d("endOf","isoWeek");break;case"Previous Month":e.from_date=d("startOf","month"),e.to_date=d("endOf","month");break;case"Previous Quarter":e.from_date=d("startOf","quarter"),e.to_date=d("endOf","quarter");break;case"Previous Year":e.from_date=d("startOf","year"),e.to_date=d("endOf","year");break}}async function T(){let a=await _();return window.open(y.value,"_blank"),a}function _(){return k.value=O.value,!0}function B(){!_(),window.open(y.value+"&download=true"),setTimeout(()=>{k.value=O.value},200)}return(a,l)=>{const S=i("BaseMultiselect"),R=i("BaseInputGroup"),x=i("BaseDatePicker"),f=i("BaseButton"),Y=i("BaseIcon");return I(),N("div",pe,[m("div",fe,[t(R,{label:a.$t("reports.profit_loss.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(S,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=h=>o.value=h),V],options:p($)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",_e,[t(R,{label:a.$t("reports.profit_loss.from_date")},{default:c(()=>[t(x,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=h=>p(e).from_date=h)},null,8,["modelValue"])]),_:1},8,["label"]),he,t(R,{label:a.$t("reports.profit_loss.to_date")},{default:c(()=>[t(x,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=h=>p(e).to_date=h)},null,8,["modelValue"])]),_:1},8,["label"])]),t(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:c(()=>[U(P(a.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",ge,[m("iframe",{src:p(y),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,ve),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500",onClick:T},[t(Y,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(a.$t("reports.view_pdf")),1)])])])}}},be={class:"grid gap-8 md:grid-cols-12 pt-10"},ye={class:"col-span-8 md:col-span-4"},ke={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},De=m("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),we={class:"col-span-8"},Re=["src"],Be={setup(G){const g=W();g.downloadReport=B;const{t:v}=j(),u=C([v("dateRange.today"),v("dateRange.this_week"),v("dateRange.this_month"),v("dateRange.this_quarter"),v("dateRange.this_year"),v("dateRange.previous_week"),v("dateRange.previous_month"),v("dateRange.previous_quarter"),v("dateRange.previous_year"),v("dateRange.custom")]),$=b(v("dateRange.this_month")),o=C({from_date:r().startOf("month").format("YYYY-MM-DD").toString(),to_date:r().endOf("month").format("YYYY-MM-DD").toString()});let k=b(null);const w=M(()=>k.value),D=z(),e=M(()=>D.selectedCompany);let y=b(null);F(()=>{y.value=`/reports/tax-summary/${e.value.unique_hash}`,k.value=s.value});const s=M(()=>`${y.value}?from_date=${r(o.from_date).format("YYYY-MM-DD")}&to_date=${r(o.to_date).format("YYYY-MM-DD")}`);let O=b(new Date);L(O.value,a=>{o.from_date=r(a).startOf("year").toString(),o.to_date=r(a).endOf("year").toString()});function n(a,l){return r()[a](l).format("YYYY-MM-DD")}function d(a,l){return r().subtract(1,l)[a](l).format("YYYY-MM-DD")}function V(){switch($.value){case"Today":o.from_date=r().format("YYYY-MM-DD"),o.to_date=r().format("YYYY-MM-DD");break;case"This Week":o.from_date=n("startOf","isoWeek"),o.to_date=n("endOf","isoWeek");break;case"This Month":o.from_date=n("startOf","month"),o.to_date=n("endOf","month");break;case"This Quarter":o.from_date=n("startOf","quarter"),o.to_date=n("endOf","quarter");break;case"This Year":o.from_date=n("startOf","year"),o.to_date=n("endOf","year");break;case"Previous Week":o.from_date=d("startOf","isoWeek"),o.to_date=d("endOf","isoWeek");break;case"Previous Month":o.from_date=d("startOf","month"),o.to_date=d("endOf","month");break;case"Previous Quarter":o.from_date=d("startOf","quarter"),o.to_date=d("endOf","quarter");break;case"Previous Year":o.from_date=d("startOf","year"),o.to_date=d("endOf","year");break}}async function T(){let a=await _();return window.open(w.value,"_blank"),a}function _(){return k.value=s.value,!0}function B(){!_(),window.open(w.value+"&download=true"),setTimeout(()=>{k.value=s.value},200)}return(a,l)=>{const S=i("BaseMultiselect"),R=i("BaseInputGroup"),x=i("BaseDatePicker"),f=i("BaseButton"),Y=i("BaseIcon");return I(),N("div",be,[m("div",ye,[t(R,{label:a.$t("reports.taxes.date_range"),class:"col-span-12 md:col-span-8"},{default:c(()=>[t(S,{modelValue:$.value,"onUpdate:modelValue":[l[0]||(l[0]=h=>$.value=h),V],options:p(u)},null,8,["modelValue","options"])]),_:1},8,["label"]),m("div",ke,[t(R,{label:a.$t("reports.taxes.from_date")},{default:c(()=>[t(x,{modelValue:p(o).from_date,"onUpdate:modelValue":l[1]||(l[1]=h=>p(o).from_date=h)},null,8,["modelValue"])]),_:1},8,["label"]),De,t(R,{label:a.$t("reports.taxes.to_date")},{default:c(()=>[t(x,{modelValue:p(o).to_date,"onUpdate:modelValue":l[2]||(l[2]=h=>p(o).to_date=h)},null,8,["modelValue"])]),_:1},8,["label"])]),t(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:c(()=>[U(P(a.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),m("div",we,[m("iframe",{src:p(w),class:"hidden w-full h-screen h-screen-ios border-gray-100 border-solid rounded md:flex"},null,8,Re),m("a",{class:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white rounded whitespace-nowrap md:hidden bg-primary-500",onClick:T},[t(Y,{name:"DocumentTextIcon",class:"h-5 mr-2"}),m("span",null,P(a.$t("reports.view_pdf")),1)])])])}}},$e={setup(G){const g=W();function v(){g.downloadReport()}return(u,$)=>{const o=i("BaseBreadcrumbItem"),k=i("BaseBreadcrumb"),w=i("BaseIcon"),D=i("BaseButton"),e=i("BasePageHeader"),y=i("BaseTab"),s=i("BaseTabGroup"),O=i("BasePage");return I(),K(O,null,{default:c(()=>[t(e,{title:u.$tc("reports.report",2)},{actions:c(()=>[t(D,{variant:"primary",class:"ml-4",onClick:v},{left:c(n=>[t(w,{name:"DownloadIcon",class:X(n.class)},null,8,["class"])]),default:c(()=>[U(" "+P(u.$t("reports.download_pdf")),1)]),_:1})]),default:c(()=>[t(k,null,{default:c(()=>[t(o,{title:u.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),t(o,{title:u.$tc("reports.report",2),to:"/admin/reports",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),t(s,{class:"p-2"},{default:c(()=>[t(y,{title:u.$t("reports.sales.sales"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(ne,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"]),t(y,{title:u.$t("reports.profit_loss.profit_loss"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(Ye,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"]),t(y,{title:u.$t("reports.expenses.expenses"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(ce,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"]),t(y,{title:u.$t("reports.taxes.taxes"),"tab-panel-container":"px-0 py-0"},{default:c(()=>[t(Be,{ref:(n,d)=>{d.report=n}},null,512)]),_:1},8,["title"])]),_:1})]),_:1})}}};export{$e as default};
import{B as h,J as ce,aN as _e,a0 as pe,k as R,aR as fe,aS as be,r as n,o as b,l as E,w as s,f as a,q as C,ag as I,u as l,m as y,i as _,t as p,j as P,h as g,V as Ee,x as ge}from"./vendor.01d0adc5.js";import{k as Be,j as ve,e as he,g as f}from"./main.75722495.js";import{_ as ye}from"./ObservatoryIcon.1877bd3e.js";import{_ as Te}from"./EstimateIndexDropdown.4eab32d4.js";import{_ as ke}from"./SendEstimateModal.a8bc3854.js";import"./mail-driver.4ea1af6b.js";const Ce=g("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Ie={class:"relative table-container"},Ae={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Se={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},De={class:"absolute items-center left-6 top-2.5 select-none"},Ve={class:"relative block"},Ne={setup($e){const u=Be(),W=ve(),T=he(),k=h(null),{t:i}=ce(),B=h(!1),G=h(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]),A=h(!0),d=h("general.draft");_e();let o=pe({customer_id:"",status:"DRAFT",from_date:"",to_date:"",estimate_number:""});const M=R(()=>!u.totalEstimateCount&&!A.value),S=R({get:()=>u.selectedEstimates,set:t=>{u.selectEstimate(t)}}),O=R(()=>[{key:"checkbox",thClass:"extra w-10 pr-0",sortable:!1,tdClass:"font-medium text-gray-900 pr-0"},{key:"estimate_date",label:i("estimates.date"),thClass:"extra",tdClass:"font-medium text-gray-500"},{key:"estimate_number",label:i("estimates.number",2)},{key:"name",label:i("estimates.customer")},{key:"status",label:i("estimates.status")},{key:"total",label:i("estimates.total"),tdClass:"font-medium text-gray-900"},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]);fe(o,()=>{q()},{debounce:500}),be(()=>{u.selectAllField&&u.selectAllEstimates()});function H(){return T.hasAbilities([f.CREATE_ESTIMATE,f.EDIT_ESTIMATE,f.VIEW_ESTIMATE,f.SEND_ESTIMATE])}async function J(t,r){o.status="",D()}function D(){k.value&&k.value.refresh()}async function L({page:t,filter:r,sort:c}){let V={customer_id:o.customer_id,status:o.status,from_date:o.from_date,to_date:o.to_date,estimate_number:o.estimate_number,orderByField:c.fieldName||"created_at",orderBy:c.order||"desc",page:t};A.value=!0;let m=await u.fetchEstimates(V);return A.value=!1,{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:t,totalCount:m.data.meta.total,limit:10}}}function X(t){if(d.value==t.title)return!0;switch(d.value=t.title,t.title){case i("general.draft"):o.status="DRAFT";break;case i("general.sent"):o.status="SENT";break;default:o.status="";break}}function q(){u.$patch(t=>{t.selectedEstimates=[],t.selectAllField=!1}),D()}function x(){o.customer_id="",o.status="",o.from_date="",o.to_date="",o.estimate_number="",d.value=i("general.all")}function z(){B.value&&x(),B.value=!B.value}async function K(){W.openDialog({title:i("general.are_you_sure"),message:i("estimates.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(t=>{t&&u.deleteMultipleEstimates().then(r=>{D(),r.data&&u.$patch(c=>{c.selectedEstimates=[],c.selectAllField=!1})})})}function Q(t){switch(t){case"DRAFT":d.value=i("general.draft");break;case"SENT":d.value=i("general.sent");break;case"VIEWED":d.value=i("estimates.viewed");break;case"EXPIRED":d.value=i("estimates.expired");break;case"ACCEPTED":d.value=i("estimates.accepted");break;case"REJECTED":d.value=i("estimates.rejected");break;default:d.value=i("general.all");break}}return(t,r)=>{const c=n("BaseBreadcrumbItem"),V=n("BaseBreadcrumb"),m=n("BaseIcon"),$=n("BaseButton"),N=n("router-link"),Y=n("BasePageHeader"),Z=n("BaseCustomerSelectInput"),v=n("BaseInputGroup"),ee=n("BaseMultiselect"),j=n("BaseDatePicker"),te=n("BaseInput"),ae=n("BaseFilterWrapper"),se=n("BaseEmptyPlaceholder"),F=n("BaseTab"),le=n("BaseTabGroup"),oe=n("BaseDropdownItem"),ne=n("BaseDropdown"),U=n("BaseCheckbox"),re=n("BaseText"),ie=n("BaseEstimateStatusBadge"),ue=n("BaseFormatMoney"),me=n("BaseTable"),de=n("BasePage");return b(),E(de,null,{default:s(()=>[a(ke),a(Y,{title:t.$t("estimates.title")},{actions:s(()=>[C(a($,{variant:"primary-outline",onClick:z},{right:s(e=>[B.value?(b(),E(m,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(b(),E(m,{key:0,class:y(e.class),name:"FilterIcon"},null,8,["class"]))]),default:s(()=>[_(p(t.$t("general.filter"))+" ",1)]),_:1},512),[[I,l(u).totalEstimateCount]]),l(T).hasAbilities(l(f).CREATE_ESTIMATE)?(b(),E(N,{key:0,to:"estimates/create"},{default:s(()=>[a($,{variant:"primary",class:"ml-4"},{left:s(e=>[a(m,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:s(()=>[_(" "+p(t.$t("estimates.new_estimate")),1)]),_:1})]),_:1})):P("",!0)]),default:s(()=>[a(V,null,{default:s(()=>[a(c,{title:t.$t("general.home"),to:"dashboard"},null,8,["title"]),a(c,{title:t.$tc("estimates.estimate",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),C(a(ae,{"row-on-xl":!0,onClear:x},{default:s(()=>[a(v,{label:t.$tc("customers.customer",1)},{default:s(()=>[a(Z,{modelValue:l(o).customer_id,"onUpdate:modelValue":r[0]||(r[0]=e=>l(o).customer_id=e),placeholder:t.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(v,{label:t.$t("estimates.status")},{default:s(()=>[a(ee,{modelValue:l(o).status,"onUpdate:modelValue":[r[1]||(r[1]=e=>l(o).status=e),Q],options:G.value,searchable:"",placeholder:t.$t("general.select_a_status"),onRemove:r[2]||(r[2]=e=>J())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),a(v,{label:t.$t("general.from")},{default:s(()=>[a(j,{modelValue:l(o).from_date,"onUpdate:modelValue":r[3]||(r[3]=e=>l(o).from_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Ce,a(v,{label:t.$t("general.to")},{default:s(()=>[a(j,{modelValue:l(o).to_date,"onUpdate:modelValue":r[4]||(r[4]=e=>l(o).to_date=e),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),a(v,{label:t.$t("estimates.estimate_number")},{default:s(()=>[a(te,{modelValue:l(o).estimate_number,"onUpdate:modelValue":r[5]||(r[5]=e=>l(o).estimate_number=e)},{left:s(e=>[a(m,{name:"HashtagIcon",class:y(e.class)},null,8,["class"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[I,B.value]]),C(a(se,{title:t.$t("estimates.no_estimates"),description:t.$t("estimates.list_of_estimates")},{actions:s(()=>[l(T).hasAbilities(l(f).CREATE_ESTIMATE)?(b(),E($,{key:0,variant:"primary-outline",onClick:r[6]||(r[6]=e=>t.$router.push("/admin/estimates/create"))},{left:s(e=>[a(m,{name:"PlusIcon",class:y(e.class)},null,8,["class"])]),default:s(()=>[_(" "+p(t.$t("estimates.add_new_estimate")),1)]),_:1})):P("",!0)]),default:s(()=>[a(ye,{class:"mt-5 mb-4"})]),_:1},8,["title","description"]),[[I,l(M)]]),C(g("div",Ie,[g("div",Ae,[a(le,{class:"-mb-5",onChange:X},{default:s(()=>[a(F,{title:t.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),a(F,{title:t.$t("general.sent"),filter:"SENT"},null,8,["title"]),a(F,{title:t.$t("general.all"),filter:""},null,8,["title"])]),_:1}),l(u).selectedEstimates.length&&l(T).hasAbilities(l(f).DELETE_ESTIMATE)?(b(),E(ne,{key:0,class:"absolute float-right"},{activator:s(()=>[g("span",Se,[_(p(t.$t("general.actions"))+" ",1),a(m,{name:"ChevronDownIcon"})])]),default:s(()=>[a(oe,{onClick:K},{default:s(()=>[a(m,{name:"TrashIcon",class:"mr-3 text-gray-600"}),_(" "+p(t.$t("general.delete")),1)]),_:1})]),_:1})):P("",!0)]),a(me,{ref:(e,w)=>{w.tableComponent=e,k.value=e},data:L,columns:l(O),"placeholder-count":l(u).totalEstimateCount>=20?10:5,class:"mt-10"},Ee({header:s(()=>[g("div",De,[a(U,{modelValue:l(u).selectAllField,"onUpdate:modelValue":r[7]||(r[7]=e=>l(u).selectAllField=e),variant:"primary",onChange:l(u).selectAllEstimates},null,8,["modelValue","onChange"])])]),"cell-checkbox":s(({row:e})=>[g("div",Ve,[a(U,{id:e.id,modelValue:l(S),"onUpdate:modelValue":r[8]||(r[8]=w=>ge(S)?S.value=w:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-estimate_date":s(({row:e})=>[_(p(e.data.formatted_estimate_date),1)]),"cell-estimate_number":s(({row:e})=>[a(N,{to:{path:`estimates/${e.data.id}/view`},class:"font-medium text-primary-500"},{default:s(()=>[_(p(e.data.estimate_number),1)]),_:2},1032,["to"])]),"cell-name":s(({row:e})=>[a(re,{text:e.data.customer.name,length:30},null,8,["text"])]),"cell-status":s(({row:e})=>[a(ie,{status:e.data.status,class:"px-3 py-1"},{default:s(()=>[_(p(e.data.status),1)]),_:2},1032,["status"])]),"cell-total":s(({row:e})=>[a(ue,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),_:2},[H()?{name:"cell-actions",fn:s(({row:e})=>[a(Te,{row:e.data,table:k.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[I,!l(M)]])]),_:1})}}};export{Ne as default};
import{J as I,k as v,r as l,o as n,e as i,t as c,j as y,h as t,f as e,u as r,l as $,w as u,B as k,L as j,M as J,N as O,T as K,F as Q,y as W,U as X,m as Y,i as P}from"./vendor.01d0adc5.js";import{_ as Z,r as ee,d as te}from"./main.75722495.js";const se={key:0,class:"absolute mt-5 px-6 w-full flex justify-end"},ae={key:0,class:"bg-white bg-opacity-75 text-xs px-3 py-1 font-semibold tracking-wide rounded"},ne={key:1,class:"ml-2 bg-white bg-opacity-75 text-xs px-3 py-1 font-semibold tracking-wide rounded"},oe={key:0},le={key:1},re=["src"],ie={class:"px-6 py-5 flex flex-col bg-gray-50 flex-1 justify-between"},de={class:"text-lg sm:text-2xl font-medium whitespace-nowrap truncate text-primary-500"},ce={key:0,class:"flex items-center mt-2"},ue=["src"],me=t("span",null,"by",-1),_e={class:"ml-2 text-base font-semibold truncate"},he={class:"flex justify-between mt-4 flex-col space-y-2 sm:space-y-0 sm:flex-row"},pe={class:"text-xl md:text-2xl font-semibold whitespace-nowrap text-primary-500"},fe={props:{data:{type:Object,default:null,required:!0}},setup(a){const o=a;I();let m=v(()=>parseInt(o.data.average_rating));return(d,_)=>{const h=l("base-text"),g=l("BaseRating");return n(),i("div",{class:"relative shadow-md border-2 border-gray-200 border-opacity-60 rounded-lg cursor-pointer overflow-hidden h-100",onClick:_[0]||(_[0]=w=>d.$router.push(`/admin/modules/${a.data.slug}`))},[a.data.purchased?(n(),i("div",se,[a.data.purchased?(n(),i("label",ae,c(d.$t("modules.purchased")),1)):y("",!0),a.data.installed?(n(),i("label",ne,[a.data.update_available?(n(),i("span",oe,c(d.$t("modules.update_available")),1)):(n(),i("span",le,c(d.$t("modules.installed")),1))])):y("",!0)])):y("",!0),t("img",{class:"lg:h-64 md:h-48 w-full object-cover object-center",src:a.data.cover,alt:"cover"},null,8,re),t("div",ie,[t("span",de,c(a.data.name),1),a.data.author_avatar?(n(),i("div",ce,[t("img",{class:"hidden h-10 w-10 rounded-full sm:inline-block mr-2",src:a.data.author_avatar?a.data.author_avatar:"http://localhost:3000/img/default-avatar.jpg",alt:""},null,8,ue),me,t("span",_e,c(a.data.author_name),1)])):y("",!0),e(h,{text:a.data.short_description,class:"pt-4 text-gray-500 h-16 line-clamp-2",length:110},null,8,["text"]),t("div",he,[t("div",null,[e(g,{rating:r(m)},null,8,["rating"])]),t("div",pe," $ "+c(a.data.monthly_price?a.data.monthly_price/100:a.data.yearly_price/100),1)])])])}}},ge={},ve={class:"shadow-md border-2 border-gray-200 border-opacity-60 rounded-lg cursor-pointer overflow-hidden h-100"},be={class:"px-6 py-5 flex flex-col bg-gray-50 flex-1 justify-between"},ye={class:"flex items-center mt-2"},xe={class:"flex justify-between mt-4 flex-col space-y-2 sm:space-y-0 sm:flex-row"};function $e(a,o){const m=l("BaseContentPlaceholdersBox"),d=l("BaseContentPlaceholdersText"),_=l("BaseContentPlaceholders");return n(),$(_,null,{default:u(()=>[t("div",ve,[e(m,{class:"h-48 lg:h-64 md:h-48 w-full",rounded:""}),t("div",be,[e(d,{class:"w-32 h-8",lines:1,rounded:""}),t("div",ye,[e(m,{class:"h-10 w-10 rounded-full sm:inline-block mr-2"}),t("div",null,[e(d,{class:"w-32 h-8 ml-2",lines:1,rounded:""})])]),e(d,{class:"pt-4 w-full h-16",lines:1,rounded:""}),t("div",xe,[e(d,{class:"w-32 h-8",lines:1,rounded:""}),e(d,{class:"w-32 h-8",lines:1,rounded:""})])])])]),_:1})}var B=Z(ge,[["render",$e]]);const ke={key:0},Be={key:0,class:"grid mt-6 w-full grid-cols-1 items-start gap-6 lg:grid-cols-2 xl:grid-cols-3"},we={key:1},Te={key:0,class:"grid mt-6 w-full grid-cols-1 items-start gap-6 lg:grid-cols-2 xl:grid-cols-3"},Ce={key:1,class:"mt-24"},Se={class:"flex items-center justify-center text-gray-500"},Ie={class:"text-gray-900 text-lg font-medium"},je={class:"mt-1 text-sm text-gray-500"},Pe={class:"grid lg:grid-cols-2 mt-6"},Me=["onSubmit"],Le={class:"flex space-x-2"},Ue=["href"],Ve=P(" Sign up & Get Token "),Ae={setup(a){const o=ee(),m=te(),d=k(""),{t:_}=I();let h=k(!1),g=k(!1);const w=v(()=>({api_token:{required:j.withMessage(_("validation.required"),J),minLength:j.withMessage(_("validation.name_min_length",{count:3}),O(3))}})),M=v(()=>o.apiToken?(L(),!0):!1),p=K(w,v(()=>o.currentUser)),x=v(()=>d.value==="INSTALLED"?o.modules.filter(s=>s.installed):o.modules);async function L(){g.value=!0,await o.fetchModules().then(()=>{g.value=!1})}async function U(){if(p.value.$touch(),p.value.$invalid)return!0;h.value=!0,o.checkApiToken(o.currentUser.api_token).then(s=>{if(s.data.success){V();return}h.value=!1})}async function V(){try{await m.updateGlobalSettings({data:{settings:{api_token:o.currentUser.api_token}},message:"settings.preferences.updated_message"}).then(s=>{if(s.data.success){o.apiToken=o.currentUser.api_token;return}}),h.value=!1}catch(s){h.value=!1,console.error(s);return}}function G(s){d.value=s.filter}return(s,b)=>{const T=l("BaseBreadcrumbItem"),N=l("BaseBreadcrumb"),A=l("BasePageHeader"),C=l("BaseTab"),q=l("BaseTabGroup"),D=l("BaseInput"),F=l("BaseInputGroup"),E=l("BaseIcon"),S=l("BaseButton"),R=l("BaseCard"),H=l("BasePage");return n(),$(H,null,{default:u(()=>[e(A,{title:s.$t("modules.title")},{default:u(()=>[e(N,null,{default:u(()=>[e(T,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),e(T,{title:s.$tc("modules.module",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(M)&&r(o).modules?(n(),i("div",ke,[e(q,{class:"-mb-5",onChange:G},{default:u(()=>[e(C,{title:s.$t("general.all"),filter:""},null,8,["title"]),e(C,{title:s.$t("modules.installed"),filter:"INSTALLED"},null,8,["title"])]),_:1}),r(g)?(n(),i("div",Be,[e(B),e(B),e(B)])):(n(),i("div",we,[r(x)&&r(x).length?(n(),i("div",Te,[(n(!0),i(Q,null,W(r(x),(f,z)=>(n(),i("div",{key:z},[e(fe,{data:f},null,8,["data"])]))),128))])):(n(),i("div",Ce,[t("label",Se,c(s.$t("modules.no_modules_installed")),1)]))]))])):(n(),$(R,{key:1,class:"mt-6"},{default:u(()=>[t("h6",Ie,c(s.$t("modules.connect_installation")),1),t("p",je,c(s.$t("modules.api_token_description",{url:r(m).config.base_url.replace(/^http:\/\//,"")})),1),t("div",Pe,[t("form",{action:"",class:"mt-6",onSubmit:X(U,["prevent"])},[e(F,{label:s.$t("modules.api_token"),required:"",error:r(p).api_token.$error&&r(p).api_token.$errors[0].$message},{default:u(()=>[e(D,{modelValue:r(o).currentUser.api_token,"onUpdate:modelValue":b[0]||(b[0]=f=>r(o).currentUser.api_token=f),invalid:r(p).api_token.$error,onInput:b[1]||(b[1]=f=>r(p).api_token.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t("div",Le,[e(S,{class:"mt-6",loading:r(h),type:"submit"},{left:u(f=>[e(E,{name:"SaveIcon",class:Y(f.class)},null,8,["class"])]),default:u(()=>[P(" "+c(s.$t("general.save")),1)]),_:1},8,["loading"]),t("a",{href:`${r(m).config.base_url}/auth/customer/register`,class:"mt-6 block",target:"_blank"},[e(S,{variant:"primary-outline",type:"button"},{default:u(()=>[Ve]),_:1})],8,Ue)])],40,Me)])]),_:1}))]),_:1})}}};export{Ae as default};
import{B as b,J as fe,aN as pe,a0 as ge,k as R,aR as be,aS as Ie,r,o as I,l as B,w as s,f as a,q as k,ag as V,u as o,m as $,i as m,t as _,j as M,V as q,h as p,x as Be}from"./vendor.01d0adc5.js";import{t as he,l as ye,j as Ce,u as Re,e as ke,g as h}from"./main.75722495.js";import{_ as Ve}from"./SendInvoiceModal.89e6012d.js";import{_ as $e}from"./RecurringInvoiceIndexDropdown.37d4a992.js";import{_ as Ee}from"./MoonwalkerIcon.ab503573.js";import"./mail-driver.4ea1af6b.js";const Ne=p("div",{class:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"1.5rem"}},null,-1),Se={class:"relative table-container"},Ae={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Te={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},we={class:"absolute items-center left-6 top-2.5 select-none"},xe={class:"relative block"},Ge={setup(De){const c=he();ye();const H=Ce(),D=Re(),E=ke(),y=b(null),{t:i}=fe(),g=b(!1),F=b(["ACTIVE","ON_HOLD","ALL"]),N=b(!0),v=b("recurring-invoices.all");pe();let l=ge({customer_id:"",status:"ACTIVE",from_date:"",to_date:""});const L=R(()=>!c.totalRecurringInvoices&&!N.value),S=R({get:()=>c.selectedRecurringInvoices,set:e=>c.selectRecurringInvoice(e)}),W=R(()=>[{key:"checkbox",thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"starts_at",label:i("recurring_invoices.starts_at"),thClass:"extra",tdClass:"font-medium"},{key:"customer",label:i("invoices.customer")},{key:"frequency",label:i("recurring_invoices.frequency.title")},{key:"status",label:i("invoices.status")},{key:"total",label:i("invoices.total")},{key:"actions",label:i("recurring_invoices.action"),tdClass:"text-right text-sm font-medium",thClass:"text-right",sortable:!1}]);be(l,()=>{Y()},{debounce:500}),Ie(()=>{c.selectAllField&&c.selectAllRecurringInvoices()});const z=R(()=>F.value.findIndex(e=>e===l.status));function J(){return E.hasAbilities([h.DELETE_RECURRING_INVOICE,h.EDIT_RECURRING_INVOICE,h.VIEW_RECURRING_INVOICE])}function X(e){const n=c.frequencies.find(u=>u.value===e);return n?n.label:`CUSTOM: ${e}`}function A(){y.value&&y.value.refresh()}async function K({page:e,filter:n,sort:u}){let f={customer_id:l.customer_id,status:l.status,from_date:l.from_date,to_date:l.to_date,orderByField:u.fieldName||"created_at",orderBy:u.order||"desc",page:e};N.value=!0;let d=await c.fetchRecurringInvoices(f);return N.value=!1,{data:d.data.data,pagination:{totalPages:d.data.meta.last_page,currentPage:e,totalCount:d.data.meta.total,limit:10}}}function Q(e){if(v.value==e.title)return!0;switch(v.value=e.title,e.title){case i("recurring_invoices.active"):l.status="ACTIVE";break;case i("recurring_invoices.on_hold"):l.status="ON_HOLD";break;case i("recurring_invoices.all"):l.status="ALL";break}}function Y(){c.$patch(e=>{e.selectedRecurringInvoices=[],e.selectAllField=!1}),A()}function O(){l.customer_id="",l.status="",l.from_date="",l.to_date="",l.invoice_number="",v.value=i("general.all")}async function Z(e=null){H.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async n=>{n&&await c.deleteMultipleRecurringInvoices(e).then(u=>{u.data.success?(A(),c.$patch(f=>{f.selectedRecurringInvoices=[],f.selectAllField=!1}),D.showNotification({type:"success",message:i("recurring_invoices.deleted_message",2)})):u.data.error&&D.showNotification({type:"error",message:u.data.message})})})}function ee(){g.value&&O(),g.value=!g.value}async function te(e,n){l.status="",A()}function ae(e){switch(e){case"ACTIVE":v.value=i("recurring_invoices.active");break;case"ON_HOLD":v.value=i("recurring_invoices.on_hold");break;case"ALL":v.value=i("recurring_invoices.all");break}}return(e,n)=>{const u=r("BaseBreadcrumbItem"),f=r("BaseBreadcrumb"),d=r("BaseIcon"),T=r("BaseButton"),U=r("router-link"),se=r("BasePageHeader"),ne=r("BaseCustomerSelectInput"),C=r("BaseInputGroup"),le=r("BaseMultiselect"),P=r("BaseDatePicker"),oe=r("BaseFilterWrapper"),re=r("BaseEmptyPlaceholder"),w=r("BaseTab"),ie=r("BaseTabGroup"),ce=r("BaseDropdownItem"),ue=r("BaseDropdown"),j=r("BaseCheckbox"),G=r("BaseText"),de=r("BaseRecurringInvoiceStatusBadge"),me=r("BaseFormatMoney"),_e=r("BaseTable"),ve=r("BasePage");return I(),B(ve,null,{default:s(()=>[a(Ve),a(se,{title:e.$t("recurring_invoices.title")},{actions:s(()=>[k(a(T,{variant:"primary-outline",onClick:ee},{right:s(t=>[g.value?(I(),B(d,{key:1,name:"XIcon",class:$(t.class)},null,8,["class"])):(I(),B(d,{key:0,name:"FilterIcon",class:$(t.class)},null,8,["class"]))]),default:s(()=>[m(_(e.$t("general.filter"))+" ",1)]),_:1},512),[[V,o(c).totalRecurringInvoices]]),o(E).hasAbilities(o(h).CREATE_RECURRING_INVOICE)?(I(),B(U,{key:0,to:"recurring-invoices/create"},{default:s(()=>[a(T,{variant:"primary",class:"ml-4"},{left:s(t=>[a(d,{name:"PlusIcon",class:$(t.class)},null,8,["class"])]),default:s(()=>[m(" "+_(e.$t("recurring_invoices.new_invoice")),1)]),_:1})]),_:1})):M("",!0)]),default:s(()=>[a(f,null,{default:s(()=>[a(u,{title:e.$t("general.home"),to:"dashboard"},null,8,["title"]),a(u,{title:e.$tc("recurring_invoices.invoice",2),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),k(a(oe,{onClear:O},{default:s(()=>[a(C,{label:e.$tc("customers.customer",1)},{default:s(()=>[a(ne,{modelValue:o(l).customer_id,"onUpdate:modelValue":n[0]||(n[0]=t=>o(l).customer_id=t),placeholder:e.$t("customers.type_or_click"),"value-prop":"id",label:"name"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(C,{label:e.$t("recurring_invoices.status")},{default:s(()=>[a(le,{modelValue:o(l).status,"onUpdate:modelValue":[n[1]||(n[1]=t=>o(l).status=t),ae],options:F.value,searchable:"",placeholder:e.$t("general.select_a_status"),onRemove:n[2]||(n[2]=t=>te())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),a(C,{label:e.$t("general.from")},{default:s(()=>[a(P,{modelValue:o(l).from_date,"onUpdate:modelValue":n[3]||(n[3]=t=>o(l).from_date=t),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"]),Ne,a(C,{label:e.$t("general.to")},{default:s(()=>[a(P,{modelValue:o(l).to_date,"onUpdate:modelValue":n[4]||(n[4]=t=>o(l).to_date=t),"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},512),[[V,g.value]]),k(a(re,{title:e.$t("recurring_invoices.no_invoices"),description:e.$t("recurring_invoices.list_of_invoices")},q({default:s(()=>[a(Ee,{class:"mt-5 mb-4"})]),_:2},[o(E).hasAbilities(o(h).CREATE_RECURRING_INVOICE)?{name:"actions",fn:s(()=>[a(T,{variant:"primary-outline",onClick:n[5]||(n[5]=t=>e.$router.push("/admin/recurring-invoices/create"))},{left:s(t=>[a(d,{name:"PlusIcon",class:$(t.class)},null,8,["class"])]),default:s(()=>[m(" "+_(e.$t("recurring_invoices.add_new_invoice")),1)]),_:1})])}:void 0]),1032,["title","description"]),[[V,o(L)]]),k(p("div",Se,[p("div",Ae,[a(ie,{class:"-mb-5","default-index":o(z),onChange:Q},{default:s(()=>[a(w,{title:e.$t("recurring_invoices.active"),filter:"ACTIVE"},null,8,["title"]),a(w,{title:e.$t("recurring_invoices.on_hold"),filter:"ON_HOLD"},null,8,["title"]),a(w,{title:e.$t("recurring_invoices.all"),filter:"ALL"},null,8,["title"])]),_:1},8,["default-index"]),o(c).selectedRecurringInvoices.length?(I(),B(ue,{key:0,class:"absolute float-right"},{activator:s(()=>[p("span",Te,[m(_(e.$t("general.actions"))+" ",1),a(d,{name:"ChevronDownIcon",class:"h-5"})])]),default:s(()=>[a(ce,{onClick:n[6]||(n[6]=t=>Z())},{default:s(()=>[a(d,{name:"TrashIcon",class:"mr-3 text-gray-600"}),m(" "+_(e.$t("general.delete")),1)]),_:1})]),_:1})):M("",!0)]),a(_e,{ref:(t,x)=>{x.table=t,y.value=t},data:K,columns:o(W),"placeholder-count":o(c).totalRecurringInvoices>=20?10:5,class:"mt-10"},q({header:s(()=>[p("div",we,[a(j,{modelValue:o(c).selectAllField,"onUpdate:modelValue":n[7]||(n[7]=t=>o(c).selectAllField=t),variant:"primary",onChange:o(c).selectAllRecurringInvoices},null,8,["modelValue","onChange"])])]),"cell-checkbox":s(({row:t})=>[p("div",xe,[a(j,{id:t.id,modelValue:o(S),"onUpdate:modelValue":n[8]||(n[8]=x=>Be(S)?S.value=x:null),value:t.data.id},null,8,["id","modelValue","value"])])]),"cell-starts_at":s(({row:t})=>[m(_(t.data.formatted_starts_at),1)]),"cell-customer":s(({row:t})=>[a(U,{to:{path:`recurring-invoices/${t.data.id}/view`}},{default:s(()=>[a(G,{text:t.data.customer.name,length:30,tag:"span",class:"font-medium text-primary-500 flex flex-col"},null,8,["text"]),a(G,{text:t.data.customer.contact_name?t.data.customer.contact_name:"",length:30,tag:"span",class:"text-xs text-gray-400"},null,8,["text"])]),_:2},1032,["to"])]),"cell-frequency":s(({row:t})=>[m(_(X(t.data.frequency)),1)]),"cell-status":s(({row:t})=>[a(de,{status:t.data.status,class:"px-3 py-1"},{default:s(()=>[m(_(t.data.status),1)]),_:2},1032,["status"])]),"cell-total":s(({row:t})=>[a(me,{amount:t.data.total,currency:t.data.customer.currency},null,8,["amount","currency"])]),_:2},[J?{name:"cell-actions",fn:s(({row:t})=>[a($e,{row:t.data,table:y.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[V,!o(L)]])]),_:1})}}};export{Ge as default};
var $e=Object.defineProperty;var ue=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var me=(n,q,d)=>q in n?$e(n,q,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[q]=d,ce=(n,q)=>{for(var d in q||(q={}))we.call(q,d)&&me(n,d,q[d]);if(ue)for(var d of ue(q))he.call(q,d)&&me(n,d,q[d]);return n};import{a as L,d as ye,B as M,k as z,r as b,o as B,l as F,w as u,h as V,e as k,t as U,i as P,j as E,F as ne,y as ie,u as e,f as t,m as O,J as G,D as Q,q as oe,ag as re,a0 as j,ah as ee,L as I,M as D,aT as ae,T as W,U as T,aj as le,Q as H,x as Z,N as Ie,O as qe,P as Be,S as ge,aN as pe}from"./vendor.01d0adc5.js";import{h as R,b as te,j as fe,_ as se,u as de,e as ve,d as _e,L as Ce}from"./main.75722495.js";import{u as X}from"./mail-driver.4ea1af6b.js";const A=(n=!1)=>{const q=n?window.pinia.defineStore:ye,d=te();return q({id:"installation",state:()=>({currentDataBaseData:{database_connection:"mysql",database_hostname:"127.0.0.1",database_port:"3306",database_name:null,database_username:null,database_password:null,app_url:window.location.origin}}),actions:{fetchInstallationRequirements(){return new Promise((r,i)=>{L.get("/api/v1/installation/requirements").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},fetchInstallationStep(){return new Promise((r,i)=>{L.get("/api/v1/installation/wizard-step").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},addInstallationStep(r){return new Promise((i,c)=>{L.post("/api/v1/installation/wizard-step",r).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},fetchInstallationPermissions(){return new Promise((r,i)=>{L.get("/api/v1/installation/permissions").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},fetchInstallationDatabase(r){return new Promise((i,c)=>{L.get("/api/v1/installation/database/config",{params:r}).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},addInstallationDatabase(r){return new Promise((i,c)=>{L.post("/api/v1/installation/database/config",r).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},addInstallationFinish(){return new Promise((r,i)=>{L.post("/api/v1/installation/finish").then(c=>{r(c)}).catch(c=>{R(c),i(c)})})},setInstallationDomain(r){return new Promise((i,c)=>{L.put("/api/v1/installation/set-domain",r).then(o=>{i(o)}).catch(o=>{R(o),c(o)})})},installationLogin(){return new Promise((r,i)=>{L.get("/sanctum/csrf-cookie").then(c=>{c&&L.post("/api/v1/installation/login").then(o=>{d.setSelectedCompany(o.data.company),r(o)}).catch(o=>{R(o),i(o)})})})},checkAutheticated(){return new Promise((r,i)=>{L.get("/api/v1/auth/check").then(c=>{r(c)}).catch(c=>{i(c)})})}}})()},Ve={class:"w-full md:w-2/3"},De={class:"mb-6"},Se={key:0,class:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},Fe={class:"col-span-2 text-sm"},Me={class:"text-right"},ze={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 bg-green-500 rounded-full"},ke={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 bg-red-500 rounded-full"},Ue={key:1},Pe={class:"col-span-2 text-sm"},Ne={class:"text-right"},Ee={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 bg-green-500 rounded-full"},Ge={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 bg-red-500 rounded-full"},Oe={emits:["next"],setup(n,{emit:q}){const d=M(""),r=M(""),i=M(!1);M(!0);const c=A(),o=z(()=>{if(d.value){let m=!0;for(const s in d.value)return d.value[s]||(m=!1),d.value&&r.value.supported&&m}return!1});async function f(){var s,h,a,g;i.value=!0;const m=await c.fetchInstallationRequirements();m.data&&(d.value=(a=(h=(s=m==null?void 0:m.data)==null?void 0:s.requirements)==null?void 0:h.requirements)==null?void 0:a.php,r.value=(g=m==null?void 0:m.data)==null?void 0:g.phpSupportInfo)}function l(){i.value=!0,q("next"),i.value=!1}return(m,s)=>{const h=b("BaseIcon"),a=b("BaseButton"),g=b("BaseWizardStep");return B(),F(g,{title:m.$t("wizard.req.system_req"),description:m.$t("wizard.req.system_req_desc")},{default:u(()=>[V("div",Ve,[V("div",De,[r.value?(B(),k("div",Se,[V("div",Fe,U(m.$t("wizard.req.php_req_version",{version:r.value.minimum})),1),V("div",Me,[P(U(r.value.current)+" ",1),r.value.supported?(B(),k("span",ze)):(B(),k("span",ke))])])):E("",!0),d.value?(B(),k("div",Ue,[(B(!0),k(ne,null,ie(d.value,($,C)=>(B(),k("div",{key:C,class:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},[V("div",Pe,U(C),1),V("div",Ne,[$?(B(),k("span",Ee)):(B(),k("span",Ge))])]))),128))])):E("",!0)]),e(o)?(B(),F(a,{key:0,onClick:l},{left:u($=>[t(h,{name:"ArrowRightIcon",class:O($.class)},null,8,["class"])]),default:u(()=>[P(U(m.$t("wizard.continue"))+" ",1)]),_:1})):E("",!0),d.value?E("",!0):(B(),F(a,{key:1,loading:i.value,disabled:i.value,onClick:f},{default:u(()=>[P(U(m.$t("wizard.req.check_req")),1)]),_:1},8,["loading","disabled"]))])]),_:1},8,["title","description"])}}},xe={key:1,class:"relative"},Le={class:"grid grid-flow-row grid-cols-3 lg:gap-24 sm:gap-4"},We={class:"col-span-2 p-3"},Te={class:"p-3 text-right"},je={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-green-500"},Re={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-red-500"},Ae={emits:["next"],setup(n,{emit:q}){let d=M(!1),r=M(!1),i=M([]);const{tm:c,t:o}=G(),f=A(),l=fe();Q(()=>{m()});async function m(){d.value=!0;const h=await f.fetchInstallationPermissions();i.value=h.data.permissions.permissions,h.data&&h.data.permissions.errors&&setTimeout(()=>{l.openDialog({title:c("wizard.permissions.permission_confirm_title"),message:o("wizard.permissions.permission_confirm_desc"),yesLabel:"OK",noLabel:"Cancel",variant:"danger",hideNoButton:!1,size:"lg"}).then(a=>{a.data&&(d.value=!1)})},500),d.value=!1}function s(){r.value=!0,q("next"),r.value=!1}return(h,a)=>{const g=b("BaseContentPlaceholdersText"),$=b("BaseContentPlaceholdersBox"),C=b("BaseContentPlaceholders"),p=b("BaseIcon"),_=b("BaseButton"),v=b("BaseWizardStep");return B(),F(v,{title:h.$t("wizard.permissions.permissions"),description:h.$t("wizard.permissions.permission_desc")},{default:u(()=>[e(d)?(B(),F(C,{key:0},{default:u(()=>[(B(),k(ne,null,ie(3,(w,y)=>V("div",{key:y,class:"grid grid-flow-row grid-cols-3 lg:gap-24 sm:gap-4 border border-gray-200"},[t(g,{lines:1,class:"col-span-4 p-3"})])),64)),t($,{rounded:!0,class:"mt-10",style:{width:"96px",height:"42px"}})]),_:1})):(B(),k("div",xe,[(B(!0),k(ne,null,ie(e(i),(w,y)=>(B(),k("div",{key:y,class:"border border-gray-200"},[V("div",Le,[V("div",We,U(w.folder),1),V("div",Te,[w.isSet?(B(),k("span",je)):(B(),k("span",Re)),V("span",null,U(w.permission),1)])])]))),128)),oe(t(_,{class:"mt-10",loading:e(r),disabled:e(r),onClick:s},{left:u(w=>[t(p,{name:"ArrowRightIcon",class:O(w.class)},null,8,["class"])]),default:u(()=>[P(" "+U(h.$t("wizard.continue")),1)]),_:1},8,["loading","disabled"]),[[re,!e(d)]])]))]),_:1},8,["title","description"])}}},Ye=["onSubmit"],Je={class:"grid grid-cols-1 gap-5 md:grid-cols-2 lg:mb-6 md:mb-6"},Ze={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const d=n,r=j(["sqlite","mysql","pgsql"]),{t:i}=G(),c=ee("utils"),o=A();Q(()=>{for(const g in f.value)d.configData.hasOwnProperty(g)&&(f.value[g]=d.configData[g])});const f=z(()=>o.currentDataBaseData),l=g=>c.checkValidUrl(g),m={database_connection:{required:I.withMessage(i("validation.required"),D)},database_hostname:{required:I.withMessage(i("validation.required"),D)},database_port:{required:I.withMessage(i("validation.required"),D),numeric:ae},database_name:{required:I.withMessage(i("validation.required"),D)},database_username:{required:I.withMessage(i("validation.required"),D)},app_url:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_url"),l)}},s=W(m,f.value);function h(){if(s.value.$touch(),s.value.$invalid)return!0;q("submit-data",f.value)}function a(){s.value.database_connection.$touch(),q("on-change-driver",f.value.database_connection)}return(g,$)=>{const C=b("BaseInput"),p=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Je,[t(p,{label:g.$t("wizard.database.app_url"),error:e(s).app_url.$error&&e(s).app_url.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).app_url,"onUpdate:modelValue":$[0]||($[0]=y=>e(f).app_url=y),invalid:e(s).app_url.$error,type:"text"},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.connection"),error:e(s).database_connection.$error&&e(s).database_connection.$errors[0].$message,required:""},{default:u(()=>[t(_,{modelValue:e(f).database_connection,"onUpdate:modelValue":[$[1]||($[1]=y=>e(f).database_connection=y),a],invalid:e(s).database_connection.$error,options:e(r),"can-deselect":!1,"can-clear":!1},null,8,["modelValue","invalid","options"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.port"),error:e(s).database_port.$error&&e(s).database_port.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_port,"onUpdate:modelValue":$[2]||($[2]=y=>e(f).database_port=y),invalid:e(s).database_port.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.db_name"),error:e(s).database_name.$error&&e(s).database_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_name,"onUpdate:modelValue":$[3]||($[3]=y=>e(f).database_name=y),invalid:e(s).database_name.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.username"),error:e(s).database_username.$error&&e(s).database_username.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_username,"onUpdate:modelValue":$[4]||($[4]=y=>e(f).database_username=y),invalid:e(s).database_username.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(p,{label:g.$t("wizard.database.password")},{default:u(()=>[t(C,{modelValue:e(f).database_password,"onUpdate:modelValue":$[5]||($[5]=y=>e(f).database_password=y),type:"password"},null,8,["modelValue"])]),_:1},8,["label"]),t(p,{label:g.$t("wizard.database.host"),error:e(s).database_hostname.$error&&e(s).database_hostname.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_hostname,"onUpdate:modelValue":$[6]||($[6]=y=>e(f).database_hostname=y),invalid:e(s).database_hostname.$error},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),t(w,{type:"submit",class:"mt-4",loading:n.isSaving,disabled:n.isSaving},{left:u(y=>[n.isSaving?E("",!0):(B(),F(v,{key:0,name:"SaveIcon",class:O(y.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(g.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled"])],40,Ye)}}},Ke=["onSubmit"],Qe={class:"grid grid-cols-1 gap-5 md:grid-cols-2 lg:mb-6 md:mb-6"},He={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const d=n,r=j(["sqlite","mysql","pgsql"]),{t:i}=G(),c=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const g in f.value)d.configData.hasOwnProperty(g)&&(f.value[g]=d.configData[g])});const l=g=>c.checkValidUrl(g),m={database_connection:{required:I.withMessage(i("validation.required"),D)},database_hostname:{required:I.withMessage(i("validation.required"),D)},database_port:{required:I.withMessage(i("validation.required"),D),numeric:ae},database_name:{required:I.withMessage(i("validation.required"),D)},database_username:{required:I.withMessage(i("validation.required"),D)},app_url:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_url"),l)}},s=W(m,f.value);function h(){if(s.value.$touch(),s.value.$invalid)return!0;q("submit-data",f.value)}function a(){s.value.database_connection.$touch(),q("on-change-driver",f.value.database_connection)}return(g,$)=>{const C=b("BaseInput"),p=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Qe,[t(p,{label:g.$t("wizard.database.app_url"),"content-loading":n.isFetchingInitialData,error:e(s).app_url.$error&&e(s).app_url.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).app_url,"onUpdate:modelValue":$[0]||($[0]=y=>e(f).app_url=y),"content-loading":n.isFetchingInitialData,invalid:e(s).app_url.$error,type:"text"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.connection"),"content-loading":n.isFetchingInitialData,error:e(s).database_connection.$error&&e(s).database_connection.$errors[0].$message,required:""},{default:u(()=>[t(_,{modelValue:e(f).database_connection,"onUpdate:modelValue":[$[1]||($[1]=y=>e(f).database_connection=y),a],"content-loading":n.isFetchingInitialData,invalid:e(s).database_connection.$error,options:e(r),"can-deselect":!1,"can-clear":!1},null,8,["modelValue","content-loading","invalid","options"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.port"),"content-loading":n.isFetchingInitialData,error:e(s).database_port.$error&&e(s).database_port.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_port,"onUpdate:modelValue":$[2]||($[2]=y=>e(f).database_port=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_port.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.db_name"),"content-loading":n.isFetchingInitialData,error:e(s).database_name.$error&&e(s).database_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_name,"onUpdate:modelValue":$[3]||($[3]=y=>e(f).database_name=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_name.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.username"),"content-loading":n.isFetchingInitialData,error:e(s).database_username.$error&&e(s).database_username.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_username,"onUpdate:modelValue":$[4]||($[4]=y=>e(f).database_username=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_username.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{"content-loading":n.isFetchingInitialData,label:g.$t("wizard.database.password")},{default:u(()=>[t(C,{modelValue:e(f).database_password,"onUpdate:modelValue":$[5]||($[5]=y=>e(f).database_password=y),"content-loading":n.isFetchingInitialData,type:"password"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),t(p,{label:g.$t("wizard.database.host"),"content-loading":n.isFetchingInitialData,error:e(s).database_hostname.$error&&e(s).database_hostname.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_hostname,"onUpdate:modelValue":$[6]||($[6]=y=>e(f).database_hostname=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_hostname.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),oe(t(w,{"content-loading":n.isFetchingInitialData,type:"submit",class:"mt-4",loading:n.isSaving,disabled:n.isSaving},{left:u(y=>[n.isSaving?E("",!0):(B(),F(v,{key:0,name:"SaveIcon",class:O(y.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(g.$t("wizard.save_cont")),1)]),_:1},8,["content-loading","loading","disabled"]),[[re,!n.isFetchingInitialData]])],40,Ke)}}},Xe=["onSubmit"],ea={class:"grid grid-cols-1 gap-5 md:grid-cols-2 lg:mb-6 md:mb-6"},aa={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const d=n,r=j(["sqlite","mysql","pgsql"]),{t:i}=G(),c=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const g in f.value)d.configData.hasOwnProperty(g)&&(f.value[g]=d.configData[g])});const l=g=>c.checkValidUrl(g),m={database_connection:{required:I.withMessage(i("validation.required"),D)},database_name:{required:I.withMessage(i("validation.required"),D)},app_url:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_url"),l)}},s=W(m,f.value);function h(){if(s.value.$touch(),s.value.$invalid)return!0;q("submit-data",f.value)}function a(){s.value.database_connection.$touch(),q("on-change-driver",f.value.database_connection)}return(g,$)=>{const C=b("BaseInput"),p=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",ea,[t(p,{label:g.$t("wizard.database.app_url"),"content-loading":n.isFetchingInitialData,error:e(s).app_url.$error&&e(s).app_url.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(f).app_url,"onUpdate:modelValue":$[0]||($[0]=y=>e(f).app_url=y),"content-loading":n.isFetchingInitialData,invalid:e(s).app_url.$error,type:"text"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.connection"),"content-loading":n.isFetchingInitialData,error:e(s).database_connection.$error&&e(s).database_connection.$errors[0].$message,required:""},{default:u(()=>[t(_,{modelValue:e(f).database_connection,"onUpdate:modelValue":[$[1]||($[1]=y=>e(f).database_connection=y),a],"content-loading":n.isFetchingInitialData,invalid:e(s).database_connection.$error,options:e(r),"can-deselect":!1,"can-clear":!1},null,8,["modelValue","content-loading","invalid","options"])]),_:1},8,["label","content-loading","error"]),t(p,{label:g.$t("wizard.database.db_path"),error:e(s).database_name.$error&&e(s).database_name.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(C,{modelValue:e(f).database_name,"onUpdate:modelValue":$[2]||($[2]=y=>e(f).database_name=y),"content-loading":n.isFetchingInitialData,invalid:e(s).database_name.$error},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"])]),oe(t(w,{"content-loading":n.isFetchingInitialData,type:"submit",class:"mt-4",loading:n.isSaving,disabled:n.isSaving},{left:u(y=>[n.isSaving?E("",!0):(B(),F(v,{key:0,name:"SaveIcon",class:O(y.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(g.$t("wizard.save_cont")),1)]),_:1},8,["content-loading","loading","disabled"]),[[re,!n.isFetchingInitialData]])],40,Xe)}}},ta={components:{Mysql:Ze,Pgsql:He,Sqlite:aa},emits:["next"],setup(n,{emit:q}){const d=M("mysql"),r=M(!1),{t:i}=G(),c=de(),o=A(),f=z(()=>o.currentDataBaseData);async function l(s){let h={connection:s};const a=await o.fetchInstallationDatabase(h);a.data.success&&(f.value.database_connection=a.data.config.database_connection),s==="sqlite"?f.value.database_name=a.data.config.database_name:f.value.database_name=null}async function m(s){r.value=!0;try{let h=await o.addInstallationDatabase(s);if(r.value=!1,h.data.success){await o.addInstallationFinish(),q("next",3),c.showNotification({type:"success",message:i("wizard.success."+h.data.success)});return}else if(h.data.error){if(h.data.requirement){c.showNotification({type:"error",message:i("wizard.errors."+h.data.error,{version:h.data.requirement.minimum,name:s.value.database_connection})});return}c.showNotification({type:"error",message:i("wizard.errors."+h.data.error)})}else h.data.errors?c.showNotification({type:"error",message:h.data.errors[0]}):h.data.error_message&&c.showNotification({type:"error",message:h.data.error_message})}catch{c.showNotification({type:"error",message:i("validation.something_went_wrong")}),r.value=!1}finally{r.value=!1}}return{databaseData:f,database_connection:d,isSaving:r,getDatabaseConfig:l,next:m}}};function na(n,q,d,r,i,c){const o=b("BaseWizardStep");return B(),F(o,{title:n.$t("wizard.database.database"),description:n.$t("wizard.database.desc"),"step-container":"w-full p-8 mb-8 bg-white border border-gray-200 border-solid rounded md:w-full"},{default:u(()=>[(B(),F(le(r.databaseData.database_connection),{"config-data":r.databaseData,"is-saving":r.isSaving,onOnChangeDriver:r.getDatabaseConfig,onSubmitData:r.next},null,8,["config-data","is-saving","onOnChangeDriver","onSubmitData"]))]),_:1},8,["title","description"])}var ia=se(ta,[["render",na]]);const oa={class:"w-full md:w-2/3"},ra=V("p",{class:"mt-4 mb-0 text-sm text-gray-600"},"Notes:",-1),la=V("ul",{class:"w-full text-gray-600 list-disc list-inside"},[V("li",{class:"text-sm leading-8"},[P(" App domain should not contain "),V("b",{class:"inline-block px-1 bg-gray-100 rounded-sm"},"https://"),P(" or "),V("b",{class:"inline-block px-1 bg-gray-100 rounded-sm"},"http"),P(" in front of the domain. ")]),V("li",{class:"text-sm leading-8"},[P(" If you're accessing the website on a different port, please mention the port. For example: "),V("b",{class:"inline-block px-1 bg-gray-100"},"localhost:8080")])],-1),sa={emits:["next"],setup(n,{emit:q}){const d=j({app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")}),r=M(!1),{t:i}=G(),c=ee("utils"),o=a=>c.checkValidDomainUrl(a),f=A(),l=de(),m={app_domain:{required:I.withMessage(i("validation.required"),D),isUrl:I.withMessage(i("validation.invalid_domain_url"),o)}},s=W(m,z(()=>d));async function h(){if(s.value.$touch(),s.value.$invalid)return!0;r.value=!0;try{await f.setInstallationDomain(d),await f.installationLogin(),(await f.checkAutheticated()).data&&q("next",4),r.value=!1}catch{l.showNotification({type:"error",message:i("wizard.verify_domain.failed")}),r.value=!1}}return(a,g)=>{const $=b("BaseInput"),C=b("BaseInputGroup"),p=b("BaseButton"),_=b("BaseWizardStep");return B(),F(_,{title:a.$t("wizard.verify_domain.title"),description:a.$t("wizard.verify_domain.desc")},{default:u(()=>[V("div",oa,[t(C,{label:a.$t("wizard.verify_domain.app_domain"),error:e(s).app_domain.$error&&e(s).app_domain.$errors[0].$message,required:""},{default:u(()=>[t($,{modelValue:e(d).app_domain,"onUpdate:modelValue":g[0]||(g[0]=v=>e(d).app_domain=v),invalid:e(s).app_domain.$error,type:"text",onInput:g[1]||(g[1]=v=>e(s).app_domain.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),ra,la,t(p,{loading:r.value,disabled:r.value,class:"mt-8",onClick:h},{default:u(()=>[P(U(a.$t("wizard.verify_domain.verify_now")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])}}},da=["onSubmit"],ua={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ma={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ca={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ga={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},pa={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){let d=M(!1);const r=j(["tls","ssl","starttls"]),{t:i}=G(),c=X(),o=z(()=>c.smtpConfig),f=z(()=>d.value?"text":"password");o.value.mail_driver="smtp";const l=z(()=>({smtpConfig:{mail_driver:{required:I.withMessage(i("validation.required"),D)},mail_host:{required:I.withMessage(i("validation.required"),D)},mail_port:{required:I.withMessage(i("validation.required"),D),numeric:I.withMessage(i("validation.numbers_only"),ae)},mail_encryption:{required:I.withMessage(i("validation.required"),D)},from_mail:{required:I.withMessage(i("validation.required"),D),email:I.withMessage(i("validation.email_incorrect"),H)},from_name:{required:I.withMessage(i("validation.required"),D)}}})),m=W(l,z(()=>c));async function s(){return m.value.$touch(),m.value.$invalid||q("submit-data",c.smtpConfig),!1}function h(){m.value.smtpConfig.mail_driver.$touch(),q("on-change-driver",c.smtpConfig.mail_driver)}return(a,g)=>{const $=b("BaseMultiselect"),C=b("BaseInputGroup"),p=b("BaseInput"),_=b("BaseIcon"),v=b("BaseButton");return B(),k("form",{onSubmit:T(s,["prevent"])},[V("div",ua,[t(C,{label:a.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(m).smtpConfig.mail_driver.$error&&e(m).smtpConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t($,{modelValue:e(o).mail_driver,"onUpdate:modelValue":[g[0]||(g[0]=w=>e(o).mail_driver=w),h],options:e(c).mail_drivers,"can-deselect":!1,"content-loading":n.isFetchingInitialData,invalid:e(m).smtpConfig.mail_driver.$error},null,8,["modelValue","options","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t(C,{label:a.$t("wizard.mail.host"),"content-loading":n.isFetchingInitialData,error:e(m).smtpConfig.mail_host.$error&&e(m).smtpConfig.mail_host.$errors[0].$message,required:""},{default:u(()=>[t(p,{modelValue:e(o).mail_host,"onUpdate:modelValue":g[1]||(g[1]=w=>e(o).mail_host=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.mail_host.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_host",onInput:g[2]||(g[2]=w=>e(m).smtpConfig.mail_host.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",ma,[t(C,{label:a.$t("wizard.mail.username"),"content-loading":n.isFetchingInitialData},{default:u(()=>[t(p,{modelValue:e(o).mail_username,"onUpdate:modelValue":g[3]||(g[3]=w=>e(o).mail_username=w),modelModifiers:{trim:!0},"content-loading":n.isFetchingInitialData,type:"text",name:"db_name"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),t(C,{label:a.$t("wizard.mail.password"),"content-loading":n.isFetchingInitialData},{default:u(()=>[t(p,{modelValue:e(o).mail_password,"onUpdate:modelValue":g[6]||(g[6]=w=>e(o).mail_password=w),modelModifiers:{trim:!0},type:e(f),"content-loading":n.isFetchingInitialData,autocomplete:"off","data-lpignore":"true",name:"password"},{right:u(()=>[e(d)?(B(),F(_,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:g[4]||(g[4]=w=>Z(d)?d.value=!e(d):d=!e(d))})):(B(),F(_,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:g[5]||(g[5]=w=>Z(d)?d.value=!e(d):d=!e(d))}))]),_:1},8,["modelValue","type","content-loading"])]),_:1},8,["label","content-loading"])]),V("div",ca,[t(C,{label:a.$t("wizard.mail.port"),error:e(m).smtpConfig.mail_port.$error&&e(m).smtpConfig.mail_port.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(p,{modelValue:e(o).mail_port,"onUpdate:modelValue":g[7]||(g[7]=w=>e(o).mail_port=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.mail_port.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_port",onInput:g[8]||(g[8]=w=>e(m).smtpConfig.mail_port.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(C,{label:a.$t("wizard.mail.encryption"),error:e(m).smtpConfig.mail_encryption.$error&&e(m).smtpConfig.mail_encryption.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t($,{modelValue:e(o).mail_encryption,"onUpdate:modelValue":g[9]||(g[9]=w=>e(o).mail_encryption=w),modelModifiers:{trim:!0},options:e(r),"can-deselect":!1,invalid:e(m).smtpConfig.mail_encryption.$error,"content-loading":n.isFetchingInitialData,onInput:g[10]||(g[10]=w=>e(m).smtpConfig.mail_encryption.$touch())},null,8,["modelValue","options","invalid","content-loading"])]),_:1},8,["label","error","content-loading"])]),V("div",ga,[t(C,{label:a.$t("wizard.mail.from_mail"),error:e(m).smtpConfig.from_mail.$error&&e(m).smtpConfig.from_mail.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(p,{modelValue:e(o).from_mail,"onUpdate:modelValue":g[11]||(g[11]=w=>e(o).from_mail=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_mail",onInput:g[12]||(g[12]=w=>e(m).smtpConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(C,{label:a.$t("wizard.mail.from_name"),error:e(m).smtpConfig.from_name.$error&&e(m).smtpConfig.from_name.$errors[0].$message,"content-loading":n.isFetchingInitialData,required:""},{default:u(()=>[t(p,{modelValue:e(o).from_name,"onUpdate:modelValue":g[13]||(g[13]=w=>e(o).from_name=w),modelModifiers:{trim:!0},invalid:e(m).smtpConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_name",onInput:g[14]||(g[14]=w=>e(m).smtpConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"])]),t(v,{loading:n.isSaving,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(w=>[n.isSaving?E("",!0):(B(),F(_,{key:0,name:"SaveIcon",class:O(w.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(a.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,da)}}},fa=["onSubmit"],va={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},_a={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},ba={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},$a={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){let d=M(!1);const r=X(),{t:i}=G(),c=z(()=>r.mailgunConfig),o=z(()=>d.value?"text":"password");c.value.mail_driver="mailgun";const f=z(()=>({mailgunConfig:{mail_driver:{required:I.withMessage(i("validation.required"),D)},mail_mailgun_domain:{required:I.withMessage(i("validation.required"),D)},mail_mailgun_endpoint:{required:I.withMessage(i("validation.required"),D)},mail_mailgun_secret:{required:I.withMessage(i("validation.required"),D)},from_mail:{required:I.withMessage(i("validation.required"),D),email:H},from_name:{required:I.withMessage(i("validation.required"),D)}}})),l=W(f,z(()=>r));function m(){return l.value.$touch(),l.value.$invalid||q("submit-data",r.mailgunConfig),!1}function s(){l.value.mailgunConfig.mail_driver.$touch(),q("on-change-driver",r.mailgunConfig.mail_driver)}return(h,a)=>{const g=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),p=b("BaseIcon"),_=b("BaseButton");return B(),k("form",{onSubmit:T(m,["prevent"])},[V("div",va,[t($,{label:h.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_driver.$error&&e(l).mailgunConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(c).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(c).mail_driver=v),s],options:e(r).mail_drivers,"can-deselect":!1,invalid:e(l).mailgunConfig.mail_driver.$error,"content-loading":n.isFetchingInitialData},null,8,["modelValue","options","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.mailgun_domain"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_mailgun_domain.$error&&e(l).mailgunConfig.mail_mailgun_domain.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).mail_mailgun_domain,"onUpdate:modelValue":a[1]||(a[1]=v=>e(c).mail_mailgun_domain=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.mail_mailgun_domain.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mailgun_domain",onInput:a[2]||(a[2]=v=>e(l).mailgunConfig.mail_mailgun_domain.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",_a,[t($,{label:h.$t("wizard.mail.mailgun_secret"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_mailgun_secret.$error&&e(l).mailgunConfig.mail_mailgun_secret.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).mail_mailgun_secret,"onUpdate:modelValue":a[5]||(a[5]=v=>e(c).mail_mailgun_secret=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.mail_mailgun_secret.$error,type:e(o),"content-loading":n.isFetchingInitialData,name:"mailgun_secret",autocomplete:"off","data-lpignore":"true",onInput:a[6]||(a[6]=v=>e(l).mailgunConfig.mail_mailgun_secret.$touch())},{right:u(()=>[e(d)?(B(),F(p,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[3]||(a[3]=v=>Z(d)?d.value=!e(d):d=!e(d))})):(B(),F(p,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[4]||(a[4]=v=>Z(d)?d.value=!e(d):d=!e(d))}))]),_:1},8,["modelValue","invalid","type","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.mailgun_endpoint"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.mail_mailgun_endpoint.$error&&e(l).mailgunConfig.mail_mailgun_endpoint.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).mail_mailgun_endpoint,"onUpdate:modelValue":a[7]||(a[7]=v=>e(c).mail_mailgun_endpoint=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.mail_mailgun_endpoint.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mailgun_endpoint",onInput:a[8]||(a[8]=v=>e(l).mailgunConfig.mail_mailgun_endpoint.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",ba,[t($,{label:h.$t("wizard.mail.from_mail"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.from_mail.$error&&e(l).mailgunConfig.from_mail.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).from_mail,"onUpdate:modelValue":a[9]||(a[9]=v=>e(c).from_mail=v),modelModifiers:{trim:!0},name:"from_mail",type:"text",invalid:e(l).mailgunConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,onInput:a[10]||(a[10]=v=>e(l).mailgunConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.from_name"),"content-loading":n.isFetchingInitialData,error:e(l).mailgunConfig.from_name.$error&&e(l).mailgunConfig.from_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(c).from_name,"onUpdate:modelValue":a[11]||(a[11]=v=>e(c).from_name=v),modelModifiers:{trim:!0},invalid:e(l).mailgunConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_name",onInput:a[12]||(a[12]=v=>e(l).mailgunConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),t(_,{loading:h.loading,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(v=>[n.isSaving?E("",!0):(B(),F(p,{key:0,name:"SaveIcon",class:O(v.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(h.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,fa)}}},wa=["onSubmit"],ha={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},ya={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Ia={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},qa={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Ba={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const{t:d}=G(),r=j(["tls","ssl","starttls"]);let i=M(!1);const c=X(),o=z(()=>c.sesConfig);o.value.mail_driver="ses";const f=z(()=>({sesConfig:{mail_driver:{required:I.withMessage(d("validation.required"),D)},mail_host:{required:I.withMessage(d("validation.required"),D)},mail_port:{required:I.withMessage(d("validation.required"),D),numeric:ae},mail_ses_key:{required:I.withMessage(d("validation.required"),D)},mail_ses_secret:{required:I.withMessage(d("validation.required"),D)},mail_encryption:{required:I.withMessage(d("validation.required"),D)},from_mail:{required:I.withMessage(d("validation.required"),D),email:I.withMessage(d("validation.email_incorrect"),H)},from_name:{required:I.withMessage(d("validation.required"),D)}}})),l=W(f,z(()=>c));async function m(){return l.value.$touch(),l.value.$invalid||q("submit-data",c.sesConfig),!1}function s(){l.value.sesConfig.mail_driver.$touch(),q("on-change-driver",c.sesConfig.mail_driver)}return(h,a)=>{const g=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),p=b("BaseIcon"),_=b("BaseButton");return B(),k("form",{onSubmit:T(m,["prevent"])},[V("div",ha,[t($,{label:h.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_driver.$error&&e(l).sesConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(o).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(o).mail_driver=v),s],options:e(c).mail_drivers,"can-deselect":!1,"content-loading":n.isFetchingInitialData,invalid:e(l).sesConfig.mail_driver.$error},null,8,["modelValue","options","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.host"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_host.$error&&e(l).sesConfig.mail_host.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_host,"onUpdate:modelValue":a[1]||(a[1]=v=>e(o).mail_host=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_host.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_host",onInput:a[2]||(a[2]=v=>e(l).sesConfig.mail_host.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",ya,[t($,{label:h.$t("wizard.mail.port"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_port.$error&&e(l).sesConfig.mail_port.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_port,"onUpdate:modelValue":a[3]||(a[3]=v=>e(o).mail_port=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_port.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_port",onInput:a[4]||(a[4]=v=>e(l).sesConfig.mail_port.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.encryption"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_encryption.$error&&e(l).sesConfig.mail_encryption.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(o).mail_encryption,"onUpdate:modelValue":a[5]||(a[5]=v=>e(o).mail_encryption=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_encryption.$error,options:e(r),"content-loading":n.isFetchingInitialData,onInput:a[6]||(a[6]=v=>e(l).sesConfig.mail_encryption.$touch())},null,8,["modelValue","invalid","options","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",Ia,[t($,{label:h.$t("wizard.mail.from_mail"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.from_mail.$error&&e(l).sesConfig.from_mail.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).from_mail,"onUpdate:modelValue":a[7]||(a[7]=v=>e(o).from_mail=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"from_mail",onInput:a[8]||(a[8]=v=>e(l).sesConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.from_name"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.from_name.$error&&e(l).sesConfig.from_name.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).from_name,"onUpdate:modelValue":a[9]||(a[9]=v=>e(o).from_name=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"name",onInput:a[10]||(a[10]=v=>e(l).sesConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",qa,[t($,{label:h.$t("wizard.mail.ses_key"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_ses_key.$error&&e(l).sesConfig.mail_ses_key.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_ses_key,"onUpdate:modelValue":a[11]||(a[11]=v=>e(o).mail_ses_key=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_ses_key.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"mail_ses_key",onInput:a[12]||(a[12]=v=>e(l).sesConfig.mail_ses_key.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t($,{label:h.$t("wizard.mail.ses_secret"),"content-loading":n.isFetchingInitialData,error:e(l).sesConfig.mail_ses_secret.$error&&e(l).sesConfig.mail_ses_secret.$errors[0].$message,required:""},{default:u(()=>[t(C,{modelValue:e(o).mail_ses_secret,"onUpdate:modelValue":a[15]||(a[15]=v=>e(o).mail_ses_secret=v),modelModifiers:{trim:!0},invalid:e(l).sesConfig.mail_ses_secret.$error,type:h.getInputType,"content-loading":n.isFetchingInitialData,name:"mail_ses_secret",autocomplete:"off","data-lpignore":"true",onInput:a[16]||(a[16]=v=>e(l).sesConfig.mail_ses_secret.$touch())},{right:u(()=>[e(i)?(B(),F(p,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[13]||(a[13]=v=>Z(i)?i.value=!e(i):i=!e(i))})):(B(),F(p,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[14]||(a[14]=v=>Z(i)?i.value=!e(i):i=!e(i))}))]),_:1},8,["modelValue","invalid","type","content-loading"])]),_:1},8,["label","content-loading","error"])]),t(_,{loading:n.isSaving,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(v=>[n.isSaving?E("",!0):(B(),F(p,{key:0,name:"SaveIcon",class:O(v.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(h.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,wa)}}},Ca=["onSubmit"],Va={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Da={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},be={props:{isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1}},emits:["submit-data","on-change-driver"],setup(n,{emit:q}){const{t:d}=G(),r=X(),i=z(()=>r.basicMailConfig);z(()=>r.mail_drivers),i.value.mail_driver="mail";const c=z(()=>({basicMailConfig:{mail_driver:{required:I.withMessage(d("validation.required"),D)},from_mail:{required:I.withMessage(d("validation.required"),D),email:I.withMessage(d("validation.email_incorrect"),H)},from_name:{required:I.withMessage(d("validation.required"),D)}}})),o=W(c,z(()=>r));function f(){return o.value.$touch(),o.value.$invalid||q("submit-data",r.basicMailConfig),!1}function l(){var m;o.value.basicMailConfig.mail_driver.$touch(),q("on-change-driver",(m=r==null?void 0:r.basicMailConfig)==null?void 0:m.mail_driver)}return(m,s)=>{const h=b("BaseMultiselect"),a=b("BaseInputGroup"),g=b("BaseInput"),$=b("BaseIcon"),C=b("BaseButton");return B(),k("form",{onSubmit:T(f,["prevent"])},[V("div",Va,[t(a,{label:m.$t("wizard.mail.driver"),"content-loading":n.isFetchingInitialData,error:e(o).basicMailConfig.mail_driver.$error&&e(o).basicMailConfig.mail_driver.$errors[0].$message,required:""},{default:u(()=>[t(h,{modelValue:e(i).mail_driver,"onUpdate:modelValue":[s[0]||(s[0]=p=>e(i).mail_driver=p),l],invalid:e(o).basicMailConfig.mail_driver.$error,options:e(r).mail_drivers,"can-deselect":!1,"content-loading":n.isFetchingInitialData},null,8,["modelValue","invalid","options","content-loading"])]),_:1},8,["label","content-loading","error"])]),V("div",Da,[t(a,{label:m.$t("wizard.mail.from_name"),"content-loading":n.isFetchingInitialData,error:e(o).basicMailConfig.from_name.$error&&e(o).basicMailConfig.from_name.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(i).from_name,"onUpdate:modelValue":s[1]||(s[1]=p=>e(i).from_name=p),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"name",onInput:s[2]||(s[2]=p=>e(o).basicMailConfig.from_name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"]),t(a,{label:m.$t("wizard.mail.from_mail"),"content-loading":n.isFetchingInitialData,error:e(o).basicMailConfig.from_mail.$error&&e(o).basicMailConfig.from_mail.$errors[0].$message,required:""},{default:u(()=>[t(g,{modelValue:e(i).from_mail,"onUpdate:modelValue":s[3]||(s[3]=p=>e(i).from_mail=p),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",onInput:s[4]||(s[4]=p=>e(o).basicMailConfig.from_mail.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","content-loading","error"])]),t(C,{loading:n.isSaving,disabled:n.isSaving,"content-loading":n.isFetchingInitialData,class:"mt-4"},{left:u(p=>[n.isSaving?E("",!0):(B(),F($,{key:0,name:"SaveIcon",class:O(p.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(m.$t("general.save")),1)]),_:1},8,["loading","disabled","content-loading"])],40,Ca)}}},Sa={components:{Smtp:pa,Mailgun:$a,Ses:Ba,sendmail:be,Mail:be},emits:["next"],setup(n,{emit:q}){const d=M(!1),r=M(!1),i=X();i.mail_driver="mail",o();function c(l){i.mail_driver=l}async function o(){r.value=!0,await i.fetchMailDrivers(),r.value=!1}async function f(l){d.value=!0;let m=await i.updateMailConfig(l);d.value=!1,m.data.success&&await q("next",5)}return{mailDriverStore:i,isSaving:d,isFetchingInitialData:r,changeDriver:c,next:f}}};function Fa(n,q,d,r,i,c){const o=b("BaseWizardStep");return B(),F(o,{title:n.$t("wizard.mail.mail_config"),description:n.$t("wizard.mail.mail_config_desc")},{default:u(()=>[V("form",{action:"",onSubmit:q[1]||(q[1]=T((...f)=>r.next&&r.next(...f),["prevent"]))},[(B(),F(le(r.mailDriverStore.mail_driver),{"config-data":r.mailDriverStore.mailConfigData,"is-saving":r.isSaving,"is-fetching-initial-data":r.isFetchingInitialData,onOnChangeDriver:q[0]||(q[0]=f=>r.changeDriver(f)),onSubmitData:r.next},null,8,["config-data","is-saving","is-fetching-initial-data","onSubmitData"]))],32)]),_:1},8,["title","description"])}var Ma=se(Sa,[["render",Fa]]);const za=["onSubmit"],ka={class:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},Ua={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Pa={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Na={emits:["next"],setup(n,{emit:q}){let d=M(!1);const r=M(!1),i=M(!1);let c=M(""),o=M(null);const f=ve(),l=te(),{t:m}=G(),s=z(()=>f.userForm),h=z(()=>({userForm:{name:{required:I.withMessage(m("validation.required"),D)},email:{required:I.withMessage(m("validation.required"),D),email:I.withMessage(m("validation.email_incorrect"),H)},password:{required:I.withMessage(m("validation.required"),D),minLength:I.withMessage(m("validation.password_min_length",{count:8}),Ie(8))},confirm_password:{required:I.withMessage(m("validation.required"),qe(f.userForm.password)),sameAsPassword:I.withMessage(m("validation.password_incorrect"),Be(f.userForm.password))}}})),a=W(h,z(()=>f));function g(p,_){o.value=_}function $(){o.value=null}async function C(){if(a.value.userForm.$touch(),a.value.userForm.$invalid)return!0;d.value=!0;let p=await f.updateCurrentUser(s.value);if(d.value=!1,p.data.data){if(o.value){let v=new FormData;v.append("admin_avatar",o.value),await f.uploadAvatar(v)}const _=p.data.data.companies[0];await l.setSelectedCompany(_),q("next",6)}}return(p,_)=>{const v=b("BaseFileUploader"),w=b("BaseInputGroup"),y=b("BaseInput"),x=b("EyeOffIcon"),Y=b("EyeIcon"),J=b("BaseIcon"),K=b("BaseButton"),N=b("BaseWizardStep");return B(),F(N,{title:p.$t("wizard.account_info"),description:p.$t("wizard.account_info_desc")},{default:u(()=>[V("form",{action:"",onSubmit:T(C,["prevent"])},[V("div",ka,[t(w,{label:p.$tc("settings.account_settings.profile_picture")},{default:u(()=>[t(v,{avatar:!0,"preview-image":e(c),onChange:g,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Ua,[t(w,{label:p.$t("wizard.name"),error:e(a).userForm.name.$error&&e(a).userForm.name.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).name,"onUpdate:modelValue":_[0]||(_[0]=S=>e(s).name=S),modelModifiers:{trim:!0},invalid:e(a).userForm.name.$error,type:"text",name:"name",onInput:_[1]||(_[1]=S=>e(a).userForm.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(w,{label:p.$t("wizard.email"),error:e(a).userForm.email.$error&&e(a).userForm.email.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).email,"onUpdate:modelValue":_[2]||(_[2]=S=>e(s).email=S),modelModifiers:{trim:!0},invalid:e(a).userForm.email.$error,type:"text",name:"email",onInput:_[3]||(_[3]=S=>e(a).userForm.email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),V("div",Pa,[t(w,{label:p.$t("wizard.password"),error:e(a).userForm.password.$error&&e(a).userForm.password.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).password,"onUpdate:modelValue":_[6]||(_[6]=S=>e(s).password=S),modelModifiers:{trim:!0},invalid:e(a).userForm.password.$error,type:r.value?"text":"password",name:"password",onInput:_[7]||(_[7]=S=>e(a).userForm.password.$touch())},{right:u(()=>[r.value?(B(),F(x,{key:0,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[4]||(_[4]=S=>r.value=!r.value)})):(B(),F(Y,{key:1,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[5]||(_[5]=S=>r.value=!r.value)}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["label","error"]),t(w,{label:p.$t("wizard.confirm_password"),error:e(a).userForm.confirm_password.$error&&e(a).userForm.confirm_password.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(s).confirm_password,"onUpdate:modelValue":_[10]||(_[10]=S=>e(s).confirm_password=S),modelModifiers:{trim:!0},invalid:e(a).userForm.confirm_password.$error,type:i.value?"text":"password",name:"confirm_password",onInput:_[11]||(_[11]=S=>e(a).userForm.confirm_password.$touch())},{right:u(()=>[i.value?(B(),F(J,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[8]||(_[8]=S=>i.value=!i.value)})):(B(),F(J,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:_[9]||(_[9]=S=>i.value=!i.value)}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["label","error"])]),t(K,{loading:e(d),disabled:e(d),class:"mt-4"},{left:u(S=>[e(d)?E("",!0):(B(),F(J,{key:0,name:"SaveIcon",class:O(S.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(p.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled"])],40,za)]),_:1},8,["title","description"])}}},Ea=["onSubmit"],Ga={class:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},Oa={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},xa={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},La={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Wa={emits:["next"],setup(n,{emit:q}){let d=M(!1),r=M(!1);const{t:i}=G();let c=M(null),o=M(null),f=M(null);const l=j({name:null,address:{address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:"",phone:"",zip:""}}),m=te(),s=_e();Q(async()=>{d.value=!0,await s.fetchCountries(),d.value=!1});const h={companyForm:{name:{required:I.withMessage(i("validation.required"),D)},address:{country_id:{required:I.withMessage(i("validation.required"),D)},address_street_1:{maxLength:I.withMessage(i("validation.address_maxlength",{count:255}),ge(255))},address_street_2:{maxLength:I.withMessage(i("validation.address_maxlength",{count:255}),ge(255))}}}},a=W(h,{companyForm:l});function g(p,_,v,w){f.value=w.name,o.value=_}function $(){o.value=null}async function C(){if(a.value.companyForm.$touch(),a.value.$invalid)return!0;if(r.value=!0,m.updateCompany(l)){if(o.value){let _=new FormData;_.append("company_logo",JSON.stringify({name:f.value,data:o.value})),await m.updateCompanyLogo(_)}r.value=!1,q("next",7)}}return(p,_)=>{const v=b("BaseFileUploader"),w=b("BaseInputGroup"),y=b("BaseInput"),x=b("BaseMultiselect"),Y=b("BaseTextarea"),J=b("BaseIcon"),K=b("BaseButton"),N=b("BaseWizardStep");return B(),F(N,{title:p.$t("wizard.company_info"),description:p.$t("wizard.company_info_desc"),"step-container":"bg-white border border-gray-200 border-solid mb-8 md:w-full p-8 rounded w-full"},{default:u(()=>[V("form",{action:"",onSubmit:T(C,["prevent"])},[V("div",Ga,[t(w,{label:p.$tc("settings.company_info.company_logo")},{default:u(()=>[t(v,{base64:"","preview-image":e(c),onChange:g,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Oa,[t(w,{label:p.$t("wizard.company_name"),error:e(a).companyForm.name.$error&&e(a).companyForm.name.$errors[0].$message,required:""},{default:u(()=>[t(y,{modelValue:e(l).name,"onUpdate:modelValue":_[0]||(_[0]=S=>e(l).name=S),modelModifiers:{trim:!0},invalid:e(a).companyForm.name.$error,type:"text",name:"name",onInput:_[1]||(_[1]=S=>e(a).companyForm.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),t(w,{label:p.$t("wizard.country"),error:e(a).companyForm.address.country_id.$error&&e(a).companyForm.address.country_id.$errors[0].$message,"content-loading":e(d),required:""},{default:u(()=>[t(x,{modelValue:e(l).address.country_id,"onUpdate:modelValue":_[2]||(_[2]=S=>e(l).address.country_id=S),label:"name",invalid:e(a).companyForm.address.country_id.$error,options:e(s).countries,"value-prop":"id","can-deselect":!1,"can-clear":!1,"content-loading":e(d),placeholder:p.$t("general.select_country"),searchable:"","track-by":"name"},null,8,["modelValue","invalid","options","content-loading","placeholder"])]),_:1},8,["label","error","content-loading"])]),V("div",xa,[t(w,{label:p.$t("wizard.state")},{default:u(()=>[t(y,{modelValue:e(l).address.state,"onUpdate:modelValue":_[3]||(_[3]=S=>e(l).address.state=S),name:"state",type:"text"},null,8,["modelValue"])]),_:1},8,["label"]),t(w,{label:p.$t("wizard.city")},{default:u(()=>[t(y,{modelValue:e(l).address.city,"onUpdate:modelValue":_[4]||(_[4]=S=>e(l).address.city=S),name:"city",type:"text"},null,8,["modelValue"])]),_:1},8,["label"])]),V("div",La,[V("div",null,[t(w,{label:p.$t("wizard.address"),error:e(a).companyForm.address.address_street_1.$error&&e(a).companyForm.address.address_street_1.$errors[0].$message},{default:u(()=>[t(Y,{modelValue:e(l).address.address_street_1,"onUpdate:modelValue":_[5]||(_[5]=S=>e(l).address.address_street_1=S),modelModifiers:{trim:!0},invalid:e(a).companyForm.address.address_street_1.$error,placeholder:p.$t("general.street_1"),name:"billing_street1",rows:"2",onInput:_[6]||(_[6]=S=>e(a).companyForm.address.address_street_1.$touch())},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["label","error"]),t(w,{error:e(a).companyForm.address.address_street_2.$error&&e(a).companyForm.address.address_street_2.$errors[0].$message,class:"mt-1 lg:mt-2 md:mt-2"},{default:u(()=>[t(Y,{modelValue:e(l).address.address_street_2,"onUpdate:modelValue":_[7]||(_[7]=S=>e(l).address.address_street_2=S),invalid:e(a).companyForm.address.address_street_2.$error,placeholder:p.$t("general.street_2"),name:"billing_street2",rows:"2",onInput:_[8]||(_[8]=S=>e(a).companyForm.address.address_street_2.$touch())},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error"])]),V("div",null,[t(w,{label:p.$t("wizard.zip_code")},{default:u(()=>[t(y,{modelValue:e(l).address.zip,"onUpdate:modelValue":_[9]||(_[9]=S=>e(l).address.zip=S),modelModifiers:{trim:!0},type:"text",name:"zip"},null,8,["modelValue"])]),_:1},8,["label"]),t(w,{label:p.$t("wizard.phone"),class:"mt-4"},{default:u(()=>[t(y,{modelValue:e(l).address.phone,"onUpdate:modelValue":_[10]||(_[10]=S=>e(l).address.phone=S),modelModifiers:{trim:!0},type:"text",name:"phone"},null,8,["modelValue"])]),_:1},8,["label"])])]),t(K,{loading:e(r),disabled:e(r),class:"mt-4"},{left:u(S=>[e(r)?E("",!0):(B(),F(J,{key:0,name:"SaveIcon",class:O(S.class)},null,8,["class"]))]),default:u(()=>[P(" "+U(p.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled"])],40,Ea)]),_:1},8,["title","description"])}}},Ta=["onSubmit"],ja={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Ra={class:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},Aa={class:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},Ya={emits:["next"],setup(n,{emit:q}){const d=M(!1);let r=M(!1),i=j({currency:1,language:"en",carbon_date_format:"d M Y",time_zone:"UTC",fiscal_year:"1-12"});const{tm:c,t:o}=G(),f=pe();r.value=!0,j([{title:c("settings.customization.invoices.allow"),value:"allow"},{title:c("settings.customization.invoices.disable_on_invoice_partial_paid"),value:"disable_on_invoice_partial_paid"},{title:c("settings.customization.invoices.disable_on_invoice_paid"),value:"disable_on_invoice_paid"},{title:c("settings.customization.invoices.disable_on_invoice_sent"),value:"disable_on_invoice_sent"}]);const l=fe(),m=_e(),s=te(),h=ve(),a=de();let g={key:"fiscal_years"},$={key:"languages"};r.value=!0,Promise.all([m.fetchCurrencies(),m.fetchDateFormats(),m.fetchTimeZones(),m.fetchCountries(),m.fetchConfig(g),m.fetchConfig($)]).then(([v])=>{r.value=!1});const C=z(()=>({currentPreferences:{currency:{required:I.withMessage(o("validation.required"),D)},language:{required:I.withMessage(o("validation.required"),D)},carbon_date_format:{required:I.withMessage(o("validation.required"),D)},time_zone:{required:I.withMessage(o("validation.required"),D)},fiscal_year:{required:I.withMessage(o("validation.required"),D)}}})),p=W(C,{currentPreferences:i});async function _(){if(p.value.currentPreferences.$touch(),p.value.$invalid)return!0;l.openDialog({title:o("general.do_you_wish_to_continue"),message:o("wizard.currency_set_alert"),yesLabel:o("general.ok"),noLabel:o("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(async v=>{if(v){let w={settings:ce({},i)};d.value=!0,delete w.settings.discount_per_item;let y=await s.updateCompanySettings({data:w});if(y.data){d.value=!1;let x={settings:{language:i.language}};(await h.updateUserSettings(x)).data&&(q("next","COMPLETED"),a.showNotification({type:"success",message:"Login Successful"}),f.push("/admin/dashboard")),Ce.set("auth.token",y.data.token)}return!0}return d.value=!1,!0})}return(v,w)=>{const y=b("BaseMultiselect"),x=b("BaseInputGroup"),Y=b("BaseIcon"),J=b("BaseButton"),K=b("BaseWizardStep");return B(),F(K,{title:v.$t("wizard.preferences"),description:v.$t("wizard.preferences_desc"),"step-container":"bg-white border border-gray-200 border-solid mb-8 md:w-full p-8 rounded w-full"},{default:u(()=>[V("form",{action:"",onSubmit:T(_,["prevent"])},[V("div",null,[V("div",ja,[t(x,{label:v.$t("wizard.currency"),error:e(p).currentPreferences.currency.$error&&e(p).currentPreferences.currency.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).currency,"onUpdate:modelValue":w[0]||(w[0]=N=>e(i).currency=N),"content-loading":e(r),options:e(m).currencies,label:"name","value-prop":"id",searchable:!0,"track-by":"name",placeholder:v.$tc("settings.currencies.select_currency"),invalid:e(p).currentPreferences.currency.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"]),t(x,{label:v.$t("settings.preferences.default_language"),error:e(p).currentPreferences.language.$error&&e(p).currentPreferences.language.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).language,"onUpdate:modelValue":w[1]||(w[1]=N=>e(i).language=N),"content-loading":e(r),options:e(m).languages,label:"name","value-prop":"code",placeholder:v.$tc("settings.preferences.select_language"),class:"w-full","track-by":"code",searchable:!0,invalid:e(p).currentPreferences.language.$error},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"])]),V("div",Ra,[t(x,{label:v.$t("wizard.date_format"),error:e(p).currentPreferences.carbon_date_format.$error&&e(p).currentPreferences.carbon_date_format.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).carbon_date_format,"onUpdate:modelValue":w[2]||(w[2]=N=>e(i).carbon_date_format=N),"content-loading":e(r),options:e(m).dateFormats,label:"display_date","value-prop":"carbon_format_value",placeholder:v.$tc("settings.preferences.select_date_format"),"track-by":"display_date",searchable:"",invalid:e(p).currentPreferences.carbon_date_format.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"]),t(x,{label:v.$t("wizard.time_zone"),error:e(p).currentPreferences.time_zone.$error&&e(p).currentPreferences.time_zone.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).time_zone,"onUpdate:modelValue":w[3]||(w[3]=N=>e(i).time_zone=N),"content-loading":e(r),options:e(m).timeZones,label:"key","value-prop":"value",placeholder:v.$tc("settings.preferences.select_time_zone"),"track-by":"value",searchable:!0,invalid:e(p).currentPreferences.time_zone.$error},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"])]),V("div",Aa,[t(x,{label:v.$t("wizard.fiscal_year"),error:e(p).currentPreferences.fiscal_year.$error&&e(p).currentPreferences.fiscal_year.$errors[0].$message,"content-loading":e(r),required:""},{default:u(()=>[t(y,{modelValue:e(i).fiscal_year,"onUpdate:modelValue":w[4]||(w[4]=N=>e(i).fiscal_year=N),"content-loading":e(r),options:e(m).fiscalYears,label:"key","value-prop":"value",placeholder:v.$tc("settings.preferences.select_financial_year"),invalid:e(p).currentPreferences.fiscal_year.$error,"track-by":"key",searchable:!0,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading"])]),t(J,{loading:d.value,disabled:d.value,"content-loading":e(r),class:"mt-4"},{left:u(N=>[t(Y,{name:"SaveIcon",class:O(N.class)},null,8,["class"])]),default:u(()=>[P(" "+U(v.$t("wizard.save_cont")),1)]),_:1},8,["loading","disabled","content-loading"])])],40,Ta)]),_:1},8,["title","description"])}}};var Ja="/build/img/crater-logo.png";const Za={components:{step_1:Oe,step_2:Ae,step_3:ia,step_4:sa,step_5:Ma,step_6:Na,step_7:Wa,step_8:Ya},setup(){let n=M("step_1"),q=M(1);const d=pe(),r=A();i();async function i(){let l=await r.fetchInstallationStep();if(l.data.profile_complete==="COMPLETED"){d.push("/admin/dashboard");return}let m=parseInt(l.data.profile_complete);m&&(q.value=m+1,n.value=`step_${m+1}`)}async function c(l){var s,h;let m={profile_complete:l};try{return await r.addInstallationStep(m),!0}catch(a){return((h=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:h.message)==="The MAC is invalid."&&window.location.reload(),!1}}async function o(l){if(l&&!await c(l))return!1;q.value++,q.value<=8&&(n.value="step_"+q.value)}function f(l){}return{stepComponent:n,currentStepNumber:q,onStepChange:o,saveStepProgress:c,onNavClick:f}}},Ka={class:"flex flex-col items-center justify-between w-full pt-10"},Qa=V("img",{id:"logo-crater",src:Ja,alt:"Crater Logo",class:"h-12 mb-5 md:mb-10"},null,-1);function Ha(n,q,d,r,i,c){const o=b("BaseWizard");return B(),k("div",Ka,[Qa,t(o,{steps:7,"current-step":r.currentStepNumber,onClick:r.onNavClick},{default:u(()=>[(B(),F(le(r.stepComponent),{onNext:r.onStepChange},null,8,["onNext"]))]),_:1},8,["current-step","onClick"])])}var nt=se(Za,[["render",Ha]]);export{nt as default};
var A=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var j=(t,e,i)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))W.call(e,i)&&j(t,i,e[i]);if(k)for(var i of k(e))X.call(e,i)&&j(t,i,e[i]);return t},L=(t,e)=>K(t,Q(e));import{r as l,o as u,e as T,f as o,u as n,w as c,J as Z,G as ee,aN as ne,B as x,k as I,L as p,M as y,S as te,O as oe,aP as ie,T as ae,C as se,l as b,j as C,h as $,t as P,m as le,i as ce,U as re,F as de}from"./vendor.01d0adc5.js";import{i as M,b as ue,m as me,r as ve}from"./main.75722495.js";import{_ as ge,a as pe,b as fe,c as _e,d as Ie,e as be,f as we}from"./SalesTax.0ff2d954.js";import{_ as ye}from"./ExchangeRateConverter.7d8c4309.js";import{_ as $e}from"./CreateCustomFields.a3a572c4.js";import{_ as Be}from"./TaxTypeModal.bf6662b3.js";import"./DragIcon.213b1d78.js";import"./SelectNotePopup.781ad74a.js";import"./NoteModal.f6d01f84.js";import"./payment.5c57bec3.js";import"./exchange-rate.dffa79b6.js";const Se={class:"grid grid-cols-12 gap-8 mt-6 mb-8"},he={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(t){const e=M();return(i,r)=>{const B=l("BaseCustomerSelectPopup"),d=l("BaseDatePicker"),m=l("BaseInputGroup"),S=l("BaseInput"),f=l("BaseInputGrid");return u(),T("div",Se,[o(B,{modelValue:n(e).newInvoice.customer,"onUpdate:modelValue":r[0]||(r[0]=a=>n(e).newInvoice.customer=a),valid:t.v.customer_id,"content-loading":t.isLoading,type:"invoice",class:"col-span-12 lg:col-span-5 pr-0"},null,8,["modelValue","valid","content-loading"]),o(f,{class:"col-span-12 lg:col-span-7"},{default:c(()=>[o(m,{label:i.$t("invoices.invoice_date"),"content-loading":t.isLoading,required:"",error:t.v.invoice_date.$error&&t.v.invoice_date.$errors[0].$message},{default:c(()=>[o(d,{modelValue:n(e).newInvoice.invoice_date,"onUpdate:modelValue":r[1]||(r[1]=a=>n(e).newInvoice.invoice_date=a),"content-loading":t.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),o(m,{label:i.$t("invoices.due_date"),"content-loading":t.isLoading},{default:c(()=>[o(d,{modelValue:n(e).newInvoice.due_date,"onUpdate:modelValue":r[2]||(r[2]=a=>n(e).newInvoice.due_date=a),"content-loading":t.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),o(m,{label:i.$t("invoices.invoice_number"),"content-loading":t.isLoading,error:t.v.invoice_number.$error&&t.v.invoice_number.$errors[0].$message,required:""},{default:c(()=>[o(S,{modelValue:n(e).newInvoice.invoice_number,"onUpdate:modelValue":r[3]||(r[3]=a=>n(e).newInvoice.invoice_number=a),"content-loading":t.isLoading,onInput:r[4]||(r[4]=a=>t.v.invoice_number.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading","error"]),o(ye,{store:n(e),"store-prop":"newInvoice",v:t.v,"is-loading":t.isLoading,"is-edit":t.isEdit,"customer-currency":n(e).newInvoice.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])]),_:1})])}}},Ce=["onSubmit"],Ve={class:"flex"},ke={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},je={class:"relative w-full lg:w-1/2 lg:mr-4"},Re={setup(t){const e=M(),i=ue(),r=me(),B=ve(),{t:d}=Z();let m=ee(),S=ne();const f="newInvoice";let a=x(!1);const F=x(["customer","company","customerCustom","invoice","invoiceCustom"]);let _=I(()=>e.isFetchingInvoice||e.isFetchingInitialSettings),E=I(()=>v.value?d("invoices.edit_invoice"):d("invoices.new_invoice"));const N=I(()=>i.selectedCompanySettings.sales_tax_us_enabled==="YES"&&B.salesTaxUSEnabled);let v=I(()=>m.name==="invoices.edit");const U={invoice_date:{required:p.withMessage(d("validation.required"),y)},reference_number:{maxLength:p.withMessage(d("validation.price_maxlength"),te(255))},customer_id:{required:p.withMessage(d("validation.required"),y)},invoice_number:{required:p.withMessage(d("validation.required"),y)},exchange_rate:{required:oe(function(){return p.withMessage(d("validation.required"),y),e.showExchangeRate}),decimal:p.withMessage(d("validation.valid_exchange_rate"),ie)}},w=ae(U,I(()=>e.newInvoice),{$scope:f});r.resetCustomFields(),w.value.$reset,e.resetCurrentInvoice(),e.fetchInvoiceInitialSettings(v.value),se(()=>e.newInvoice.customer,s=>{s&&s.currency?e.newInvoice.selectedCurrency=s.currency:e.newInvoice.selectedCurrency=i.selectedCompanyCurrency});async function G(){if(w.value.$touch(),w.value.$invalid)return!1;a.value=!0;let s=L(q({},e.newInvoice),{sub_total:e.getSubTotal,total:e.getTotal,tax:e.getTotalTax});try{const g=await(v.value?e.updateInvoice:e.addInvoice)(s);S.push(`/admin/invoices/${g.data.data.id}/view`)}catch(h){console.error(h)}a.value=!1}return(s,h)=>{const g=l("BaseBreadcrumbItem"),D=l("BaseBreadcrumb"),V=l("BaseButton"),R=l("router-link"),H=l("BaseIcon"),O=l("BasePageHeader"),z=l("BaseScrollPane"),J=l("BasePage");return u(),T(de,null,[o(ge),o(pe),o(Be),n(N)&&(!n(_)||n(m).query.customer)?(u(),b(fe,{key:0,store:n(e),"is-edit":n(v),"store-prop":"newInvoice",customer:n(e).newInvoice.customer},null,8,["store","is-edit","customer"])):C("",!0),o(J,{class:"relative invoice-create-page"},{default:c(()=>[$("form",{onSubmit:re(G,["prevent"])},[o(O,{title:n(E)},{actions:c(()=>[s.$route.name==="invoices.edit"?(u(),b(R,{key:0,to:`/invoices/pdf/${n(e).newInvoice.unique_hash}`,target:"_blank"},{default:c(()=>[o(V,{class:"mr-3",variant:"primary-outline",type:"button"},{default:c(()=>[$("span",Ve,P(s.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):C("",!0),o(V,{loading:n(a),disabled:n(a),variant:"primary",type:"submit"},{left:c(Y=>[n(a)?C("",!0):(u(),b(H,{key:0,name:"SaveIcon",class:le(Y.class)},null,8,["class"]))]),default:c(()=>[ce(" "+P(s.$t("invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:c(()=>[o(D,null,{default:c(()=>[o(g,{title:s.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),o(g,{title:s.$tc("invoices.invoice",2),to:"/admin/invoices"},null,8,["title"]),s.$route.name==="invoices.edit"?(u(),b(g,{key:0,title:s.$t("invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(u(),b(g,{key:1,title:s.$t("invoices.new_invoice"),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),o(he,{v:n(w),"is-loading":n(_),"is-edit":n(v)},null,8,["v","is-loading","is-edit"]),o(z,null,{default:c(()=>[o(_e,{currency:n(e).newInvoice.selectedCurrency,"is-loading":n(_),"item-validation-scope":f,store:n(e),"store-prop":"newInvoice"},null,8,["currency","is-loading","store"]),$("div",ke,[$("div",je,[o(Ie,{store:n(e),"store-prop":"newInvoice",fields:F.value,type:"Invoice"},null,8,["store","fields"]),o($e,{type:"Invoice","is-edit":n(v),"is-loading":n(_),store:n(e),"store-prop":"newInvoice","custom-field-scope":f,class:"mb-6"},null,8,["is-edit","is-loading","store"]),o(be,{store:n(e),"store-prop":"newInvoice","component-name":"InvoiceTemplate"},null,8,["store"])]),o(we,{currency:n(e).newInvoice.selectedCurrency,"is-loading":n(_),store:n(e),"store-prop":"newInvoice","tax-popup-type":"invoice"},null,8,["currency","is-loading","store"])])]),_:1})],40,Ce)]),_:1})],64)}}};export{Re as default};
import{J as O,G as j,aN as z,ah as R,r as I,o as r,l,w as o,u as c,f as s,q as M,ag as P,i as d,t as m,j as v}from"./vendor.01d0adc5.js";import{i as F,c as U,u as q,j as H,e as W,g as y}from"./main.75722495.js";const K={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(a){const f=a,p=F(),N=U(),$=q(),b=H(),g=W(),{t:i}=O(),w=j(),C=z(),x=R("utils");function _(e){return(e.status=="SENT"||e.status=="VIEWED")&&g.hasAbilities(y.SEND_INVOICE)}function D(e){return e.status=="DRAFT"&&w.name!=="invoices.view"&&g.hasAbilities(y.SEND_INVOICE)}async function B(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_delete"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(n=>{e=e,n&&p.deleteInvoice({ids:[e]}).then(t=>{t.data.success&&(C.push("/admin/invoices"),f.table&&f.table.refresh(),p.$patch(h=>{h.selectedInvoices=[],h.selectAllField=!1}))})})}async function A(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.confirm_clone"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(n=>{n&&p.cloneInvoice(e).then(t=>{C.push(`/admin/invoices/${t.data.data.id}/edit`)})})}async function T(e){b.openDialog({title:i("general.are_you_sure"),message:i("invoices.invoice_mark_as_sent"),yesLabel:i("general.ok"),noLabel:i("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(n=>{const t={id:e,status:"SENT"};n&&p.markAsSent(t).then(h=>{f.table&&f.table.refresh()})})}async function E(e){N.openModal({title:i("invoices.send_invoice"),componentName:"SendInvoiceModal",id:e.id,data:e,variant:"sm"})}function V(){let e=`${window.location.origin}/invoices/pdf/${f.row.unique_hash}`;x.copyTextToClipboard(e),$.showNotification({type:"success",message:i("general.copied_pdf_url_clipboard")})}return(e,n)=>{const t=I("BaseIcon"),h=I("BaseButton"),u=I("BaseDropdownItem"),S=I("router-link"),L=I("BaseDropdown");return r(),l(L,null,{activator:o(()=>[c(w).name==="invoices.view"?(r(),l(h,{key:0,variant:"primary"},{default:o(()=>[s(t,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(r(),l(t,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[c(g).hasAbilities(c(y).EDIT_INVOICE)?(r(),l(S,{key:0,to:`/admin/invoices/${a.row.id}/edit`},{default:o(()=>[M(s(u,null,{default:o(()=>[s(t,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.edit")),1)]),_:1},512),[[P,a.row.allow_edit]])]),_:1},8,["to"])):v("",!0),c(w).name==="invoices.view"?(r(),l(u,{key:1,onClick:V},{default:o(()=>[s(t,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.copy_pdf_url")),1)]),_:1})):v("",!0),c(w).name!=="invoices.view"&&c(g).hasAbilities(c(y).VIEW_INVOICE)?(r(),l(S,{key:2,to:`/admin/invoices/${a.row.id}/view`},{default:o(()=>[s(u,null,{default:o(()=>[s(t,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):v("",!0),D(a.row)?(r(),l(u,{key:3,onClick:n[0]||(n[0]=k=>E(a.row))},{default:o(()=>[s(t,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.send_invoice")),1)]),_:1})):v("",!0),_(a.row)?(r(),l(u,{key:4,onClick:n[1]||(n[1]=k=>E(a.row))},{default:o(()=>[s(t,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.resend_invoice")),1)]),_:1})):v("",!0),s(S,{to:`/admin/payments/${a.row.id}/create`},{default:o(()=>[a.row.status=="SENT"&&c(w).name!=="invoices.view"?(r(),l(u,{key:0},{default:o(()=>[s(t,{name:"CreditCardIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.record_payment")),1)]),_:1})):v("",!0)]),_:1},8,["to"]),D(a.row)?(r(),l(u,{key:5,onClick:n[2]||(n[2]=k=>T(a.row.id))},{default:o(()=>[s(t,{name:"CheckCircleIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.mark_as_sent")),1)]),_:1})):v("",!0),c(g).hasAbilities(c(y).CREATE_INVOICE)?(r(),l(u,{key:6,onClick:n[3]||(n[3]=k=>A(a.row))},{default:o(()=>[s(t,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("invoices.clone_invoice")),1)]),_:1})):v("",!0),c(g).hasAbilities(c(y).DELETE_INVOICE)?(r(),l(u,{key:7,onClick:n[4]||(n[4]=k=>B(a.row.id))},{default:o(()=>[s(t,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),d(" "+m(e.$t("general.delete")),1)]),_:1})):v("",!0)]),_:1})}}};export{K as _};
import{J as S,B as V,k as h,L as g,M as C,N as k,T as N,r as i,o as B,l as b,w as r,h as c,i as p,t as f,u as e,f as l,m as j,j as x,U as q}from"./vendor.01d0adc5.js";import{p as z,c as D}from"./main.75722495.js";const L={class:"flex justify-between w-full"},T=["onSubmit"],E={class:"p-8 sm:p-6"},G={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},F={setup(J){const t=z(),a=D(),{t:v}=S();let s=V(!1);const $=h(()=>({name:{required:g.withMessage(v("validation.required"),C),minLength:g.withMessage(v("validation.name_min_length",{count:3}),k(3))}})),n=N($,h(()=>t.currentItemUnit));async function U(){if(n.value.$touch(),n.value.$invalid)return!0;try{const o=t.isItemUnitEdit?t.updateItemUnit:t.addItemUnit;s.value=!0,await o(t.currentItemUnit),a.refreshData&&a.refreshData(),u(),s.value=!1}catch{return s.value=!1,!0}}function u(){a.closeModal(),setTimeout(()=>{t.currentItemUnit={id:null,name:""},a.$reset(),n.value.$reset()},300)}return(o,m)=>{const _=i("BaseIcon"),y=i("BaseInput"),w=i("BaseInputGroup"),I=i("BaseButton"),M=i("BaseModal");return B(),b(M,{show:e(a).active&&e(a).componentName==="ItemUnitModal",onClose:u},{header:r(()=>[c("div",L,[p(f(e(a).title)+" ",1),l(_,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:u})])]),default:r(()=>[c("form",{action:"",onSubmit:q(U,["prevent"])},[c("div",E,[l(w,{label:o.$t("settings.customization.items.unit_name"),error:e(n).name.$error&&e(n).name.$errors[0].$message,variant:"horizontal",required:""},{default:r(()=>[l(y,{modelValue:e(t).currentItemUnit.name,"onUpdate:modelValue":m[0]||(m[0]=d=>e(t).currentItemUnit.name=d),invalid:e(n).name.$error,type:"text",onInput:m[1]||(m[1]=d=>e(n).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),c("div",G,[l(I,{type:"button",variant:"primary-outline",class:"mr-3 text-sm",onClick:u},{default:r(()=>[p(f(o.$t("general.cancel")),1)]),_:1}),l(I,{loading:e(s),disabled:e(s),variant:"primary",type:"submit"},{left:r(d=>[e(s)?x("",!0):(B(),b(_,{key:0,name:"SaveIcon",class:j(d.class)},null,8,["class"]))]),default:r(()=>[p(" "+f(e(t).isItemUnitEdit?o.$t("general.update"):o.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,T)]),_:1},8,["show"])}}};export{F as _};
import{u as V}from"./auth.4644c288.js";import{J as I,G as N,aN as z,B as F,k as b,C as G,r as p,o as n,l as c,w as a,h as t,u as e,e as u,y as v,m as x,i as d,t as l,F as w,f as r,a9 as O,b4 as E,b5 as J,ab as P,b6 as T,b7 as q,b8 as H,b9 as K,ba as Q,j as W}from"./vendor.01d0adc5.js";import{u as U}from"./global.08b6a984.js";import{f as X}from"./main.75722495.js";import{N as Y}from"./NotificationRoot.a98180ab.js";const Z={class:"mx-auto px-8"},tt={class:"flex justify-between h-16 w-full"},et={class:"flex"},st={class:"shrink-0 flex items-center"},ot=["href"],rt=["src"],at={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},nt={class:"hidden sm:ml-6 sm:flex sm:items-center"},it=t("button",{type:"button",class:"bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},null,-1),lt=["src"],ct={class:"-mr-2 flex items-center sm:hidden"},ut=t("span",{class:"sr-only"},"Open main menu",-1),dt={class:"pt-2 pb-3 space-y-1"},mt={class:"pt-4 pb-3 border-t border-gray-200"},ft={class:"flex items-center px-4"},pt={class:"shrink-0"},ht=["src"],gt={class:"ml-3"},_t={class:"text-base font-medium text-gray-800"},yt={class:"text-sm font-medium text-gray-500"},bt=t("button",{type:"button",class:"ml-auto bg-white shrink-0 p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},null,-1),vt={class:"mt-3 space-y-1"},xt={setup(C){const{t:m}=I(),f=N(),o=U(),h=[{title:m("navigation.logout"),link:`/${o.companySlug}/customer/login`}],k=V(),$=z(),g=F(""),B=b(()=>o.currentUser&&o.currentUser.avatar!==0?o.currentUser.avatar:A());function A(){return new URL("/build/img/default-avatar.jpg",self.location)}G(f,i=>{g.value=i.path},{immediate:!0});const S=b(()=>window.customer_logo?window.customer_logo:!1);function _(i){return f.path.indexOf(i)>-1}function R(){k.logout(o.companySlug).then(i=>{i&&$.push({name:"customer.login"})})}return(i,D)=>{const y=p("router-link"),j=p("BaseDropdownItem"),L=p("BaseDropdown");return n(),c(e(Q),{as:"nav",class:"bg-white shadow-sm fixed top-0 left-0 z-20 w-full"},{default:a(({open:M})=>[t("div",Z,[t("div",tt,[t("div",et,[t("div",st,[t("a",{href:`/${e(o).companySlug}/customer/dashboard`,class:"float-none text-lg not-italic font-black tracking-wider text-white brand-main md:float-left font-base"},[e(S)?(n(),u("img",{key:1,src:e(S),class:"h-6"},null,8,rt)):(n(),c(X,{key:0,class:"h-6"}))],8,ot)]),t("div",at,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(y,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([_(s.link)?"border-primary-500 text-primary-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"])},{default:a(()=>[d(l(s.title),1)]),_:2},1032,["to","class"]))),128))])]),t("div",nt,[it,r(e(P),{as:"div",class:"ml-3 relative"},{default:a(()=>[r(L,{"width-class":"w-48"},{activator:a(()=>[r(e(O),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},{default:a(()=>[t("img",{class:"h-8 w-8 rounded-full",src:e(B),alt:""},null,8,lt)]),_:1})]),default:a(()=>[r(j,{onClick:D[0]||(D[0]=s=>i.$router.push({name:"customer.profile"}))},{default:a(()=>[r(e(E),{class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),d(" "+l(i.$t("navigation.settings")),1)]),_:1}),r(j,{onClick:R},{default:a(()=>[r(e(J),{class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),d(" "+l(i.$t("navigation.logout")),1)]),_:1})]),_:1})]),_:1})]),t("div",ct,[r(e(H),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"},{default:a(()=>[ut,M?(n(),c(e(q),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(n(),c(e(T),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),r(e(K),{class:"sm:hidden"},{default:a(()=>[t("div",dt,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(y,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([_(s.link)?"bg-primary-50 border-primary-500 text-primary-700":"border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"]),"aria-current":s.current?"page":void 0},{default:a(()=>[d(l(s.title),1)]),_:2},1032,["to","class","aria-current"]))),128))]),t("div",mt,[t("div",ft,[t("div",pt,[t("img",{class:"h-10 w-10 rounded-full",src:e(B),alt:""},null,8,ht)]),t("div",gt,[t("div",_t,l(e(o).currentUser.title),1),t("div",yt,l(e(o).currentUser.email),1)]),bt]),t("div",vt,[(n(),u(w,null,v(h,s=>r(y,{key:s.title,to:s.link,class:x([_(s.link)?"bg-primary-50 border-primary-500 text-primary-700":"border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800","block pl-3 pr-4 py-2 border-l-4 text-base font-medium"])},{default:a(()=>[d(l(s.title),1)]),_:2},1032,["to","class"])),64))])])]),_:1})]),_:1})}}},wt={key:0,class:"h-full"},kt={class:"mt-16 pb-16 h-screen h-screen-ios overflow-y-auto min-h-0"},Nt={setup(C){const m=U(),f=N(),o=b(()=>m.isAppLoaded);h();async function h(){await m.bootstrap(f.params.company)}return(k,$)=>{const g=p("router-view");return e(o)?(n(),u("div",wt,[r(Y),r(xt),t("main",kt,[r(g)])])):W("",!0)}}};export{Nt as default};
import{aN as q,J as z,B as k,a0 as _e,k as P,L as N,M as J,N as he,T as ae,r as y,o as a,l as C,w as s,h as n,i as U,t as u,u as e,f as t,e as i,m as L,j as B,U as H,G as X,C as oe,aO as se,F as V,y as R,Y as ne,A as ye,a5 as fe,a2 as K,a3 as ge,a6 as ve,aP as be,D as xe}from"./vendor.01d0adc5.js";import{b as Y,c as W,d as D,e as Q,S as we,a as $e,f as re,g as j,u as ke}from"./main.75722495.js";import{u as le}from"./exchange-rate.dffa79b6.js";import{u as Ce}from"./users.73a3faa4.js";import{N as Be}from"./NotificationRoot.a98180ab.js";import{V as Se}from"./index.esm.998a6eeb.js";const Ie={class:"flex justify-between w-full"},Me=["onSubmit"],Ue={class:"p-4 mb-16 sm:p-6 space-y-4"},Ee={key:1,class:"flex flex-col items-center"},Ve={class:"z-0 flex justify-end p-4 bg-gray-50 border-modal-bg"},Ae={setup(F){const m=q(),r=Y(),d=W(),f=D(),{t:_}=z();let g=k(!1),b=k(null),c=k(!1),l=k(null),p=k(null);const h=_e({name:null,currency:"",address:{country_id:null}}),v=P(()=>d.active&&d.componentName==="CompanyModal"),x={newCompanyForm:{name:{required:N.withMessage(_("validation.required"),J),minLength:N.withMessage(_("validation.name_min_length",{count:3}),he(3))},address:{country_id:{required:N.withMessage(_("validation.required"),J)}},currency:{required:N.withMessage(_("validation.required"),J)}}},o=ae(x,{newCompanyForm:h});async function w(){c.value=!0,await f.fetchCurrencies(),await f.fetchCountries(),h.currency=r.selectedCompanyCurrency.id,h.address.country_id=r.selectedCompany.address.country_id,c.value=!1}function S(I,M){p.value=I,l.value=M}function $(){p.value=null,l.value=null}async function E(){if(o.value.newCompanyForm.$touch(),o.value.$invalid)return!0;g.value=!0;try{const I=await r.addNewCompany(h);if(I.data.data){if(await r.setSelectedCompany(I.data.data),l&&l.value){let M=new FormData;M.append("company_logo",JSON.stringify({name:p.value,data:l.value})),await r.updateCompanyLogo(M),m.push("/admin/dashboard")}await f.setIsAppLoaded(!1),await f.bootstrap(),O()}g.value=!1}catch{g.value=!1}}function T(){h.name="",h.currency="",h.address.country_id="",o.value.$reset()}function O(){d.closeModal(),setTimeout(()=>{T(),o.value.$reset()},300)}return(I,M)=>{const Z=y("BaseIcon"),ie=y("BaseContentPlaceholdersBox"),ce=y("BaseContentPlaceholders"),de=y("BaseFileUploader"),G=y("BaseInputGroup"),ue=y("BaseInput"),ee=y("BaseMultiselect"),me=y("BaseInputGrid"),te=y("BaseButton"),pe=y("BaseModal");return a(),C(pe,{show:e(v),onClose:O,onOpen:w},{header:s(()=>[n("div",Ie,[U(u(e(d).title)+" ",1),t(Z,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:O})])]),default:s(()=>[n("form",{action:"",onSubmit:H(E,["prevent"])},[n("div",Ue,[t(me,{layout:"one-column"},{default:s(()=>[t(G,{"content-loading":e(c),label:I.$tc("settings.company_info.company_logo")},{default:s(()=>[e(c)?(a(),C(ce,{key:0},{default:s(()=>[t(ie,{rounded:!0,class:"w-full h-24"})]),_:1})):(a(),i("div",Ee,[t(de,{"preview-image":e(b),base64:"",onRemove:$,onChange:S},null,8,["preview-image"])]))]),_:1},8,["content-loading","label"]),t(G,{label:I.$tc("settings.company_info.company_name"),error:e(o).newCompanyForm.name.$error&&e(o).newCompanyForm.name.$errors[0].$message,"content-loading":e(c),required:""},{default:s(()=>[t(ue,{modelValue:e(h).name,"onUpdate:modelValue":M[0]||(M[0]=A=>e(h).name=A),invalid:e(o).newCompanyForm.name.$error,"content-loading":e(c),onInput:M[1]||(M[1]=A=>e(o).newCompanyForm.name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(G,{"content-loading":e(c),label:I.$tc("settings.company_info.country"),error:e(o).newCompanyForm.address.country_id.$error&&e(o).newCompanyForm.address.country_id.$errors[0].$message,required:""},{default:s(()=>[t(ee,{modelValue:e(h).address.country_id,"onUpdate:modelValue":M[2]||(M[2]=A=>e(h).address.country_id=A),"content-loading":e(c),label:"name",invalid:e(o).newCompanyForm.address.country_id.$error,options:e(f).countries,"value-prop":"id","can-deselect":!0,"can-clear":!1,searchable:"","track-by":"name"},null,8,["modelValue","content-loading","invalid","options"])]),_:1},8,["content-loading","label","error"]),t(G,{label:I.$t("wizard.currency"),error:e(o).newCompanyForm.currency.$error&&e(o).newCompanyForm.currency.$errors[0].$message,"content-loading":e(c),"help-text":I.$t("wizard.currency_set_alert"),required:""},{default:s(()=>[t(ee,{modelValue:e(h).currency,"onUpdate:modelValue":M[3]||(M[3]=A=>e(h).currency=A),"content-loading":e(c),options:e(f).currencies,label:"name","value-prop":"id",searchable:!0,"track-by":"name",placeholder:I.$tc("settings.currencies.select_currency"),invalid:e(o).newCompanyForm.currency.$error,class:"w-full"},null,8,["modelValue","content-loading","options","placeholder","invalid"])]),_:1},8,["label","error","content-loading","help-text"])]),_:1})]),n("div",Ve,[t(te,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:O},{default:s(()=>[U(u(I.$t("general.cancel")),1)]),_:1}),t(te,{loading:e(g),disabled:e(g),variant:"primary",type:"submit"},{left:s(A=>[e(g)?B("",!0):(a(),C(Z,{key:0,name:"SaveIcon",class:L(A.class)},null,8,["class"]))]),default:s(()=>[U(" "+u(I.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Me)]),_:1},8,["show"])}}},Re={key:0,class:"w-16 text-sm font-medium truncate sm:w-auto"},Fe={key:0,class:"absolute right-0 mt-2 bg-white rounded-md shadow-lg"},Le={class:"overflow-y-auto scrollbar-thin scrollbar-thumb-rounded-full w-[250px] max-h-[350px] scrollbar-thumb-gray-300 scrollbar-track-gray-10 pb-4"},je={class:"px-3 py-2 text-xs font-semibold text-gray-400 mb-0.5 block uppercase"},Ne={key:0,class:"flex flex-col items-center justify-center p-2 px-3 mt-4 text-base text-gray-400"},Te={key:1},De={key:0},Oe=["onClick"],Ge={class:"flex items-center"},qe={class:"flex items-center justify-center mr-3 overflow-hidden text-base font-semibold bg-gray-200 rounded-md w-9 h-9 text-primary-500"},ze={key:0},Pe=["src"],Je={class:"flex flex-col"},Xe={class:"text-sm"},Ye={class:"font-medium"},We={setup(F){const m=Y(),r=W(),d=X(),f=q(),_=D(),{t:g}=z(),b=Q(),c=k(!1),l=k(""),p=k(null);oe(d,()=>{c.value=!1,l.value=""}),se(p,()=>{c.value=!1});function h(o){if(o)return o.split(" ")[0].charAt(0).toUpperCase()}function v(){r.openModal({title:g("company_switcher.new_company"),componentName:"CompanyModal",size:"sm"})}async function x(o){await m.setSelectedCompany(o),f.push("/admin/dashboard"),await _.setIsAppLoaded(!1),await _.bootstrap()}return(o,w)=>{const S=y("BaseIcon");return a(),i("div",{ref:($,E)=>{E.companySwitchBar=$,p.value=$},class:"relative rounded"},[t(Ae),n("div",{class:"flex items-center justify-center px-3 h-8 md:h-9 ml-2 text-sm text-white bg-white rounded cursor-pointer bg-opacity-20",onClick:w[0]||(w[0]=$=>c.value=!c.value)},[e(m).selectedCompany?(a(),i("span",Re,u(e(m).selectedCompany.name),1)):B("",!0),t(S,{name:"ChevronDownIcon",class:"h-5 ml-1 text-white"})]),t(ne,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:s(()=>[c.value?(a(),i("div",Fe,[n("div",Le,[n("label",je,u(o.$t("company_switcher.label")),1),e(m).companies.length<1?(a(),i("div",Ne,[t(S,{name:"ExclamationCircleIcon",class:"h-5 text-gray-400"}),U(" "+u(o.$t("company_switcher.no_results_found")),1)])):(a(),i("div",Te,[e(m).companies.length>0?(a(),i("div",De,[(a(!0),i(V,null,R(e(m).companies,($,E)=>(a(),i("div",{key:E,class:L(["p-2 px-3 rounded-md cursor-pointer hover:bg-gray-100 hover:text-primary-500",{"bg-gray-100 text-primary-500":e(m).selectedCompany.id===$.id}]),onClick:T=>x($)},[n("div",Ge,[n("span",qe,[$.logo?(a(),i("img",{key:1,src:$.logo,alt:"Company logo",class:"w-full h-full object-contain"},null,8,Pe)):(a(),i("span",ze,u(h($.name)),1))]),n("div",Je,[n("span",Xe,u($.name),1)])])],10,Oe))),128))])):B("",!0)]))]),e(b).currentUser.is_owner?(a(),i("div",{key:0,class:"flex items-center justify-center p-4 pl-3 border-t-2 border-gray-100 cursor-pointer text-primary-400 hover:text-primary-500",onClick:v},[t(S,{name:"PlusIcon",class:"h-5 mr-2"}),n("span",Ye,u(o.$t("company_switcher.add_new_company")),1)])):B("",!0)])):B("",!0)]),_:1})],512)}}},He={key:0,class:"scrollbar-thin scrollbar-thumb-rounded-full scrollbar-thumb-gray-300 scrollbar-track-gray-100 overflow-y-auto bg-white rounded-md mt-2 shadow-lg p-3 absolute w-[300px] h-[200px] right-0"},Ke={key:0,class:"flex items-center justify-center text-gray-400 text-base flex-col mt-4"},Qe={key:1},Ze={key:0},et={class:"text-sm text-gray-400 mb-0.5 block px-2 uppercase"},tt={class:"flex items-center justify-center w-9 h-9 mr-3 text-base font-semibold bg-gray-200 rounded-full text-primary-500"},at={class:"flex flex-col"},ot={class:"text-sm"},st={key:0,class:"text-xs text-gray-400"},nt={key:1,class:"text-xs text-gray-400"},rt={key:1,class:"mt-2"},lt={class:"text-sm text-gray-400 mb-2 block px-2 mb-0.5 uppercase"},it={class:"flex items-center justify-center w-9 h-9 mr-3 text-base font-semibold bg-gray-200 rounded-full text-primary-500"},ct={class:"flex flex-col"},dt={class:"text-sm"},ut={class:"text-xs text-gray-400"},mt={setup(F){const m=Ce(),r=k(!1),d=k(""),f=k(null),_=k(!1),g=X();oe(g,()=>{r.value=!1,d.value=""}),b=ye.exports.debounce(b,500),se(f,()=>{r.value=!1,d.value=""});function b(){let l={search:d.value};d.value&&(_.value=!0,m.searchUsers(l).then(()=>{r.value=!0}),_.value=!1),d.value===""&&(r.value=!1)}function c(l){if(l)return l.split(" ")[0].charAt(0).toUpperCase()}return(l,p)=>{const h=y("BaseIcon"),v=y("BaseInput"),x=y("router-link");return a(),i("div",{ref:(o,w)=>{w.searchBar=o,f.value=o},class:"hidden rounded md:block relative"},[n("div",null,[t(v,{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=o=>d.value=o),placeholder:"Search...","container-class":"!rounded",class:"h-8 md:h-9 !rounded",onInput:b},{left:s(()=>[t(h,{name:"SearchIcon",class:"text-gray-400"})]),right:s(()=>[_.value?(a(),C(we,{key:0,class:"h-5 text-primary-500"})):B("",!0)]),_:1},8,["modelValue"])]),t(ne,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:s(()=>[r.value?(a(),i("div",He,[e(m).userList.length<1&&e(m).customerList.length<1?(a(),i("div",Ke,[t(h,{name:"ExclamationCircleIcon",class:"text-gray-400"}),U(" "+u(l.$t("global_search.no_results_found")),1)])):(a(),i("div",Qe,[e(m).customerList.length>0?(a(),i("div",Ze,[n("label",et,u(l.$t("global_search.customers")),1),(a(!0),i(V,null,R(e(m).customerList,(o,w)=>(a(),i("div",{key:w,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t(x,{to:{path:`/admin/customers/${o.id}/view`},class:"flex items-center"},{default:s(()=>[n("span",tt,u(c(o.name)),1),n("div",at,[n("span",ot,u(o.name),1),o.contact_name?(a(),i("span",st,u(o.contact_name),1)):(a(),i("span",nt,u(o.email),1))])]),_:2},1032,["to"])]))),128))])):B("",!0),e(m).userList.length>0?(a(),i("div",rt,[n("label",lt,u(l.$t("global_search.users")),1),(a(!0),i(V,null,R(e(m).userList,(o,w)=>(a(),i("div",{key:w,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t(x,{to:{path:`/admin/users/${o.id}/edit`},class:"flex items-center"},{default:s(()=>[n("span",it,u(c(o.name)),1),n("div",ct,[n("span",dt,u(o.name),1),n("span",ut,u(o.email),1)])]),_:2},1032,["to"])]))),128))])):B("",!0)]))])):B("",!0)]),_:1})],512)}}},pt={class:"fixed top-0 left-0 z-20 flex items-center justify-between w-full px-4 py-3 md:h-16 md:px-8 bg-gradient-to-r from-primary-500 to-primary-400"},_t=["onClick"],ht={class:"flex float-right h-8 m-0 list-none md:h-9"},yt={key:0,class:"relative hidden float-left m-0 md:block"},ft={class:"flex items-center justify-center w-8 h-8 ml-2 text-sm text-black bg-white rounded md:h-9 md:w-9"},gt={class:"ml-2"},vt={class:"relative block float-left ml-2"},bt=["src"],xt={setup(F){const m=$e(),r=Q(),d=D(),f=q(),_=P(()=>r.currentUser&&r.currentUser.avatar!==0?r.currentUser.avatar:g());function g(){return new URL("/build/img/default-avatar.jpg",self.location)}function b(){return r.hasAbilities([j.CREATE_INVOICE,j.CREATE_ESTIMATE,j.CREATE_CUSTOMER])}async function c(){await m.logout(),f.push("/login")}function l(){d.setSidebarVisibility(!0)}return(p,h)=>{const v=y("router-link"),x=y("BaseIcon"),o=y("BaseDropdownItem"),w=y("BaseDropdown");return a(),i("header",pt,[t(v,{to:"/admin/dashboard",class:"float-none text-lg not-italic font-black tracking-wider text-white brand-main md:float-left font-base hidden md:block"},{default:s(()=>[t(re,{class:"h-6","light-color":"white","dark-color":"white"})]),_:1}),n("div",{class:L([{"is-active":e(d).isSidebarOpen},"flex float-left p-1 overflow-visible text-sm ease-linear bg-white border-0 rounded cursor-pointer md:hidden md:ml-0 hover:bg-gray-100"]),onClick:H(l,["prevent"])},[t(x,{name:"MenuIcon",class:"!w-6 !h-6 text-gray-500"})],10,_t),n("ul",ht,[b?(a(),i("li",yt,[t(w,{"width-class":"w-48"},{activator:s(()=>[n("div",ft,[t(x,{name:"PlusIcon",class:"w-5 h-5 text-gray-600"})])]),default:s(()=>[t(v,{to:"/admin/invoices/create"},{default:s(()=>[e(r).hasAbilities(e(j).CREATE_INVOICE)?(a(),C(o,{key:0},{default:s(()=>[t(x,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("invoices.new_invoice")),1)]),_:1})):B("",!0)]),_:1}),t(v,{to:"/admin/estimates/create"},{default:s(()=>[e(r).hasAbilities(e(j).CREATE_ESTIMATE)?(a(),C(o,{key:0},{default:s(()=>[t(x,{name:"DocumentIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("estimates.new_estimate")),1)]),_:1})):B("",!0)]),_:1}),t(v,{to:"/admin/customers/create"},{default:s(()=>[e(r).hasAbilities(e(j).CREATE_CUSTOMER)?(a(),C(o,{key:0},{default:s(()=>[t(x,{name:"UserIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("customers.new_customer")),1)]),_:1})):B("",!0)]),_:1})]),_:1})])):B("",!0),n("li",gt,[e(r).currentUser.is_owner||e(r).hasAbilities(e(j).VIEW_CUSTOMER)?(a(),C(mt,{key:0})):B("",!0)]),n("li",null,[t(We)]),n("li",vt,[t(w,{"width-class":"w-48"},{activator:s(()=>[n("img",{src:e(_),class:"block w-8 h-8 rounded md:h-9 md:w-9"},null,8,bt)]),default:s(()=>[t(v,{to:"/admin/settings/account-settings"},{default:s(()=>[t(o,null,{default:s(()=>[t(x,{name:"CogIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("navigation.settings")),1)]),_:1})]),_:1}),t(o,{onClick:c},{default:s(()=>[t(x,{name:"LogoutIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+u(p.$t("navigation.logout")),1)]),_:1})]),_:1})])])])}}},wt={class:"relative flex flex-col flex-1 w-full max-w-xs bg-white"},$t={class:"absolute top-0 right-0 pt-2 -mr-12"},kt=n("span",{class:"sr-only"},"Close sidebar",-1),Ct={class:"flex-1 h-0 pt-5 pb-4 overflow-y-auto"},Bt={class:"flex items-center shrink-0 px-4 mb-10"},St=n("div",{class:"shrink-0 w-14"},null,-1),It={class:"hidden w-56 h-screen h-screen-ios pb-32 overflow-y-auto bg-white border-r border-gray-200 border-solid xl:w-64 md:fixed md:flex md:flex-col md:inset-y-0 pt-16"},Mt={setup(F){const m=X(),r=D();function d(f){return m.path.indexOf(f)>-1}return(f,_)=>{const g=y("BaseIcon"),b=y("router-link");return a(),i(V,null,[t(e(ve),{as:"template",show:e(r).isSidebarOpen},{default:s(()=>[t(e(fe),{as:"div",class:"fixed inset-0 z-40 flex md:hidden",onClose:_[3]||(_[3]=c=>e(r).setSidebarVisibility(!1))},{default:s(()=>[t(e(K),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>[t(e(ge),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t(e(K),{as:"template",enter:"transition ease-in-out duration-300","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:s(()=>[n("div",wt,[t(e(K),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>[n("div",$t,[n("button",{class:"flex items-center justify-center w-10 h-10 ml-1 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:_[0]||(_[0]=c=>e(r).setSidebarVisibility(!1))},[kt,t(g,{name:"XIcon",class:"w-6 h-6 text-white","aria-hidden":"true"})])])]),_:1}),n("div",Ct,[n("div",Bt,[t(re,{class:"block h-auto max-w-full w-36 text-primary-400",alt:"Crater Logo"})]),(a(!0),i(V,null,R(e(r).menuGroups,c=>(a(),i("nav",{key:c,class:"mt-5 space-y-1"},[(a(!0),i(V,null,R(c,l=>(a(),C(b,{key:l.name,to:l.link,class:L([d(l.link)?"text-primary-500 border-primary-500 bg-gray-100 ":"text-black","cursor-pointer px-0 pl-4 py-3 border-transparent flex items-center border-l-4 border-solid text-sm not-italic font-medium"]),onClick:_[2]||(_[2]=p=>e(r).setSidebarVisibility(!1))},{default:s(()=>[t(g,{name:l.icon,class:L([d(l.link)?"text-primary-500 ":"text-gray-400","mr-4 shrink-0 h-5 w-5"]),onClick:_[1]||(_[1]=p=>e(r).setSidebarVisibility(!1))},null,8,["name","class"]),U(" "+u(f.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])])]),_:1}),St]),_:1})]),_:1},8,["show"]),n("div",It,[(a(!0),i(V,null,R(e(r).menuGroups,c=>(a(),i("div",{key:c,class:"p-0 m-0 mt-6 list-none"},[(a(!0),i(V,null,R(c,l=>(a(),C(b,{key:l,to:l.link,class:L([d(l.link)?"text-primary-500 border-primary-500 bg-gray-100 ":"text-black","cursor-pointer px-0 pl-6 hover:bg-gray-50 py-3 group flex items-center border-l-4 border-solid border-transparent text-sm not-italic font-medium"])},{default:s(()=>[t(g,{name:l.icon,class:L([d(l.link)?"text-primary-500 group-hover:text-primary-500 ":"text-gray-400 group-hover:text-black","mr-4 shrink-0 h-5 w-5 "])},null,8,["name","class"]),U(" "+u(f.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])],64)}}},Ut={class:"font-medium text-lg text-left"},Et={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},Vt=["onSubmit"],At={class:"text-gray-500 sm:text-sm"},Rt={class:"text-gray-400 text-xs mt-2 font-light"},Ft={slot:"footer",class:"z-0 flex justify-end mt-4 pt-4 border-t border-gray-200 border-solid border-modal-bg"},Lt={emits:["update"],setup(F,{emit:m}){const r=le();ke();const d=Y(),{t:f,tm:_}=z();let g=k(!1);k(!1);const b={exchange_rate:{required:N.withMessage(f("validation.required"),J),decimal:N.withMessage(f("validation.valid_exchange_rate"),be)}},c=ae();async function l(){if(c.value.$touch(),c.value.$invalid)return!0;g.value=!0;let p=r.bulkCurrencies.map(v=>({id:v.id,exchange_rate:v.exchange_rate})),h=await r.updateBulkExchangeRate({currencies:p});h.data.success&&m("update",h.data.success),g.value=!1}return(p,h)=>{const v=y("BaseInput"),x=y("BaseInputGroup"),o=y("BaseButton"),w=y("BaseCard");return a(),C(w,null,{default:s(()=>[n("h6",Ut,u(p.$t("settings.exchange_rate.title")),1),n("p",Et,u(p.$t("settings.exchange_rate.description",{currency:e(d).selectedCompanyCurrency.name})),1),n("form",{action:"",onSubmit:H(l,["prevent"])},[(a(!0),i(V,null,R(e(r).bulkCurrencies,(S,$)=>(a(),C(e(Se),{key:$,state:S,rules:b},{default:s(({v:E})=>[t(x,{class:"my-5",label:`${S.code} to ${e(d).selectedCompanyCurrency.code}`,error:E.exchange_rate.$error&&E.exchange_rate.$errors[0].$message,required:""},{default:s(()=>[t(v,{modelValue:S.exchange_rate,"onUpdate:modelValue":T=>S.exchange_rate=T,addon:`1 ${S.code} =`,invalid:E.exchange_rate.$error,onInput:T=>E.exchange_rate.$touch()},{right:s(()=>[n("span",At,u(e(d).selectedCompanyCurrency.code),1)]),_:2},1032,["modelValue","onUpdate:modelValue","addon","invalid","onInput"]),n("span",Rt,u(p.$t("settings.exchange_rate.exchange_help_text",{currency:S.code,baseCurrency:e(d).selectedCompanyCurrency.code})),1)]),_:2},1032,["label","error"])]),_:2},1032,["state"]))),128)),n("div",Ft,[t(o,{loading:e(g),variant:"primary",type:"submit"},{default:s(()=>[U(u(p.$t("general.save")),1)]),_:1},8,["loading"])])],40,Vt)]),_:1})}}},jt={setup(F){const m=W(),r=P(()=>m.active&&m.componentName==="ExchangeRateBulkUpdateModal");function d(){m.closeModal()}return(f,_)=>{const g=y("BaseModal");return a(),C(g,{show:e(r)},{default:s(()=>[t(Lt,{onUpdate:_[0]||(_[0]=b=>d())})]),_:1},8,["show"])}}},Nt={key:0,class:"h-full"},Tt={class:"pt-16 pb-16 h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0"},Jt={setup(F){const m=D(),r=X(),d=Q(),f=q(),_=W();z();const g=le(),b=Y(),c=P(()=>m.isAppLoaded);return xe(()=>{m.bootstrap().then(l=>{r.meta.ability&&!d.hasAbilities(r.meta.ability)?f.push({name:"account.settings"}):r.meta.isOwner&&!d.currentUser.is_owner&&f.push({name:"account.settings"}),l.data.current_company_settings.bulk_exchange_rate_configured==="NO"&&g.fetchBulkCurrencies().then(p=>{if(p.data.currencies.length)_.openModal({componentName:"ExchangeRateBulkUpdateModal",size:"sm"});else{let h={settings:{bulk_exchange_rate_configured:"YES"}};b.updateCompanySettings({data:h})}})})}),(l,p)=>{const h=y("router-view"),v=y("BaseGlobalLoader");return e(c)?(a(),i("div",Nt,[t(Be),t(xt),t(Mt),t(jt),n("main",Tt,[t(h)])])):(a(),C(v,{key:1}))}}};export{Jt as default};
import{N as t}from"./NotificationRoot.a98180ab.js";import{r as s,o as a,e as r,f as o,h as c}from"./vendor.01d0adc5.js";import"./main.75722495.js";const n={class:"h-screen h-screen-ios overflow-y-auto text-base"},i={class:"container mx-auto px-4"},u={setup(_){return(m,p)=>{const e=s("router-view");return a(),r("div",n,[o(t),c("div",i,[o(e)])])}}};export{u as default};
import{N as r}from"./NotificationRoot.a98180ab.js";import{f as l}from"./main.75722495.js";import{k as i,r as n,o,e,f as a,h as s,u as c,l as u}from"./vendor.01d0adc5.js";const d={class:"min-h-screen bg-gray-200 flex flex-col justify-center py-12 sm:px-6 lg:px-8"},p={class:"sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0"},_=["src"],x={class:"mt-8 sm:mx-auto sm:w-full sm:max-w-md px-4 sm:px-0"},f={class:"bg-white py-8 px-4 shadow rounded-lg sm:px-10"},b={setup(w){const t=i(()=>window.customer_logo?window.customer_logo:!1);return(h,g)=>{const m=n("router-view");return o(),e("div",d,[a(r),s("div",p,[c(t)?(o(),e("img",{key:1,src:c(t),class:"block w-48 h-auto max-w-full text-primary-400 mx-auto"},null,8,_)):(o(),u(l,{key:0,class:"block w-48 h-auto max-w-full text-primary-400 mx-auto"}))]),s("div",x,[s("div",f,[a(m)])])])}}};export{b as default};
import{N as n}from"./NotificationRoot.a98180ab.js";import{_ as r,f as p}from"./main.75722495.js";import{o as a,e,h as t,ai as d,r as h,f as l,t as C,i}from"./vendor.01d0adc5.js";const f={},_={viewBox:"0 0 1012 1023",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",class:"text-primary-500"},m=t("path",{d:"M116.21 472.5C55.1239 693.5 78.5219 837.5 114.349 1023H1030.5V-1L0 -106C147.5 21.5 172.311 269.536 116.21 472.5Z",fill:"url(#paint0_linear)"},null,-1),g=t("defs",null,[t("linearGradient",{id:"paint0_linear",x1:"515.25",y1:"-106",x2:"515.25",y2:"1023",gradientUnits:"userSpaceOnUse"},[t("stop",{"stop-color":"rgba(var(--color-primary-500), var(--tw-text-opacity))"}),t("stop",{offset:"1","stop-color":"rgba(var(--color-primary-400), var(--tw-text-opacity))"})])],-1),y=[m,g];function x(o,s){return a(),e("svg",_,y)}var w=r(f,[["render",x]]);const u={},v={width:"422",height:"290",viewBox:"0 0 422 290",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=d('<g clip-path="url(#clip0)"><path opacity="0.3" d="M220.111 290.223C341.676 290.223 440.223 191.676 440.223 70.1115C440.223 -51.4527 341.676 -150 220.111 -150C98.5473 -150 0 -51.4527 0 70.1115C0 191.676 98.5473 290.223 220.111 290.223Z" fill="white" fill-opacity="0.1"></path><path opacity="0.3" d="M220.111 246.513C317.535 246.513 396.513 167.535 396.513 70.1114C396.513 -27.3124 317.535 -106.29 220.111 -106.29C122.688 -106.29 43.71 -27.3124 43.71 70.1114C43.71 167.535 122.688 246.513 220.111 246.513Z" fill="white" fill-opacity="0.1"></path><path d="M97.0093 35.322C96.7863 35.991 96.5633 36.66 96.5633 37.3291C94.1101 46.4725 92.7721 55.6159 92.3261 64.5364C91.88 74.5718 92.7721 84.6073 94.5562 94.1968C103.477 140.137 137.374 179.387 185.545 192.991C224.794 204.141 265.159 195.444 295.712 173.143C309.538 163.107 321.358 150.172 330.278 135.231C335.854 125.864 340.314 115.606 343.436 104.678C346.335 94.6428 347.896 84.6073 348.119 74.7949C348.788 56.954 345.666 39.3362 339.422 23.2794C325.372 -12.6253 295.043 -41.8397 255.124 -52.9902C211.637 -65.2558 167.481 -53.6593 136.036 -26.452C117.749 -10.6182 103.923 10.3448 97.0093 35.322Z" fill="white" fill-opacity="0.1"></path><path d="M97.0095 35.3223C96.7865 35.9913 96.5635 36.6603 96.5635 37.3294L347.896 74.7952C348.565 56.9543 345.443 39.3365 339.199 23.2797L136.036 -26.4517C117.749 -10.6179 103.923 10.3451 97.0095 35.3223Z" fill="white" fill-opacity="0.05"></path><path d="M92.3261 64.7598C91.88 74.7952 92.7721 84.8307 94.5562 94.4202L295.489 173.366C309.315 163.33 321.135 150.396 330.055 135.454L92.3261 64.7598Z" fill="white" fill-opacity="0.05"></path><path d="M153.431 11.9056C151.424 19.265 152.316 26.8473 155.661 33.0916C159.229 39.7819 165.473 45.1342 173.279 47.3643C188.443 51.6015 204.5 42.6811 208.737 27.5163C209.853 23.9482 210.076 20.157 209.629 16.5888C208.514 5.21529 200.486 -4.82018 188.889 -7.94233C173.502 -12.1795 157.668 -3.25911 153.431 11.9056Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M156.553 22.3869C155.438 25.9551 155.215 29.7462 155.661 33.3144C159.229 40.0047 165.473 45.357 173.279 47.5871C188.443 51.8243 204.5 42.9039 208.737 27.7391C209.852 24.171 210.075 20.3798 209.629 16.8116C206.061 10.1213 199.817 4.76908 192.011 2.53897C176.624 -1.92124 160.79 6.99919 156.553 22.3869Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M270.735 95.5343C267.613 100.887 266.944 106.685 268.282 112.26C269.62 118.058 273.411 123.411 278.986 126.533C289.914 132.777 303.74 128.986 309.985 118.281C311.546 115.605 312.438 112.929 312.884 110.03C314.222 101.11 309.985 91.9661 301.733 87.0599C290.806 81.0386 276.979 84.8298 270.735 95.5343Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M270.958 104.232C269.397 106.908 268.505 109.584 268.059 112.483C269.397 118.281 273.188 123.634 278.764 126.756C289.691 133 303.518 129.209 309.762 118.504C311.323 115.828 312.215 113.152 312.661 110.253C311.323 104.455 307.532 99.1025 301.957 95.9804C291.252 89.5131 277.426 93.3043 270.958 104.232Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M250.663 130.771C247.54 133.001 245.533 136.123 244.864 139.468C243.972 143.036 244.641 147.051 247.094 150.396C251.555 156.863 260.252 158.647 266.942 154.187C268.503 153.072 269.842 151.734 270.734 150.396C273.856 145.712 274.079 139.468 270.734 134.562C265.827 127.872 257.13 126.311 250.663 130.771Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M248.433 135.677C246.872 136.792 245.534 138.13 244.642 139.468C243.75 143.036 244.419 147.051 246.872 150.396C251.332 156.863 260.03 158.647 266.72 154.187C268.281 153.072 269.619 151.734 270.511 150.396C271.403 146.828 270.734 142.813 268.281 139.468C263.821 132.778 254.901 131.217 248.433 135.677Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M215.651 14.8049C214.759 18.15 215.205 21.4952 216.543 24.1713C218.104 27.0704 220.78 29.5236 224.348 30.4156C231.038 32.4227 238.175 28.4085 240.182 21.4952C240.628 19.9341 240.851 18.15 240.628 16.5889C240.182 11.4597 236.614 6.99951 231.484 5.66145C224.571 4.10037 217.435 8.11456 215.651 14.8049Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M216.989 19.4876C216.543 21.0487 216.32 22.8328 216.543 24.3939C218.104 27.293 220.78 29.7461 224.348 30.6382C231.039 32.6453 238.175 28.6311 240.182 21.7177C240.628 20.1567 240.851 18.3726 240.628 16.8115C239.067 13.9124 236.391 11.4593 232.823 10.5672C225.91 8.78313 218.773 12.5743 216.989 19.4876Z" class="fill-primary-500"></path><path d="M122.209 124.526C121.763 125.864 121.986 127.202 122.655 128.54C123.324 129.878 124.439 130.77 126.001 131.216C128.9 132.108 131.799 130.324 132.468 127.648C132.691 126.979 132.691 126.31 132.691 125.641C132.468 123.634 130.907 121.627 128.9 121.181C126.001 120.066 123.101 121.85 122.209 124.526Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M122.878 126.533C122.655 127.202 122.655 127.871 122.655 128.54C123.324 129.878 124.439 130.77 126 131.216C128.899 132.108 131.798 130.324 132.468 127.648C132.691 126.979 132.691 126.31 132.691 125.641C132.021 124.303 130.906 123.411 129.345 122.965C126.446 122.073 123.547 123.634 122.878 126.533Z" class="fill-primary-500" fill-opacity="0.5"></path><path d="M169.487 123.188C168.149 123.411 166.811 124.08 166.142 125.195C165.25 126.31 164.804 127.648 165.027 129.209C165.473 132.108 168.149 134.116 171.048 133.67C171.717 133.67 172.386 133.224 172.832 133C174.617 131.885 175.732 129.878 175.286 127.648C175.063 124.749 172.386 122.742 169.487 123.188Z" class="fill-primary-700" fill-opacity="0.8"></path><path d="M167.926 124.526C167.257 124.526 166.588 124.972 166.142 125.195C165.25 126.31 164.804 127.648 165.027 129.209C165.473 132.108 168.149 134.115 171.048 133.669C171.717 133.669 172.386 133.223 172.832 133C173.724 131.885 174.17 130.547 173.947 128.986C173.501 126.087 170.825 124.08 167.926 124.526Z" class="fill-primary-500" fill-opacity="0.5"></path></g><defs><clipPath id="clip0"><rect width="440" height="440" fill="white" transform="translate(0 -150)"></rect></clipPath></defs>',2),$=[b];function M(o,s){return a(),e("svg",v,$)}var Z=r(u,[["render",M]]);const L={},B={viewBox:"0 0 1170 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k=t("path",{d:"M690 4.08004C518 -9.91998 231 4.08004 -6 176.361L231 197.08L1170 219.08C1113.33 175.747 909.275 21.928 690 4.08004Z",fill:"white","fill-opacity":"0.1"},null,-1),N=[k];function V(o,s){return a(),e("svg",B,N)}var S=r(L,[["render",V]]);const j={},I={width:"1122",height:"1017",viewBox:"0 0 1122 1017",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R=t("path",{d:"M226.002 466.5C164.935 687.5 188.326 831.5 224.141 1017H1140V-7L0 -109.5C142.5 -7.5 282.085 263.536 226.002 466.5Z",fill:"url(#paint0_linear)","fill-opacity":"0.1"},null,-1),U=t("defs",null,[t("linearGradient",{id:"paint0_linear",x1:"649.5",y1:"-7",x2:"649.5",y2:"1017",gradientUnits:"userSpaceOnUse"},[t("stop",{"stop-color":"rgba(var(--color-primary-500), var(--tw-text-opacity))"}),t("stop",{offset:"1","stop-color":"rgba(var(--color-primary-400), var(--tw-text-opacity))"})])],-1),z=[R,U];function O(o,s){return a(),e("svg",I,z)}var P=r(j,[["render",O]]);const A={class:"grid h-screen h-screen-ios grid-cols-12 overflow-y-hidden bg-gray-100"},D={class:"flex items-center justify-center w-full max-w-sm col-span-12 p-4 mx-auto text-gray-900 md:p-8 md:col-span-6 lg:col-span-4 flex-2 md:pb-48 md:pt-40"},G={class:"w-full"},H={class:"pt-24 mt-0 text-sm not-italic font-medium leading-relaxed text-left text-gray-400 md:pt-40"},E={class:"mb-3"},F={class:"relative flex-col items-center justify-center hidden w-full h-full pl-10 bg-no-repeat bg-cover md:col-span-6 lg:col-span-8 md:flex content-box overflow-hidden"},T=t("div",{class:"pl-20 xl:pl-0 relative z-50"},[t("h1",{class:"hidden mb-3 text-3xl leading-normal text-left text-white xl:text-5xl xl:leading-tight md:none lg:block"},[t("b",{class:"font-bold"},"Simple Invoicing"),i(),t("br"),i(" for Individuals & "),t("br"),i(" Small Businesses "),t("br")]),t("p",{class:"hidden text-sm not-italic font-normal leading-normal text-left text-gray-100 xl:text-base xl:leading-6 md:none lg:block"},[i(" Crater helps you track expenses, record payments & generate beautiful "),t("br"),i(" invoices & estimates. "),t("br")])],-1),Q={setup(o){return(s,Y)=>{const c=h("router-view");return a(),e("div",A,[l(n),t("div",D,[t("div",G,[l(p,{class:"block w-48 h-auto max-w-full mb-32 text-primary-500"}),l(c),t("div",H,[t("p",E," Copyright @ Crater Invoice, Inc. "+C(new Date().getFullYear()),1)])])]),t("div",F,[l(w,{class:"absolute h-full w-full"}),l(Z,{class:"absolute z-10 top-0 right-0 h-[300px] w-[420px]"}),l(P,{class:"absolute h-full w-full right-[7.5%]"}),T,l(S,{class:"absolute z-50 w-full bg-no-repeat content-bottom h-[15vw] lg:h-[22vw] right-[32%] bottom-0"})])])}}};export{Q as default};
import{aQ as Zi,ah as Ji,B as Qi,k as eo,a7 as to,D as ro,a0 as ea,o as ao,e as no,h as io}from"./vendor.01d0adc5.js";import{b as oo}from"./main.75722495.js";var ta={exports:{}};/*!
import{_ as e}from"./main.75722495.js";import{o as c,e as s,h as o}from"./vendor.01d0adc5.js";const t={},r={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},n=o("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),a=o("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),l=[n,a];function i(_,d){return c(),s("svg",r,l)}var p=e(t,[["render",i]]);export{p as L};
import{J as C,aN as M,B as w,L as p,M as $,Q as E,T as L,k as y,r as l,o as c,e as T,f as n,w as u,u as e,l as B,x as _,h as b,i as h,t as I,U,a as j}from"./vendor.01d0adc5.js";import{u as G,a as R}from"./main.75722495.js";const A=["onSubmit"],F={class:"mt-5 mb-8"},J={class:"mb-4"},z={setup(O){const k=G(),s=R(),{t:m}=C(),V=M(),d=w(!1);let o=w(!1);const x={email:{required:p.withMessage(m("validation.required"),$),email:p.withMessage(m("validation.email_incorrect"),E)},password:{required:p.withMessage(m("validation.required"),$)}},t=L(x,y(()=>s.loginData)),S=y(()=>o.value?"text":"password");async function q(){if(j.defaults.withCredentials=!0,t.value.$touch(),t.value.$invalid)return!0;d.value=!0;try{d.value=!0,await s.login(s.loginData),V.push("/admin/dashboard"),k.showNotification({type:"success",message:"Logged in successfully."})}catch{d.value=!1}}return(i,a)=>{const g=l("BaseInput"),f=l("BaseInputGroup"),v=l("BaseIcon"),D=l("router-link"),N=l("BaseButton");return c(),T("form",{id:"loginForm",class:"mt-12 text-left",onSubmit:U(q,["prevent"])},[n(f,{error:e(t).email.$error&&e(t).email.$errors[0].$message,label:i.$t("login.email"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).loginData.email=r),invalid:e(t).email.$error,focus:"",type:"email",name:"email",onInput:a[1]||(a[1]=r=>e(t).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(f,{error:e(t).password.$error&&e(t).password.$errors[0].$message,label:i.$t("login.password"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.password,"onUpdate:modelValue":a[4]||(a[4]=r=>e(s).loginData.password=r),invalid:e(t).password.$error,type:e(S),name:"password",onInput:a[5]||(a[5]=r=>e(t).password.$touch())},{right:u(()=>[e(o)?(c(),B(v,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[2]||(a[2]=r=>_(o)?o.value=!e(o):o=!e(o))})):(c(),B(v,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:a[3]||(a[3]=r=>_(o)?o.value=!e(o):o=!e(o))}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["error","label"]),b("div",F,[b("div",J,[n(D,{to:"forgot-password",class:"text-sm text-primary-400 hover:text-gray-700"},{default:u(()=>[h(I(i.$t("login.forgot_password")),1)]),_:1})])]),n(N,{loading:d.value,type:"submit"},{default:u(()=>[h(I(i.$t("login.login")),1)]),_:1},8,["loading"])],40,A)}}};export{z as default};
var E=Object.defineProperty,G=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var B=(s,a,t)=>a in s?E(s,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[a]=t,b=(s,a)=>{for(var t in a||(a={}))U.call(a,t)&&B(s,t,a[t]);if(D)for(var t of D(a))O.call(a,t)&&B(s,t,a[t]);return s},I=(s,a)=>G(s,L(a));import{aN as P,G as R,J as z,B as _,k as h,L as f,M as k,Q as A,T as F,r as c,o as w,e as J,f as i,w as m,u as e,l as V,h as S,i as q,t as x,m as Q,U as H}from"./vendor.01d0adc5.js";import{u as K}from"./auth.4644c288.js";import"./main.75722495.js";const W=["onSubmit"],X={class:"flex items-center justify-between"},oe={setup(s){const a=P(),t=R(),l=K(),{t:g}=z();let p=_(!1);const u=_(!1),C=h(()=>u.value?"text":"password"),j=h(()=>({loginData:{email:{required:f.withMessage(g("validation.required"),k),email:f.withMessage(g("validation.email_incorrect"),A)},password:{required:f.withMessage(g("validation.required"),k)}}})),r=F(j,l);async function M(){if(r.value.loginData.$touch(),r.value.loginData.$invalid)return!0;p.value=!0;let d=I(b({},l.loginData),{company:t.params.company});try{return await l.login(d),p.value=!1,a.push({name:"customer.dashboard"});l.$reset()}catch{p.value=!1}}return(d,o)=>{const $=c("BaseInput"),y=c("BaseInputGroup"),v=c("BaseIcon"),N=c("router-link"),T=c("BaseButton");return w(),J("form",{id:"loginForm",class:"space-y-6",action:"#",method:"POST",onSubmit:H(M,["prevent"])},[i(y,{error:e(r).loginData.email.$error&&e(r).loginData.email.$errors[0].$message,label:d.$t("login.email"),class:"mb-4",required:""},{default:m(()=>[i($,{modelValue:e(l).loginData.email,"onUpdate:modelValue":o[0]||(o[0]=n=>e(l).loginData.email=n),type:"email",invalid:e(r).loginData.email.$error,onInput:o[1]||(o[1]=n=>e(r).loginData.email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),i(y,{error:e(r).loginData.password.$error&&e(r).loginData.password.$errors[0].$message,label:d.$t("login.password"),class:"mb-4",required:""},{default:m(()=>[i($,{modelValue:e(l).loginData.password,"onUpdate:modelValue":o[4]||(o[4]=n=>e(l).loginData.password=n),type:e(C),invalid:e(r).loginData.password.$error,onInput:o[5]||(o[5]=n=>e(r).loginData.password.$touch())},{right:m(()=>[u.value?(w(),V(v,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[2]||(o[2]=n=>u.value=!u.value)})):(w(),V(v,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[3]||(o[3]=n=>u.value=!u.value)}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["error","label"]),S("div",X,[i(N,{to:{name:"customer.forgot-password"},class:"text-sm text-primary-600 hover:text-gray-500"},{default:m(()=>[q(x(d.$t("login.forgot_password")),1)]),_:1},8,["to"])]),S("div",null,[i(T,{loading:e(p),disabled:e(p),type:"submit",class:"w-full justify-center"},{left:m(n=>[i(v,{name:"LockClosedIcon",class:Q(n.class)},null,8,["class"])]),default:m(()=>[q(" "+x(d.$t("login.login")),1)]),_:1},8,["loading","disabled"])])],40,W)}}};export{oe as default};
import{J as j,B as G,a0 as Q,k as B,L as f,M as C,aT as R,Q as A,T as P,D as L,r as c,o as q,e as O,f as l,w as s,u as e,l as V,x as T,h as F,m as z,j as E,i as S,t as k,g as J,U as N,S as X,aj as Z,F as ee}from"./vendor.01d0adc5.js";import{u as x}from"./mail-driver.4ea1af6b.js";import{c as H}from"./main.75722495.js";const ie=["onSubmit"],ne={class:"flex my-10"},K={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j();let m=G(!1);const b=Q(["tls","ssl","starttls"]),w=B(()=>m.value?"text":"password"),t=B(()=>({smtpConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},mail_host:{required:f.withMessage(u("validation.required"),C)},mail_port:{required:f.withMessage(u("validation.required"),C),numeric:f.withMessage(u("validation.numbers_only"),R)},mail_encryption:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:f.withMessage(u("validation.email_incorrect"),A)},from_name:{required:f.withMessage(u("validation.required"),C)}}})),d=P(t,B(()=>i));L(()=>{for(const o in i.smtpConfig)$.configData.hasOwnProperty(o)&&(i.smtpConfig[o]=$.configData[o])});async function I(){return d.value.smtpConfig.$touch(),d.value.smtpConfig.$invalid||D("submit-data",i.smtpConfig),!1}function g(){d.value.smtpConfig.mail_driver.$touch(),D("on-change-driver",i.smtpConfig.mail_driver)}return(o,n)=>{const M=c("BaseMultiselect"),v=c("BaseInputGroup"),y=c("BaseInput"),_=c("BaseIcon"),U=c("BaseInputGrid"),p=c("BaseButton");return q(),O("form",{onSubmit:N(I,["prevent"])},[l(U,null,{default:s(()=>[l(v,{label:o.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_driver.$error&&e(d).smtpConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).smtpConfig.mail_driver,"onUpdate:modelValue":[n[0]||(n[0]=r=>e(i).smtpConfig.mail_driver=r),g],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(d).smtpConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.host"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_host.$error&&e(d).smtpConfig.mail_host.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_host,"onUpdate:modelValue":n[1]||(n[1]=r=>e(i).smtpConfig.mail_host=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_host",invalid:e(d).smtpConfig.mail_host.$error,onInput:n[2]||(n[2]=r=>e(d).smtpConfig.mail_host.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{"content-loading":a.isFetchingInitialData,label:o.$t("settings.mail.username")},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_username,"onUpdate:modelValue":n[3]||(n[3]=r=>e(i).smtpConfig.mail_username=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"db_name"},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label"]),l(v,{"content-loading":a.isFetchingInitialData,label:o.$t("settings.mail.password")},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_password,"onUpdate:modelValue":n[6]||(n[6]=r=>e(i).smtpConfig.mail_password=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:e(w),name:"password"},{right:s(()=>[e(m)?(q(),V(_,{key:0,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeOffIcon",onClick:n[4]||(n[4]=r=>T(m)?m.value=!e(m):m=!e(m))})):(q(),V(_,{key:1,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeIcon",onClick:n[5]||(n[5]=r=>T(m)?m.value=!e(m):m=!e(m))}))]),_:1},8,["modelValue","content-loading","type"])]),_:1},8,["content-loading","label"]),l(v,{label:o.$t("settings.mail.port"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_port.$error&&e(d).smtpConfig.mail_port.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.mail_port,"onUpdate:modelValue":n[7]||(n[7]=r=>e(i).smtpConfig.mail_port=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_port",invalid:e(d).smtpConfig.mail_port.$error,onInput:n[8]||(n[8]=r=>e(d).smtpConfig.mail_port.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.encryption"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.mail_encryption.$error&&e(d).smtpConfig.mail_encryption.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).smtpConfig.mail_encryption,"onUpdate:modelValue":n[9]||(n[9]=r=>e(i).smtpConfig.mail_encryption=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,options:e(b),searchable:!0,"show-labels":!1,placeholder:"Select option",invalid:e(d).smtpConfig.mail_encryption.$error,onInput:n[10]||(n[10]=r=>e(d).smtpConfig.mail_encryption.$touch())},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.from_mail.$error&&e(d).smtpConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.from_mail,"onUpdate:modelValue":n[11]||(n[11]=r=>e(i).smtpConfig.from_mail=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(d).smtpConfig.from_mail.$error,onInput:n[12]||(n[12]=r=>e(d).smtpConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(d).smtpConfig.from_name.$error&&e(d).smtpConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).smtpConfig.from_name,"onUpdate:modelValue":n[13]||(n[13]=r=>e(i).smtpConfig.from_name=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_name",invalid:e(d).smtpConfig.from_name.$error,onInput:n[14]||(n[14]=r=>e(d).smtpConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",ne,[l(p,{disabled:a.isSaving,"content-loading":a.isFetchingInitialData,loading:a.isSaving,type:"submit",variant:"primary"},{left:s(r=>[a.isSaving?E("",!0):(q(),V(_,{key:0,name:"SaveIcon",class:z(r.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(o.$t("general.save")),1)]),_:1},8,["disabled","content-loading","loading"]),J(o.$slots,"default")])],40,ie)}}},te=["onSubmit"],ae={class:"flex my-10"},oe={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j();let m=G(!1);const b=B(()=>m.value?"text":"password"),w=B(()=>({mailgunConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},mail_mailgun_domain:{required:f.withMessage(u("validation.required"),C)},mail_mailgun_endpoint:{required:f.withMessage(u("validation.required"),C)},mail_mailgun_secret:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:A},from_name:{required:f.withMessage(u("validation.required"),C)}}})),t=P(w,B(()=>i));L(()=>{for(const g in i.mailgunConfig)$.configData.hasOwnProperty(g)&&(i.mailgunConfig[g]=$.configData[g])});async function d(){return t.value.mailgunConfig.$touch(),t.value.mailgunConfig.$invalid||D("submit-data",i.mailgunConfig),!1}function I(){t.value.mailgunConfig.mail_driver.$touch(),D("on-change-driver",i.mailgunConfig.mail_driver)}return(g,o)=>{const n=c("BaseMultiselect"),M=c("BaseInputGroup"),v=c("BaseInput"),y=c("BaseIcon"),_=c("BaseInputGrid"),U=c("BaseButton");return q(),O("form",{onSubmit:N(d,["prevent"])},[l(_,null,{default:s(()=>[l(M,{label:g.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_driver.$error&&e(t).mailgunConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(n,{modelValue:e(i).mailgunConfig.mail_driver,"onUpdate:modelValue":[o[0]||(o[0]=p=>e(i).mailgunConfig.mail_driver=p),I],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(t).mailgunConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.mailgun_domain"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_mailgun_domain.$error&&e(t).mailgunConfig.mail_mailgun_domain.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.mail_mailgun_domain,"onUpdate:modelValue":o[1]||(o[1]=p=>e(i).mailgunConfig.mail_mailgun_domain=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mailgun_domain",invalid:e(t).mailgunConfig.mail_mailgun_domain.$error,onInput:o[2]||(o[2]=p=>e(t).mailgunConfig.mail_mailgun_domain.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.mailgun_secret"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_mailgun_secret.$error&&e(t).mailgunConfig.mail_mailgun_secret.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.mail_mailgun_secret,"onUpdate:modelValue":o[5]||(o[5]=p=>e(i).mailgunConfig.mail_mailgun_secret=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:e(b),name:"mailgun_secret",autocomplete:"off",invalid:e(t).mailgunConfig.mail_mailgun_secret.$error,onInput:o[6]||(o[6]=p=>e(t).mailgunConfig.mail_mailgun_secret.$touch())},{right:s(()=>[e(m)?(q(),V(y,{key:0,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeOffIcon",onClick:o[3]||(o[3]=p=>T(m)?m.value=!e(m):m=!e(m))})):(q(),V(y,{key:1,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeIcon",onClick:o[4]||(o[4]=p=>T(m)?m.value=!e(m):m=!e(m))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.mailgun_endpoint"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.mail_mailgun_endpoint.$error&&e(t).mailgunConfig.mail_mailgun_endpoint.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.mail_mailgun_endpoint,"onUpdate:modelValue":o[7]||(o[7]=p=>e(i).mailgunConfig.mail_mailgun_endpoint=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mailgun_endpoint",invalid:e(t).mailgunConfig.mail_mailgun_endpoint.$error,onInput:o[8]||(o[8]=p=>e(t).mailgunConfig.mail_mailgun_endpoint.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.from_mail.$error&&e(t).mailgunConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.from_mail,"onUpdate:modelValue":o[9]||(o[9]=p=>e(i).mailgunConfig.from_mail=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(t).mailgunConfig.from_mail.$error,onInput:o[10]||(o[10]=p=>e(t).mailgunConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(M,{label:g.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(t).mailgunConfig.from_name.$error&&e(t).mailgunConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(v,{modelValue:e(i).mailgunConfig.from_name,"onUpdate:modelValue":o[11]||(o[11]=p=>e(i).mailgunConfig.from_name=p),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_name",invalid:e(t).mailgunConfig.from_name.$error,onInput:o[12]||(o[12]=p=>e(t).mailgunConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",ae,[l(U,{disabled:a.isSaving,"content-loading":a.isFetchingInitialData,loading:a.isSaving,variant:"primary",type:"submit"},{left:s(p=>[a.isSaving?E("",!0):(q(),V(y,{key:0,name:"SaveIcon",class:z(p.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(g.$t("general.save")),1)]),_:1},8,["disabled","content-loading","loading"]),J(g.$slots,"default")])],40,te)}}},le=["onSubmit"],re={class:"flex my-10"},se={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j();let m=G(!1);const b=Q(["tls","ssl","starttls"]),w=B(()=>({sesConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},mail_host:{required:f.withMessage(u("validation.required"),C)},mail_port:{required:f.withMessage(u("validation.required"),C),numeric:R},mail_ses_key:{required:f.withMessage(u("validation.required"),C)},mail_ses_secret:{required:f.withMessage(u("validation.required"),C)},mail_encryption:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:f.withMessage(u("validation.email_incorrect"),A)},from_name:{required:f.withMessage(u("validation.required"),C)}}})),t=P(w,B(()=>i)),d=B(()=>m.value?"text":"password");L(()=>{for(const o in i.sesConfig)$.configData.hasOwnProperty(o)&&(i.sesConfig[o]=$.configData[o])});async function I(){return t.value.sesConfig.$touch(),t.value.sesConfig.$invalid||D("submit-data",i.sesConfig),!1}function g(){t.value.sesConfig.mail_driver.$touch(),D("on-change-driver",i.sesConfig.mail_driver)}return(o,n)=>{const M=c("BaseMultiselect"),v=c("BaseInputGroup"),y=c("BaseInput"),_=c("BaseIcon"),U=c("BaseInputGrid"),p=c("BaseButton");return q(),O("form",{onSubmit:N(I,["prevent"])},[l(U,null,{default:s(()=>[l(v,{label:o.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_driver.$error&&e(t).sesConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).sesConfig.mail_driver,"onUpdate:modelValue":[n[0]||(n[0]=r=>e(i).sesConfig.mail_driver=r),g],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(t).sesConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.host"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_host.$error&&e(t).sesConfig.mail_host.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_host,"onUpdate:modelValue":n[1]||(n[1]=r=>e(i).sesConfig.mail_host=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_host",invalid:e(t).sesConfig.mail_host.$error,onInput:n[2]||(n[2]=r=>e(t).sesConfig.mail_host.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.port"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_port.$error&&e(t).sesConfig.mail_port.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_port,"onUpdate:modelValue":n[3]||(n[3]=r=>e(i).sesConfig.mail_port=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_port",invalid:e(t).sesConfig.mail_port.$error,onInput:n[4]||(n[4]=r=>e(t).sesConfig.mail_port.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.encryption"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_encryption.$error&&e(t).sesConfig.mail_encryption.$errors[0].$message,required:""},{default:s(()=>[l(M,{modelValue:e(i).sesConfig.mail_encryption,"onUpdate:modelValue":n[5]||(n[5]=r=>e(i).sesConfig.mail_encryption=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,options:e(b),invalid:e(t).sesConfig.mail_encryption.$error,placeholder:"Select option",onInput:n[6]||(n[6]=r=>e(t).sesConfig.mail_encryption.$touch())},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.from_mail.$error&&e(t).sesConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.from_mail,"onUpdate:modelValue":n[7]||(n[7]=r=>e(i).sesConfig.from_mail=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(t).sesConfig.from_mail.$error,onInput:n[8]||(n[8]=r=>e(t).sesConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.from_name.$error&&e(t).sesConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.from_name,"onUpdate:modelValue":n[9]||(n[9]=r=>e(i).sesConfig.from_name=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"name",invalid:e(t).sesConfig.from_name.$error,onInput:n[10]||(n[10]=r=>e(t).sesConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.ses_key"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_ses_key.$error&&e(t).sesConfig.mail_ses_key.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_ses_key,"onUpdate:modelValue":n[11]||(n[11]=r=>e(i).sesConfig.mail_ses_key=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"mail_ses_key",invalid:e(t).sesConfig.mail_ses_key.$error,onInput:n[12]||(n[12]=r=>e(t).sesConfig.mail_ses_key.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(v,{label:o.$t("settings.mail.ses_secret"),"content-loading":a.isFetchingInitialData,error:e(t).sesConfig.mail_ses_secret.$error&&e(t).mail_ses_secret.$errors[0].$message,required:""},{default:s(()=>[l(y,{modelValue:e(i).sesConfig.mail_ses_secret,"onUpdate:modelValue":n[15]||(n[15]=r=>e(i).sesConfig.mail_ses_secret=r),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:e(d),name:"mail_ses_secret",autocomplete:"off",invalid:e(t).sesConfig.mail_ses_secret.$error,onInput:n[16]||(n[16]=r=>e(t).sesConfig.mail_ses_secret.$touch())},{right:s(()=>[e(m)?(q(),V(_,{key:0,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeOffIcon",onClick:n[13]||(n[13]=r=>T(m)?m.value=!e(m):m=!e(m))})):(q(),V(_,{key:1,class:"mr-1 text-gray-500 cursor-pointer",name:"EyeIcon",onClick:n[14]||(n[14]=r=>T(m)?m.value=!e(m):m=!e(m))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",re,[l(p,{disabled:a.isSaving,"content-loading":a.isFetchingInitialData,loading:a.isSaving,variant:"primary",type:"submit"},{left:s(r=>[a.isSaving?E("",!0):(q(),V(_,{key:0,name:"SaveIcon",class:z(r.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(o.$t("general.save")),1)]),_:1},8,["disabled","content-loading","loading"]),J(o.$slots,"default")])],40,le)}}},me=["onSubmit"],de={class:"flex mt-8"},W={props:{configData:{type:Object,require:!0,default:Object},isSaving:{type:Boolean,require:!0,default:!1},isFetchingInitialData:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},emits:["submit-data","on-change-driver"],setup(a,{emit:D}){const $=a,i=x(),{t:u}=j(),m=B(()=>({basicMailConfig:{mail_driver:{required:f.withMessage(u("validation.required"),C)},from_mail:{required:f.withMessage(u("validation.required"),C),email:f.withMessage(u("validation.email_incorrect"),A)},from_name:{required:f.withMessage(u("validation.required"),C)}}})),b=P(m,B(()=>i));L(()=>{for(const d in i.basicMailConfig)$.configData.hasOwnProperty(d)&&i.$patch(I=>{I.basicMailConfig[d]=$.configData[d]})});async function w(){return b.value.basicMailConfig.$touch(),b.value.basicMailConfig.$invalid||D("submit-data",i.basicMailConfig),!1}function t(){b.value.basicMailConfig.mail_driver.$touch(),D("on-change-driver",i.basicMailConfig.mail_driver)}return(d,I)=>{const g=c("BaseMultiselect"),o=c("BaseInputGroup"),n=c("BaseInput"),M=c("BaseInputGrid"),v=c("BaseIcon"),y=c("BaseButton");return q(),O("form",{onSubmit:N(w,["prevent"])},[l(M,null,{default:s(()=>[l(o,{label:d.$t("settings.mail.driver"),"content-loading":a.isFetchingInitialData,error:e(b).basicMailConfig.mail_driver.$error&&e(b).basicMailConfig.mail_driver.$errors[0].$message,required:""},{default:s(()=>[l(g,{modelValue:e(i).basicMailConfig.mail_driver,"onUpdate:modelValue":[I[0]||(I[0]=_=>e(i).basicMailConfig.mail_driver=_),t],"content-loading":a.isFetchingInitialData,options:a.mailDrivers,"can-deselect":!1,invalid:e(b).basicMailConfig.mail_driver.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),l(o,{label:d.$t("settings.mail.from_mail"),"content-loading":a.isFetchingInitialData,error:e(b).basicMailConfig.from_mail.$error&&e(b).basicMailConfig.from_mail.$errors[0].$message,required:""},{default:s(()=>[l(n,{modelValue:e(i).basicMailConfig.from_mail,"onUpdate:modelValue":I[1]||(I[1]=_=>e(i).basicMailConfig.from_mail=_),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"from_mail",invalid:e(b).basicMailConfig.from_mail.$error,onInput:I[2]||(I[2]=_=>e(b).basicMailConfig.from_mail.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),l(o,{label:d.$t("settings.mail.from_name"),"content-loading":a.isFetchingInitialData,error:e(b).basicMailConfig.from_name.$error&&e(b).basicMailConfig.from_name.$errors[0].$message,required:""},{default:s(()=>[l(n,{modelValue:e(i).basicMailConfig.from_name,"onUpdate:modelValue":I[3]||(I[3]=_=>e(i).basicMailConfig.from_name=_),modelModifiers:{trim:!0},"content-loading":a.isFetchingInitialData,type:"text",name:"name",invalid:e(b).basicMailConfig.from_name.$error,onInput:I[4]||(I[4]=_=>e(b).basicMailConfig.from_name.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"])]),_:1}),F("div",de,[l(y,{"content-loading":a.isFetchingInitialData,disabled:a.isSaving,loading:a.isSaving,variant:"primary",type:"submit"},{left:s(_=>[a.isSaving?E("",!0):(q(),V(v,{key:0,class:z(_.class),name:"SaveIcon"},null,8,["class"]))]),default:s(()=>[S(" "+k(d.$t("general.save")),1)]),_:1},8,["content-loading","disabled","loading"]),J(d.$slots,"default")])],40,me)}}},ue={class:"flex justify-between w-full"},ge=["onSubmit"],fe={class:"p-4 md:p-8"},ce={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ve={setup(a){let D=G(!1),$=Q({to:"",subject:"",message:""});const i=H(),u=x(),{t:m}=j(),b=B(()=>i.active&&i.componentName==="MailTestModal"),w={formData:{to:{required:f.withMessage(m("validation.required"),C),email:f.withMessage(m("validation.email_incorrect"),A)},subject:{required:f.withMessage(m("validation.required"),C),maxLength:f.withMessage(m("validation.subject_maxlength"),X(100))},message:{required:f.withMessage(m("validation.required"),C),maxLength:f.withMessage(m("validation.message_maxlength"),X(255))}}},t=P(w,{formData:$});function d(){$.id="",$.to="",$.subject="",$.message="",t.value.$reset()}async function I(){if(t.value.formData.$touch(),t.value.$invalid)return!0;D.value=!0,(await u.sendTestMail($)).data&&(g(),D.value=!1)}function g(){i.closeModal(),setTimeout(()=>{i.resetModalData(),d()},300)}return(o,n)=>{const M=c("BaseIcon"),v=c("BaseInput"),y=c("BaseInputGroup"),_=c("BaseTextarea"),U=c("BaseInputGrid"),p=c("BaseButton"),r=c("BaseModal");return q(),V(r,{show:e(b),onClose:g},{header:s(()=>[F("div",ue,[S(k(e(i).title)+" ",1),l(M,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:g})])]),default:s(()=>[F("form",{action:"",onSubmit:N(I,["prevent"])},[F("div",fe,[l(U,{layout:"one-column"},{default:s(()=>[l(y,{label:o.$t("general.to"),error:e(t).formData.to.$error&&e(t).formData.to.$errors[0].$message,variant:"horizontal",required:""},{default:s(()=>[l(v,{ref:(h,Y)=>{Y.to=h},modelValue:e($).to,"onUpdate:modelValue":n[0]||(n[0]=h=>e($).to=h),type:"text",invalid:e(t).formData.to.$error,onInput:n[1]||(n[1]=h=>e(t).formData.to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),l(y,{label:o.$t("general.subject"),error:e(t).formData.subject.$error&&e(t).formData.subject.$errors[0].$message,variant:"horizontal",required:""},{default:s(()=>[l(v,{modelValue:e($).subject,"onUpdate:modelValue":n[2]||(n[2]=h=>e($).subject=h),type:"text",invalid:e(t).formData.subject.$error,onInput:n[3]||(n[3]=h=>e(t).formData.subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),l(y,{label:o.$t("general.message"),error:e(t).formData.message.$error&&e(t).formData.message.$errors[0].$message,variant:"horizontal",required:""},{default:s(()=>[l(_,{modelValue:e($).message,"onUpdate:modelValue":n[4]||(n[4]=h=>e($).message=h),rows:"4",cols:"50",invalid:e(t).formData.message.$error,onInput:n[5]||(n[5]=h=>e(t).formData.message.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),F("div",ce,[l(p,{variant:"primary-outline",type:"button",class:"mr-3",onClick:n[6]||(n[6]=h=>g())},{default:s(()=>[S(k(o.$t("general.cancel")),1)]),_:1}),l(p,{loading:e(D),variant:"primary",type:"submit"},{left:s(h=>[e(D)?E("",!0):(q(),V(M,{key:0,name:"PaperAirplaneIcon",class:z(h.class)},null,8,["class"]))]),default:s(()=>[S(" "+k(o.$t("general.send")),1)]),_:1},8,["loading"])])],40,ge)]),_:1},8,["show"])}}},$e={key:0,class:"mt-14"},ye={setup(a){let D=G(!1),$=G(!1);const i=x(),u=H(),{t:m}=j();w();function b(g){i.mail_driver=g,i.mailConfigData.mail_driver=g}async function w(){$.value=!0,Promise.all([await i.fetchMailDrivers(),await i.fetchMailConfig()]).then(([g])=>{$.value=!1})}const t=B(()=>i.mail_driver=="smtp"?K:i.mail_driver=="mailgun"?oe:i.mail_driver=="sendmail"?W:i.mail_driver=="ses"?se:i.mail_driver=="mail"?W:K);async function d(g){try{return D.value=!0,await i.updateMailConfig(g),D.value=!1,!0}catch(o){console.error(o)}}function I(){u.openModal({title:m("general.test_mail_conf"),componentName:"MailTestModal",size:"sm"})}return(g,o)=>{const n=c("BaseButton"),M=c("BaseSettingCard");return q(),O(ee,null,[l(ve),l(M,{title:g.$t("settings.mail.mail_config"),description:g.$t("settings.mail.mail_config_desc")},{default:s(()=>[e(i)&&e(i).mailConfigData?(q(),O("div",$e,[(q(),V(Z(e(t)),{"config-data":e(i).mailConfigData,"is-saving":e(D),"mail-drivers":e(i).mail_drivers,"is-fetching-initial-data":e($),onOnChangeDriver:o[0]||(o[0]=v=>b(v)),onSubmitData:d},{default:s(()=>[l(n,{variant:"primary-outline",type:"button",class:"ml-2","content-loading":e($),onClick:I},{default:s(()=>[S(k(g.$t("general.test_mail_conf")),1)]),_:1},8,["content-loading"])]),_:1},8,["config-data","is-saving","mail-drivers","is-fetching-initial-data"]))])):E("",!0)]),_:1},8,["title","description"])],64)}}};export{ye as default};
var O=Object.defineProperty;var E=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var x=(d,s,a)=>s in d?O(d,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[s]=a,z=(d,s)=>{for(var a in s||(s={}))R.call(s,a)&&x(d,a,s[a]);if(E)for(var a of E(s))X.call(s,a)&&x(d,a,s[a]);return d};import{a as g,d as H,G as K,J as Q,B as k,a0 as W,k as S,L as w,M as b,N as Y,T as Z,C as ee,D as te,r as f,o as ae,l as oe,w as p,h as I,i as C,t as M,u as o,f as c,m as ne,U as se}from"./vendor.01d0adc5.js";import{h as $,c as re,u as ie,i as ue,k as le}from"./main.75722495.js";import{u as ce}from"./payment.5c57bec3.js";const de=(d=!1)=>(d?window.pinia.defineStore:H)({id:"notes",state:()=>({notes:[],currentNote:{id:null,type:"",name:"",notes:""}}),getters:{isEdit:a=>!!a.currentNote.id},actions:{resetCurrentNote(){this.currentNote={type:"",name:"",notes:""}},fetchNotes(a){return new Promise((e,l)=>{g.get("/api/v1/notes",{params:a}).then(t=>{this.notes=t.data.data,e(t)}).catch(t=>{$(t),l(t)})})},fetchNote(a){return new Promise((e,l)=>{g.get(`/api/v1/notes/${a}`).then(t=>{this.currentNote=t.data.data,e(t)}).catch(t=>{$(t),l(t)})})},addNote(a){return new Promise((e,l)=>{g.post("/api/v1/notes",a).then(t=>{this.notes.push(t.data),e(t)}).catch(t=>{$(t),l(t)})})},updateNote(a){return new Promise((e,l)=>{g.put(`/api/v1/notes/${a.id}`,a).then(t=>{if(t.data){let y=this.notes.findIndex(u=>u.id===t.data.data.id);this.notes[y]=a.notes}e(t)}).catch(t=>{$(t),l(t)})})},deleteNote(a){return new Promise((e,l)=>{g.delete(`/api/v1/notes/${a}`).then(t=>{let y=this.notes.findIndex(u=>u.id===a);this.notes.splice(y,1),e(t)}).catch(t=>{$(t),l(t)})})}}})();const me={class:"flex justify-between w-full"},pe=["onSubmit"],fe={class:"px-8 py-8 sm:p-6"},ve={class:"z-0 flex justify-end px-4 py-4 border-t border-solid border-gray-light"},ge={setup(d){const s=re(),a=ie(),e=de(),l=ue(),t=ce(),y=le(),u=K(),{t:N}=Q();let v=k(!1);const D=W(["Invoice","Estimate","Payment"]);let h=k(["customer","customerCustom"]);const j=S(()=>s.active&&s.componentName==="NoteModal"),G=S(()=>({currentNote:{name:{required:w.withMessage(N("validation.required"),b),minLength:w.withMessage(N("validation.name_min_length",{count:3}),Y(3))},notes:{required:w.withMessage(N("validation.required"),b)},type:{required:w.withMessage(N("validation.required"),b)}}})),r=Z(G,S(()=>e));ee(()=>e.currentNote.type,n=>{V()}),te(()=>{u.name==="estimates.create"?e.currentNote.type="Estimate":u.name==="invoices.create"?e.currentNote.type="Invoice":e.currentNote.type="Payment"});function V(){h.value=["customer","customerCustom"],e.currentNote.type=="Invoice"&&h.value.push("invoice","invoiceCustom"),e.currentNote.type=="Estimate"&&h.value.push("estimate","estimateCustom"),e.currentNote.type=="Payment"&&h.value.push("payment","paymentCustom")}async function U(){if(r.value.currentNote.$touch(),r.value.currentNote.$invalid)return!0;if(v.value=!0,e.isEdit){let n=z({id:e.currentNote.id},e.currentNote);await e.updateNote(n).then(i=>{v.value=!1,i.data&&(a.showNotification({type:"success",message:N("settings.customization.notes.note_updated")}),s.refreshData&&s.refreshData(),_())}).catch(i=>{v.value=!1})}else await e.addNote(e.currentNote).then(n=>{v.value=!1,n.data&&(a.showNotification({type:"success",message:N("settings.customization.notes.note_added")}),(u.name==="invoices.create"&&n.data.data.type==="Invoice"||u.name==="invoices.edit"&&n.data.data.type==="Invoice")&&l.selectNote(n.data.data),(u.name==="estimates.create"&&n.data.data.type==="Estimate"||u.name==="estimates.edit"&&n.data.data.type==="Estimate")&&y.selectNote(n.data.data),(u.name==="payments.create"&&n.data.data.type==="Payment"||u.name==="payments.edit"&&n.data.data.type==="Payment")&&t.selectNote(n.data.data)),s.refreshData&&s.refreshData(),_()}).catch(n=>{v.value=!1})}function _(){s.closeModal(),setTimeout(()=>{e.resetCurrentNote(),r.value.$reset()},300)}return(n,i)=>{const P=f("BaseIcon"),F=f("BaseInput"),B=f("BaseInputGroup"),L=f("BaseMultiselect"),T=f("BaseCustomInput"),A=f("BaseInputGrid"),q=f("BaseButton"),J=f("BaseModal");return ae(),oe(J,{show:o(j),onClose:_,onOpen:V},{header:p(()=>[I("div",me,[C(M(o(s).title)+" ",1),c(P,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:_})])]),default:p(()=>[I("form",{action:"",onSubmit:se(U,["prevent"])},[I("div",fe,[c(A,{layout:"one-column"},{default:p(()=>[c(B,{label:n.$t("settings.customization.notes.name"),variant:"vertical",error:o(r).currentNote.name.$error&&o(r).currentNote.name.$errors[0].$message,required:""},{default:p(()=>[c(F,{modelValue:o(e).currentNote.name,"onUpdate:modelValue":i[0]||(i[0]=m=>o(e).currentNote.name=m),invalid:o(r).currentNote.name.$error,type:"text",onInput:i[1]||(i[1]=m=>o(r).currentNote.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),c(B,{label:n.$t("settings.customization.notes.type"),error:o(r).currentNote.type.$error&&o(r).currentNote.type.$errors[0].$message,required:""},{default:p(()=>[c(L,{modelValue:o(e).currentNote.type,"onUpdate:modelValue":i[2]||(i[2]=m=>o(e).currentNote.type=m),options:o(D),"value-prop":"type",class:"mt-2"},null,8,["modelValue","options"])]),_:1},8,["label","error"]),c(B,{label:n.$t("settings.customization.notes.notes"),error:o(r).currentNote.notes.$error&&o(r).currentNote.notes.$errors[0].$message,required:""},{default:p(()=>[c(T,{modelValue:o(e).currentNote.notes,"onUpdate:modelValue":i[3]||(i[3]=m=>o(e).currentNote.notes=m),invalid:o(r).currentNote.notes.$error,fields:o(h),onInput:i[4]||(i[4]=m=>o(r).currentNote.notes.$touch())},null,8,["modelValue","invalid","fields"])]),_:1},8,["label","error"])]),_:1})]),I("div",ve,[c(q,{class:"mr-2",variant:"primary-outline",type:"button",onClick:_},{default:p(()=>[C(M(n.$t("general.cancel")),1)]),_:1}),c(q,{loading:o(v),disabled:o(v),variant:"primary",type:"submit"},{left:p(m=>[c(P,{name:"SaveIcon",class:ne(m.class)},null,8,["class"])]),default:p(()=>[C(" "+M(o(e).isEdit?n.$t("general.update"):n.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,pe)]),_:1},8,["show"])}}};export{ge as _,de as u};
import{J as k,G as $,ah as T,r,o as p,l as f,w as t,u as c,f as u,i as S,t as z,j as C,B as E,k as O,e as F,m as G,F as P,a0 as V}from"./vendor.01d0adc5.js";import{j as x,u as I,e as M,c as j,g as D}from"./main.75722495.js";import{u as A,_ as H}from"./NoteModal.f6d01f84.js";import"./payment.5c57bec3.js";const L={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(g){const d=g,h=x(),_=I(),{t:a}=k(),o=A(),N=$(),y=M(),b=j();T("utils");function w(n){o.fetchNote(n),b.openModal({title:a("settings.customization.notes.edit_note"),componentName:"NoteModal",size:"md",refreshData:d.loadData})}function s(n){h.openDialog({title:a("general.are_you_sure"),message:a("settings.customization.notes.note_confirm_delete"),yesLabel:a("general.yes"),noLabel:a("general.no"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async()=>{(await o.deleteNote(n)).data.success?_.showNotification({type:"success",message:a("settings.customization.notes.deleted_message")}):_.showNotification({type:"error",message:a("settings.customization.notes.already_in_use")}),d.loadData&&d.loadData()})}return(n,e)=>{const i=r("BaseIcon"),m=r("BaseButton"),B=r("BaseDropdownItem"),l=r("BaseDropdown");return p(),f(l,null,{activator:t(()=>[c(N).name==="notes.view"?(p(),f(m,{key:0,variant:"primary"},{default:t(()=>[u(i,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),f(i,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[c(y).hasAbilities(c(D).MANAGE_NOTE)?(p(),f(B,{key:0,onClick:e[0]||(e[0]=v=>w(g.row.id))},{default:t(()=>[u(i,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),S(" "+z(n.$t("general.edit")),1)]),_:1})):C("",!0),c(y).hasAbilities(c(D).MANAGE_NOTE)?(p(),f(B,{key:1,onClick:e[1]||(e[1]=v=>s(g.row.id))},{default:t(()=>[u(i,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),S(" "+z(n.$t("general.delete")),1)]),_:1})):C("",!0)]),_:1})}}},K={setup(g){const{t:d}=k(),h=j();x();const _=A();I();const a=M(),o=E(""),N=O(()=>[{key:"name",label:d("settings.customization.notes.name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"type",label:d("settings.customization.notes.type"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function y({page:s,filter:n,sort:e}){let i=V({orderByField:e.fieldName||"created_at",orderBy:e.order||"desc",page:s}),m=await _.fetchNotes(i);return{data:m.data.data,pagination:{totalPages:m.data.meta.last_page,currentPage:s,totalCount:m.data.meta.total,limit:5}}}async function b(){await h.openModal({title:d("settings.customization.notes.add_note"),componentName:"NoteModal",size:"md",refreshData:o.value&&o.value.refresh})}async function w(){o.value&&o.value.refresh()}return(s,n)=>{const e=r("BaseIcon"),i=r("BaseButton"),m=r("BaseTable"),B=r("BaseSettingCard");return p(),F(P,null,[u(H),u(B,{title:s.$t("settings.customization.notes.title"),description:s.$t("settings.customization.notes.description")},{action:t(()=>[c(a).hasAbilities(c(D).MANAGE_NOTE)?(p(),f(i,{key:0,variant:"primary-outline",onClick:b},{left:t(l=>[u(e,{class:G(l.class),name:"PlusIcon"},null,8,["class"])]),default:t(()=>[S(" "+z(s.$t("settings.customization.notes.add_note")),1)]),_:1})):C("",!0)]),default:t(()=>[u(m,{ref:(l,v)=>{v.table=l,o.value=l},data:y,columns:c(N),class:"mt-14"},{"cell-actions":t(({row:l})=>[u(L,{row:l.data,table:o.value,"load-data":w},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{K as default};
import{B as w,k as d,D as g,o as a,e as c,h as t,u as e,j as m,m as u,t as p,U as y,r as k,f as N,w as C,F as M,y as z,l as B,aM as L}from"./vendor.01d0adc5.js";import{u as v,_ as S}from"./main.75722495.js";const $=["onClick"],b={class:"overflow-hidden rounded-lg shadow-xs"},j={class:"p-4"},T={class:"flex items-start"},O={class:"shrink-0"},V={key:0,class:"w-6 h-6 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},I=t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),D=[I],E={key:1,class:"w-6 h-6 text-blue-400",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},F=t("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"},null,-1),A=[F],G={key:2,class:"w-6 h-6 text-red-400",fill:"currentColor",viewBox:"0 0 24 24"},R=t("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1),U=[R],q={class:"flex-1 w-0 ml-3 text-left"},H={class:"flex shrink-0"},J=t("svg",{class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[t("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),K=[J],P={props:{notification:{type:Object,default:null}},setup(o){const i=o,f=v();let l=w("");const s=d(()=>i.notification.type=="success"),h=d(()=>i.notification.type=="error"),n=d(()=>i.notification.type=="info");function r(){f.hideNotification(i.notification)}function x(){clearTimeout(l)}function _(){l=setTimeout(()=>{f.hideNotification(i.notification)},i.notification.time||5e3)}return g(()=>{_()}),(Y,Z)=>(a(),c("div",{class:u([e(s)||e(n)?"bg-white":"bg-red-50","max-w-sm mb-3 rounded-lg shadow-lg cursor-pointer pointer-events-auto w-full md:w-96"]),onClick:y(r,["stop"]),onMouseenter:x,onMouseleave:_},[t("div",b,[t("div",j,[t("div",T,[t("div",O,[e(s)?(a(),c("svg",V,D)):m("",!0),e(n)?(a(),c("svg",E,A)):m("",!0),e(h)?(a(),c("svg",G,U)):m("",!0)]),t("div",q,[t("p",{class:u(`text-sm leading-5 font-medium ${e(s)||e(n)?"text-gray-900":"text-red-800"}`)},p(o.notification.title?o.notification.title:e(s)?"Success!":"Error"),3),t("p",{class:u(`mt-1 text-sm leading-5 ${e(s)||e(n)?"text-gray-500":"text-red-700"}`)},p(o.notification.message?o.notification.message:e(s)?"Successful":"Somthing went wrong"),3)]),t("div",H,[t("button",{class:u([e(s)||e(n)?" text-gray-400 focus:text-gray-500":"text-red-400 focus:text-red-500","inline-flex w-5 h-5 transition duration-150 ease-in-out focus:outline-none"]),onClick:r},K,2)])])])])],42,$))}},Q={components:{NotificationItem:P},setup(){const o=v();return{notifications:d(()=>o.notifications)}}},W={class:"fixed inset-0 z-50 flex flex-col items-end justify-start w-full px-4 py-6 pointer-events-none sm:p-6"};function X(o,i,f,l,s,h){const n=k("NotificationItem");return a(),c("div",W,[N(L,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:C(()=>[(a(!0),c(M,null,z(l.notifications,r=>(a(),B(n,{key:r.id,notification:r},null,8,["notification"]))),128))]),_:1})])}var ot=S(Q,[["render",X]]);export{ot as N};
import{B as M,J as k,a0 as q,k as m,L as y,M as E,Q as F,T as U,r as o,o as w,l as S,w as u,h as v,f as d,u as i,m as Y,j,i as D,t as G,U as O,x as B}from"./vendor.01d0adc5.js";import{b as T}from"./main.75722495.js";const z=["onSubmit"],J={class:"grid-cols-2 col-span-1 mt-14"},L={class:"divide-y divide-gray-200"},H={setup(Q){const s=T();let r=M(!1);const{t:f}=k(),n=q({notify_invoice_viewed:s.selectedCompanySettings.notify_invoice_viewed,notify_estimate_viewed:s.selectedCompanySettings.notify_estimate_viewed,notification_email:s.selectedCompanySettings.notification_email}),$=m(()=>({notification_email:{required:y.withMessage(f("validation.required"),E),email:y.withMessage(f("validation.email_incorrect"),F)}})),l=U($,m(()=>n)),_=m({get:()=>n.notify_invoice_viewed==="YES",set:async e=>{const t=e?"YES":"NO";let c={settings:{notify_invoice_viewed:t}};n.notify_invoice_viewed=t,await s.updateCompanySettings({data:c,message:"general.setting_updated"})}}),p=m({get:()=>n.notify_estimate_viewed==="YES",set:async e=>{const t=e?"YES":"NO";let c={settings:{notify_estimate_viewed:t}};n.notify_estimate_viewed=t,await s.updateCompanySettings({data:c,message:"general.setting_updated"})}});async function V(){if(l.value.$touch(),l.value.$invalid)return!0;r.value=!0;const e={settings:{notification_email:n.notification_email}};await s.updateCompanySettings({data:e,message:"settings.notification.email_save_message"}),r.value=!1}return(e,t)=>{const c=o("BaseInput"),C=o("BaseInputGroup"),b=o("BaseIcon"),I=o("BaseButton"),N=o("BaseDivider"),g=o("BaseSwitchSection"),h=o("BaseSettingCard");return w(),S(h,{title:e.$t("settings.notification.title"),description:e.$t("settings.notification.description")},{default:u(()=>[v("form",{action:"",onSubmit:O(V,["prevent"])},[v("div",J,[d(C,{error:i(l).notification_email.$error&&i(l).notification_email.$errors[0].$message,label:e.$t("settings.notification.email"),class:"my-2",required:""},{default:u(()=>[d(c,{modelValue:i(n).notification_email,"onUpdate:modelValue":t[0]||(t[0]=a=>i(n).notification_email=a),modelModifiers:{trim:!0},invalid:i(l).notification_email.$error,type:"email",onInput:t[1]||(t[1]=a=>i(l).notification_email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),d(I,{disabled:i(r),loading:i(r),variant:"primary",type:"submit",class:"mt-6"},{left:u(a=>[i(r)?j("",!0):(w(),S(b,{key:0,class:Y(a.class),name:"SaveIcon"},null,8,["class"]))]),default:u(()=>[D(" "+G(e.$tc("settings.notification.save")),1)]),_:1},8,["disabled","loading"])])],40,z),d(N,{class:"mt-6 mb-2"}),v("ul",L,[d(g,{modelValue:i(_),"onUpdate:modelValue":t[2]||(t[2]=a=>B(_)?_.value=a:null),title:e.$t("settings.notification.invoice_viewed"),description:e.$t("settings.notification.invoice_viewed_desc")},null,8,["modelValue","title","description"]),d(g,{modelValue:i(p),"onUpdate:modelValue":t[3]||(t[3]=a=>B(p)?p.value=a:null),title:e.$t("settings.notification.estimate_viewed"),description:e.$t("settings.notification.estimate_viewed_desc")},null,8,["modelValue","title","description"])])]),_:1},8,["title","description"])}}};export{H as default};
import{J as I,B as S,k as p,L as P,M as V,N as C,T as j,r as u,o as k,l as N,w as r,h as c,i as y,t as v,u as t,f as s,m as q,U as x}from"./vendor.01d0adc5.js";import{u as D}from"./payment.5c57bec3.js";import{c as L}from"./main.75722495.js";const T={class:"flex justify-between w-full"},z=["onSubmit"],G={class:"p-4 sm:p-6"},U={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},F={setup(A){const o=L(),e=D(),{t:M}=I(),l=S(!1),h=p(()=>({currentPaymentMode:{name:{required:P.withMessage(M("validation.required"),V),minLength:P.withMessage(M("validation.name_min_length",{count:3}),C(3))}}})),a=j(h,p(()=>e)),g=p(()=>o.active&&o.componentName==="PaymentModeModal");async function B(){if(a.value.currentPaymentMode.$touch(),a.value.currentPaymentMode.$invalid)return!0;try{const n=e.currentPaymentMode.id?e.updatePaymentMode:e.addPaymentMode;l.value=!0,await n(e.currentPaymentMode),l.value=!1,o.refreshData&&o.refreshData(),d()}catch{return l.value=!1,!0}}function d(){o.closeModal(),setTimeout(()=>{a.value.$reset(),e.currentPaymentMode={id:"",name:null}})}return(n,m)=>{const f=u("BaseIcon"),b=u("BaseInput"),$=u("BaseInputGroup"),_=u("BaseButton"),w=u("BaseModal");return k(),N(w,{show:t(g),onClose:d},{header:r(()=>[c("div",T,[y(v(t(o).title)+" ",1),s(f,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:d})])]),default:r(()=>[c("form",{action:"",onSubmit:x(B,["prevent"])},[c("div",G,[s($,{label:n.$t("settings.payment_modes.mode_name"),error:t(a).currentPaymentMode.name.$error&&t(a).currentPaymentMode.name.$errors[0].$message,required:""},{default:r(()=>[s(b,{modelValue:t(e).currentPaymentMode.name,"onUpdate:modelValue":m[0]||(m[0]=i=>t(e).currentPaymentMode.name=i),invalid:t(a).currentPaymentMode.name.$error,onInput:m[1]||(m[1]=i=>t(a).currentPaymentMode.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),c("div",U,[s(_,{variant:"primary-outline",class:"mr-3",type:"button",onClick:d},{default:r(()=>[y(v(n.$t("general.cancel")),1)]),_:1}),s(_,{loading:l.value,disabled:l.value,variant:"primary",type:"submit"},{left:r(i=>[s(f,{name:"SaveIcon",class:q(i.class)},null,8,["class"])]),default:r(()=>[y(" "+v(t(e).currentPaymentMode.id?n.$t("general.update"):n.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,z)]),_:1},8,["show"])}}};export{F as _};
import{J as D,G as I,ah as x,r as d,o as p,l as b,w as a,u as M,f as t,i as v,t as w,B as $,k as j,e as N,m as z,F as T}from"./vendor.01d0adc5.js";import{u as P}from"./payment.5c57bec3.js";import{j as C,u as F,e as H,c as S}from"./main.75722495.js";import{_ as L}from"./PaymentModeModal.9b5fc610.js";const O={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(u){const c=u,y=C();F();const{t:s}=D(),o=P(),f=I();H();const _=S();x("utils");function g(e){o.fetchPaymentMode(e),_.openModal({title:s("settings.payment_modes.edit_payment_mode"),componentName:"PaymentModeModal",refreshData:c.loadData&&c.loadData,size:"sm"})}function B(e){y.openDialog({title:s("general.are_you_sure"),message:s("settings.payment_modes.payment_mode_confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async l=>{l&&(await o.deletePaymentMode(e),c.loadData&&c.loadData())})}return(e,l)=>{const n=d("BaseIcon"),i=d("BaseButton"),r=d("BaseDropdownItem"),h=d("BaseDropdown");return p(),b(h,null,{activator:a(()=>[M(f).name==="paymentModes.view"?(p(),b(i,{key:0,variant:"primary"},{default:a(()=>[t(n,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),b(n,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:a(()=>[t(r,{onClick:l[0]||(l[0]=m=>g(u.row.id))},{default:a(()=>[t(n,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),v(" "+w(e.$t("general.edit")),1)]),_:1}),t(r,{onClick:l[1]||(l[1]=m=>B(u.row.id))},{default:a(()=>[t(n,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),v(" "+w(e.$t("general.delete")),1)]),_:1})]),_:1})}}},R={setup(u){const c=S();C();const y=P(),{t:s}=D(),o=$(null),f=j(()=>[{key:"name",label:s("settings.payment_modes.mode_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function _(){o.value&&o.value.refresh()}async function g({page:e,filter:l,sort:n}){let i={orderByField:n.fieldName||"created_at",orderBy:n.order||"desc",page:e},r=await y.fetchPaymentModes(i);return{data:r.data.data,pagination:{totalPages:r.data.meta.last_page,currentPage:e,totalCount:r.data.meta.total,limit:5}}}function B(){c.openModal({title:s("settings.payment_modes.add_payment_mode"),componentName:"PaymentModeModal",refreshData:o.value&&o.value.refresh,size:"sm"})}return(e,l)=>{const n=d("BaseIcon"),i=d("BaseButton"),r=d("BaseTable"),h=d("BaseSettingCard");return p(),N(T,null,[t(L),t(h,{title:e.$t("settings.payment_modes.title"),description:e.$t("settings.payment_modes.description")},{action:a(()=>[t(i,{type:"submit",variant:"primary-outline",onClick:B},{left:a(m=>[t(n,{class:z(m.class),name:"PlusIcon"},null,8,["class"])]),default:a(()=>[v(" "+w(e.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),default:a(()=>[t(r,{ref:(m,k)=>{k.table=m,o.value=m},data:g,columns:M(f),class:"mt-16"},{"cell-actions":a(({row:m})=>[t(O,{row:m.data,table:o.value,"load-data":_},null,8,["row","table"])]),_:1},8,["columns"])]),_:1},8,["title","description"])],64)}}};export{R as default};
var J=Object.defineProperty;var C=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var M=(p,d,l)=>d in p?J(p,d,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[d]=l,S=(p,d)=>{for(var l in d||(d={}))L.call(d,l)&&M(p,l,d[l]);if(C)for(var l of C(d))R.call(d,l)&&M(p,l,d[l]);return p};import{J as A,B,a0 as H,k as y,C as K,L as f,M as b,T as Q,r as m,o as D,e as W,f as s,w as u,u as e,m as U,i as z,t as F,h as N,U as x,x as E,l as X,j as ee}from"./vendor.01d0adc5.js";import{b as te,d as ae}from"./main.75722495.js";const ne=["onSubmit"],le=["onSubmit"],de={setup(p){const d=te(),l=ae(),{t:g,tm:se}=A();let v=B(!1),$=B(!1),i=B(!1);const a=H(S({},d.selectedCompanySettings));y(()=>l.config.retrospective_edits.map(t=>(t.title=g(t.key),t))),K(()=>a.carbon_date_format,t=>{if(t){const n=l.dateFormats.find(c=>c.carbon_format_value===t);a.moment_date_format=n.moment_format_value}});const k=y({get:()=>a.discount_per_item==="YES",set:async t=>{const n=t?"YES":"NO";let c={settings:{discount_per_item:n}};a.discount_per_item=n,await d.updateCompanySettings({data:c,message:"general.setting_updated"})}}),V=y({get:()=>a.automatically_expire_public_links==="YES",set:async t=>{const n=t?"YES":"NO";a.automatically_expire_public_links=n}}),G=y(()=>({currency:{required:f.withMessage(g("validation.required"),b)},language:{required:f.withMessage(g("validation.required"),b)},carbon_date_format:{required:f.withMessage(g("validation.required"),b)},moment_date_format:{required:f.withMessage(g("validation.required"),b)},time_zone:{required:f.withMessage(g("validation.required"),b)},fiscal_year:{required:f.withMessage(g("validation.required"),b)}})),r=Q(G,y(()=>a));j();async function j(){i.value=!0,Promise.all([l.fetchCurrencies(),l.fetchDateFormats(),l.fetchTimeZones()]).then(([t])=>{i.value=!1})}async function O(){if(r.value.$touch(),r.value.$invalid)return;let t={settings:S({},a)};v.value=!0,delete t.settings.link_expiry_days,await d.updateCompanySettings({data:t,message:"settings.preferences.updated_message"}),v.value=!1}async function P(){$.value=!0,await d.updateCompanySettings({data:{settings:{link_expiry_days:a.link_expiry_days,automatically_expire_public_links:a.automatically_expire_public_links}},message:"settings.preferences.updated_message"}),$.value=!1}return(t,n)=>{const c=m("BaseMultiselect"),_=m("BaseInputGroup"),Y=m("BaseInputGrid"),w=m("BaseIcon"),q=m("BaseButton"),I=m("BaseDivider"),h=m("BaseSwitchSection"),T=m("BaseInput"),Z=m("BaseSettingCard");return D(),W("form",{action:"",class:"relative",onSubmit:x(O,["prevent"])},[s(Z,{title:t.$t("settings.menu_title.preferences"),description:t.$t("settings.preferences.general_settings")},{default:u(()=>[s(Y,{class:"mt-5"},{default:u(()=>[s(_,{"content-loading":e(i),label:t.$tc("settings.preferences.currency"),"help-text":t.$t("settings.preferences.company_currency_unchangeable"),error:e(r).currency.$error&&e(r).currency.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).currency,"onUpdate:modelValue":n[0]||(n[0]=o=>e(a).currency=o),"content-loading":e(i),options:e(l).currencies,label:"name","value-prop":"id",searchable:!0,"track-by":"name",invalid:e(r).currency.$error,disabled:"",class:"w-full"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["content-loading","label","help-text","error"]),s(_,{label:t.$tc("settings.preferences.default_language"),"content-loading":e(i),error:e(r).language.$error&&e(r).language.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).language,"onUpdate:modelValue":n[1]||(n[1]=o=>e(a).language=o),"content-loading":e(i),options:e(l).config.languages,label:"name","value-prop":"code",class:"w-full","track-by":"code",searchable:!0,invalid:e(r).language.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),s(_,{label:t.$tc("settings.preferences.time_zone"),"content-loading":e(i),error:e(r).time_zone.$error&&e(r).time_zone.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).time_zone,"onUpdate:modelValue":n[2]||(n[2]=o=>e(a).time_zone=o),"content-loading":e(i),options:e(l).timeZones,label:"key","value-prop":"value","track-by":"key",searchable:!0,invalid:e(r).time_zone.$error},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),s(_,{label:t.$tc("settings.preferences.date_format"),"content-loading":e(i),error:e(r).carbon_date_format.$error&&e(r).carbon_date_format.$errors[0].$message,required:""},{default:u(()=>[s(c,{modelValue:e(a).carbon_date_format,"onUpdate:modelValue":n[3]||(n[3]=o=>e(a).carbon_date_format=o),"content-loading":e(i),options:e(l).dateFormats,label:"display_date","value-prop":"carbon_format_value","track-by":"carbon_format_value",searchable:"",invalid:e(r).carbon_date_format.$error,class:"w-full"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),s(_,{"content-loading":e(i),error:e(r).fiscal_year.$error&&e(r).fiscal_year.$errors[0].$message,label:t.$tc("settings.preferences.fiscal_year"),required:""},{default:u(()=>[s(c,{modelValue:e(a).fiscal_year,"onUpdate:modelValue":n[4]||(n[4]=o=>e(a).fiscal_year=o),"content-loading":e(i),options:e(l).config.fiscal_years,label:"key","value-prop":"value",invalid:e(r).fiscal_year.$error,"track-by":"key",searchable:!0,class:"w-full"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["content-loading","error","label"])]),_:1}),s(q,{"content-loading":e(i),disabled:e(v),loading:e(v),type:"submit",class:"mt-6"},{left:u(o=>[s(w,{name:"SaveIcon",class:U(o.class)},null,8,["class"])]),default:u(()=>[z(" "+F(t.$tc("settings.company_info.save")),1)]),_:1},8,["content-loading","disabled","loading"]),s(I,{class:"mt-6 mb-2"}),N("ul",null,[N("form",{onSubmit:x(P,["prevent"])},[s(h,{modelValue:e(V),"onUpdate:modelValue":n[5]||(n[5]=o=>E(V)?V.value=o:null),title:t.$t("settings.preferences.expire_public_links"),description:t.$t("settings.preferences.expire_setting_description")},null,8,["modelValue","title","description"]),e(V)?(D(),X(_,{key:0,"content-loading":e(i),label:t.$t("settings.preferences.expire_public_links"),class:"mt-2 mb-4"},{default:u(()=>[s(T,{modelValue:e(a).link_expiry_days,"onUpdate:modelValue":n[6]||(n[6]=o=>e(a).link_expiry_days=o),disabled:e(a).automatically_expire_public_links==="NO","content-loading":e(i),type:"number"},null,8,["modelValue","disabled","content-loading"])]),_:1},8,["content-loading","label"])):ee("",!0),s(q,{"content-loading":e(i),disabled:e($),loading:e($),type:"submit",class:"mt-6"},{left:u(o=>[s(w,{name:"SaveIcon",class:U(o.class)},null,8,["class"])]),default:u(()=>[z(" "+F(t.$tc("general.save")),1)]),_:1},8,["content-loading","disabled","loading"])],40,le),s(I,{class:"mt-6 mb-2"}),s(h,{modelValue:e(k),"onUpdate:modelValue":n[7]||(n[7]=o=>E(k)?k.value=o:null),title:t.$t("settings.preferences.discount_per_item"),description:t.$t("settings.preferences.discount_setting_description")},null,8,["modelValue","title","description"])])]),_:1},8,["title","description"])],40,ne)}}};export{de as default};
var Z=Object.defineProperty,ee=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var j=(e,i,u)=>i in e?Z(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,D=(e,i)=>{for(var u in i||(i={}))ie.call(i,u)&&j(e,u,i[u]);if(N)for(var u of N(i))te.call(i,u)&&j(e,u,i[u]);return e},E=(e,i)=>ee(e,ne(i));import{G as P,B as k,a0 as re,k as q,C as O,D as ae,r as g,o as b,e as A,h as v,f as r,u as n,t as L,w as c,l as _,j as B,F as G,$ as oe,J as le,aN as se,L as I,M as p,O as U,aP as ce,T as ue,m as de,i as ge,U as ve}from"./vendor.01d0adc5.js";import{_ as me,a as fe,b as ye,c as be,d as Ie,e as $e,f as we}from"./SalesTax.0ff2d954.js";import{t as H,d as _e,b as Re,m as qe,r as pe}from"./main.75722495.js";import{_ as Be}from"./ExchangeRateConverter.7d8c4309.js";import{_ as he}from"./CreateCustomFields.a3a572c4.js";import{_ as Se}from"./TaxTypeModal.bf6662b3.js";import"./DragIcon.213b1d78.js";import"./SelectNotePopup.781ad74a.js";import"./NoteModal.f6d01f84.js";import"./payment.5c57bec3.js";import"./exchange-rate.dffa79b6.js";const Ve={class:"col-span-5 pr-0"},Ce={class:"flex mt-7"},Fe={class:"relative w-20 mt-8"},Le={class:"ml-2"},Te={class:"p-0 mb-1 leading-snug text-left text-black"},Me={class:"p-0 m-0 text-xs leading-tight text-left text-gray-500",style:{"max-width":"480px"}},ke={class:"grid grid-cols-1 col-span-7 gap-4 mt-8 lg:gap-6 lg:mt-0 lg:grid-cols-2"},Ue={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(e){const i=e,u=P(),t=H(),V=_e(),$=k(!1),d=re([{label:"None",value:"NONE"},{label:"Date",value:"DATE"},{label:"Count",value:"COUNT"}]),m=q(()=>t.newRecurringInvoice.selectedFrequency&&t.newRecurringInvoice.selectedFrequency.value==="CUSTOM"),T=q(()=>i.isEdit?V.config.recurring_invoice_status.update_status:V.config.recurring_invoice_status.create_status);O(()=>t.newRecurringInvoice.selectedFrequency,l=>{t.isFetchingInitialSettings||(l&&l.value!=="CUSTOM"?t.newRecurringInvoice.frequency=l.value:t.newRecurringInvoice.frequency=null)}),ae(()=>{u.params.id||f()});function R(l){return t.newRecurringInvoice.limit_by===l}const C=oe(()=>{f()},500);async function f(){const l=t.newRecurringInvoice.frequency;if(!l)return;$.value=!0;let a={starts_at:t.newRecurringInvoice.starts_at,frequency:l};try{await t.fetchRecurringInvoiceFrequencyDate(a)}catch(h){console.error(h),$.value=!1}$.value=!1}return(l,a)=>{const h=g("BaseCustomerSelectPopup"),M=g("BaseSwitch"),w=g("BaseDatePicker"),y=g("BaseInputGroup"),S=g("BaseMultiselect"),s=g("BaseInput");return b(),A(G,null,[v("div",Ve,[r(h,{modelValue:n(t).newRecurringInvoice.customer,"onUpdate:modelValue":a[0]||(a[0]=o=>n(t).newRecurringInvoice.customer=o),valid:e.v.customer_id,"content-loading":e.isLoading,type:"recurring-invoice"},null,8,["modelValue","valid","content-loading"]),v("div",Ce,[v("div",Fe,[r(M,{modelValue:n(t).newRecurringInvoice.send_automatically,"onUpdate:modelValue":a[1]||(a[1]=o=>n(t).newRecurringInvoice.send_automatically=o),class:"absolute -top-4"},null,8,["modelValue"])]),v("div",Le,[v("p",Te,L(l.$t("recurring_invoices.send_automatically")),1),v("p",Me,L(l.$t("recurring_invoices.send_automatically_desc")),1)])])]),v("div",ke,[r(y,{label:l.$t("recurring_invoices.starts_at"),"content-loading":e.isLoading,required:"",error:e.v.starts_at.$error&&e.v.starts_at.$errors[0].$message},{default:c(()=>[r(w,{modelValue:n(t).newRecurringInvoice.starts_at,"onUpdate:modelValue":a[2]||(a[2]=o=>n(t).newRecurringInvoice.starts_at=o),"content-loading":e.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar",invalid:e.v.starts_at.$error,onChange:a[3]||(a[3]=o=>f())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),r(y,{label:l.$t("recurring_invoices.next_invoice_date"),"content-loading":e.isLoading,required:""},{default:c(()=>[r(w,{modelValue:n(t).newRecurringInvoice.next_invoice_at,"onUpdate:modelValue":a[4]||(a[4]=o=>n(t).newRecurringInvoice.next_invoice_at=o),"content-loading":e.isLoading,"calendar-button":!0,disabled:!0,loading:$.value,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading","loading"])]),_:1},8,["label","content-loading"]),r(y,{label:l.$t("recurring_invoices.limit_by"),"content-loading":e.isLoading,class:"lg:mt-0",required:"",error:e.v.limit_by.$error&&e.v.limit_by.$errors[0].$message},{default:c(()=>[r(S,{modelValue:n(t).newRecurringInvoice.limit_by,"onUpdate:modelValue":a[5]||(a[5]=o=>n(t).newRecurringInvoice.limit_by=o),"content-loading":e.isLoading,options:n(d),label:"label",invalid:e.v.limit_by.$error,"value-prop":"value"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),R("DATE")?(b(),_(y,{key:0,label:l.$t("recurring_invoices.limit_date"),"content-loading":e.isLoading,required:R("DATE"),error:e.v.limit_date.$error&&e.v.limit_date.$errors[0].$message},{default:c(()=>[r(w,{modelValue:n(t).newRecurringInvoice.limit_date,"onUpdate:modelValue":a[6]||(a[6]=o=>n(t).newRecurringInvoice.limit_date=o),"content-loading":e.isLoading,invalid:e.v.limit_date.$error,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","required","error"])):B("",!0),R("COUNT")?(b(),_(y,{key:1,label:l.$t("recurring_invoices.count"),"content-loading":e.isLoading,required:R("COUNT"),error:e.v.limit_count.$error&&e.v.limit_count.$errors[0].$message},{default:c(()=>[r(s,{modelValue:n(t).newRecurringInvoice.limit_count,"onUpdate:modelValue":a[7]||(a[7]=o=>n(t).newRecurringInvoice.limit_count=o),"content-loading":e.isLoading,invalid:e.v.limit_count.$error,type:"number"},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","required","error"])):B("",!0),r(y,{label:l.$t("recurring_invoices.status"),required:"","content-loading":e.isLoading,error:e.v.status.$error&&e.v.status.$errors[0].$message},{default:c(()=>[r(S,{modelValue:n(t).newRecurringInvoice.status,"onUpdate:modelValue":a[8]||(a[8]=o=>n(t).newRecurringInvoice.status=o),options:n(T),"content-loading":e.isLoading,invalid:e.v.status.$error,placeholder:l.$t("recurring_invoices.select_a_status"),"value-prop":"value",label:"value"},null,8,["modelValue","options","content-loading","invalid","placeholder"])]),_:1},8,["label","content-loading","error"]),r(y,{label:l.$t("recurring_invoices.frequency.select_frequency"),required:"","content-loading":e.isLoading,error:e.v.selectedFrequency.$error&&e.v.selectedFrequency.$errors[0].$message},{default:c(()=>[r(S,{modelValue:n(t).newRecurringInvoice.selectedFrequency,"onUpdate:modelValue":a[9]||(a[9]=o=>n(t).newRecurringInvoice.selectedFrequency=o),"content-loading":e.isLoading,options:n(t).frequencies,label:"label",invalid:e.v.selectedFrequency.$error,object:"",onChange:f},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),n(m)?(b(),_(y,{key:2,label:l.$t("recurring_invoices.frequency.title"),"content-loading":e.isLoading,required:"",error:e.v.frequency.$error&&e.v.frequency.$errors[0].$message},{default:c(()=>[r(s,{modelValue:n(t).newRecurringInvoice.frequency,"onUpdate:modelValue":[a[10]||(a[10]=o=>n(t).newRecurringInvoice.frequency=o),n(C)],"content-loading":e.isLoading,disabled:!n(m),invalid:e.v.frequency.$error,loading:$.value},null,8,["modelValue","content-loading","disabled","invalid","loading","onUpdate:modelValue"])]),_:1},8,["label","content-loading","error"])):B("",!0),r(Be,{store:n(t),"store-prop":"newRecurringInvoice",v:e.v,"is-loading":e.isLoading,"is-edit":e.isEdit,"customer-currency":n(t).newRecurringInvoice.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])])],64)}}},xe=["onSubmit"],Ne={class:"flex"},je={class:"grid-cols-12 gap-8 mt-6 mb-8 lg:grid"},De={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},Ee={class:"w-full relative lg:w-1/2"},Ze={setup(e){const i=H(),u=Re(),t=qe(),V=pe(),$="newRecurringInvoice",{t:d}=le();let m=k(!1);const T=k(["customer","company","customerCustom","invoice","invoiceCustom"]);let R=P(),C=se(),f=q(()=>i.isFetchingInvoice||i.isFetchingInitialSettings),l=q(()=>a.value?d("recurring_invoices.edit_invoice"):d("recurring_invoices.new_invoice")),a=q(()=>R.name==="recurring-invoices.edit");const h=q(()=>u.selectedCompanySettings.sales_tax_us_enabled==="YES"&&V.salesTaxUSEnabled),M={starts_at:{required:I.withMessage(d("validation.required"),p)},status:{required:I.withMessage(d("validation.required"),p)},frequency:{required:I.withMessage(d("validation.required"),p)},limit_by:{required:I.withMessage(d("validation.required"),p)},limit_date:{required:I.withMessage(d("validation.required"),U(function(){return i.newRecurringInvoice.limit_by==="DATE"}))},limit_count:{required:I.withMessage(d("validation.required"),U(function(){return i.newRecurringInvoice.limit_by==="COUNT"}))},selectedFrequency:{required:I.withMessage(d("validation.required"),p)},customer_id:{required:I.withMessage(d("validation.required"),p)},exchange_rate:{required:U(function(){return I.withMessage(d("validation.required"),p),i.showExchangeRate}),decimal:I.withMessage(d("validation.valid_exchange_rate"),ce)}},w=ue(M,q(()=>i.newRecurringInvoice),{$scope:$});i.resetCurrentRecurringInvoice(),i.fetchRecurringInvoiceInitialSettings(a.value),t.resetCustomFields(),w.value.$reset,O(()=>i.newRecurringInvoice.customer,s=>{s&&s.currency?i.newRecurringInvoice.currency=s.currency:i.newRecurringInvoice.currency=u.selectedCompanyCurrency});async function y(){if(w.value.$touch(),w.value.$invalid)return!1;m.value=!0;let s=E(D({},i.newRecurringInvoice),{sub_total:i.getSubTotal,total:i.getTotal,tax:i.getTotalTax});R.params.id?i.updateRecurringInvoice(s).then(o=>{o.data.data&&C.push(`/admin/recurring-invoices/${o.data.data.id}/view`),m.value=!1}).catch(o=>{m.value=!1}):S(s)}function S(s){i.addRecurringInvoice(s).then(o=>{o.data.data&&C.push(`/admin/recurring-invoices/${o.data.data.id}/view`),m.value=!1}).catch(o=>{m.value=!1})}return(s,o)=>{const F=g("BaseBreadcrumbItem"),z=g("BaseBreadcrumb"),x=g("BaseButton"),J=g("router-link"),Y=g("BaseIcon"),K=g("BasePageHeader"),Q=g("BaseScrollPane"),W=g("BasePage");return b(),A(G,null,[r(me),r(fe),r(Se),n(h)&&!n(f)?(b(),_(ye,{key:0,store:n(i),"store-prop":"newRecurringInvoice","is-edit":n(a),customer:n(i).newRecurringInvoice.customer},null,8,["store","is-edit","customer"])):B("",!0),r(W,{class:"relative invoice-create-page"},{default:c(()=>[v("form",{onSubmit:ve(y,["prevent"])},[r(K,{title:n(l)},{actions:c(()=>[r(J,{to:`/invoices/pdf/${n(i).newRecurringInvoice.unique_hash}`},{default:c(()=>[s.$route.name==="invoices.edit"?(b(),_(x,{key:0,target:"_blank",class:"mr-3",variant:"primary-outline",type:"button"},{default:c(()=>[v("span",Ne,L(s.$t("general.view_pdf")),1)]),_:1})):B("",!0)]),_:1},8,["to"]),r(x,{loading:n(m),disabled:n(m),variant:"primary",type:"submit"},{left:c(X=>[n(m)?B("",!0):(b(),_(Y,{key:0,name:"SaveIcon",class:de(X.class)},null,8,["class"]))]),default:c(()=>[ge(" "+L(s.$t("recurring_invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:c(()=>[r(z,null,{default:c(()=>[r(F,{title:s.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(F,{title:s.$t("recurring_invoices.title",2),to:"/admin/recurring-invoices"},null,8,["title"]),s.$route.name==="invoices.edit"?(b(),_(F,{key:0,title:s.$t("recurring_invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(b(),_(F,{key:1,title:n(l),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),v("div",je,[r(Ue,{v:n(w),"is-loading":n(f),"is-edit":n(a)},null,8,["v","is-loading","is-edit"])]),r(Q,null,{default:c(()=>[r(be,{currency:n(i).newRecurringInvoice.currency,"is-loading":n(f),"item-validation-scope":$,store:n(i),"store-prop":"newRecurringInvoice"},null,8,["currency","is-loading","store"]),v("div",De,[v("div",Ee,[r(Ie,{store:n(i),"store-prop":"newRecurringInvoice",fields:T.value,type:"Invoice"},null,8,["store","fields"]),r(he,{type:"Invoice","is-edit":n(a),"is-loading":n(f),store:n(i),"store-prop":"newRecurringInvoice","custom-field-scope":$,class:"mb-6"},null,8,["is-edit","is-loading","store"]),r($e,{store:n(i),"store-prop":"newRecurringInvoice"},null,8,["store"])]),r(we,{currency:n(i).newRecurringInvoice.currency,"is-loading":n(f),store:n(i),"store-prop":"newRecurringInvoice","tax-popup-type":"invoice"},null,8,["currency","is-loading","store"])])]),_:1})],40,xe)]),_:1})],64)}}};export{Ze as default};
import{J as E,G as b,aN as k,ah as C,r as c,o as a,l as n,w as o,u as t,f as r,i as p,t as I,j as v}from"./vendor.01d0adc5.js";import{t as x,u as S,j as V,e as j,g as y}from"./main.75722495.js";const G={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(l){const _=l,g=x(),h=S(),N=V(),m=j(),{t:s}=E(),w=b();k(),C("utils");async function B(i=null){N.openDialog({title:s("general.are_you_sure"),message:s("invoices.confirm_delete"),yesLabel:s("general.ok"),noLabel:s("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async u=>{u&&await g.deleteMultipleRecurringInvoices(i).then(e=>{e.data.success?(_.table&&_.table.refresh(),g.$patch(d=>{d.selectedRecurringInvoices=[],d.selectAllField=!1}),h.showNotification({type:"success",message:s("recurring_invoices.deleted_message",2)})):e.data.error&&h.showNotification({type:"error",message:e.data.message})})})}return(i,u)=>{const e=c("BaseIcon"),d=c("BaseButton"),f=c("BaseDropdownItem"),R=c("router-link"),D=c("BaseDropdown");return a(),n(D,{"content-loading":t(g).isFetchingViewData},{activator:o(()=>[t(w).name==="recurring-invoices.view"?(a(),n(d,{key:0,variant:"primary"},{default:o(()=>[r(e,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(a(),n(e,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[t(m).hasAbilities(t(y).EDIT_RECURRING_INVOICE)?(a(),n(R,{key:0,to:`/admin/recurring-invoices/${l.row.id}/edit`},{default:o(()=>[r(f,null,{default:o(()=>[r(e,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+I(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):v("",!0),t(w).name!=="recurring-invoices.view"&&t(m).hasAbilities(t(y).VIEW_RECURRING_INVOICE)?(a(),n(R,{key:1,to:`recurring-invoices/${l.row.id}/view`},{default:o(()=>[r(f,null,{default:o(()=>[r(e,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+I(i.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):v("",!0),t(m).hasAbilities(t(y).DELETE_RECURRING_INVOICE)?(a(),n(f,{key:2,onClick:u[0]||(u[0]=$=>B(l.row.id))},{default:o(()=>[r(e,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),p(" "+I(i.$t("general.delete")),1)]),_:1})):v("",!0)]),_:1},8,["content-loading"])}}};export{G as _};
import{G as S,aN as M,J as E,a0 as j,B as $,k as x,L as m,M as g,Q as C,N as G,P as L,T as N,r as u,o as c,e as P,f as n,w as p,u as e,l as _,x as y,i as U,t as A,U as R}from"./vendor.01d0adc5.js";import{u as D}from"./global.08b6a984.js";import{u as O}from"./auth.4644c288.js";import"./main.75722495.js";const T=["onSubmit"],K={setup(F){const f=S(),b=M(),B=O(),{t:i}=E(),r=j({email:"",password:"",password_confirmation:""});D();let a=$(!1),v=$(!1);const I=x(()=>({email:{required:m.withMessage(i("validation.required"),g),email:m.withMessage(i("validation.email_incorrect"),C)},password:{required:m.withMessage(i("validation.required"),g),minLength:m.withMessage(i("validation.password_min_length",{count:8}),G(8))},password_confirmation:{sameAsPassword:m.withMessage(i("validation.password_incorrect"),L(r.password))}})),s=N(I,r);async function V(l){if(s.value.$touch(),!s.value.$invalid){let o={email:r.email,password:r.password,password_confirmation:r.password_confirmation,token:f.params.token};v.value=!0;let d=B.resetPassword(o,f.params.company);v.value=!1,d.data&&b.push({name:"customer.login"})}}return(l,o)=>{const d=u("BaseInput"),w=u("BaseInputGroup"),k=u("EyeOffIcon"),h=u("EyeIcon"),q=u("BaseButton");return c(),P("form",{id:"loginForm",onSubmit:R(V,["prevent"])},[n(w,{error:e(s).email.$error&&e(s).email.$errors[0].$message,label:l.$t("login.email"),class:"mb-4",required:""},{default:p(()=>[n(d,{modelValue:e(r).email,"onUpdate:modelValue":o[0]||(o[0]=t=>e(r).email=t),type:"email",name:"email",invalid:e(s).email.$error,onInput:o[1]||(o[1]=t=>e(s).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(w,{error:e(s).password.$error&&e(s).password.$errors[0].$message,label:l.$t("login.password"),class:"mb-4",required:""},{default:p(()=>[n(d,{modelValue:e(r).password,"onUpdate:modelValue":o[4]||(o[4]=t=>e(r).password=t),type:e(a)?"text":"password",name:"password",invalid:e(s).password.$error,onInput:o[5]||(o[5]=t=>e(s).password.$touch())},{right:p(()=>[e(a)?(c(),_(k,{key:0,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[2]||(o[2]=t=>y(a)?a.value=!e(a):a=!e(a))})):(c(),_(h,{key:1,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[3]||(o[3]=t=>y(a)?a.value=!e(a):a=!e(a))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["error","label"]),n(w,{error:e(s).password_confirmation.$error&&e(s).password_confirmation.$errors[0].$message,label:l.$t("login.retype_password"),class:"mb-4",required:""},{default:p(()=>[n(d,{modelValue:e(r).password_confirmation,"onUpdate:modelValue":o[6]||(o[6]=t=>e(r).password_confirmation=t),type:"password",name:"password",invalid:e(s).password_confirmation.$error,onInput:o[7]||(o[7]=t=>e(s).password_confirmation.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(q,{type:"submit",variant:"primary"},{default:p(()=>[U(A(l.$t("login.reset_password")),1)]),_:1})],40,T)}}};export{K as default};
import{J as q,G as I,aN as h,a0 as N,B as S,k as d,M as w,Q as k,N as L,P,T as U,r as f,o as A,e as C,f as n,w as m,u as r,i as E,t as G,U as j,a as D}from"./vendor.01d0adc5.js";import{u as M,h as R}from"./main.75722495.js";const T=["onSubmit"],Q={setup(x){const v=M(),{t}=q(),c=I(),$=h(),o=N({email:"",password:"",password_confirmation:""}),u=S(!1),_=d(()=>({email:{required:w,email:k},password:{required:w,minLength:L(8)},password_confirmation:{sameAsPassword:P(o.password)}})),a=U(_,o),g=d(()=>a.value.email.$error?a.value.email.required.$invalid?t("validation.required"):a.value.email.email?t("validation.email_incorrect"):!1:""),b=d(()=>a.value.password.$error?a.value.password.required.$invalid?t("validation.required"):a.value.password.minLength?t("validation.password_min_length",{count:a.value.password.minLength.$params.min}):!1:""),V=d(()=>a.value.password_confirmation.$error?a.value.password_confirmation.sameAsPassword.$invalid?t("validation.password_incorrect"):!1:"");async function y(i){if(a.value.$touch(),!a.value.$invalid)try{let e={email:o.email,password:o.password,password_confirmation:o.password_confirmation,token:c.params.token};u.value=!0;let l=await D.post("/api/v1/auth/reset/password",e);u.value=!1,l.data&&(v.showNotification({type:"success",message:t("login.password_reset_successfully")}),$.push("/login"))}catch(e){R(e),u.value=!1,e.response&&e.response.status===403}}return(i,e)=>{const l=f("BaseInput"),p=f("BaseInputGroup"),B=f("BaseButton");return A(),C("form",{id:"loginForm",onSubmit:j(y,["prevent"])},[n(p,{error:r(g),label:i.$t("login.email"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).email,"onUpdate:modelValue":e[0]||(e[0]=s=>r(o).email=s),invalid:r(a).email.$error,focus:"",type:"email",name:"email",onInput:e[1]||(e[1]=s=>r(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(p,{error:r(b),label:i.$t("login.password"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).password,"onUpdate:modelValue":e[2]||(e[2]=s=>r(o).password=s),invalid:r(a).password.$error,type:"password",name:"password",onInput:e[3]||(e[3]=s=>r(a).password.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(p,{error:r(V),label:i.$t("login.retype_password"),class:"mb-4",required:""},{default:m(()=>[n(l,{modelValue:r(o).password_confirmation,"onUpdate:modelValue":e[4]||(e[4]=s=>r(o).password_confirmation=s),invalid:r(a).password_confirmation.$error,type:"password",name:"password",onInput:e[5]||(e[5]=s=>r(a).password_confirmation.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(B,{loading:u.value,type:"submit",variant:"primary"},{default:m(()=>[E(G(i.$t("login.reset_password")),1)]),_:1},8,["loading"])],40,T)}}};export{Q as default};
var te=Object.defineProperty;var J=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var X=(f,n,e)=>n in f?te(f,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):f[n]=e,K=(f,n)=>{for(var e in n||(n={}))se.call(n,e)&&X(f,e,n[e]);if(J)for(var e of J(n))ae.call(n,e)&&X(f,e,n[e]);return f};import{h as L,u as j,j as oe,e as Q,c as P,b as ie}from"./main.75722495.js";import{_ as ne,a as D,d as le,J as O,G as re,ah as de,r as g,o as _,l as I,w as m,u as c,f as h,i as C,t as w,j as V,B as z,k as U,L as T,M as W,N as ce,T as ue,h as y,e as E,y as Y,F,m as Z,U as me,V as fe}from"./vendor.01d0adc5.js";const q=(f=!1)=>{const n=f?window.pinia.defineStore:le,{global:e}=window.i18n;return n({id:"role",state:()=>({roles:[],allAbilities:[],selectedRoles:[],currentRole:{id:null,name:"",abilities:[]}}),getters:{isEdit:a=>!!a.currentRole.id,abilitiesList:a=>{let i=a.allAbilities.map(l=>K({modelName:l.model?l.model.substring(l.model.lastIndexOf("\\")+1):"Common",disabled:!1},l));return ne.groupBy(i,"modelName")}},actions:{fetchRoles(a){return new Promise((i,l)=>{D.get("/api/v1/roles",{params:a}).then(t=>{this.roles=t.data.data,i(t)}).catch(t=>{L(t),l(t)})})},fetchRole(a){return new Promise((i,l)=>{D.get(`/api/v1/roles/${a}`).then(t=>{this.currentRole.name=t.data.data.name,this.currentRole.id=t.data.data.id,t.data.data.abilities.forEach(r=>{for(const u in this.abilitiesList)this.abilitiesList[u].forEach(v=>{v.ability===r.name&&this.currentRole.abilities.push(v)})}),i(t)}).catch(t=>{L(t),l(t)})})},addRole(a){const i=j();return new Promise((l,t)=>{D.post("/api/v1/roles",a).then(r=>{this.roles.push(r.data.role),i.showNotification({type:"success",message:e.t("settings.roles.created_message")}),l(r)}).catch(r=>{L(r),t(r)})})},updateRole(a){const i=j();return new Promise((l,t)=>{D.put(`/api/v1/roles/${a.id}`,a).then(r=>{if(r.data){let u=this.roles.findIndex(v=>v.id===r.data.data.id);this.roles[u]=a.role,i.showNotification({type:"success",message:e.t("settings.roles.updated_message")})}l(r)}).catch(r=>{L(r),t(r)})})},fetchAbilities(a){return new Promise((i,l)=>{this.allAbilities.length?i(this.allAbilities):D.get("/api/v1/abilities",{params:a}).then(t=>{this.allAbilities=t.data.abilities,i(t)}).catch(t=>{L(t),l(t)})})},deleteRole(a){const i=j();return new Promise((l,t)=>{D.delete(`/api/v1/roles/${a}`).then(r=>{let u=this.roles.findIndex(v=>v.id===a);this.roles.splice(u,1),i.showNotification({type:"success",message:e.t("settings.roles.deleted_message")}),l(r)}).catch(r=>{L(r),t(r)})})}}})()},pe={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(f){const n=f,e=oe();j();const{t:a}=O(),i=q(),l=re(),t=Q(),r=P();de("utils");async function u(x){Promise.all([await i.fetchAbilities(),await i.fetchRole(x)]).then(()=>{r.openModal({title:a("settings.roles.edit_role"),componentName:"RolesModal",size:"lg",refreshData:n.loadData})})}async function v(x){e.openDialog({title:a("general.are_you_sure"),message:a("settings.roles.confirm_delete"),yesLabel:a("general.ok"),noLabel:a("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async b=>{b&&await i.deleteRole(x).then(R=>{R.data&&n.loadData&&n.loadData()})})}return(x,b)=>{const R=g("BaseIcon"),B=g("BaseButton"),s=g("BaseDropdownItem"),d=g("BaseDropdown");return _(),I(d,null,{activator:m(()=>[c(l).name==="roles.view"?(_(),I(B,{key:0,variant:"primary"},{default:m(()=>[h(R,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(_(),I(R,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:m(()=>[c(t).currentUser.is_owner?(_(),I(s,{key:0,onClick:b[0]||(b[0]=p=>u(f.row.id))},{default:m(()=>[h(R,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),C(" "+w(x.$t("general.edit")),1)]),_:1})):V("",!0),c(t).currentUser.is_owner?(_(),I(s,{key:1,onClick:b[1]||(b[1]=p=>v(f.row.id))},{default:m(()=>[h(R,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),C(" "+w(x.$t("general.delete")),1)]),_:1})):V("",!0)]),_:1})}}},he={class:"flex justify-between w-full"},be=["onSubmit"],ge={class:"px-4 md:px-8 py-4 md:py-6"},_e={class:"flex justify-between"},ye={class:"text-sm not-italic font-medium text-gray-800 px-4 md:px-8 py-1.5"},ve=y("span",{class:"text-sm text-red-500"}," *",-1),we={class:"text-sm not-italic font-medium text-gray-300 px-4 md:px-8 py-1.5"},Be=C(" / "),xe={class:"border-t border-gray-200 py-3"},Re={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 px-8 sm:px-8"},$e={class:"text-sm text-gray-500 border-b border-gray-200 pb-1 mb-2"},Se={key:0,class:"block mt-0.5 text-sm text-red-500"},ke={class:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},Ce={setup(f){const n=P(),e=q(),{t:a}=O();let i=z(!1),l=z(!1);const t=U(()=>n.active&&n.componentName==="RolesModal"),r=U(()=>({name:{required:T.withMessage(a("validation.required"),W),minLength:T.withMessage(a("validation.name_min_length",{count:3}),ce(3))},abilities:{required:T.withMessage(a("validation.at_least_one_ability"),W)}})),u=ue(r,U(()=>e.currentRole));async function v(){if(u.value.$touch(),u.value.$invalid)return!0;try{const s=e.isEdit?e.updateRole:e.addRole;i.value=!0,await s(e.currentRole),i.value=!1,n.refreshData&&n.refreshData(),B()}catch{return i.value=!1,!0}}function x(s){var p,o;if(!e.currentRole.abilities.find($=>$.ability===s.ability)&&((p=s==null?void 0:s.depends_on)==null?void 0:p.length)){R(s);return}(o=s==null?void 0:s.depends_on)==null||o.forEach($=>{Object.keys(e.abilitiesList).forEach(M=>{e.abilitiesList[M].forEach(k=>{$===k.ability&&(k.disabled=!0,e.currentRole.abilities.find(S=>S.ability===$)||e.currentRole.abilities.push(k))})})})}function b(s){let d=[];Object.keys(e.abilitiesList).forEach(p=>{e.abilitiesList[p].forEach(o=>{(o==null?void 0:o.depends_on)&&(d=[...d,...o.depends_on])})}),Object.keys(e.abilitiesList).forEach(p=>{e.abilitiesList[p].forEach(o=>{d.includes(o.ability)&&(s?o.disabled=!0:o.disabled=!1),e.currentRole.abilities.push(o)})}),s||(e.currentRole.abilities=[])}function R(s){s.depends_on.forEach(d=>{Object.keys(e.abilitiesList).forEach(p=>{e.abilitiesList[p].forEach(o=>{let $=e.currentRole.abilities.find(M=>{var k;return(k=M.depends_on)==null?void 0:k.includes(o.ability)});d===o.ability&&!$&&(o.disabled=!1)})})})}function B(){n.closeModal(),setTimeout(()=>{e.currentRole={id:null,name:"",abilities:[]},Object.keys(e.abilitiesList).forEach(s=>{e.abilitiesList[s].forEach(d=>{d.disabled=!1})}),u.value.$reset()},300)}return(s,d)=>{const p=g("BaseIcon"),o=g("BaseInput"),$=g("BaseInputGroup"),M=g("BaseCheckbox"),k=g("BaseButton"),G=g("BaseModal");return _(),I(G,{show:c(t),onClose:B},{header:m(()=>[y("div",he,[C(w(c(n).title)+" ",1),h(p,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:B})])]),default:m(()=>[y("form",{onSubmit:me(v,["prevent"])},[y("div",ge,[h($,{label:s.$t("settings.roles.name"),class:"mt-3",error:c(u).name.$error&&c(u).name.$errors[0].$message,required:"","content-loading":c(l)},{default:m(()=>[h(o,{modelValue:c(e).currentRole.name,"onUpdate:modelValue":d[0]||(d[0]=S=>c(e).currentRole.name=S),invalid:c(u).name.$error,type:"text","content-loading":c(l),onInput:d[1]||(d[1]=S=>c(u).name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"])]),y("div",_e,[y("h6",ye,[C(w(s.$tc("settings.roles.permission",2))+" ",1),ve]),y("div",we,[y("a",{class:"cursor-pointer text-primary-400",onClick:d[2]||(d[2]=S=>b(!0))},w(s.$t("settings.roles.select_all")),1),Be,y("a",{class:"cursor-pointer text-primary-400",onClick:d[3]||(d[3]=S=>b(!1))},w(s.$t("settings.roles.none")),1)])]),y("div",xe,[y("div",Re,[(_(!0),E(F,null,Y(c(e).abilitiesList,(S,H)=>(_(),E("div",{key:H,class:"flex flex-col space-y-1"},[y("p",$e,w(H),1),(_(!0),E(F,null,Y(S,(N,ee)=>(_(),E("div",{key:ee,class:"flex"},[h(M,{modelValue:c(e).currentRole.abilities,"onUpdate:modelValue":[d[4]||(d[4]=A=>c(e).currentRole.abilities=A),A=>x(N)],"set-initial-value":!0,variant:"primary",disabled:N.disabled,label:N.name,value:N},null,8,["modelValue","disabled","label","value","onUpdate:modelValue"])]))),128))]))),128)),c(u).abilities.$error?(_(),E("span",Se,w(c(u).abilities.$errors[0].$message),1)):V("",!0)])]),y("div",ke,[h(k,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:B},{default:m(()=>[C(w(s.$t("general.cancel")),1)]),_:1}),h(k,{loading:c(i),disabled:c(i),variant:"primary",type:"submit"},{left:m(S=>[h(p,{name:"SaveIcon",class:Z(S.class)},null,8,["class"])]),default:m(()=>[C(" "+w(c(e).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,be)]),_:1},8,["show"])}}},Ee={setup(f){const n=P(),e=q(),a=Q(),i=ie(),{t:l}=O(),t=z(null),r=U(()=>[{key:"name",label:l("settings.roles.role_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"created_at",label:l("settings.roles.added_on"),tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]);async function u({page:b,filter:R,sort:B}){let s={orderByField:B.fieldName||"created_at",orderBy:B.order||"desc",company_id:i.selectedCompany.id};return{data:(await e.fetchRoles(s)).data.data}}async function v(){t.value&&t.value.refresh()}async function x(){await e.fetchAbilities(),n.openModal({title:l("settings.roles.add_role"),componentName:"RolesModal",size:"lg",refreshData:t.value&&t.value.refresh})}return(b,R)=>{const B=g("BaseIcon"),s=g("BaseButton"),d=g("BaseTable"),p=g("BaseSettingCard");return _(),E(F,null,[h(Ce),h(p,{title:b.$t("settings.roles.title"),description:b.$t("settings.roles.description")},fe({default:m(()=>[h(d,{ref:(o,$)=>{$.table=o,t.value=o},data:u,columns:c(r),class:"mt-14"},{"cell-created_at":m(({row:o})=>[C(w(o.data.formatted_created_at),1)]),"cell-actions":m(({row:o})=>[c(a).currentUser.is_owner&&o.data.name!=="super admin"?(_(),I(pe,{key:0,row:o.data,table:t.value,"load-data":v},null,8,["row","table"])):V("",!0)]),_:1},8,["columns"])]),_:2},[c(a).currentUser.is_owner?{name:"action",fn:m(()=>[h(s,{variant:"primary-outline",onClick:x},{left:m(o=>[h(B,{name:"PlusIcon",class:Z(o.class)},null,8,["class"])]),default:m(()=>[C(" "+w(b.$t("settings.roles.add_new_role")),1)]),_:1})])}:void 0]),1032,["title","description"])],64)}}};export{Ee as default};
var Ie=Object.defineProperty,Se=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;var pe=(t,s,e)=>s in t?Ie(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,N=(t,s)=>{for(var e in s||(s={}))Te.call(s,e)&&pe(t,e,s[e]);if(me)for(var e of me(s))ke.call(s,e)&&pe(t,e,s[e]);return t},G=(t,s)=>Se(t,Pe(s));import{q as ee,c as H,e as ye,b as te,p as xe,g as ne,T as Ce,k as Me,u as De,d as Ve}from"./main.75722495.js";import{D as je,d as qe}from"./DragIcon.213b1d78.js";import{B as W,a0 as fe,ah as ae,J,k as B,C as re,r as p,o as l,e as v,h as a,t as _,f as n,V as Le,u as o,w as c,i as E,l as j,j as A,G as Ee,A as Z,L as U,M as R,b2 as ge,S as oe,aX as Ae,T as le,x as K,F as Q,y as se,H as he,a7 as Oe,W as Ue,m as X,Y as ze,X as Ne,Z as Fe,N as Ye,D as _e,U as be}from"./vendor.01d0adc5.js";import{_ as Ge}from"./SelectNotePopup.781ad74a.js";const We={class:"flex items-center justify-between mb-3"},Re={class:"flex items-center text-base",style:{flex:"4"}},Xe={class:"pr-2 mb-0",align:"right"},He={class:"absolute left-3.5"},Je={class:"ml-2 text-sm leading-none text-primary-400 cursor-pointer"},Ze=a("br",null,null,-1),Ke={class:"text-sm text-right",style:{flex:"3"}},Qe={class:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},et={props:{ability:{type:String,default:""},store:{type:Object,default:null},storeProp:{type:String,default:""},itemIndex:{type:Number,required:!0},index:{type:Number,required:!0},taxData:{type:Object,required:!0},taxes:{type:Array,default:[]},total:{type:Number,default:0},totalTax:{type:Number,default:0},currency:{type:[Object,String],required:!0},updateItems:{type:Function,default:()=>{}}},emits:["remove","update"],setup(t,{emit:s}){const e=t,d=ee(),w=H(),$=ye(),I=W(null),y=fe(N({},e.taxData));ae("utils");const{t:C}=J(),m=B(()=>d.taxTypes.map(h=>N({},h)).map(h=>(e.taxes.find(x=>x.tax_type_id===h.id)?h.disabled=!0:h.disabled=!1,h))),q=B(()=>y.compound_tax&&e.total?(e.total+e.totalTax)*y.percent/100:e.total&&y.percent?e.total*y.percent/100:0);re(()=>e.total,()=>{T()}),re(()=>e.totalTax,()=>{T()}),e.taxData.tax_type_id>0&&(I.value=d.taxTypes.find(u=>u.id===e.taxData.tax_type_id)),T();function V(u){y.percent=u.percent,y.tax_type_id=u.id,y.compound_tax=u.compound_tax,y.name=u.name,T()}function T(){y.tax_type_id!==0&&s("update",{index:e.index,item:G(N({},y),{amount:q.value})})}function i(){let u={itemIndex:e.itemIndex,taxIndex:e.index};w.openModal({title:C("settings.tax_types.add_tax"),componentName:"TaxTypeModal",data:u,size:"sm"})}function r(u){e.store.$patch(h=>{h[e.storeProp].items[e.itemIndex].taxes.splice(u,1)})}return(u,h)=>{const M=p("BaseIcon"),x=p("BaseMultiselect"),D=p("BaseFormatMoney");return l(),v("div",We,[a("div",Re,[a("label",Xe,_(u.$t("invoices.item.tax")),1),n(x,{modelValue:I.value,"onUpdate:modelValue":[h[0]||(h[0]=k=>I.value=k),h[1]||(h[1]=k=>V(k))],"value-prop":"id",options:o(m),placeholder:u.$t("general.select_a_tax"),"open-direction":"top","track-by":"name",searchable:"",object:"",label:"name"},Le({singlelabel:c(({value:k})=>[a("div",He,_(k.name)+" - "+_(k.percent)+" % ",1)]),option:c(({option:k})=>[E(_(k.name)+" - "+_(k.percent)+" % ",1)]),_:2},[o($).hasAbilities(t.ability)?{name:"action",fn:c(()=>[a("button",{type:"button",class:"flex items-center justify-center w-full px-2 cursor-pointer py-2 bg-gray-200 border-none outline-none",onClick:i},[n(M,{name:"CheckCircleIcon",class:"h-5 text-primary-400"}),a("label",Je,_(u.$t("invoices.add_new_tax")),1)])])}:void 0]),1032,["modelValue","options","placeholder"]),Ze]),a("div",Ke,[n(D,{amount:o(q),currency:t.currency},null,8,["amount","currency"])]),a("div",Qe,[t.taxes.length&&t.index!==t.taxes.length-1?(l(),j(M,{key:0,name:"TrashIcon",class:"h-5 text-gray-700 cursor-pointer",onClick:h[2]||(h[2]=k=>r(t.index))})):A("",!0)])])}}},tt={class:"box-border bg-white border border-gray-200 border-solid rounded-b"},st={colspan:"5",class:"p-0 text-left align-top"},ot={class:"w-full"},nt=a("col",{style:{width:"40%","min-width":"280px"}},null,-1),at=a("col",{style:{width:"10%","min-width":"120px"}},null,-1),rt=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),lt={key:0,style:{width:"15%","min-width":"160px"}},it=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),dt={class:"px-5 py-4 text-left align-top"},ct={class:"flex justify-start"},ut={class:"flex items-center justify-center w-5 h-5 mt-2 text-gray-300 cursor-move handle mr-2"},mt={class:"px-5 py-4 text-right align-top"},pt={class:"px-5 py-4 text-left align-top"},yt={class:"flex flex-col"},xt={class:"flex-auto flex-fill bd-highlight"},ft={class:"relative w-full"},gt={key:0,class:"px-5 py-4 text-left align-top"},ht={class:"flex flex-col"},_t={class:"flex",style:{width:"120px"},role:"group"},bt={class:"flex items-center"},vt={class:"px-5 py-4 text-right align-top"},$t={class:"flex items-center justify-end text-sm"},wt={class:"flex items-center justify-center w-6 h-10 mx-2"},Bt={key:0},It=a("td",{class:"px-5 py-4 text-left align-top"},null,-1),St={colspan:"4",class:"px-5 py-4 text-left align-top"},Pt={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},itemData:{type:Object,default:null},index:{type:Number,default:null},type:{type:String,default:""},loading:{type:Boolean,default:!1},currency:{type:[Object,String],required:!0},invoiceItems:{type:Array,required:!0},itemValidationScope:{type:String,default:""}},emits:["update","remove","itemValidate"],setup(t,{emit:s}){const e=t,d=te(),w=xe();Ee();const{t:$}=J(),I=B({get:()=>e.itemData.quantity,set:g=>{L("quantity",parseFloat(g))}}),y=B({get:()=>{const g=e.itemData.price;return parseFloat(g)>0?g/100:g},set:g=>{if(parseFloat(g)>0){let P=Math.round(g*100);L("price",P)}else L("price",g)}}),C=B(()=>e.itemData.price*e.itemData.quantity),m=B({get:()=>e.itemData.discount,set:g=>{e.itemData.discount_type==="percentage"?L("discount_val",C.value*g/100):L("discount_val",Math.round(g*100)),L("discount",g)}}),q=B(()=>C.value-e.itemData.discount_val),V=B(()=>e.currency?e.currency:d.selectedCompanyCurrency),T=B(()=>e.store[e.storeProp].items.length!=1),i=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?0:g.amount}))),r=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?g.amount:0}))),u=B(()=>i.value+r.value),h={name:{required:U.withMessage($("validation.required"),R)},quantity:{required:U.withMessage($("validation.required"),R),minValue:U.withMessage($("validation.qty_must_greater_than_zero"),ge(0)),maxLength:U.withMessage($("validation.amount_maxlength"),oe(20))},price:{required:U.withMessage($("validation.required"),R),minValue:U.withMessage($("validation.number_length_minvalue"),ge(1)),maxLength:U.withMessage($("validation.price_maxlength"),oe(20))},discount_val:{between:U.withMessage($("validation.discount_maxlength"),Ae(0,B(()=>C.value)))},description:{maxLength:U.withMessage($("validation.notes_maxlength"),oe(65e3))}},M=le(h,B(()=>e.store[e.storeProp].items[e.index]),{$scope:e.itemValidationScope});function x(g){e.store.$patch(O=>{O[e.storeProp].items[e.index].taxes[g.index]=g.item});let P=e.itemData.taxes[e.itemData.taxes.length-1];(P==null?void 0:P.tax_type_id)!==0&&e.store.$patch(O=>{O[e.storeProp].items[e.index].taxes.push(G(N({},Ce),{id:he.raw()}))}),S()}function D(g){L("name",g)}function k(g){e.store.$patch(P=>{if(P[e.storeProp].items[e.index].name=g.name,P[e.storeProp].items[e.index].price=g.price,P[e.storeProp].items[e.index].item_id=g.id,P[e.storeProp].items[e.index].description=g.description,g.unit&&(P[e.storeProp].items[e.index].unit_name=g.unit.name),e.store[e.storeProp].tax_per_item==="YES"&&g.taxes){let O=0;g.taxes.forEach(Y=>{x({index:O,item:N({},Y)}),O++})}P[e.storeProp].exchange_rate&&(P[e.storeProp].items[e.index].price/=P[e.storeProp].exchange_rate)}),w.fetchItems(),S()}function f(){e.itemData.discount_type!=="fixed"&&(L("discount_val",Math.round(e.itemData.discount*100)),L("discount_type","fixed"))}function b(){e.itemData.discount_type!=="percentage"&&(L("discount_val",C.value*e.itemData.discount/100),L("discount_type","percentage"))}function S(){var O,Y;let g=(Y=(O=e.store[e.storeProp])==null?void 0:O.items[e.index])==null?void 0:Y.taxes;g||(g=[]);let P=G(N({},e.store[e.storeProp].items[e.index]),{index:e.index,total:q.value,sub_total:C.value,totalSimpleTax:i.value,totalCompoundTax:r.value,totalTax:u.value,tax:u.value,taxes:[...g]});e.store.updateItem(P)}function L(g,P){e.store.$patch(O=>{O[e.storeProp].items[e.index][g]=P}),S()}return(g,P)=>{const O=p("BaseItemSelect"),Y=p("BaseInput"),z=p("BaseMoney"),ie=p("BaseIcon"),ve=p("BaseButton"),de=p("BaseDropdownItem"),$e=p("BaseDropdown"),ce=p("BaseContentPlaceholdersText"),ue=p("BaseContentPlaceholders"),we=p("BaseFormatMoney");return l(),v("tr",tt,[a("td",st,[a("table",ot,[a("colgroup",null,[nt,at,rt,t.store[t.storeProp].discount_per_item==="YES"?(l(),v("col",lt)):A("",!0),it]),a("tbody",null,[a("tr",null,[a("td",dt,[a("div",ct,[a("div",ut,[n(je)]),n(O,{type:"Invoice",item:t.itemData,invalid:o(M).name.$error,"invalid-description":o(M).description.$error,taxes:t.itemData.taxes,index:t.index,"store-prop":t.storeProp,store:t.store,onSearch:D,onSelect:k},null,8,["item","invalid","invalid-description","taxes","index","store-prop","store"])])]),a("td",mt,[n(Y,{modelValue:o(I),"onUpdate:modelValue":P[0]||(P[0]=F=>K(I)?I.value=F:null),invalid:o(M).quantity.$error,"content-loading":t.loading,type:"number",small:"",min:"0",step:"any",onChange:P[1]||(P[1]=F=>S()),onInput:P[2]||(P[2]=F=>o(M).quantity.$touch())},null,8,["modelValue","invalid","content-loading"])]),a("td",pt,[a("div",yt,[a("div",xt,[a("div",ft,[n(z,{key:o(V),modelValue:o(y),"onUpdate:modelValue":P[3]||(P[3]=F=>K(y)?y.value=F:null),invalid:o(M).price.$error,"content-loading":t.loading,currency:o(V)},null,8,["modelValue","invalid","content-loading","currency"])])])])]),t.store[t.storeProp].discount_per_item==="YES"?(l(),v("td",gt,[a("div",ht,[a("div",_t,[n(Y,{modelValue:o(m),"onUpdate:modelValue":P[4]||(P[4]=F=>K(m)?m.value=F:null),invalid:o(M).discount_val.$error,"content-loading":t.loading,class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue","invalid","content-loading"]),n($e,{position:"bottom-end"},{activator:c(()=>[n(ve,{"content-loading":t.loading,class:"rounded-tr-md rounded-br-md !p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[a("span",bt,[E(_(t.itemData.discount_type=="fixed"?t.currency.symbol:"%")+" ",1),n(ie,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1},8,["content-loading"])]),default:c(()=>[n(de,{onClick:f},{default:c(()=>[E(_(g.$t("general.fixed")),1)]),_:1}),n(de,{onClick:b},{default:c(()=>[E(_(g.$t("general.percentage")),1)]),_:1})]),_:1})])])])):A("",!0),a("td",vt,[a("div",$t,[a("span",null,[t.loading?(l(),j(ue,{key:0},{default:c(()=>[n(ce,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),j(we,{key:1,amount:o(q),currency:o(V)},null,8,["amount","currency"]))]),a("div",wt,[o(T)?(l(),j(ie,{key:0,class:"h-5 text-gray-700 cursor-pointer",name:"TrashIcon",onClick:P[5]||(P[5]=F=>t.store.removeItem(t.index))})):A("",!0)])])])]),t.store[t.storeProp].tax_per_item==="YES"?(l(),v("tr",Bt,[It,a("td",St,[t.loading?(l(),j(ue,{key:0},{default:c(()=>[n(ce,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(!0),v(Q,{key:1},se(t.itemData.taxes,(F,Be)=>(l(),j(et,{key:F.id,index:Be,"item-index":t.index,"tax-data":F,taxes:t.itemData.taxes,"discounted-total":o(q),"total-tax":o(i),total:o(C),currency:t.currency,"update-items":S,ability:o(ne).CREATE_INVOICE,store:t.store,"store-prop":t.storeProp,onUpdate:x},null,8,["index","item-index","tax-data","taxes","discounted-total","total-tax","total","currency","ability","store","store-prop"]))),128))])])):A("",!0)])])])])}}},Tt={class:"text-center item-table min-w-full"},kt=a("col",{style:{width:"40%","min-width":"280px"}},null,-1),Ct=a("col",{style:{width:"10%","min-width":"120px"}},null,-1),Mt=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),Dt={key:0,style:{width:"15%","min-width":"160px"}},Vt=a("col",{style:{width:"15%","min-width":"120px"}},null,-1),jt={class:"bg-white border border-gray-200 border-solid"},qt={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},Lt={key:1,class:"pl-7"},Et={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},At={key:1},Ot={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},Ut={key:1},zt={key:0,class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},Nt={key:1},Ft={class:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},Yt={key:1,class:"pr-10 column-heading"},Zs={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},currency:{type:[Object,String,null],required:!0},isLoading:{type:Boolean,default:!1},itemValidationScope:{type:String,default:""}},setup(t){const s=t,e=te(),d=B(()=>s.currency?s.currency:e.selectedCompanyCurrency);return(w,$)=>{const I=p("BaseContentPlaceholdersText"),y=p("BaseContentPlaceholders"),C=p("BaseIcon");return l(),v(Q,null,[a("table",Tt,[a("colgroup",null,[kt,Ct,Mt,t.store[t.storeProp].discount_per_item==="YES"?(l(),v("col",Dt)):A("",!0),Vt]),a("thead",jt,[a("tr",null,[a("th",qt,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Lt,_(w.$tc("items.item",2)),1))]),a("th",Et,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",At,_(w.$t("invoices.item.quantity")),1))]),a("th",Ot,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Ut,_(w.$t("invoices.item.price")),1))]),t.store[t.storeProp].discount_per_item==="YES"?(l(),v("th",zt,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Nt,_(w.$t("invoices.item.discount")),1))])):A("",!0),a("th",Ft,[t.isLoading?(l(),j(y,{key:0},{default:c(()=>[n(I,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("span",Yt,_(w.$t("invoices.item.amount")),1))])])]),n(o(qe),{modelValue:t.store[t.storeProp].items,"onUpdate:modelValue":$[0]||($[0]=m=>t.store[t.storeProp].items=m),"item-key":"id",tag:"tbody",handle:".handle"},{item:c(({element:m,index:q})=>[n(Pt,{key:m.id,index:q,"item-data":m,loading:t.isLoading,currency:o(d),"item-validation-scope":t.itemValidationScope,"invoice-items":t.store[t.storeProp].items,store:t.store,"store-prop":t.storeProp},null,8,["index","item-data","loading","currency","item-validation-scope","invoice-items","store","store-prop"])]),_:1},8,["modelValue"])]),a("div",{class:"flex items-center justify-center w-full px-6 py-3 text-base border border-t-0 border-gray-200 border-solid cursor-pointer text-primary-400 hover:bg-primary-100",onClick:$[1]||($[1]=(...m)=>t.store.addItem&&t.store.addItem(...m))},[n(C,{name:"PlusCircleIcon",class:"mr-2"}),E(" "+_(w.$t("general.add_new_item")),1)])],64)}}},Gt={class:"flex items-center justify-between w-full mt-2 text-sm"},Wt={class:"font-semibold leading-5 text-gray-500 uppercase"},Rt={class:"flex items-center justify-center text-lg text-black"},Xt={props:{index:{type:Number,required:!0},tax:{type:Object,required:!0},taxes:{type:Array,required:!0},currency:{type:[Object,String],required:!0},store:{type:Object,default:null},data:{type:String,default:""}},emits:["update","remove"],setup(t,{emit:s}){const e=t;ae("$utils");const d=B(()=>e.tax.compound_tax&&e.store.getSubtotalWithDiscount?Math.round((e.store.getSubtotalWithDiscount+e.store.getTotalSimpleTax)*e.tax.percent/100):e.store.getSubtotalWithDiscount&&e.tax.percent?Math.round(e.store.getSubtotalWithDiscount*e.tax.percent/100):0);Oe(()=>{e.store.getSubtotalWithDiscount&&w(),e.store.getTotalSimpleTax&&w()});function w(){s("update",G(N({},e.tax),{amount:d.value}))}return($,I)=>{const y=p("BaseFormatMoney"),C=p("BaseIcon");return l(),v("div",Gt,[a("label",Wt,_(t.tax.name)+" ("+_(t.tax.percent)+" %) ",1),a("label",Rt,[n(y,{amount:t.tax.amount,currency:t.currency},null,8,["amount","currency"]),n(C,{name:"TrashIcon",class:"h-5 ml-2 cursor-pointer",onClick:I[0]||(I[0]=m=>$.$emit("remove",t.tax.id))})])])}}},Ht={class:"w-full mt-4 tax-select"},Jt={class:"relative w-full max-w-md px-4"},Zt={class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5"},Kt={class:"relative bg-white"},Qt={class:"relative p-4"},es={key:0,class:"relative flex flex-col overflow-auto list max-h-36 border-t border-gray-200"},ts=["onClick"],ss={class:"flex justify-between px-2"},os={class:"m-0 text-base font-semibold leading-tight text-gray-700 cursor-pointer"},ns={class:"m-0 text-base font-semibold text-gray-700 cursor-pointer"},as={key:1,class:"flex justify-center p-5 text-gray-400"},rs={class:"text-base text-gray-500 cursor-pointer"},ls={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},is={props:{type:{type:String,default:null},store:{type:Object,default:null},storeProp:{type:String,default:""}},emits:["select:taxType"],setup(t,{emit:s}){const e=t,d=H(),w=ee(),$=ye(),{t:I}=J(),y=W(null),C=B(()=>y.value?w.taxTypes.filter(function(T){return T.name.toLowerCase().indexOf(y.value.toLowerCase())!==-1}):w.taxTypes),m=B(()=>e.store[e.storeProp].taxes);function q(T,i){s("select:taxType",N({},T)),i()}function V(){d.openModal({title:I("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:T=>s("select:taxType",T)})}return(T,i)=>{const r=p("BaseIcon"),u=p("BaseInput");return l(),v("div",Ht,[n(o(Fe),{class:"relative"},{default:c(({isOpen:h})=>[n(o(Ue),{class:X([h?"":"text-opacity-90","flex items-center text-sm font-medium text-primary-400 focus:outline-none focus:border-none"])},{default:c(()=>[n(r,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),E(" "+_(T.$t("settings.tax_types.add_tax")),1)]),_:2},1032,["class"]),a("div",Jt,[n(ze,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:c(()=>[n(o(Ne),{style:{"min-width":"350px","margin-left":"62px",top:"-28px"},class:"absolute z-10 px-4 py-2 -translate-x-full sm:px-0"},{default:c(({close:M})=>[a("div",Zt,[a("div",Kt,[a("div",Qt,[n(u,{modelValue:y.value,"onUpdate:modelValue":i[0]||(i[0]=x=>y.value=x),placeholder:T.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(C).length>0?(l(),v("div",es,[(l(!0),v(Q,null,se(o(C),(x,D)=>(l(),v("div",{key:D,class:X([{"bg-gray-100 cursor-not-allowed opacity-50 pointer-events-none":o(m).find(k=>k.tax_type_id===x.id)},"px-6 py-4 border-b border-gray-200 border-solid cursor-pointer hover:bg-gray-100 hover:cursor-pointer last:border-b-0"]),tabindex:"2",onClick:k=>q(x,M)},[a("div",ss,[a("label",os,_(x.name),1),a("label",ns,_(x.percent)+" % ",1)])],10,ts))),128))])):(l(),v("div",as,[a("label",rs,_(T.$t("general.no_tax_found")),1)]))]),o($).hasAbilities(o(ne).CREATE_TAX_TYPE)?(l(),v("button",{key:0,type:"button",class:"flex items-center justify-center w-full h-10 px-2 py-3 bg-gray-200 border-none outline-none",onClick:V},[n(r,{name:"CheckCircleIcon",class:"text-primary-400"}),a("label",ls,_(T.$t("estimates.add_new_tax")),1)])):A("",!0)])]),_:1})]),_:1})])]),_:1})])}}},ds={class:"px-5 py-4 mt-6 bg-white border border-gray-200 border-solid rounded md:min-w-[390px] min-w-[300px] lg:mt-7"},cs={class:"flex items-center justify-between w-full"},us={key:1,class:"text-sm font-semibold leading-5 text-gray-400 uppercase"},ms={key:3,class:"flex items-center justify-center m-0 text-lg text-black uppercase"},ps={key:1,class:"m-0 text-sm font-semibold leading-5 text-gray-500 uppercase"},ys={key:3,class:"flex items-center justify-center m-0 text-lg text-black uppercase"},xs={key:0,class:"flex items-center justify-between w-full mt-2"},fs={key:1,class:"text-sm font-semibold leading-5 text-gray-400 uppercase"},gs={key:3,class:"flex",style:{width:"140px"},role:"group"},hs={class:"flex items-center"},_s={key:1},bs={class:"flex items-center justify-between w-full pt-2 mt-5 border-t border-gray-200 border-solid"},vs={key:1,class:"m-0 text-sm font-semibold leading-5 text-gray-400 uppercase"},$s={key:3,class:"flex items-center justify-center text-lg uppercase text-primary-400"},Ks={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},taxPopupType:{type:String,default:""},currency:{type:[Object,String],default:""},isLoading:{type:Boolean,default:!1}},setup(t){const s=t,e=W(null);ae("$utils");const d=te(),w=B({get:()=>s.store[s.storeProp].discount,set:i=>{s.store[s.storeProp].discount_type==="percentage"?s.store[s.storeProp].discount_val=Math.round(s.store.getSubTotal*i/100):s.store[s.storeProp].discount_val=Math.round(i*100),s.store[s.storeProp].discount=i}}),$=B({get:()=>s.store[s.storeProp].taxes,set:i=>{s.store.$patch(r=>{r[s.storeProp].taxes=i})}}),I=B(()=>{let i=[];return s.store[s.storeProp].items.forEach(r=>{r.taxes&&r.taxes.forEach(u=>{let h=i.find(M=>M.tax_type_id===u.tax_type_id);h?h.amount+=u.amount:u.tax_type_id&&i.push({tax_type_id:u.tax_type_id,amount:u.amount,percent:u.percent,name:u.name})})}),i}),y=B(()=>s.currency?s.currency:d.selectedCompanyCurrency);function C(){s.store[s.storeProp].discount_type!=="fixed"&&(s.store[s.storeProp].discount_val=Math.round(s.store[s.storeProp].discount*100),s.store[s.storeProp].discount_type="fixed")}function m(){s.store[s.storeProp].discount_type!=="percentage"&&(s.store[s.storeProp].discount_val=s.store.getSubTotal*s.store[s.storeProp].discount/100,s.store[s.storeProp].discount_type="percentage")}function q(i){let r=0;i.compound_tax&&s.store.getSubtotalWithDiscount?r=Math.round((s.store.getSubtotalWithDiscount+s.store.getTotalSimpleTax)*i.percent/100):s.store.getSubtotalWithDiscount&&i.percent&&(r=Math.round(s.store.getSubtotalWithDiscount*i.percent/100));let u=G(N({},ne),{id:he.raw(),name:i.name,percent:i.percent,compound_tax:i.compound_tax,tax_type_id:i.id,amount:r});s.store.$patch(h=>{h[s.storeProp].taxes.push(N({},u))})}function V(i){const r=s.store[s.storeProp].taxes.find(u=>u.id===i.id);r&&Object.assign(r,N({},i))}function T(i){const r=s.store[s.storeProp].taxes.findIndex(u=>u.id===i);s.store.$patch(u=>{u[s.storeProp].taxes.splice(r,1)})}return(i,r)=>{const u=p("BaseContentPlaceholdersText"),h=p("BaseContentPlaceholders"),M=p("BaseFormatMoney"),x=p("BaseInput"),D=p("BaseIcon"),k=p("BaseButton"),f=p("BaseDropdownItem"),b=p("BaseDropdown");return l(),v("div",ds,[a("div",cs,[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",us,_(i.$t("estimates.sub_total")),1)),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",ms,[n(M,{amount:t.store.getSubTotal,currency:o(y)},null,8,["amount","currency"])]))]),(l(!0),v(Q,null,se(o(I),S=>(l(),v("div",{key:S.tax_type_id,class:"flex items-center justify-between w-full"},[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):t.store[t.storeProp].tax_per_item==="YES"?(l(),v("label",ps,_(S.name)+" - "+_(S.percent)+"% ",1)):A("",!0),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):t.store[t.storeProp].tax_per_item==="YES"?(l(),v("label",ys,[n(M,{amount:S.amount,currency:o(y)},null,8,["amount","currency"])])):A("",!0)]))),128)),t.store[t.storeProp].discount_per_item==="NO"||t.store[t.storeProp].discount_per_item===null?(l(),v("div",xs,[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",fs,_(i.$t("estimates.discount")),1)),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(),v("div",gs,[n(x,{modelValue:o(w),"onUpdate:modelValue":r[0]||(r[0]=S=>K(w)?w.value=S:null),class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue"]),n(b,{position:"bottom-end"},{activator:c(()=>[n(k,{class:"rounded-tr-md rounded-br-md p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[a("span",hs,[E(_(t.store[t.storeProp].discount_type=="fixed"?o(y).symbol:"%")+" ",1),n(D,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1})]),default:c(()=>[n(f,{onClick:C},{default:c(()=>[E(_(i.$t("general.fixed")),1)]),_:1}),n(f,{onClick:m},{default:c(()=>[E(_(i.$t("general.percentage")),1)]),_:1})]),_:1})]))])):A("",!0),t.store[t.storeProp].tax_per_item==="NO"||t.store[t.storeProp].tax_per_item===null?(l(),v("div",_s,[(l(!0),v(Q,null,se(o($),(S,L)=>(l(),j(Xt,{key:S.id,index:L,tax:S,taxes:o($),currency:t.currency,store:t.store,onRemove:T,onUpdate:V},null,8,["index","tax","taxes","currency","store"]))),128))])):A("",!0),t.store[t.storeProp].tax_per_item==="NO"||t.store[t.storeProp].tax_per_item===null?(l(),v("div",{key:2,ref:(S,L)=>{L.taxModal=S,e.value=S},class:"float-right pt-2 pb-4"},[n(is,{"store-prop":t.storeProp,store:t.store,type:t.taxPopupType,"onSelect:taxType":q},null,8,["store-prop","store","type"])],512)):A("",!0),a("div",bs,[t.isLoading?(l(),j(h,{key:0},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",vs,_(i.$t("estimates.total"))+" "+_(i.$t("estimates.amount"))+":",1)),t.isLoading?(l(),j(h,{key:2},{default:c(()=>[n(u,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),v("label",$s,[n(M,{amount:t.store.getTotal,currency:o(y)},null,8,["amount","currency"])]))])])}}},ws={class:"flex text-gray-800 font-medium text-sm mb-2"},Bs=a("span",{class:"text-sm text-red-500"}," *",-1),Qs={props:{store:{type:Object,default:null},storeProp:{type:String,default:""}},setup(t){const s=t,e=H(),{t:d}=J();function w(){e.openModal({title:d("general.choose_template"),componentName:"SelectTemplate",data:{templates:s.store.templates,store:s.store,storeProp:s.storeProp}})}return($,I)=>{const y=p("BaseIcon"),C=p("BaseButton");return l(),v("div",null,[a("label",ws,[E(_($.$t("general.select_template"))+" ",1),Bs]),n(C,{type:"button",class:"flex justify-center w-full text-sm lg:w-auto hover:bg-gray-200",variant:"gray",onClick:w},{right:c(m=>[n(y,{name:"PencilIcon",class:X(m.class)},null,8,["class"])]),default:c(()=>[E(" "+_(t.store[t.storeProp].template_name),1)]),_:1})])}}},Is={class:"mb-6"},Ss={class:"z-20 text-sm font-semibold leading-5 text-primary-400 float-right"},Ps={class:"text-gray-800 font-medium mb-4 text-sm"},eo={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},fields:{type:Object,default:null},type:{type:String,default:null}},setup(t){const s=t;function e(d){s.store[s.storeProp].notes=""+d.notes}return(d,w)=>{const $=p("BaseCustomInput");return l(),v("div",Is,[a("div",Ss,[n(Ge,{type:t.type,onSelect:e},null,8,["type"])]),a("label",Ps,_(d.$t("invoices.notes")),1),n($,{modelValue:t.store[t.storeProp].notes,"onUpdate:modelValue":w[0]||(w[0]=I=>t.store[t.storeProp].notes=I),"content-loading":t.store.isFetchingInitialSettings,fields:t.fields,class:"mt-1"},null,8,["modelValue","content-loading","fields"])])}}},Ts={class:"flex justify-between w-full"},ks={class:"px-8 py-8 sm:p-6"},Cs={key:0,class:"grid grid-cols-3 gap-2 p-1 overflow-x-auto"},Ms=["src","alt","onClick"],Ds=["alt","src"],Vs={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},to={setup(t){const s=H(),e=W(""),d=B(()=>s.active&&s.componentName==="SelectTemplate"),w=B(()=>s.title);function $(){s.data.store[s.data.storeProp].template_name?e.value=s.data.store[s.data.storeProp].template_name:e.value=s.data.templates[0]}async function I(){await s.data.store.setTemplate(e.value),C()}function y(){return new URL("/build/img/tick.png",self.location)}function C(){s.closeModal(),setTimeout(()=>{s.$reset()},300)}return(m,q)=>{const V=p("BaseIcon"),T=p("BaseButton"),i=p("BaseModal");return l(),j(i,{show:o(d),onClose:C,onOpen:$},{header:c(()=>[a("div",Ts,[E(_(o(w))+" ",1),n(V,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:C})])]),default:c(()=>[a("div",ks,[o(s).data?(l(),v("div",Cs,[(l(!0),v(Q,null,se(o(s).data.templates,(r,u)=>(l(),v("div",{key:u,class:X([{"border border-solid border-primary-500":e.value===r.name},"relative flex flex-col m-2 border border-gray-200 border-solid cursor-pointer hover:border-primary-300"])},[a("img",{src:r.path,alt:r.name,class:"w-full",onClick:h=>e.value=r.name},null,8,Ms),e.value===r.name?(l(),v("img",{key:0,alt:r.name,class:"absolute z-10 w-5 h-5 text-primary-500",style:{top:"-6px",right:"-5px"},src:y()},null,8,Ds)):A("",!0),a("span",{class:X(["w-full p-1 bg-gray-200 text-sm text-center absolute bottom-0 left-0",{"text-primary-500 bg-primary-100":e.value===r.name,"text-gray-600":e.value!=r.name}])},_(r.name),3)],2))),128))])):A("",!0)]),a("div",Vs,[n(T,{class:"mr-3",variant:"primary-outline",onClick:C},{default:c(()=>[E(_(m.$t("general.cancel")),1)]),_:1}),n(T,{variant:"primary",onClick:q[0]||(q[0]=r=>I())},{left:c(r=>[n(V,{name:"SaveIcon",class:X(r.class)},null,8,["class"])]),default:c(()=>[E(" "+_(m.$t("general.choose")),1)]),_:1})])]),_:1},8,["show"])}}},js={class:"flex justify-between w-full"},qs={class:"item-modal"},Ls=["onSubmit"],Es={class:"px-8 py-8 sm:p-6"},As={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},so={emits:["newItem"],setup(t,{emit:s}){const e=H(),d=xe(),w=te(),$=ee();Me(),De();const{t:I}=J(),y=W(!1),C=W(w.selectedCompanySettings.tax_per_item),m=B(()=>e.active&&e.componentName==="ItemModal"),q=B({get:()=>d.currentItem.price/100,set:x=>{d.currentItem.price=Math.round(x*100)}}),V=B({get:()=>d.currentItem.taxes.map(x=>{if(x)return G(N({},x),{tax_type_id:x.id,tax_name:x.name+" ("+x.percent+"%)"})}),set:x=>{d.$patch(D=>{D.currentItem.taxes=x})}}),T=B(()=>C.value==="YES"),i={name:{required:U.withMessage(I("validation.required"),R),minLength:U.withMessage(I("validation.name_min_length",{count:3}),Ye(3))},description:{maxLength:U.withMessage(I("validation.description_maxlength",{count:255}),oe(255))}},r=le(i,B(()=>d.currentItem)),u=B(()=>$.taxTypes.map(x=>G(N({},x),{tax_name:x.name+" ("+x.percent+"%)"})));_e(()=>{r.value.$reset(),d.fetchItemUnits({limit:"all"})});async function h(){if(r.value.$touch(),r.value.$invalid)return!0;let x=G(N({},d.currentItem),{taxes:d.currentItem.taxes.map(k=>({tax_type_id:k.id,amount:q.value*k.percent/100,percent:k.percent,name:k.name,collective_tax:0}))});y.value=!0,await(d.isEdit?d.updateItem:d.addItem)(x).then(k=>{y.value=!1,k.data.data&&e.data&&e.refreshData(k.data.data),M()})}function M(){e.closeModal(),setTimeout(()=>{d.resetCurrentItem(),e.$reset(),r.value.$reset()},300)}return(x,D)=>{const k=p("BaseIcon"),f=p("BaseInput"),b=p("BaseInputGroup"),S=p("BaseMoney"),L=p("BaseMultiselect"),g=p("BaseTextarea"),P=p("BaseInputGrid"),O=p("BaseButton"),Y=p("BaseModal");return l(),j(Y,{show:o(m),onClose:M},{header:c(()=>[a("div",js,[E(_(o(e).title)+" ",1),n(k,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:M})])]),default:c(()=>[a("div",qs,[a("form",{action:"",onSubmit:be(h,["prevent"])},[a("div",Es,[n(P,{layout:"one-column"},{default:c(()=>[n(b,{label:x.$t("items.name"),required:"",error:o(r).name.$error&&o(r).name.$errors[0].$message},{default:c(()=>[n(f,{modelValue:o(d).currentItem.name,"onUpdate:modelValue":D[0]||(D[0]=z=>o(d).currentItem.name=z),type:"text",invalid:o(r).name.$error,onInput:D[1]||(D[1]=z=>o(r).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),n(b,{label:x.$t("items.price")},{default:c(()=>[n(S,{key:o(w).selectedCompanyCurrency,modelValue:o(q),"onUpdate:modelValue":D[2]||(D[2]=z=>K(q)?q.value=z:null),currency:o(w).selectedCompanyCurrency,class:"relative w-full focus:border focus:border-solid focus:border-primary"},null,8,["modelValue","currency"])]),_:1},8,["label"]),n(b,{label:x.$t("items.unit")},{default:c(()=>[n(L,{modelValue:o(d).currentItem.unit_id,"onUpdate:modelValue":D[3]||(D[3]=z=>o(d).currentItem.unit_id=z),label:"name",options:o(d).itemUnits,"value-prop":"id","can-deselect":!1,"can-clear":!1,placeholder:x.$t("items.select_a_unit"),searchable:"","track-by":"id"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),o(T)?(l(),j(b,{key:0,label:x.$t("items.taxes")},{default:c(()=>[n(L,{modelValue:o(V),"onUpdate:modelValue":D[4]||(D[4]=z=>K(V)?V.value=z:null),options:o(u),label:"name","value-prop":"id",class:"w-full","can-deselect":!1,"can-clear":!1,searchable:"","track-by":"id",object:""},null,8,["modelValue","options"])]),_:1},8,["label"])):A("",!0),n(b,{label:x.$t("items.description"),error:o(r).description.$error&&o(r).description.$errors[0].$message},{default:c(()=>[n(g,{modelValue:o(d).currentItem.description,"onUpdate:modelValue":D[5]||(D[5]=z=>o(d).currentItem.description=z),rows:"4",cols:"50",invalid:o(r).description.$error,onInput:D[6]||(D[6]=z=>o(r).description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),a("div",As,[n(O,{class:"mr-3",variant:"primary-outline",type:"button",onClick:M},{default:c(()=>[E(_(x.$t("general.cancel")),1)]),_:1}),n(O,{loading:y.value,disabled:y.value,variant:"primary",type:"submit"},{left:c(z=>[n(k,{name:"SaveIcon",class:X(z.class)},null,8,["class"])]),default:c(()=>[E(" "+_(o(d).isEdit?x.$t("general.update"):x.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Ls)])]),_:1},8,["show"])}}},Os={class:"flex justify-between w-full"},Us={class:"flex flex-col"},zs={class:"text-sm text-gray-500 mt-1"},Ns=["onSubmit"],Fs={class:"p-4 sm:p-6"},Ys={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Gs={emits:["addTax"],setup(t,{emit:s}){const e=H();Ve();const d=fe({state:"",city:"",address_street_1:"",zip:""}),w=W(!1),$=ee(),{t:I}=J(),y=B(()=>e.active&&e.componentName==="TaxationAddressModal"),C=B(()=>({state:{required:U.withMessage(I("validation.required"),R)},city:{required:U.withMessage(I("validation.required"),R)},address_street_1:{required:U.withMessage(I("validation.required"),R)},zip:{required:U.withMessage(I("validation.required"),R)}})),m=le(C,B(()=>d));async function q(){if(m.value.$touch(),m.value.$invalid)return!0;let i={address:d};e.id&&(i.customer_id=e.id),d.address_street_1=d.address_street_1.replace(/(\r\n|\n|\r)/gm,""),w.value=!0,await $.fetchSalesTax(i).then(r=>{w.value=!1,s("addTax",r.data.data),T()}).catch(r=>{w.value=!1})}function V(){var i,r,u,h;d.state=(i=e==null?void 0:e.data)==null?void 0:i.state,d.city=(r=e==null?void 0:e.data)==null?void 0:r.city,d.address_street_1=(u=e==null?void 0:e.data)==null?void 0:u.address_street_1,d.zip=(h=e==null?void 0:e.data)==null?void 0:h.zip}function T(){e.closeModal()}return(i,r)=>{const u=p("BaseIcon"),h=p("BaseInput"),M=p("BaseInputGroup"),x=p("BaseTextarea"),D=p("BaseInputGrid"),k=p("BaseButton"),f=p("BaseModal");return l(),j(f,{show:o(y),onClose:T,onOpen:V},{header:c(()=>[a("div",Os,[a("div",Us,[E(_(o(e).title)+" ",1),a("p",zs,_(o(e).content),1)]),n(u,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:T})])]),default:c(()=>[a("form",{onSubmit:be(q,["prevent"])},[a("div",Fs,[n(D,{layout:"one-column"},{default:c(()=>[n(M,{required:"",error:o(m).state.$error&&o(m).state.$errors[0].$message,label:i.$t("customers.state")},{default:c(()=>[n(h,{modelValue:o(d).state,"onUpdate:modelValue":r[0]||(r[0]=b=>o(d).state=b),type:"text",name:"shippingState",class:"mt-1 md:mt-0",invalid:o(m).state.$error,onInput:r[1]||(r[1]=b=>o(m).state.$touch()),placeholder:i.$t("settings.taxations.state_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),n(M,{required:"",error:o(m).city.$error&&o(m).city.$errors[0].$message,label:i.$t("customers.city")},{default:c(()=>[n(h,{modelValue:o(d).city,"onUpdate:modelValue":r[2]||(r[2]=b=>o(d).city=b),type:"text",name:"shippingCity",class:"mt-1 md:mt-0",invalid:o(m).city.$error,onInput:r[3]||(r[3]=b=>o(m).city.$touch()),placeholder:i.$t("settings.taxations.city_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),n(M,{required:"",error:o(m).address_street_1.$error&&o(m).address_street_1.$errors[0].$message,label:i.$t("customers.address")},{default:c(()=>[n(x,{modelValue:o(d).address_street_1,"onUpdate:modelValue":r[4]||(r[4]=b=>o(d).address_street_1=b),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:o(m).address_street_1.$error,onInput:r[5]||(r[5]=b=>o(m).address_street_1.$touch()),placeholder:i.$t("settings.taxations.address_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),n(M,{required:"",error:o(m).zip.$error&&o(m).zip.$errors[0].$message,label:i.$t("customers.zip_code")},{default:c(()=>[n(h,{modelValue:o(d).zip,"onUpdate:modelValue":r[6]||(r[6]=b=>o(d).zip=b),invalid:o(m).zip.$error,onInput:r[7]||(r[7]=b=>o(m).zip.$touch()),type:"text",class:"mt-1 md:mt-0",placeholder:i.$t("settings.taxations.zip_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"])]),_:1})]),a("div",Ys,[n(k,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:T},{default:c(()=>[E(_(i.$t("general.cancel")),1)]),_:1}),n(k,{loading:w.value,variant:"primary",type:"submit"},{left:c(b=>[w.value?A("",!0):(l(),j(u,{key:0,name:"SaveIcon",class:X(b.class)},null,8,["class"]))]),default:c(()=>[E(" "+_(i.$t("general.save")),1)]),_:1},8,["loading"])])],40,Ns)]),_:1},8,["show"])}}},oo={props:{isEdit:{type:Boolean,default:null},type:{type:String,default:null},customer:{type:[Object],default:null},store:{type:Object,default:null},storeProp:{type:String,default:null}},setup(t){const s=t,e="Sales Tax",d="MODULE",w=H(),$=te(),I=ee(),{t:y}=J(),C=W(!1),m=B(()=>s.isEdit?s.store[s.storeProp].sales_tax_address_type==="billing":$.selectedCompanySettings.sales_tax_address_type==="billing"),q=B(()=>$.selectedCompanySettings.sales_tax_us_enabled==="YES"),V=B(()=>s.isEdit?s.store[s.storeProp].sales_tax_type==="customer_level":$.selectedCompanySettings.sales_tax_type==="customer_level"),T=B(()=>s.isEdit?s.store[s.storeProp].sales_tax_type==="company_level":$.selectedCompanySettings.sales_tax_type==="company_level"),i=B(()=>{if(V.value&&r.value){let f=m.value?s.customer.billing:s.customer.shipping;return{address:Z.exports.pick(f,["address_street_1","city","state","zip"]),customer_id:s.customer.id}}else if(T.value&&r.value)return{address:Z.exports.pick(address,["address_street_1","city","state","zip"])}}),r=B(()=>{var f,b;if(V.value){let S=m.value?(f=s.customer)==null?void 0:f.billing:(b=s.customer)==null?void 0:b.shipping;return u(S)}else if(T.value)return u($.selectedCompany.address);return!1});re(()=>s.customer,(f,b)=>{if(f&&b&&V.value){h(f,b);return}!r.value&&V.value&&f?setTimeout(()=>{M()},500):V.value&&f?x():V.value&&!f&&k()}),_e(()=>{T.value&&(r.value?x():M())});function u(f){return f?f.address_street_1&&f.city&&f.state&&f.zip:!1}function h(f,b){const S=m.value?f.billing:f.shipping,L=m.value?b.billing:b.shipping,g=Z.exports.pick(S,["address_street_1","city","state","zip"]),P=Z.exports.pick(L,["address_street_1","city","state","zip"]);Z.exports.isEqual(g,P)||x()}function M(){var S,L;if(!q.value)return;let f=null,b="";V.value?m.value?(f=(S=s.customer)==null?void 0:S.billing,b=y("settings.taxations.add_billing_address")):(f=(L=s.customer)==null?void 0:L.shipping,b=y("settings.taxations.add_shipping_address")):(f=$.selectedCompany.address,b=y("settings.taxations.add_company_address")),w.openModal({title:b,content:y("settings.taxations.modal_description"),componentName:"TaxationAddressModal",data:f,id:V.value?s.customer.id:""})}async function x(){!q.value||(C.value=!0,await I.fetchSalesTax(i.value).then(f=>{D(f.data.data),C.value=!1}).catch(f=>{f.response.data.error&&setTimeout(()=>{M()},500),C.value=!1}))}function D(f){f.tax_type_id=f.id;const b=s.store[s.storeProp].taxes.findIndex(S=>S.name===e&&S.type===d);b>-1?Object.assign(s.store[s.storeProp].taxes[b],f):s.store[s.storeProp].taxes.push(f)}function k(){const f=s.store[s.storeProp].taxes.findIndex(S=>S.name===e&&S.type===d);f>-1&&s.store[s.storeProp].taxes.splice(f,1);let b=I.taxTypes.findIndex(S=>S.name===e&&S.type===d);b>-1&&I.taxTypes.splice(b,1)}return(f,b)=>(l(),j(Gs,{onAddTax:D}))}};export{to as _,so as a,oo as b,Zs as c,eo as d,Qs as e,Ks as f};
var P=Object.defineProperty;var b=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(s,t,e)=>t in s?P(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,x=(s,t)=>{for(var e in t||(t={}))A.call(t,e)&&g(s,e,t[e]);if(b)for(var e of b(t))T.call(t,e)&&g(s,e,t[e]);return s};import{B as k,J as F,k as L,r as w,o as l,e as i,f as r,h as n,w as p,u as o,l as O,i as D,t as m,m as U,W,j as N,Y as G,X as J,F as B,y as X,Z as Y}from"./vendor.01d0adc5.js";import{u as Z,_ as q}from"./NoteModal.f6d01f84.js";import{c as H,e as K,g as C}from"./main.75722495.js";const Q={class:"w-full"},R={class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5"},ee={class:"relative grid bg-white"},te={class:"relative p-4"},se={key:0,class:"relative flex flex-col overflow-auto list max-h-36"},oe=["onClick"],ae={class:"flex justify-between px-2"},ne={class:"m-0 text-base font-semibold leading-tight text-gray-700 cursor-pointer"},le={key:1,class:"flex justify-center p-5 text-gray-400"},re={class:"text-base text-gray-500"},ie={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},fe={props:{type:{type:String,default:null}},emits:["select"],setup(s,{emit:t}){const e=s;k(null);const{t:I}=F(),c=k(null),S=H(),d=Z(),y=K(),_=L(()=>c.value?d.notes.filter(function(a){return a.name.toLowerCase().indexOf(c.value.toLowerCase())!==-1}):d.notes);async function V(){await d.fetchNotes({filter:{},orderByField:"",orderBy:"",type:e.type?e.type:""})}function j(a,u){t("select",x({},d.notes[a])),c.value=null,u()}function z(){S.openModal({title:I("settings.customization.notes.add_note"),componentName:"NoteModal",size:"lg",data:e.type})}return(a,u)=>{const h=w("BaseIcon"),M=w("BaseInput");return l(),i(B,null,[r(q),n("div",Q,[r(o(Y),null,{default:p(({isOpen:$})=>[o(y).hasAbilities(o(C).VIEW_NOTE)?(l(),O(o(W),{key:0,class:U([$?"":"text-opacity-90","flex items-center z-10 font-medium text-primary-400 focus:outline-none focus:border-none"]),onClick:V},{default:p(()=>[r(h,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),D(" "+m(a.$t("general.insert_note")),1)]),_:2},1032,["class"])):N("",!0),r(G,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:p(()=>[r(o(J),{class:"absolute z-20 px-4 mt-3 sm:px-0 w-screen max-w-full left-0 top-3"},{default:p(({close:E})=>[n("div",R,[n("div",ee,[n("div",te,[r(M,{modelValue:c.value,"onUpdate:modelValue":u[0]||(u[0]=f=>c.value=f),placeholder:a.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(_).length>0?(l(),i("div",se,[(l(!0),i(B,null,X(o(_),(f,v)=>(l(),i("div",{key:v,tabindex:"2",class:"px-6 py-4 border-b border-gray-200 border-solid cursor-pointer hover:bg-gray-100 hover:cursor-pointer last:border-b-0",onClick:ce=>j(v,E)},[n("div",ae,[n("label",ne,m(f.name),1)])],8,oe))),128))])):(l(),i("div",le,[n("label",re,m(a.$t("general.no_note_found")),1)]))]),o(y).hasAbilities(o(C).MANAGE_NOTE)?(l(),i("button",{key:0,type:"button",class:"h-10 flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",onClick:z},[r(h,{name:"CheckCircleIcon",class:"text-primary-400"}),n("label",ie,m(a.$t("settings.customization.notes.add_new_note")),1)])):N("",!0)])]),_:1})]),_:1})]),_:1})])],64)}}};export{fe as _};
import{J as A,B as h,a0 as O,k as C,L as p,M as B,Q as E,T as J,r as d,o as g,l as M,w as l,h as v,i as f,t as $,u as e,f as a,e as N,j as x}from"./vendor.01d0adc5.js";import{c as Q,k as X,u as H,b as K}from"./main.75722495.js";import{u as W}from"./mail-driver.4ea1af6b.js";const Y={class:"flex justify-between w-full"},Z={key:0,action:""},ee={class:"px-8 py-8 sm:p-6"},te={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ae={key:1},oe={class:"my-6 mx-4 border border-gray-200 relative"},re=f(" Edit "),se=["src"],le={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},me={setup(ne){const m=Q(),V=X(),U=H(),k=K();W();const{t:u}=A(),n=h(!1),I=h(""),b=h(!1),P=h(["customer","customerCustom","estimate","estimateCustom","company"]);let o=O({id:null,from:null,to:null,subject:"New Estimate",body:null});const D=C(()=>m.active&&m.componentName==="SendEstimateModal"),q=C(()=>m.data),G={from:{required:p.withMessage(u("validation.required"),B),email:p.withMessage(u("validation.email_incorrect"),E)},to:{required:p.withMessage(u("validation.required"),B),email:p.withMessage(u("validation.email_incorrect"),E)},subject:{required:p.withMessage(u("validation.required"),B)},body:{required:p.withMessage(u("validation.required"),B)}},r=J(G,C(()=>o));function L(){b.value=!1}async function F(){let s=await k.fetchBasicMailConfig();o.id=m.id,s.data&&(o.from=s.data.from_mail),q.value&&(o.to=q.value.customer.email),o.body=k.selectedCompanySettings.estimate_mail_body}async function S(){if(r.value.$touch(),r.value.$invalid)return!0;try{if(n.value=!0,!b.value){const c=await V.previewEstimate(o);n.value=!1,b.value=!0;var s=new Blob([c.data],{type:"text/html"});I.value=URL.createObjectURL(s);return}const t=await V.sendEstimate(o);if(n.value=!1,t.data.success)return y(),!0}catch(t){console.error(t),n.value=!1,U.showNotification({type:"error",message:u("estimates.something_went_wrong")})}}function y(){m.closeModal(),setTimeout(()=>{r.value.$reset(),b.value=!1,I.value=null},300)}return(s,t)=>{const c=d("BaseIcon"),j=d("BaseInput"),w=d("BaseInputGroup"),R=d("BaseCustomInput"),T=d("BaseInputGrid"),_=d("BaseButton"),z=d("BaseModal");return g(),M(z,{show:e(D),onClose:y,onOpen:F},{header:l(()=>[v("div",Y,[f($(e(m).title)+" ",1),a(c,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:y})])]),default:l(()=>[b.value?(g(),N("div",ae,[v("div",oe,[a(_,{class:"absolute top-4 right-4",disabled:n.value,variant:"primary-outline",onClick:L},{default:l(()=>[a(c,{name:"PencilIcon",class:"h-5 mr-2"}),re]),_:1},8,["disabled"]),v("iframe",{src:I.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,se)]),v("div",le,[a(_,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(_,{loading:n.value,disabled:n.value,variant:"primary",type:"button",onClick:S},{default:l(()=>[n.value?x("",!0):(g(),M(c,{key:0,name:"PaperAirplaneIcon",class:"mr-2"})),f(" "+$(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(g(),N("form",Z,[v("div",ee,[a(T,{layout:"one-column"},{default:l(()=>[a(w,{label:s.$t("general.from"),required:"",error:e(r).from.$error&&e(r).from.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).from,"onUpdate:modelValue":t[0]||(t[0]=i=>e(o).from=i),type:"text",invalid:e(r).from.$error,onInput:t[1]||(t[1]=i=>e(r).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.to"),required:"",error:e(r).to.$error&&e(r).to.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).to,"onUpdate:modelValue":t[2]||(t[2]=i=>e(o).to=i),type:"text",invalid:e(r).to.$error,onInput:t[3]||(t[3]=i=>e(r).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.subject"),required:"",error:e(r).subject.$error&&e(r).subject.$errors[0].$message},{default:l(()=>[a(j,{modelValue:e(o).subject,"onUpdate:modelValue":t[4]||(t[4]=i=>e(o).subject=i),type:"text",invalid:e(r).subject.$error,onInput:t[5]||(t[5]=i=>e(r).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.body"),required:""},{default:l(()=>[a(R,{modelValue:e(o).body,"onUpdate:modelValue":t[6]||(t[6]=i=>e(o).body=i),fields:P.value},null,8,["modelValue","fields"])]),_:1},8,["label"])]),_:1})]),v("div",te,[a(_,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:l(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(_,{loading:n.value,disabled:n.value,variant:"primary",type:"button",class:"mr-3",onClick:S},{default:l(()=>[n.value?x("",!0):(g(),M(c,{key:0,name:"PhotographIcon",class:"h-5 mr-2"})),f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{me as _};
import{c as O,b as J,u as Q,i as X}from"./main.75722495.js";import{J as H,B as I,a0 as K,k as B,L as p,M as h,Q as N,T as W,r as d,o as _,l as M,w as n,h as v,i as f,t as $,u as e,f as a,e as x,m as Y,j as U}from"./vendor.01d0adc5.js";import{u as Z}from"./mail-driver.4ea1af6b.js";const ee={class:"flex justify-between w-full"},oe={key:0,action:""},te={class:"px-8 py-8 sm:p-6"},ae={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},re={key:1},se={class:"my-6 mx-4 border border-gray-200 relative"},le=f(" Edit "),ne=["src"],ie={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},pe={setup(ue){const c=O(),V=J(),P=Q(),k=X();Z();const{t:u}=H();let i=I(!1);const C=I(""),b=I(!1),D=I(["customer","customerCustom","invoice","invoiceCustom","company"]),r=K({id:null,from:null,to:null,subject:"New Invoice",body:null}),G=B(()=>c.active&&c.componentName==="SendInvoiceModal"),L=B(()=>c.title),q=B(()=>c.data),T={from:{required:p.withMessage(u("validation.required"),h),email:p.withMessage(u("validation.email_incorrect"),N)},to:{required:p.withMessage(u("validation.required"),h),email:p.withMessage(u("validation.email_incorrect"),N)},subject:{required:p.withMessage(u("validation.required"),h)},body:{required:p.withMessage(u("validation.required"),h)}},t=W(T,B(()=>r));function z(){b.value=!1}async function F(){let s=await V.fetchBasicMailConfig();r.id=c.id,s.data&&(r.from=s.data.from_mail),q.value&&(r.to=q.value.customer.email),r.body=V.selectedCompanySettings.invoice_mail_body}async function S(){if(t.value.$touch(),t.value.$invalid)return!0;try{if(i.value=!0,!b.value){const m=await k.previewInvoice(r);i.value=!1,b.value=!0;var s=new Blob([m.data],{type:"text/html"});C.value=URL.createObjectURL(s);return}if((await k.sendInvoice(r)).data.success)return y(),!0}catch(o){console.error(o),i.value=!1,P.showNotification({type:"error",message:u("invoices.something_went_wrong")})}}function y(){c.closeModal(),setTimeout(()=>{t.value.$reset(),b.value=!1,C.value=null},300)}return(s,o)=>{const m=d("BaseIcon"),j=d("BaseInput"),w=d("BaseInputGroup"),R=d("BaseCustomInput"),A=d("BaseInputGrid"),g=d("BaseButton"),E=d("BaseModal");return _(),M(E,{show:e(G),onClose:y,onOpen:F},{header:n(()=>[v("div",ee,[f($(e(L))+" ",1),a(m,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:y})])]),default:n(()=>[b.value?(_(),x("div",re,[v("div",se,[a(g,{class:"absolute top-4 right-4",disabled:e(i),variant:"primary-outline",onClick:z},{default:n(()=>[a(m,{name:"PencilIcon",class:"h-5 mr-2"}),le]),_:1},8,["disabled"]),v("iframe",{src:C.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,ne)]),v("div",ie,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:n(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(g,{loading:e(i),disabled:e(i),variant:"primary",type:"button",onClick:o[7]||(o[7]=l=>S())},{default:n(()=>[e(i)?U("",!0):(_(),M(m,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),f(" "+$(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(_(),x("form",oe,[v("div",te,[a(A,{layout:"one-column",class:"col-span-7"},{default:n(()=>[a(w,{label:s.$t("general.from"),required:"",error:e(t).from.$error&&e(t).from.$errors[0].$message},{default:n(()=>[a(j,{modelValue:e(r).from,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).from=l),type:"text",invalid:e(t).from.$error,onInput:o[1]||(o[1]=l=>e(t).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{label:s.$t("general.to"),required:"",error:e(t).to.$error&&e(t).to.$errors[0].$message},{default:n(()=>[a(j,{modelValue:e(r).to,"onUpdate:modelValue":o[2]||(o[2]=l=>e(r).to=l),type:"text",invalid:e(t).to.$error,onInput:o[3]||(o[3]=l=>e(t).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(w,{error:e(t).subject.$error&&e(t).subject.$errors[0].$message,label:s.$t("general.subject"),required:""},{default:n(()=>[a(j,{modelValue:e(r).subject,"onUpdate:modelValue":o[4]||(o[4]=l=>e(r).subject=l),type:"text",invalid:e(t).subject.$error,onInput:o[5]||(o[5]=l=>e(t).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),a(w,{label:s.$t("general.body"),error:e(t).body.$error&&e(t).body.$errors[0].$message,required:""},{default:n(()=>[a(R,{modelValue:e(r).body,"onUpdate:modelValue":o[6]||(o[6]=l=>e(r).body=l),fields:D.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),v("div",ae,[a(g,{class:"mr-3",variant:"primary-outline",type:"button",onClick:y},{default:n(()=>[f($(s.$t("general.cancel")),1)]),_:1}),a(g,{loading:e(i),disabled:e(i),variant:"primary",type:"button",class:"mr-3",onClick:S},{left:n(l=>[e(i)?U("",!0):(_(),M(m,{key:0,class:Y(l.class),name:"PhotographIcon"},null,8,["class"]))]),default:n(()=>[f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{pe as _};
import{j as G,u as R,e as K,c as Y,g as j,b as Z}from"./main.75722495.js";import{J as O,G as ee,aN as te,ah as ae,r as d,o as m,l as p,w as o,u as e,f as a,i as y,t as v,j as B,B as E,a0 as oe,k as z,L as k,M as x,Q as F,T as ne,h as M,e as H,m as re}from"./vendor.01d0adc5.js";import{u as W}from"./payment.5c57bec3.js";import{u as se}from"./mail-driver.4ea1af6b.js";const _e={props:{row:{type:Object,default:null},table:{type:Object,default:null},contentLoading:{type:Boolean,default:!1}},setup(w){const I=w,C=G(),_=R(),{t:$}=O(),g=W(),l=ee(),P=te(),c=K(),T=Y(),r=ae("utils");function q(i){C.openDialog({title:$("general.are_you_sure"),message:$("payments.confirm_delete",1),yesLabel:$("general.ok"),noLabel:$("general.cancel"),variant:"danger",size:"lg",hideNoButton:!1}).then(async t=>{if(t)return await g.deletePayment({ids:[i]}),P.push("/admin/payments"),I.table&&I.table.refresh(),!0})}function A(){var t;let i=`${window.location.origin}/payments/pdf/${(t=I.row)==null?void 0:t.unique_hash}`;r.copyTextToClipboard(i),_.showNotification({type:"success",message:$("general.copied_pdf_url_clipboard")})}async function D(i){T.openModal({title:$("payments.send_payment"),componentName:"SendPaymentModal",id:i.id,data:i,variant:"lg"})}return(i,t)=>{const b=d("BaseIcon"),L=d("BaseButton"),N=d("BaseDropdown-item"),f=d("BaseDropdownItem"),s=d("router-link"),n=d("BaseDropdown");return m(),p(n,{"content-loading":w.contentLoading},{activator:o(()=>[e(l).name==="payments.view"?(m(),p(L,{key:0,variant:"primary"},{default:o(()=>[a(b,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(m(),p(b,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:o(()=>[e(l).name==="payments.view"&&e(c).hasAbilities(e(j).VIEW_PAYMENT)?(m(),p(N,{key:0,class:"rounded-md",onClick:A},{default:o(()=>[a(b,{name:"LinkIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.copy_pdf_url")),1)]),_:1})):B("",!0),e(c).hasAbilities(e(j).EDIT_PAYMENT)?(m(),p(s,{key:1,to:`/admin/payments/${w.row.id}/edit`},{default:o(()=>[a(f,null,{default:o(()=>[a(b,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.edit")),1)]),_:1})]),_:1},8,["to"])):B("",!0),e(l).name!=="payments.view"&&e(c).hasAbilities(e(j).VIEW_PAYMENT)?(m(),p(s,{key:2,to:`/admin/payments/${w.row.id}/view`},{default:o(()=>[a(f,null,{default:o(()=>[a(b,{name:"EyeIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.view")),1)]),_:1})]),_:1},8,["to"])):B("",!0),w.row.status!=="SENT"&&e(l).name!=="payments.view"&&e(c).hasAbilities(e(j).SEND_PAYMENT)?(m(),p(f,{key:3,onClick:t[0]||(t[0]=h=>D(w.row))},{default:o(()=>[a(b,{name:"PaperAirplaneIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("payments.send_payment")),1)]),_:1})):B("",!0),e(c).hasAbilities(e(j).DELETE_PAYMENT)?(m(),p(f,{key:4,onClick:t[1]||(t[1]=h=>q(w.row.id))},{default:o(()=>[a(b,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),y(" "+v(i.$t("general.delete")),1)]),_:1})):B("",!0)]),_:1},8,["content-loading"])}}},le={class:"flex justify-between w-full"},ie={key:0,action:""},ue={class:"px-8 py-8 sm:p-6"},de={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},me={key:1},ce={class:"my-6 mx-4 border border-gray-200 relative"},pe=y(" Edit "),ye=["src"],fe={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},$e={setup(w){const I=W(),C=Z(),_=Y(),$=R();se(),G();const{t:g}=O();let l=E(!1);const P=E(""),c=E(!1),T=E(["customer","customerCustom","payments","paymentsCustom","company"]),r=oe({id:null,from:null,to:null,subject:"New Payment",body:null}),q=z(()=>_.active&&_.componentName==="SendPaymentModal"),A=z(()=>_.title),D=z(()=>_.data),i={from:{required:k.withMessage(g("validation.required"),x),email:k.withMessage(g("validation.email_incorrect"),F)},to:{required:k.withMessage(g("validation.required"),x),email:k.withMessage(g("validation.email_incorrect"),F)},subject:{required:k.withMessage(g("validation.required"),x)},body:{required:k.withMessage(g("validation.required"),x)}},t=ne(i,r);function b(){c.value=!1}async function L(){let s=await C.fetchBasicMailConfig();r.id=_.id,s.data&&(r.from=s.data.from_mail),D.value&&(r.to=D.value.customer.email),r.body=C.selectedCompanySettings.payment_mail_body}async function N(){if(t.value.$touch(),t.value.$invalid)return!0;try{if(l.value=!0,!c.value){const h=await I.previewPayment(r);l.value=!1,c.value=!0;var s=new Blob([h.data],{type:"text/html"});P.value=URL.createObjectURL(s);return}if((await I.sendEmail(r)).data.success)return f(),!0}catch{l.value=!1,$.showNotification({type:"error",message:g("payments.something_went_wrong")})}}function f(){setTimeout(()=>{t.value.$reset(),c.value=!1,P.value=null,_.resetModalData()},300)}return(s,n)=>{const h=d("BaseIcon"),U=d("BaseInput"),V=d("BaseInputGroup"),J=d("BaseCustomInput"),Q=d("BaseInputGrid"),S=d("BaseButton"),X=d("BaseModal");return m(),p(X,{show:e(q),onClose:f,onOpen:L},{header:o(()=>[M("div",le,[y(v(e(A))+" ",1),a(h,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:f})])]),default:o(()=>[c.value?(m(),H("div",me,[M("div",ce,[a(S,{class:"absolute top-4 right-4",disabled:e(l),variant:"primary-outline",onClick:b},{default:o(()=>[a(h,{name:"PencilIcon",class:"h-5 mr-2"}),pe]),_:1},8,["disabled"]),M("iframe",{src:P.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,ye)]),M("div",fe,[a(S,{class:"mr-3",variant:"primary-outline",type:"button",onClick:f},{default:o(()=>[y(v(s.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(l),disabled:e(l),variant:"primary",type:"button",onClick:n[7]||(n[7]=u=>N())},{default:o(()=>[e(l)?B("",!0):(m(),p(h,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),y(" "+v(s.$t("general.send")),1)]),_:1},8,["loading","disabled"])])])):(m(),H("form",ie,[M("div",ue,[a(Q,{layout:"one-column",class:"col-span-7"},{default:o(()=>[a(V,{label:s.$t("general.from"),required:"",error:e(t).from.$error&&e(t).from.$errors[0].$message},{default:o(()=>[a(U,{modelValue:e(r).from,"onUpdate:modelValue":n[0]||(n[0]=u=>e(r).from=u),type:"text",invalid:e(t).from.$error,onInput:n[1]||(n[1]=u=>e(t).from.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(V,{label:s.$t("general.to"),required:"",error:e(t).to.$error&&e(t).to.$errors[0].$message},{default:o(()=>[a(U,{modelValue:e(r).to,"onUpdate:modelValue":n[2]||(n[2]=u=>e(r).to=u),type:"text",invalid:e(t).to.$error,onInput:n[3]||(n[3]=u=>e(t).to.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(V,{error:e(t).subject.$error&&e(t).subject.$errors[0].$message,label:s.$t("general.subject"),required:""},{default:o(()=>[a(U,{modelValue:e(r).subject,"onUpdate:modelValue":n[4]||(n[4]=u=>e(r).subject=u),type:"text",invalid:e(t).subject.$error,onInput:n[5]||(n[5]=u=>e(t).subject.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),a(V,{label:s.$t("general.body"),error:e(t).body.$error&&e(t).body.$errors[0].$message,required:""},{default:o(()=>[a(J,{modelValue:e(r).body,"onUpdate:modelValue":n[6]||(n[6]=u=>e(r).body=u),fields:T.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),M("div",de,[a(S,{class:"mr-3",variant:"primary-outline",type:"button",onClick:f},{default:o(()=>[y(v(s.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(l),disabled:e(l),variant:"primary",type:"button",class:"mr-3",onClick:N},{left:o(u=>[e(l)?B("",!0):(m(),p(h,{key:0,class:re(u.class),name:"PhotographIcon"},null,8,["class"]))]),default:o(()=>[y(" "+v(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{$e as _,_e as a};
var D=Object.defineProperty;var b=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var k=(o,t,e)=>t in o?D(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,w=(o,t)=>{for(var e in t||(t={}))G.call(t,e)&&k(o,e,t[e]);if(b)for(var e of b(t))J.call(t,e)&&k(o,e,t[e]);return o};import{B as y,a as $}from"./BaseListItem.4eea691c.js";import{J as O,k as S,B as x,a0 as U,bb as q,bc as z,a7 as I,r as u,o as n,l as d,w as c,f as l,u as _,h as i,e as j,y as R,aj as V,F as L}from"./vendor.01d0adc5.js";import{u as K}from"./global.08b6a984.js";import"./main.75722495.js";import"./auth.4644c288.js";const M={class:"w-full mb-6 select-wrapper xl:hidden"},Q={class:"pb-3 lg:col-span-3"},T={class:"space-y-1"},W={class:"flex"},X={class:"hidden mt-1 xl:block min-w-[240px]"},Y={class:"w-full overflow-hidden"},nt={setup(o){const{t}=O(),{useRoute:e,useRouter:P}=window.VueRouter,f=e(),C=P(),m=K(),g=S(()=>m.companySlug);let E=x({});x();const p=U([{link:`/${m.companySlug}/customer/settings/customer-profile`,title:t("settings.account_settings.account_settings"),icon:q},{link:`/${m.companySlug}/customer/settings/address-info`,title:t("settings.menu_title.address_information"),icon:z}]);I(()=>{f.path===`/${m.companySlug}/customer/settings`&&C.push({name:"customer.profile"});const a=p.find(B=>B.link===f.path);E.value=w({},a)}),S(()=>p);function h(a){return f.path.indexOf(a)>-1}return(a,B)=>{const v=u("BaseBreadcrumbItem"),F=u("BaseBreadcrumb"),H=u("BasePageHeader"),N=u("RouterView"),A=u("BasePage");return n(),d(A,null,{default:c(()=>[l(H,{title:a.$tc("settings.setting",2),class:"pb-6"},{default:c(()=>[l(F,null,{default:c(()=>[l(v,{title:a.$t("general.home"),to:`/${_(g)}/customer/dashboard`},null,8,["title","to"]),l(v,{title:a.$tc("settings.setting",2),to:`/${_(g)}/customer/settings/customer-profile`,active:""},null,8,["title","to"])]),_:1})]),_:1},8,["title"]),i("div",M,[i("aside",Q,[i("nav",T,[l($,null,{default:c(()=>[(n(!0),j(L,null,R(_(p),(s,r)=>(n(),d(y,{key:r,title:s.title,to:s.link,active:h(s.link),index:r,class:"py-3"},{icon:c(()=>[(n(),d(V(s.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})])])]),i("div",W,[i("div",X,[l($,null,{default:c(()=>[(n(!0),j(L,null,R(_(p),(s,r)=>(n(),d(y,{key:r,title:s.title,to:s.link,active:h(s.link),index:r,class:"py-3"},{icon:c(()=>[(n(),d(V(s.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",Y,[l(N)])])]),_:1})}}};export{nt as default};
import{J as I,B as M,G as R,aN as y,k as L,a7 as P,r as a,o as r,l as B,w as o,f as t,h as i,u,x as S,e as N,y as $,F as C}from"./vendor.01d0adc5.js";import{d as E}from"./main.75722495.js";import{B as F,a as G}from"./BaseListItem.4eea691c.js";const H={class:"w-full mb-6 select-wrapper xl:hidden"},O={class:"flex"},U={class:"hidden mt-1 xl:block min-w-[240px]"},A={class:"w-full overflow-hidden"},D={setup(J){const{t:g}=I();let n=M({});const d=E(),c=R(),m=y(),p=L(()=>d.settingMenu.map(e=>Object.assign({},e,{title:g(e.title)})));P(()=>{c.path==="/admin/settings"&&m.push("/admin/settings/account-settings");const e=p.value.find(l=>l.link===c.path);n.value=e});function h(e){return c.path.indexOf(e)>-1}function v(e){return m.push(e.link)}return(e,l)=>{const _=a("BaseBreadcrumbItem"),b=a("BaseBreadcrumb"),k=a("BasePageHeader"),w=a("BaseMultiselect"),V=a("BaseIcon"),x=a("RouterView"),j=a("BasePage");return r(),B(j,null,{default:o(()=>[t(k,{title:e.$tc("settings.setting",1),class:"mb-6"},{default:o(()=>[t(b,null,{default:o(()=>[t(_,{title:e.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),t(_,{title:e.$tc("settings.setting",2),to:"/admin/settings/account-settings",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),i("div",H,[t(w,{modelValue:u(n),"onUpdate:modelValue":[l[0]||(l[0]=s=>S(n)?n.value=s:n=s),v],options:u(p),"can-deselect":!1,"value-prop":"title","track-by":"title",label:"title",object:""},null,8,["modelValue","options"])]),i("div",O,[i("div",U,[t(G,null,{default:o(()=>[(r(!0),N(C,null,$(u(d).settingMenu,(s,f)=>(r(),B(F,{key:f,title:e.$t(s.title),to:s.link,active:h(s.link),index:f,class:"py-3"},{icon:o(()=>[t(V,{name:s.icon},null,8,["name"])]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",A,[t(x)])])]),_:1})}}};export{D as default};
import{J as C,B as N,k as $,L as p,M as b,N as z,aX as j,S as L,T as U,r as i,o as B,l as g,w as l,h as y,i as x,t as v,u as e,f as o,m as D,j as G,U as E}from"./vendor.01d0adc5.js";import{q as X,c as J,u as A,k as F}from"./main.75722495.js";const H={class:"flex justify-between w-full"},K=["onSubmit"],O={class:"p-4 sm:p-6"},P={class:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},Z={setup(Q){const a=X(),u=J();A(),F();const{t:c,tm:R}=C();let d=N(!1);const h=$(()=>({currentTaxType:{name:{required:p.withMessage(c("validation.required"),b),minLength:p.withMessage(c("validation.name_min_length",{count:3}),z(3))},percent:{required:p.withMessage(c("validation.required"),b),between:p.withMessage(c("validation.enter_valid_tax_rate"),j(0,100))},description:{maxLength:p.withMessage(c("validation.description_maxlength",{count:255}),L(255))}}})),r=U(h,$(()=>a));async function w(){if(r.value.currentTaxType.$touch(),r.value.currentTaxType.$invalid)return!0;try{const s=a.isEdit?a.updateTaxType:a.addTaxType;d.value=!0;let t=await s(a.currentTaxType);d.value=!1,u.refreshData&&u.refreshData(t.data.data),m()}catch{return d.value=!1,!0}}function m(){u.closeModal(),setTimeout(()=>{a.resetCurrentTaxType(),r.value.$reset()},300)}return(s,t)=>{const f=i("BaseIcon"),V=i("BaseInput"),T=i("BaseInputGroup"),M=i("BaseMoney"),I=i("BaseTextarea"),S=i("BaseSwitch"),k=i("BaseInputGrid"),_=i("BaseButton"),q=i("BaseModal");return B(),g(q,{show:e(u).active&&e(u).componentName==="TaxTypeModal",onClose:m},{header:l(()=>[y("div",H,[x(v(e(u).title)+" ",1),o(f,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:m})])]),default:l(()=>[y("form",{action:"",onSubmit:E(w,["prevent"])},[y("div",O,[o(k,{layout:"one-column"},{default:l(()=>[o(T,{label:s.$t("tax_types.name"),variant:"horizontal",error:e(r).currentTaxType.name.$error&&e(r).currentTaxType.name.$errors[0].$message,required:""},{default:l(()=>[o(V,{modelValue:e(a).currentTaxType.name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(a).currentTaxType.name=n),invalid:e(r).currentTaxType.name.$error,type:"text",onInput:t[1]||(t[1]=n=>e(r).currentTaxType.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.percent"),variant:"horizontal",error:e(r).currentTaxType.percent.$error&&e(r).currentTaxType.percent.$errors[0].$message,required:""},{default:l(()=>[o(M,{modelValue:e(a).currentTaxType.percent,"onUpdate:modelValue":t[2]||(t[2]=n=>e(a).currentTaxType.percent=n),currency:{decimal:".",thousands:",",symbol:"% ",precision:2,masked:!1},invalid:e(r).currentTaxType.percent.$error,class:"relative w-full focus:border focus:border-solid focus:border-primary",onInput:t[3]||(t[3]=n=>e(r).currentTaxType.percent.$touch())},null,8,["modelValue","currency","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.description"),error:e(r).currentTaxType.description.$error&&e(r).currentTaxType.description.$errors[0].$message,variant:"horizontal"},{default:l(()=>[o(I,{modelValue:e(a).currentTaxType.description,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).currentTaxType.description=n),invalid:e(r).currentTaxType.description.$error,rows:"4",cols:"50",onInput:t[5]||(t[5]=n=>e(r).currentTaxType.description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(T,{label:s.$t("tax_types.compound_tax"),variant:"horizontal",class:"flex flex-row-reverse"},{default:l(()=>[o(S,{modelValue:e(a).currentTaxType.compound_tax,"onUpdate:modelValue":t[6]||(t[6]=n=>e(a).currentTaxType.compound_tax=n),class:"flex items-center"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),y("div",P,[o(_,{class:"mr-3 text-sm",variant:"primary-outline",type:"button",onClick:m},{default:l(()=>[x(v(s.$t("general.cancel")),1)]),_:1}),o(_,{loading:e(d),disabled:e(d),variant:"primary",type:"submit"},{left:l(n=>[e(d)?G("",!0):(B(),g(f,{key:0,name:"SaveIcon",class:D(n.class)},null,8,["class"]))]),default:l(()=>[x(" "+v(e(a).isEdit?s.$t("general.update"):s.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,K)]),_:1},8,["show"])}}};export{Z as _};
import{j as H,u as q,q as Y,e as $,c as j,g as f,b as G,r as J}from"./main.75722495.js";import{J as M,G as K,ah as V,r as o,o as p,l as g,w as t,u as a,f as n,i as T,t as B,j as N,B as z,k as P,V as O,m as Q,e as W,x as Z}from"./vendor.01d0adc5.js";import{_ as ee}from"./TaxTypeModal.bf6662b3.js";const te={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:null}},setup(b){const s=b,S=H();q();const{t:r}=M(),h=Y(),v=K(),m=$(),E=j();V("utils");async function c(d){await h.fetchTaxType(d),E.openModal({title:r("settings.tax_types.edit_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:s.loadData&&s.loadData})}function C(d){S.openDialog({title:r("general.are_you_sure"),message:r("settings.tax_types.confirm_delete"),yesLabel:r("general.ok"),noLabel:r("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async u=>{if(u){if((await h.deleteTaxType(d)).data.success)return s.loadData&&s.loadData(),!0;s.loadData&&s.loadData()}})}return(d,u)=>{const i=o("BaseIcon"),w=o("BaseButton"),D=o("BaseDropdownItem"),k=o("BaseDropdown");return p(),g(k,null,{activator:t(()=>[a(v).name==="tax-types.view"?(p(),g(w,{key:0,variant:"primary"},{default:t(()=>[n(i,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),g(i,{key:1,name:"DotsHorizontalIcon",class:"h-5 text-gray-500"}))]),default:t(()=>[a(m).hasAbilities(a(f).EDIT_TAX_TYPE)?(p(),g(D,{key:0,onClick:u[0]||(u[0]=I=>c(b.row.id))},{default:t(()=>[n(i,{name:"PencilIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),T(" "+B(d.$t("general.edit")),1)]),_:1})):N("",!0),a(m).hasAbilities(a(f).DELETE_TAX_TYPE)?(p(),g(D,{key:1,onClick:u[1]||(u[1]=I=>C(b.row.id))},{default:t(()=>[n(i,{name:"TrashIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500"}),T(" "+B(d.$t("general.delete")),1)]),_:1})):N("",!0)]),_:1})}}},ae={key:0},le={setup(b){const{t:s}=M(),S=V("utils"),r=G(),h=Y(),v=j(),m=$(),E=J(),c=z(null),C=z(r.selectedCompanySettings.tax_per_item),d=P(()=>[{key:"name",label:s("settings.tax_types.tax_name"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"compound_tax",label:s("settings.tax_types.compound_tax"),tdClass:"font-medium text-gray-900"},{key:"percent",label:s("settings.tax_types.percent"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"actions",label:"",tdClass:"text-right text-sm font-medium",sortable:!1}]),u=P(()=>r.selectedCompanySettings.sales_tax_us_enabled==="YES"&&E.salesTaxUSEnabled),i=P({get:()=>C.value==="YES",set:async l=>{const _=l?"YES":"NO";let y={settings:{tax_per_item:_}};C.value=_,await r.updateCompanySettings({data:y,message:"general.setting_updated"})}});function w(){return m.hasAbilities([f.DELETE_TAX_TYPE,f.EDIT_TAX_TYPE])}async function D({page:l,filter:_,sort:y}){let A={orderByField:y.fieldName||"created_at",orderBy:y.order||"desc",page:l},x=await h.fetchTaxTypes(A);return{data:x.data.data,pagination:{totalPages:x.data.meta.last_page,currentPage:l,totalCount:x.data.meta.total,limit:5}}}async function k(){c.value&&c.value.refresh()}function I(){v.openModal({title:s("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:c.value&&c.value.refresh})}return(l,_)=>{const y=o("BaseIcon"),A=o("BaseButton"),x=o("BaseBadge"),X=o("BaseTable"),L=o("BaseDivider"),U=o("BaseSwitchSection"),F=o("BaseSettingCard");return p(),g(F,{title:l.$t("settings.tax_types.title"),description:l.$t("settings.tax_types.description")},O({default:t(()=>[n(ee),n(X,{ref:(e,R)=>{R.table=e,c.value=e},class:"mt-16",data:D,columns:a(d)},O({"cell-compound_tax":t(({row:e})=>[n(x,{"bg-color":a(S).getBadgeStatusColor(e.data.compound_tax?"YES":"NO").bgColor,color:a(S).getBadgeStatusColor(e.data.compound_tax?"YES":"NO").color},{default:t(()=>[T(B(e.data.compound_tax?"Yes":"No".replace("_"," ")),1)]),_:2},1032,["bg-color","color"])]),"cell-percent":t(({row:e})=>[T(B(e.data.percent)+" % ",1)]),_:2},[w()?{name:"cell-actions",fn:t(({row:e})=>[n(te,{row:e.data,table:c.value,"load-data":k},null,8,["row","table"])])}:void 0]),1032,["columns"]),a(m).currentUser.is_owner?(p(),W("div",ae,[n(L,{class:"mt-8 mb-2"}),n(U,{modelValue:a(i),"onUpdate:modelValue":_[0]||(_[0]=e=>Z(i)?i.value=e:null),disabled:a(u),title:l.$t("settings.tax_types.tax_per_item"),description:l.$t("settings.tax_types.tax_setting_description")},null,8,["modelValue","disabled","title","description"])])):N("",!0)]),_:2},[a(m).hasAbilities(a(f).CREATE_TAX_TYPE)?{name:"action",fn:t(()=>[n(A,{type:"submit",variant:"primary-outline",onClick:I},{left:t(e=>[n(y,{class:Q(e.class),name:"PlusIcon"},null,8,["class"])]),default:t(()=>[T(" "+B(l.$t("settings.tax_types.add_new_tax")),1)]),_:1})])}:void 0]),1032,["title","description"])}}};export{le as default};
import{J as R,B as d,a0 as I,a as S,k as J,r as h,o as n,l as D,w,h as t,t as a,u as s,f as v,i as $,j as y,q as O,ag as Y,e as i,F as V,y as q,m as G}from"./vendor.01d0adc5.js";import{u as Q,j as W,b as X,h as T}from"./main.75722495.js";import{L as Z}from"./LoadingIcon.44a6304d.js";import{u as ee}from"./exchange-rate.dffa79b6.js";const te={class:"pb-8 ml-0"},ae={class:"text-sm not-italic font-medium input-label"},se={class:"box-border flex w-16 p-3 my-2 text-sm text-gray-600 bg-gray-200 border border-gray-200 border-solid rounded-md version"},ne={key:1,class:"mt-4 content"},ie={class:"rounded-md bg-primary-50 p-4 mb-3"},re={class:"flex"},le={class:"shrink-0"},oe={class:"ml-3"},de={class:"text-sm font-medium text-primary-800"},pe={class:"mt-2 text-sm text-primary-700"},ue={class:"text-sm not-italic font-medium input-label"},ce=t("br",null,null,-1),me={class:"box-border flex w-16 p-3 my-2 text-sm text-gray-600 bg-gray-200 border border-gray-200 border-solid rounded-md version"},_e=["innerHTML"],ge={class:"text-sm not-italic font-medium input-label"},fe={class:"w-1/2 mt-2 border-2 border-gray-200 BaseTable-fixed"},he={width:"70%",class:"p-2 text-sm truncate"},ve={width:"30%",class:"p-2 text-sm text-right"},ye={key:0,class:"inline-block w-4 h-4 ml-3 mr-2 bg-green-500 rounded-full"},be={key:1,class:"inline-block w-4 h-4 ml-3 mr-2 bg-red-500 rounded-full"},xe={key:2,class:"relative flex justify-between mt-4 content"},we={class:"m-0 mb-3 font-medium sw-section-title"},ke={class:"mb-8 text-sm leading-snug text-gray-500",style:{"max-width":"480px"}},Be={key:3,class:"w-full p-0 list-none"},Ue={class:"m-0 text-sm leading-8"},Se={class:"flex flex-row items-center"},$e={key:0,class:"mr-3 text-xs text-gray-500"},De={setup(Ce){const k=Q(),z=W(),{t:p,tm:Ne}=R();X(),ee();let b=d(!1),c=d(!1),C=d(""),B=d(""),m=d(null),N=d(null),l=d(!1);const U=I([{translationKey:"settings.update_app.download_zip_file",stepUrl:"/api/v1/update/download",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.unzipping_package",stepUrl:"/api/v1/update/unzip",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.copying_files",stepUrl:"/api/v1/update/copy",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.deleting_files",stepUrl:"/api/v1/update/delete",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.running_migrations",stepUrl:"/api/v1/update/migrate",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.finishing_update",stepUrl:"/api/v1/update/finish",time:null,started:!1,completed:!1}]),x=I({isMinor:Boolean,installed:"",version:""});let E=d(null);window.addEventListener("beforeunload",e=>{l.value&&(e.returnValue="Update is in progress!")}),S.get("/api/v1/app/version").then(e=>{B.value=e.data.version});const F=J(()=>m.value!==null?Object.keys(m.value).every(e=>m.value[e]):!0);function H(e){switch(K(e)){case"pending":return"text-primary-800 bg-gray-200";case"finished":return"text-teal-500 bg-teal-100";case"running":return"text-blue-400 bg-blue-100";case"error":return"text-danger bg-red-200";default:return""}}async function M(){try{c.value=!0;let e=await S.get("/api/v1/check/update");if(c.value=!1,!e.data.version){k.showNotification({title:"Info!",type:"info",message:p("settings.update_app.latest_message")});return}e.data&&(x.isMinor=e.data.is_minor,x.version=e.data.version.version,C.value=e.data.version.description,m.value=e.data.version.extensions,b.value=!0,E.value=e.data.version.minimum_php_version,N.value=e.data.version.deleted_files)}catch(e){b.value=!1,c.value=!1,T(e)}}function j(){z.openDialog({title:p("general.are_you_sure"),message:p("settings.update_app.update_warning"),yesLabel:p("general.ok"),noLabel:p("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async e=>{if(e){let _=null;if(!F.value)return k.showNotification({type:"error",message:"Your current configuration does not match the update requirements. Please try again after all the requirements are fulfilled."}),!0;for(let u=0;u<U.length;u++){let r=U[u];try{l.value=!0,r.started=!0;let g={version:x.version,installed:B.value,deleted_files:N.value,path:_||null},f=await S.post(r.stepUrl,g);r.completed=!0,f.data&&f.data.path&&(_=f.data.path),r.translationKey=="settings.update_app.finishing_update"&&(l.value=!1,k.showNotification({type:"success",message:p("settings.update_app.update_success")}),setTimeout(()=>{location.reload()},3e3))}catch(g){return r.started=!1,r.completed=!0,T(g),A(r.translationKey),!1}}}})}function A(e){if(p(e).value){j();return}l.value=!1}function K(e){return e.started&&e.completed?"finished":e.started&&!e.completed?"running":!e.started&&!e.completed?"pending":"error"}return(e,_)=>{const u=h("BaseButton"),r=h("BaseDivider"),g=h("BaseHeading"),f=h("BaseIcon"),P=h("BaseSettingCard");return n(),D(P,{title:e.$t("settings.update_app.title"),description:e.$t("settings.update_app.description")},{default:w(()=>[t("div",te,[t("label",ae,a(e.$t("settings.update_app.current_version")),1),t("div",se,a(s(B)),1),v(u,{loading:s(c),disabled:s(c)||s(l),variant:"primary-outline",class:"mt-6",onClick:M},{default:w(()=>[$(a(e.$t("settings.update_app.check_update")),1)]),_:1},8,["loading","disabled"]),s(b)?(n(),D(r,{key:0,class:"mt-6 mb-4"})):y("",!0),s(b)?O((n(),i("div",ne,[v(g,{type:"heading-title",class:"mb-2"},{default:w(()=>[$(a(e.$t("settings.update_app.avail_update")),1)]),_:1}),t("div",ie,[t("div",re,[t("div",le,[v(f,{name:"InformationCircleIcon",class:"h-5 w-5 text-primary-400","aria-hidden":"true"})]),t("div",oe,[t("h3",de,a(e.$t("general.note")),1),t("div",pe,[t("p",null,a(e.$t("settings.update_app.update_warning")),1)])])])]),t("label",ue,a(e.$t("settings.update_app.next_version")),1),ce,t("div",me,a(s(x).version),1),t("div",{class:"pl-5 mt-4 mb-8 text-sm leading-snug text-gray-500 update-description",style:{"white-space":"pre-wrap","max-width":"480px"},innerHTML:s(C)},null,8,_e),t("label",ge,a(e.$t("settings.update_app.requirements")),1),t("table",fe,[(n(!0),i(V,null,q(s(m),(o,L)=>(n(),i("tr",{key:L,class:"p-2 border-2 border-gray-200"},[t("td",he,a(L),1),t("td",ve,[o?(n(),i("span",ye)):(n(),i("span",be))])]))),128))]),v(u,{class:"mt-10",variant:"primary",onClick:j},{default:w(()=>[$(a(e.$t("settings.update_app.update")),1)]),_:1})],512)),[[Y,!s(l)]]):y("",!0),s(l)?(n(),i("div",xe,[t("div",null,[t("h6",we,a(e.$t("settings.update_app.update_progress")),1),t("p",ke,a(e.$t("settings.update_app.progress_text")),1)]),v(Z,{class:"absolute right-0 h-6 m-1 animate-spin text-primary-400"})])):y("",!0),s(l)?(n(),i("ul",Be,[(n(!0),i(V,null,q(s(U),o=>(n(),i("li",{key:o.stepUrl,class:"flex justify-between w-full py-3 border-b border-gray-200 border-solid last:border-b-0"},[t("p",Ue,a(e.$t(o.translationKey)),1),t("div",Se,[o.time?(n(),i("span",$e,a(o.time),1)):y("",!0),t("span",{class:G([H(o),"block py-1 text-sm text-center uppercase rounded-full"]),style:{width:"88px"}},a(K(o)),3)])]))),128))])):y("",!0)])]),_:1},8,["title","description"])}}};export{De as default};
import{G as Q,aN as W,J as X,a0 as N,B as Y,ah as Z,k as h,C as ee,A as te,r as d,o as m,l as y,w as o,f as a,h as n,u as r,i as E,t as p,j as B,e as S,y as ae,m as se,F as oe}from"./vendor.01d0adc5.js";import{j as re,u as le,w as V,x as ne}from"./main.75722495.js";import{u as ie}from"./estimate.e6573e64.js";import{u as de}from"./global.08b6a984.js";import"./auth.4644c288.js";const me={class:"mr-3 text-sm"},ce={class:"mr-3 text-sm"},ue={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 bg-white w-88 xl:block"},_e={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},pe={class:"flex ml-3",role:"group","aria-label":"First group"},fe={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},ye={class:"px-2"},ge={class:"px-2"},be={class:"px-2"},he={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},Be={class:"flex-2"},ve={class:"mb-1 text-md not-italic font-medium leading-5 text-gray-500 capitalize"},xe={class:"flex-1 whitespace-nowrap right"},we={class:"text-sm text-right text-gray-500 non-italic"},ke={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Ee={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Se=["src"],De={setup(Ve){const c=Q(),F=W(),i=ie(),f=de(),j=re(),{tm:I,t:u}=X();let v=N({}),t=N({orderBy:"",orderByField:"",estimate_number:""}),x=Y(!1);Z("utils"),le();const R=h(()=>i.selectedViewEstimate),$=h(()=>t.orderBy==="asc"||t.orderBy==null);h(()=>$.value?I("general.ascending"):I("general.descending"));const C=h(()=>v.unique_hash?`/estimates/pdf/${v.unique_hash}`:!1);ee(c,()=>{D()}),z(),D(),_=te.exports.debounce(_,500);function T(e){return c.params.id==e}async function z(){await i.fetchEstimate({limit:"all"},f.companySlug),setTimeout(()=>{A()},500)}async function D(){if(c&&c.params.id){let e=await i.fetchViewEstimate({id:c.params.id},f.companySlug);e.data&&Object.assign(v,e.data.data)}}function A(){const e=document.getElementById(`estimate-${c.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function _(){let e={};t.estimate_number!==""&&t.estimate_number!==null&&t.estimate_number!==void 0&&(e.estimate_number=t.estimate_number),t.orderBy!==null&&t.orderBy!==void 0&&(e.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(e.orderByField=t.orderByField),x.value=!0;try{let l=await i.searchEstimate(e,f.companySlug);x.value=!1,l.data.data&&(i.estimates=l.data.data)}catch{x.value=!1}}function L(){return t.orderBy==="asc"?(t.orderBy="desc",_(),!0):(t.orderBy="asc",_(),!0)}async function P(){j.openDialog({title:u("general.are_you_sure"),message:u("estimates.confirm_mark_as_accepted",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"primary",size:"lg",hideNoButton:!1}).then(async e=>{let l={slug:f.companySlug,id:c.params.id,status:"ACCEPTED"};e&&(i.acceptEstimate(l),F.push({name:"estimates.dashboard"}))})}async function U(){j.openDialog({title:u("general.are_you_sure"),message:u("estimates.confirm_mark_as_rejected",1),yesLabel:u("general.ok"),noLabel:u("general.cancel"),variant:"primary",size:"lg",hideNoButton:!1}).then(async e=>{let l={slug:f.companySlug,id:c.params.id,status:"REJECTED"};e&&(i.rejectEstimate(l),F.push({name:"estimates.dashboard"}))})}return(e,l)=>{const g=d("BaseButton"),G=d("BasePageHeader"),b=d("BaseIcon"),q=d("BaseInput"),w=d("BaseRadio"),k=d("BaseInputGroup"),H=d("BaseEstimateStatusBadge"),J=d("BaseFormatMoney"),M=d("router-link"),O=d("BasePage");return m(),y(O,{class:"xl:pl-96"},{default:o(()=>[a(G,{title:r(R).estimate_number},{actions:o(()=>[n("div",me,[r(i).selectedViewEstimate.status==="DRAFT"?(m(),y(g,{key:0,variant:"primary",onClick:P},{default:o(()=>[E(p(e.$t("estimates.accept_estimate")),1)]),_:1})):B("",!0)]),n("div",ce,[r(i).selectedViewEstimate.status==="DRAFT"?(m(),y(g,{key:0,variant:"primary-outline",onClick:U},{default:o(()=>[E(p(e.$t("estimates.reject_estimate")),1)]),_:1})):B("",!0)])]),_:1},8,["title"]),n("div",ue,[n("div",_e,[a(q,{modelValue:r(t).estimate_number,"onUpdate:modelValue":l[0]||(l[0]=s=>r(t).estimate_number=s),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:_},{right:o(()=>[a(b,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"]),n("div",pe,[a(ne,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:o(()=>[a(g,{variant:"gray"},{default:o(()=>[a(b,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:o(()=>[n("div",fe,p(e.$t("general.sort_by")),1),n("div",ye,[a(V,{class:"rounded-md pt-3 hover:rounded-md"},{default:o(()=>[a(k,{class:"-mt-3 font-normal"},{default:o(()=>[a(w,{id:"filter_estimate_date",modelValue:r(t).orderByField,"onUpdate:modelValue":l[1]||(l[1]=s=>r(t).orderByField=s),label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date",onChange:_},null,8,["modelValue","label"])]),_:1})]),_:1})]),n("div",ge,[a(V,{class:"rounded-md pt-3 hover:rounded-md"},{default:o(()=>[a(k,{class:"-mt-3 font-normal"},{default:o(()=>[a(w,{id:"filter_due_date",modelValue:r(t).orderByField,"onUpdate:modelValue":[l[2]||(l[2]=s=>r(t).orderByField=s),_],label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),n("div",be,[a(V,{class:"rounded-md pt-3 hover:rounded-md"},{default:o(()=>[a(k,{class:"-mt-3 font-normal"},{default:o(()=>[a(w,{id:"filter_estimate_number",modelValue:r(t).orderByField,"onUpdate:modelValue":[l[3]||(l[3]=s=>r(t).orderByField=s),_],label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),a(g,{class:"ml-1",variant:"white",onClick:L},{default:o(()=>[r($)?(m(),y(b,{key:0,name:"SortAscendingIcon",class:"h-5"})):(m(),y(b,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),n("div",he,[(m(!0),S(oe,null,ae(r(i).estimates,(s,K)=>(m(),y(M,{id:"estimate-"+s.id,key:K,to:`/${r(f).companySlug}/customer/estimates/${s.id}/view`,class:se(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":T(s.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[n("div",Be,[n("div",ve,p(s.estimate_number),1),a(H,{status:s.status},{default:o(()=>[E(p(s.status),1)]),_:2},1032,["status"])]),n("div",xe,[a(J,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:s.total,currency:s.currency},null,8,["amount","currency"]),n("div",we,p(s.formatted_estimate_date),1)])]),_:2},1032,["id","to","class"]))),128)),r(i).estimates.length?B("",!0):(m(),S("p",ke,p(e.$t("estimates.no_matching_estimates")),1))])]),n("div",Ee,[r(C)?(m(),S("iframe",{key:0,src:r(C),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,Se)):B("",!0)])]),_:1})}}};export{De as default};
import{G as Q,J as W,a0 as P,B as y,ah as X,k as B,C as Y,A as Z,r as d,o as u,l as b,w as n,f as a,u as s,m as z,i as V,t as m,j as k,h as i,e as F,y as ee,F as te}from"./vendor.01d0adc5.js";import{u as oe,w as S,x as ae}from"./main.75722495.js";import{u as se}from"./invoice.b61ade7d.js";import{u as ne}from"./global.08b6a984.js";import"./auth.4644c288.js";const re={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 bg-white w-88 xl:block"},ie={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},le={class:"flex ml-3",role:"group","aria-label":"First group"},de={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},ce={class:"px-2"},ue={class:"px-2"},me={class:"px-2"},pe={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},fe={class:"flex-2"},_e={class:"mb-1 not-italic font-medium leading-5 text-gray-500 capitalize text-md"},ve={class:"flex-1 whitespace-nowrap right"},ye={class:"text-sm text-right text-gray-500 non-italic"},be={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},he={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},ge=["src"],Fe={setup(Be){const p=Q(),l=se(),_=ne(),{tm:$}=W();let h=P({}),o=P({orderBy:"",orderByField:"",invoice_number:""});y(null),y(null);let w=y(!1),N=y(!1);y(!1),X("utils"),oe();const R=B(()=>l.selectedViewInvoice),j=B(()=>o.orderBy==="asc"||o.orderBy==null);B(()=>j.value?$("general.ascending"):$("general.descending"));const C=B(()=>h.unique_hash?`/invoices/pdf/${h.unique_hash}`:!1);Y(p,()=>{D()}),A(),D(),c=Z.exports.debounce(c,500);function U(e){return p.params.id==e}async function A(){await l.fetchInvoices({limit:"all"},_.companySlug),setTimeout(()=>{G()},500)}async function D(){if(p&&p.params.id){let e=await l.fetchViewInvoice({id:p.params.id},_.companySlug);e.data&&Object.assign(h,e.data.data)}}function G(){const e=document.getElementById(`invoice-${p.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function c(){let e={};o.invoice_number!==""&&o.invoice_number!==null&&o.invoice_number!==void 0&&(e.invoice_number=o.invoice_number),o.orderBy!==null&&o.orderBy!==void 0&&(e.orderBy=o.orderBy),o.orderByField!==null&&o.orderByField!==void 0&&(e.orderByField=o.orderByField),w.value=!0;try{let r=await l.searchInvoice(e,_.companySlug);w.value=!1,r.data.data&&(l.invoices=r.data.data)}catch{w.value=!1}}function T(){return o.orderBy==="asc"?(o.orderBy="desc",c(),!0):(o.orderBy="asc",c(),!0)}function q(){router.push({name:"invoice.portal.payment",params:{id:l.selectedViewInvoice.id,company:l.selectedViewInvoice.company.slug}})}return(e,r)=>{const v=d("BaseIcon"),g=d("BaseButton"),E=d("BasePageHeader"),L=d("BaseInput"),I=d("BaseRadio"),x=d("BaseInputGroup"),M=d("BaseInvoiceStatusBadge"),H=d("BaseFormatMoney"),O=d("router-link"),J=d("BasePage");return u(),b(J,{class:"xl:pl-96"},{default:n(()=>[a(E,{title:s(R).invoice_number},{actions:n(()=>{var t,f;return[a(g,{disabled:s(N),variant:"primary-outline",class:"mr-2",tag:"a",href:`/invoices/pdf/${s(h).unique_hash}`,download:""},{left:n(K=>[a(v,{name:"DownloadIcon",class:z(K.class)},null,8,["class"]),V(" "+m(e.$t("invoices.download")),1)]),_:1},8,["disabled","href"]),((f=(t=s(l))==null?void 0:t.selectedViewInvoice)==null?void 0:f.paid_status)!=="PAID"&&s(_).enabledModules.includes("Payments")?(u(),b(g,{key:0,variant:"primary",onClick:q},{default:n(()=>[V(m(e.$t("invoices.pay_invoice")),1)]),_:1})):k("",!0)]}),_:1},8,["title"]),i("div",re,[i("div",ie,[a(L,{modelValue:s(o).invoice_number,"onUpdate:modelValue":r[0]||(r[0]=t=>s(o).invoice_number=t),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:c},{right:n(()=>[a(v,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"]),i("div",le,[a(ae,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:n(()=>[a(g,{variant:"gray"},{default:n(()=>[a(v,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:n(()=>[i("div",de,m(e.$t("general.sort_by")),1),i("div",ce,[a(S,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(I,{id:"filter_invoice_date",modelValue:s(o).orderByField,"onUpdate:modelValue":[r[1]||(r[1]=t=>s(o).orderByField=t),c],label:e.$t("invoices.invoice_date"),name:"filter",size:"sm",value:"invoice_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),i("div",ue,[a(S,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(I,{id:"filter_due_date",modelValue:s(o).orderByField,"onUpdate:modelValue":[r[2]||(r[2]=t=>s(o).orderByField=t),c],label:e.$t("invoices.due_date"),name:"filter",size:"sm",value:"due_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),i("div",me,[a(S,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(I,{id:"filter_invoice_number",modelValue:s(o).orderByField,"onUpdate:modelValue":[r[3]||(r[3]=t=>s(o).orderByField=t),c],label:e.$t("invoices.invoice_number"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),a(g,{class:"ml-1",variant:"white",onClick:T},{default:n(()=>[s(j)?(u(),b(v,{key:0,name:"SortAscendingIcon",class:"h-5"})):(u(),b(v,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),i("div",pe,[(u(!0),F(te,null,ee(s(l).invoices,(t,f)=>(u(),b(O,{id:"invoice-"+t.id,key:f,to:`/${s(_).companySlug}/customer/invoices/${t.id}/view`,class:z(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":U(t.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>[i("div",fe,[i("div",_e,m(t.invoice_number),1),a(M,{status:t.status},{default:n(()=>[V(m(t.status),1)]),_:2},1032,["status"])]),i("div",ve,[a(H,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:t.total,currency:t.currency},null,8,["amount","currency"]),i("div",ye,m(t.formatted_invoice_date),1)])]),_:2},1032,["id","to","class"]))),128)),s(l).invoices.length?k("",!0):(u(),F("p",be,m(e.$t("invoices.no_matching_invoices")),1))])]),i("div",he,[s(C)?(u(),F("iframe",{key:0,ref:(t,f)=>{f.report=t},src:s(C),class:"flex-1 border border-gray-400 border-solid rounded-md",onClick:r[4]||(r[4]=(...t)=>e.ViewReportsPDF&&e.ViewReportsPDF(...t))},null,8,ge)):k("",!0)])]),_:1})}}};export{Fe as default};
var re=Object.defineProperty;var C=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var L=(p,c,s)=>c in p?re(p,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[c]=s,M=(p,c)=>{for(var s in c||(c={}))ne.call(c,s)&&L(p,s,c[s]);if(C)for(var s of C(c))ie.call(c,s)&&L(p,s,c[s]);return p};import{J as de,ah as ue,B as f,G as ce,aN as me,a0 as fe,k as B,C as pe,A as _e,r as d,o as m,e as E,f as a,l as b,w as r,h as u,u as l,i as $,t as g,j as v,F as R,y as ye,m as be}from"./vendor.01d0adc5.js";import{_ as ge}from"./EstimateIndexDropdown.4eab32d4.js";import{c as ve,k as he,u as xe,j as Be,e as Ee,g as z}from"./main.75722495.js";import{_ as ke}from"./SendEstimateModal.a8bc3854.js";import{L as Se}from"./LoadingIcon.44a6304d.js";import"./mail-driver.4ea1af6b.js";const we={class:"mr-3 text-sm"},Te={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},Ie={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},De={class:"mb-6"},Fe={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},$e={class:"px-4 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Ve={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},Ae={class:"flex-2"},je={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Ne={class:"flex-1 whitespace-nowrap right"},Ce={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Le={class:"flex justify-center p-4 items-center"},Me={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Re={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},ze=["src"],We={setup(p){const c=ve(),s=he();xe();const P=Be(),V=Ee(),{t:y}=de();ue("$utils"),f(null),f(null);const i=f(null);f(null);const h=ce();me(),f(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]);const k=f(!1),U=f(!1);f(!1);const A=f(!1),x=f(!1),S=f(!1),t=fe({orderBy:null,orderByField:null,searchText:null}),G=B(()=>i.value.estimate_number),j=B(()=>t.orderBy==="asc"||t.orderBy==null);B(()=>j.value?y("general.ascending"):y("general.descending"));const H=B(()=>`/estimates/pdf/${i.value.unique_hash}`);B(()=>i.value&&i.value.id?estimate.value.id:null),pe(h,(e,n)=>{e.name==="estimates.view"&&N()}),q(),N(),_=_e.exports.debounce(_,500);function J(e){return h.params.id==e}async function q(){x.value=!0,await s.fetchEstimates(h.params.id),x.value=!1,setTimeout(()=>{O()},500)}function O(){const e=document.getElementById(`estimate-${h.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function N(){S.value=!0;let e=await s.fetchEstimate(h.params.id);e.data&&(S.value=!1,i.value=M({},e.data.data))}async function _(){let e="";t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(e+=`search=${t.searchText}&`),t.orderBy!==null&&t.orderBy!==void 0&&(e+=`orderBy=${t.orderBy}&`),t.orderByField!==null&&t.orderByField!==void 0&&(e+=`orderByField=${t.orderByField}`),A.value=!0;let n=await s.searchEstimate(e);A.value=!1,n.data&&(s.estimates=n.data.data)}function W(){return t.orderBy==="asc"?(t.orderBy="desc",_(),!0):(t.orderBy="asc",_(),!0)}async function X(){P.openDialog({title:y("general.are_you_sure"),message:y("estimates.confirm_mark_as_sent"),yesLabel:y("general.ok"),noLabel:y("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(e=>{k.value=!1,e&&(s.markAsSent({id:i.value.id,status:"SENT"}),i.value.status="SENT",k.value=!0),k.value=!1})}async function K(e){c.openModal({title:y("estimates.send_estimate"),componentName:"SendEstimateModal",id:i.value.id,data:i.value})}return(e,n)=>{const w=d("BaseButton"),Q=d("BasePageHeader"),T=d("BaseIcon"),Y=d("BaseInput"),I=d("BaseRadio"),D=d("BaseInputGroup"),F=d("BaseDropdownItem"),Z=d("BaseDropdown"),ee=d("BaseText"),te=d("BaseEstimateStatusBadge"),ae=d("BaseFormatMoney"),se=d("router-link"),oe=d("BasePage");return m(),E(R,null,[a(ke),i.value?(m(),b(oe,{key:0,class:"xl:pl-96 xl:ml-8"},{default:r(()=>[a(Q,{title:l(G)},{actions:r(()=>[u("div",we,[i.value.status==="DRAFT"&&l(V).hasAbilities(l(z).EDIT_ESTIMATE)?(m(),b(w,{key:0,disabled:k.value,"content-loading":S.value,variant:"primary-outline",onClick:X},{default:r(()=>[$(g(e.$t("estimates.mark_as_sent")),1)]),_:1},8,["disabled","content-loading"])):v("",!0)]),i.value.status==="DRAFT"&&l(V).hasAbilities(l(z).SEND_ESTIMATE)?(m(),b(w,{key:0,disabled:U.value,"content-loading":S.value,variant:"primary",class:"text-sm",onClick:K},{default:r(()=>[$(g(e.$t("estimates.send_estimate")),1)]),_:1},8,["disabled","content-loading"])):v("",!0),a(ge,{class:"ml-3",row:i.value},null,8,["row"])]),_:1},8,["title"]),u("div",Te,[u("div",Ie,[u("div",De,[a(Y,{modelValue:l(t).searchText,"onUpdate:modelValue":n[0]||(n[0]=o=>l(t).searchText=o),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:n[1]||(n[1]=o=>_())},{right:r(()=>[a(T,{name:"SearchIcon",class:"text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",Fe,[a(Z,{class:"ml-3",position:"bottom-start","width-class":"w-45","position-class":"left-0"},{activator:r(()=>[a(w,{size:"md",variant:"gray"},{default:r(()=>[a(T,{name:"FilterIcon"})]),_:1})]),default:r(()=>[u("div",$e,g(e.$t("general.sort_by")),1),a(F,{class:"flex px-4 py-2 cursor-pointer"},{default:r(()=>[a(D,{class:"-mt-3 font-normal"},{default:r(()=>[a(I,{id:"filter_estimate_date",modelValue:l(t).orderByField,"onUpdate:modelValue":[n[2]||(n[2]=o=>l(t).orderByField=o),_],label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),a(F,{class:"flex px-4 py-2 cursor-pointer"},{default:r(()=>[a(D,{class:"-mt-3 font-normal"},{default:r(()=>[a(I,{id:"filter_due_date",modelValue:l(t).orderByField,"onUpdate:modelValue":[n[3]||(n[3]=o=>l(t).orderByField=o),_],label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),a(F,{class:"flex px-4 py-2 cursor-pointer"},{default:r(()=>[a(D,{class:"-mt-3 font-normal"},{default:r(()=>[a(I,{id:"filter_estimate_number",modelValue:l(t).orderByField,"onUpdate:modelValue":[n[4]||(n[4]=o=>l(t).orderByField=o),_],label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),a(w,{class:"ml-1",size:"md",variant:"gray",onClick:W},{default:r(()=>[l(j)?(m(),b(T,{key:0,name:"SortAscendingIcon"})):(m(),b(T,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),l(s)&&l(s).estimates?(m(),E("div",Ve,[(m(!0),E(R,null,ye(l(s).estimates,(o,le)=>(m(),E("div",{key:le},[o&&!x.value?(m(),b(se,{key:0,id:"estimate-"+o.id,to:`/admin/estimates/${o.id}/view`,class:be(["flex justify-between side-estimate p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":J(o.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:r(()=>[u("div",Ae,[a(ee,{text:o.customer.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),u("div",je,g(o.estimate_number),1),a(te,{status:o.status,class:"px-1 text-xs"},{default:r(()=>[$(g(o.status),1)]),_:2},1032,["status"])]),u("div",Ne,[a(ae,{amount:o.total,currency:o.customer.currency,class:"block mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900"},null,8,["amount","currency"]),u("div",Ce,g(o.formatted_estimate_date),1)])]),_:2},1032,["id","to","class"])):v("",!0)]))),128)),u("div",Le,[x.value?(m(),b(Se,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):v("",!0)]),!l(s).estimates.length&&!x.value?(m(),E("p",Me,g(e.$t("estimates.no_matching_estimates")),1)):v("",!0)])):v("",!0)]),u("div",Re,[u("iframe",{src:`${l(H)}`,class:"flex-1 border border-gray-400 border-solid rounded-md bg-white frame-style"},null,8,ze)])]),_:1})):v("",!0)],64)}}};export{We as default};
import{G as M,J as O,a0 as P,B as w,ah as J,k as b,C as K,A as Q,r as d,o as c,l as h,w as n,f as a,u as s,m as j,i as W,t as y,h as r,e as V,y as X,F as Y,j as C}from"./vendor.01d0adc5.js";import{u as Z,w as F,x as ee}from"./main.75722495.js";import{u as te}from"./payment.037dd620.js";import{u as ae}from"./global.08b6a984.js";import"./auth.4644c288.js";const oe={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 bg-white w-88 xl:block"},se={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},ne={class:"flex ml-3",role:"group","aria-label":"First group"},re={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},le={class:"px-2"},de={class:"px-2"},ie={class:"px-2"},me={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},ce={class:"flex-2"},ue={class:"mb-1 text-md not-italic font-medium leading-5 text-gray-500 capitalize"},pe={class:"flex-1 whitespace-nowrap right"},ye={class:"text-sm text-right text-gray-500 non-italic"},fe={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},_e={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},be=["src"],Fe={setup(he){const u=M(),m=te(),f=ae(),{tm:k,t:ge}=O();let _=P({}),e=P({orderBy:"",orderByField:"",payment_number:""}),g=w(!1),z=w(!1);w(!1),J("utils"),Z();const D=b(()=>m.selectedViewPayment),S=b(()=>e.orderBy==="asc"||e.orderBy==null);b(()=>S.value?k("general.ascending"):k("general.descending"));const I=b(()=>_.unique_hash?`/payments/pdf/${_.unique_hash}`:!1);K(u,()=>{$()}),U(),$(),i=Q.exports.debounce(i,500);function N(t){return u.params.id==t}async function U(){await m.fetchPayments({limit:"all"},f.companySlug),setTimeout(()=>{G()},500)}async function $(){if(u&&u.params.id){let t=await m.fetchViewPayment({id:u.params.id},f.companySlug);t.data&&Object.assign(_,t.data.data)}}function G(){const t=document.getElementById(`payment-${u.params.id}`);t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("shake"))}async function i(){let t={};e.payment_number!==""&&e.payment_number!==null&&e.payment_number!==void 0&&(t.payment_number=e.payment_number),e.orderBy!==null&&e.orderBy!==void 0&&(t.orderBy=e.orderBy),e.orderByField!==null&&e.orderByField!==void 0&&(t.orderByField=e.orderByField),g.value=!0;try{let l=await m.searchPayment(t,f.companySlug);g.value=!1,l.data.data&&(m.payments=l.data.data)}catch{g.value=!1}}function T(){return e.orderBy==="asc"?(e.orderBy="desc",i(),!0):(e.orderBy="asc",i(),!0)}return(t,l)=>{const p=d("BaseIcon"),B=d("BaseButton"),q=d("BasePageHeader"),A=d("BaseInput"),v=d("BaseRadio"),x=d("BaseInputGroup"),E=d("BaseFormatMoney"),L=d("router-link"),R=d("BasePage");return c(),h(R,{class:"xl:pl-96"},{default:n(()=>[a(q,{title:s(D).payment_number},{actions:n(()=>[a(B,{disabled:s(z),variant:"primary-outline",tag:"a",download:"",href:`/payments/pdf/${s(_).unique_hash}`},{left:n(o=>[a(p,{name:"DownloadIcon",class:j(o.class)},null,8,["class"]),W(" "+y(t.$t("general.download")),1)]),_:1},8,["disabled","href"])]),_:1},8,["title"]),r("div",oe,[r("div",se,[a(A,{modelValue:s(e).payment_number,"onUpdate:modelValue":l[0]||(l[0]=o=>s(e).payment_number=o),placeholder:t.$t("general.search"),type:"text",variant:"gray",onInput:i},{right:n(()=>[a(p,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"]),r("div",ne,[a(ee,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:n(()=>[a(B,{variant:"gray"},{default:n(()=>[a(p,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:n(()=>[r("div",re,y(t.$t("general.sort_by")),1),r("div",le,[a(F,{class:"rounded-md pt-3 hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(v,{id:"filter_invoice_number",modelValue:s(e).orderByField,"onUpdate:modelValue":[l[1]||(l[1]=o=>s(e).orderByField=o),i],label:t.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",de,[a(F,{class:"rounded-md pt-3 hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(v,{id:"filter_payment_date",modelValue:s(e).orderByField,"onUpdate:modelValue":[l[2]||(l[2]=o=>s(e).orderByField=o),i],label:t.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",ie,[a(F,{class:"rounded-md pt-3 hover:rounded-md"},{default:n(()=>[a(x,{class:"-mt-3 font-normal"},{default:n(()=>[a(v,{id:"filter_payment_number",modelValue:s(e).orderByField,"onUpdate:modelValue":[l[3]||(l[3]=o=>s(e).orderByField=o),i],label:t.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),a(B,{class:"ml-1",variant:"white",onClick:T},{default:n(()=>[s(S)?(c(),h(p,{key:0,name:"SortAscendingIcon",class:"h-5"})):(c(),h(p,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),r("div",me,[(c(!0),V(Y,null,X(s(m).payments,(o,H)=>(c(),h(L,{id:"payment-"+o.id,key:H,to:`/${s(f).companySlug}/customer/payments/${o.id}/view`,class:j(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":N(o.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>[r("div",ce,[r("div",ue,y(o.payment_number),1)]),r("div",pe,[a(E,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:o.amount,currency:o.currency},null,8,["amount","currency"]),r("div",ye,y(o.formatted_payment_date),1)])]),_:2},1032,["id","to","class"]))),128)),s(m).payments.length?C("",!0):(c(),V("p",fe,y(t.$t("payments.no_matching_payments")),1))])]),r("div",_e,[s(I)?(c(),V("iframe",{key:0,src:s(I),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,be)):C("",!0)])]),_:1})}}};export{Fe as default};
var ne=Object.defineProperty;var L=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var M=(_,m,o)=>m in _?ne(_,m,{enumerable:!0,configurable:!0,writable:!0,value:o}):_[m]=o,z=(_,m)=>{for(var o in m||(m={}))re.call(m,o)&&M(_,o,m[o]);if(L)for(var o of L(m))le.call(m,o)&&M(_,o,m[o]);return _};import{J as ie,ah as de,B as f,G as ce,aN as ue,a0 as me,k as x,C as fe,A as ve,r as c,o as d,e as I,f as a,l as v,w as r,h as u,u as s,i as w,t as b,j as p,F as P,y as pe,m as _e}from"./vendor.01d0adc5.js";import{_ as ye}from"./InvoiceIndexDropdown.430bc329.js";import{c as be,i as ge,u as he,e as Be,j as xe,g as F}from"./main.75722495.js";import{_ as Ie}from"./SendInvoiceModal.89e6012d.js";import{L as ke}from"./LoadingIcon.44a6304d.js";import"./mail-driver.4ea1af6b.js";const Ee={class:"text-sm mr-3"},Se={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},we={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},Te={class:"mb-6"},De={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},Ve={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},$e={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},Fe={class:"flex-2"},Ne={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Ae={class:"flex-1 whitespace-nowrap right"},Ce={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},je={class:"flex justify-center p-4 items-center"},Re={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Le={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Me=["src"],We={setup(_){const m=be(),o=ge();he();const T=Be(),U=xe(),{t:g}=ie();de("$utils"),f(null),f(null);const l=f(null);f(null);const k=ce();ue(),f(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]);const E=f(!1),O=f(!1);f(!1);const N=f(!1),h=f(!1),t=me({orderBy:null,orderByField:null,searchText:null}),G=x(()=>l.value.invoice_number),A=x(()=>t.orderBy==="asc"||t.orderBy==null);x(()=>A.value?g("general.ascending"):g("general.descending"));const H=x(()=>`/invoices/pdf/${l.value.unique_hash}`);x(()=>l.value&&l.value.id?invoice.value.id:null),fe(k,(e,i)=>{e.name==="invoices.view"&&j()});async function J(){U.openDialog({title:g("general.are_you_sure"),message:g("invoices.invoice_mark_as_sent"),yesLabel:g("general.ok"),noLabel:g("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(async e=>{E.value=!1,e&&(await o.markAsSent({id:l.value.id,status:"SENT"}),l.value.status="SENT",E.value=!0),E.value=!1})}async function W(e){m.openModal({title:g("invoices.send_invoice"),componentName:"SendInvoiceModal",id:l.value.id,data:l.value})}function q(e){return k.params.id==e}async function C(){h.value=!0,await o.fetchInvoices(),h.value=!1,setTimeout(()=>{X()},500)}function X(){const e=document.getElementById(`invoice-${k.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))}async function j(){let e=await o.fetchInvoice(k.params.id);e.data&&(l.value=z({},e.data.data))}async function y(){let e="";t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(e+=`search=${t.searchText}&`),t.orderBy!==null&&t.orderBy!==void 0&&(e+=`orderBy=${t.orderBy}&`),t.orderByField!==null&&t.orderByField!==void 0&&(e+=`orderByField=${t.orderByField}`),N.value=!0;let i=await o.searchInvoice(e);N.value=!1,i.data&&(o.invoices=i.data.data)}function Y(){return t.orderBy==="asc"?(t.orderBy="desc",y(),!0):(t.orderBy="asc",y(),!0)}return C(),j(),y=ve.exports.debounce(y,500),(e,i)=>{const B=c("BaseButton"),R=c("router-link"),K=c("BasePageHeader"),S=c("BaseIcon"),Q=c("BaseInput"),D=c("BaseRadio"),V=c("BaseInputGroup"),$=c("BaseDropdownItem"),Z=c("BaseDropdown"),ee=c("BaseText"),te=c("BaseEstimateStatusBadge"),ae=c("BaseFormatMoney"),se=c("BasePage");return d(),I(P,null,[a(Ie),l.value?(d(),v(se,{key:0,class:"xl:pl-96 xl:ml-8"},{default:r(()=>[a(K,{title:s(G)},{actions:r(()=>[u("div",Ee,[l.value.status==="DRAFT"&&s(T).hasAbilities(s(F).EDIT_INVOICE)?(d(),v(B,{key:0,disabled:E.value,variant:"primary-outline",onClick:J},{default:r(()=>[w(b(e.$t("invoices.mark_as_sent")),1)]),_:1},8,["disabled"])):p("",!0)]),l.value.status==="DRAFT"&&s(T).hasAbilities(s(F).SEND_INVOICE)?(d(),v(B,{key:0,disabled:O.value,variant:"primary",class:"text-sm",onClick:W},{default:r(()=>[w(b(e.$t("invoices.send_invoice")),1)]),_:1},8,["disabled"])):p("",!0),s(T).hasAbilities(s(F).CREATE_PAYMENT)?(d(),v(R,{key:1,to:`/admin/payments/${e.$route.params.id}/create`},{default:r(()=>[l.value.status==="SENT"||l.value.status==="OVERDUE"||l.value.status==="VIEWED"?(d(),v(B,{key:0,variant:"primary"},{default:r(()=>[w(b(e.$t("invoices.record_payment")),1)]),_:1})):p("",!0)]),_:1},8,["to"])):p("",!0),a(ye,{class:"ml-3",row:l.value,"load-data":C},null,8,["row"])]),_:1},8,["title"]),u("div",Se,[u("div",we,[u("div",Te,[a(Q,{modelValue:s(t).searchText,"onUpdate:modelValue":i[0]||(i[0]=n=>s(t).searchText=n),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:i[1]||(i[1]=n=>y())},{right:r(()=>[a(S,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",De,[a(Z,{class:"ml-3",position:"bottom-start"},{activator:r(()=>[a(B,{size:"md",variant:"gray"},{default:r(()=>[a(S,{name:"FilterIcon"})]),_:1})]),default:r(()=>[u("div",Ve,b(e.$t("general.sort_by")),1),a($,{class:"flex px-1 py-2 cursor-pointer"},{default:r(()=>[a(V,{class:"-mt-3 font-normal"},{default:r(()=>[a(D,{id:"filter_invoice_date",modelValue:s(t).orderByField,"onUpdate:modelValue":[i[2]||(i[2]=n=>s(t).orderByField=n),y],label:e.$t("reports.invoices.invoice_date"),size:"sm",name:"filter",value:"invoice_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),a($,{class:"flex px-1 py-2 cursor-pointer"},{default:r(()=>[a(V,{class:"-mt-3 font-normal"},{default:r(()=>[a(D,{id:"filter_due_date",modelValue:s(t).orderByField,"onUpdate:modelValue":[i[3]||(i[3]=n=>s(t).orderByField=n),y],label:e.$t("invoices.due_date"),value:"due_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),a($,{class:"flex px-1 py-2 cursor-pointer"},{default:r(()=>[a(V,{class:"-mt-3 font-normal"},{default:r(()=>[a(D,{id:"filter_invoice_number",modelValue:s(t).orderByField,"onUpdate:modelValue":[i[4]||(i[4]=n=>s(t).orderByField=n),y],label:e.$t("invoices.invoice_number"),value:"invoice_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),a(B,{class:"ml-1",size:"md",variant:"gray",onClick:Y},{default:r(()=>[s(A)?(d(),v(S,{key:0,name:"SortAscendingIcon"})):(d(),v(S,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),s(o)&&s(o).invoices?(d(),I("div",$e,[(d(!0),I(P,null,pe(s(o).invoices,(n,oe)=>(d(),I("div",{key:oe},[n&&!h.value?(d(),v(R,{key:0,id:"invoice-"+n.id,to:`/admin/invoices/${n.id}/view`,class:_e(["flex justify-between side-invoice p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":q(n.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:r(()=>[u("div",Fe,[a(ee,{text:n.customer.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),u("div",Ne,b(n.invoice_number),1),a(te,{status:n.status,class:"px-1 text-xs"},{default:r(()=>[w(b(n.status),1)]),_:2},1032,["status"])]),u("div",Ae,[a(ae,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:n.total,currency:n.customer.currency},null,8,["amount","currency"]),u("div",Ce,b(n.formatted_invoice_date),1)])]),_:2},1032,["id","to","class"])):p("",!0)]))),128)),u("div",je,[h.value?(d(),v(ke,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):p("",!0)]),!s(o).invoices.length&&!h.value?(d(),I("p",Re,b(e.$t("invoices.no_matching_invoices")),1)):p("",!0)])):p("",!0)]),u("div",Le,[u("iframe",{src:`${s(H)}`,class:"flex-1 border border-gray-400 border-solid bg-white rounded-md frame-style"},null,8,Me)])]),_:1})):p("",!0)],64)}}};export{We as default};
import{G as M,J as O,B as S,a0 as R,A as J,k as T,r as d,o as a,e as v,h as o,f as t,w as n,u as e,t as x,l as p,F as U,y as z,j as h,m as Y,i as D,ah as H,C as K,x as Q,aN as W}from"./vendor.01d0adc5.js";import{l as L,_ as Z,b as ee,j as te,e as se,g as E}from"./main.75722495.js";import{L as ae}from"./LoadingIcon.44a6304d.js";import{_ as ne}from"./LineChart.a92f3bea.js";import{_ as oe}from"./CustomerIndexDropdown.3adf4218.js";const le={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},re={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},ce={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},ie={class:"px-4 py-3 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},de={class:"px-2"},ue={class:"px-2"},me={class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sidebar base-scroll"},_e={class:"flex-1 font-bold text-right whitespace-nowrap"},pe={class:"flex justify-center p-4 items-center"},fe={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},he={setup(V){const y=L(),s=M(),{t:m}=O();let c=S(!1),i=S(!1),l=R({orderBy:"",orderByField:"",searchText:""});f=J.exports.debounce(f,500);const $=T(()=>l.orderBy==="asc"||l.orderBy==null);T(()=>$.value?m("general.ascending"):m("general.descending"));function B(r){return s.params.id==r}async function I(){i.value=!0,await y.fetchCustomers({limit:"all"}),i.value=!1,setTimeout(()=>{g()},500)}function g(){const r=document.getElementById(`customer-${s.params.id}`);r&&(r.scrollIntoView({behavior:"smooth"}),r.classList.add("shake"))}async function f(){let r={};l.searchText!==""&&l.searchText!==null&&l.searchText!==void 0&&(r.display_name=l.searchText),l.orderBy!==null&&l.orderBy!==void 0&&(r.orderBy=l.orderBy),l.orderByField!==null&&l.orderByField!==void 0&&(r.orderByField=l.orderByField),c.value=!0;try{let _=await y.fetchCustomers(r);c.value=!1,_.data&&(y.customers=_.data.data)}catch{c.value=!1}}function w(){return l.orderBy==="asc"?(l.orderBy="desc",f(),!0):(l.orderBy="asc",f(),!0)}return I(),(r,_)=>{const u=d("BaseIcon"),C=d("BaseInput"),k=d("BaseButton"),j=d("BaseRadio"),A=d("BaseInputGroup"),F=d("BaseDropdownItem"),P=d("BaseDropdown"),N=d("BaseText"),G=d("BaseFormatMoney"),X=d("router-link");return a(),v("div",le,[o("div",re,[t(C,{modelValue:e(l).searchText,"onUpdate:modelValue":_[0]||(_[0]=b=>e(l).searchText=b),placeholder:r.$t("general.search"),"container-class":"mb-6",type:"text",variant:"gray",onInput:_[1]||(_[1]=b=>f())},{default:n(()=>[t(u,{name:"SearchIcon",class:"text-gray-500"})]),_:1},8,["modelValue","placeholder"]),o("div",ce,[t(P,{"close-on-select":!1,position:"bottom-start","width-class":"w-40","position-class":"left-0"},{activator:n(()=>[t(k,{variant:"gray"},{default:n(()=>[t(u,{name:"FilterIcon"})]),_:1})]),default:n(()=>[o("div",ie,x(r.$t("general.sort_by")),1),o("div",de,[t(F,{class:"flex px-1 py-2 mt-1 cursor-pointer hover:rounded-md"},{default:n(()=>[t(A,{class:"pt-2 -mt-4"},{default:n(()=>[t(j,{id:"filter_create_date",modelValue:e(l).orderByField,"onUpdate:modelValue":[_[2]||(_[2]=b=>e(l).orderByField=b),f],label:r.$t("customers.create_date"),size:"sm",name:"filter",value:"invoices.created_at"},null,8,["modelValue","label"])]),_:1})]),_:1})]),o("div",ue,[t(F,{class:"flex px-1 cursor-pointer hover:rounded-md"},{default:n(()=>[t(A,{class:"pt-2 -mt-4"},{default:n(()=>[t(j,{id:"filter_display_name",modelValue:e(l).orderByField,"onUpdate:modelValue":[_[3]||(_[3]=b=>e(l).orderByField=b),f],label:r.$t("customers.display_name"),size:"sm",name:"filter",value:"name"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),t(k,{class:"ml-1",size:"md",variant:"gray",onClick:w},{default:n(()=>[e($)?(a(),p(u,{key:0,name:"SortAscendingIcon"})):(a(),p(u,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),o("div",me,[(a(!0),v(U,null,z(e(y).customers,(b,q)=>(a(),v("div",{key:q},[b&&!e(i)?(a(),p(X,{key:0,id:"customer-"+b.id,to:`/admin/customers/${b.id}/view`,class:Y(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":B(b.id)}]),style:{"border-top":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>[o("div",null,[t(N,{text:b.name,length:30,class:"pr-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),b.contact_name?(a(),p(N,{key:0,text:b.contact_name,length:30,class:"mt-1 text-xs not-italic font-medium leading-5 text-gray-600"},null,8,["text"])):h("",!0)]),o("div",_e,[t(G,{amount:b.due_amount,currency:b.currency},null,8,["amount","currency"])])]),_:2},1032,["id","to","class"])):h("",!0)]))),128)),o("div",pe,[e(i)?(a(),p(ae,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):h("",!0)]),!e(y).customers.length&&!e(i)?(a(),v("p",fe,x(r.$t("customers.no_matching_customers")),1)):h("",!0)])])}}},ye={class:"pt-6 mt-5 border-t border-solid lg:pt-8 md:pt-4 border-gray-200"},ge={key:0,class:"text-sm font-bold leading-5 text-black non-italic"},xe={key:0},be={key:1},Be={key:1,class:"text-sm font-bold leading-5 text-black non-italic"},ve={setup(V){const y=L(),s=T(()=>y.selectedViewCustomer),m=T(()=>y.isFetchingViewData),c=T(()=>{var i,l;return((i=s==null?void 0:s.value)==null?void 0:i.fields)?(l=s==null?void 0:s.value)==null?void 0:l.fields:[]});return(i,l)=>{const $=d("BaseHeading"),B=d("BaseDescriptionListItem"),I=d("BaseDescriptionList"),g=d("BaseCustomerAddressDisplay");return a(),v("div",ye,[t($,null,{default:n(()=>[D(x(i.$t("customers.basic_info")),1)]),_:1}),t(I,null,{default:n(()=>{var f,w,r;return[t(B,{"content-loading":e(m),label:i.$t("customers.display_name"),value:(f=e(s))==null?void 0:f.name},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.primary_contact_name"),value:(w=e(s))==null?void 0:w.contact_name},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.email"),value:(r=e(s))==null?void 0:r.email},null,8,["content-loading","label","value"])]}),_:1}),t(I,{class:"mt-5"},{default:n(()=>{var f,w,r,_,u,C,k;return[t(B,{"content-loading":e(m),label:i.$t("wizard.currency"),value:((f=e(s))==null?void 0:f.currency)?`${(r=(w=e(s))==null?void 0:w.currency)==null?void 0:r.code} (${(u=(_=e(s))==null?void 0:_.currency)==null?void 0:u.symbol})`:""},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.phone_number"),value:(C=e(s))==null?void 0:C.phone},null,8,["content-loading","label","value"]),t(B,{"content-loading":e(m),label:i.$t("customers.website"),value:(k=e(s))==null?void 0:k.website},null,8,["content-loading","label","value"])]}),_:1}),e(s).billing||e(s).shipping?(a(),p($,{key:0,class:"mt-8"},{default:n(()=>[D(x(i.$t("customers.address")),1)]),_:1})):h("",!0),t(I,{class:"mt-5"},{default:n(()=>[e(s).billing?(a(),p(B,{key:0,"content-loading":e(m),label:i.$t("customers.billing_address")},{default:n(()=>[t(g,{address:e(s).billing},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0),e(s).shipping?(a(),p(B,{key:1,"content-loading":e(m),label:i.$t("customers.shipping_address")},{default:n(()=>[t(g,{address:e(s).shipping},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0)]),_:1}),e(c).length>0?(a(),p($,{key:1,class:"mt-8"},{default:n(()=>[D(x(i.$t("settings.custom_fields.title")),1)]),_:1})):h("",!0),t(I,{class:"mt-5"},{default:n(()=>[(a(!0),v(U,null,z(e(c),(f,w)=>(a(),p(B,{key:w,"content-loading":e(m),label:f.custom_field.label},{default:n(()=>[f.type==="Switch"?(a(),v("p",ge,[f.default_answer===1?(a(),v("span",xe," Yes ")):(a(),v("span",be," No "))])):(a(),v("p",Be,x(f.default_answer),1))]),_:2},1032,["content-loading","label"]))),128))]),_:1})])}}},$e={},we={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},Ce={class:"flex justify-between mt-1 mb-6"},ke={class:"grid col-span-12 mt-6 text-center xl:mt-0 sm:grid-cols-4 xl:text-right xl:col-span-3 xl:grid-cols-1 xxl:col-span-2"},Te={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Ee={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Ie={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},De={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"};function Ae(V,y){const s=d("BaseContentPlaceholdersText"),m=d("BaseContentPlaceholdersBox"),c=d("BaseContentPlaceholders");return a(),p(c,{class:"grid grid-cols-12"},{default:n(()=>[o("div",we,[o("div",Ce,[t(s,{class:"h-10 w-36",lines:1}),t(s,{class:"h-10 w-40 !mt-0",lines:1})]),t(m,{class:"h-80 xl:h-72 sm:w-full"})]),o("div",ke,[o("div",Te,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})]),o("div",Ee,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})]),o("div",Ie,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})]),o("div",De,[t(s,{class:"h-3 w-14 xl:h-4",lines:1}),t(s,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var je=Z($e,[["render",Ae]]);const Se={key:1,class:"grid grid-cols-12"},Ve={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},Fe={class:"flex justify-between mt-1 mb-6"},Pe={class:"flex items-center"},Re={class:"w-40 h-10"},Le={class:"grid col-span-12 mt-6 text-center xl:mt-0 sm:grid-cols-4 xl:text-right xl:col-span-3 xl:grid-cols-1 xxl:col-span-2"},Me={class:"px-6 py-2"},Ne={class:"text-xs leading-5 lg:text-sm"},Oe=o("br",null,null,-1),Ue={key:0,class:"block mt-1 text-xl font-semibold leading-8"},ze={class:"px-6 py-2"},Ye={class:"text-xs leading-5 lg:text-sm"},He=o("br",null,null,-1),Ge={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#00c99c"}},Xe={class:"px-6 py-2"},qe={class:"text-xs leading-5 lg:text-sm"},Je=o("br",null,null,-1),Ke={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#fb7178"}},Qe={class:"px-6 py-2"},We={class:"text-xs leading-5 lg:text-sm"},Ze=o("br",null,null,-1),et={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#5851d8"}},tt={setup(V){ee();const y=L();H("utils");const s=M();let m=S(!1),c=R({}),i=R({}),l=R(["This year","Previous year"]),$=S("This year");const B=T(()=>c.expenseTotals?c.expenseTotals:[]),I=T(()=>c.netProfits?c.netProfits:[]),g=T(()=>c&&c.months?c.months:[]),f=T(()=>c.receiptTotals?c.receiptTotals:[]),w=T(()=>c.invoiceTotals?c.invoiceTotals:[]);K(s,()=>{s.params.id&&r(),$.value="This year"},{immediate:!0});async function r(){m.value=!1;let u=await y.fetchViewCustomer({id:s.params.id});u.data&&(Object.assign(c,u.data.meta.chartData),Object.assign(i,u.data.data)),m.value=!0}async function _(u){let C={id:s.params.id};u==="Previous year"?C.previous_year=!0:C.this_year=!0;let k=await y.fetchViewCustomer(C);return k.data.meta.chartData&&Object.assign(c,k.data.meta.chartData),!0}return(u,C)=>{const k=d("BaseIcon"),j=d("BaseMultiselect"),A=d("BaseFormatMoney"),F=d("BaseCard");return a(),p(F,{class:"flex flex-col mt-6"},{default:n(()=>[e(y).isFetchingViewData?(a(),p(je,{key:0})):(a(),v("div",Se,[o("div",Ve,[o("div",Fe,[o("h6",Pe,[t(k,{name:"ChartSquareBarIcon",class:"h-5 text-primary-400"}),D(" "+x(u.$t("dashboard.monthly_chart.title")),1)]),o("div",Re,[t(j,{modelValue:e($),"onUpdate:modelValue":C[0]||(C[0]=P=>Q($)?$.value=P:$=P),options:e(l),"allow-empty":!1,"show-labels":!1,placeholder:u.$t("dashboard.select_year"),"can-deselect":!1,onSelect:_},null,8,["modelValue","options","placeholder"])])]),e(m)?(a(),p(ne,{key:0,invoices:e(w),expenses:e(B),receipts:e(f),income:e(I),labels:e(g),class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])):h("",!0)]),o("div",Le,[o("div",Me,[o("span",Ne,x(u.$t("dashboard.chart_info.total_sales")),1),Oe,e(m)?(a(),v("span",Ue,[t(A,{amount:e(c).salesTotal,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)]),o("div",ze,[o("span",Ye,x(u.$t("dashboard.chart_info.total_receipts")),1),He,e(m)?(a(),v("span",Ge,[t(A,{amount:e(c).totalExpenses,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)]),o("div",Xe,[o("span",qe,x(u.$t("dashboard.chart_info.total_expense")),1),Je,e(m)?(a(),v("span",Ke,[t(A,{amount:e(c).totalExpenses,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)]),o("div",Qe,[o("span",We,x(u.$t("dashboard.chart_info.net_income")),1),Ze,e(m)?(a(),v("span",et,[t(A,{amount:e(c).netProfit,currency:e(i).currency},null,8,["amount","currency"])])):h("",!0)])])])),t(ve)]),_:1})}}},rt={setup(V){H("utils"),te();const y=L(),s=se();O();const m=W(),c=M();S(null);const i=T(()=>y.selectedViewCustomer.customer?y.selectedViewCustomer.customer.name:"");let l=T(()=>y.isFetchingViewData);function $(){return s.hasAbilities([E.CREATE_ESTIMATE,E.CREATE_INVOICE,E.CREATE_PAYMENT,E.CREATE_EXPENSE])}function B(){return s.hasAbilities([E.DELETE_CUSTOMER,E.EDIT_CUSTOMER])}function I(){m.push("/admin/customers")}return(g,f)=>{const w=d("BaseButton"),r=d("router-link"),_=d("BaseIcon"),u=d("BaseDropdownItem"),C=d("BaseDropdown"),k=d("BasePageHeader"),j=d("BasePage");return a(),p(j,{class:"xl:pl-96"},{default:n(()=>[t(k,{title:e(i)},{actions:n(()=>[e(s).hasAbilities(e(E).EDIT_CUSTOMER)?(a(),p(r,{key:0,to:`/admin/customers/${e(c).params.id}/edit`},{default:n(()=>[t(w,{class:"mr-3",variant:"primary-outline","content-loading":e(l)},{default:n(()=>[D(x(g.$t("general.edit")),1)]),_:1},8,["content-loading"])]),_:1},8,["to"])):h("",!0),$()?(a(),p(C,{key:1,position:"bottom-end","content-loading":e(l)},{activator:n(()=>[t(w,{class:"mr-3",variant:"primary","content-loading":e(l)},{default:n(()=>[D(x(g.$t("customers.new_transaction")),1)]),_:1},8,["content-loading"])]),default:n(()=>[e(s).hasAbilities(e(E).CREATE_ESTIMATE)?(a(),p(r,{key:0,to:`/admin/estimates/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,{class:""},{default:n(()=>[t(_,{name:"DocumentIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("estimates.new_estimate")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(s).hasAbilities(e(E).CREATE_INVOICE)?(a(),p(r,{key:1,to:`/admin/invoices/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,null,{default:n(()=>[t(_,{name:"DocumentTextIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("invoices.new_invoice")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(s).hasAbilities(e(E).CREATE_PAYMENT)?(a(),p(r,{key:2,to:`/admin/payments/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,null,{default:n(()=>[t(_,{name:"CreditCardIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("payments.new_payment")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(s).hasAbilities(e(E).CREATE_EXPENSE)?(a(),p(r,{key:3,to:`/admin/expenses/create?customer=${g.$route.params.id}`},{default:n(()=>[t(u,null,{default:n(()=>[t(_,{name:"CalculatorIcon",class:"mr-3 text-gray-600"}),D(" "+x(g.$t("expenses.new_expense")),1)]),_:1})]),_:1},8,["to"])):h("",!0)]),_:1},8,["content-loading"])):h("",!0),B()?(a(),p(oe,{key:2,class:Y({"ml-3":e(l)}),row:e(y).selectedViewCustomer,"load-data":I},null,8,["class","row"])):h("",!0)]),_:1},8,["title"]),t(he),t(tt)]),_:1})}}};export{rt as default};
import{J as M,B as y,G as P,aN as U,a0 as W,k as j,A as X,r,o as u,e as R,h as f,f as n,w as o,u as t,t as b,l as p,F as G,y as K,i as C,m as Q,j as I,ah as Y,V as Z,C as ee}from"./vendor.01d0adc5.js";import{c as te,t as A,u as ne,e as z,j as H,g as E}from"./main.75722495.js";import{L as ae}from"./LoadingIcon.44a6304d.js";import{_ as oe}from"./InvoiceIndexDropdown.430bc329.js";import{_ as re}from"./RecurringInvoiceIndexDropdown.37d4a992.js";const se={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},ie={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},le={class:"mb-6"},ce={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},ue={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},de={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},me={class:"flex-2"},_e={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},ge={class:"flex-1 whitespace-nowrap right"},ve={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},pe={class:"flex justify-center p-4 items-center"},fe={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},ye={setup(O){te();const a=A();ne(),z(),H(),M(),y(null),y(null),y(null);const m=P();U(),y(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]);const l=y(!1),_=y(!1),e=W({orderBy:null,orderByField:null,searchText:null}),B=j(()=>e.orderBy==="asc"||e.orderBy==null);function h(s){return m.params.id==s}async function g(){_.value=!0,await a.fetchRecurringInvoices(),_.value=!1,setTimeout(()=>{k()},500)}function k(){const s=document.getElementById(`recurring-invoice-${m.params.id}`);s&&(s.scrollIntoView({behavior:"smooth"}),s.classList.add("shake"))}async function v(){let s="";e.searchText!==""&&e.searchText!==null&&e.searchText!==void 0&&(s+=`search=${e.searchText}&`),e.orderBy!==null&&e.orderBy!==void 0&&(s+=`orderBy=${e.orderBy}&`),e.orderByField!==null&&e.orderByField!==void 0&&(s+=`orderByField=${e.orderByField}`),l.value=!0;let d=await a.searchRecurringInvoice(s);l.value=!1,d.data&&(a.recurringInvoices=d.data.data)}function x(){return e.orderBy==="asc"?(e.orderBy="desc",v(),!0):(e.orderBy="asc",v(),!0)}return g(),v=X.exports.debounce(v,500),(s,d)=>{const i=r("BaseIcon"),w=r("BaseInput"),D=r("BaseButton"),$=r("BaseRadio"),S=r("BaseInputGroup"),V=r("BaseDropdownItem"),T=r("BaseDropdown"),F=r("BaseText"),N=r("BaseRecurringInvoiceStatusBadge"),L=r("BaseFormatMoney"),q=r("router-link");return u(),R("div",se,[f("div",ie,[f("div",le,[n(w,{modelValue:t(e).searchText,"onUpdate:modelValue":d[0]||(d[0]=c=>t(e).searchText=c),placeholder:s.$t("general.search"),type:"text",variant:"gray",onInput:d[1]||(d[1]=c=>v())},{right:o(()=>[n(i,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),f("div",ce,[n(T,{class:"ml-3",position:"bottom-start"},{activator:o(()=>[n(D,{size:"md",variant:"gray"},{default:o(()=>[n(i,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:o(()=>[f("div",ue,b(s.$t("general.sort_by")),1),n(V,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[n(S,{class:"-mt-3 font-normal"},{default:o(()=>[n($,{id:"filter_next_invoice_date",modelValue:t(e).orderByField,"onUpdate:modelValue":[d[2]||(d[2]=c=>t(e).orderByField=c),v],label:s.$t("recurring_invoices.next_invoice_date"),size:"sm",name:"filter",value:"next_invoice_at"},null,8,["modelValue","label"])]),_:1})]),_:1}),n(V,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[n(S,{class:"-mt-3 font-normal"},{default:o(()=>[n($,{id:"filter_start_date",modelValue:t(e).orderByField,"onUpdate:modelValue":[d[3]||(d[3]=c=>t(e).orderByField=c),v],label:s.$t("recurring_invoices.starts_at"),value:"starts_at",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),n(D,{class:"ml-1",size:"md",variant:"gray",onClick:x},{default:o(()=>[t(B)?(u(),p(i,{key:0,name:"SortAscendingIcon",class:"h-5"})):(u(),p(i,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),t(a)&&t(a).recurringInvoices?(u(),R("div",de,[(u(!0),R(G,null,K(t(a).recurringInvoices,(c,J)=>(u(),R("div",{key:J},[c&&!_.value?(u(),p(q,{key:0,id:"recurring-invoice-"+c.id,to:`/admin/recurring-invoices/${c.id}/view`,class:Q(["flex justify-between side-invoice p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":h(c.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[f("div",me,[n(F,{text:c.customer.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),f("div",_e,b(c.invoice_number),1),n(N,{status:c.status,class:"px-1 text-xs"},{default:o(()=>[C(b(c.status),1)]),_:2},1032,["status"])]),f("div",ge,[n(L,{class:"block mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",amount:c.total,currency:c.customer.currency},null,8,["amount","currency"]),f("div",ve,b(c.formatted_starts_at),1)])]),_:2},1032,["id","to","class"])):I("",!0)]))),128)),f("div",pe,[_.value?(u(),p(ae,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):I("",!0)]),!t(a).recurringInvoices.length&&!_.value?(u(),R("p",fe,b(s.$t("invoices.no_matching_invoices")),1)):I("",!0)])):I("",!0)])}}},be={class:"relative table-container"},Ie={setup(O){const a=A(),m=y(null);y(null),Y("$utils");const{t:l}=M();y(null),U();const _=z(),e=j(()=>[{key:"invoice_date",label:l("invoices.date"),thClass:"extra",tdClass:"font-medium text-gray-900"},{key:"invoice_number",label:l("invoices.invoice")},{key:"customer.name",label:l("invoices.customer")},{key:"status",label:l("invoices.status")},{key:"total",label:l("invoices.total")},{key:"actions",label:l("invoices.action"),tdClass:"text-right text-sm font-medium",thClass:"text-right",sortable:!1}]);function B(){return _.hasAbilities([E.DELETE_INVOICE,E.EDIT_INVOICE,E.VIEW_INVOICE,E.SEND_INVOICE])}return(h,g)=>{const k=r("SendInvoiceModal"),v=r("router-link"),x=r("BaseFormatMoney"),s=r("BaseInvoiceStatusBadge"),d=r("BaseTable");return u(),R(G,null,[n(k),f("div",be,[n(d,{ref:(i,w)=>{w.table=i,m.value=i},data:t(a).newRecurringInvoice.invoices,columns:t(e),loading:t(a).isFetchingViewData,"placeholder-count":5,class:"mt-5"},Z({"cell-invoice_number":o(({row:i})=>[n(v,{to:{path:`/admin/invoices/${i.data.id}/view`},class:"font-medium text-primary-500"},{default:o(()=>[C(b(i.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-total":o(({row:i})=>[n(x,{amount:i.data.due_amount,currency:i.data.currency},null,8,["amount","currency"])]),"cell-status":o(({row:i})=>[n(s,{status:i.data.status,class:"px-3 py-1"},{default:o(()=>[C(b(i.data.status),1)]),_:2},1032,["status"])]),_:2},[B()?{name:"cell-actions",fn:o(({row:i})=>[n(oe,{row:i.data,table:m.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])],64)}}},Be={setup(O){const a=A(),m=P();let l=j(()=>a.isFetchingViewData);ee(m,()=>{m.params.id&&m.name==="recurring-invoices.view"&&_()},{immediate:!0});async function _(){await a.fetchRecurringInvoice(m.params.id)}return(e,B)=>{const h=r("BaseHeading"),g=r("BaseDescriptionListItem"),k=r("BaseDescriptionList"),v=r("BaseCard");return u(),p(v,{class:"mt-10"},{default:o(()=>[n(h,null,{default:o(()=>[C(b(e.$t("customers.basic_info")),1)]),_:1}),n(k,{class:"mt-5"},{default:o(()=>{var x,s,d,i,w,D,$,S,V,T,F,N,L;return[n(g,{label:e.$t("recurring_invoices.starts_at"),"content-loading":t(l),value:(x=t(a).newRecurringInvoice)==null?void 0:x.formatted_starts_at},null,8,["label","content-loading","value"]),n(g,{label:e.$t("recurring_invoices.next_invoice_date"),"content-loading":t(l),value:(s=t(a).newRecurringInvoice)==null?void 0:s.formatted_next_invoice_at},null,8,["label","content-loading","value"]),((d=t(a).newRecurringInvoice)==null?void 0:d.limit_date)&&((i=t(a).newRecurringInvoice)==null?void 0:i.limit_by)!=="NONE"?(u(),p(g,{key:0,label:e.$t("recurring_invoices.limit_date"),"content-loading":t(l),value:(w=t(a).newRecurringInvoice)==null?void 0:w.limit_date},null,8,["label","content-loading","value"])):I("",!0),((D=t(a).newRecurringInvoice)==null?void 0:D.limit_date)&&(($=t(a).newRecurringInvoice)==null?void 0:$.limit_by)!=="NONE"?(u(),p(g,{key:1,label:e.$t("recurring_invoices.limit_by"),"content-loading":t(l),value:(S=t(a).newRecurringInvoice)==null?void 0:S.limit_by},null,8,["label","content-loading","value"])):I("",!0),((V=t(a).newRecurringInvoice)==null?void 0:V.limit_count)?(u(),p(g,{key:2,label:e.$t("recurring_invoices.limit_count"),value:(T=t(a).newRecurringInvoice)==null?void 0:T.limit_count,"content-loading":t(l)},null,8,["label","value","content-loading"])):I("",!0),((F=t(a).newRecurringInvoice)==null?void 0:F.selectedFrequency)?(u(),p(g,{key:3,label:e.$t("recurring_invoices.frequency.title"),value:(L=(N=t(a).newRecurringInvoice)==null?void 0:N.selectedFrequency)==null?void 0:L.label,"content-loading":t(l)},null,8,["label","value","content-loading"])):I("",!0)]}),_:1}),n(h,{class:"mt-8"},{default:o(()=>[C(b(e.$t("invoices.title",2)),1)]),_:1}),n(Ie)]),_:1})}}},ke={setup(O){H();const a=A(),m=z();M(),U();const l=j(()=>{var e,B;return a.newRecurringInvoice?(B=(e=a.newRecurringInvoice)==null?void 0:e.customer)==null?void 0:B.name:""});function _(){return m.hasAbilities([E.DELETE_RECURRING_INVOICE,E.EDIT_RECURRING_INVOICE])}return(e,B)=>{const h=r("BasePageHeader"),g=r("BasePage");return u(),p(g,{class:"xl:pl-96"},{default:o(()=>[n(h,{title:t(l)},{actions:o(()=>[_()?(u(),p(re,{key:0,row:t(a).newRecurringInvoice},null,8,["row"])):I("",!0)]),_:1},8,["title"]),n(ye),n(Be)]),_:1})}}};export{ke as default};
import{G as te,aN as ae,J as se,B as m,a0 as N,ah as oe,k as g,I as ne,C as re,A as le,r as d,o as c,e as p,f as o,w as n,u as t,l as B,i as de,t as _,j as y,h as r,F as C,y as ie,m as ce}from"./vendor.01d0adc5.js";import{c as ue,e as me,j as fe,g as pe}from"./main.75722495.js";import{u as _e}from"./payment.5c57bec3.js";import{_ as ye,a as he}from"./SendPaymentModal.1bb9d371.js";import{L as be}from"./LoadingIcon.44a6304d.js";import"./mail-driver.4ea1af6b.js";const ge={class:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},Be={class:"flex items-center justify-between px-4 pt-8 pb-6 border border-gray-200 border-solid"},ve={class:"flex ml-3",role:"group","aria-label":"First group"},xe={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},we={class:"px-2"},ke={class:"px-2"},Ie={class:"px-2"},Fe={key:0,class:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid"},Ve={class:"flex-2"},Pe={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},Se={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},je={class:"flex-1 whitespace-nowrap right"},Te={class:"text-sm text-right text-gray-500 non-italic"},De={class:"flex justify-center p-4 items-center"},$e={key:0,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Me={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},ze=["src"],Re={setup(Ne){const h=te();ae();const{t:w}=se();m(null),m(null);let f=N({});m(null);let s=N({orderBy:null,orderByField:null,searchText:null}),k=m(!1),L=m(!1);m(!1);let b=m(!1),v=m(!1);oe("utils");const i=_e(),U=ue(),A=me(),E=g(()=>f.payment_number||""),S=g(()=>s.orderBy==="asc"||s.orderBy==null);g(()=>S.value?w("general.ascending"):w("general.descending"));const j=g(()=>f.unique_hash?`/payments/pdf/${f.unique_hash}`:!1);g(()=>{var a;return ne((a=i==null?void 0:i.selectedPayment)==null?void 0:a.payment_date).format("YYYY/MM/DD")}),re(h,()=>{T()}),R(),T(),u=le.exports.debounce(u,500);function Y(a){return h.params.id==a}fe();async function R(){b.value=!0,await i.fetchPayments({limit:"all"}),b.value=!1,setTimeout(()=>{G()},500)}async function T(){if(!h.params.id)return;v.value=!0;let a=await i.fetchPayment(h.params.id);a.data&&(v.value=!1,Object.assign(f,a.data.data))}function G(){const a=document.getElementById(`payment-${h.params.id}`);a&&(a.scrollIntoView({behavior:"smooth"}),a.classList.add("shake"))}async function u(){let a={};s.searchText!==""&&s.searchText!==null&&s.searchText!==void 0&&(a.search=s.searchText),s.orderBy!==null&&s.orderBy!==void 0&&(a.orderBy=s.orderBy),s.orderByField!==null&&s.orderByField!==void 0&&(a.orderByField=s.orderByField),k.value=!0;try{let l=await i.searchPayment(a);k.value=!1,l.data.data&&(i.payments=l.data.data)}catch{k.value=!1}}function q(){return s.orderBy==="asc"?(s.orderBy="desc",u(),!0):(s.orderBy="asc",u(),!0)}async function H(){U.openModal({title:w("payments.send_payment"),componentName:"SendPaymentModal",id:f.id,data:f,variant:"lg"})}return(a,l)=>{const I=d("BaseButton"),O=d("BasePageHeader"),x=d("BaseIcon"),J=d("BaseInput"),F=d("BaseRadio"),V=d("BaseInputGroup"),P=d("BaseDropdownItem"),K=d("BaseDropdown"),Q=d("BaseText"),W=d("BaseFormatMoney"),X=d("router-link"),Z=d("BasePage");return c(),p(C,null,[o(ye),o(Z,{class:"xl:pl-96"},{default:n(()=>{var D,$;return[o(O,{title:t(E)},{actions:n(()=>[t(A).hasAbilities(t(pe).SEND_PAYMENT)?(c(),B(I,{key:0,disabled:t(L),"content-loading":t(v),variant:"primary",onClick:H},{default:n(()=>[de(_(a.$t("payments.send_payment_receipt")),1)]),_:1},8,["disabled","content-loading"])):y("",!0),o(he,{"content-loading":t(v),class:"ml-3",row:t(f)},null,8,["content-loading","row"])]),_:1},8,["title"]),r("div",ge,[r("div",Be,[o(J,{modelValue:t(s).searchText,"onUpdate:modelValue":l[0]||(l[0]=e=>t(s).searchText=e),placeholder:a.$t("general.search"),type:"text",onInput:u},{default:n(()=>[o(x,{name:"SearchIcon",class:"h-5"})]),_:1},8,["modelValue","placeholder"]),r("div",ve,[o(K,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:n(()=>[o(I,{variant:"gray"},{default:n(()=>[o(x,{name:"FilterIcon"})]),_:1})]),default:n(()=>[r("div",xe,_(a.$t("general.sort_by")),1),r("div",we,[o(P,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[o(V,{class:"-mt-3 font-normal"},{default:n(()=>[o(F,{id:"filter_invoice_number",modelValue:t(s).orderByField,"onUpdate:modelValue":[l[1]||(l[1]=e=>t(s).orderByField=e),u],label:a.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",ke,[o(P,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[o(V,{class:"-mt-3 font-normal"},{default:n(()=>[o(F,{modelValue:t(s).orderByField,"onUpdate:modelValue":[l[2]||(l[2]=e=>t(s).orderByField=e),u],label:a.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),r("div",Ie,[o(P,{class:"pt-3 rounded-md hover:rounded-md"},{default:n(()=>[o(V,{class:"-mt-3 font-normal"},{default:n(()=>[o(F,{id:"filter_payment_number",modelValue:t(s).orderByField,"onUpdate:modelValue":[l[3]||(l[3]=e=>t(s).orderByField=e),u],label:a.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),o(I,{class:"ml-1",size:"md",variant:"gray",onClick:q},{default:n(()=>[t(S)?(c(),B(x,{key:0,name:"SortAscendingIcon"})):(c(),B(x,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),t(i)&&t(i).payments?(c(),p("div",Fe,[(c(!0),p(C,null,ie(t(i).payments,(e,ee)=>(c(),p("div",{key:ee},[e&&!t(b)?(c(),B(X,{key:0,id:"payment-"+e.id,to:`/admin/payments/${e.id}/view`,class:ce(["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":Y(e.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:n(()=>{var M,z;return[r("div",Ve,[o(Q,{text:(M=e==null?void 0:e.customer)==null?void 0:M.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),r("div",Pe,_(e==null?void 0:e.payment_number),1),r("div",Se,_(e==null?void 0:e.invoice_number),1)]),r("div",je,[o(W,{class:"block mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",amount:e==null?void 0:e.amount,currency:(z=e.customer)==null?void 0:z.currency},null,8,["amount","currency"]),r("div",Te,_(e.formatted_payment_date),1)])]}),_:2},1032,["id","to","class"])):y("",!0)]))),128)),r("div",De,[t(b)?(c(),B(be,{key:0,class:"h-6 m-1 animate-spin text-primary-400"})):y("",!0)]),!(($=(D=t(i))==null?void 0:D.payments)==null?void 0:$.length)&&!t(b)?(c(),p("p",$e,_(a.$t("payments.no_matching_payments")),1)):y("",!0)])):y("",!0)]),r("div",Me,[t(j)?(c(),p("iframe",{key:0,src:t(j),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,ze)):y("",!0)])]}),_:1})],64)}}};export{Re as default};
import{_ as fe,d as ve,r as ye,u as be,j as xe}from"./main.75722495.js";import{r as p,o,l as g,w as u,f as n,h as e,J as ee,t as r,i as k,G as we,B as _,C as ke,k as x,a0 as H,I as te,u as t,e as d,m as v,j as h,y as j,F as $,an as se,ao as $e,b3 as Be,ap as Me,aA as je,aB as F,aC as Ce,az as O,aD as Pe,a as Te}from"./vendor.01d0adc5.js";const Le={},Ie={class:"lg:grid lg:grid-rows-1 lg:grid-cols-7 lg:gap-x-8 lg:gap-y-10 xl:gap-x-16 mt-6"},Se={class:"lg:row-end-1 lg:col-span-4"},Re={class:"max-w-2xl mx-auto mt-10 lg:max-w-none lg:mt-0 lg:row-end-2 lg:row-span-2 lg:col-span-3 w-full"},Ye=e("h3",{class:"sr-only"},"Reviews",-1),He=e("p",{class:"sr-only"},"4 out of 5 stars",-1),De={class:"flex flex-col-reverse"},Ve={class:"mt-4"},ze={class:"mt-10 grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},Ne=e("div",{class:"mt-10"},null,-1),Ue={class:"border-t border-gray-200 mt-10 pt-10"},Ge={class:"border-t border-gray-200 mt-10 pt-10"},Ke={class:"w-full max-w-2xl mx-auto mt-16 lg:max-w-none lg:mt-0 lg:col-span-4"};function qe(C,D){const m=p("BaseContentPlaceholdersText"),B=p("BaseContentPlaceholdersBox"),G=p("BasePage"),L=p("BaseContentPlaceholders");return o(),g(L,{rounded:""},{default:u(()=>[n(G,{class:"bg-white"},{default:u(()=>[n(m,{class:"mt-4 h-8 w-40",lines:1}),n(m,{class:"mt-4 h-8 w-56 mb-4",lines:1}),e("div",Ie,[e("div",Se,[n(B,{class:"h-96 sm:w-full",rounded:""})]),e("div",Re,[e("div",null,[Ye,n(m,{class:"w-32 h-8",lines:1}),He]),e("div",De,[e("div",Ve,[n(m,{class:"w-48 xl:w-80 h-12",lines:1}),n(m,{class:"w-64 xl:w-80 h-8 mt-2",lines:1})])]),e("div",null,[n(m,{class:"w-full h-24 my-10",lines:1})]),e("div",null,[n(m,{class:"w-full h-24 mt-6 mb-6",lines:1})]),e("div",ze,[n(m,{class:"w-full h-14",lines:1})]),Ne,e("div",Ue,[e("div",null,[n(m,{class:"w-24 h-6",lines:1}),n(m,{class:"mt-4 w-full h-20",lines:1})])]),e("div",Ge,[n(m,{class:"h-6 w-24",lines:1}),n(m,{class:"h-10 w-32 mt-4",lines:1})])]),e("div",Ke,[n(B,{class:"h-96 sm:w-full",rounded:""})])])]),_:1})]),_:1})}var Ee=fe(Le,[["render",qe]]);const Ae={class:"relative group"},Fe={class:"aspect-w-4 aspect-h-3 rounded-lg overflow-hidden bg-gray-100"},Oe=["src"],Je={class:"flex items-end opacity-0 p-4 group-hover:opacity-100","aria-hidden":"true"},Qe={class:"w-full bg-white bg-opacity-75 backdrop-filter backdrop-blur py-2 px-4 rounded-md text-sm font-medium text-primary-500 text-center"},We={class:"mt-4 flex items-center justify-between text-base font-medium text-gray-900 space-x-8 cursor-pointer"},Xe={class:"text-primary-500 font-bold"},Ze=e("span",{"aria-hidden":"true",class:"absolute inset-0"},null,-1),et={class:"text-primary-500 font-bold"},tt={props:{data:{type:Object,default:null,required:!0}},setup(C){return ee(),(D,m)=>{const B=p("router-link");return o(),g(B,{class:"relative group",to:`/admin/modules/${C.data.slug}`},{default:u(()=>[e("div",Ae,[e("div",Fe,[e("img",{src:C.data.cover,class:"object-center object-cover"},null,8,Oe),e("div",Je,[e("div",Qe,r(D.$t("modules.view_module")),1)])]),e("div",We,[e("h3",Xe,[Ze,k(" "+r(C.data.name),1)]),e("p",et," $ "+r(C.data.monthly_price/100),1)])])]),_:1},8,["to"])}}},st={class:"lg:grid lg:grid-rows-1 lg:grid-cols-7 lg:gap-x-8 lg:gap-y-10 xl:gap-x-16 mt-6"},lt={class:"lg:row-end-1 lg:col-span-4"},at={class:"flex flex-col-reverse"},ot={class:"hidden mt-6 w-full max-w-2xl mx-auto sm:block lg:max-w-none"},nt={class:"grid grid-cols-3 xl:grid-cols-4 gap-6","aria-orientation":"horizontal",role:"tablist"},rt={class:"absolute inset-0 rounded-md overflow-hidden"},it=["src"],dt=e("span",{class:"ring-transparent absolute inset-0 rounded-md ring-2 ring-offset-2 pointer-events-none","aria-hidden":"true"},null,-1),ut=["onClick"],ct={class:"absolute inset-0 rounded-md overflow-hidden"},mt=["src"],_t=e("span",{class:"ring-transparent absolute inset-0 rounded-md ring-2 ring-offset-2 pointer-events-none","aria-hidden":"true"},null,-1),pt={key:0,class:"aspect-w-4 aspect-h-3"},gt=["src"],ht={key:1,class:"aspect-w-4 aspect-h-3 rounded-lg bg-gray-100 overflow-hidden"},ft=["src"],vt={class:"max-w-2xl mx-auto mt-10 lg:max-w-none lg:mt-0 lg:row-end-2 lg:row-span-2 lg:col-span-3 w-full"},yt=e("h3",{class:"sr-only"},"Reviews",-1),bt={class:"flex items-center"},xt=e("p",{class:"sr-only"},"4 out of 5 stars",-1),wt={class:"flex flex-col-reverse"},kt={class:"mt-4"},$t={class:"text-2xl font-extrabold tracking-tight text-gray-900 sm:text-3xl"},Bt=e("h2",{id:"information-heading",class:"sr-only"}," Product information ",-1),Mt={key:0,class:"text-sm text-gray-500 mt-2"},jt=["innerHTML"],Ct={key:0},Pt=k(" Pricing plans "),Tt={class:"relative bg-white rounded-md -space-y-px"},Lt={class:"flex items-center text-sm"},It=e("span",{class:"rounded-full bg-white w-1.5 h-1.5"},null,-1),St=[It],Rt=["href"],Yt={key:2},Ht={key:0,class:"grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},Dt={key:1},Vt={class:"grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},zt={class:"ml-2"},Nt=e("div",{class:"mt-10"},null,-1),Ut={class:"border-t border-gray-200 mt-10 pt-10"},Gt={class:"text-sm font-medium text-gray-900"},Kt={class:"mt-4 prose prose-sm max-w-none text-gray-500"},qt=["innerHTML"],Et={class:"border-t border-gray-200 mt-10 pt-10"},At=["href"],Ft={key:3,class:"border-t border-gray-200 mt-10 pt-10"},Ot={class:"w-full p-0 list-none"},Jt={class:"m-0 text-sm leading-8"},Qt={class:"flex flex-row items-center"},Wt={key:0,class:"mr-3 text-xs text-gray-500"},Xt={class:"w-full max-w-2xl mx-auto mt-16 lg:max-w-none lg:mt-0 lg:col-span-4"},Zt=e("h3",{class:"sr-only"},"Customer Reviews",-1),es={key:0},ts={class:"flex-none py-10"},ss={class:"inline-flex items-center justify-center h-12 w-12 rounded-full bg-gray-500"},ls={class:"text-lg font-medium leading-none text-white uppercase"},as={class:"font-medium text-gray-900"},os={class:"flex items-center mt-4"},ns=["innerHTML"],rs={key:1,class:"flex w-full items-center justify-center"},is={class:"text-gray-500 mt-10 text-sm"},ds=e("h3",{class:"sr-only"},"Frequently Asked Questions",-1),us={class:"mt-10 font-medium text-gray-900"},cs={class:"mt-2 prose prose-sm max-w-none text-gray-500"},ms=e("h3",{class:"sr-only"},"License",-1),_s=["innerHTML"],ps={key:0,class:"mt-24 sm:mt-32 lg:max-w-none"},gs={class:"flex items-center justify-between space-x-4"},hs={class:"text-lg font-medium text-gray-900"},fs={href:"/admin/modules",class:"whitespace-nowrap text-sm font-medium text-primary-600 hover:text-primary-500"},vs=e("span",{"aria-hidden":"true"}," \u2192",-1),ys={class:"mt-6 grid grid-cols-1 gap-x-8 gap-y-8 sm:grid-cols-2 sm:gap-y-10 lg:grid-cols-4"},bs=e("div",{class:"p-6"},null,-1),ks={setup(C){const D=ve(),m=ye(),B=be(),G=xe(),L=we(),{t:y}=ee();let b=_(!1),V=_(!0),I=_(""),P=_(!1),T=_(!1);_(!1),Q(),ke(()=>L.params.slug,async s=>{Q()});const l=x(()=>m.currentModule.data),z=x(()=>{var M,w;let s=[],i=H({name:y("modules.monthly"),price:((M=l==null?void 0:l.value)==null?void 0:M.monthly_price)/100}),c=H({name:y("modules.yearly"),price:((w=l==null?void 0:l.value)==null?void 0:w.yearly_price)/100});return le.value?s.push(c):ae.value?s.push(i):(s.push(i),s.push(c)),s}),le=x(()=>l.value?l.value.type==="YEARLY":!1),ae=x(()=>l.value?l.value.type==="MONTHLY":!1),oe=x(()=>!!(l.value.installed&&l.value.latest_module_version)),K=x(()=>m.currentModule.meta.modules);let ne=x(()=>{let s=_(l.value.latest_module_version_updated_at),i=_(l.value.installed_module_version_updated_at);const c=i.value?i.value:s.value;return te(c).format("MMMM Do YYYY")}),re=x(()=>{let s=_(l.value.latest_module_version),i=_(l.value.installed_module_version);return i.value?i.value:s.value}),ie=x(()=>parseInt(l.value.average_rating));const de=x(()=>{let s=H([]),i=H({id:null,url:l.value.cover});return s.push(i),l.value.screenshots&&l.value.screenshots.forEach(c=>{s.push(c)}),s}),N=_(!1),q=_(null),U=_(null),E=_(z.value[0]),A=H([{translationKey:"modules.download_zip_file",stepUrl:"/api/v1/modules/download",time:null,started:!1,completed:!1},{translationKey:"modules.unzipping_package",stepUrl:"/api/v1/modules/unzip",time:null,started:!1,completed:!1},{translationKey:"modules.copying_files",stepUrl:"/api/v1/modules/copy",time:null,started:!1,completed:!1},{translationKey:"modules.completing_installation",stepUrl:"/api/v1/modules/complete",time:null,started:!1,completed:!1}]);async function J(){let s=null;for(let i=0;i<A.length;i++){let c=A[i];try{b.value=!0,c.started=!0;let M={version:l.value.latest_module_version,path:s||null,module:l.value.module_name},w=await Te.post(c.stepUrl,M);if(c.completed=!0,w.data&&(s=w.data.path),!w.data.success)return B.showNotification({type:"error",message:ue(w.data.message)}),b.value=!1,c.started=!1,c.completed=!0,!1;c.translationKey=="modules.completing_installation"&&(b.value=!1,B.showNotification({type:"success",message:y("modules.install_success")}),setTimeout(()=>{location.reload()},1500))}catch{return b.value=!1,c.started=!1,c.completed=!0,!1}}}function ue(s){let i=_("");switch(s){case"module_not_found":i=y("modules.module_not_found");break;case"module_not_purchased":i=y("modules.module_not_purchased");break;case"version_not_supported":i=y("modules.version_not_supported");break;default:i=s;break}return i}async function Q(){!L.params.slug||(V.value=!0,await m.fetchModule(L.params.slug).then(s=>{if(E.value=z.value[0],U.value=l.value.video_link,q.value=l.value.video_thumbnail,U.value){X(),V.value=!1;return}I.value=l.value.cover,V.value=!1}))}function ce(s){switch(W(s)){case"pending":return"text-primary-800 bg-gray-200";case"finished":return"text-teal-500 bg-teal-100";case"running":return"text-blue-400 bg-blue-100";case"error":return"text-danger bg-red-200";default:return""}}function me(){G.openDialog({title:y("general.are_you_sure"),message:y("modules.disable_warning"),yesLabel:y("general.ok"),noLabel:y("general.cancel"),variant:"danger",hideNoButton:!1,size:"lg"}).then(async s=>{if(s){T.value=!0,await m.disableModule(l.value.module_name).then(i=>{if(i.data.success){l.value.enabled=0,T.value=!1,setTimeout(()=>{location.reload()},1500);return}}),T.value=!1;return}})}async function _e(){P.value=!0,await m.enableModule(l.value.module_name).then(s=>{s.data.success&&(l.value.enabled=1,setTimeout(()=>{location.reload()},1500)),P.value=!1}),P.value=!1}function W(s){return s.started&&s.completed?"finished":s.started&&!s.completed?"running":!s.started&&!s.completed?"pending":"error"}function pe(s){N.value=!1,I.value=s}function X(){N.value=!0,I.value=null}return(s,i)=>{const c=p("BaseBreadcrumbItem"),M=p("BaseBreadcrumb"),w=p("BasePageHeader"),Z=p("BaseRating"),S=p("BaseIcon"),R=p("BaseButton"),ge=p("BasePage");return t(V)?(o(),g(Ee,{key:0})):(o(),g(ge,{key:1,class:"bg-white"},{default:u(()=>[n(w,{title:t(l).name},{default:u(()=>[n(M,null,{default:u(()=>[n(c,{title:s.$t("general.home"),to:"dashboard"},null,8,["title"]),n(c,{title:s.$t("modules.title"),to:"/admin/modules"},null,8,["title"]),n(c,{title:t(l).name,to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),e("div",st,[e("div",lt,[e("div",at,[e("div",ot,[e("div",nt,[q.value&&U.value?(o(),d("button",{key:0,class:v(["relative  md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":N.value}]),type:"button",onClick:X},[e("span",rt,[e("img",{src:q.value,alt:"",class:"w-full h-full object-center object-cover"},null,8,it)]),dt],2)):h("",!0),(o(!0),d($,null,j(t(de),(a,f)=>(o(),d("button",{id:"tabs-1-tab-1",key:f,class:v(["relative  md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":t(I)===a.url}]),type:"button",onClick:Y=>pe(a.url)},[e("span",ct,[e("img",{src:a.url,alt:"",class:"w-full h-full object-center object-cover"},null,8,mt)]),_t],10,ut))),128))])]),N.value?(o(),d("div",pt,[e("iframe",{src:U.value,class:"sm:rounded-lg",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},`
import{a as l}from"./vendor.01d0adc5.js";import{u as n,v as m}from"./main.75722495.js";const u=e=>{const t=p(),a=n();if(!e.response)a.showNotification({type:"error",message:"Please check your internet connection or wait until servers are back online."});else if(e.response.data&&(e.response.statusText==="Unauthorized"||e.response.data===" Unauthorized.")){const s=e.response.data.message?e.response.data.message:"Unauthorized";i(s),t.logout()}else if(e.response.data.errors){const s=JSON.parse(JSON.stringify(e.response.data.errors));for(const o in s)d(s[o][0])}else e.response.data.error?d(e.response.data.error):d(e.response.data.message)},d=e=>{switch(e){case"These credentials do not match our records.":i("errors.login_invalid_credentials");break;case"The email has already been taken.":i("validation.email_already_taken");break;case"invalid_credentials":i("errors.invalid_credentials");break;case"Email could not be sent to this email address.":i("errors.email_could_not_be_sent");break;case"not_allowed":i("errors.not_allowed");break;default:i(e,!1);break}},i=(e,t=!0)=>{const{global:a}=window.i18n;n().showNotification({type:"error",message:t?a.t(e):e})},{defineStore:f}=window.pinia,{global:r}=window.i18n,p=f({id:"customerAuth",state:()=>({loginData:{email:"",password:"",device_name:"xyz",company:""}}),actions:{login(e){const t=n(!0);return new Promise((a,s)=>{l.get("/sanctum/csrf-cookie").then(o=>{o&&l.post(`/${e.company}/customer/login`,e).then(c=>{t.showNotification({type:"success",message:r.tm("general.login_successfully")}),a(c),setTimeout(()=>{this.loginData.email="",this.loginData.password=""},1e3)}).catch(c=>{u(c),s(c)})})})},forgotPassword(e){const t=n(!0);return new Promise((a,s)=>{l.post(`/api/v1/${e.company}/customer/auth/password/email`,e).then(o=>{o.data&&t.showNotification({type:"success",message:r.tm("general.send_mail_successfully")}),a(o)}).catch(o=>{o.response&&o.response.status===403?t.showNotification({type:"error",message:r.tm("errors.email_could_not_be_sent")}):u(o),s(o)})})},resetPassword(e,t){return new Promise((a,s)=>{l.post(`/api/v1/${t}/customer/auth/reset/password`,e).then(o=>{o.data&&n(!0).showNotification({type:"success",message:r.tm("login.password_reset_successfully")}),a(o)}).catch(o=>{o.response&&o.response.status===403&&notificationStore.showNotification({type:"error",message:r.tm("validation.email_incorrect")}),s(o)})})},logout(e){return new Promise((t,a)=>{l.get(`${e}/customer/logout`).then(s=>{n().showNotification({type:"success",message:r.tm("general.logged_out_successfully")}),m.push({name:"customer.login"}),t(s)}).catch(s=>{u(s),a(s)})})}}});export{u as h,p as u};
import{a as o,d as f}from"./vendor.01d0adc5.js";import{h as s,u as r}from"./main.75722495.js";const y=(g=!1)=>{const h=g?window.pinia.defineStore:f,{global:n}=window.i18n;return h({id:"category",state:()=>({categories:[],currentCategory:{id:null,name:"",description:""}}),getters:{isEdit:t=>!!t.currentCategory.id},actions:{fetchCategories(t){return new Promise((a,i)=>{o.get("/api/v1/categories",{params:t}).then(e=>{this.categories=e.data.data,a(e)}).catch(e=>{s(e),i(e)})})},fetchCategory(t){return new Promise((a,i)=>{o.get(`/api/v1/categories/${t}`).then(e=>{this.currentCategory=e.data.data,a(e)}).catch(e=>{s(e),i(e)})})},addCategory(t){return new Promise((a,i)=>{o.post("/api/v1/categories",t).then(e=>{this.categories.push(e.data.data),r().showNotification({type:"success",message:n.t("settings.expense_category.created_message")}),a(e)}).catch(e=>{s(e),i(e)})})},updateCategory(t){return new Promise((a,i)=>{o.put(`/api/v1/categories/${t.id}`,t).then(e=>{if(e.data){let c=this.categories.findIndex(u=>u.id===e.data.data.id);this.categories[c]=t.categories,r().showNotification({type:"success",message:n.t("settings.expense_category.updated_message")})}a(e)}).catch(e=>{s(e),i(e)})})},deleteCategory(t){return new Promise(a=>{o.delete(`/api/v1/categories/${t}`).then(i=>{let e=this.categories.findIndex(d=>d.id===t);this.categories.splice(e,1),r().showNotification({type:"success",message:n.t("settings.expense_category.deleted_message")}),a(i)}).catch(i=>{s(i),console.error(i)})})}}})()};export{y as u};
import{a,d as l}from"./vendor.01d0adc5.js";import{h as o,u as r}from"./main.75722495.js";const v=(k=!1)=>{const f=k?window.pinia.defineStore:l,{global:n}=window.i18n;return f({id:"disk",state:()=>({disks:[],diskDrivers:[],diskConfigData:null,selected_driver:"local",doSpaceDiskConfig:{name:"",selected_driver:"doSpaces",key:"",secret:"",region:"",bucket:"",endpoint:"",root:""},dropBoxDiskConfig:{name:"",selected_driver:"dropbox",token:"",key:"",secret:"",app:""},localDiskConfig:{name:"",selected_driver:"local",root:""},s3DiskConfigData:{name:"",selected_driver:"s3",key:"",secret:"",region:"",bucket:"",root:""}}),getters:{getDiskDrivers:t=>t.diskDrivers},actions:{fetchDiskEnv(t){return new Promise((s,e)=>{a.get(`/api/v1/disks/${t.disk}`).then(i=>{s(i)}).catch(i=>{o(i),e(i)})})},fetchDisks(t){return new Promise((s,e)=>{a.get("/api/v1/disks",{params:t}).then(i=>{this.disks=i.data.data,s(i)}).catch(i=>{o(i),e(i)})})},fetchDiskDrivers(){return new Promise((t,s)=>{a.get("/api/v1/disk/drivers").then(e=>{this.diskConfigData=e.data,this.diskDrivers=e.data.drivers,t(e)}).catch(e=>{o(e),s(e)})})},deleteFileDisk(t){return new Promise((s,e)=>{a.delete(`/api/v1/disks/${t}`).then(i=>{if(i.data.success){let d=this.disks.findIndex(c=>c.id===t);this.disks.splice(d,1),r().showNotification({type:"success",message:n.t("settings.disk.deleted_message")})}s(i)}).catch(i=>{o(i),e(i)})})},updateDisk(t){return new Promise((s,e)=>{a.put(`/api/v1/disks/${t.id}`,t).then(i=>{if(i.data){let d=this.disks.findIndex(c=>c.id===i.data.data);this.disks[d]=t.disks,r().showNotification({type:"success",message:n.t("settings.disk.success_set_default_disk")})}s(i)}).catch(i=>{o(i),e(i)})})},createDisk(t){return new Promise((s,e)=>{a.post("/api/v1/disks",t).then(i=>{i.data&&r().showNotification({type:"success",message:n.t("settings.disk.success_create")}),this.disks.push(i.data),s(i)}).catch(i=>{o(i),e(i)})})}}})()};export{v as u};
import{u as h}from"./main.75722495.js";import{a as n}from"./vendor.01d0adc5.js";import{h as r}from"./auth.4644c288.js";const{defineStore:u}=window.pinia,p=u({id:"customerEstimateStore",state:()=>({estimates:[],totalEstimates:0,selectedViewEstimate:[]}),actions:{fetchEstimate(s,e){return new Promise((a,i)=>{n.get(`/api/v1/${e}/customer/estimates`,{params:s}).then(t=>{this.estimates=t.data.data,this.totalEstimates=t.data.meta.estimateTotalCount,a(t)}).catch(t=>{r(t),i(t)})})},fetchViewEstimate(s,e){return new Promise((a,i)=>{n.get(`/api/v1/${e}/customer/estimates/${s.id}`,{params:s}).then(t=>{this.selectedViewEstimate=t.data.data,a(t)}).catch(t=>{r(t),i(t)})})},searchEstimate(s,e){return new Promise((a,i)=>{n.get(`/api/v1/${e}/customer/estimates`,{params:s}).then(t=>{this.estimates=t.data,a(t)}).catch(t=>{r(t),i(t)})})},acceptEstimate({slug:s,id:e,status:a}){return new Promise((i,t)=>{n.post(`/api/v1/${s}/customer/estimate/${e}/status`,{status:a}).then(o=>{let m=this.estimates.findIndex(c=>c.id===e);this.estimates[m]&&(this.estimates[m].status="ACCEPTED",h(!0).showNotification({type:"success",message:global.t("estimates.marked_as_accepted_message")})),i(o)}).catch(o=>{r(o),t(o)})})},rejectEstimate({slug:s,id:e,status:a}){return new Promise((i,t)=>{n.post(`/api/v1/${s}/customer/estimate/${e}/status`,{status:a}).then(o=>{let m=this.estimates.findIndex(c=>c.id===e);this.estimates[m]&&(this.estimates[m].status="REJECTED",h(!0).showNotification({type:"success",message:global.t("estimates.marked_as_rejected_message")})),i(o)}).catch(o=>{r(o),t(o)})})}}});export{p as u};
import{a as i,d as g}from"./vendor.01d0adc5.js";import{h as c,u as v}from"./main.75722495.js";const f=(u=!1)=>{const o=u?window.pinia.defineStore:g,{global:n}=window.i18n,s=v();return o({id:"exchange-rate",state:()=>({supportedCurrencies:[],drivers:[],activeUsedCurrencies:[],providers:[],currencies:null,currentExchangeRate:{id:null,driver:"",key:"",active:!0,currencies:[]},currencyConverter:{type:"",url:""},bulkCurrencies:[]}),getters:{isEdit:r=>!!r.currentExchangeRate.id},actions:{fetchProviders(r){return new Promise((a,t)=>{i.get("/api/v1/exchange-rate-providers",{params:r}).then(e=>{this.providers=e.data.data,a(e)}).catch(e=>{c(e),t(e)})})},fetchDefaultProviders(){return new Promise((r,a)=>{i.get("/api/v1/config?key=exchange_rate_drivers").then(t=>{this.drivers=t.data.exchange_rate_drivers,r(t)}).catch(t=>{c(t),a(t)})})},fetchProvider(r){return new Promise((a,t)=>{i.get(`/api/v1/exchange-rate-providers/${r}`).then(e=>{this.currentExchangeRate=e.data.data,this.currencyConverter=e.data.data.driver_config,a(e)}).catch(e=>{c(e),t(e)})})},addProvider(r){return new Promise((a,t)=>{i.post("/api/v1/exchange-rate-providers",r).then(e=>{s.showNotification({type:"success",message:n.t("settings.exchange_rate.created_message")}),a(e)}).catch(e=>{c(e),t(e)})})},updateProvider(r){return new Promise((a,t)=>{i.put(`/api/v1/exchange-rate-providers/${r.id}`,r).then(e=>{s.showNotification({type:"success",message:n.t("settings.exchange_rate.updated_message")}),a(e)}).catch(e=>{c(e),t(e)})})},deleteExchangeRate(r){return new Promise((a,t)=>{i.delete(`/api/v1/exchange-rate-providers/${r}`).then(e=>{let d=this.drivers.findIndex(h=>h.id===r);this.drivers.splice(d,1),e.data.success?s.showNotification({type:"success",message:n.t("settings.exchange_rate.deleted_message")}):s.showNotification({type:"error",message:n.t("settings.exchange_rate.error")}),a(e)}).catch(e=>{c(e),t(e)})})},fetchCurrencies(r){return new Promise((a,t)=>{i.get("/api/v1/supported-currencies",{params:r}).then(e=>{this.supportedCurrencies=e.data.supportedCurrencies,a(e)}).catch(e=>{c(e),t(e)})})},fetchActiveCurrency(r){return new Promise((a,t)=>{i.get("/api/v1/used-currencies",{params:r}).then(e=>{this.activeUsedCurrencies=e.data.activeUsedCurrencies,a(e)}).catch(e=>{c(e),t(e)})})},fetchBulkCurrencies(){return new Promise((r,a)=>{i.get("/api/v1/currencies/used").then(t=>{this.bulkCurrencies=t.data.currencies.map(e=>(e.exchange_rate=null,e)),r(t)}).catch(t=>{c(t),a(t)})})},updateBulkExchangeRate(r){return new Promise((a,t)=>{i.post("/api/v1/currencies/bulk-update-exchange-rate",r).then(e=>{a(e)}).catch(e=>{c(e),t(e)})})},getCurrentExchangeRate(r){return new Promise((a,t)=>{i.get(`/api/v1/currencies/${r}/exchange-rate`).then(e=>{a(e)}).catch(e=>{t(e)})})},getCurrencyConverterServers(){return new Promise((r,a)=>{i.get("/api/v1/config?key=currency_converter_servers").then(t=>{r(t)}).catch(t=>{c(t),a(t)})})},checkForActiveProvider(r){return new Promise((a,t)=>{i.get(`/api/v1/currencies/${r}/active-provider`).then(e=>{a(e)}).catch(e=>{t(e)})})}}})()};export{f as u};
var _=Object.defineProperty;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var f=(l,c,a)=>c in l?_(l,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[c]=a,x=(l,c)=>{for(var a in c||(c={}))w.call(c,a)&&f(l,a,c[a]);if(u)for(var a of u(c))y.call(c,a)&&f(l,a,c[a]);return l};import{I as F,a as d,d as S}from"./vendor.01d0adc5.js";import{h as o,s as m,u as r}from"./main.75722495.js";var E={expense_category_id:null,expense_date:F().format("YYYY-MM-DD"),amount:100,notes:"",attachment_receipt:null,customer_id:"",currency_id:"",payment_method_id:"",receiptFiles:[],customFields:[],fields:[],in_use:!1,selectedCurrency:null};const D=(l=!1)=>{const c=l?window.pinia.defineStore:S,{global:a}=window.i18n;return c({id:"expense",state:()=>({expenses:[],totalExpenses:0,selectAllField:!1,selectedExpenses:[],paymentModes:[],showExchangeRate:!1,currentExpense:x({},E)}),getters:{getCurrentExpense:t=>t.currentExpense,getSelectedExpenses:t=>t.selectedExpenses},actions:{resetCurrentExpenseData(){this.currentExpense=x({},E)},fetchExpenses(t){return new Promise((n,i)=>{d.get("/api/v1/expenses",{params:t}).then(e=>{this.expenses=e.data.data,this.totalExpenses=e.data.meta.expense_total_count,n(e)}).catch(e=>{o(e),i(e)})})},fetchExpense(t){return new Promise((n,i)=>{d.get(`/api/v1/expenses/${t}`).then(e=>{e.data&&(Object.assign(this.currentExpense,e.data.data),this.currentExpense.selectedCurrency=e.data.data.currency,e.data.data.attachment_receipt?m.isImageFile(e.data.data.attachment_receipt_meta.mime_type)?this.currentExpense.receiptFiles=[{image:`/expenses/${t}/receipt`}]:this.currentExpense.receiptFiles=[{type:"document",name:e.data.data.attachment_receipt_meta.file_name}]:this.currentExpense.receiptFiles=[]),n(e)}).catch(e=>{o(e),i(e)})})},addExpense(t){const n=m.toFormData(t);return new Promise((i,e)=>{d.post("/api/v1/expenses",n).then(s=>{this.expenses.push(s.data),r().showNotification({type:"success",message:a.t("expenses.created_message")}),i(s)}).catch(s=>{o(s),e(s)})})},updateExpense({id:t,data:n}){const i=r(),e=m.toFormData(n);return e.append("_method","PUT"),new Promise(s=>{d.post(`/api/v1/expenses/${t}`,e).then(p=>{let h=this.expenses.findIndex(g=>g.id===p.data.id);this.expenses[h]=n.expense,i.showNotification({type:"success",message:a.t("expenses.updated_message")}),s(p)})}).catch(s=>{o(s),reject(s)})},setSelectAllState(t){this.selectAllField=t},selectExpense(t){this.selectedExpenses=t,this.selectedExpenses.length===this.expenses.length?this.selectAllField=!0:this.selectAllField=!1},selectAllExpenses(t){if(this.selectedExpenses.length===this.expenses.length)this.selectedExpenses=[],this.selectAllField=!1;else{let n=this.expenses.map(i=>i.id);this.selectedExpenses=n,this.selectAllField=!0}},deleteExpense(t){const n=r();return new Promise((i,e)=>{d.post("/api/v1/expenses/delete",t).then(s=>{let p=this.expenses.findIndex(h=>h.id===t);this.expenses.splice(p,1),n.showNotification({type:"success",message:a.tc("expenses.deleted_message",1)}),i(s)}).catch(s=>{o(s),e(s)})})},deleteMultipleExpenses(){const t=r();return new Promise((n,i)=>{d.post("/api/v1/expenses/delete",{ids:this.selectedExpenses}).then(e=>{this.selectedExpenses.forEach(s=>{let p=this.expenses.findIndex(h=>h.id===s.id);this.expenses.splice(p,1)}),t.showNotification({type:"success",message:a.tc("expenses.deleted_message",2)}),n(e)}).catch(e=>{o(e),i(e)})})},fetchPaymentModes(t){return new Promise((n,i)=>{d.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,n(e)}).catch(e=>{o(e),i(e)})})}}})()};export{D as u};
var p=Object.defineProperty,g=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var l=(e,a,t)=>a in e?p(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,i=(e,a)=>{for(var t in a||(a={}))S.call(a,t)&&l(e,t,a[t]);if(c)for(var t of c(a))y.call(a,t)&&l(e,t,a[t]);return e},d=(e,a)=>g(e,f(a));import{h as r}from"./auth.4644c288.js";import{u as b}from"./main.75722495.js";import{a as u}from"./vendor.01d0adc5.js";var m={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null};const{defineStore:w}=window.pinia,U=w({id:"customerUserStore",state:()=>({customers:[],userForm:{avatar:null,name:"",email:"",password:"",company:"",confirm_password:"",billing:i({},m),shipping:i({},m)}}),actions:{copyAddress(){this.userForm.shipping=d(i({},this.userForm.billing),{type:"shipping"})},fetchCurrentUser(){const e=h();return new Promise((a,t)=>{u.get(`/api/v1/${e.companySlug}/customer/me`).then(s=>{Object.assign(this.userForm,s.data.data),a(s)}).catch(s=>{r(s),t(s)})})},updateCurrentUser({data:e,message:a}){const t=h();return new Promise((s,o)=>{u.post(`/api/v1/${t.companySlug}/customer/profile`,e).then(n=>{this.userForm=n.data.data,t.currentUser=n.data.data,s(n),a&&b(!0).showNotification({type:"success",message:a})}).catch(n=>{r(n),o(n)})})}}}),{defineStore:_}=window.pinia,h=_({id:"CustomerPortalGlobalStore",state:()=>({languages:[],currency:null,isAppLoaded:!1,countries:[],getDashboardDataLoaded:!1,currentUser:null,companySlug:"",mainMenu:null,enabledModules:[]}),actions:{bootstrap(e){this.companySlug=e;const a=U();return new Promise((t,s)=>{u.get(`/api/v1/${e}/customer/bootstrap`).then(o=>{this.currentUser=o.data.data,this.mainMenu=o.data.meta.menu,this.currency=o.data.data.currency,this.enabledModules=o.data.meta.modules,Object.assign(a.userForm,o.data.data),window.i18n.locale=o.data.default_language,this.isAppLoaded=!0,t(o)}).catch(o=>{r(o),s(o)})})},fetchCountries(){return new Promise((e,a)=>{this.countries.length?e(this.countries):u.get(`/api/v1/${this.companySlug}/customer/countries`).then(t=>{this.countries=t.data.data,e(t)}).catch(t=>{r(t),a(t)})})}}});export{U as a,h as u};
import{h as a}from"./auth.4644c288.js";import{a as n}from"./vendor.01d0adc5.js";const{defineStore:s}=window.pinia,h=s({id:"customerInvoiceStore",state:()=>({totalInvoices:0,invoices:[],selectedViewInvoice:[]}),actions:{fetchInvoices(e,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices`,{params:e}).then(t=>{this.invoices=t.data.data,this.totalInvoices=t.data.meta.invoiceTotalCount,o(t)}).catch(t=>{a(t),c(t)})})},fetchViewInvoice(e,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices/${e.id}`,{params:e}).then(t=>{this.selectedViewInvoice=t.data.data,o(t)}).catch(t=>{a(t),c(t)})})},searchInvoice(e,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices`,{params:e}).then(t=>{this.invoices=t.data,o(t)}).catch(t=>{a(t),c(t)})})}}});export{h as u};
import{a as r,d}from"./vendor.01d0adc5.js";import{h as m,u as n}from"./main.75722495.js";const u=(l=!1)=>{const c=l?window.pinia.defineStore:d,{global:s}=window.i18n;return c({id:"mail-driver",state:()=>({mailConfigData:null,mail_driver:"smtp",mail_drivers:[],basicMailConfig:{mail_driver:"",mail_host:"",from_mail:"",from_name:""},mailgunConfig:{mail_driver:"",mail_mailgun_domain:"",mail_mailgun_secret:"",mail_mailgun_endpoint:"",from_mail:"",from_name:""},sesConfig:{mail_driver:"",mail_host:"",mail_port:null,mail_ses_key:"",mail_ses_secret:"",mail_encryption:"tls",from_mail:"",from_name:""},smtpConfig:{mail_driver:"",mail_host:"",mail_port:null,mail_username:"",mail_password:"",mail_encryption:"tls",from_mail:"",from_name:""}}),actions:{fetchMailDrivers(){return new Promise((t,e)=>{r.get("/api/v1/mail/drivers").then(i=>{i.data&&(this.mail_drivers=i.data),t(i)}).catch(i=>{m(i),e(i)})})},fetchMailConfig(){return new Promise((t,e)=>{r.get("/api/v1/mail/config").then(i=>{i.data&&(this.mailConfigData=i.data,this.mail_driver=i.data.mail_driver),t(i)}).catch(i=>{m(i),e(i)})})},updateMailConfig(t){return new Promise((e,i)=>{r.post("/api/v1/mail/config",t).then(a=>{const o=n();a.data.success?o.showNotification({type:"success",message:s.t("wizard.success."+a.data.success)}):o.showNotification({type:"error",message:s.t("wizard.errors."+a.data.error)}),e(a)}).catch(a=>{m(a),i(a)})})},sendTestMail(t){return new Promise((e,i)=>{r.post("/api/v1/mail/test",t).then(a=>{const o=n();a.data.success?o.showNotification({type:"success",message:s.t("general.send_mail_successfully")}):o.showNotification({type:"error",message:s.t("validation.something_went_wrong")}),e(a)}).catch(a=>{m(a),i(a)})})}}})()};export{u};
var Tt=Object.defineProperty,It=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var Xe=(s,r,i)=>r in s?Tt(s,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[r]=i,R=(s,r)=>{for(var i in r||(r={}))Rt.call(r,i)&&Xe(s,i,r[i]);if(Je)for(var i of Je(r))Ft.call(r,i)&&Xe(s,i,r[i]);return s},W=(s,r)=>It(s,$t(r));import{a as f,d as X,_ as oe,c as Mt,b as Vt,r as C,o as l,e as _,f as u,F as Q,g as F,n as Ce,h as c,w as g,i as K,t as w,j as S,k as D,l as T,u as d,m as A,p as pe,q as xe,v as Bt,s as le,x as J,y as ae,z as Qe,A as Ot,B as q,C as ge,D as ze,E as Lt,G as fe,H as Y,I as ye,J as Se,K as et,L as te,M as tt,N as Ve,O as at,P as Ut,Q as Kt,R as qt,S as Ae,T as Zt,U as re,V as Wt,W as Ht,X as Gt,Y as Ee,Z as Yt,$ as Jt,a0 as Be,a1 as st,a2 as Ne,a3 as nt,a4 as Xt,a5 as it,a6 as ot,a7 as rt,a8 as Qt,a9 as ea,aa as ta,ab as aa,ac as sa,ad as na,ae as ia,af as oa,ag as dt,ah as ra,ai as lt,aj as da,ak as la,al as ca,am as _a,an as ct,ao as ua,ap as ma,aq as pa,ar as ga,as as fa,at as ha,au as va,av as Oe,aw as _t,ax as ut,ay as ya,az as ba,aA as ka,aB as wa,aC as xa,aD as za,aE as Le,aF as Sa,aG as ja,aH as Pa,aI as Da,aJ as Ca,aK as Aa,aL as Ea}from"./vendor.01d0adc5.js";var Ue={get(s){return localStorage.getItem(s)?localStorage.getItem(s):null},set(s,r){localStorage.setItem(s,r)},remove(s){localStorage.removeItem(s)}};window.Ls=Ue;window.axios=f;f.defaults.withCredentials=!0;f.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"};f.interceptors.request.use(function(s){const r=Ue.get("selectedCompany"),i=Ue.get("auth.token");return i&&(s.headers.common.Authorization=i),r&&(s.headers.common.company=r),s});const M=(s=!1)=>(s?window.pinia.defineStore:X)({id:"notification",state:()=>({active:!1,autoHide:!0,notifications:[]}),actions:{showNotification(i){this.notifications.push(W(R({},i),{id:(Math.random().toString(36)+Date.now().toString(36)).substr(2)}))},hideNotification(i){this.notifications=this.notifications.filter(a=>a.id!=i.id)}}})(),Na=(s=!1)=>(s?window.pinia.defineStore:X)({id:"auth",state:()=>({status:"",loginData:{email:"",password:"",remember:""}}),actions:{login(i){return new Promise((a,t)=>{f.get("/sanctum/csrf-cookie").then(n=>{n&&f.post("/login",i).then(e=>{a(e),setTimeout(()=>{this.loginData.email="",this.loginData.password=""},1e3)}).catch(e=>{v(e),t(e)})})})},logout(){return new Promise((i,a)=>{f.get("/auth/logout").then(t=>{M().showNotification({type:"success",message:"Logged out successfully."}),window.router.push("/login"),i(t)}).catch(t=>{v(t),window.router.push("/"),a(t)})})}}})(),v=s=>{var a;const r=Na(),i=M();if(!s.response)i.showNotification({type:"error",message:"Please check your internet connection or wait until servers are back online."});else if(s.response.data&&(s.response.statusText==="Unauthorized"||s.response.data===" Unauthorized.")){const t=s.response.data.message?s.response.data.message:"Unauthorized";B(t),r.logout()}else if(s.response.data.errors){const t=JSON.parse(JSON.stringify(s.response.data.errors));for(const n in t)Te(t[n][0])}else s.response.data.error?typeof s.response.data.error=="boolean"?Te((a=s.response.data)==null?void 0:a.message):Te(s.response.data.error):Te(s.response.data.message)},Te=s=>{switch(s){case"These credentials do not match our records.":B("errors.login_invalid_credentials");break;case"invalid_key":B("errors.invalid_provider_key");break;case"This feature is available on Starter plan and onwards!":B("errors.starter_plan");break;case"taxes_attached":B("settings.tax_types.already_in_use");break;case"expense_attached":B("settings.expense_category.already_in_use");break;case"payments_attached":B("settings.payment_modes.already_in_use");break;case"role_attached_to_users":B("settings.roles.already_in_use");break;case"items_attached":B("settings.customization.items.already_in_use");break;case"payment_attached_message":B("invoices.payment_attached_message");break;case"The email has already been taken.":B("validation.email_already_taken");break;case"Relation estimateItems exists.":B("items.item_attached_message");break;case"Relation invoiceItems exists.":B("items.item_attached_message");break;case"Relation taxes exists.":B("settings.tax_types.already_in_use");break;case"Relation taxes exists.":B("settings.tax_types.already_in_use");break;case"Relation payments exists.":B("errors.payment_attached");break;case"The estimate number has already been taken.":B("errors.estimate_number_used");break;case"The payment number has already been taken.":B("errors.estimate_number_used");break;case"The invoice number has already been taken.":B("errors.invoice_number_used");break;case"The name has already been taken.":B("errors.name_already_taken");break;case"total_invoice_amount_must_be_more_than_paid_amount":B("invoices.invalid_due_amount_message");break;case"you_cannot_edit_currency":B("customers.edit_currency_not_allowed");break;case"receipt_does_not_exist":B("errors.receipt_does_not_exist");break;case"customer_cannot_be_changed_after_payment_is_added":B("errors.customer_cannot_be_changed_after_payment_is_added");break;case"invalid_credentials":B("errors.invalid_credentials");break;case"not_allowed":B("errors.not_allowed");break;case"invalid_key":B("errors.invalid_key");break;case"invalid_state":B("errors.invalid_state");break;case"invalid_city":B("errors.invalid_city");break;case"invalid_postal_code":B("errors.invalid_postal_code");break;case"invalid_format":B("errors.invalid_format");break;case"api_error":B("errors.api_error");break;case"feature_not_enabled":B("errors.feature_not_enabled");break;case"request_limit_met":B("errors.request_limit_met");break;case"address_incomplete":B("errors.address_incomplete");break;case"invalid_address":B("errors.invalid_address");break;case"Email could not be sent to this email address.":B("errors.email_could_not_be_sent");break;default:B(s,!1);break}},B=(s,r=!0)=>{const{global:i}=window.i18n;M().showNotification({type:"error",message:r?i.t(s):s})},je=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"user",state:()=>({currentUser:null,currentAbilities:[],currentUserSettings:{},userForm:{name:"",email:"",password:"",confirm_password:"",language:""}}),getters:{currentAbilitiesCount:a=>a.currentAbilities.length},actions:{updateCurrentUser(a){return new Promise((t,n)=>{f.put("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,Object.assign(this.userForm,e.data.data),M().showNotification({type:"success",message:i.t("settings.account_settings.updated_message")}),t(e)}).catch(e=>{v(e),n(e)})})},fetchCurrentUser(a){return new Promise((t,n)=>{f.get("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,this.userForm=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},uploadAvatar(a){return new Promise((t,n)=>{f.post("/api/v1/me/upload-avatar",a).then(e=>{this.currentUser.avatar=e.data.data.avatar,t(e)}).catch(e=>{v(e),n(e)})})},fetchUserSettings(a){return new Promise((t,n)=>{f.get("/api/v1/me/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},updateUserSettings(a){return new Promise((t,n)=>{f.put("/api/v1/me/settings",a).then(e=>{a.settings.language&&(this.currentUserSettings.language=a.settings.language,i.locale=a.settings.language),t(e)}).catch(e=>{v(e),n(e)})})},hasAbilities(a){return!!this.currentAbilities.find(t=>t.name==="*"?!0:typeof a=="string"?t.name===a:!!a.find(n=>t.name===n))},hasAllAbilities(a){let t=!0;return this.currentAbilities.filter(n=>{!!a.find(o=>n.name===o)||(t=!1)}),t}}})()},_e=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"company",state:()=>({companies:[],selectedCompany:null,selectedCompanySettings:{},selectedCompanyCurrency:null}),actions:{setSelectedCompany(a){window.Ls.set("selectedCompany",a.id),this.selectedCompany=a},fetchBasicMailConfig(){return new Promise((a,t)=>{f.get("/api/v1/company/mail/config").then(n=>{a(n)}).catch(n=>{v(n),t(n)})})},updateCompany(a){return new Promise((t,n)=>{f.put("/api/v1/company",a).then(e=>{M().showNotification({type:"success",message:i.t("settings.company_info.updated_message")}),this.selectedCompany=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},updateCompanyLogo(a){return new Promise((t,n)=>{f.post("/api/v1/company/upload-logo",a).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},addNewCompany(a){return new Promise((t,n)=>{f.post("/api/v1/companies",a).then(e=>{M().showNotification({type:"success",message:i.t("company_switcher.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},fetchCompany(a){return new Promise((t,n)=>{f.get("/api/v1/current-company",a).then(e=>{Object.assign(this.companyForm,e.data.data.address),this.companyForm.name=e.data.data.name,t(e)}).catch(e=>{v(e),n(e)})})},fetchUserCompanies(){return new Promise((a,t)=>{f.get("/api/v1/companies").then(n=>{a(n)}).catch(n=>{v(n),t(n)})})},fetchCompanySettings(a){return new Promise((t,n)=>{f.get("/api/v1/company/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},updateCompanySettings({data:a,message:t}){return new Promise((n,e)=>{f.post("/api/v1/company/settings",a).then(o=>{Object.assign(this.selectedCompanySettings,a.settings),t&&M().showNotification({type:"success",message:i.t(t)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteCompany(a){return new Promise((t,n)=>{f.post("/api/v1/companies/delete",a).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},setDefaultCurrency(a){this.defaultCurrency=a.currency}}})()},Ta=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"modules",state:()=>({currentModule:{},modules:[],apiToken:null,currentUser:{api_token:null},enableModules:[]}),getters:{salesTaxUSEnabled:a=>a.enableModules.includes("SalesTaxUS")},actions:{fetchModules(a){return new Promise((t,n)=>{f.get("/api/v1/modules").then(e=>{this.modules=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchModule(a){return new Promise((t,n)=>{f.get(`/api/v1/modules/${a}`).then(e=>{e.data.error==="invalid_token"?(this.currentModule={},this.modules=[],this.apiToken=null,this.currentUser.api_token=null,window.router.push("/admin/modules")):this.currentModule=e.data,t(e)}).catch(e=>{v(e),n(e)})})},checkApiToken(a){return new Promise((t,n)=>{f.get(`/api/v1/modules/check?api_token=${a}`).then(e=>{const o=M();e.data.error==="invalid_token"&&o.showNotification({type:"error",message:i.t("modules.invalid_api_token")}),t(e)}).catch(e=>{v(e),n(e)})})},disableModule(a){return new Promise((t,n)=>{f.post(`/api/v1/modules/${a}/disable`).then(e=>{const o=M();e.data.success&&o.showNotification({type:"success",message:i.t("modules.module_disabled")}),t(e)}).catch(e=>{v(e),n(e)})})},enableModule(a){return new Promise((t,n)=>{f.post(`/api/v1/modules/${a}/enable`).then(e=>{const o=M();e.data.success&&o.showNotification({type:"success",message:i.t("modules.module_enabled")}),t(e)}).catch(e=>{v(e),n(e)})})}}})()},Ie=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"global",state:()=>({config:null,globalSettings:null,timeZones:[],dateFormats:[],currencies:[],countries:[],languages:[],fiscalYears:[],mainMenu:[],settingMenu:[],isAppLoaded:!1,isSidebarOpen:!1,areCurrenciesLoading:!1,downloadReport:null}),getters:{menuGroups:a=>Object.values(oe.groupBy(a.mainMenu,"group"))},actions:{bootstrap(){return new Promise((a,t)=>{f.get("/api/v1/bootstrap").then(n=>{const e=_e(),o=je(),m=Ta();this.mainMenu=n.data.main_menu,this.settingMenu=n.data.setting_menu,this.config=n.data.config,this.globalSettings=n.data.global_settings,o.currentUser=n.data.current_user,o.currentUserSettings=n.data.current_user_settings,o.currentAbilities=n.data.current_user_abilities,m.apiToken=n.data.global_settings.api_token,m.enableModules=n.data.modules,e.companies=n.data.companies,e.selectedCompany=n.data.current_company,e.setSelectedCompany(n.data.current_company),e.selectedCompanySettings=n.data.current_company_settings,e.selectedCompanyCurrency=n.data.current_company_currency,i.locale=n.data.current_user_settings.language||"en",this.isAppLoaded=!0,a(n)}).catch(n=>{v(n),t(n)})})},fetchCurrencies(){return new Promise((a,t)=>{this.currencies.length||this.areCurrenciesLoading?a(this.currencies):(this.areCurrenciesLoading=!0,f.get("/api/v1/currencies").then(n=>{this.currencies=n.data.data.filter(e=>e.name=`${e.code} - ${e.name}`),this.areCurrenciesLoading=!1,a(n)}).catch(n=>{v(n),this.areCurrenciesLoading=!1,t(n)}))})},fetchConfig(a){return new Promise((t,n)=>{f.get("/api/v1/config",{params:a}).then(e=>{e.data.languages?this.languages=e.data.languages:this.fiscalYears=e.data.fiscal_years,t(e)}).catch(e=>{v(e),n(e)})})},fetchDateFormats(){return new Promise((a,t)=>{this.dateFormats.length?a(this.dateFormats):f.get("/api/v1/date/formats").then(n=>{this.dateFormats=n.data.date_formats,a(n)}).catch(n=>{v(n),t(n)})})},fetchTimeZones(){return new Promise((a,t)=>{this.timeZones.length?a(this.timeZones):f.get("/api/v1/timezones").then(n=>{this.timeZones=n.data.time_zones,a(n)}).catch(n=>{v(n),t(n)})})},fetchCountries(){return new Promise((a,t)=>{this.countries.length?a(this.countries):f.get("/api/v1/countries").then(n=>{this.countries=n.data.data,a(n)}).catch(n=>{v(n),t(n)})})},fetchPlaceholders(a){return new Promise((t,n)=>{f.get("/api/v1/number-placeholders",{params:a}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},setSidebarVisibility(a){this.isSidebarOpen=a},setIsAppLoaded(a){this.isAppLoaded=a},updateGlobalSettings({data:a,message:t}){return new Promise((n,e)=>{f.post("/api/v1/settings",a).then(o=>{Object.assign(this.globalSettings,a.settings),t&&M().showNotification({type:"success",message:i.t(t)}),n(o)}).catch(o=>{v(o),e(o)})})}}})()},Ia="modulepreload",mt={},$a="/build/",j=function(r,i){return!i||i.length===0?r():Promise.all(i.map(a=>{if(a=`${$a}${a}`,a in mt)return;mt[a]=!0;const t=a.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${n}`))return;const e=document.createElement("link");if(e.rel=t?"stylesheet":Ia,t||(e.as="script",e.crossOrigin=""),e.href=a,document.head.appendChild(e),t)return new Promise((o,m)=>{e.addEventListener("load",o),e.addEventListener("error",m)})})).then(()=>r())};var O={DASHBOARD:"dashboard",CREATE_CUSTOMER:"create-customer",DELETE_CUSTOMER:"delete-customer",EDIT_CUSTOMER:"edit-customer",VIEW_CUSTOMER:"view-customer",CREATE_ITEM:"create-item",DELETE_ITEM:"delete-item",EDIT_ITEM:"edit-item",VIEW_ITEM:"view-item",CREATE_TAX_TYPE:"create-tax-type",DELETE_TAX_TYPE:"delete-tax-type",EDIT_TAX_TYPE:"edit-tax-type",VIEW_TAX_TYPE:"view-tax-type",CREATE_ESTIMATE:"create-estimate",DELETE_ESTIMATE:"delete-estimate",EDIT_ESTIMATE:"edit-estimate",VIEW_ESTIMATE:"view-estimate",SEND_ESTIMATE:"send-estimate",CREATE_INVOICE:"create-invoice",DELETE_INVOICE:"delete-invoice",EDIT_INVOICE:"edit-invoice",VIEW_INVOICE:"view-invoice",SEND_INVOICE:"send-invoice",CREATE_RECURRING_INVOICE:"create-recurring-invoice",DELETE_RECURRING_INVOICE:"delete-recurring-invoice",EDIT_RECURRING_INVOICE:"edit-recurring-invoice",VIEW_RECURRING_INVOICE:"view-recurring-invoice",CREATE_PAYMENT:"create-payment",DELETE_PAYMENT:"delete-payment",EDIT_PAYMENT:"edit-payment",VIEW_PAYMENT:"view-payment",SEND_PAYMENT:"send-payment",CREATE_EXPENSE:"create-expense",DELETE_EXPENSE:"delete-expense",EDIT_EXPENSE:"edit-expense",VIEW_EXPENSE:"view-expense",CREATE_CUSTOM_FIELDS:"create-custom-field",DELETE_CUSTOM_FIELDS:"delete-custom-field",EDIT_CUSTOM_FIELDS:"edit-custom-field",VIEW_CUSTOM_FIELDS:"view-custom-field",CREATE_ROLE:"create-role",DELETE_ROLE:"delete-role",EDIT_ROLE:"edit-role",VIEW_ROLE:"view-role",VIEW_EXCHANGE_RATE:"view-exchange-rate-provider",CREATE_EXCHANGE_RATE:"create-exchange-rate-provider",EDIT_EXCHANGE_RATE:"edit-exchange-rate-provider",DELETE_EXCHANGE_RATE:"delete-exchange-rate-provider",VIEW_FINANCIAL_REPORT:"view-financial-reports",MANAGE_NOTE:"manage-all-notes",VIEW_NOTE:"view-all-notes"};const Ra=()=>j(()=>import("./LayoutInstallation.46a8b6d2.js"),["assets/LayoutInstallation.46a8b6d2.js","assets/NotificationRoot.a98180ab.js","assets/vendor.01d0adc5.js"]),pt=()=>j(()=>import("./Login.9abd1acb.js"),["assets/Login.9abd1acb.js","assets/vendor.01d0adc5.js"]),Fa=()=>j(()=>import("./LayoutBasic.e1f34a75.js"),["assets/LayoutBasic.e1f34a75.js","assets/vendor.01d0adc5.js","assets/exchange-rate.dffa79b6.js","assets/users.73a3faa4.js","assets/NotificationRoot.a98180ab.js","assets/index.esm.998a6eeb.js"]),Ma=()=>j(()=>import("./LayoutLogin.d574a04a.js"),["assets/LayoutLogin.d574a04a.js","assets/NotificationRoot.a98180ab.js","assets/vendor.01d0adc5.js"]),Va=()=>j(()=>import("./ResetPassword.970ec316.js"),["assets/ResetPassword.970ec316.js","assets/vendor.01d0adc5.js"]),Ba=()=>j(()=>import("./ForgotPassword.6a2c79cb.js"),["assets/ForgotPassword.6a2c79cb.js","assets/vendor.01d0adc5.js"]),Oa=()=>j(()=>import("./Dashboard.bdf9de48.js"),["assets/Dashboard.bdf9de48.js","assets/EstimateIcon.1f3b368d.js","assets/vendor.01d0adc5.js","assets/LineChart.a92f3bea.js","assets/InvoiceIndexDropdown.430bc329.js","assets/EstimateIndexDropdown.4eab32d4.js"]),La=()=>j(()=>import("./Index.83e96e3c.js"),["assets/Index.83e96e3c.js","assets/vendor.01d0adc5.js","assets/CustomerIndexDropdown.3adf4218.js","assets/AstronautIcon.948728ac.js"]),gt=()=>j(()=>import("./Create.3e41e2ab.js"),["assets/Create.3e41e2ab.js","assets/vendor.01d0adc5.js","assets/CreateCustomFields.a3a572c4.js"]),Ua=()=>j(()=>import("./View.958a5524.js"),["assets/View.958a5524.js","assets/vendor.01d0adc5.js","assets/LoadingIcon.44a6304d.js","assets/LineChart.a92f3bea.js","assets/CustomerIndexDropdown.3adf4218.js"]),Ka=()=>j(()=>import("./SettingsIndex.7750922b.js"),["assets/SettingsIndex.7750922b.js","assets/vendor.01d0adc5.js","assets/BaseListItem.4eea691c.js"]),qa=()=>j(()=>import("./AccountSetting.d3009f2e.js"),["assets/AccountSetting.d3009f2e.js","assets/vendor.01d0adc5.js"]),Za=()=>j(()=>import("./CompanyInfoSettings.a1bb8458.js"),["assets/CompanyInfoSettings.a1bb8458.js","assets/vendor.01d0adc5.js"]),Wa=()=>j(()=>import("./PreferencesSetting.abc39a72.js"),["assets/PreferencesSetting.abc39a72.js","assets/vendor.01d0adc5.js"]),Ha=()=>j(()=>import("./CustomizationSetting.5e54e84c.js"),["assets/CustomizationSetting.5e54e84c.js","assets/vendor.01d0adc5.js","assets/DragIcon.213b1d78.js","assets/payment.5c57bec3.js","assets/ItemUnitModal.01494bfb.js"]),Ga=()=>j(()=>import("./NotificationsSetting.90090d1e.js"),["assets/NotificationsSetting.90090d1e.js","assets/vendor.01d0adc5.js"]),Ya=()=>j(()=>import("./TaxTypesSetting.332f7c14.js"),["assets/TaxTypesSetting.332f7c14.js","assets/vendor.01d0adc5.js","assets/TaxTypeModal.bf6662b3.js"]),Ja=()=>j(()=>import("./PaymentsModeSetting.963d7ca9.js"),["assets/PaymentsModeSetting.963d7ca9.js","assets/vendor.01d0adc5.js","assets/payment.5c57bec3.js","assets/PaymentModeModal.9b5fc610.js"]),Xa=()=>j(()=>import("./CustomFieldsSetting.9f0813a0.js"),["assets/CustomFieldsSetting.9f0813a0.js","assets/vendor.01d0adc5.js"]),Qa=()=>j(()=>import("./NotesSetting.2f08acf1.js"),["assets/NotesSetting.2f08acf1.js","assets/vendor.01d0adc5.js","assets/NoteModal.f6d01f84.js","assets/NoteModal.3245b7d3.css","assets/payment.5c57bec3.js"]),es=()=>j(()=>import("./ExpenseCategorySetting.80e0d8ac.js"),["assets/ExpenseCategorySetting.80e0d8ac.js","assets/category.4b37f0ed.js","assets/vendor.01d0adc5.js","assets/CategoryModal.9a2e05b9.js"]),ts=()=>j(()=>import("./ExchangeRateProviderSetting.57eedd6c.js"),["assets/ExchangeRateProviderSetting.57eedd6c.js","assets/exchange-rate.dffa79b6.js","assets/vendor.01d0adc5.js","assets/BaseTable.6e206ca7.js"]),as=()=>j(()=>import("./MailConfigSetting.91f66b99.js"),["assets/MailConfigSetting.91f66b99.js","assets/vendor.01d0adc5.js","assets/mail-driver.4ea1af6b.js"]),ss=()=>j(()=>import("./FileDiskSetting.b99dc80a.js"),["assets/FileDiskSetting.b99dc80a.js","assets/disk.518ebc4b.js","assets/vendor.01d0adc5.js"]),ns=()=>j(()=>import("./BackupSetting.f5a6fab0.js"),["assets/BackupSetting.f5a6fab0.js","assets/vendor.01d0adc5.js","assets/disk.518ebc4b.js"]),is=()=>j(()=>import("./UpdateAppSetting.dcf672e8.js"),["assets/UpdateAppSetting.dcf672e8.js","assets/UpdateAppSetting.7d8b987a.css","assets/vendor.01d0adc5.js","assets/LoadingIcon.44a6304d.js","assets/exchange-rate.dffa79b6.js"]),os=()=>j(()=>import("./RolesSettings.3be3bc63.js"),["assets/RolesSettings.3be3bc63.js","assets/vendor.01d0adc5.js"]),rs=()=>j(()=>import("./Index.2f43174e.js"),["assets/Index.2f43174e.js","assets/vendor.01d0adc5.js"]),ft=()=>j(()=>import("./Create.bffd06e1.js"),["assets/Create.bffd06e1.js","assets/vendor.01d0adc5.js","assets/ItemUnitModal.01494bfb.js"]),ds=()=>j(()=>import("./Index.9d0bbfbe.js"),["assets/Index.9d0bbfbe.js","assets/vendor.01d0adc5.js","assets/expense.e270a61c.js","assets/category.4b37f0ed.js"]),ht=()=>j(()=>import("./Create.a722899f.js"),["assets/Create.a722899f.js","assets/vendor.01d0adc5.js","assets/expense.e270a61c.js","assets/category.4b37f0ed.js","assets/CreateCustomFields.a3a572c4.js","assets/CategoryModal.9a2e05b9.js","assets/ExchangeRateConverter.7d8c4309.js","assets/exchange-rate.dffa79b6.js"]),ls=()=>j(()=>import("./Index.857b8662.js"),["assets/Index.857b8662.js","assets/vendor.01d0adc5.js","assets/users.73a3faa4.js","assets/AstronautIcon.948728ac.js"]),vt=()=>j(()=>import("./Create.625aeacb.js"),["assets/Create.625aeacb.js","assets/vendor.01d0adc5.js","assets/index.esm.998a6eeb.js","assets/users.73a3faa4.js"]),cs=()=>j(()=>import("./Index.c0a868bd.js"),["assets/Index.c0a868bd.js","assets/vendor.01d0adc5.js","assets/ObservatoryIcon.1877bd3e.js","assets/EstimateIndexDropdown.4eab32d4.js","assets/SendEstimateModal.a8bc3854.js","assets/mail-driver.4ea1af6b.js"]),yt=()=>j(()=>import("./EstimateCreate.4010e1b1.js"),["assets/EstimateCreate.4010e1b1.js","assets/vendor.01d0adc5.js","assets/SalesTax.0ff2d954.js","assets/DragIcon.213b1d78.js","assets/SelectNotePopup.781ad74a.js","assets/NoteModal.f6d01f84.js","assets/NoteModal.3245b7d3.css","assets/payment.5c57bec3.js","assets/CreateCustomFields.a3a572c4.js","assets/ExchangeRateConverter.7d8c4309.js","assets/exchange-rate.dffa79b6.js","assets/TaxTypeModal.bf6662b3.js"]),_s=()=>j(()=>import("./View.1a50dc40.js"),["assets/View.1a50dc40.js","assets/vendor.01d0adc5.js","assets/EstimateIndexDropdown.4eab32d4.js","assets/SendEstimateModal.a8bc3854.js","assets/mail-driver.4ea1af6b.js","assets/LoadingIcon.44a6304d.js"]),us=()=>j(()=>import("./Index.492a896e.js"),["assets/Index.492a896e.js","assets/vendor.01d0adc5.js","assets/payment.5c57bec3.js","assets/CapsuleIcon.dc769b69.js","assets/SendPaymentModal.1bb9d371.js","assets/mail-driver.4ea1af6b.js"]),Ke=()=>j(()=>import("./Create.be897594.js"),["assets/Create.be897594.js","assets/vendor.01d0adc5.js","assets/ExchangeRateConverter.7d8c4309.js","assets/exchange-rate.dffa79b6.js","assets/payment.5c57bec3.js","assets/SelectNotePopup.781ad74a.js","assets/NoteModal.f6d01f84.js","assets/NoteModal.3245b7d3.css","assets/CreateCustomFields.a3a572c4.js","assets/PaymentModeModal.9b5fc610.js"]),ms=()=>j(()=>import("./View.abc1c107.js"),["assets/View.abc1c107.js","assets/vendor.01d0adc5.js","assets/payment.5c57bec3.js","assets/SendPaymentModal.1bb9d371.js","assets/mail-driver.4ea1af6b.js","assets/LoadingIcon.44a6304d.js"]),ps=()=>j(()=>import("./404.5c5416a6.js"),["assets/404.5c5416a6.js","assets/vendor.01d0adc5.js"]),gs=()=>j(()=>import("./Index.56add046.js"),["assets/Index.56add046.js","assets/vendor.01d0adc5.js","assets/MoonwalkerIcon.ab503573.js","assets/InvoiceIndexDropdown.430bc329.js","assets/SendInvoiceModal.89e6012d.js","assets/mail-driver.4ea1af6b.js"]),bt=()=>j(()=>import("./InvoiceCreate.8ae6be7c.js"),["assets/InvoiceCreate.8ae6be7c.js","assets/vendor.01d0adc5.js","assets/SalesTax.0ff2d954.js","assets/DragIcon.213b1d78.js","assets/SelectNotePopup.781ad74a.js","assets/NoteModal.f6d01f84.js","assets/NoteModal.3245b7d3.css","assets/payment.5c57bec3.js","assets/ExchangeRateConverter.7d8c4309.js","assets/exchange-rate.dffa79b6.js","assets/CreateCustomFields.a3a572c4.js","assets/TaxTypeModal.bf6662b3.js"]),fs=()=>j(()=>import("./View.796e2446.js"),["assets/View.796e2446.js","assets/vendor.01d0adc5.js","assets/InvoiceIndexDropdown.430bc329.js","assets/SendInvoiceModal.89e6012d.js","assets/mail-driver.4ea1af6b.js","assets/LoadingIcon.44a6304d.js"]),hs=()=>j(()=>import("./Index.f1fe364f.js"),["assets/Index.f1fe364f.js","assets/vendor.01d0adc5.js","assets/SendInvoiceModal.89e6012d.js","assets/mail-driver.4ea1af6b.js","assets/RecurringInvoiceIndexDropdown.37d4a992.js","assets/MoonwalkerIcon.ab503573.js"]),kt=()=>j(()=>import("./RecurringInvoiceCreate.e076e6ab.js"),["assets/RecurringInvoiceCreate.e076e6ab.js","assets/vendor.01d0adc5.js","assets/SalesTax.0ff2d954.js","assets/DragIcon.213b1d78.js","assets/SelectNotePopup.781ad74a.js","assets/NoteModal.f6d01f84.js","assets/NoteModal.3245b7d3.css","assets/payment.5c57bec3.js","assets/ExchangeRateConverter.7d8c4309.js","assets/exchange-rate.dffa79b6.js","assets/CreateCustomFields.a3a572c4.js","assets/TaxTypeModal.bf6662b3.js"]),vs=()=>j(()=>import("./View.aa6cd8ac.js"),["assets/View.aa6cd8ac.js","assets/vendor.01d0adc5.js","assets/LoadingIcon.44a6304d.js","assets/InvoiceIndexDropdown.430bc329.js","assets/RecurringInvoiceIndexDropdown.37d4a992.js"]),ys=()=>j(()=>import("./Index.a3eeb117.js"),["assets/Index.a3eeb117.js","assets/vendor.01d0adc5.js"]),bs=()=>j(()=>import("./Installation.e5762019.js"),["assets/Installation.e5762019.js","assets/vendor.01d0adc5.js","assets/mail-driver.4ea1af6b.js"]),ks=()=>j(()=>import("./Index.de1759af.js"),["assets/Index.de1759af.js","assets/vendor.01d0adc5.js"]),ws=()=>j(()=>import("./View.f7652815.js"),["assets/View.f7652815.js","assets/vendor.01d0adc5.js"]),xs=()=>j(()=>import("./InvoicePublicPage.e8730ff3.js"),["assets/InvoicePublicPage.e8730ff3.js","assets/vendor.01d0adc5.js"]);var zs=[{path:"/installation",component:Ra,meta:{requiresAuth:!1},children:[{path:"/installation",component:bs,name:"installation"}]},{path:"/customer/invoices/view/:hash",component:xs,name:"invoice.public"},{path:"/",component:Ma,meta:{requiresAuth:!1,redirectIfAuthenticated:!0},children:[{path:"",component:pt},{path:"login",name:"login",component:pt},{path:"forgot-password",component:Ba,name:"forgot-password"},{path:"/reset-password/:token",component:Va,name:"reset-password"}]},{path:"/admin",component:Fa,meta:{requiresAuth:!0},children:[{path:"dashboard",name:"dashboard",meta:{ability:O.DASHBOARD},component:Oa},{path:"customers",meta:{ability:O.VIEW_CUSTOMER},component:La},{path:"customers/create",name:"customers.create",meta:{ability:O.CREATE_CUSTOMER},component:gt},{path:"customers/:id/edit",name:"customers.edit",meta:{ability:O.EDIT_CUSTOMER},component:gt},{path:"customers/:id/view",name:"customers.view",meta:{ability:O.VIEW_CUSTOMER},component:Ua},{path:"payments",meta:{ability:O.VIEW_PAYMENT},component:us},{path:"payments/create",name:"payments.create",meta:{ability:O.CREATE_PAYMENT},component:Ke},{path:"payments/:id/create",name:"invoice.payments.create",meta:{ability:O.CREATE_PAYMENT},component:Ke},{path:"payments/:id/edit",name:"payments.edit",meta:{ability:O.EDIT_PAYMENT},component:Ke},{path:"payments/:id/view",name:"payments.view",meta:{ability:O.VIEW_PAYMENT},component:ms},{path:"settings",name:"settings",component:Ka,children:[{path:"account-settings",name:"account.settings",component:qa},{path:"company-info",name:"company.info",meta:{isOwner:!0},component:Za},{path:"preferences",name:"preferences",meta:{isOwner:!0},component:Wa},{path:"customization",name:"customization",meta:{isOwner:!0},component:Ha},{path:"notifications",name:"notifications",meta:{isOwner:!0},component:Ga},{path:"roles-settings",name:"roles.settings",meta:{isOwner:!0},component:os},{path:"exchange-rate-provider",name:"exchange.rate.provider",meta:{ability:O.VIEW_EXCHANGE_RATE},component:ts},{path:"tax-types",name:"tax.types",meta:{ability:O.VIEW_TAX_TYPE},component:Ya},{path:"notes",name:"notes",meta:{ability:O.VIEW_ALL_NOTES},component:Qa},{path:"payment-mode",name:"payment.mode",component:Ja},{path:"custom-fields",name:"custom.fields",meta:{ability:O.VIEW_CUSTOM_FIELDS},component:Xa},{path:"expense-category",name:"expense.category",meta:{ability:O.VIEW_EXPENSE},component:es},{path:"mail-configuration",name:"mailconfig",meta:{isOwner:!0},component:as},{path:"file-disk",name:"file-disk",meta:{isOwner:!0},component:ss},{path:"backup",name:"backup",meta:{isOwner:!0},component:ns},{path:"update-app",name:"updateapp",meta:{isOwner:!0},component:is}]},{path:"items",meta:{ability:O.VIEW_ITEM},component:rs},{path:"items/create",name:"items.create",meta:{ability:O.CREATE_ITEM},component:ft},{path:"items/:id/edit",name:"items.edit",meta:{ability:O.EDIT_ITEM},component:ft},{path:"expenses",meta:{ability:O.VIEW_EXPENSE},component:ds},{path:"expenses/create",name:"expenses.create",meta:{ability:O.CREATE_EXPENSE},component:ht},{path:"expenses/:id/edit",name:"expenses.edit",meta:{ability:O.EDIT_EXPENSE},component:ht},{path:"users",name:"users.index",meta:{isOwner:!0},component:ls},{path:"users/create",meta:{isOwner:!0},name:"users.create",component:vt},{path:"users/:id/edit",name:"users.edit",meta:{isOwner:!0},component:vt},{path:"estimates",name:"estimates.index",meta:{ability:O.VIEW_ESTIMATE},component:cs},{path:"estimates/create",name:"estimates.create",meta:{ability:O.CREATE_ESTIMATE},component:yt},{path:"estimates/:id/view",name:"estimates.view",meta:{ability:O.VIEW_ESTIMATE},component:_s},{path:"estimates/:id/edit",name:"estimates.edit",meta:{ability:O.EDIT_ESTIMATE},component:yt},{path:"invoices",name:"invoices.index",meta:{ability:O.VIEW_INVOICE},component:gs},{path:"invoices/create",name:"invoices.create",meta:{ability:O.CREATE_INVOICE},component:bt},{path:"invoices/:id/view",name:"invoices.view",meta:{ability:O.VIEW_INVOICE},component:fs},{path:"invoices/:id/edit",name:"invoices.edit",meta:{ability:O.EDIT_INVOICE},component:bt},{path:"recurring-invoices",name:"recurring-invoices.index",meta:{ability:O.VIEW_RECURRING_INVOICE},component:hs},{path:"recurring-invoices/create",name:"recurring-invoices.create",meta:{ability:O.CREATE_RECURRING_INVOICE},component:kt},{path:"recurring-invoices/:id/view",name:"recurring-invoices.view",meta:{ability:O.VIEW_RECURRING_INVOICE},component:vs},{path:"recurring-invoices/:id/edit",name:"recurring-invoices.edit",meta:{ability:O.EDIT_RECURRING_INVOICE},component:kt},{path:"modules",name:"modules.index",meta:{isOwner:!0},component:ks},{path:"modules/:slug",name:"modules.view",meta:{isOwner:!0},component:ws},{path:"reports",meta:{ability:O.VIEW_FINANCIAL_REPORT},component:ys}]},{path:"/:catchAll(.*)",component:ps}];const Ss=()=>j(()=>import("./LayoutBasic.df06fd51.js"),["assets/LayoutBasic.df06fd51.js","assets/auth.4644c288.js","assets/vendor.01d0adc5.js","assets/global.08b6a984.js","assets/NotificationRoot.a98180ab.js"]),js=()=>j(()=>import("./LayoutLogin.96ca0d8f.js"),["assets/LayoutLogin.96ca0d8f.js","assets/NotificationRoot.a98180ab.js","assets/vendor.01d0adc5.js"]),wt=()=>j(()=>import("./Login.e5a5b4de.js"),["assets/Login.e5a5b4de.js","assets/vendor.01d0adc5.js","assets/auth.4644c288.js"]),Ps=()=>j(()=>import("./ForgotPassword.51f99d8b.js"),["assets/ForgotPassword.51f99d8b.js","assets/vendor.01d0adc5.js","assets/auth.4644c288.js"]),Ds=()=>j(()=>import("./ResetPassword.485b38b4.js"),["assets/ResetPassword.485b38b4.js","assets/vendor.01d0adc5.js","assets/global.08b6a984.js","assets/auth.4644c288.js"]),Cs=()=>j(()=>import("./Dashboard.4e48457e.js"),["assets/Dashboard.4e48457e.js","assets/EstimateIcon.1f3b368d.js","assets/vendor.01d0adc5.js","assets/global.08b6a984.js","assets/auth.4644c288.js","assets/BaseTable.6e206ca7.js"]),As=()=>j(()=>import("./Index.a00a8636.js"),["assets/Index.a00a8636.js","assets/vendor.01d0adc5.js","assets/invoice.b61ade7d.js","assets/auth.4644c288.js","assets/BaseTable.6e206ca7.js","assets/global.08b6a984.js","assets/MoonwalkerIcon.ab503573.js"]),Es=()=>j(()=>import("./View.02e08873.js"),["assets/View.02e08873.js","assets/vendor.01d0adc5.js","assets/invoice.b61ade7d.js","assets/auth.4644c288.js","assets/global.08b6a984.js"]),Ns=()=>j(()=>import("./Index.36ae4778.js"),["assets/Index.36ae4778.js","assets/vendor.01d0adc5.js","assets/BaseTable.6e206ca7.js","assets/global.08b6a984.js","assets/auth.4644c288.js","assets/estimate.e6573e64.js","assets/ObservatoryIcon.1877bd3e.js"]),Ts=()=>j(()=>import("./View.00b10884.js"),["assets/View.00b10884.js","assets/vendor.01d0adc5.js","assets/estimate.e6573e64.js","assets/auth.4644c288.js","assets/global.08b6a984.js"]),Is=()=>j(()=>import("./Index.97b641ce.js"),["assets/Index.97b641ce.js","assets/vendor.01d0adc5.js","assets/BaseTable.6e206ca7.js","assets/CapsuleIcon.dc769b69.js","assets/payment.037dd620.js","assets/auth.4644c288.js","assets/global.08b6a984.js"]),$s=()=>j(()=>import("./View.6c9abcf9.js"),["assets/View.6c9abcf9.js","assets/vendor.01d0adc5.js","assets/payment.037dd620.js","assets/auth.4644c288.js","assets/global.08b6a984.js"]),Rs=()=>j(()=>import("./SettingsIndex.25913381.js"),["assets/SettingsIndex.25913381.js","assets/BaseListItem.4eea691c.js","assets/vendor.01d0adc5.js","assets/global.08b6a984.js","assets/auth.4644c288.js"]),Fs=()=>j(()=>import("./CustomerSettings.3e617f27.js"),["assets/CustomerSettings.3e617f27.js","assets/vendor.01d0adc5.js","assets/global.08b6a984.js","assets/auth.4644c288.js"]),Ms=()=>j(()=>import("./AddressInformation.908aefd5.js"),["assets/AddressInformation.908aefd5.js","assets/vendor.01d0adc5.js","assets/global.08b6a984.js","assets/auth.4644c288.js"]);var Vs=[{path:"/:company/customer",component:js,meta:{redirectIfAuthenticated:!0},children:[{path:"",component:wt},{path:"login",component:wt,name:"customer.login"},{path:"forgot-password",component:Ps,name:"customer.forgot-password"},{path:"reset/password/:token",component:Ds,name:"customer.reset-password"}]},{path:"/:company/customer",component:Ss,meta:{requiresAuth:!0},children:[{path:"dashboard",component:Cs,name:"customer.dashboard"},{path:"invoices",component:As,name:"invoices.dashboard"},{path:"invoices/:id/view",component:Es,name:"customer.invoices.view"},{path:"estimates",component:Ns,name:"estimates.dashboard"},{path:"estimates/:id/view",component:Ts,name:"customer.estimates.view"},{path:"payments",component:Is,name:"payments.dashboard"},{path:"payments/:id/view",component:$s,name:"customer.payments.view"},{path:"settings",component:Rs,name:"customer",children:[{path:"customer-profile",component:Fs,name:"customer.profile"},{path:"address-info",component:Ms,name:"customer.address.info"}]}]}];let qe=[];qe=qe.concat(zs,Vs);const $e=Mt({history:Vt(),linkActiveClass:"active",routes:qe});$e.beforeEach((s,r,i)=>{const a=je(),t=Ie();let n=s.meta.ability;const{isAppLoaded:e}=t;n&&e&&s.meta.requiresAuth?a.hasAbilities(n)?i():i({name:"account.settings"}):s.meta.isOwner&&e?a.currentUser.is_owner?i():i({name:"dashboard"}):i()});var ee=(s,r)=>{const i=s.__vccOpts||s;for(const[a,t]of r)i[a]=t;return i};const Bs={};function Os(s,r){const i=C("router-view"),a=C("BaseDialog");return l(),_(Q,null,[u(i),u(a)],64)}var Ls=ee(Bs,[["render",Os]]);const Us={dashboard:"Dashboard",customers:"Customers",items:"Items",invoices:"Invoices","recurring-invoices":"Recurring Invoices",expenses:"Expenses",estimates:"Estimates",payments:"Payments",reports:"Reports",settings:"Settings",logout:"Logout",users:"Users",modules:"Modules"},Ks={add_company:"Add Company",view_pdf:"View PDF",copy_pdf_url:"Copy PDF Url",download_pdf:"Download PDF",save:"Save",create:"Create",cancel:"Cancel",update:"Update",deselect:"Deselect",download:"Download",from_date:"From Date",to_date:"To Date",from:"From",to:"To",ok:"Ok",yes:"Yes",no:"No",sort_by:"Sort By",ascending:"Ascending",descending:"Descending",subject:"Subject",body:"Body",message:"Message",send:"Send",preview:"Preview",go_back:"Go Back",back_to_login:"Back to Login?",home:"Home",filter:"Filter",delete:"Delete",edit:"Edit",view:"View",add_new_item:"Add New Item",clear_all:"Clear All",showing:"Showing",of:"of",actions:"Actions",subtotal:"SUBTOTAL",discount:"DISCOUNT",fixed:"Fixed",percentage:"Percentage",tax:"TAX",total_amount:"TOTAL AMOUNT",bill_to:"Bill to",ship_to:"Ship to",due:"Due",draft:"Draft",sent:"Sent",all:"All",select_all:"Select All",select_template:"Select Template",choose_file:"Click here to choose a file",choose_template:"Choose a template",choose:"Choose",remove:"Remove",select_a_status:"Select a status",select_a_tax:"Select a tax",search:"Search",are_you_sure:"Are you sure?",list_is_empty:"List is empty.",no_tax_found:"No tax found!",four_zero_four:"404",you_got_lost:"Whoops! You got Lost!",go_home:"Go Home",test_mail_conf:"Test Mail Configuration",send_mail_successfully:"Mail sent successfully",setting_updated:"Setting updated successfully",select_state:"Select state",select_country:"Select Country",select_city:"Select City",street_1:"Street 1",street_2:"Street 2",action_failed:"Action Failed",retry:"Retry",choose_note:"Choose Note",no_note_found:"No Note Found",insert_note:"Insert Note",copied_pdf_url_clipboard:"Copied PDF url to clipboard!",copied_url_clipboard:"Copied url to clipboard!",docs:"Docs",do_you_wish_to_continue:"Do you wish to continue?",note:"Note",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully"},qs={select_year:"Select year",cards:{due_amount:"Amount Due",customers:"Customers",invoices:"Invoices",estimates:"Estimates",payments:"Payments"},chart_info:{total_sales:"Sales",total_receipts:"Receipts",total_expense:"Expenses",net_income:"Net Income",year:"Select year"},monthly_chart:{title:"Sales & Expenses"},recent_invoices_card:{title:"Due Invoices",due_on:"Due On",customer:"Customer",amount_due:"Amount Due",actions:"Actions",view_all:"View All"},recent_estimate_card:{title:"Recent Estimates",date:"Date",customer:"Customer",amount_due:"Amount Due",actions:"Actions",view_all:"View All"}},Zs={name:"Name",description:"Description",percent:"Percent",compound_tax:"Compound Tax"},Ws={search:"Search...",customers:"Customers",users:"Users",no_results_found:"No Results Found"},Hs={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},Gs={today:"Today",this_week:"This Week",this_month:"This Month",this_quarter:"This Quarter",this_year:"This Year",previous_week:"Previous Week",previous_month:"Previous Month",previous_quarter:"Previous Quarter",previous_year:"Previous Year",custom:"Custom"},Ys={title:"Customers",prefix:"Prefix",add_customer:"Add Customer",contacts_list:"Customer List",name:"Name",mail:"Mail | Mails",statement:"Statement",display_name:"Display Name",primary_contact_name:"Primary Contact Name",contact_name:"Contact Name",amount_due:"Amount Due",email:"Email",address:"Address",phone:"Phone",website:"Website",overview:"Overview",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",enable_portal:"Enable Portal",country:"Country",state:"State",city:"City",zip_code:"Zip Code",added_on:"Added On",action:"Action",password:"Password",confirm_password:"Confirm Password",street_number:"Street Number",primary_currency:"Primary Currency",description:"Description",add_new_customer:"Add New Customer",save_customer:"Save Customer",update_customer:"Update Customer",customer:"Customer | Customers",new_customer:"New Customer",edit_customer:"Edit Customer",basic_info:"Basic Info",portal_access:"Portal Access",portal_access_text:"Would you like to allow this customer to login to the Customer Portal?",portal_access_url:"Customer Portal Login URL",portal_access_url_help:"Please copy & forward the above given URL to your customer for providing access.",billing_address:"Billing Address",shipping_address:"Shipping Address",copy_billing_address:"Copy from Billing",no_customers:"No customers yet!",no_customers_found:"No customers found!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"This section will contain the list of customers.",primary_display_name:"Primary Display Name",select_currency:"Select currency",select_a_customer:"Select a customer",type_or_click:"Type or click to select",new_transaction:"New Transaction",no_matching_customers:"There are no matching customers!",phone_number:"Phone Number",create_date:"Create Date",confirm_delete:"You will not be able to recover this customer and all the related Invoices, Estimates and Payments. | You will not be able to recover these customers and all the related Invoices, Estimates and Payments.",created_message:"Customer created successfully",updated_message:"Customer updated successfully",address_updated_message:"Address Information Updated succesfully",deleted_message:"Customer deleted successfully | Customers deleted successfully",edit_currency_not_allowed:"Cannot change currency once transactions created."},Js={title:"Items",items_list:"Items List",name:"Name",unit:"Unit",description:"Description",added_on:"Added On",price:"Price",date_of_creation:"Date Of Creation",not_selected:"No item selected",action:"Action",add_item:"Add Item",save_item:"Save Item",update_item:"Update Item",item:"Item | Items",add_new_item:"Add New Item",new_item:"New Item",edit_item:"Edit Item",no_items:"No items yet!",list_of_items:"This section will contain the list of items.",select_a_unit:"select unit",taxes:"Taxes",item_attached_message:"Cannot delete an item which is already in use",confirm_delete:"You will not be able to recover this Item | You will not be able to recover these Items",created_message:"Item created successfully",updated_message:"Item updated successfully",deleted_message:"Item deleted successfully | Items deleted successfully"},Xs={title:"Estimates",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"Estimate | Estimates",estimates_list:"Estimates List",days:"{days} Days",months:"{months} Month",years:"{years} Year",all:"All",paid:"Paid",unpaid:"Unpaid",customer:"CUSTOMER",ref_no:"REF NO.",number:"NUMBER",amount_due:"AMOUNT DUE",partially_paid:"Partially Paid",total:"Total",discount:"Discount",sub_total:"Sub Total",estimate_number:"Estimate Number",ref_number:"Ref Number",contact:"Contact",add_item:"Add an Item",date:"Date",due_date:"Due Date",expiry_date:"Expiry Date",status:"Status",add_tax:"Add Tax",amount:"Amount",action:"Action",notes:"Notes",tax:"Tax",estimate_template:"Template",convert_to_invoice:"Convert to Invoice",mark_as_sent:"Mark as Sent",send_estimate:"Send Estimate",resend_estimate:"Resend Estimate",record_payment:"Record Payment",add_estimate:"Add Estimate",save_estimate:"Save Estimate",confirm_conversion:"This estimate will be used to create a new Invoice.",conversion_message:"Invoice created successful",confirm_send_estimate:"This estimate will be sent via email to the customer",confirm_mark_as_sent:"This estimate will be marked as sent",confirm_mark_as_accepted:"This estimate will be marked as Accepted",confirm_mark_as_rejected:"This estimate will be marked as Rejected",no_matching_estimates:"There are no matching estimates!",mark_as_sent_successfully:"Estimate marked as sent successfully",send_estimate_successfully:"Estimate sent successfully",errors:{required:"Field is required"},accepted:"Accepted",rejected:"Rejected",expired:"Expired",sent:"Sent",draft:"Draft",viewed:"Viewed",declined:"Declined",new_estimate:"New Estimate",add_new_estimate:"Add New Estimate",update_Estimate:"Update Estimate",edit_estimate:"Edit Estimate",items:"items",Estimate:"Estimate | Estimates",add_new_tax:"Add New Tax",no_estimates:"No estimates yet!",list_of_estimates:"This section will contain the list of estimates.",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",marked_as_accepted_message:"Estimate marked as accepted",marked_as_rejected_message:"Estimate marked as rejected",confirm_delete:"You will not be able to recover this Estimate | You will not be able to recover these Estimates",created_message:"Estimate created successfully",updated_message:"Estimate updated successfully",deleted_message:"Estimate deleted successfully | Estimates deleted successfully",something_went_wrong:"something went wrong",item:{title:"Item Title",description:"Description",quantity:"Quantity",price:"Price",discount:"Discount",total:"Total",total_discount:"Total Discount",sub_total:"Sub Total",tax:"Tax",amount:"Amount",select_an_item:"Type or click to select an item",type_item_description:"Type Item Description (optional)"}},Qs={title:"Invoices",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Invoices List",invoice_information:"Invoice Information",days:"{days} Days",months:"{months} Month",years:"{years} Year",all:"All",paid:"Paid",unpaid:"Unpaid",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CUSTOMER",paid_status:"PAID STATUS",ref_no:"REF NO.",number:"NUMBER",amount_due:"AMOUNT DUE",partially_paid:"Partially Paid",total:"Total",discount:"Discount",sub_total:"Sub Total",invoice:"Invoice | Invoices",invoice_number:"Invoice Number",ref_number:"Ref Number",contact:"Contact",add_item:"Add an Item",date:"Date",due_date:"Due Date",status:"Status",add_tax:"Add Tax",amount:"Amount",action:"Action",notes:"Notes",view:"View",send_invoice:"Send Invoice",resend_invoice:"Resend Invoice",invoice_template:"Invoice Template",conversion_message:"Invoice cloned successful",template:"Select Template",mark_as_sent:"Mark as sent",confirm_send_invoice:"This invoice will be sent via email to the customer",invoice_mark_as_sent:"This invoice will be marked as sent",confirm_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",confirm_send:"This invoice will be sent via email to the customer",invoice_date:"Invoice Date",record_payment:"Record Payment",add_new_invoice:"Add New Invoice",update_expense:"Update Expense",edit_invoice:"Edit Invoice",new_invoice:"New Invoice",save_invoice:"Save Invoice",update_invoice:"Update Invoice",add_new_tax:"Add New Tax",no_invoices:"No Invoices yet!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",list_of_invoices:"This section will contain the list of invoices.",select_invoice:"Select Invoice",no_matching_invoices:"There are no matching invoices!",mark_as_sent_successfully:"Invoice marked as sent successfully",invoice_sent_successfully:"Invoice sent successfully",cloned_successfully:"Invoice cloned successfully",clone_invoice:"Clone Invoice",confirm_clone:"This invoice will be cloned into a new Invoice",item:{title:"Item Title",description:"Description",quantity:"Quantity",price:"Price",discount:"Discount",total:"Total",total_discount:"Total Discount",sub_total:"Sub Total",tax:"Tax",amount:"Amount",select_an_item:"Type or click to select an item",type_item_description:"Type Item Description (optional)"},payment_attached_message:"One of the selected invoices already have a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal",confirm_delete:"You will not be able to recover this Invoice | You will not be able to recover these Invoices",created_message:"Invoice created successfully",updated_message:"Invoice updated successfully",deleted_message:"Invoice deleted successfully | Invoices deleted successfully",marked_as_sent_message:"Invoice marked as sent successfully",something_went_wrong:"something went wrong",invalid_due_amount_message:"Total Invoice amount cannot be less than total paid amount for this Invoice. Please update the invoice or delete the associated payments to continue."},en={title:"Recurring Invoices",invoices_list:"Recurring Invoices List",days:"{days} Days",months:"{months} Month",years:"{years} Year",all:"All",paid:"Paid",unpaid:"Unpaid",viewed:"Viewed",overdue:"Overdue",active:"Active",completed:"Completed",customer:"CUSTOMER",paid_status:"PAID STATUS",ref_no:"REF NO.",number:"NUMBER",amount_due:"AMOUNT DUE",partially_paid:"Partially Paid",total:"Total",discount:"Discount",sub_total:"Sub Total",invoice:"Recurring Invoice | Recurring Invoices",invoice_number:"Recurring Invoice Number",next_invoice_date:"Next Invoice Date",ref_number:"Ref Number",contact:"Contact",add_item:"Add an Item",date:"Date",limit_by:"Limit by",limit_date:"Limit Date",limit_count:"Limit Count",count:"Count",status:"Status",select_a_status:"Select a status",working:"Working",on_hold:"On Hold",complete:"Completed",add_tax:"Add Tax",amount:"Amount",action:"Action",notes:"Notes",view:"View",basic_info:"Basic Info",send_invoice:"Send Recurring Invoice",auto_send:"Auto Send",resend_invoice:"Resend Recurring Invoice",invoice_template:"Recurring Invoice Template",conversion_message:"Recurring Invoice cloned successful",template:"Template",mark_as_sent:"Mark as sent",confirm_send_invoice:"This recurring invoice will be sent via email to the customer",invoice_mark_as_sent:"This recurring invoice will be marked as sent",confirm_send:"This recurring invoice will be sent via email to the customer",starts_at:"Start Date",due_date:"Invoice Due Date",record_payment:"Record Payment",add_new_invoice:"Add New Recurring Invoice",update_expense:"Update Expense",edit_invoice:"Edit Recurring Invoice",new_invoice:"New Recurring Invoice",send_automatically:"Send Automatically",send_automatically_desc:"Enable this, if you would like to send the invoice automatically to the customer when its created.",save_invoice:"Save Recurring Invoice",update_invoice:"Update Recurring Invoice",add_new_tax:"Add New Tax",no_invoices:"No Recurring Invoices yet!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",list_of_invoices:"This section will contain the list of recurring invoices.",select_invoice:"Select Invoice",no_matching_invoices:"There are no matching recurring invoices!",mark_as_sent_successfully:"Recurring Invoice marked as sent successfully",invoice_sent_successfully:"Recurring Invoice sent successfully",cloned_successfully:"Recurring Invoice cloned successfully",clone_invoice:"Clone Recurring Invoice",confirm_clone:"This recurring invoice will be cloned into a new Recurring Invoice",item:{title:"Item Title",description:"Description",quantity:"Quantity",price:"Price",discount:"Discount",total:"Total",total_discount:"Total Discount",sub_total:"Sub Total",tax:"Tax",amount:"Amount",select_an_item:"Type or click to select an item",type_item_description:"Type Item Description (optional)"},frequency:{title:"Frequency",select_frequency:"Select Frequency",minute:"Minute",hour:"Hour",day_month:"Day of month",month:"Month",day_week:"Day of week"},confirm_delete:"You will not be able to recover this Invoice | You will not be able to recover these Invoices",created_message:"Recurring Invoice created successfully",updated_message:"Recurring Invoice updated successfully",deleted_message:"Recurring Invoice deleted successfully | Recurring Invoices deleted successfully",marked_as_sent_message:"Recurring Invoice marked as sent successfully",user_email_does_not_exist:"User email does not exist",something_went_wrong:"something went wrong",invalid_due_amount_message:"Total Recurring Invoice amount cannot be less than total paid amount for this Recurring Invoice. Please update the invoice or delete the associated payments to continue."},tn={title:"Payments",payments_list:"Payments List",record_payment:"Record Payment",customer:"Customer",date:"Date",amount:"Amount",action:"Action",payment_number:"Payment Number",payment_mode:"Payment Mode",invoice:"Invoice",note:"Note",add_payment:"Add Payment",new_payment:"New Payment",edit_payment:"Edit Payment",view_payment:"View Payment",add_new_payment:"Add New Payment",send_payment_receipt:"Send Payment Receipt",send_payment:"Send Payment",save_payment:"Save Payment",update_payment:"Update Payment",payment:"Payment | Payments",no_payments:"No payments yet!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"There are no matching payments!",list_of_payments:"This section will contain the list of payments.",select_payment_mode:"Select payment mode",confirm_mark_as_sent:"This estimate will be marked as sent",confirm_send_payment:"This payment will be sent via email to the customer",send_payment_successfully:"Payment sent successfully",something_went_wrong:"something went wrong",confirm_delete:"You will not be able to recover this Payment | You will not be able to recover these Payments",created_message:"Payment created successfully",updated_message:"Payment updated successfully",deleted_message:"Payment deleted successfully | Payments deleted successfully",invalid_amount_message:"Payment amount is invalid"},an={title:"Expenses",expenses_list:"Expenses List",select_a_customer:"Select a customer",expense_title:"Title",customer:"Customer",currency:"Currency",contact:"Contact",category:"Category",from_date:"From Date",to_date:"To Date",expense_date:"Date",description:"Description",receipt:"Receipt",amount:"Amount",action:"Action",not_selected:"Not selected",note:"Note",category_id:"Category Id",date:"Date",add_expense:"Add Expense",add_new_expense:"Add New Expense",save_expense:"Save Expense",update_expense:"Update Expense",download_receipt:"Download Receipt",edit_expense:"Edit Expense",new_expense:"New Expense",expense:"Expense | Expenses",no_expenses:"No expenses yet!",list_of_expenses:"This section will contain the list of expenses.",confirm_delete:"You will not be able to recover this Expense | You will not be able to recover these Expenses",created_message:"Expense created successfully",updated_message:"Expense updated successfully",deleted_message:"Expense deleted successfully | Expenses deleted successfully",categories:{categories_list:"Categories List",title:"Title",name:"Name",description:"Description",amount:"Amount",actions:"Actions",add_category:"Add Category",new_category:"New Category",category:"Category | Categories",select_a_category:"Select a category"}},sn={email:"Email",password:"Password",forgot_password:"Forgot Password?",or_signIn_with:"or Sign in with",login:"Login",register:"Register",reset_password:"Reset Password",password_reset_successfully:"Password Reset Successfully",enter_email:"Enter email",enter_password:"Enter Password",retype_password:"Retype Password"},nn={buy_now:"Buy Now",install:"Install",price:"Price",download_zip_file:"Download ZIP file",unzipping_package:"Unzipping Package",copying_files:"Copying Files",deleting_files:"Deleting Unused files",completing_installation:"Completing Installation",update_failed:"Update Failed",install_success:"Module has been installed successfully!",customer_reviews:"Reviews",license:"License",faq:"FAQ",monthly:"Monthly",yearly:"Yearly",updated:"Updated",version:"Version",disable:"Disable",module_disabled:"Module Disabled",enable:"Enable",module_enabled:"Module Enabled",update_to:"Update To",module_updated:"Module Updated Successfully!",title:"Modules",module:"Module | Modules",api_token:"API token",invalid_api_token:"Invalid API Token.",other_modules:"Other Modules",view_all:"View All",no_reviews_found:"There are no reviews for this module yet!",module_not_purchased:"Module Not Purchased",module_not_found:"Module Not Found",version_not_supported:"This module version doesn't support the current version of Crater",last_updated:"Last Updated On",connect_installation:"Connect your installation",api_token_description:"Login to {url} and connect this installation by entering the API Token. Your purchased modules will show up here after the connection is established.",view_module:"View Module",update_available:"Update Available",purchased:"Purchased",installed:"Installed",no_modules_installed:"No Modules Installed Yet!",disable_warning:"All the settings for this particular will be reverted.",what_you_get:"What you get"},on={title:"Users",users_list:"Users List",name:"Name",description:"Description",added_on:"Added On",date_of_creation:"Date Of Creation",action:"Action",add_user:"Add User",save_user:"Save User",update_user:"Update User",user:"User | Users",add_new_user:"Add New User",new_user:"New User",edit_user:"Edit User",no_users:"No users yet!",list_of_users:"This section will contain the list of users.",email:"Email",phone:"Phone",password:"Password",user_attached_message:"Cannot delete an item which is already in use",confirm_delete:"You will not be able to recover this User | You will not be able to recover these Users",created_message:"User created successfully",updated_message:"User updated successfully",deleted_message:"User deleted successfully | Users deleted successfully",select_company_role:"Select Role for {company}",companies:"Companies"},rn={title:"Report",from_date:"From Date",to_date:"To Date",status:"Status",paid:"Paid",unpaid:"Unpaid",download_pdf:"Download PDF",view_pdf:"View PDF",update_report:"Update Report",report:"Report | Reports",profit_loss:{profit_loss:"Profit & Loss",to_date:"To Date",from_date:"From Date",date_range:"Select Date Range"},sales:{sales:"Sales",date_range:"Select Date Range",to_date:"To Date",from_date:"From Date",report_type:"Report Type"},taxes:{taxes:"Taxes",to_date:"To Date",from_date:"From Date",date_range:"Select Date Range"},errors:{required:"Field is required"},invoices:{invoice:"Invoice",invoice_date:"Invoice Date",due_date:"Due Date",amount:"Amount",contact_name:"Contact Name",status:"Status"},estimates:{estimate:"Estimate",estimate_date:"Estimate Date",due_date:"Due Date",estimate_number:"Estimate Number",ref_number:"Ref Number",amount:"Amount",contact_name:"Contact Name",status:"Status"},expenses:{expenses:"Expenses",category:"Category",date:"Date",amount:"Amount",to_date:"To Date",from_date:"From Date",date_range:"Select Date Range"}},dn={menu_title:{account_settings:"Account Settings",company_information:"Company Information",customization:"Customization",preferences:"Preferences",notifications:"Notifications",tax_types:"Tax Types",expense_category:"Expense Categories",update_app:"Update App",backup:"Backup",file_disk:"File Disk",custom_fields:"Custom Fields",payment_modes:"Payment Modes",notes:"Notes",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:"  You can update Your Address information using form below."},title:"Settings",setting:"Settings | Settings",general:"General",language:"Language",primary_currency:"Primary Currency",timezone:"Time Zone",date_format:"Date Format",currencies:{title:"Currencies",currency:"Currency | Currencies",currencies_list:"Currencies List",select_currency:"Select Currency",name:"Name",code:"Code",symbol:"Symbol",precision:"Precision",thousand_separator:"Thousand Separator",decimal_separator:"Decimal Separator",position:"Position",position_of_symbol:"Position Of Symbol",right:"Right",left:"Left",action:"Action",add_currency:"Add Currency"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},pdf:{title:"PDF Setting",footer_text:"Footer Text",pdf_layout:"PDF Layout"},company_info:{company_info:"Company info",company_name:"Company Name",company_logo:"Company Logo",section_description:"Information about your company that will be displayed on invoices, estimates and other documents created by Crater.",phone:"Phone",country:"Country",state:"State",city:"City",address:"Address",zip:"Zip",save:"Save",delete:"Delete",updated_message:"Company information updated successfully",delete_company:"Delete Company",delete_company_description:"Once you delete your company, you will lose all the data and files associated with it permanently.",are_you_absolutely_sure:"Are you absolutely sure?",delete_company_modal_desc:"This action cannot be undone. This will permanently delete {company} and all of its associated data.",delete_company_modal_label:"Please type {company} to confirm"},custom_fields:{title:"Custom Fields",section_description:"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.",add_custom_field:"Add Custom Field",edit_custom_field:"Edit Custom Field",field_name:"Field Name",label:"Label",type:"Type",name:"Name",slug:"Slug",required:"Required",placeholder:"Placeholder",help_text:"Help Text",default_value:"Default Value",prefix:"Prefix",starting_number:"Starting Number",model:"Model",help_text_description:"Enter some text to help users understand the purpose of this custom field.",suffix:"Suffix",yes:"Yes",no:"No",order:"Order",custom_field_confirm_delete:"You will not be able to recover this Custom Field",already_in_use:"Custom Field is already in use",deleted_message:"Custom Field deleted successfully",options:"options",add_option:"Add Options",add_another_option:"Add another option",sort_in_alphabetical_order:"Sort in Alphabetical Order",add_options_in_bulk:"Add options in bulk",use_predefined_options:"Use Predefined Options",select_custom_date:"Select Custom Date",select_relative_date:"Select Relative Date",ticked_by_default:"Ticked by default",updated_message:"Custom Field updated successfully",added_message:"Custom Field added successfully",press_enter_to_add:"Press enter to add new option",model_in_use:"Cannot update model for fields which are already in use.",type_in_use:"Cannot update type for fields which are already in use."},customization:{customization:"customization",updated_message:"Company information updated successfully",save:"Save",insert_fields:"Insert Fields",learn_custom_format:"Learn how to use custom format",add_new_component:"Add New Component",component:"Component",Parameter:"Parameter",series:"Series",series_description:"To set a static prefix/postfix like 'INV' across your company. It supports character length of up to 6 chars.",series_param_label:"Series Value",delimiter:"Delimiter",delimiter_description:"Single character for specifying the boundary between 2 separate components. By default its set to -",delimiter_param_label:"Delimiter Value",date_format:"Date Format",date_format_description:"A local date and time field which accepts a format parameter. The default format: 'Y' renders the current year.",date_format_param_label:"Format",sequence:"Sequence",sequence_description:"Consecutive sequence of numbers across your company. You can specify the length on the given parameter.",sequence_param_label:"Sequence Length",customer_series:"Customer Series",customer_series_description:"To set a different prefix/postfix for each customer.",customer_sequence:"Customer Sequence",customer_sequence_description:"Consecutive sequence of numbers for each of your customer.",customer_sequence_param_label:"Sequence Length",random_sequence:"Random Sequence",random_sequence_description:"Random alphanumeric string. You can specify the length on the given parameter.",random_sequence_param_label:"Sequence Length",invoices:{title:"Invoices",invoice_number_format:"Invoice Number Format",invoice_number_format_description:"Customize how your invoice number gets generated automatically when you create a new invoice.",preview_invoice_number:"Preview Invoice Number",due_date:"Due Date",due_date_description:"Specify how due date is automatically set when you create an invoice.",due_date_days:"Invoice Due after days",set_due_date_automatically:"Set Due Date Automatically",set_due_date_automatically_description:"Enable this if you wish to set due date automatically when you create a new invoice.",default_formats:"Default Formats",default_formats_description:"Below given formats are used to fill up the fields automatically on invoice creation.",default_invoice_email_body:"Default Invoice Email Body",company_address_format:"Company Address Format",shipping_address_format:"Shipping Address Format",billing_address_format:"Billing Address Format",invoice_email_attachment:"Send invoices as attachments",invoice_email_attachment_setting_description:"Enable this if you want to send invoices as email attachment. Please note that 'View Invoice' button in emails will not be displayed anymore when enabled.",invoice_settings_updated:"Invoice Settings updated successfully",retrospective_edits:"Retrospective Edits",allow:"Allow",disable_on_invoice_partial_paid:"Disable after partial payment is recorded",disable_on_invoice_paid:"Disable after full payment is recorded",disable_on_invoice_sent:"Disable after invoice is sent",retrospective_edits_description:" Based on your country's laws or your preference, you can restrict users from editing finalised invoices."},estimates:{title:"Estimates",estimate_number_format:"Estimate Number Format",estimate_number_format_description:"Customize how your estimate number gets generated automatically when you create a new estimate.",preview_estimate_number:"Preview Estimate Number",expiry_date:"Expiry Date",expiry_date_description:"Specify how expiry date is automatically set when you create an estimate.",expiry_date_days:"Estimate Expires after days",set_expiry_date_automatically:"Set Expiry Date Automatically",set_expiry_date_automatically_description:"Enable this if you wish to set expiry date automatically when you create a new estimate.",default_formats:"Default Formats",default_formats_description:"Below given formats are used to fill up the fields automatically on estimate creation.",default_estimate_email_body:"Default Estimate Email Body",company_address_format:"Company Address Format",shipping_address_format:"Shipping Address Format",billing_address_format:"Billing Address Format",estimate_email_attachment:"Send estimates as attachments",estimate_email_attachment_setting_description:"Enable this if you want to send the estimates as an email attachment. Please note that 'View Estimate' button in emails will not be displayed anymore when enabled.",estimate_settings_updated:"Estimate Settings updated successfully",convert_estimate_options:"Estimate Convert Action",convert_estimate_description:"Specify what happens to the estimate after it gets converted to an invoice.",no_action:"No action",delete_estimate:"Delete estimate",mark_estimate_as_accepted:"Mark estimate as accepted"},payments:{title:"Payments",payment_number_format:"Payment Number Format",payment_number_format_description:"Customize how your payment number gets generated automatically when you create a new payment.",preview_payment_number:"Preview Payment Number",default_formats:"Default Formats",default_formats_description:"Below given formats are used to fill up the fields automatically on payment creation.",default_payment_email_body:"Default Payment Email Body",company_address_format:"Company Address Format",from_customer_address_format:"From Customer Address Format",payment_email_attachment:"Send payments as attachments",payment_email_attachment_setting_description:"Enable this if you want to send the payment receipts as an email attachment. Please note that 'View Payment' button in emails will not be displayed anymore when enabled.",payment_settings_updated:"Payment Settings updated successfully"},items:{title:"Items",units:"Units",add_item_unit:"Add Item Unit",edit_item_unit:"Edit Item Unit",unit_name:"Unit Name",item_unit_added:"Item Unit Added",item_unit_updated:"Item Unit Updated",item_unit_confirm_delete:"You will not be able to recover this Item unit",already_in_use:"Item Unit is already in use",deleted_message:"Item Unit deleted successfully"},notes:{title:"Notes",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"Notes",type:"Type",add_note:"Add Note",add_new_note:"Add New Note",name:"Name",edit_note:"Edit Note",note_added:"Note added successfully",note_updated:"Note Updated successfully",note_confirm_delete:"You will not be able to recover this Note",already_in_use:"Note is already in use",deleted_message:"Note deleted successfully"}},account_settings:{profile_picture:"Profile Picture",name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password",account_settings:"Account Settings",save:"Save",section_description:"You can update your name, email & password using the form below.",updated_message:"Account Settings updated successfully"},user_profile:{name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password"},notification:{title:"Notifications",email:"Send Notifications to",description:"Which email notifications would you like to receive when something changes?",invoice_viewed:"Invoice viewed",invoice_viewed_desc:"When your customer views the invoice sent via crater dashboard.",estimate_viewed:"Estimate viewed",estimate_viewed_desc:"When your customer views the estimate sent via crater dashboard.",save:"Save",email_save_message:"Email saved successfully",please_enter_email:"Please Enter Email"},roles:{title:"Roles",description:"Manage the roles & permissions of this company",save:"Save",add_new_role:"Add New Role",role_name:"Role Name",added_on:"Added on",add_role:"Add Role",edit_role:"Edit Role",name:"Name",permission:"Permission | Permissions",select_all:"Select All",none:"None",confirm_delete:"You will not be able to recover this Role",created_message:"Role created successfully",updated_message:"Role updated successfully",deleted_message:"Role deleted successfully",already_in_use:"Role is already in use"},exchange_rate:{exchange_rate:"Exchange Rate",title:"Fix Currency Exchange issues",description:"Please enter exchange rate of all the currencies mentioned below to help Crater properly calculate the amounts in {currency}.",drivers:"Drivers",new_driver:"Add New Provider",edit_driver:"Edit Provider",select_driver:"Select Driver",update:"select exchange rate ",providers_description:"Configure your exchange rate providers here to automatically fetch the latest exchange rate on transactions.",key:"API Key",name:"Name",driver:"Driver",is_default:"IS DEFAULT",currency:"Currencies",exchange_rate_confirm_delete:"You will not be able to recover this driver",created_message:"Provider Created successfully",updated_message:"Provider Updated Successfully",deleted_message:"Provider Deleted Successfully",error:" You cannot Delete Active Driver",default_currency_error:"This currency is already used in one of the Active Provider",exchange_help_text:"Enter exchange rate to convert from {currency} to {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"Currency Converter",server:"Server",url:"URL",active:"Active",currency_help_text:"This provider will only be used on above selected currencies",currency_in_used:"The following currencies are already active on another provider. Please remove these currencies from selection to activate this provider again."},tax_types:{title:"Tax Types",add_tax:"Add Tax",edit_tax:"Edit Tax",description:"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.",add_new_tax:"Add New Tax",tax_settings:"Tax Settings",tax_per_item:"Tax Per Item",tax_name:"Tax Name",compound_tax:"Compound Tax",percent:"Percent",action:"Action",tax_setting_description:"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.",created_message:"Tax type created successfully",updated_message:"Tax type updated successfully",deleted_message:"Tax type deleted successfully",confirm_delete:"You will not be able to recover this Tax Type",already_in_use:"Tax is already in use"},payment_modes:{title:"Payment Modes",description:"Modes of transaction for payments",add_payment_mode:"Add Payment Mode",edit_payment_mode:"Edit Payment Mode",mode_name:"Mode Name",payment_mode_added:"Payment Mode Added",payment_mode_updated:"Payment Mode Updated",payment_mode_confirm_delete:"You will not be able to recover this Payment Mode",already_in_use:"Payment Mode is already in use",deleted_message:"Payment Mode deleted successfully"},expense_category:{title:"Expense Categories",action:"Action",description:"Categories are required for adding expense entries. You can Add or Remove these categories according to your preference.",add_new_category:"Add New Category",add_category:"Add Category",edit_category:"Edit Category",category_name:"Category Name",category_description:"Description",created_message:"Expense Category created successfully",deleted_message:"Expense category deleted successfully",updated_message:"Expense category updated successfully",confirm_delete:"You will not be able to recover this Expense Category",already_in_use:"Category is already in use"},preferences:{currency:"Currency",default_language:"Default Language",time_zone:"Time Zone",fiscal_year:"Financial Year",date_format:"Date Format",discount_setting:"Discount Setting",discount_per_item:"Discount Per Item ",discount_setting_description:"Enable this if you want to add Discount to individual invoice items. By default, Discount is added directly to the invoice.",expire_public_links:"Automatically Expire Public Links",expire_setting_description:"Specify whether you would like to expire all the links sent by application to view invoices, estimates & payments, etc after a specified duration.",save:"Save",preference:"Preference | Preferences",general_settings:"Default preferences for the system.",updated_message:"Preferences updated successfully",select_language:"Select Language",select_time_zone:"Select Time Zone",select_date_format:"Select Date Format",select_financial_year:"Select Financial Year",recurring_invoice_status:"Recurring Invoice Status",create_status:"Create Status",active:"Active",on_hold:"On Hold",update_status:"Update Status",completed:"Completed",company_currency_unchangeable:"Company currency cannot be changed"},update_app:{title:"Update App",description:"You can easily update Crater by checking for a new update by clicking the button below",check_update:"Check for updates",avail_update:"New Update available",next_version:"Next version",requirements:"Requirements",update:"Update Now",update_progress:"Update in progress...",progress_text:"It will just take a few minutes. Please do not refresh the screen or close the window before the update finishes",update_success:"App has been updated! Please wait while your browser window gets reloaded automatically.",latest_message:"No update available! You are on the latest version.",current_version:"Current Version",download_zip_file:"Download ZIP file",unzipping_package:"Unzipping Package",copying_files:"Copying Files",deleting_files:"Deleting Unused files",running_migrations:"Running Migrations",finishing_update:"Finishing Update",update_failed:"Update Failed",update_failed_text:"Sorry! Your update failed on : {step} step",update_warning:"All of the application files and default template files will be overwritten when you update the application using this utility. Please take a backup of your templates & database before updating."},backup:{title:"Backup | Backups",description:"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database",new_backup:"Add New Backup",create_backup:"Create Backup",select_backup_type:"Select Backup Type",backup_confirm_delete:"You will not be able to recover this Backup",path:"path",new_disk:"New Disk",created_at:"created at",size:"size",dropbox:"dropbox",local:"local",healthy:"healthy",amount_of_backups:"amount of backups",newest_backups:"newest backups",used_storage:"used storage",select_disk:"Select Disk",action:"Action",deleted_message:"Backup deleted successfully",created_message:"Backup created successfully",invalid_disk_credentials:"Invalid credential of selected disk"},disk:{title:"File Disk | File Disks",description:"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.",created_at:"created at",dropbox:"dropbox",name:"Name",driver:"Driver",disk_type:"Type",disk_name:"Disk Name",new_disk:"Add New Disk",filesystem_driver:"Filesystem Driver",local_driver:"local Driver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Default Driver",is_default:"IS DEFAULT",set_default_disk:"Set Default Disk",set_default_disk_confirm:"This disk will be set as default and all the new PDFs will be saved on this disk",success_set_default_disk:"Disk set as default successfully",save_pdf_to_disk:"Save PDFs to Disk",disk_setting_description:" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.",select_disk:"Select Disk",disk_settings:"Disk Settings",confirm_delete:"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater",action:"Action",edit_file_disk:"Edit File Disk",success_create:"Disk added successfully",success_update:"Disk updated successfully",error:"Disk addition failed",deleted_message:"File Disk deleted successfully",disk_variables_save_successfully:"Disk Configured Successfully",disk_variables_save_error:"Disk configuration failed.",invalid_disk_credentials:"Invalid credential of selected disk"},taxations:{add_billing_address:"Enter Billing Address",add_shipping_address:"Enter Shipping Address",add_company_address:"Enter Company Address",modal_description:"The information below is required in order to fetch sales tax.",add_address:"Add Address for fetching sales tax.",address_placeholder:"Example: 123, My Street",city_placeholder:"Example: Los Angeles",state_placeholder:"Example: CA",zip_placeholder:"Example: 90024",invalid_address:"Please provide valid address details."}},ln={account_info:"Account Information",account_info_desc:"Below details will be used to create the main Administrator account. Also you can change the details anytime after logging in.",name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password",save_cont:"Save & Continue",company_info:"Company Information",company_info_desc:"This information will be displayed on invoices. Note that you can edit this later on settings page.",company_name:"Company Name",company_logo:"Company Logo",logo_preview:"Logo Preview",preferences:"Company Preferences",preferences_desc:"Specify the default preferences for this company.",currency_set_alert:"The company's currency cannot be changed later.",country:"Country",state:"State",city:"City",address:"Address",street:"Street1 | Street2",phone:"Phone",zip_code:"Zip Code",go_back:"Go Back",currency:"Currency",language:"Language",time_zone:"Time Zone",fiscal_year:"Financial Year",date_format:"Date Format",from_address:"From Address",username:"Username",next:"Next",continue:"Continue",skip:"Skip",database:{database:"Site URL & Database",connection:"Database Connection",host:"Database Host",port:"Database Port",password:"Database Password",app_url:"App URL",app_domain:"App Domain",username:"Database Username",db_name:"Database Name",db_path:"Database Path",desc:"Create a database on your server and set the credentials using the form below."},permissions:{permissions:"Permissions",permission_confirm_title:"Are you sure you want to continue?",permission_confirm_desc:"Folder permission check failed",permission_desc:"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},verify_domain:{title:"Domain Verification",desc:"Crater uses Session based authentication which requires domain verification for security purposes. Please enter the domain on which you will be accessing your web application.",app_domain:"App Domain",verify_now:"Verify Now",success:"Domain Verify Successfully.",failed:"Domain verification failed. Please enter valid domain name.",verify_and_continue:"Verify And Continue"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},req:{system_req:"System Requirements",php_req_version:"Php (version {version} required)",check_req:"Check Requirements",system_req_desc:"Crater has a few server requirements. Make sure that your server has the required php version and all the extensions mentioned below."},errors:{migrate_failed:"Migrate Failed",database_variables_save_error:"Cannot write configuration to .env file. Please check its file permissions",mail_variables_save_error:"Email configuration failed.",connection_failed:"Database connection failed",database_should_be_empty:"Database should be empty"},success:{mail_variables_save_successfully:"Email configured successfully",database_variables_save_successfully:"Database configured successfully."}},cn={invalid_phone:"Invalid Phone Number",invalid_url:"Invalid url (ex: http://www.craterapp.com)",invalid_domain_url:"Invalid url (ex: craterapp.com)",required:"Field is required",email_incorrect:"Incorrect Email.",email_already_taken:"The email has already been taken.",email_does_not_exist:"User with given email doesn't exist",item_unit_already_taken:"This item unit name has already been taken",payment_mode_already_taken:"This payment mode name has already been taken",send_reset_link:"Send Reset Link",not_yet:"Not yet? Send it again",password_min_length:"Password must contain {count} characters",name_min_length:"Name must have at least {count} letters.",prefix_min_length:"Prefix must have at least {count} letters.",enter_valid_tax_rate:"Enter valid tax rate",numbers_only:"Numbers Only.",characters_only:"Characters Only.",password_incorrect:"Passwords must be identical",password_length:"Password must be {count} character long.",qty_must_greater_than_zero:"Quantity must be greater than zero.",price_greater_than_zero:"Price must be greater than zero.",payment_greater_than_zero:"Payment must be greater than zero.",payment_greater_than_due_amount:"Entered Payment is more than due amount of this invoice.",quantity_maxlength:"Quantity should not be greater than 20 digits.",price_maxlength:"Price should not be greater than 20 digits.",price_minvalue:"Price should be greater than 0.",amount_maxlength:"Amount should not be greater than 20 digits.",amount_minvalue:"Amount should be greater than 0.",discount_maxlength:"Discount should not be greater than max discount",description_maxlength:"Description should not be greater than 255 characters.",subject_maxlength:"Subject should not be greater than 100 characters.",message_maxlength:"Message should not be greater than 255 characters.",maximum_options_error:"Maximum  of {max} options selected. First remove a selected option to select another.",notes_maxlength:"Notes should not be greater than 65,000 characters.",address_maxlength:"Address should not be greater than 255 characters.",ref_number_maxlength:"Ref Number should not be greater than 255 characters.",prefix_maxlength:"Prefix should not be greater than 5 characters.",something_went_wrong:"something went wrong",number_length_minvalue:"Number length should be greater than 0",at_least_one_ability:"Please select atleast one Permission.",valid_driver_key:"Please enter a valid {driver} key.",valid_exchange_rate:"Please enter a valid exchange rate.",company_name_not_same:"Company name must match with given name."},_n={starter_plan:"This feature is available on Starter plan and onwards!",invalid_provider_key:"Please Enter Valid Provider API Key.",estimate_number_used:"The estimate number has already been taken.",invoice_number_used:"The invoice number has already been taken.",payment_attached:"This invoice already has a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal.",payment_number_used:"The payment number has already been taken.",name_already_taken:"The name has already been taken.",receipt_does_not_exist:"Receipt does not exist.",customer_cannot_be_changed_after_payment_is_added:"Customer cannot be change after payment is added",invalid_credentials:"Invalid  Credentials.",not_allowed:"Not Allowed",login_invalid_credentials:"These credentials do not match our records.",enter_valid_cron_format:"Please enter a valid cron format",email_could_not_be_sent:"Email could not be sent to this email address.",invalid_address:"Please enter a valid address.",invalid_key:"Please enter valid key.",invalid_state:"Please enter a valid state.",invalid_city:"Please enter a valid city.",invalid_postal_code:"Please enter a valid zip.",invalid_format:"Please enter valid query string format.",api_error:"Server not responding.",feature_not_enabled:"Feature not enabled.",request_limit_met:"Api request limit exceeded.",address_incomplete:"Incomplete Address"},un="Estimate",mn="Estimate Number",pn="Estimate Date",gn="Expiry date",fn="Invoice",hn="Invoice Number",vn="Invoice Date",yn="Due date",bn="Notes",kn="Items",wn="Quantity",xn="Price",zn="Discount",Sn="Amount",jn="Subtotal",Pn="Total",Dn="Payment",Cn="PAYMENT RECEIPT",An="Payment Date",En="Payment Number",Nn="Payment Mode",Tn="Amount Received",In="EXPENSES REPORT",$n="TOTAL EXPENSE",Rn="PROFIT & LOSS REPORT",Fn="Sales Customer Report",Mn="Sales Item Report",Vn="Tax Summary Report",Bn="INCOME",On="NET PROFIT",Ln="Sales Report: By Customer",Un="TOTAL SALES",Kn="Sales Report: By Item",qn="TAX REPORT",Zn="TOTAL TAX",Wn="Tax Types",Hn="Expenses",Gn="Bill to,",Yn="Ship to,",Jn="Received from:",Xn="Tax";var Qn={navigation:Us,general:Ks,dashboard:qs,tax_types:Zs,global_search:Ws,company_switcher:Hs,dateRange:Gs,customers:Ys,items:Js,estimates:Xs,invoices:Qs,recurring_invoices:en,payments:tn,expenses:an,login:sn,modules:nn,users:on,reports:rn,settings:dn,wizard:ln,validation:cn,errors:_n,pdf_estimate_label:un,pdf_estimate_number:mn,pdf_estimate_date:pn,pdf_estimate_expire_date:gn,pdf_invoice_label:fn,pdf_invoice_number:hn,pdf_invoice_date:vn,pdf_invoice_due_date:yn,pdf_notes:bn,pdf_items_label:kn,pdf_quantity_label:wn,pdf_price_label:xn,pdf_discount_label:zn,pdf_amount_label:Sn,pdf_subtotal:jn,pdf_total:Pn,pdf_payment_label:Dn,pdf_payment_receipt_label:Cn,pdf_payment_date:An,pdf_payment_number:En,pdf_payment_mode:Nn,pdf_payment_amount_received_label:Tn,pdf_expense_report_label:In,pdf_total_expenses_label:$n,pdf_profit_loss_label:Rn,pdf_sales_customers_label:Fn,pdf_sales_items_label:Mn,pdf_tax_summery_label:Vn,pdf_income_label:Bn,pdf_net_profit_label:On,pdf_customer_sales_report:Ln,pdf_total_sales_label:Un,pdf_item_sales_label:Kn,pdf_tax_report_label:qn,pdf_total_tax_label:Zn,pdf_tax_types_label:Wn,pdf_expenses_label:Hn,pdf_bill_to:Gn,pdf_ship_to:Yn,pdf_received_from:Jn,pdf_tax_label:Xn};const ei={dashboard:"Tableau de bord",customers:"Clients",items:"Articles",invoices:"Factures",expenses:"D\xE9penses",estimates:"Devis",payments:"Paiements",reports:"Rapports",settings:"Param\xE8tres",logout:"Se d\xE9connecter",users:"Utilisateurs"},ti={add_company:"Ajouter une entreprise",view_pdf:"Voir PDF",copy_pdf_url:"Copier l'URL du PDF",download_pdf:"T\xE9l\xE9charger le PDF",save:"Sauvegarder",create:"Cr\xE9er",cancel:"Annuler",update:"Mise \xE0 jour",deselect:"Retirer",download:"T\xE9l\xE9charger",from_date:"A partir de la date",to_date:"\xC0 ce jour",from:"De",to:"\xC0",sort_by:"Trier par",ascending:"Ascendant",descending:"Descendant",subject:"mati\xE8re",body:"Corps du message",message:"Message",send:"Envoyer",go_back:"Retourner",back_to_login:"Retour \xE0 l'\xE9cran de connexion ?",home:"Accueil",filter:"Filtre",delete:"Effacer",edit:"Modifier",view:"Voir",add_new_item:"Ajoute un nouvel objet",clear_all:"Tout effacer",showing:"Montant",of:"de",actions:"Actions",subtotal:"SOUS-TOTAL",discount:"REMISE",fixed:"Fix\xE9e",percentage:"Pourcentage",tax:"IMP\xD4T",total_amount:"MONTANT TOTAL",bill_to:"facturer",ship_to:"Envoyez \xE0",due:"D\xFB",draft:"Brouillon",sent:"Envoy\xE9e",all:"Tout",select_all:"Tout s\xE9lectionner",choose_file:"Cliquez ici pour choisir un fichier",choose_template:"Choisissez un mod\xE8le",choose:"Choisir",remove:"Retirer",powered_by:"Propuls\xE9 par",bytefury:"Bytefury",select_a_status:"S\xE9lectionnez un statut",select_a_tax:"S\xE9lectionnez une taxe",search:"Rechercher",are_you_sure:"\xCAtes-vous s\xFBr ?",list_is_empty:"La liste est vide.",no_tax_found:"Aucune taxe trouv\xE9e !",four_zero_four:"404",you_got_lost:"Oups! Vous vous \xEAtes perdus!",go_home:"Retour \xE0 l'accueil",test_mail_conf:"Tester la configuration",send_mail_successfully:"Mail envoy\xE9 avec succ\xE8s",setting_updated:"Param\xE8tres mis \xE0 jour avec succ\xE8s",select_state:"S\xE9lectionnez l'\xE9tat",select_country:"Choisissez le pays",select_city:"S\xE9lectionnez une ville",street_1:"Rue 1",street_2:"Rue # 2",action_failed:"Action : \xE9chou\xE9",retry:"R\xE9essayez",choose_note:"Choisissez une note",no_note_found:"Aucune note trouv\xE9e",insert_note:"Ins\xE9rer une note"},ai={select_year:"S\xE9lectionnez l'ann\xE9e",cards:{due_amount:"Montant d\xFB",customers:"Clients",invoices:"Factures",estimates:"Devis"},chart_info:{total_sales:"Ventes",total_receipts:"Re\xE7us",total_expense:"D\xE9penses",net_income:"Revenu net",year:"S\xE9lectionnez l'ann\xE9e"},monthly_chart:{title:"Recettes et d\xE9penses"},recent_invoices_card:{title:"Factures d\xFBes",due_on:"Due le",customer:"Client",amount_due:"Montant d\xFB",actions:"Actions",view_all:"Voir tout"},recent_estimate_card:{title:"Devis r\xE9cents",date:"Date",customer:"Client",amount_due:"Montant d\xFB",actions:"Actions",view_all:"Voir tout"}},si={name:"Nom",description:"Description",percent:"Pourcent",compound_tax:"Taxe compos\xE9e"},ni={search:"Rechercher...",customers:"Les clients",users:"Utilisateurs",no_results_found:"Aucun r\xE9sultat"},ii={title:"Clients",add_customer:"Ajouter un client",contacts_list:"Liste de clients",name:"Nom",mail:"Email | Emails",statement:"Statement",display_name:"Statut et Nom de la soci\xE9t\xE9",primary_contact_name:"Nom du contact principal",contact_name:"Nom du contact",amount_due:"Montant d\xFB",email:"Email",address:"Adresse",phone:"T\xE9l\xE9phone",website:"Site Internet",overview:"Aper\xE7u",enable_portal:"Activer le portail",country:"Pays",state:"\xC9tat",city:"Ville",zip_code:"Code postal",added_on:"Ajout\xE9 le",action:"action",password:"Mot de passe",street_number:"Num\xE9ro de rue",primary_currency:"Devise principale",description:"Description",add_new_customer:"Ajouter un nouveau client",save_customer:"Enregistrer le client",update_customer:"Mettre \xE0 jour le client",customer:"Client | Clients",new_customer:"Nouveau client",edit_customer:"Modifier le client",basic_info:"Informations de base",billing_address:"Adresse de facturation",shipping_address:"Adresse de livraison",copy_billing_address:"Copier depuis l'adresse de facturation",no_customers:"Vous n\u2019avez pas encore de clients !",no_customers_found:"Aucun client !",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Cette section contiendra la liste des clients.",primary_display_name:"Nom d'affichage principal",select_currency:"S\xE9lectionnez la devise",select_a_customer:"S\xE9lectionnez un client",type_or_click:"Tapez ou cliquez pour s\xE9lectionner",new_transaction:"Nouvelle transaction",no_matching_customers:"Il n'y a aucun client correspondant !",phone_number:"Num\xE9ro de t\xE9l\xE9phone",create_date:"Date de cr\xE9ation",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce client et les devis, factures et paiements associ\xE9s. | Vous ne serez pas en mesure de r\xE9cup\xE9rer ces clients et les devis, factures et paiements associ\xE9s.",created_message:"Client cr\xE9\xE9 avec succ\xE8s",updated_message:"Client mis \xE0 jour avec succ\xE8s",deleted_message:"Client supprim\xE9 avec succ\xE8s | Les clients supprim\xE9s avec succ\xE8s"},oi={title:"Articles",items_list:"Liste d'articles",name:"Nom",unit:"Unit\xE9",description:"Description",added_on:"Ajout\xE9 le",price:"Prix",date_of_creation:"Date de cr\xE9ation",not_selected:"No item selected",action:"action",add_item:"Ajouter un article",save_item:"Enregistrer l'article",update_item:"Mettre \xE0 jour l'article",item:"Article | Articles",add_new_item:"Ajoute un nouvel objet",new_item:"Nouvel article",edit_item:"Modifier larticle",no_items:"Aucun article !",list_of_items:"Cette section contiendra la liste des \xE9l\xE9ments.",select_a_unit:"S\xE9lectionnez l'unit\xE9",taxes:"Taxes",item_attached_message:"Impossible de supprimer un article d\xE9j\xE0 utilis\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cet article | Vous ne pourrez pas r\xE9cup\xE9rer ces objets",created_message:"Article cr\xE9\xE9 avec succ\xE8s",updated_message:"Article mis \xE0 jour avec succ\xE8s",deleted_message:"Article supprim\xE9 avec succ\xE8s | Articles supprim\xE9s avec succ\xE8s"},ri={title:"Devis",estimate:"Devis | Devis",estimates_list:"Liste des devis",days:"jours jours",months:"mois mois",years:"ann\xE9es Ann\xE9e",all:"Tout",paid:"Pay\xE9",unpaid:"Non pay\xE9",customer:"Client",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT D\xDB",partially_paid:"Partiellement pay\xE9",total:"Total",discount:"Remise",sub_total:"Sous-total",estimate_number:"N\xB0",ref_number:"Num\xE9ro de r\xE9f\xE9rence",contact:"Contact",add_item:"Ajouter un article",date:"Date",due_date:"Date d'\xE9ch\xE9ance",expiry_date:"Date d'expiration",status:"Statut",add_tax:"Ajouter une taxe",amount:"Montant",action:"action",notes:"Remarques",tax:"Taxe",estimate_template:"Mod\xE8le de devis",convert_to_invoice:"Convertir en facture",mark_as_sent:"Marquer comme envoy\xE9",send_estimate:"Envoyer le devis",resend_estimate:"Renvoyer le devis",record_payment:"Enregistrer un paiement",add_estimate:"Ajouter un devis",save_estimate:"Sauvegarder le devis",confirm_conversion:"Vous souhaitez convertir ce devis en facture?",conversion_message:"Conversion r\xE9ussie",confirm_send_estimate:"Ce devis sera envoy\xE9e par courrier \xE9lectronique au client.",confirm_mark_as_sent:"Ce devis sera marqu\xE9 comme envoy\xE9",confirm_mark_as_accepted:"Ce devis sera marqu\xE9 comme accept\xE9",confirm_mark_as_rejected:"Ce devis sera marqu\xE9 comme rejet\xE9",no_matching_estimates:"Aucune estimation correspondante !",mark_as_sent_successfully:"Devis marqu\xE9e comme envoy\xE9e avec succ\xE8s",send_estimate_successfully:"Devis envoy\xE9 avec succ\xE8s",errors:{required:"Champ requis"},accepted:"Accept\xE9",rejected:"Rejected",sent:"Envoy\xE9",draft:"Brouillon",declined:"Refus\xE9",new_estimate:"Nouveau devis",add_new_estimate:"Ajouter un devis",update_Estimate:"Mise \xE0 jour du devis",edit_estimate:"Modifier le devis",items:"articles",Estimate:"Devis | Devis",add_new_tax:"Ajouter une taxe",no_estimates:"Aucune estimation pour le moment !",list_of_estimates:"Cette section contiendra la liste des devis.",mark_as_rejected:"Marquer comme rejet\xE9",mark_as_accepted:"Marquer comme accept\xE9",marked_as_accepted_message:"Devis marqu\xE9 comme accept\xE9",marked_as_rejected_message:"Devis marqu\xE9 comme rejet\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce devis | Vous ne pourrez pas r\xE9cup\xE9rer ces devis",created_message:"Devis cr\xE9\xE9 avec succ\xE8s",updated_message:"Devis mise \xE0 jour avec succ\xE8s",deleted_message:"Devis supprim\xE9 | Devis supprim\xE9s",something_went_wrong:"quelque chose a mal tourn\xE9",item:{title:"Titre de l'article",description:"Description",quantity:"Quantit\xE9",price:"Prix",discount:"Remise",total:"Total",total_discount:"Remise totale",sub_total:"Sous-total",tax:"Taxe",amount:"Montant",select_an_item:"Tapez ou cliquez pour s\xE9lectionner un article",type_item_description:"Taper la description de l'article (facultatif)"}},di={title:"Factures",invoices_list:"Liste des factures",days:"jours jours",months:"mois mois",years:"years ann\xE9es",all:"Toutes",paid:"Pay\xE9",unpaid:"Non pay\xE9",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENT",paid_status:"STATUT DU PAIEMENT",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT D\xDB",partially_paid:"Partiellement pay\xE9",total:"Total",discount:"Remise",sub_total:"Sous-total",invoice:"Facture | Factures",invoice_number:"Num\xE9ro de facture",ref_number:"Num\xE9ro de r\xE9f\xE9rence",contact:"Contact",add_item:"Ajouter un article",date:"Date",due_date:"Date d'\xE9ch\xE9ance",status:"Statut",add_tax:"Ajouter une taxe",amount:"Montant",action:"action",notes:"Remarques",view:"Voir",send_invoice:"Envoyer une facture",resend_invoice:"Renvoyer la facture",invoice_template:"Mod\xE8le de facture",template:"Mod\xE8le",mark_as_sent:"Marquer comme envoy\xE9e",confirm_send_invoice:"Cette facture sera envoy\xE9e par email au client",invoice_mark_as_sent:"Cette facture sera marqu\xE9e comme envoy\xE9",confirm_send:"Cette facture sera envoy\xE9e par courrier \xE9lectronique au client.",invoice_date:"Date de facturation",record_payment:"Enregistrer un paiement",add_new_invoice:"Ajouter une facture",update_expense:"Enregistrer la d\xE9pense",edit_invoice:"Modifier la facture",new_invoice:"Nouvelle facture",save_invoice:"Enregistrer la facture",update_invoice:"Mettre \xE0 jour la facture",add_new_tax:"Ajouter une taxe",no_invoices:"Aucune facture pour le moment !",list_of_invoices:"Cette section contiendra la liste des factures.",select_invoice:"S\xE9lectionnez facture",no_matching_invoices:"Aucune facture correspondante !",mark_as_sent_successfully:"Facture marqu\xE9e comme envoy\xE9e avec succ\xE8s",invoice_sent_successfully:"Facture envoy\xE9e avec succ\xE8s",cloned_successfully:"Facture clon\xE9e avec succ\xE8s",clone_invoice:"Dupliquer la facture",confirm_clone:"Cette facture sera dupliqu\xE9e dans une nouvelle facture",item:{title:"Titre de l'article",description:"Description",quantity:"Quantit\xE9",price:"Prix",discount:"Remise",total:"Total",total_discount:"Remise totale",sub_total:"Sous-total",tax:"Taxe",amount:"Montant",select_an_item:"Tapez ou cliquez pour s\xE9lectionner un \xE9l\xE9ment",type_item_description:"Tapez la description de l'article (facultatif)"},confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette facture | Vous ne pourrez pas r\xE9cup\xE9rer ces factures",created_message:"Facture cr\xE9\xE9e avec succ\xE8s",updated_message:"Facture mise \xE0 jour avec succ\xE8s",deleted_message:"La facture a \xE9t\xE9 supprim\xE9e | Les factures ont \xE9t\xE9 supprim\xE9es",marked_as_sent_message:"Facture supprim\xE9e avec succ\xE8s | Factures supprim\xE9es avec succ\xE8s",something_went_wrong:"quelque chose a mal tourn\xE9",invalid_due_amount_message:"Le paiement entr\xE9 est sup\xE9rieur au montant total d\xFB pour cette facture. Veuillez v\xE9rifier et r\xE9essayer"},li={title:"Paiements",payments_list:"Liste de paiements",record_payment:"Enregistrer un paiement",customer:"Client",date:"Date",amount:"Montant",action:"action",payment_number:"N\xB0",payment_mode:"Mode de paiement",invoice:"Facture",note:"Remarque",add_payment:"Ajouter un paiement",new_payment:"Nouveau paiement",edit_payment:"Modifier le paiement",view_payment:"Voir le paiement",add_new_payment:"Ajouter un paiement",send_payment_receipt:"Envoyer le re\xE7u",send_payment:"Envoyer le paiement",save_payment:"Enregistrer le paiement",update_payment:"Mettre \xE0 jour le paiement",payment:"Paiement | Paiements",no_payments:"Aucun paiement pour le moment !",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Il n'y a aucun paiement correspondant !",list_of_payments:"Cette section contiendra la liste des paiements",select_payment_mode:"S\xE9lectionnez le moyen de paiement",confirm_mark_as_sent:"Ce devis sera marqu\xE9 comme envoy\xE9",confirm_send_payment:"Ce paiement sera envoy\xE9 par email au client",send_payment_successfully:"Paiement envoy\xE9 avec succ\xE8s",something_went_wrong:"quelque chose a mal tourn\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce paiement | Vous ne pourrez pas r\xE9cup\xE9rer ces paiements",created_message:"Paiement cr\xE9\xE9 avec succ\xE8s",updated_message:"Paiement mis \xE0 jour avec succ\xE8s",deleted_message:"Paiement supprim\xE9 avec succ\xE8s | Paiements supprim\xE9s avec succ\xE8s",invalid_amount_message:"Le montant du paiement est invalide"},ci={title:"D\xE9penses",expenses_list:"Liste des d\xE9penses",select_a_customer:"S\xE9lectionnez un client",expense_title:"Titre",customer:"Client",contact:"Contact",category:"Cat\xE9gorie",from_date:"A partir de la date",to_date:"\xC0 ce jour",expense_date:"Date",description:"Description",receipt:"Re\xE7u",amount:"Montant",action:"action",not_selected:"Not selected",note:"Remarque",category_id:"Identifiant de cat\xE9gorie",date:"Date",add_expense:"Ajouter une d\xE9pense",add_new_expense:"Ajouter une nouvelle d\xE9pense",save_expense:"Enregistrer la d\xE9pense",update_expense:"Mettre \xE0 jour la d\xE9pense",download_receipt:"T\xE9l\xE9charger le re\xE7u",edit_expense:"Modifier la d\xE9pense",new_expense:"Nouvelle d\xE9pense",expense:"D\xE9pense | D\xE9penses",no_expenses:"Pas de d\xE9penses pour le moment !",list_of_expenses:"Cette section contiendra la liste des d\xE9penses.",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette d\xE9pense | Vous ne pourrez pas r\xE9cup\xE9rer ces d\xE9penses",created_message:"D\xE9pense cr\xE9\xE9e avec succ\xE8s",updated_message:"D\xE9pense mise \xE0 jour avec succ\xE8s",deleted_message:"D\xE9pense supprim\xE9e avec succ\xE8s | D\xE9penses supprim\xE9es avec succ\xE8s",categories:{categories_list:"Liste des cat\xE9gories",title:"Titre",name:"Nom",description:"Description",amount:"Montant",actions:"Actions",add_category:"Ajouter une cat\xE9gorie",new_category:"Nouvelle cat\xE9gorie",category:"Cat\xE9gorie | Cat\xE9gories",select_a_category:"Choisissez une cat\xE9gorie"}},_i={email:"Email",password:"Mot de passe",forgot_password:"Mot de passe oubli\xE9 ?",or_signIn_with:"ou connectez-vous avec",login:"S'identifier",register:"S'inscrire",reset_password:"R\xE9initialiser le mot de passe",password_reset_successfully:"R\xE9initialisation du mot de passe r\xE9ussie",enter_email:"Entrer l'email",enter_password:"Entrer le mot de passe",retype_password:"Retaper le mot de passe"},ui={title:"Utilisateurs",users_list:"Liste des utilisateurs",name:"Nom",description:"Description",added_on:"Ajout\xE9 le",date_of_creation:"Date de cr\xE9ation",action:"action",add_user:"Ajouter un utilisateur",save_user:"Enregistrer l'utilisateur",update_user:"Mettre \xE0 jour l'utilisateur",user:"Utilisateur | Utilisateurs",add_new_user:"Ajouter un nouvel utilisateur",new_user:"Nouvel utilisateur",edit_user:"Modifier l'utilisateur",no_users:"Pas encore d'utilisateurs !",list_of_users:"Cette section contiendra la liste des utilisateurs.",email:"Email",phone:"T\xE9l\xE9phone",password:"Mot de passe",user_attached_message:"Impossible de supprimer un \xE9l\xE9ment d\xE9j\xE0 utilis\xE9",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cet utilisateur | Vous ne pourrez pas r\xE9cup\xE9rer ces utilisateurs",created_message:"L'utilisateur a \xE9t\xE9 cr\xE9\xE9 avec succ\xE8s",updated_message:"L'utilisateur a bien \xE9t\xE9 mis \xE0 jour",deleted_message:"Utilisateur supprim\xE9 avec succ\xE8s | Utilisateur a bien \xE9t\xE9 supprim\xE9"},mi={title:"Rapport",from_date:"\xC0 partir du",to_date:"Jusqu'au",status:"Statut",paid:"Pay\xE9",unpaid:"Non pay\xE9",download_pdf:"T\xE9l\xE9charger le PDF",view_pdf:"Voir le PDF",update_report:"Mettre \xE0 jour le rapport",report:"Rapport | Rapports",profit_loss:{profit_loss:"B\xE9n\xE9fices & Pertes",to_date:"Au",from_date:"Du",date_range:"S\xE9lectionner une plage de dates"},sales:{sales:"Ventes",date_range:"S\xE9lectionner une plage de dates",to_date:"\xC0 ce jour",from_date:"A partir de la date",report_type:"Type de rapport"},taxes:{taxes:"Les taxes",to_date:"\xC0 ce jour",from_date:"\xC0 partir du",date_range:"S\xE9lectionner une plage de dates"},errors:{required:"Champ requis"},invoices:{invoice:"Facture",invoice_date:"Date de facturation",due_date:"Date d\xE9ch\xE9ance",amount:"Montant ",contact_name:"Nom du contact",status:"Statut"},estimates:{estimate:"Devis",estimate_date:"Date du devis",due_date:"Date d'\xE9ch\xE9ance",estimate_number:"N\xB0",ref_number:"Num\xE9ro de r\xE9f\xE9rence",amount:"Montant",contact_name:"Nom du contact",status:"Statut"},expenses:{expenses:"D\xE9penses",category:"Cat\xE9gorie",date:"Date",amount:"Montant",to_date:"Jusqu'au",from_date:"\xC0 partir du",date_range:"S\xE9lectionner une plage de dates"}},pi={menu_title:{account_settings:"Param\xE8tres du compte",company_information:"Informations sur la soci\xE9t\xE9",customization:"Personnalisation",preferences:"Pr\xE9f\xE9rences",notifications:"Notifications",tax_types:"Types de taxe",expense_category:"Cat\xE9gories de d\xE9penses",update_app:"Mise \xE0 jour de l'application",backup:"Sauvegarde",file_disk:"Espace de stockage",custom_fields:"Champs personnalis\xE9s",payment_modes:"Moyens de paiement",notes:"Remarques"},title:"Param\xE8tres",setting:"Param\xE8tres | Param\xE8tres",general:"Param\xE8tres g\xE9n\xE9raux",language:"Langue",primary_currency:"Devise principale",timezone:"Fuseau horaire",date_format:"Format de date",currencies:{title:"Devises",currency:"Devise | Devises",currencies_list:"Liste des devises",select_currency:"S\xE9lectionnez la devise",name:"Nom",code:"Code\xA0",symbol:"Symbole",precision:"Pr\xE9cision",thousand_separator:"S\xE9parateur de milliers",decimal_separator:"S\xE9parateur d\xE9cimal",position:"Position",position_of_symbol:"Position du symbole",right:"Droite",left:"Gauche",action:"action",add_currency:"Ajouter une devise"},mail:{host:"Adresse du serveur",port:"Port",driver:"Pilote de courrier",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domaine",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mot de passe",username:"Nom d'utilisateur",mail_config:"Configuration des emails",from_name:"Nom de l'exp\xE9diteur",from_mail:"Email de l'exp\xE9diteur",encryption:"Chiffrement",mail_config_desc:"Vous pouvez modifier ci-dessous les param\xE8tres d'envoi des emails. Vous pourrez modifier \xE0 tout moment."},pdf:{title:"Param\xE8tre PDF",footer_text:"Pied de page",pdf_layout:"Mise en page PDF"},company_info:{company_info:"Information de l'entreprise",company_name:"Nom de l'entreprise",company_logo:"Logo de l'entreprise",section_description:"Informations sur votre entreprise qui figureront sur les factures, devis et autres documents cr\xE9\xE9s par Crater.",phone:"T\xE9l\xE9phone",country:"Pays",state:"\xC9tat",city:"Ville",address:"Adresse",zip:"Code postal",save:"Sauvegarder",updated_message:"Informations sur la soci\xE9t\xE9 mises \xE0 jour avec succ\xE8s"},custom_fields:{title:"Champs personnalis\xE9s",section_description:"Personnalisez vos factures, devis et re\xE7us de paiement avec vos propres champs. Assurez-vous d'utiliser les champs ajout\xE9s ci-dessous sur les formats d'adresse sur la page des param\xE8tres de personnalisation.",add_custom_field:"Ajouter un champ personnalis\xE9",edit_custom_field:"Modifier un champ personnalis\xE9",field_name:"Nom du champs",label:"\xC9tiquette",type:"Type\xA0",name:"Nom",required:"Obligatoire",placeholder:"Espace r\xE9serv\xE9",help_text:"Texte d'aide",default_value:"Valeur par d\xE9faut",prefix:"Pr\xE9fixe",starting_number:"Num\xE9ro de d\xE9part",model:"Mod\xE8le",help_text_description:"Saisissez du texte pour aider les utilisateurs \xE0 comprendre l'objectif de ce champ personnalis\xE9.",suffix:"Suffixe",yes:"Oui",no:"Non",order:"Ordre",custom_field_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce champ personnalis\xE9",already_in_use:"Le champ personnalis\xE9 est d\xE9j\xE0 utilis\xE9",deleted_message:"Champ personnalis\xE9 supprim\xE9 avec succ\xE8s",options:"les options",add_option:"Ajouter des options",add_another_option:"Ajouter une autre option",sort_in_alphabetical_order:"Trier par ordre alphab\xE9tique",add_options_in_bulk:"Ajouter des options en masse",use_predefined_options:"Utiliser des options pr\xE9d\xE9finies",select_custom_date:"S\xE9lectionnez une date personnalis\xE9e",select_relative_date:"S\xE9lectionnez la date relative",ticked_by_default:"Coch\xE9 par d\xE9faut",updated_message:"Champ personnalis\xE9 mis \xE0 jour avec succ\xE8s",added_message:"Champ personnalis\xE9 ajout\xE9 avec succ\xE8s"},customization:{customization:"Personnalisation",save:"Sauvegarder",addresses:{title:"Adresses",section_description:"Vous pouvez d\xE9finir le format de l'adresse de facturation et de livraison du client (affich\xE9 en PDF uniquement). ",customer_billing_address:"Adresse de paiement",customer_shipping_address:"Adresse de livraison",company_address:"Adresse de l'entreprise",insert_fields:"Ajouter des champs",contact:"Contact",address:"Adresse",display_name:"Nom",primary_contact_name:"Nom du contact principal",email:"Email",website:"Site Internet",name:"Nom",country:"Pays",state:"Etat",city:"Ville",company_name:"Nom de l'entreprise",address_street_1:"Rue",address_street_2:"Compl\xE9ment",phone:"T\xE9l\xE9phone",zip_code:"Code postal",address_setting_updated:"Adresse mise \xE0 jour avec succ\xE8s"},updated_message:"Informations de l'entreprise mises \xE0 jour",invoices:{title:"Factures",notes:"Remarques",invoice_prefix:"Pr\xE9fixe",default_invoice_email_body:"Corps de l'e-mail de la facture par d\xE9faut",invoice_settings:"Param\xE8tres",autogenerate_invoice_number:"G\xE9n\xE9rer automatiquement le num\xE9ro de facture",autogenerate_invoice_number_desc:"D\xE9sactivez cette option si vous ne souhaitez pas g\xE9n\xE9rer automatiquement les num\xE9ros de facture \xE0 chaque fois que vous en cr\xE9ez une nouvelle.",enter_invoice_prefix:"Ajouter le pr\xE9fixe de facture",terms_and_conditions:"Termes et conditions",company_address_format:"Format d'adresse de l'entreprise",shipping_address_format:"Format d'adresse d'exp\xE9dition",billing_address_format:"Format d'adresse de facturation",invoice_settings_updated:"Param\xE8tres de facturation mis \xE0 jour"},estimates:{title:"Devis",estimate_prefix:"Pr\xE9fixe des devis",default_estimate_email_body:"Corps de l'e-mail estim\xE9 par d\xE9faut",estimate_settings:"Param\xE8tre",autogenerate_estimate_number:"G\xE9n\xE9rer automatiquement le num\xE9ro de devis",estimate_setting_description:"D\xE9sactivez cette option si vous ne souhaitez pas g\xE9n\xE9rer automatiquement les num\xE9ros de devis \xE0 chaque fois que vous en cr\xE9ez un nouveau.",enter_estimate_prefix:"Entrez le pr\xE9fixe d'estimation",estimate_setting_updated:"Param\xE8tres de devis mis \xE0 jour",company_address_format:"Format d'adresse de l'entreprise",billing_address_format:"Format d'adresse de facturation",shipping_address_format:"Format d'adresse d'exp\xE9dition"},payments:{title:"Paiements",description:"Modes de transaction pour les paiements",payment_prefix:"Pr\xE9fixe",default_payment_email_body:"Corps de l'e-mail de paiement par d\xE9faut",payment_settings:"Param\xE8tres",autogenerate_payment_number:"G\xE9n\xE9rer automatiquement le num\xE9ro de paiement",payment_setting_description:"D\xE9sactivez cette option si vous ne souhaitez pas g\xE9n\xE9rer automatiquement les num\xE9ros de paiement \xE0 chaque fois que vous en cr\xE9ez un nouveau.",enter_payment_prefix:"Entrez le pr\xE9fixe de paiement",payment_setting_updated:"Les param\xE8tres de paiement ont bien \xE9t\xE9 mis \xE0 jour",payment_modes:"Moyens de paiement",add_payment_mode:"Ajouter un mode de paiement",edit_payment_mode:"Modifier le moyen de paiement",mode_name:"Nom",payment_mode_added:"Moyen de paiement ajout\xE9",payment_mode_updated:"Moyen de paiement mis \xE0 jour",payment_mode_confirm_delete:"\xCAtes-vous sur de supprimer ce moyen de paiement",already_in_use:"Ce moyen de paiement existe d\xE9j\xE0",deleted_message:"Moyen de paiement supprim\xE9 avec succ\xE8s",company_address_format:"Format d'adresse de l'entreprise",from_customer_address_format:"\xC0 partir du format d'adresse client"},items:{title:"Articles",units:"Unit\xE9s",add_item_unit:"Ajouter une unit\xE9",edit_item_unit:"Modifier l'unit\xE9 d'\xE9l\xE9ment",unit_name:"Nom",item_unit_added:"Unit\xE9 ajout\xE9e",item_unit_updated:"Unit\xE9 mis \xE0 jour",item_unit_confirm_delete:"\xCAtes-vous sur de supprimer cette unit\xE9 ?",already_in_use:"Cette unit\xE9 existe d\xE9j\xE0",deleted_message:"Unit\xE9 supprim\xE9e avec succ\xE8s"},notes:{title:"Remarques",description:"Gagnez du temps en cr\xE9ant des notes et en les r\xE9utilisant sur vos factures, devis et paiements.",notes:"Remarques",type:"Type\xA0",add_note:"Ajouter une note",add_new_note:"Ajouter une nouvelle note",name:"Nom",edit_note:"Modifier la note",note_added:"Note ajout\xE9e",note_updated:"Note mise \xE0 jour",note_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette note",already_in_use:"La note est d\xE9j\xE0 utilis\xE9e",deleted_message:"Note supprim\xE9e avec succ\xE8s"}},account_settings:{profile_picture:"Image de profil",name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",account_settings:"Param\xE8tres du compte",save:"Sauvegarder",section_description:"Vous pouvez mettre \xE0 jour votre nom, votre email et votre mot de passe en utilisant le formulaire ci-dessous.",updated_message:"Param\xE8tres du compte mis \xE0 jour avec succ\xE8s"},user_profile:{name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe"},notification:{title:"Notification",email:"Envoyer des notifications \xE0",description:"Quelles notifications par courrier \xE9lectronique souhaitez-vous recevoir lorsque quelque chose change?",invoice_viewed:"Facture consult\xE9e",invoice_viewed_desc:"Lorsque le client visualise la facture envoy\xE9e via le tableau de bord de Neptune.",estimate_viewed:"Devis consult\xE9",estimate_viewed_desc:"Lorsque le client visualise le devis envoy\xE9 via le tableau de bord de Neptune.",save:"Sauvegarder",email_save_message:"Email enregistr\xE9 avec succ\xE8s",please_enter_email:"Veuillez entrer un email"},tax_types:{title:"Types de taxe",add_tax:"Ajouter une taxe",edit_tax:"Modifier la taxe",description:"Vous pouvez ajouter ou supprimer des taxes \xE0 votre guise. Crater prend en charge les taxes sur les articles individuels ainsi que sur la facture.",add_new_tax:"Ajouter une nouvelle taxe",tax_settings:"Param\xE8tres de taxe",tax_per_item:"Taxe par article",tax_name:"Nom de la taxe",compound_tax:"Taxe compos\xE9e",percent:"Pourcentage",action:"action",tax_setting_description:"Activez cette option si vous souhaitez ajouter des taxes \xE0 des postes de facture individuels. Par d\xE9faut, les taxes sont ajout\xE9es directement \xE0 la facture.",created_message:"Type de taxe cr\xE9\xE9 avec succ\xE8s",updated_message:"Type de taxe mis \xE0 jour avec succ\xE8s",deleted_message:"Type de taxe supprim\xE9 avec succ\xE8s",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce type de taxe",already_in_use:"La taxe est d\xE9j\xE0 utilis\xE9e"},expense_category:{title:"Cat\xE9gories de d\xE9penses",action:"action",description:"Des cat\xE9gories sont requises pour ajouter des entr\xE9es de d\xE9penses. Vous pouvez ajouter ou supprimer ces cat\xE9gories selon vos pr\xE9f\xE9rences.",add_new_category:"Ajouter une nouvelle cat\xE9gorie",add_category:"Ajouter une cat\xE9gorie",edit_category:"Modifier la cat\xE9gorie",category_name:"Nom de cat\xE9gorie",category_description:"Description",created_message:"Cat\xE9gorie de d\xE9penses cr\xE9\xE9e avec succ\xE8s",deleted_message:"La cat\xE9gorie de d\xE9penses a \xE9t\xE9 supprim\xE9e avec succ\xE8s",updated_message:"Cat\xE9gorie de d\xE9penses mise \xE0 jour avec succ\xE8s",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette cat\xE9gorie de d\xE9penses",already_in_use:"La cat\xE9gorie est d\xE9j\xE0 utilis\xE9e"},preferences:{currency:"Devise",default_language:"Langue par d\xE9faut",time_zone:"Fuseau horaire",fiscal_year:"Exercice fiscal",date_format:"Format de date",discount_setting:"R\xE9glage de remise",discount_per_item:"Remise par article",discount_setting_description:"Activez cette option si vous souhaitez ajouter une remise \xE0 des postes de facture individuels. Par d\xE9faut, les remises sont ajout\xE9es directement \xE0 la facture.",save:"Sauvegarder",preference:"Pr\xE9f\xE9rence | Pr\xE9f\xE9rences",general_settings:"Pr\xE9f\xE9rences par d\xE9faut pour le syst\xE8me.",updated_message:"Pr\xE9f\xE9rences mises \xE0 jour avec succ\xE8s",select_language:"Choisir la langue",select_time_zone:"S\xE9lectionnez le fuseau horaire",select_date_format:"S\xE9lectionnez le format de date",select_financial_year:"s\xE9lectionner lexercice"},update_app:{title:"Mise \xE0 jour de l'application",description:"Vous pouvez facilement mettre \xE0 jour Crater en cliquant sur le bouton ci-dessous",check_update:"V\xE9rifier les mises \xE0 jour",avail_update:"Nouvelle mise \xE0 jour disponible",next_version:"Version suivante",requirements:"Sp\xE9cifications requises",update:"Mettre \xE0 jour maintenant",update_progress:"Mise \xE0 jour en cours...",progress_text:"Cela ne prendra que quelques minutes. Veuillez ne pas actualiser ou fermer la fen\xEAtre avant la fin de la mise \xE0 jour",update_success:"App a \xE9t\xE9 mis \xE0 jour ! Veuillez patienter pendant le rechargement automatique de la fen\xEAtre de votre navigateur.",latest_message:"Pas de mise a jour disponible ! Vous \xEAtes sur la derni\xE8re version.",current_version:"Version actuelle",download_zip_file:"T\xE9l\xE9charger le fichier ZIP",unzipping_package:"D\xE9zipper le package",copying_files:"Copie de fichiers en cours",running_migrations:"Migrations en cours",finishing_update:"Finalisation de la mise \xE0 jour",update_failed:"\xC9chec de la mise \xE0 jour",update_failed_text:"D\xE9sol\xE9 ! Votre mise \xE0 jour a \xE9chou\xE9 \xE0: {step} \xE9tape"},backup:{title:"Sauvegarde | Sauvegardes",description:"La sauvegarde est un fichier ZIP qui contient tous les fichiers des r\xE9pertoires que vous sp\xE9cifiez, ainsi qu'un export de la base de donn\xE9es",new_backup:"Ajouter une nouvelle sauvegarde",create_backup:"Cr\xE9er une sauvegarde",select_backup_type:"S\xE9lectionnez le type de sauvegarde",backup_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette sauvegarde",path:"chemin",new_disk:"Nouvel espace de stockage",created_at:"cr\xE9\xE9 \xE0",size:"taille",dropbox:"dropbox",local:"local",healthy:"en bonne sant\xE9",amount_of_backups:"nombre de sauvegardes",newest_backups:"derni\xE8res sauvegardes",used_storage:"Stockage utilis\xE9",select_disk:"S\xE9lectionnez l'espace de stockage",action:"action",deleted_message:"Sauvegarde supprim\xE9e avec succ\xE8s",created_message:"Sauvegarde cr\xE9\xE9e avec succ\xE8s",invalid_disk_credentials:"Informations d'identification invalides de l'espace de stockage"},disk:{title:"Espace de stockage | Espaces de stockage",description:"Par d\xE9faut, Crater utilisera votre disque local pour enregistrer les sauvegardes, l'avatar et d'autres fichiers image. Vous pouvez configurer plusieurs pilotes de disque comme DigitalOcean, S3 et Dropbox selon vos pr\xE9f\xE9rences.",created_at:"cr\xE9\xE9 \xE0",dropbox:"dropbox",name:"Nom",driver:"Pilote",disk_type:"Type\xA0",disk_name:"Nom",new_disk:"Ajouter un nouvel espace de stockage",filesystem_driver:"Pilote du syst\xE8me de fichiers",local_driver:"pilote local",local_root:"r\xE9pertoire local",public_driver:"Pilote public",public_root:"R\xE9pertoire public",public_url:"URL publique",public_visibility:"Visibilit\xE9 publique",media_driver:"Pilote multim\xE9dia",media_root:"R\xE9pertoire m\xE9dia",aws_driver:"Pilote AWS",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"R\xE9gion AWS",aws_bucket:"Bucket",aws_root:"R\xE9pertoire",do_spaces_type:"Type",do_spaces_key:"Key",do_spaces_secret:"Secret",do_spaces_region:"R\xE9gion",do_spaces_bucket:"Bucket",do_spaces_endpoint:"Endpoint",do_spaces_root:"R\xE9pertoire",dropbox_type:"Type",dropbox_token:"Token",dropbox_key:"Key",dropbox_secret:"Secret",dropbox_app:"Application",dropbox_root:"R\xE9pertoire",default_driver:"Fournisseur par d\xE9faut",is_default:"Par d\xE9faut",set_default_disk:"D\xE9finir l'espace par d\xE9faut",success_set_default_disk:"L'espace par d\xE9faut d\xE9fini avec succ\xE8s",save_pdf_to_disk:"Enregistrer les PDF sur le disque",disk_setting_description:"Activez cette option si vous souhaitez enregistrer automatiquement une copie de chaque facture, devis et re\xE7u de paiement PDF sur votre disque par d\xE9faut. L'activation de cette option r\xE9duira le temps de chargement lors de l'affichage des PDF.",select_disk:"S\xE9lectionnez le stockage",disk_settings:"Param\xE8tres de stockage",confirm_delete:"Vos fichiers et dossiers existants sur le disque sp\xE9cifi\xE9 ne seront pas affect\xE9s, mais la configuration de votre disque sera supprim\xE9e de Crater",action:"action",edit_file_disk:"Modifier le disque de fichiers",success_create:"Disque ajout\xE9 avec succ\xE8s",success_update:"Disque mis \xE0 jour avec succ\xE8s",error:"L'ajout de disque a \xE9chou\xE9",deleted_message:"Stockage supprim\xE9",disk_variables_save_successfully:"Stockage configur\xE9 avec succ\xE8s",disk_variables_save_error:"La configuration du stockage a \xE9chou\xE9.",invalid_disk_credentials:"Informations d'identification non valides du stockage s\xE9lectionn\xE9"}},gi={account_info:"Information du compte",account_info_desc:"Les d\xE9tails ci-dessous seront utilis\xE9s pour cr\xE9er le compte administrateur principal. Aussi, vous pouvez modifier les d\xE9tails \xE0 tout moment apr\xE8s la connexion.",name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",save_cont:"Enregistrer et poursuivre",company_info:"Informations sur la soci\xE9t\xE9",company_info_desc:"Ces informations seront affich\xE9es sur les factures. Notez que vous pouvez \xE9diter ceci plus tard sur la page des param\xE8tres.",company_name:"Nom de l'entreprise",company_logo:"Logo de l'entreprise",logo_preview:"Aper\xE7u du logo",preferences:"Pr\xE9f\xE9rences",preferences_desc:"Pr\xE9f\xE9rences par d\xE9faut du syst\xE8me.",country:"Pays",state:"\xC9tat",city:"Ville",address:"Adresse",street:"Rue 1 | Rue 2",phone:"T\xE9l\xE9phone",zip_code:"Code postal",go_back:"Revenir",currency:"Devise",language:"Langue",time_zone:"Fuseau horaire",fiscal_year:"Exercice fiscal",date_format:"Format de date",from_address:"De l'adresse",username:"Nom d'utilisateur",next:"Suivant",continue:"Poursuivre",skip:"Ignorer",database:{database:"URL du site et base de donn\xE9es",connection:"Connexion \xE0 la base de donn\xE9es",host:"Serveur de la base de donn\xE9es",port:"Port de la base de donn\xE9es",password:"Mot de passe de la base de donn\xE9es",app_url:"Application URL",app_domain:"Nom de domaine",username:"Nom d'utilisateur de la base de donn\xE9es",db_name:"Nom de la base de donn\xE9es",db_path:"Emplacement de la base de donn\xE9es",desc:"Cr\xE9ez une base de donn\xE9es sur votre serveur et d\xE9finissez les informations d'identification \xE0 l'aide du formulaire ci-dessous."},permissions:{permissions:"Permissions",permission_confirm_title:"\xCAtes-vous certain de vouloir continuer ?",permission_confirm_desc:"La v\xE9rification des permissions du dossier a \xE9chou\xE9",permission_desc:"Vous trouverez ci-dessous la liste des permissions de dossier requises pour le fonctionnement de l'application. Si la v\xE9rification des permissions \xE9choue, veillez mettre \xE0 jour vos permissions de dossier."},mail:{host:"Serveur email",port:"Port",driver:"Fournisseur d'email",secret:"Secret",mailgun_secret:"Secret",mailgun_domain:"Nom de domaine",mailgun_endpoint:"Endpoint",ses_secret:"Secret",ses_key:"Key",password:"Mot de passe",username:"Nom d'utilisateur",mail_config:"Configuration des emails",from_name:"Nom de messagerie",from_mail:"Email de l'exp\xE9diteur",encryption:"Chiffrement des emails",mail_config_desc:"Les d\xE9tails ci-dessous seront utilis\xE9s pour mettre \xE0 jour le fournisseur de messagerie. Vous pourrez modifier ceux-ci \xE0 tout moment apr\xE8s la connexion."},req:{system_req:"Configuration requise",php_req_version:"Php (version {version} n\xE9cessaire)",check_req:"V\xE9rifier les pr\xE9requis",system_req_desc:"Crater a quelques pr\xE9requis. Assurez-vous que votre serveur dispose de la version Php requise et de toutes les extensions mentionn\xE9es ci-dessous."},errors:{migrate_failed:"\xC9chec de la migration",database_variables_save_error:"Impossible de cr\xE9er le fichier de configuration. Veuillez v\xE9rifier les permissions du r\xE9pertoire",mail_variables_save_error:"La configuration du courrier \xE9lectronique a \xE9chou\xE9.",connection_failed:"La connexion \xE0 la base de donn\xE9es a \xE9chou\xE9",database_should_be_empty:"La base de donn\xE9es devrait \xEAtre vide"},success:{mail_variables_save_successfully:"Email configur\xE9 avec succ\xE8s",database_variables_save_successfully:"Base de donn\xE9es configur\xE9e avec succ\xE8s."}},fi={invalid_phone:"Num\xE9ro de t\xE9l\xE9phone invalide",invalid_url:"URL invalide (ex: http://www.craterapp.com)",invalid_domain_url:"URL invalide (ex: craterapp.com)",required:"Champ requis",email_incorrect:"Adresse Email incorrecte.",email_already_taken:"Un compte est d\xE9j\xE0 associ\xE9 \xE0 cette adresse e-mail.",email_does_not_exist:"Cet utilisateur n'existe pas",item_unit_already_taken:"Cette unit\xE9 est d\xE9j\xE0 \xE9t\xE9 utilis\xE9e",payment_mode_already_taken:"Ce moyen de paiement est d\xE9j\xE0 utilis\xE9",send_reset_link:"Envoyer le lien de r\xE9initialisation",not_yet:"Pas encore re\xE7u ? R\xE9essayer",password_min_length:"Le mot de passe doit contenir {nombre} caract\xE8res",name_min_length:"Le nom doit avoir au moins {count} lettres.",enter_valid_tax_rate:"Entrez un taux de taxe valide",numbers_only:"Chiffres uniquement.",characters_only:"Caract\xE8res seulement.",password_incorrect:"Les mots de passe doivent \xEAtre identiques",password_length:"Le mot de passe doit comporter au moins {count} caract\xE8res.",qty_must_greater_than_zero:"La quantit\xE9 doit \xEAtre sup\xE9rieure \xE0 z\xE9ro.",price_greater_than_zero:"Le prix doit \xEAtre sup\xE9rieur \xE0 z\xE9ro.",payment_greater_than_zero:"Le paiement doit \xEAtre sup\xE9rieur \xE0 z\xE9ro.",payment_greater_than_due_amount:"Le paiement saisi est plus \xE9lev\xE9 que le montant d\xFB de cette facture.",quantity_maxlength:"La quantit\xE9 ne doit pas d\xE9passer 20 chiffres.",price_maxlength:"Le prix ne doit pas d\xE9passer 20 chiffres.",price_minvalue:"Le prix doit \xEAtre sup\xE9rieur \xE0 0.",amount_maxlength:"Le montant ne doit pas d\xE9passer 20 chiffres.",amount_minvalue:"Le montant doit \xEAtre sup\xE9rieur \xE0 0.",description_maxlength:"La description ne doit pas d\xE9passer 255 caract\xE8res.",subject_maxlength:"L'objet ne doit pas d\xE9passer 100 caract\xE8res.",message_maxlength:"Le message ne doit pas d\xE9passer 255 caract\xE8res.",maximum_options_error:"Maximum de {max} options s\xE9lectionn\xE9es. Commencez par supprimer une option s\xE9lectionn\xE9e pour en s\xE9lectionner une autre.",notes_maxlength:"Les notes ne doivent pas d\xE9passer 255 caract\xE8res.",address_maxlength:"L'adresse ne doit pas d\xE9passer 255 caract\xE8res.",ref_number_maxlength:"Le num\xE9ro de r\xE9f\xE9rence ne doit pas d\xE9passer 255 caract\xE8res.",prefix_maxlength:"Le pr\xE9fixe ne doit pas d\xE9passer 5 caract\xE8res.",something_went_wrong:"quelque chose a mal tourn\xE9"},hi="Devis",vi="N\xB0",yi="Date du devis",bi="Date d'expiration",ki="Facture",wi="Num\xE9ro de facture",xi="Date",zi="Date d\u2019\xE9ch\xE9ance",Si="Remarques",ji="Articles",Pi="Quantit\xE9",Di="Prix",Ci="Remise",Ai="Montant",Ei="Sous-total",Ni="Total",Ti="Payment",Ii="Re\xE7u de paiement",$i="Date de paiement",Ri="N\xB0",Fi="Moyen de paiement",Mi="Montant re\xE7u",Vi="RAPPORT DE D\xC9PENSES",Bi="TOTAL DES D\xC9PENSES",Oi="RAPPORT DES B\xC9N\xC9FICES ET DES PERTES",Li="Sales Customer Report",Ui="Sales Item Report",Ki="Tax Summary Report",qi="REVENU",Zi="B\xC9N\xC9FICE NET",Wi="Rapport de ventes : par client",Hi="TOTAL DES VENTES",Gi="Rapport des ventes : par article",Yi="RAPPORT DES TAXES",Ji="TOTAL DES TAXES",Xi="Types de taxe",Qi="D\xE9penses",eo="facturer,",to="Envoyer \xE0,",ao="Re\xE7u de :",so="Tax";var no={navigation:ei,general:ti,dashboard:ai,tax_types:si,global_search:ni,customers:ii,items:oi,estimates:ri,invoices:di,payments:li,expenses:ci,login:_i,users:ui,reports:mi,settings:pi,wizard:gi,validation:fi,pdf_estimate_label:hi,pdf_estimate_number:vi,pdf_estimate_date:yi,pdf_estimate_expire_date:bi,pdf_invoice_label:ki,pdf_invoice_number:wi,pdf_invoice_date:xi,pdf_invoice_due_date:zi,pdf_notes:Si,pdf_items_label:ji,pdf_quantity_label:Pi,pdf_price_label:Di,pdf_discount_label:Ci,pdf_amount_label:Ai,pdf_subtotal:Ei,pdf_total:Ni,pdf_payment_label:Ti,pdf_payment_receipt_label:Ii,pdf_payment_date:$i,pdf_payment_number:Ri,pdf_payment_mode:Fi,pdf_payment_amount_received_label:Mi,pdf_expense_report_label:Vi,pdf_total_expenses_label:Bi,pdf_profit_loss_label:Oi,pdf_sales_customers_label:Li,pdf_sales_items_label:Ui,pdf_tax_summery_label:Ki,pdf_income_label:qi,pdf_net_profit_label:Zi,pdf_customer_sales_report:Wi,pdf_total_sales_label:Hi,pdf_item_sales_label:Gi,pdf_tax_report_label:Yi,pdf_total_tax_label:Ji,pdf_tax_types_label:Xi,pdf_expenses_label:Qi,pdf_bill_to:eo,pdf_ship_to:to,pdf_received_from:ao,pdf_tax_label:so};const io={dashboard:"Tablero",customers:"Clientes",items:"Art\xEDculos",invoices:"Facturas",expenses:"Gastos",estimates:"Presupuestos",payments:"Pagos",reports:"Informes",settings:"Configuraciones",logout:"Cerrar sesi\xF3n",users:"Usuarios"},oo={add_company:"A\xF1adir empresa",view_pdf:"Ver PDF",copy_pdf_url:"Copiar direcci\xF3n URL del archivo PDF",download_pdf:"Descargar PDF",save:"Guardar",create:"Crear",cancel:"Cancelar",update:"Actualizar",deselect:"Deseleccionar",download:"Descargar",from_date:"Desde la fecha",to_date:"Hasta la fecha",from:"De",to:"A",sort_by:"Ordenar por",ascending:"Ascendente",descending:"Descendente",subject:"Sujeta",body:"Cuerpo",message:"Mensaje",send:"Enviar",go_back:"Volver",back_to_login:"\xBFVolver al inicio de sesi\xF3n?",home:"Inicio",filter:"Filtrar",delete:"Eliminar",edit:"Editar",view:"Ver",add_new_item:"Agregar \xEDtem nuevo",clear_all:"Limpiar todo",showing:"Mostrando",of:"de",actions:"Acciones",subtotal:"SUBTOTAL",discount:"DESCUENTO",fixed:"Fijo",percentage:"Porcentaje",tax:"IMPUESTO",total_amount:"CANTIDAD TOTAL",bill_to:"Cobrar a",ship_to:"Enviar a",due:"Debido",draft:"Borrador",sent:"Enviado",all:"Todas",select_all:"Seleccionar todo",choose_file:"Haga clic aqu\xED para elegir un archivo",choose_template:"Elige una plantilla",choose:"Escoger",remove:"Eliminar",powered_by:"Impulsado por",bytefury:"Bytefury",select_a_status:"Selecciona un estado",select_a_tax:"Selecciona un impuesto",search:"Buscar",are_you_sure:"\xBFEst\xE1s seguro?",list_is_empty:"La lista esta vac\xEDa.",no_tax_found:"\xA1No se encontraron impuestos!",four_zero_four:"404",you_got_lost:"Whoops! \xA1Te perdiste!",go_home:"Volver al Inicio",test_mail_conf:"Probar configuraci\xF3n de correo",send_mail_successfully:"El correo enviado con \xE9xito",setting_updated:"Configuraci\xF3n actualizada con \xE9xito",select_state:"Seleccionar estado",select_country:"Seleccionar pa\xEDs",select_city:"Seleccionar ciudad",street_1:"Calle 1",street_2:"Calle 2",action_failed:"Accion Fallida",retry:"Procesar de nuevo",choose_note:"Elegir nota",no_note_found:"No se encontr\xF3 ninguna nota",insert_note:"Insertar una nota"},ro={select_year:"Seleccionar a\xF1o",cards:{due_amount:"Cantidad Debida",customers:"Clientes",invoices:"Facturas",estimates:"Presupuestos"},chart_info:{total_sales:"Ventas",total_receipts:"Ingresos",total_expense:"Gastos",net_income:"Ingresos netos",year:"Seleccione a\xF1o"},monthly_chart:{title:"Gastos de venta"},recent_invoices_card:{title:"Facturas adeudadas",due_on:"Debido a",customer:"Cliente",amount_due:"Cantidad Debida",actions:"Acciones",view_all:"Ver todo"},recent_estimate_card:{title:"Presupuestos recientes",date:"Fecha",customer:"Cliente",amount_due:"Cantidad Debida",actions:"Acciones",view_all:"Ver todo"}},lo={name:"Nombre",description:"Descripci\xF3n",percent:"Por ciento",compound_tax:"Impuesto compuesto"},co={search:"Buscar...",customers:"Clientes",users:"Usuarios",no_results_found:"No se encontraron resultados"},_o={title:"Clientes",add_customer:"Agregar cliente",contacts_list:"Lista de clientes",name:"Nombre",mail:"Correo | Correos",statement:"Declaraci\xF3n",display_name:"Nombre para mostrar",primary_contact_name:"Nombre de contacto primario",contact_name:"Nombre de contacto",amount_due:"Cantidad Debida",email:"Correo electr\xF3nico",address:"Direcci\xF3n",phone:"Tel\xE9fono",website:"Sitio web",overview:"Descripci\xF3n general",enable_portal:"Habilitar Portal",country:"Pa\xEDs",state:"Estado",city:"Ciudad",zip_code:"C\xF3digo postal",added_on:"A\xF1adido el",action:"Acci\xF3n",password:"Contrase\xF1a",street_number:"N\xFAmero de calle",primary_currency:"Moneda primaria",description:"Descripci\xF3n",add_new_customer:"Agregar nuevo cliente",save_customer:"Guardar cliente",update_customer:"Actualizar cliente",customer:"Cliente | Clientes",new_customer:"Nuevo cliente",edit_customer:"Editar cliente",basic_info:"Informaci\xF3n b\xE1sica",billing_address:"Direcci\xF3n de Facturaci\xF3n",shipping_address:"Direcci\xF3n de Env\xEDo",copy_billing_address:"Copia de facturaci\xF3n",no_customers:"\xA1A\xFAn no hay clientes!",no_customers_found:"\xA1No se encontraron clientes!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Esta secci\xF3n contendr\xE1 la lista de clientes.",primary_display_name:"Nombre de visualizaci\xF3n principal",select_currency:"Seleccione el tipo de moneda",select_a_customer:"Selecciona un cliente",type_or_click:"Escriba o haga clic para seleccionar",new_transaction:"Nueva transacci\xF3n",no_matching_customers:"\xA1No hay clientes coincidentes!",phone_number:"N\xFAmero de tel\xE9fono",create_date:"Fecha de Creaci\xF3n",confirm_delete:"No podr\xE1 recuperar este cliente y todas las facturas, estimaciones y pagos relacionados. | No podr\xE1 recuperar estos clientes y todas las facturas, estimaciones y pagos relacionados.",created_message:"Cliente creado con \xE9xito",updated_message:"Cliente actualizado con \xE9xito",deleted_message:"Cliente eliminado correctamente | Clientes eliminados exitosamente"},uo={title:"Art\xEDculos",items_list:"Lista de art\xEDculos",name:"Nombre",unit:"Unidad",description:"Descripci\xF3n",added_on:"A\xF1adido",price:"Precio",date_of_creation:"Fecha de creaci\xF3n",not_selected:"No item selected",action:"Acci\xF3n",add_item:"A\xF1adir art\xEDculo",save_item:"Guardar art\xEDculo",update_item:"Actualizar elemento",item:"Art\xEDculo | Art\xEDculos",add_new_item:"Agregar \xEDtem nuevo",new_item:"Nuevo art\xEDculo",edit_item:"Editar elemento",no_items:"\xA1A\xFAn no hay art\xEDculos!",list_of_items:"Esta secci\xF3n contendr\xE1 la lista de art\xEDculos.",select_a_unit:"seleccionar unidad",taxes:"Impuestos",item_attached_message:"No se puede eliminar un elemento que ya est\xE1 en uso.",confirm_delete:"No podr\xE1 recuperar este art\xEDculo | No podr\xE1s recuperar estos elementos",created_message:"Art\xEDculo creado con \xE9xito",updated_message:"Art\xEDculo actualizado con \xE9xito",deleted_message:"Elemento eliminado con \xE9xito | Elementos eliminados correctamente"},mo={title:"Presupuestos",estimate:"Presupuesto | Presupuestos",estimates_list:"Lista de presupuestos",days:"d\xEDas D\xEDas",months:"meses Mes",years:"a\xF1os A\xF1o",all:"Todas",paid:"Pagada",unpaid:"No pagado",customer:"CLIENTE",ref_no:"N\xDAMERO DE REFERENCIA.",number:"N\xDAMERO",amount_due:"CANTIDAD DEBIDA",partially_paid:"Parcialmente pagado",total:"Total",discount:"Descuento",sub_total:"Subtotal",estimate_number:"N\xFAmero de Presupuesto",ref_number:"N\xFAmero de referencia",contact:"Contacto",add_item:"Agregar un art\xEDculo",date:"Fecha",due_date:"Fecha de vencimiento",expiry_date:"Fecha de caducidad",status:"Estado",add_tax:"Agregar impuesto",amount:"Cantidad",action:"Acci\xF3n",notes:"Notas",tax:"Impuesto",estimate_template:"Plantilla de presupuesto",convert_to_invoice:"Convertir a factura",mark_as_sent:"Marcar como enviado",send_estimate:"Enviar presupuesto",resend_estimate:"Reenviar estimado",record_payment:"Registro de pago",add_estimate:"Agregar presupuesto",save_estimate:"Guardar presupuesto",confirm_conversion:"\xBFQuiere convertir este presupuesto en una factura?",conversion_message:"Conversi\xF3n exitosa",confirm_send_estimate:"Este presupuesto se enviar\xE1 por correo electr\xF3nico al cliente",confirm_mark_as_sent:"Este presupuesto se marcar\xE1 como enviado",confirm_mark_as_accepted:"Este presupuesto se marcar\xE1 como Aceptado",confirm_mark_as_rejected:"Este presupuesto se marcar\xE1 como Rechazado",no_matching_estimates:"\xA1No hay presupuestos coincidentes!",mark_as_sent_successfully:"Presupuesto marcado como enviado correctamente",send_estimate_successfully:"Presupuesto enviado con \xE9xito",errors:{required:"Se requiere campo"},accepted:"Aceptado",rejected:"Rejected",sent:"Enviado",draft:"Borrador",declined:"Rechazado",new_estimate:"Nuevo presupuesto",add_new_estimate:"A\xF1adir nuevo presupuesto",update_Estimate:"Actualizar presupuesto",edit_estimate:"Editar presupuesto",items:"art\xEDculos",Estimate:"Presupuestos | Presupuestos",add_new_tax:"Agregar nuevo impuesto",no_estimates:"\xA1A\xFAn no hay presupuestos!",list_of_estimates:"Esta secci\xF3n contendr\xE1 la lista de presupuestos.",mark_as_rejected:"Marcar como rechazado",mark_as_accepted:"Marcar como aceptado",marked_as_accepted_message:"Presupuesto marcado como aceptado",marked_as_rejected_message:"Presupuesto marcado como rechazado",confirm_delete:"No podr\xE1 recuperar este presupuesto | No podr\xE1 recuperar estos presupuestos",created_message:"Presupuesto creada con \xE9xito",updated_message:"Presupuesto actualizada con \xE9xito",deleted_message:"Presupuesto eliminada con \xE9xito | Presupuestos eliminadas exitosamente",something_went_wrong:"Algo fue mal",item:{title:"T\xEDtulo del art\xEDculo",description:"Descripci\xF3n",quantity:"Cantidad",price:"Precio",discount:"Descuento",total:"Total",total_discount:"Descuento total",sub_total:"Subtotal",tax:"Impuesto",amount:"Cantidad",select_an_item:"Escriba o haga clic para seleccionar un elemento",type_item_description:"Descripci\xF3n del tipo de elemento(opcional)"}},po={title:"Facturas",invoices_list:"Lista de facturas",days:"d\xEDas D\xEDas",months:"meses Mes",years:"a\xF1os A\xF1o",all:"Todas",paid:"Pagada",unpaid:"No pagado",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENTE",paid_status:"ESTADO PAGADO",ref_no:"N\xDAMERO DE REFERENCIA.",number:"N\xDAMERO",amount_due:"CANTIDAD DEBIDA",partially_paid:"Parcialmente pagado",total:"Total",discount:"Descuento",sub_total:"Subtotal",invoice:"Factura | Facturas",invoice_number:"Numero de factura",ref_number:"N\xFAmero de referencia",contact:"Contacto",add_item:"Agregar un art\xEDculo",date:"Fecha",due_date:"Fecha de vencimiento",status:"Estado",add_tax:"Agregar impuesto",amount:"Cantidad",action:"Acci\xF3n",notes:"Notas",view:"Ver",send_invoice:"Enviar la factura",resend_invoice:"Reenviar factura",invoice_template:"Plantilla de factura",template:"Modelo",mark_as_sent:"Marcar como enviada",confirm_send_invoice:"Esta factura ser\xE1 enviada por email al cliente",invoice_mark_as_sent:"Esta factura se marcar\xE1 como enviada",confirm_send:"Estas facturas se enviar\xE1n por correo electr\xF3nico al cliente.",invoice_date:"Fecha de la factura",record_payment:"Registro de pago",add_new_invoice:"A\xF1adir nueva factura",update_expense:"Actualizar gasto",edit_invoice:"Editar factura",new_invoice:"Nueva factura",save_invoice:"Guardar factura",update_invoice:"Actualizar factura",add_new_tax:"Agregar nuevo impuesto",no_invoices:"\xA1A\xFAn no hay facturas!",list_of_invoices:"Esta secci\xF3n contendr\xE1 la lista de facturas.",select_invoice:"Seleccionar factura",no_matching_invoices:"\xA1No hay facturas coincidentes con la selecci\xF3n!",mark_as_sent_successfully:"Factura marcada como enviada con \xE9xito",invoice_sent_successfully:"Factura enviada exitosamente",cloned_successfully:"Factura clonada exitosamente",clone_invoice:"Factura de clonaci\xF3n",confirm_clone:"Esta factura se clonar\xE1 en una nueva factura.",item:{title:"T\xEDtulo del art\xEDculo",description:"Descripci\xF3n",quantity:"Cantidad",price:"Precio",discount:"Descuento",total:"Total",total_discount:"Descuento total",sub_total:"Subtotal",tax:"Impuesto",amount:"Cantidad",select_an_item:"Escriba o haga clic para seleccionar un elemento",type_item_description:"Descripci\xF3n del tipo de elemento (opcional)"},confirm_delete:"No podr\xE1 recuperar esta factura | No podr\xE1 recuperar estas facturas",created_message:"Factura creada exitosamente",updated_message:"Factura actualizada exitosamente",deleted_message:"Factura eliminada con \xE9xito | Facturas borradas exitosamente",marked_as_sent_message:"Factura marcada como enviada con \xE9xito",something_went_wrong:"Algo fue mal",invalid_due_amount_message:"El pago ingresado es mayor que la cantidad total debida por esta factura. Por favor verificalo y vuelve a intentarlo"},go={title:"Pagos",payments_list:"Lista de pagos",record_payment:"Registro de pago",customer:"Cliente",date:"Fecha",amount:"Cantidad",action:"Acci\xF3n",payment_number:"Numero de pago",payment_mode:"Modo de pago",invoice:"Factura",note:"Nota",add_payment:"Agregar pago",new_payment:"Nuevo pago",edit_payment:"Editar pago",view_payment:"Ver pago",add_new_payment:"Agregar nuevo pago",send_payment_receipt:"Enviar recibo de pago",send_payment:"Enviar pago",save_payment:"Guardar pago",update_payment:"Actualizar pago",payment:"Pago | Pagos",no_payments:"\xA1A\xFAn no hay pagos!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"\xA1No hay pagos equivalentes!",list_of_payments:"Esta secci\xF3n contendr\xE1 la lista de pagos.",select_payment_mode:"Seleccionar modo de pago",confirm_mark_as_sent:"Este presupuesto se marcar\xE1 como enviado",confirm_send_payment:"Este pago se enviar\xE1 por correo electr\xF3nico al cliente",send_payment_successfully:"Pago enviado correctamente",something_went_wrong:"Algo fue mal",confirm_delete:"No podr\xE1 recuperar este pago | No podr\xE1 recuperar estos pagos",created_message:"Pago creado con \xE9xito",updated_message:"Pago actualizado con \xE9xito",deleted_message:"Pago eliminado con \xE9xito | Pagos eliminados exitosamente",invalid_amount_message:"El importe del pago no es v\xE1lido."},fo={title:"Gastos",expenses_list:"Lista de gastos",select_a_customer:"Selecciona un cliente",expense_title:"T\xEDtulo",customer:"Cliente",contact:"Contacto",category:"Categor\xEDa",from_date:"Desde la fecha",to_date:"Hasta la fecha",expense_date:"Fecha",description:"Descripci\xF3n",receipt:"Recibo",amount:"Cantidad",action:"Acci\xF3n",not_selected:"Not selected",note:"Nota",category_id:"Categoria ID",date:"Fecha de gastos",add_expense:"A\xF1adir gastos",add_new_expense:"A\xF1adir nuevo gasto",save_expense:"Guardar gasto",update_expense:"Actualizar gasto",download_receipt:"Descargar recibo",edit_expense:"Editar gasto",new_expense:"Nuevo gasto",expense:"Gastos | Gastos",no_expenses:"\xA1No hay gastos todav\xEDa!",list_of_expenses:"Esta secci\xF3n contendr\xE1 la lista de gastos.",confirm_delete:"No podr\xE1 recuperar este gasto | No podr\xE1 recuperar estos gastos",created_message:"Gastos creados exitosamente",updated_message:"Gastos actualizados con \xE9xito",deleted_message:"Gastos eliminados con \xE9xito | Gastos eliminados exitosamente",categories:{categories_list:"Lista de categor\xEDas",title:"T\xEDtulo",name:"Nombre",description:"Descripci\xF3n",amount:"Cantidad",actions:"Comportamiento",add_category:"a\xF1adir categor\xEDa",new_category:"Nueva categor\xEDa",category:"Categor\xEDa | Categorias",select_a_category:"Seleccione una categor\xEDa"}},ho={email:"Correo electr\xF3nico",password:"Contrase\xF1a",forgot_password:"\xBFOlvidaste tu contrase\xF1a?",or_signIn_with:"o Inicia sesi\xF3n con",login:"Iniciar sesi\xF3n",register:"Registro",reset_password:"Restablecer la contrase\xF1a",password_reset_successfully:"Contrase\xF1a reestablecida con \xE9xito",enter_email:"Escriba el correo electr\xF3nico",enter_password:"Escriba la contrase\xF1a",retype_password:"Reescriba la contrase\xF1a"},vo={title:"Usuarios",users_list:"Lista de usuarios",name:"Nombre",description:"Descripci\xF3n",added_on:"A\xF1adido",date_of_creation:"Fecha de creaci\xF3n",action:"Acci\xF3n",add_user:"Agregar usuario",save_user:"Guardar usuario",update_user:"Actualizar usuario",user:"Usuario | Usuarios",add_new_user:"Agregar Nuevo Usuario",new_user:"Nuevo usuario",edit_user:"Editar usuario",no_users:"\xA1A\xFAn no hay usuarios!",list_of_users:"Esta secci\xF3n contendr\xE1 la lista de usuarios.",email:"Correo",phone:"Tel\xE9fono",password:"Contrase\xF1a",user_attached_message:"No se puede eliminar un elemento que ya est\xE1 en uso.",confirm_delete:"No podr\xE1 recuperar este Usuario | No podr\xE1 recuperar estos Usuarios",created_message:"Usuario creado satisfactoriamente",updated_message:"Usuario actualizado satisfactoriamente",deleted_message:"Usuario eliminado exitosamente | Usuario eliminado correctamente"},yo={title:"Informe",from_date:"A partir de la fecha",to_date:"Hasta la fecha",status:"Estado",paid:"Pagada",unpaid:"No pagado",download_pdf:"Descargar PDF",view_pdf:"Ver PDF",update_report:"Informe de actualizaci\xF3n",report:"Informe | Informes",profit_loss:{profit_loss:"P\xE9rdida de beneficios",to_date:"Hasta la fecha",from_date:"A partir de la fecha",date_range:"Seleccionar rango de fechas"},sales:{sales:"Ventas",date_range:"Seleccionar rango de fechas",to_date:"Hasta la fecha",from_date:"A partir de la fecha",report_type:"Tipo de informe"},taxes:{taxes:"Impuestos",to_date:"Hasta la fecha",from_date:"A partir de la fecha",date_range:"Seleccionar rango de fechas"},errors:{required:"Se requiere campo"},invoices:{invoice:"Factura",invoice_date:"Fecha de la factura",due_date:"Fecha de vencimiento",amount:"Cantidad",contact_name:"Nombre de contacto",status:"Estado"},estimates:{estimate:"Presupuestar",estimate_date:"Fecha presupuesto",due_date:"Fecha de vencimiento",estimate_number:"N\xFAmero de Presupuesto",ref_number:"N\xFAmero de referencia",amount:"Cantidad",contact_name:"Nombre de contacto",status:"Estado"},expenses:{expenses:"Gastos",category:"Categor\xEDa",date:"Fecha",amount:"Cantidad",to_date:"Hasta la fecha",from_date:"A partir de la fecha",date_range:"Seleccionar rango de fechas"}},bo={menu_title:{account_settings:"Configuraciones de la cuenta",company_information:"Informaci\xF3n de la empresa",customization:"Personalizaci\xF3n",preferences:"Preferencias",notifications:"Notificaciones",tax_types:"Tipos de impuestos",expense_category:"Categor\xEDas de gastos",update_app:"Actualizar aplicaci\xF3n",backup:"Copias de seguridad",file_disk:"Disco de archivo",custom_fields:"Campos Personalizados",payment_modes:"Modos de pago",notes:"Notas"},title:"Configuraciones",setting:"Configuraciones | Configuraciones",general:"General",language:"Idioma",primary_currency:"Moneda primaria",timezone:"Zona horaria",date_format:"Formato de fecha",currencies:{title:"Monedas",currency:"Moneda | Monedas",currencies_list:"Lista de monedas",select_currency:"Seleccione el tipo de moneda",name:"Nombre",code:"C\xF3digo",symbol:"S\xEDmbolo",precision:"Precisi\xF3n",thousand_separator:"Separador de miles",decimal_separator:"Separador decimal",position:"Posici\xF3n",position_of_symbol:"Posici\xF3n del s\xEDmbolo",right:"Derecho",left:"Izquierda",action:"Acci\xF3n",add_currency:"Agregar moneda"},mail:{host:"Host de correo",port:"Puerto de correo",driver:"Conductor de correo",secret:"Secreto",mailgun_secret:"Mailgun Secreto",mailgun_domain:"Domino",mailgun_endpoint:"Mailgun endpoint",ses_secret:"Secreto SES",ses_key:"Clave SES",password:"Contrase\xF1a de correo",username:"Nombre de usuario de correo",mail_config:"Configuraci\xF3n de correo",from_name:"Del nombre del correo",from_mail:"Desde la direcci\xF3n de correo",encryption:"Cifrado de correo",mail_config_desc:"Los detalles a continuaci\xF3n se utilizar\xE1n para actualizar el entorno de correo. Tambi\xE9n puede cambiar los detalles en cualquier momento despu\xE9s de iniciar sesi\xF3n."},pdf:{title:"Configuraci\xF3n de PDF",footer_text:"Texto de pie de p\xE1gina",pdf_layout:"Dise\xF1o PDF"},company_info:{company_info:"Informaci\xF3n de la compa\xF1\xEDa",company_name:"Nombre de Empresa",company_logo:"Logo de la compa\xF1\xEDa",section_description:"Informaci\xF3n sobre su empresa que se mostrar\xE1 en las facturas, presupuestos y otros documentos creados por Crater.",phone:"Tel\xE9fono",country:"Pa\xEDs",state:"Estado",city:"Ciudad",address:"Direcci\xF3n",zip:"C\xF3digo Postal",save:"Guardar",updated_message:"Informaci\xF3n de la empresa actualizada con \xE9xito"},custom_fields:{title:"Campos Personalizados",section_description:"Personalice sus facturas, estimaciones y recibos de pago en sus propios campos. Aseg\xFArese de usar los siguientes campos a\xF1adidos en los formatos de direcci\xF3n de la p\xE1gina de configuraci\xF3n de personalizaci\xF3n.",add_custom_field:"Agregar campo personalizado",edit_custom_field:"Editar campo personalizado",field_name:"Nombre del campo",label:"Etiqueta",type:"Tipo",name:"Nombre",required:"Necesaria",placeholder:"Marcador de posici\xF3n",help_text:"texto de ayuda",default_value:"Valor por defecto",prefix:"Prefijo",starting_number:"N\xFAmero inicial",model:"Modelo",help_text_description:"Ingrese un texto para ayudar a los usuarios a comprender el prop\xF3sito de este campo personalizado.",suffix:"Sufijo",yes:"si",no:"No",order:"Orden",custom_field_confirm_delete:"No podr\xE1 recuperar este campo personalizado",already_in_use:"El campo personalizado ya est\xE1 en uso",deleted_message:"Campo personalizado eliminado correctamente",options:"opciones",add_option:"Agregar opciones",add_another_option:"Agregar otra opci\xF3n",sort_in_alphabetical_order:"Ordenar en orden alfab\xE9tico",add_options_in_bulk:"Agregar opciones a granel",use_predefined_options:"Usar opciones predefinidas",select_custom_date:"Seleccionar fecha personalizada",select_relative_date:"Seleccionar fecha relativa",ticked_by_default:"Marcada por defecto",updated_message:"Campo personalizado actualizado correctamente",added_message:"Campo personalizado agregado correctamente"},customization:{customization:"Personalizaci\xF3n",save:"Guardar",addresses:{title:"Direcciones",section_description:"Puede configurar la Direcci\xF3n de facturaci\xF3n del cliente y el Formato de direcci\xF3n de env\xEDo del cliente (solo se muestra en PDF).",customer_billing_address:"Direcci\xF3n de facturaci\xF3n del cliente",customer_shipping_address:"Direcci\xF3n de env\xEDo del cliente",company_address:"Direcci\xF3n de la compa\xF1ia",insert_fields:"Insertar campos",contact:"Contacto",address:"Direcci\xF3n",display_name:"Nombre para mostrar",primary_contact_name:"Nombre de contacto principal",email:"Correo electr\xF3nico",website:"Sitio web",name:"Nombre",country:"Pa\xEDs",state:"Estado",city:"Ciudad",company_name:"Nombre de la compa\xF1ia",address_street_1:"Direcci\xF3n de la calle 1",address_street_2:"Direcci\xF3n de la calle 2",phone:"Telefono",zip_code:"Codigo postal",address_setting_updated:"Configuraci\xF3n de direcci\xF3n actualizada correctamente"},updated_message:"Informaci\xF3n de la empresa actualizada con \xE9xito",invoices:{title:"Facturas",notes:"Notas",invoice_prefix:"Prefijo de las facturas",default_invoice_email_body:"Cuerpo predeterminado del correo electr\xF3nico de la factura",invoice_settings:"Ajustes de facturas",autogenerate_invoice_number:"Autogenerar n\xFAmero de factura",autogenerate_invoice_number_desc:"Desactive esto, si no desea generar autom\xE1ticamente n\xFAmeros de factura cada vez que cree una nueva factura.",enter_invoice_prefix:"Introduzca el prefijo de factura",terms_and_conditions:"T\xE9rminos y Condiciones",company_address_format:"Formato de direcci\xF3n de la empresa",shipping_address_format:"Formato de la direcci\xF3n de env\xEDo",billing_address_format:"Formato de direcci\xF3n de facturaci\xF3n",invoice_settings_updated:"Configuraci\xF3n de factura actualizada correctamente"},estimates:{title:"Estimaciones",estimate_prefix:"Prefijo de los presupuestos",default_estimate_email_body:"Cuerpo predeterminado estimado del correo electr\xF3nico",estimate_settings:"Ajustes de presupuestos",autogenerate_estimate_number:"Autogenerar n\xFAmero de presupuesto",estimate_setting_description:"Desactive esto, si no desea generar autom\xE1ticamente n\xFAmeros de presupuesto cada vez que cree un nuevo presupuesto.",enter_estimate_prefix:"Introduzca el prefijo de presupuesto",estimate_setting_updated:"Configuraci\xF3n de presupuestos actualizada correctamente",company_address_format:"Formato de direcci\xF3n de la empresa",billing_address_format:"Formato de la direcci\xF3n de facturaci\xF3n",shipping_address_format:"Formato de direcci\xF3n de env\xEDo"},payments:{title:"Pagos",description:"Modos de transacci\xF3n de pagos",payment_prefix:"Prefijo de los pagos",default_payment_email_body:"Cuerpo predeterminado del correo electr\xF3nico del pago",payment_settings:"Ajustes de pagos",autogenerate_payment_number:"Autogenerar n\xFAmero de pago",payment_setting_description:"Desactive esto, si no desea generar autom\xE1ticamente n\xFAmeros de pago cada vez que cree un nuevo pago.",enter_payment_prefix:"Introduzca el prefijo de pago",payment_setting_updated:"Configuraci\xF3n de pagos actualizada correctamente",payment_modes:"Modos de pago",add_payment_mode:"Agregar modo de pago",edit_payment_mode:"Editar modo de pago",mode_name:"Nombre del modo",payment_mode_added:"Modo de pago agregado",payment_mode_updated:"Modo de pago actualizado",payment_mode_confirm_delete:"No podr\xE1 recuperar este modo de pago",already_in_use:"El modo de pago ya est\xE1 en uso",deleted_message:"Modo de pago eliminado correctamente",company_address_format:"Formato de direcci\xF3n de la empresa",from_customer_address_format:"Desde el formato de direcci\xF3n del cliente"},items:{title:"Art\xEDculos",units:"unidades",add_item_unit:"Agregar unidad de art\xEDculo",edit_item_unit:"Editar unidad de art\xEDculo",unit_name:"Nombre de la unidad",item_unit_added:"Unidad de art\xEDculo agregada",item_unit_updated:"Unidad de art\xEDculo actualizada",item_unit_confirm_delete:"No podr\xE1s recuperar esta unidad de art\xEDculo",already_in_use:"Unidad de art\xEDculo ya est\xE1 en uso",deleted_message:"Unidad de elemento eliminada correctamente"},notes:{title:"Notas",description:"Ahorre tiempo creando notas y reutiliz\xE1ndolas en sus facturas, c\xE1lculos y pagos.",notes:"Notas",type:"Tipo",add_note:"Agregar nota",add_new_note:"Agregar nueva nota",name:"Nombre",edit_note:"Editar nota",note_added:"Nota agregada correctamente",note_updated:"Nota actualizada correctamente",note_confirm_delete:"No podr\xE1 recuperar esta nota",already_in_use:"Nota ya est\xE1 en uso",deleted_message:"Nota eliminada correctamente"}},account_settings:{profile_picture:"Foto de perfil",name:"Nombre",email:"Correo electr\xF3nico",password:"Contrase\xF1a",confirm_password:"Confirmar contrase\xF1a",account_settings:"Configuraciones de la cuenta",save:"Guardar",section_description:"Puede actualizar su nombre, correo electr\xF3nico y contrase\xF1a utilizando el siguiente formulario.",updated_message:"Configuraci\xF3n de la cuenta actualizada correctamente"},user_profile:{name:"Nombre",email:"Correo electr\xF3nico",password:"Contrase\xF1a",confirm_password:"Confirmar contrase\xF1a"},notification:{title:"Notificaci\xF3n",email:"Enviar notificaciones a",description:"\xBFQu\xE9 notificaciones por correo electr\xF3nico le gustar\xEDa recibir cuando algo cambia?",invoice_viewed:"Factura vista",invoice_viewed_desc:"Cuando su cliente vio la factura enviada a trav\xE9s del panel de control de Crater.",estimate_viewed:"Presupuesto visto",estimate_viewed_desc:"Cuando su cliente vio el presupuesto enviado a trav\xE9s del panel de control de Crater.",save:"Guardar",email_save_message:"Correo electr\xF3nico guardado con \xE9xito",please_enter_email:"Por favor, introduzca su correo electr\xF3nico"},tax_types:{title:"Tipos de impuestos",add_tax:"Agregar impuesto",edit_tax:"Editar impuesto",description:"Puede agregar o eliminar impuestos a su gusto. Crater admite impuestos sobre art\xEDculos individuales, as\xED como sobre la factura.",add_new_tax:"Agregar nuevo impuesto",tax_settings:"Configuraciones de impuestos",tax_per_item:"Impuesto por art\xEDculo",tax_name:"Nombre del impuesto",compound_tax:"Impuesto compuesto",percent:"Porcentaje",action:"Acci\xF3n",tax_setting_description:"Habil\xEDtelo si desea agregar impuestos a art\xEDculos de factura de forma individual. Por defecto, los impuestos se agregan directamente a la factura.",created_message:"Tipo de impuesto creado con \xE9xito",updated_message:"Tipo de impuesto actualizado correctamente",deleted_message:"Tipo de impuesto eliminado correctamente",confirm_delete:"No podr\xE1 recuperar este tipo de impuesto",already_in_use:"El impuesto ya est\xE1 en uso."},expense_category:{title:"Categor\xEDas de gastos",action:"Acci\xF3n",description:"Se requieren categor\xEDas para agregar entradas de gastos. Puede Agregar o Eliminar estas categor\xEDas seg\xFAn su preferencia.",add_new_category:"A\xF1adir nueva categoria",add_category:"A\xF1adir categor\xEDa",edit_category:"Editar categoria",category_name:"nombre de la categor\xEDa",category_description:"Descripci\xF3n",created_message:"Categor\xEDa de gastos creada con \xE9xito",deleted_message:"Categor\xEDa de gastos eliminada correctamente",updated_message:"Categor\xEDa de gastos actualizada con \xE9xito",confirm_delete:"No podr\xE1 recuperar esta categor\xEDa de gastos",already_in_use:"La categor\xEDa ya est\xE1 en uso."},preferences:{currency:"Moneda",default_language:"Idioma predeterminado",time_zone:"Zona horaria",fiscal_year:"A\xF1o financiero",date_format:"Formato de fecha",discount_setting:"Ajuste de descuento",discount_per_item:"Descuento por art\xEDculo",discount_setting_description:"Habil\xEDtelo si desea agregar Descuento a art\xEDculos de factura individuales. Por defecto, los descuentos se agregan directamente a la factura.",save:"Guardar",preference:"Preferencia | Preferencias",general_settings:"Preferencias predeterminadas para el sistema.",updated_message:"Preferencias actualizadas exitosamente",select_language:"seleccione el idioma",select_time_zone:"selecciona la zona horaria",select_date_format:"Seleccionar formato de fecha",select_financial_year:"seleccione a\xF1o financiero"},update_app:{title:"Actualizar aplicaci\xF3n",description:"actualizar la descripci\xF3n de la aplicaci\xF3n",check_update:"Buscar actualizaciones",avail_update:"Nueva actualizaci\xF3n disponible",next_version:"Pr\xF3xima versi\xF3n",requirements:"Requisitos",update:"Actualizar",update_progress:"Actualizaci\xF3n en progreso...",progress_text:"Solo tomar\xE1 unos minutos. No actualice la pantalla ni cierre la ventana antes de que finalice la actualizaci\xF3n.",update_success:"\xA1La aplicaci\xF3n ha sido actualizada! Espere mientras la ventana de su navegador se vuelve a cargar autom\xE1ticamente.",latest_message:"\xA1Actualizaci\xF3n no disponible! Est\xE1s en la \xFAltima versi\xF3n.",current_version:"Versi\xF3n actual",download_zip_file:"Descargar archivo ZIP",unzipping_package:"Descomprimir paquete",copying_files:"Copiando documentos",running_migrations:"Ejecutar migraciones",finishing_update:"Actualizaci\xF3n final",update_failed:"Actualizaci\xF3n fallida",update_failed_text:"\xA1Lo siento! Su actualizaci\xF3n fall\xF3 el: {step} paso"},backup:{title:"Copia de seguridad | Copias de seguridad",description:"La copia de seguridad es un archivo comprimido zip que contiene todos los archivos en los directorios que especifiques junto con tu base de datos",new_backup:"Agregar nueva copia de seguridad",create_backup:"Crear copia de seguridad",select_backup_type:"Seleccione Tipo de Copia de Seguridad",backup_confirm_delete:"No podr\xE1 recuperar esta copia de seguridad",path:"ruta",new_disk:"Nuevo Disco",created_at:"creado el",size:"tama\xF1o",dropbox:"dropbox",local:"local",healthy:"saludable",amount_of_backups:"cantidad de copias de seguridad",newest_backups:"copias de seguridad m\xE1s recientes",used_storage:"almacenamiento utilizado",select_disk:"Seleccionar Disco",action:"Acci\xF3n",deleted_message:"Copia de seguridad eliminada exitosamente",created_message:"Copia de seguridad creada satisfactoriamente",invalid_disk_credentials:"Credencial no v\xE1lida del disco seleccionado"},disk:{title:"Disco de archivos | Discos de archivos",description:"Por defecto, Crater utilizar\xE1 su disco local para guardar copias de seguridad, avatar y otros archivos de imagen. Puede configurar varios controladores de disco como DigitalOcean, S3 y Dropbox seg\xFAn sus preferencias.",created_at:"creado el",dropbox:"dropbox",name:"Nombre",driver:"Controlador",disk_type:"Tipo",disk_name:"Nombre del disco",new_disk:"Agregar nuevo disco",filesystem_driver:"Controlador del sistema de archivos",local_driver:"controlador local",local_root:"ra\xEDz local",public_driver:"Controlador p\xFAblico",public_root:"Ra\xEDz p\xFAblica",public_url:"URL p\xFAblica",public_visibility:"Visibilidad p\xFAblica",media_driver:"Controlador multimedia",media_root:"Ra\xEDz multimedia",aws_driver:"Controlador AWS",aws_key:"Clave AWS",aws_secret:"Secreto AWS",aws_region:"Regi\xF3n de AWS",aws_bucket:"Cubo AWS",aws_root:"Ra\xEDz AWS",do_spaces_type:"Hacer Espacios tipo",do_spaces_key:"Disponer espacios",do_spaces_secret:"Disponer espacios secretos",do_spaces_region:"Disponer regi\xF3n de espacios",do_spaces_bucket:"Disponer espacios",do_spaces_endpoint:"Disponer espacios extremos",do_spaces_root:"Disponer espacios en la ra\xEDz",dropbox_type:"Tipo de Dropbox",dropbox_token:"Token de DropBox",dropbox_key:"Clave Dropbox",dropbox_secret:"Dropbox Secret",dropbox_app:"Aplicaci\xF3n Dropbox",dropbox_root:"Ra\xEDz Dropbox",default_driver:"Controlador por defecto",is_default:"ES PREDETERMINADO",set_default_disk:"Establecer disco predeterminado",success_set_default_disk:"Disco establecido correctamente como predeterminado",save_pdf_to_disk:"Guardar PDFs a disco",disk_setting_description:" Habilite esto, si desea guardar autom\xE1ticamente una copia en formato pdf de cada factura, c\xE1lculo y recibo de pago en su disco predeterminado. Al activar esta opci\xF3n, se reducir\xE1 el tiempo de carga al visualizar los archivos PDFs.",select_disk:"Seleccionar Disco",disk_settings:"Configuraci\xF3n del disco",confirm_delete:"Los archivos y carpetas existentes en el disco especificado no se ver\xE1n afectados, pero su configuraci\xF3n de disco ser\xE1 eliminada de Crater",action:"Acci\xF3n",edit_file_disk:"Editar disco de ficheros",success_create:"Disco a\xF1adido satisfactoriamente",success_update:"Disco actualizado satisfactoriamente",error:"Error al a\xF1adir disco",deleted_message:"Disco de archivo borrado correctamente",disk_variables_save_successfully:"Disco configurado correctamente",disk_variables_save_error:"La configuraci\xF3n del disco ha fallado.",invalid_disk_credentials:"Credencial no v\xE1lida del disco seleccionado"}},ko={account_info:"Informaci\xF3n de la cuenta",account_info_desc:"Los detalles a continuaci\xF3n se utilizar\xE1n para crear la cuenta principal de administrador. Tambi\xE9n puede cambiar los detalles en cualquier momento despu\xE9s de iniciar sesi\xF3n.",name:"Nombre",email:"Correo",password:"Contrase\xF1a",confirm_password:"Confirmar contrase\xF1a",save_cont:"Guardar y continuar",company_info:"Informaci\xF3n de la empresa",company_info_desc:"Esta informaci\xF3n se mostrar\xE1 en las facturas. Tenga en cuenta que puede editar esto m\xE1s adelante en la p\xE1gina de configuraci\xF3n.",company_name:"nombre de empresa",company_logo:"Logo de la compa\xF1\xEDa",logo_preview:"Vista previa del logotipo",preferences:"Preferencias",preferences_desc:"Preferencias predeterminadas para el sistema.",country:"Pa\xEDs",state:"Estado",city:"Ciudad",address:"Direcci\xF3n",street:"Calle1 | Calle2",phone:"Tel\xE9fono",zip_code:"C\xF3digo postal",go_back:"Regresa",currency:"Moneda",language:"Idioma",time_zone:"Zona horaria",fiscal_year:"A\xF1o financiero",date_format:"Formato de fecha",from_address:"Desde la Direcci\xF3n",username:"Nombre de usuario",next:"Siguiente",continue:"Continuar",skip:"Saltar",database:{database:"URL del sitio y base de datose",connection:"Conexi\xF3n de base de datos",host:"Host de la base de datos",port:"Puerto de la base de datos",password:"Contrase\xF1a de la base de datos",app_url:"URL de la aplicaci\xF3n",app_domain:"Dominio",username:"Nombre de usuario de la base de datos",db_name:"Nombre de la base de datos",db_path:"Ruta de la base de datos",desc:"Cree una base de datos en su servidor y establezca las credenciales utilizando el siguiente formulario."},permissions:{permissions:"Permisos",permission_confirm_title:"\xBFEst\xE1s seguro de que quieres continuar?",permission_confirm_desc:"Error de verificaci\xF3n de permisos de carpeta",permission_desc:"A continuaci\xF3n se muestra la lista de permisos de carpeta necesarios para que la aplicaci\xF3n funcione. Si la verificaci\xF3n de permisos falla, aseg\xFArese de actualizar los permisos de su carpeta."},mail:{host:"Host de correo",port:"Puerto de correo",driver:"Conductor de correo",secret:"Secreto",mailgun_secret:"Mailgun Secreto",mailgun_domain:"Dominio",mailgun_endpoint:"Mailgun endpoint",ses_secret:"Secreto SES",ses_key:"Clave SES",password:"Contrase\xF1a de correo",username:"Nombre de usuario de correo",mail_config:"Configuraci\xF3n de correo",from_name:"Del nombre del correo",from_mail:"Desde la direcci\xF3n de correo",encryption:"Cifrado de correo",mail_config_desc:"Los detalles a continuaci\xF3n se utilizar\xE1n para actualizar el entorno de correo. Tambi\xE9n puede cambiar los detalles en cualquier momento despu\xE9s de iniciar sesi\xF3n."},req:{system_req:"Requisitos del sistema",php_req_version:"Php (versi\xF3n {version} necesario)",check_req:"Consultar requisitos",system_req_desc:"Crater tiene algunos requisitos de servidor. Aseg\xFArese de que su servidor tenga la versi\xF3n de php requerida y todas las extensiones mencionadas a continuaci\xF3n."},errors:{migrate_failed:"La migraci\xF3n fall\xF3",database_variables_save_error:"No se puede conectar a la base de datos con los valores proporcionados.",mail_variables_save_error:"La configuraci\xF3n del correo electr\xF3nico ha fallado.",connection_failed:"Conexi\xF3n de base de datos fallida",database_should_be_empty:"La base de datos debe estar vac\xEDa"},success:{mail_variables_save_successfully:"Correo electr\xF3nico configurado correctamente",database_variables_save_successfully:"Base de datos configurada con \xE9xito."}},wo={invalid_phone:"Numero de telefono invalido",invalid_url:"URL no v\xE1lida (por ejemplo, http://www.crater.com)",invalid_domain_url:"URL no v\xE1lida (por ejemplo, crater.com)",required:"Se requiere campo",email_incorrect:"Email incorrecto.",email_already_taken:"Este email ya est\xE1 en uso",email_does_not_exist:"El usuario con el correo electr\xF3nico dado no existe",item_unit_already_taken:"El nombre de la unidad ya est\xE1 en uso",payment_mode_already_taken:"El modo de pago ya ha sido tomado",send_reset_link:"Enviar enlace de restablecimiento",not_yet:"\xBFA\xFAn no? Env\xEDalo de nuevo",password_min_length:"La contrase\xF1a debe contener {count} caracteres",name_min_length:"El nombre debe tener al menos {count} letras.",enter_valid_tax_rate:"Ingrese una tasa impositiva v\xE1lida",numbers_only:"Solo n\xFAmeros.",characters_only:"Solo caracteres.",password_incorrect:"Las contrase\xF1as deben ser id\xE9nticas",password_length:"La contrase\xF1a debe tener 5 caracteres de longitud.",qty_must_greater_than_zero:"La cantidad debe ser mayor que cero.",price_greater_than_zero:"El precio debe ser mayor que cero.",payment_greater_than_zero:"El pago debe ser mayor que cero.",payment_greater_than_due_amount:"El pago ingresado es mayor a la cantidad debida de esta factura.",quantity_maxlength:"La cantidad no debe ser mayor de 20 d\xEDgitos.",price_maxlength:"El precio no debe ser mayor de 20 d\xEDgitos.",price_minvalue:"El precio debe ser mayor que 0 d\xEDgitos",amount_maxlength:"La cantidad no debe ser mayor de 20 d\xEDgitos.",amount_minvalue:"La cantidad debe ser mayor que 0 d\xEDgitos",description_maxlength:"La descripci\xF3n no debe tener m\xE1s de 255 caracteres.",subject_maxlength:"El asunto no debe tener m\xE1s de 100 caracteres.",message_maxlength:"El mensaje no debe tener m\xE1s de 255 caracteres.",maximum_options_error:"M\xE1ximo de {max} opciones seleccionadas. Primero elimine una opci\xF3n seleccionada para seleccionar otra.",notes_maxlength:"Las notas no deben tener m\xE1s de 255 caracteres.",address_maxlength:"La direcci\xF3n no debe tener m\xE1s de 255 caracteres.",ref_number_maxlength:"El n\xFAmero de referencia no debe tener m\xE1s de 255 caracteres.",prefix_maxlength:"El prefijo no debe tener m\xE1s de 5 caracteres.",something_went_wrong:"Algo fue mal"},xo="Presupuestar",zo="N\xFAmero de Presupuesto",So="Fecha presupuesto",jo="Fecha de caducidad",Po="Factura",Do="Numero de factura",Co="Fecha de la factura",Ao="Fecha final",Eo="Notas",No="Art\xEDculos",To="Cantidad",Io="Precio",$o="Descuento",Ro="Cantidad",Fo="Subtotal",Mo="Total",Vo="Payment",Bo="RECIBO DE PAGO",Oo="Fecha de pago",Lo="Numero de pago",Uo="Modo de pago",Ko="Monto Recibido",qo="INFORME DE GASTOS",Zo="GASTO TOTAL",Wo="INFORME PERDIDAS & GANANCIAS",Ho="Sales Customer Report",Go="Sales Item Report",Yo="Tax Summary Report",Jo="INGRESO",Xo="GANANCIA NETA",Qo="Informe de ventas: Por cliente",er="VENTAS TOTALES",tr="Informe de ventas: por art\xEDculo",ar="INFORME DE IMPUESTOS",sr="TOTAL IMPUESTOS",nr="Tipos de impuestos",ir="Gastos",or="Cobrar a,",rr="Enviar a,",dr="Recibido desde:",lr="Imposto";var cr={navigation:io,general:oo,dashboard:ro,tax_types:lo,global_search:co,customers:_o,items:uo,estimates:mo,invoices:po,payments:go,expenses:fo,login:ho,users:vo,reports:yo,settings:bo,wizard:ko,validation:wo,pdf_estimate_label:xo,pdf_estimate_number:zo,pdf_estimate_date:So,pdf_estimate_expire_date:jo,pdf_invoice_label:Po,pdf_invoice_number:Do,pdf_invoice_date:Co,pdf_invoice_due_date:Ao,pdf_notes:Eo,pdf_items_label:No,pdf_quantity_label:To,pdf_price_label:Io,pdf_discount_label:$o,pdf_amount_label:Ro,pdf_subtotal:Fo,pdf_total:Mo,pdf_payment_label:Vo,pdf_payment_receipt_label:Bo,pdf_payment_date:Oo,pdf_payment_number:Lo,pdf_payment_mode:Uo,pdf_payment_amount_received_label:Ko,pdf_expense_report_label:qo,pdf_total_expenses_label:Zo,pdf_profit_loss_label:Wo,pdf_sales_customers_label:Ho,pdf_sales_items_label:Go,pdf_tax_summery_label:Yo,pdf_income_label:Jo,pdf_net_profit_label:Xo,pdf_customer_sales_report:Qo,pdf_total_sales_label:er,pdf_item_sales_label:tr,pdf_tax_report_label:ar,pdf_total_tax_label:sr,pdf_tax_types_label:nr,pdf_expenses_label:ir,pdf_bill_to:or,pdf_ship_to:rr,pdf_received_from:dr,pdf_tax_label:lr};const _r={dashboard:"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",items:"\u0627\u0644\u0623\u0635\u0646\u0627\u0641",invoices:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",expenses:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",estimates:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",payments:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",reports:"\u0627\u0644\u062A\u0642\u0627\u0631\u064A\u0631",settings:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",logout:"\u062E\u0631\u0648\u062C",users:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646"},ur={add_company:"\u0623\u0636\u0641 \u0634\u0631\u0643\u0629",view_pdf:"\u0639\u0631\u0636 PDF",copy_pdf_url:"Copy PDF Url",download_pdf:"\u062A\u0646\u0632\u064A\u0644 PDF",save:"\u062D\u0641\u0638",create:"\u062E\u0644\u0642",cancel:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",update:"\u062A\u062D\u062F\u064A\u062B",deselect:"Deselect",download:"\u062A\u0646\u0632\u064A\u0644",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",to_date:"\u0625\u0644\u0649 \u062A\u0627\u0631\u064A\u062E",from:"\u0645\u0646",to:"\u0625\u0644\u0649",sort_by:"\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628",ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",descending:"\u062A\u0646\u0627\u0632\u0644\u064A",subject:"\u0645\u0648\u0636\u0648\u0639",body:"\u0627\u0644\u062C\u0633\u0645",message:"\u0631\u0633\u0627\u0644\u0629",send:"\u0625\u0631\u0633\u0627\u0644",go_back:"\u0625\u0644\u0649 \u0627\u0644\u062E\u0644\u0641",back_to_login:"\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644\u061F",home:"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",filter:"\u062A\u0635\u0641\u064A\u0629",delete:"\u062D\u0630\u0641",edit:"\u062A\u0639\u062F\u064A\u0644",view:"\u0639\u0631\u0636",add_new_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641 \u062C\u062F\u064A\u062F",clear_all:"\u0645\u0633\u062D \u0627\u0644\u0643\u0644",showing:"\u0639\u0631\u0636",of:"\u0645\u0646",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",subtotal:"\u0627\u0644\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0641\u0631\u0639\u064A",discount:"\u062E\u0635\u0645",fixed:"\u062B\u0627\u0628\u062A",percentage:"\u0646\u0633\u0628\u0629",tax:"\u0636\u0631\u064A\u0628\u0629",total_amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",bill_to:"\u0645\u0637\u0644\u0648\u0628 \u0645\u0646",ship_to:"\u064A\u0634\u062D\u0646 \u0625\u0644\u0649",due:"\u0648\u0627\u062C\u0628\u0629 \u0627\u0644\u0633\u062F\u0627\u062F",draft:"\u0645\u0633\u0648\u062F\u0629",sent:"\u0645\u0631\u0633\u0644\u0629",all:"\u0627\u0644\u0643\u0644",select_all:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0644",choose_file:"\u0627\u0636\u063A\u0637 \u0647\u0646\u0627 \u0644\u0627\u062E\u062A\u064A\u0627\u0631 \u0645\u0644\u0641",choose_template:"\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0642\u0627\u0644\u0628",choose:"\u0627\u062E\u062A\u0631",remove:"\u0625\u0632\u0627\u0644\u0629",powered_by:"\u062A\u0635\u0645\u064A\u0645",bytefury:"\u0628\u0627\u062A\u0631\u0641\u0648\u0631\u064A",select_a_status:"\u0627\u062E\u062A\u0631 \u0627\u0644\u062D\u0627\u0644\u0629",select_a_tax:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",search:"\u0628\u062D\u062B",are_you_sure:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F?",list_is_empty:"\u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0641\u0627\u0631\u063A\u0629.",no_tax_found:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0636\u0631\u064A\u0628\u0629!",four_zero_four:"404",you_got_lost:"\u0639\u0641\u0648\u0627\u064B! \u064A\u0628\u062F\u0648 \u0623\u0646\u0643 \u0642\u062F \u062A\u0647\u062A!",go_home:"\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",test_mail_conf:"\u0627\u062E\u062A\u0628\u0627\u0631 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F",send_mail_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0628\u0646\u062C\u0627\u062D",setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0628\u0646\u062C\u0627\u062D",select_state:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",select_country:"\u0627\u062E\u062A\u0631 \u0627\u0644\u062F\u0648\u0644\u0629",select_city:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u062F\u064A\u0646\u0629",street_1:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 1",street_2:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 2",action_failed:"\u0641\u0634\u0644\u062A \u0627\u0644\u0639\u0645\u0644\u064A\u0629",retry:"\u0623\u0639\u062F \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",choose_note:"\u0627\u062E\u062A\u0631 \u0645\u0644\u0627\u062D\u0638\u0629",no_note_found:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",insert_note:"\u0623\u062F\u062E\u0644 \u0645\u0644\u0627\u062D\u0638\u0629"},mr={select_year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629",cards:{due_amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",invoices:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",estimates:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A"},chart_info:{total_sales:"\u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",total_receipts:"\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u062F\u062E\u0644",total_expense:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",net_income:"\u0635\u0627\u0641\u064A \u0627\u0644\u062F\u062E\u0644",year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629"},monthly_chart:{title:"\u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A \u0648\u0627\u0644\u0646\u0641\u0642\u0627\u062A"},recent_invoices_card:{title:"\u0641\u0648\u0627\u062A\u064A\u0631 \u0645\u0633\u062A\u062D\u0642\u0629",due_on:"\u0645\u0633\u062A\u062D\u0642\u0629 \u0641\u064A",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",view_all:"\u0639\u0631\u0636 \u0627\u0644\u0643\u0644"},recent_estimate_card:{title:"\u0623\u062D\u062F\u062B \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",view_all:"\u0639\u0631\u0636 \u0627\u0644\u0643\u0644"}},pr={name:"\u0627\u0644\u0627\u0633\u0645",description:"\u0627\u0644\u0648\u0635\u0641",percent:"\u0646\u0633\u0628\u0647 \u0645\u0626\u0648\u064A\u0647",compound_tax:"\u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0627\u0644\u0645\u0631\u0643\u0628\u0629"},gr={search:"\u0628\u062D\u062B...",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",users:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",no_results_found:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0646\u062A\u0627\u0626\u062C"},fr={title:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",add_customer:"\u0625\u0636\u0627\u0641\u0629 \u0639\u0645\u064A\u0644",contacts_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0639\u0645\u0644\u0627\u0621",name:"\u0627\u0644\u0627\u0633\u0645",mail:"\u0627\u0644\u0628\u0631\u064A\u062F",statement:"\u0627\u0644\u0628\u064A\u0627\u0646",display_name:"\u0627\u0633\u0645 \u0627\u0644\u0639\u0631\u0636",primary_contact_name:"\u0627\u0633\u0645 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",contact_name:"\u0627\u0633\u0645 \u062A\u0648\u0627\u0635\u0644 \u0622\u062E\u0631",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",website:"\u0645\u0648\u0642\u0639 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A",overview:"\u0627\u0633\u062A\u0639\u0631\u0627\u0636",enable_portal:"Enable Portal",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",zip_code:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",added_on:"\u0623\u0636\u064A\u0641 \u0641\u064A",action:"\u0625\u062C\u0631\u0627\u0621",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",street_number:"\u0631\u0642\u0645 \u0627\u0644\u0634\u0627\u0631\u0639",primary_currency:"\u0627\u0644\u0639\u0645\u0644\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",description:"\u0627\u0644\u0648\u0635\u0641",add_new_customer:"\u0625\u0636\u0627\u0641\u0629 \u0639\u0645\u064A\u0644 \u062C\u062F\u064A\u062F",save_customer:"\u062D\u0641\u0638 \u0627\u0644\u0639\u0645\u064A\u0644",update_customer:"\u062A\u062D\u062F\u064A\u062B \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0639\u0645\u064A\u0644",customer:"\u0639\u0645\u064A\u0644 | \u0639\u0645\u0644\u0627\u0621",new_customer:"\u0639\u0645\u064A\u0644 \u062C\u062F\u064A\u062F",edit_customer:"\u062A\u0639\u062F\u064A\u0644 \u0639\u0645\u064A\u0644",basic_info:"\u0645\u0639\u0644\u0648\u0627\u062A \u0623\u0633\u0627\u0633\u064A\u0629",billing_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u062A\u0631\u0629",shipping_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646",copy_billing_address:"\u0646\u0633\u062E \u0645\u0646 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u062A\u0631\u0629",no_customers:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0639\u0645\u0644\u0627\u0621 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",no_customers_found:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u0621!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"\u0633\u0648\u0641 \u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0639\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0639\u0645\u0644\u0627\u0621.",primary_display_name:"\u0627\u0633\u0645 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",select_currency:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0639\u0645\u0644\u0629",select_a_customer:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0639\u0645\u064A\u0644",type_or_click:"\u0627\u0643\u062A\u0628 \u0623\u0648 \u0627\u0636\u063A\u0637 \u0644\u0644\u0627\u062E\u062A\u064A\u0627\u0631",new_transaction:"\u0645\u0639\u0627\u0645\u0644\u0629 \u062C\u062F\u064A\u062F\u0629",no_matching_customers:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0639\u0645\u0644\u0627\u0621 \u0645\u0637\u0627\u0628\u0642\u064A\u0646!",phone_number:"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641",create_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0625\u0646\u0634\u0627\u0621",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0630\u0627 \u0627\u0644\u0639\u0645\u064A\u0644 \u0648\u062C\u0645\u064A\u0639 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0648\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0648\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629. | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0624\u0644\u0627\u0621 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0648\u062C\u0645\u064A\u0639 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0648\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0648\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629.",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0639\u0645\u064A\u0644 \u0628\u0646\u062C\u0627\u062D"},hr={title:"\u0627\u0644\u0623\u0635\u0646\u0627\u0641",items_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0623\u0635\u0646\u0627\u0641",name:"\u0627\u0644\u0627\u0633\u0645",unit:"\u0627\u0644\u0648\u062D\u062F\u0629",description:"\u0627\u0644\u0648\u0635\u0641",added_on:"\u0623\u0636\u064A\u0641 \u0641\u064A",price:"\u0627\u0644\u0633\u0639\u0631",date_of_creation:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0625\u0646\u0634\u0627\u0621",not_selected:"No item selected",action:"\u0625\u062C\u0631\u0627\u0621",add_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641",save_item:"\u062D\u0641\u0638 \u0627\u0644\u0635\u0646\u0641",update_item:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0635\u0646\u0641",item:"\u0635\u0646\u0641 | \u0623\u0635\u0646\u0627\u0641",add_new_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641 \u062C\u062F\u064A\u062F",new_item:"\u062C\u062F\u064A\u062F \u0635\u0646\u0641",edit_item:"\u062A\u062D\u062F\u064A\u062B \u0635\u0646\u0641",no_items:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0623\u0635\u0646\u0627\u0641 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_items:"\u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0633\u0648\u0641 \u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0623\u0635\u0646\u0627\u0641.",select_a_unit:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0648\u062D\u062F\u0629",taxes:"\u0627\u0644\u0636\u0631\u0627\u0626\u0628",item_attached_message:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u062D\u0630\u0641 \u0627\u0644\u0635\u0646\u0641 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0627 \u0627\u0644\u0635\u0646\u0641 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u0623\u0635\u0646\u0627\u0641",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0635\u0646\u0641 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0635\u0646\u0641 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0635\u0646\u0641 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0623\u0635\u0646\u0627\u0641 \u0628\u0646\u062C\u0627\u062D"},vr={title:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",estimate:"\u062A\u0642\u062F\u064A\u0631 | \u062A\u0642\u062F\u064A\u0631\u0627\u062A",estimates_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",days:"{days} \u0623\u064A\u0627\u0645",months:"{months} \u0623\u0634\u0647\u0631",years:"{years} \u0633\u0646\u0648\u0627\u062A",all:"\u0627\u0644\u0643\u0644",paid:"\u0645\u062F\u0641\u0648\u0639",unpaid:"\u063A\u064A\u0631 \u0645\u062F\u0641\u0648\u0639",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",ref_no:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639.",number:"\u0627\u0644\u0631\u0642\u0645",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",partially_paid:"\u0645\u062F\u0641\u0648\u0639 \u062C\u0632\u0626\u064A\u0627",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",discount:"\u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",estimate_number:"\u0631\u0642\u0645 \u062A\u0642\u062F\u064A\u0631",ref_number:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639",contact:"\u062A\u0648\u0627\u0635\u0644",add_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641",date:"\u062A\u0627\u0631\u064A\u062E",due_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",expiry_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0629",status:"\u0627\u0644\u062D\u0627\u0644\u0629",add_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",tax:"\u0636\u0631\u064A\u0628\u0629",estimate_template:"\u0642\u0627\u0644\u0628",convert_to_invoice:"\u062A\u062D\u0648\u064A\u0644 \u0625\u0644\u0649 \u0641\u0627\u062A\u0648\u0631\u0629",mark_as_sent:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644",send_estimate:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",resend_estimate:"\u0625\u0639\u0627\u062F\u0629 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",record_payment:"\u062A\u0633\u062C\u064A\u0644 \u0645\u062F\u0641\u0648\u0627\u062A",add_estimate:"\u0625\u0636\u0627\u0641\u0629 \u062A\u0642\u062F\u064A\u0631",save_estimate:"\u062D\u0641\u0638 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_conversion:"\u0647\u0644 \u062A\u0631\u064A\u062F \u062A\u062D\u0648\u064A\u0644 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0625\u0644\u0649 \u0641\u0627\u062A\u0648\u0631\u0629\u061F",conversion_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",confirm_send_estimate:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0625\u0644\u0649 \u0627\u0644\u0639\u0645\u064A\u0644",confirm_mark_as_sent:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_mark_as_accepted:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0642\u0628\u0648\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_mark_as_rejected:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0641\u0648\u0636 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",no_matching_estimates:"\u0644\u0627 \u064A\u0648\u062C\u062F \u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629!",mark_as_sent_successfully:"\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644 \u0628\u0646\u062C\u0627\u062D",send_estimate_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",errors:{required:"\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628"},accepted:"\u0645\u0642\u0628\u0648\u0644",rejected:"Rejected",sent:"\u0645\u0631\u0633\u0644",draft:"\u0645\u0633\u0648\u062F\u0629",declined:"\u0645\u0631\u0641\u0648\u0636",new_estimate:"\u062A\u0642\u062F\u064A\u0631 \u062C\u062F\u064A\u062F",add_new_estimate:"\u0625\u0636\u0627\u0641\u0629 \u062A\u0642\u062F\u064A\u0631 \u062C\u062F\u064A\u062F",update_Estimate:"\u062A\u062D\u062F\u064A\u062B \u062A\u0642\u062F\u064A\u0631",edit_estimate:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",items:"\u0627\u0644\u0623\u0635\u0646\u0627\u0641",Estimate:"\u062A\u0642\u062F\u064A\u0631 | \u062A\u0642\u062F\u064A\u0631\u0627\u062A",add_new_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629 \u062C\u062F\u064A\u062F\u0629",no_estimates:"\u0644\u0627 \u064A\u0648\u062C\u062F \u062A\u0642\u062F\u064A\u0631\u0627\u062A \u062D\u0627\u0644\u064A\u0627\u064B!",list_of_estimates:"\u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0633\u0648\u0641 \u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A.",mark_as_rejected:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0641\u0648\u0636",mark_as_accepted:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0642\u0631\u0648\u0621",marked_as_accepted_message:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0643\u0645\u0642\u0628\u0648\u0644",marked_as_rejected_message:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0643\u0645\u0631\u0641\u0648\u0636",confirm_delete:"\u0644\u0646 \u062A\u0633\u062A\u0637\u064A\u0639 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 | \u0644\u0646 \u062A\u0633\u062A\u0637\u064A\u0639 \u0625\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0647 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0628\u0646\u062C\u0627\u062D",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!",item:{title:"\u0627\u0633\u0645 \u0627\u0644\u0635\u0646\u0641",description:"\u0627\u0644\u0648\u0635\u0641",quantity:"\u0627\u0644\u0643\u0645\u064A\u0629",price:"\u0627\u0644\u0633\u0639\u0631",discount:"\u0627\u0644\u062E\u0635\u0645",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",total_discount:"\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",tax:"\u0627\u0644\u0636\u0631\u064A\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",select_an_item:"\u0627\u0643\u062A\u0628 \u0623\u0648 \u0627\u062E\u062A\u0631 \u0627\u0644\u0635\u0646\u0641",type_item_description:"\u0627\u0643\u062A\u0628 \u0648\u0635\u0641 \u0627\u0644\u0635\u0646\u0641 (\u0627\u062E\u062A\u064A\u0627\u0631\u064A)"}},yr={title:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",invoices_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",days:"{days} \u0623\u064A\u0627\u0645",months:"{months} \u0623\u0634\u0647\u0631",years:"{years} \u0633\u0646\u0648\u0627\u062A",all:"\u0627\u0644\u0643\u0644",paid:"\u0645\u062F\u0641\u0648\u0639",unpaid:"\u063A\u064A\u0631 \u0645\u062F\u0641\u0648\u0639",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",paid_status:"\u062D\u0627\u0644\u0629 \u0627\u0644\u062F\u0641\u0639",ref_no:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639.",number:"\u0627\u0644\u0631\u0642\u0645",amount_due:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",partially_paid:"\u0645\u062F\u0641\u0648\u0639 \u062C\u0632\u0626\u064A\u0627\u064B",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",discount:"\u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",invoice:"\u0641\u0627\u062A\u0648\u0631\u0629 | \u0641\u0648\u0627\u062A\u064A\u0631",invoice_number:"\u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",ref_number:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639",contact:"\u062A\u0648\u0627\u0635\u0644",add_item:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0646\u0641",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",due_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",status:"\u0627\u0644\u062D\u0627\u0644\u0629",add_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",view:"\u0639\u0631\u0636",send_invoice:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",resend_invoice:"\u0625\u0639\u0627\u062F\u0629 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",invoice_template:"\u0642\u0627\u0644\u0628 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",template:"\u0642\u0627\u0644\u0628",mark_as_sent:"\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644",confirm_send_invoice:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0623\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0625\u0644\u0649 \u0627\u0644\u0639\u0645\u064A\u0644",invoice_mark_as_sent:"\u0633\u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0643\u0645\u0631\u0633\u0644\u0629",confirm_send:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0623\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0625\u0644\u0649 \u0627\u0644\u0639\u0645\u064A\u0644",invoice_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",record_payment:"\u062A\u0633\u062C\u064A\u0644 \u0645\u062F\u0641\u0648\u0639\u0627\u062A",add_new_invoice:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629",update_expense:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0635\u0631\u0648\u0641\u0627\u062A",edit_invoice:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",new_invoice:"\u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629",save_invoice:"\u062D\u0641\u0638 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",update_invoice:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",add_new_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629 \u062C\u062F\u064A\u062F\u0629",no_invoices:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0641\u0648\u0627\u062A\u064A\u0631 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_invoices:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 .",select_invoice:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",no_matching_invoices:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0641\u0648\u0627\u062A\u064A\u0631 \u0645\u0637\u0627\u0628\u0642\u0629!",mark_as_sent_successfully:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0643\u0645\u0631\u0633\u0644\u0629 \u0628\u0646\u062C\u0627\u062D",invoice_sent_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",cloned_successfully:"\u062A\u0645 \u0627\u0633\u062A\u0646\u0633\u0627\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",clone_invoice:"\u0627\u0633\u062A\u0646\u0633\u0627\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",confirm_clone:"\u0633\u064A\u062A\u0645 \u0627\u0633\u062A\u0646\u0633\u0627\u062E \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0641\u064A \u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629",item:{title:"\u0627\u0633\u0645 \u0627\u0644\u0635\u0646\u0641",description:"\u0627\u0644\u0648\u0635\u0641",quantity:"\u0627\u0644\u0643\u0645\u064A\u0629",price:"\u0627\u0644\u0633\u0639\u0631",discount:"\u0627\u0644\u062E\u0635\u0645",total:"\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",total_discount:"\u0625\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u062E\u0635\u0645",sub_total:"\u062D\u0627\u0635\u0644 \u0627\u0644\u062C\u0645\u0639",tax:"\u0627\u0644\u0636\u0631\u064A\u0628\u0629",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",select_an_item:"\u0627\u0643\u062A\u0628 \u0623\u0648 \u0627\u0646\u0642\u0631 \u0644\u0627\u062E\u062A\u064A\u0627\u0631 \u0635\u0646\u0641",type_item_description:"\u0648\u0635\u0641 \u0627\u0644\u0635\u0646\u0641 (\u0627\u062E\u062A\u064A\u0627\u0631\u064A)"},confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0639\u062F \u0647\u0630\u0647 \u0627\u0644\u0625\u062C\u0631\u0627\u0621 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0628\u0639\u062F \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",marked_as_sent_message:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!",invalid_due_amount_message:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0646\u0647\u0627\u0626\u064A \u0644\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0644\u0627 \u064A\u0645\u0643\u0646 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0642\u0644 \u0645\u0646 \u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628 \u0644\u0647\u0627. \u0631\u062C\u0627\u0621\u0627\u064B \u062D\u062F\u062B \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0623\u0648 \u0642\u0645 \u0628\u062D\u0630\u0641 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u0631\u062A\u0628\u0637\u0629 \u0628\u0647\u0627 \u0644\u0644\u0627\u0633\u062A\u0645\u0631\u0627\u0631."},br={title:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",payments_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",record_payment:"\u062A\u0633\u062C\u064A\u0644 \u062F\u0641\u0639\u0629",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",payment_number:"\u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",payment_mode:"\u0646\u0648\u0639 \u0627\u0644\u062F\u0641\u0639\u0629",invoice:"\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",note:"\u0645\u0644\u0627\u062D\u0638\u0629",add_payment:"\u0625\u0636\u0627\u0641\u0629 \u062F\u0641\u0639\u0629",new_payment:"\u062F\u0641\u0639\u0629 \u062C\u062F\u064A\u062F\u0629",edit_payment:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u062F\u0641\u0639\u0629",view_payment:"\u0639\u0631\u0636 \u0627\u0644\u062F\u0641\u0639\u0629",add_new_payment:"\u0625\u0636\u0627\u0641\u0629 \u062F\u0641\u0639\u0629 \u062C\u062F\u064A\u062F\u0629",send_payment_receipt:"Send Payment Receipt",send_payment:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062F\u0641\u0639\u0629",save_payment:"\u062D\u0641\u0638 \u0627\u0644\u062F\u0641\u0639\u0629",update_payment:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062F\u0641\u0639\u0629",payment:"\u062F\u0641\u0639\u0629 | \u0645\u062F\u0641\u0648\u0639\u0627\u062A",no_payments:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629!",list_of_payments:"\u0633\u0648\u0641 \u062A\u062D\u062A\u0648\u064A \u0647\u0630\u0647 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0639\u0644\u0649 \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631.",select_payment_mode:"\u0627\u062E\u062A\u0631 \u0637\u0631\u064A\u0642\u0629 \u0627\u0644\u062F\u0641\u0639",confirm_mark_as_sent:"\u0633\u064A\u062A\u0645 \u0627\u0644\u062A\u062D\u062F\u064A\u062F \u0643\u0645\u0631\u0633\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",confirm_send_payment:"This payment will be sent via email to the customer",send_payment_successfully:"Payment sent successfully",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!",confirm_delete:"\u0644\u0646 \u062A\u0643\u0648\u0646 \u0642\u0627\u062F\u0631 \u0639\u0644\u0649 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u062F\u0641\u0639\u0629 | \u0644\u0646 \u062A\u0643\u0648\u0646 \u0642\u0627\u062F\u0631\u0627\u064B \u0639\u0644\u0649 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0628\u0646\u062C\u0627\u062D",invalid_amount_message:"\u0642\u064A\u0645\u0629 \u0627\u0644\u062F\u0641\u0639\u0629 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D\u0629!"},kr={title:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",expenses_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",select_a_customer:"\u062D\u062F\u062F \u0639\u0645\u064A\u0644\u0627\u064B",expense_title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",customer:"\u0627\u0644\u0639\u0645\u064A\u0644",contact:"\u062A\u0648\u0627\u0635\u0644",category:"\u0627\u0644\u0641\u0626\u0629",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",expense_date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",description:"\u0627\u0644\u0648\u0635\u0641",receipt:"\u0633\u0646\u062F \u0627\u0644\u0642\u0628\u0636",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",action:"\u0625\u062C\u0631\u0627\u0621",not_selected:"Not selected",note:"\u0645\u0644\u0627\u062D\u0638\u0629",category_id:"\u0631\u0645\u0632 \u0627\u0644\u0641\u0626\u0629",date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0646\u0641\u0642\u0627\u062A",add_expense:"\u0623\u0636\u0641 \u0646\u0641\u0642\u0627\u062A",add_new_expense:"\u0623\u0636\u0641 \u0646\u0641\u0642\u0627\u062A \u062C\u062F\u064A\u062F\u0629",save_expense:"\u062D\u0641\u0638 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",update_expense:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0641\u0642\u0627\u062A",download_receipt:"\u062A\u0646\u0632\u064A\u0644 \u0627\u0644\u0633\u0646\u062F",edit_expense:"\u062A\u0639\u062F\u064A\u0644 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",new_expense:"\u0646\u0641\u0642\u0627\u062A \u062C\u062F\u064A\u062F\u0629",expense:"\u0625\u0646\u0641\u0627\u0642 | \u0646\u0641\u0642\u0627\u062A",no_expenses:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0646\u0641\u0642\u0627\u062A \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_expenses:"\u0647\u0630\u0647 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0633\u062A\u062D\u062A\u0648\u064A \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0627 \u0627\u0644\u0625\u0646\u0641\u0627\u0642 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0647\u0630\u0647 \u0627\u0644\u0646\u0641\u0642\u0627\u062A",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",categories:{categories_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0626\u0627\u062A",title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",name:"\u0627\u0644\u0627\u0633\u0645",description:"\u0627\u0644\u0648\u0635\u0641",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",actions:"\u0627\u0644\u0639\u0645\u0644\u064A\u0627\u062A",add_category:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0626\u0645\u0629",new_category:"\u0641\u0626\u0629 \u062C\u062F\u064A\u062F\u0629",category:"\u0641\u0626\u0629 | \u0641\u0626\u0627\u062A",select_a_category:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0641\u0626\u0629"}},wr={email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",forgot_password:"\u0646\u0633\u064A\u062A \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\u061F",or_signIn_with:"\u0623\u0648 \u0633\u062C\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0648\u0627\u0633\u0637\u0629",login:"\u062F\u062E\u0648\u0644",register:"\u062A\u0633\u062C\u064A\u0644",reset_password:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",password_reset_successfully:"\u062A\u0645 \u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0646\u062C\u0627\u062D",enter_email:"\u0623\u062F\u062E\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",enter_password:"\u0623\u0643\u062A\u0628 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",retype_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631"},xr={title:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",users_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646",name:"\u0627\u0633\u0645",description:"\u0648\u0635\u0641",added_on:"\u0648\u0623\u0636\u0627\u0641 \u0641\u064A",date_of_creation:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062E\u0644\u0642",action:"\u0639\u0645\u0644",add_user:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0633\u062A\u062E\u062F\u0645",save_user:"\u062D\u0641\u0638 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",update_user:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",user:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",add_new_user:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0633\u062A\u062E\u062F\u0645 \u062C\u062F\u064A\u062F",new_user:"\u0645\u0633\u062A\u062E\u062F\u0645 \u062C\u062F\u064A\u062F",edit_user:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0639\u0636\u0648",no_users:"\u0644\u0627 \u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u062D\u062A\u0649 \u0627\u0644\u0622\u0646!",list_of_users:"\u0633\u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0639\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646.",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",phone:"\u0647\u0627\u062A\u0641",password:"\u0643\u0644\u0645\u0647 \u0627\u0644\u0633\u0631",user_attached_message:"\u0644\u0627 \u064A\u0645\u0643\u0646 \u062D\u0630\u0641 \u0639\u0646\u0635\u0631 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0630\u0627 \u0627\u0644\u0639\u0646\u0635\u0631 | \u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0647\u0624\u0644\u0627\u0621 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D | \u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0628\u0646\u062C\u0627\u062D"},zr={title:"\u062A\u0642\u0631\u064A\u0631",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",status:"\u0627\u0644\u062D\u0627\u0644\u0629",paid:"\u0645\u062F\u0641\u0648\u0639",unpaid:"\u063A\u064A\u0631 \u0645\u062F\u0641\u0648\u0639",download_pdf:"\u062A\u0646\u0632\u064A\u0644 PDF",view_pdf:"\u0639\u0631\u0636 PDF",update_report:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0642\u0631\u064A\u0631",report:"\u062A\u0642\u0631\u064A\u0631 | \u062A\u0642\u0627\u0631\u064A\u0631",profit_loss:{profit_loss:"\u0627\u0644\u062E\u0633\u0627\u0626\u0631 \u0648\u0627\u0644\u0623\u0631\u0628\u0627\u062D",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E"},sales:{sales:"\u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",report_type:"\u0646\u0648\u0639 \u0627\u0644\u062A\u0642\u0631\u064A\u0631"},taxes:{taxes:"\u0627\u0644\u0636\u0631\u0627\u0626\u0628",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E"},errors:{required:"\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628"},invoices:{invoice:"\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",invoice_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",due_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",contact_name:"\u0627\u0633\u0645 \u0627\u0644\u062A\u0648\u0627\u0635\u0644",status:"\u0627\u0644\u062D\u0627\u0644\u0629"},estimates:{estimate:"\u062A\u0642\u062F\u064A\u0631",estimate_date:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062A\u0642\u062F\u064A\u0631",due_date:"\u0645\u0633\u062A\u062D\u0642 \u0628\u062A\u0627\u0631\u064A\u062E",estimate_number:"\u0631\u0642\u0645 \u0645\u0633\u062A\u062D\u0642",ref_number:"\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",contact_name:"\u0627\u0633\u0645 \u0627\u0644\u062A\u0648\u0627\u0635\u0644",status:"\u0627\u0644\u062D\u0627\u0644\u0629"},expenses:{expenses:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",category:"\u0627\u0644\u0641\u0626\u0629",date:"\u0627\u0644\u062A\u0627\u0631\u064A\u062E",amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",to_date:"\u062D\u062A\u0649 \u062A\u0627\u0631\u064A\u062E",from_date:"\u0645\u0646 \u062A\u0627\u0631\u064A\u062E",date_range:"\u0627\u062E\u062A\u0631 \u0645\u062F\u0649 \u0627\u0644\u062A\u0627\u0631\u064A\u062E"}},Sr={menu_title:{account_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062D\u0633\u0627\u0628",company_information:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0645\u0646\u0634\u0623\u0629",customization:"\u062A\u062E\u0635\u064A\u0635",preferences:"\u062A\u0641\u0636\u064A\u0644\u0627\u062A",notifications:"\u062A\u0646\u0628\u064A\u0647\u0627\u062A",tax_types:"\u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",expense_category:"\u0641\u0626\u0627\u062A \u0627\u0644\u0646\u0641\u0642\u0627\u062A",update_app:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645",backup:"\u062F\u0639\u0645",file_disk:"\u0642\u0631\u0635 \u0627\u0644\u0645\u0644\u0641",custom_fields:"\u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u0645\u062E\u0635\u0635\u0629",payment_modes:"\u0637\u0631\u0642 \u0627\u0644\u062F\u0641\u0639",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A"},title:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A",setting:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A | \u0625\u0639\u062F\u0627\u062F\u0627\u062A",general:"\u0639\u0627\u0645",language:"\u0627\u0644\u0644\u063A\u0629",primary_currency:"\u0627\u0644\u0639\u0645\u0644\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",timezone:"\u0627\u0644\u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",date_format:"\u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",currencies:{title:"\u0627\u0644\u0639\u0645\u0644\u0627\u062A",currency:"\u0627\u0644\u0639\u0645\u0644\u0629 | \u0627\u0644\u0639\u0645\u0644\u0627\u062A",currencies_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0639\u0645\u0644\u0627\u062A",select_currency:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0639\u0645\u0644\u0629",name:"\u0627\u0644\u0627\u0633\u0645",code:"\u0627\u0644\u0645\u0631\u062C\u0639",symbol:"\u0627\u0644\u0631\u0645\u0632",precision:"\u0627\u0644\u062F\u0642\u0629",thousand_separator:"\u0641\u0627\u0635\u0644 \u0627\u0644\u0622\u0644\u0627\u0641",decimal_separator:"\u0627\u0644\u0641\u0627\u0635\u0644\u0629 \u0627\u0644\u0639\u0634\u0631\u064A\u0629",position:"\u0627\u0644\u0645\u0648\u0642\u0639",position_of_symbol:"\u0645\u0648\u0642\u0639 \u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",right:"\u064A\u0645\u064A\u0646",left:"\u064A\u0633\u0627\u0631",action:"\u0625\u062C\u0631\u0627\u0621",add_currency:"\u0623\u0636\u0641 \u0639\u0645\u0644\u0629"},mail:{host:"\u062E\u0627\u062F\u0645 \u0627\u0644\u0628\u0631\u064A\u062F",port:"\u0645\u0646\u0641\u0630 \u0627\u0644\u0628\u0631\u064A\u062F",driver:"\u0645\u0634\u063A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F",secret:"\u0633\u0631\u064A",mailgun_secret:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A \u0644\u0640 Mailgun",mailgun_domain:"\u0627\u0644\u0645\u062C\u0627\u0644",mailgun_endpoint:"\u0627\u0644\u0646\u0647\u0627\u064A\u0629 \u0627\u0644\u0637\u0631\u0641\u064A\u0629 \u0644\u0640 Mailgun",ses_secret:"SES \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A",ses_key:"SES \u0645\u0641\u062A\u0627\u062D",password:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0644\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",mail_config:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",from_name:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0631\u0633\u0644",from_mail:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0644\u0645\u0631\u0633\u0644",encryption:"\u0635\u064A\u063A\u0629 \u0627 \u0644\u062A\u0634\u0641\u064A\u0631",mail_config_desc:"\u0623\u062F\u0646\u0627\u0647 \u0647\u0648 \u0646\u0645\u0648\u0630\u062C \u0644\u062A\u0643\u0648\u064A\u0646 \u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0646 \u0627\u0644\u062A\u0637\u0628\u064A\u0642. \u064A\u0645\u0643\u0646\u0643 \u0623\u064A\u0636\u064B\u0627 \u062A\u0647\u064A\u0626\u0629 \u0645\u0648\u0641\u0631\u064A \u0627\u0644\u062C\u0647\u0627\u062A \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629 \u0645\u062B\u0644 Sendgrid \u0648 SES \u0625\u0644\u062E."},pdf:{title:"PDF \u0625\u0639\u062F\u0627\u062F\u0627\u062A",footer_text:"\u0646\u0635 \u0627\u0644\u062A\u0630\u064A\u064A\u0644",pdf_layout:"\u0627\u062A\u062C\u0627\u0647 \u0635\u0641\u062D\u0629 PDF"},company_info:{company_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629",company_name:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0631\u0643\u0629",company_logo:"\u0634\u0639\u0627\u0631 \u0627\u0644\u0634\u0631\u0643\u0629",section_description:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0639\u0646 \u0634\u0631\u0643\u062A\u0643 \u0633\u064A\u062A\u0645 \u0639\u0631\u0636\u0647\u0627 \u0639\u0644\u0649 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0648\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0648\u0627\u0644\u0645\u0633\u062A\u0646\u062F\u0627\u062A \u0627\u0644\u0623\u062E\u0631\u0649.",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",zip:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",save:"\u062D\u0641\u0638",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629 \u0628\u0646\u062C\u0627\u062D"},custom_fields:{title:"\u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u0645\u062E\u0635\u0635\u0629",section_description:"\u0642\u0645 \u0628\u062A\u062E\u0635\u064A\u0635 \u0641\u0648\u0627\u062A\u064A\u0631\u0643 \u0648\u062A\u0642\u062F\u064A\u0631\u0627\u062A\u0643 \u0648\u0625\u064A\u0635\u0627\u0644\u0627\u062A \u0627\u0644\u062F\u0641\u0639 \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643. \u062A\u0623\u0643\u062F \u0645\u0646 \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u062D\u0642\u0648\u0644 \u0627\u0644\u0645\u0636\u0627\u0641\u0629 \u0623\u062F\u0646\u0627\u0647 \u0641\u064A \u062A\u0646\u0633\u064A\u0642\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 \u0641\u064A \u0635\u0641\u062D\u0629 \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062A\u062E\u0635\u064A\u0635.",add_custom_field:"\u0625\u0636\u0627\u0641\u0629 \u062D\u0642\u0644 \u0645\u062E\u0635\u0635",edit_custom_field:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635",field_name:"\u0627\u0633\u0645 \u0627\u0644\u062D\u0642\u0644",label:"\u0636\u0639 \u0627\u0644\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0646\u0627\u0633\u0628\u0629",type:"\u0646\u0648\u0639",name:"\u0627\u0633\u0645",required:"\u0645\u0637\u0644\u0648\u0628",placeholder:"\u0639\u0646\u0635\u0631 \u0646\u0627\u0626\u0628",help_text:"\u0646\u0635 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629",default_value:"\u0627\u0644\u0642\u064A\u0645\u0629 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629",prefix:"\u0627\u062E\u062A\u0635\u0627\u0631",starting_number:"\u0631\u0642\u0645 \u0627\u0644\u0628\u062F\u0627\u064A\u0629",model:"\u0646\u0645\u0648\u0630\u062C",help_text_description:"\u0623\u062F\u062E\u0644 \u0628\u0639\u0636 \u0627\u0644\u0646\u0635 \u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u0639\u0644\u0649 \u0641\u0647\u0645 \u0627\u0644\u063A\u0631\u0636 \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635.",suffix:"\u0644\u0627\u062D\u0642\u0629",yes:"\u0646\u0639\u0645",no:"\u0644\u0627",order:"\u0637\u0644\u0628",custom_field_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635",already_in_use:"\u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0628\u0646\u062C\u0627\u062D",options:"\u062E\u064A\u0627\u0631\u0627\u062A",add_option:"\u0623\u0636\u0641 \u062E\u064A\u0627\u0631\u0627\u062A",add_another_option:"\u0623\u0636\u0641 \u062E\u064A\u0627\u0631\u064B\u0627 \u0622\u062E\u0631",sort_in_alphabetical_order:"\u0641\u0631\u0632 \u062D\u0633\u0628 \u0627\u0644\u062A\u0631\u062A\u064A\u0628 \u0627\u0644\u0623\u0628\u062C\u062F\u064A",add_options_in_bulk:"\u0623\u0636\u0641 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0628\u0634\u0643\u0644 \u0645\u062C\u0645\u0651\u0639",use_predefined_options:"\u0627\u0633\u062A\u062E\u062F\u0645 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u0645\u0633\u0628\u0642\u064B\u0627",select_custom_date:"\u062D\u062F\u062F \u0627\u0644\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0645\u062E\u0635\u0635",select_relative_date:"\u062D\u062F\u062F \u0627\u0644\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0646\u0633\u0628\u064A",ticked_by_default:"\u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F\u0647 \u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0628\u0646\u062C\u0627\u062D",added_message:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u062D\u0642\u0644 \u0627\u0644\u0645\u062E\u0635\u0635 \u0628\u0646\u062C\u0627\u062D"},customization:{customization:"\u0627\u0644\u062A\u062E\u0635\u064A\u0635",save:"\u062D\u0641\u0638",addresses:{title:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",section_description:"\u064A\u0645\u0643\u0646\u0643 \u0636\u0628\u0637 \u0639\u0646\u0648\u0627\u0646 \u0625\u0631\u0633\u0627\u0644 \u0641\u0648\u0627\u062A\u064A\u0631 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0648\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0634\u062D\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 (\u0645\u0639\u0631\u0648\u0636 \u0641\u064A PDF \u0641\u0642\u0637).",customer_billing_address:"\u0639\u0646\u0648\u0627\u0646 \u0641\u0648\u0627\u062A\u064A\u0631 \u0627\u0644\u0639\u0645\u064A\u0644",customer_shipping_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646 \u0644\u0644\u0639\u0645\u064A\u0644",company_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",insert_fields:"\u0623\u0636\u0641 \u062D\u0642\u0644",contact:"\u062A\u0648\u0627\u0635\u0644",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",display_name:"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0638\u0627\u0647\u0631",primary_contact_name:"\u0645\u0633\u0624\u0648\u0644 \u0627\u0644\u062A\u0648\u0627\u0635\u0644 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",website:"\u0645\u0648\u0642\u0639 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A",name:"\u0627\u0644\u0627\u0633\u0645",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",company_name:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0631\u0643\u0629",address_street_1:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 1",address_street_2:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0627\u0631\u0639 2",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",zip_code:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",address_setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0628\u0646\u062C\u0627\u062D"},updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629 \u0628\u0646\u062C\u0627\u062D",invoices:{title:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",invoice_prefix:"\u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",default_invoice_email_body:"\u0646\u0635 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0644\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",invoice_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",autogenerate_invoice_number:"\u062A\u0631\u0642\u064A\u0645 \u0622\u0644\u064A \u0644\u0644\u0641\u0627\u062A\u0648\u0631\u0629",autogenerate_invoice_number_desc:"\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0622\u0644\u064A \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0646\u0634\u0627\u0621 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627 \u0641\u064A \u0643\u0644 \u0645\u0631\u0629 \u062A\u0642\u0648\u0645 \u0641\u064A\u0647\u0627 \u0628\u0625\u0646\u0634\u0627\u0621 \u0641\u0627\u062A\u0648\u0631\u0629 \u062C\u062F\u064A\u062F\u0629.",enter_invoice_prefix:"\u0623\u062F\u062E\u0644 \u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",terms_and_conditions:"\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u0637",company_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",shipping_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646",billing_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",invoice_settings_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0628\u0646\u062C\u0627\u062D"},estimates:{title:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",estimate_prefix:"\u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",default_estimate_email_body:"\u062A\u0642\u062F\u064A\u0631 \u0646\u0635 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",estimate_settings:"\u0625\u0639\u062F\u0627\u062F\u062A \u0627\u0644\u062A\u0642\u062F\u064A\u0631",autogenerate_estimate_number:"\u062A\u0631\u0642\u064A\u0645 \u0622\u0644\u064A \u0644\u0644\u062A\u0642\u062F\u064A\u0631",estimate_setting_description:"\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0622\u0644\u064A \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0646\u0634\u0627\u0621 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627 \u0641\u064A \u0643\u0644 \u0645\u0631\u0629 \u062A\u0642\u0648\u0645 \u0641\u064A\u0647\u0627 \u0628\u0625\u0646\u0634\u0627\u0621 \u062A\u0642\u062F\u064A\u0631 \u062C\u062F\u064A\u062F.",enter_estimate_prefix:"\u0623\u062F\u062E\u0644 \u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",estimate_setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",company_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",billing_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",shipping_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u062D\u0646"},payments:{title:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",description:"Modes of transaction for payments",payment_prefix:"\u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",default_payment_email_body:"\u0646\u0635 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0644\u062F\u0641\u0639 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",payment_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062F\u0641\u0639\u0629",autogenerate_payment_number:"\u062A\u0631\u0642\u064A\u0645 \u0622\u0644\u064A \u0644\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",payment_setting_description:"\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u062A\u0631\u0642\u064A\u0645 \u0627\u0644\u0622\u0644\u064A \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0646\u0634\u0627\u0621 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u062F\u0641\u0639\u0629 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627 \u0641\u064A \u0643\u0644 \u0645\u0631\u0629 \u062A\u0642\u0648\u0645 \u0641\u064A\u0647\u0627 \u0628\u0625\u0646\u0634\u0627\u0621 \u062F\u0641\u0639\u0629 \u062C\u062F\u064A\u062F\u0629.",enter_payment_prefix:"\u0623\u062F\u062E\u0644 \u0628\u0627\u062F\u0626\u0629 \u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",payment_setting_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",payment_modes:"\u0637\u0631\u0642 \u0627\u0644\u062F\u0641\u0639",add_payment_mode:"\u0623\u0636\u0641 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",edit_payment_mode:"\u062A\u062D\u0631\u064A\u0631 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",mode_name:"\u0627\u0633\u0645 \u0627\u0644\u0648\u0636\u0639",payment_mode_added:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",payment_mode_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639",payment_mode_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639 \u0647\u0630\u0627",already_in_use:"\u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0648\u0636\u0639 \u0627\u0644\u062F\u0641\u0639 \u0628\u0646\u062C\u0627\u062D",company_address_format:"\u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0634\u0631\u0643\u0629",from_customer_address_format:"\u0645\u0646 \u062A\u0646\u0633\u064A\u0642 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0639\u0645\u064A\u0644"},items:{title:"\u0627\u0644\u0639\u0646\u0627\u0635\u0631",units:"\u0627\u0644\u0648\u062D\u062F\u0627\u062A",add_item_unit:"\u0625\u0636\u0627\u0641\u0629 \u0648\u062D\u062F\u0629 \u0639\u0646\u0635\u0631",edit_item_unit:"\u062A\u062D\u0631\u064A\u0631 \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0627\u0635\u0631",unit_name:"\u0625\u0633\u0645 \u0627\u0644\u0648\u062D\u062F\u0629",item_unit_added:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631",item_unit_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631",item_unit_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 \u0647\u0630\u0647",already_in_use:"\u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0648\u062D\u062F\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 \u0628\u0646\u062C\u0627\u062D"},notes:{title:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"\u0645\u0644\u0627\u062D\u0638\u0627\u062A",type:"\u0646\u0648\u0639",add_note:"\u0627\u0636\u0641 \u0645\u0644\u0627\u062D\u0638\u0629",add_new_note:"\u0623\u0636\u0641 \u0645\u0644\u0627\u062D\u0638\u0629 \u062C\u062F\u064A\u062F\u0629",name:"\u0627\u0633\u0645",edit_note:"\u062A\u062D\u0631\u064A\u0631 \u0645\u0630\u0643\u0631\u0629",note_added:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",note_updated:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",note_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0647 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629",already_in_use:"\u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0629 \u0628\u0646\u062C\u0627\u062D"}},account_settings:{profile_picture:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062E\u0635\u064A",name:"\u0627\u0644\u0627\u0633\u0645",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",confirm_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",account_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0633\u0627\u0628",save:"\u062D\u0641\u0638",section_description:"\u064A\u0645\u0643\u0646\u0643 \u062A\u062D\u062F\u064A\u062B \u0627\u0633\u0645\u0643 \u0648\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0648\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0623\u062F\u0646\u0627\u0647.",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062D\u0633\u0627\u0628 \u0628\u0646\u062C\u0627\u062D"},user_profile:{name:"\u0627\u0644\u0627\u0633\u0645",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",confirm_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631"},notification:{title:"\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A",email:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062A \u0625\u0644\u0649",description:"\u0645\u0627 \u0647\u064A \u0625\u0634\u0639\u0627\u0631\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0627\u0644\u062A\u064A \u062A\u0631\u063A\u0628 \u0641\u064A \u062A\u0644\u0642\u064A\u0647\u0627 \u0639\u0646\u062F\u0645\u0627 \u064A\u062A\u063A\u064A\u0631 \u0634\u064A\u0621 \u0645\u0627\u061F",invoice_viewed:"\u062A\u0645 \u0639\u0631\u0636 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",invoice_viewed_desc:"\u0639\u0646\u062F\u0645\u0627 \u064A\u0633\u062A\u0639\u0631\u0636 \u0639\u0645\u064A\u0644\u0643 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0645\u0631\u0633\u0644\u0629 \u0639\u0628\u0631 \u0627\u0644\u0634\u0627\u0634\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629.",estimate_viewed:"\u062A\u0645 \u0639\u0631\u0636 \u0627\u0644\u062A\u0642\u062F\u064A\u0631",estimate_viewed_desc:"\u0639\u0646\u062F\u0645\u0627 \u064A\u0633\u062A\u0639\u0631\u0636 \u0639\u0645\u064A\u0644\u0643 \u0627\u0644\u062A\u0642\u062F\u064A\u0631 \u0627\u0644\u0645\u0631\u0633\u0644\u0629 \u0639\u0628\u0631 \u0627\u0644\u0634\u0627\u0634\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629.",save:"\u062D\u0641\u0638",email_save_message:"\u062A\u0645 \u062D\u0641\u0638 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0628\u0646\u062C\u0627\u062D",please_enter_email:"\u0641\u0636\u0644\u0627\u064B \u0623\u062F\u062E\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A"},tax_types:{title:"\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0636\u0631\u0627\u0626\u0628",add_tax:"\u0623\u0636\u0641 \u0636\u0631\u064A\u0628\u0629",edit_tax:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",description:"\u064A\u0645\u0643\u0646\u0643 \u0625\u0636\u0627\u0641\u0629 \u0623\u0648 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0636\u0631\u0627\u0626\u0628 \u0643\u0645\u0627 \u064A\u062D\u0644\u0648 \u0644\u0643. \u0627\u0644\u0646\u0638\u0627\u0645 \u064A\u062F\u0639\u0645 \u0627\u0644\u0636\u0631\u0627\u0626\u0628 \u0639\u0644\u0649 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0631\u062F\u064A\u0629 \u0648\u0643\u0630\u0644\u0643 \u0639\u0644\u0649 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",add_new_tax:"\u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u064A\u0628\u0629 \u062C\u062F\u064A\u062F\u0629",tax_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0636\u0631\u064A\u0628\u0629",tax_per_item:"\u0636\u0631\u064A\u0628\u0629 \u0639\u0644\u0649 \u0627\u0644\u0635\u0646\u0641",tax_name:"\u0627\u0633\u0645 \u0627\u0644\u0636\u0631\u064A\u0628\u0629",compound_tax:"\u0636\u0631\u064A\u0628\u0629 \u0645\u062C\u0645\u0639\u0629",percent:"\u0646\u0633\u0628\u0629 \u0645\u0624\u0648\u064A\u0629",action:"\u0625\u062C\u0631\u0627\u0621",tax_setting_description:"\u0642\u0645 \u0628\u062A\u0645\u0643\u064A\u0646 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0625\u0636\u0627\u0641\u0629 \u0636\u0631\u0627\u0626\u0628 \u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0641\u0631\u062F\u064A\u0629. \u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A \u060C \u062A\u0636\u0627\u0641 \u0627\u0644\u0636\u0631\u0627\u0626\u0628 \u0645\u0628\u0627\u0634\u0631\u0629 \u0625\u0644\u0649 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0646\u062C\u0627\u062D",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0646\u0648\u0639 \u0627\u0644\u0636\u0631\u064A\u0629 \u0647\u0630\u0627",already_in_use:"\u0636\u0631\u064A\u0628\u0629 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645"},expense_category:{title:"\u0641\u0626\u0627\u062A \u0627\u0644\u0646\u0641\u0642\u0627\u062A",action:"\u0625\u062C\u0631\u0627\u0621",description:"\u0627\u0644\u0641\u0626\u0627\u062A \u0645\u0637\u0644\u0648\u0628\u0629 \u0644\u0625\u0636\u0627\u0641\u0629 \u0625\u062F\u062E\u0627\u0644\u0627\u062A \u0627\u0644\u0646\u0641\u0642\u0627\u062A. \u064A\u0645\u0643\u0646\u0643 \u0625\u0636\u0627\u0641\u0629 \u0623\u0648 \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0647 \u0627\u0644\u0641\u0626\u0627\u062A \u0648\u0641\u0642\u064B\u0627 \u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A\u0643.",add_new_category:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0626\u0629 \u062C\u062F\u064A\u062F\u0629",add_category:"\u0625\u0636\u0627\u0641\u0629 \u0641\u0626\u0629",edit_category:"\u062A\u062D\u0631\u064A\u0631 \u0627\u0644\u0641\u0626\u0629",category_name:"\u0627\u0633\u0645 \u0627\u0644\u0641\u0626\u0629",category_description:"\u0627\u0644\u0648\u0635\u0641",created_message:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0628\u0646\u062C\u0627\u062D",confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0631\u062C\u0627\u0639 \u0646\u0648\u0639 \u0627\u0644\u0646\u0641\u0642\u0627\u062A \u0647\u0630\u0627",already_in_use:"\u0646\u0648\u0639 \u0642\u064A\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645"},preferences:{currency:"\u0627\u0644\u0639\u0645\u0644\u0629",default_language:"\u0627\u0644\u0644\u063A\u0629 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629",time_zone:"\u0627\u0644\u0645\u0646\u0637\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",fiscal_year:"\u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629",date_format:"\u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",discount_setting:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062E\u0635\u0645",discount_per_item:"\u062E\u0635\u0645 \u0639\u0644\u0649 \u0627\u0644\u0635\u0646\u0641 ",discount_setting_description:"\u0642\u0645 \u0628\u062A\u0645\u0643\u064A\u0646 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0625\u0636\u0627\u0641\u0629 \u062E\u0635\u0645 \u0625\u0644\u0649 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0627\u0644\u0641\u0631\u062F\u064A\u0629. \u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A \u060C \u064A\u062A\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u062E\u0635\u0645 \u0645\u0628\u0627\u0634\u0631\u0629 \u0625\u0644\u0649 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",save:"\u062D\u0641\u0638",preference:"\u062A\u0641\u0636\u064A\u0644 | \u062A\u0641\u0636\u064A\u0644\u0627\u062A",general_settings:"\u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629 \u0644\u0644\u0646\u0638\u0627\u0645.",updated_message:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A \u0628\u0646\u062C\u0627\u062D",select_language:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0644\u063A\u0629",select_time_zone:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0645\u0646\u0637\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",select_date_format:"Select Date Format",select_financial_year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629"},update_app:{title:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645",description:"\u064A\u0645\u0643\u0646\u0643 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645 \u0628\u0633\u0647\u0648\u0644\u0629 \u0639\u0646 \u0637\u0631\u064A\u0642 \u0627\u0644\u0628\u062D\u062B \u0639\u0646 \u062A\u062D\u062F\u064A\u062B \u062C\u062F\u064A\u062F \u0628\u0627\u0644\u0646\u0642\u0631 \u0641\u0648\u0642 \u0627\u0644\u0632\u0631 \u0623\u062F\u0646\u0627\u0647",check_update:"\u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u0644\u062A\u062D\u062F\u064A\u062B\u0627\u062A",avail_update:"\u062A\u062D\u062F\u064A\u062B \u062C\u062F\u064A\u062F \u0645\u062A\u0648\u0641\u0631",next_version:"\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u062C\u062F\u064A\u062F\u0629",requirements:"Requirements",update:"\u062D\u062F\u062B \u0627\u0644\u0622\u0646",update_progress:"\u0642\u064A\u062F \u0627\u0644\u062A\u062D\u062F\u064A\u062B...",progress_text:"\u0633\u0648\u0641 \u064A\u0633\u062A\u063A\u0631\u0642 \u0627\u0644\u062A\u062D\u062F\u064A\u062B \u0628\u0636\u0639 \u062F\u0642\u0627\u0626\u0642. \u064A\u0631\u062C\u0649 \u0639\u062F\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0634\u0627\u0634\u0629 \u0623\u0648 \u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0642\u0628\u0644 \u0627\u0646\u062A\u0647\u0627\u0621 \u0627\u0644\u062A\u062D\u062F\u064A\u062B",update_success:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0646\u0638\u0627\u0645! \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631 \u062D\u062A\u0649 \u064A\u062A\u0645 \u0625\u0639\u0627\u062F\u0629 \u062A\u062D\u0645\u064A\u0644 \u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0645\u062A\u0635\u0641\u062D \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627.",latest_message:"\u0644\u0627 \u064A\u0648\u062C\u062F \u062A\u062D\u062F\u064A\u062B\u0627\u062A \u0645\u062A\u0648\u0641\u0631\u0629! \u0644\u062F\u064A\u0643 \u062D\u0627\u0644\u064A\u0627\u064B \u0623\u062D\u062F\u062B \u0646\u0633\u062E\u0629.",current_version:"\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u062D\u0627\u0644\u064A\u0629",download_zip_file:"\u062A\u0646\u0632\u064A\u0644 \u0645\u0644\u0641 ZIP",unzipping_package:"\u062D\u0632\u0645\u0629 \u0641\u0643 \u0627\u0644\u0636\u063A\u0637",copying_files:"\u0646\u0633\u062E \u0627\u0644\u0645\u0644\u0641\u0627\u062A",running_migrations:"\u0625\u062F\u0627\u0631\u0629 \u0639\u0645\u0644\u064A\u0627\u062A \u0627\u0644\u062A\u0631\u062D\u064A\u0644",finishing_update:"\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062A\u0634\u0637\u064A\u0628",update_failed:"\u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u062F\u064A\u062B",update_failed_text:"\u0622\u0633\u0641! \u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u062F\u064A\u062B \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u0641\u064A: {step} \u062E\u0637\u0648\u0629"},backup:{title:"\u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A | \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",description:"\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0647\u064A \u0645\u0644\u0641 \u0645\u0636\u063A\u0648\u0637 \u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u062C\u0645\u064A\u0639 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0641\u064A \u0627\u0644\u062F\u0644\u0627\u0626\u0644 \u0627\u0644\u062A\u064A \u062A\u062D\u062F\u062F\u0647\u0627 \u0645\u0639 \u062A\u0641\u0631\u064A\u063A \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643",new_backup:"\u0625\u0636\u0627\u0641\u0629 \u0646\u0633\u062E\u0629 \u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u062C\u062F\u064A\u062F\u0629",create_backup:"\u0627\u0646\u0634\u0626 \u0646\u0633\u062E\u0629 \u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",select_backup_type:"\u062D\u062F\u062F \u0646\u0648\u0639 \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A",backup_confirm_delete:"\u0644\u0646 \u062A\u062A\u0645\u0643\u0646 \u0645\u0646 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0647\u0630\u0647 \u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",path:"\u0645\u0633\u0627\u0631",new_disk:"\u0642\u0631\u0635 \u062C\u062F\u064A\u062F",created_at:"\u0623\u0646\u0634\u0626\u062A \u0641\u064A",size:"size",dropbox:"\u0628\u0635\u0646\u062F\u0648\u0642 \u0627\u0644\u0625\u0633\u0642\u0627\u0637",local:"\u0645\u062D\u0644\u064A",healthy:"\u0635\u062D\u064A",amount_of_backups:"\u0643\u0645\u064A\u0629 \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",newest_backups:"\u0623\u062D\u062F\u062B \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629",used_storage:"\u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",select_disk:"\u062D\u062F\u062F \u0627\u0644\u0642\u0631\u0635",action:"\u0639\u0645\u0644",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0628\u0646\u062C\u0627\u062D",created_message:"Backup created successfully",invalid_disk_credentials:"\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0639\u062A\u0645\u0627\u062F \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u0629 \u0644\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u062F\u062F"},disk:{title:"\u0642\u0631\u0635 \u0627\u0644\u0645\u0644\u0641\u0627\u062A | \u0623\u0642\u0631\u0627\u0635 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",description:"\u0628\u0634\u0643\u0644 \u0627\u0641\u062A\u0631\u0627\u0636\u064A \u060C \u0633\u062A\u0633\u062A\u062E\u062F\u0645 Crater \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u0644\u064A \u0644\u062D\u0641\u0638 \u0627\u0644\u0646\u0633\u062E \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0648\u0627\u0644\u0623\u0641\u0627\u062A\u0627\u0631 \u0648\u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0635\u0648\u0631 \u0627\u0644\u0623\u062E\u0631\u0649. \u064A\u0645\u0643\u0646\u0643 \u062A\u0643\u0648\u064A\u0646 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0628\u0631\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0642\u0631\u0635 \u0645\u062B\u0644 DigitalOcean \u0648 S3 \u0648 Dropbox \u0648\u0641\u0642\u064B\u0627 \u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A\u0643.",created_at:"\u0623\u0646\u0634\u0626\u062A \u0641\u064A",dropbox:"\u0628\u0635\u0646\u062F\u0648\u0642 \u0627\u0644\u0625\u0633\u0642\u0627\u0637",name:"\u0627\u0633\u0645",driver:"\u0633\u0627\u0626\u0642",disk_type:"\u0646\u0648\u0639",disk_name:"\u0627\u0633\u0645 \u0627\u0644\u0642\u0631\u0635",new_disk:"\u0625\u0636\u0627\u0641\u0629 \u0642\u0631\u0635 \u062C\u062F\u064A\u062F",filesystem_driver:"\u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0646\u0638\u0627\u0645 \u0627\u0644\u0645\u0644\u0641\u0627\u062A",local_driver:"\u0633\u0627\u0626\u0642 \u0645\u062D\u0644\u064A",local_root:"\u0627\u0644\u062C\u0630\u0631 \u0627\u0644\u0645\u062D\u0644\u064A",public_driver:"\u0633\u0627\u0626\u0642 \u0639\u0627\u0645",public_root:"\u0627\u0644\u062C\u0630\u0631 \u0627\u0644\u0639\u0627\u0645",public_url:"URL \u0627\u0644\u0639\u0627\u0645",public_visibility:"\u0627\u0644\u0631\u0624\u064A\u0629 \u0627\u0644\u0639\u0627\u0645\u0629",media_driver:"\u0633\u0627\u0626\u0642 \u0648\u0633\u0627\u0626\u0637",media_root:"\u062C\u0630\u0631 \u0627\u0644\u0648\u0633\u0627\u0626\u0637",aws_driver:"\u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 AWS",aws_key:"\u0645\u0641\u062A\u0627\u062D AWS",aws_secret:"AWS Secret",aws_region:"\u0645\u0646\u0637\u0642\u0629 AWS",aws_bucket:"\u062D\u0627\u0648\u064A\u0629 AWS",aws_root:"AWS \u0627\u0644\u062C\u0630\u0631",do_spaces_type:"\u0647\u0644 \u0646\u0648\u0639 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A",do_spaces_key:"\u0645\u0641\u062A\u0627\u062D Do Spaces",do_spaces_secret:"\u0647\u0644 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A \u0633\u0631\u064A\u0629",do_spaces_region:"\u0647\u0644 \u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A",do_spaces_bucket:"\u0647\u0644 \u062F\u0644\u0648 \u0627\u0644\u0645\u0633\u0627\u062D\u0627\u062A",do_spaces_endpoint:"\u0642\u0645 \u0628\u0639\u0645\u0644 \u0646\u0642\u0637\u0629 \u0646\u0647\u0627\u064A\u0629 \u0644\u0644\u0645\u0633\u0627\u0641\u0627\u062A",do_spaces_root:"\u0639\u0645\u0644 \u0627\u0644\u062C\u0630\u0631 \u0644\u0644\u0645\u0633\u0627\u0641\u0627\u062A",dropbox_type:"\u0646\u0648\u0639 Dropbox",dropbox_token:"\u0631\u0645\u0632 Dropbox",dropbox_key:"\u0645\u0641\u062A\u0627\u062D Dropbox",dropbox_secret:"Dropbox Secret",dropbox_app:"\u062A\u0637\u0628\u064A\u0642 Dropbox",dropbox_root:"\u062C\u0630\u0631 Dropbox",default_driver:"\u0628\u0631\u0646\u0627\u0645\u062C \u0627\u0644\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",is_default:"\u0623\u0645\u0631 \u0627\u0641\u062A\u0631\u0627\u0636\u064A",set_default_disk:"\u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A",success_set_default_disk:"Disk set as default successfully",save_pdf_to_disk:"\u062D\u0641\u0638 \u0645\u0644\u0641\u0627\u062A PDF \u0639\u0644\u0649 \u0627\u0644\u0642\u0631\u0635",disk_setting_description:"\u0642\u0645 \u0628\u062A\u0645\u0643\u064A\u0646 \u0647\u0630\u0627 \u060C \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u063A\u0628 \u0641\u064A \u062D\u0641\u0638 \u0646\u0633\u062E\u0629 \u0645\u0646 \u0643\u0644 \u0641\u0627\u062A\u0648\u0631\u0629 \u060C \u062A\u0642\u062F\u064A\u0631 \u0648\u0625\u064A\u0635\u0627\u0644 \u062F\u0641\u0639 PDF \u0639\u0644\u0649 \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u062A\u0644\u0642\u0627\u0626\u064A\u064B\u0627. \u0633\u064A\u0624\u062F\u064A \u062A\u0634\u063A\u064A\u0644 \u0647\u0630\u0627 \u0627\u0644\u062E\u064A\u0627\u0631 \u0625\u0644\u0649 \u062A\u0642\u0644\u064A\u0644 \u0648\u0642\u062A \u0627\u0644\u062A\u062D\u0645\u064A\u0644 \u0639\u0646\u062F \u0639\u0631\u0636 \u0645\u0644\u0641\u0627\u062A PDF.",select_disk:"\u062D\u062F\u062F \u0627\u0644\u0642\u0631\u0635",disk_settings:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0642\u0631\u0635",confirm_delete:"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater",action:"\u0639\u0645\u0644",edit_file_disk:"Edit File Disk",success_create:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",success_update:"Disk updated successfully",error:"\u0641\u0634\u0644 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0631\u0635",deleted_message:"File Disk deleted successfully",disk_variables_save_successfully:"\u062A\u0645 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",disk_variables_save_error:"\u0641\u0634\u0644 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0642\u0631\u0635.",invalid_disk_credentials:"\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0639\u062A\u0645\u0627\u062F \u063A\u064A\u0631 \u0635\u0627\u0644\u062D\u0629 \u0644\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u062F\u062F"}},jr={account_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u062D\u0633\u0627\u0628",account_info_desc:"\u0633\u064A\u062A\u0645 \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644 \u0623\u062F\u0646\u0627\u0647 \u0644\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u0627\u0644\u0645\u0633\u0624\u0648\u0644 \u0627\u0644\u0631\u0626\u064A\u0633\u064A. \u0643\u0645\u0627 \u064A\u0645\u0643\u0646\u0643 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062A\u0641\u0627\u0635\u064A\u0644 \u0641\u064A \u0623\u064A \u0648\u0642\u062A \u0628\u0639\u062F \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644.",name:"\u0627\u0644\u0627\u0633\u0645",email:"\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",confirm_password:"\u0623\u0639\u062F \u0643\u062A\u0627\u0628\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",save_cont:"\u062D\u0641\u0638 \u0648\u0627\u0633\u062A\u0645\u0631\u0627\u0631",company_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0634\u0631\u0643\u0629",company_info_desc:"\u0633\u064A\u062A\u0645 \u0639\u0631\u0636 \u0647\u0630\u0647 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631. \u0644\u0627\u062D\u0638 \u0623\u0646\u0647 \u064A\u0645\u0643\u0646\u0643 \u062A\u0639\u062F\u064A\u0644 \u0647\u0630\u0627 \u0644\u0627\u062D\u0642\u064B\u0627 \u0641\u064A \u0635\u0641\u062D\u0629 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A.",company_name:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0631\u0643\u0629",company_logo:"\u0634\u0639\u0627\u0631 \u0627\u0644\u0634\u0631\u0643\u0629",logo_preview:"\u0627\u0633\u062A\u0639\u0631\u0627\u0636 \u0627\u0644\u0634\u0639\u0627\u0631",preferences:"\u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A",preferences_desc:"\u0627\u0644\u062A\u0641\u0636\u064A\u0644\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u0629 \u0644\u0644\u0646\u0638\u0627\u0645",country:"\u0627\u0644\u062F\u0648\u0644\u0629",state:"\u0627\u0644\u0648\u0644\u0627\u064A\u0629/\u0627\u0644\u0645\u0646\u0637\u0642\u0629",city:"\u0627\u0644\u0645\u062F\u064A\u0646\u0629",address:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",street:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646 1 | \u0627\u0644\u0639\u0646\u0648\u0627\u0646 2",phone:"\u0627\u0644\u0647\u0627\u062A\u0641",zip_code:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064A\u062F\u064A",go_back:"\u0644\u0644\u062E\u0644\u0641",currency:"\u0627\u0644\u0639\u0645\u0644\u0629",language:"\u0627\u0644\u0644\u063A\u0629",time_zone:"\u0627\u0644\u0645\u0646\u0637\u0629 \u0627\u0644\u0632\u0645\u0646\u064A\u0629",fiscal_year:"\u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629",date_format:"\u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",from_address:"\u0645\u0646 \u0627\u0644\u0639\u0646\u0648\u0627\u0646",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",next:"\u0627\u0644\u062A\u0627\u0644\u064A",continue:"\u0627\u0633\u062A\u0645\u0631\u0627\u0631",skip:"\u062A\u062E\u0637\u064A",database:{database:"\u0639\u0646\u0648\u0627\u0646 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",connection:"\u0627\u062A\u0635\u0627\u0644 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",host:"\u062E\u0627\u062F\u0645 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",port:"\u0645\u0646\u0641\u0630 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",password:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",app_url:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A \u0644\u0644\u0646\u0638\u0627\u0645",app_domain:"App Domain",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0644\u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",db_name:"\u0633\u0645 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",db_path:"Database Path",desc:"\u0642\u0645 \u0628\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0639\u062F\u0629 \u0628\u064A\u0627\u0646\u0627\u062A \u0639\u0644\u0649 \u0627\u0644\u062E\u0627\u062F\u0645 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u0648\u062A\u0639\u064A\u064A\u0646 \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0627\u0639\u062A\u0645\u0627\u062F \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0623\u062F\u0646\u0627\u0647."},permissions:{permissions:"\u0627\u0644\u0623\u0630\u0648\u0646\u0627\u062A",permission_confirm_title:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u0627\u0644\u0627\u0633\u062A\u0645\u0631\u0627\u0631\u061F",permission_confirm_desc:"\u0641\u0634\u0644 \u0641\u062D\u0635 \u0623\u0630\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062C\u0644\u062F",permission_desc:"\u0641\u064A\u0645\u0627 \u064A\u0644\u064A \u0642\u0627\u0626\u0645\u0629 \u0623\u0630\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062C\u0644\u062F \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u062D\u062A\u0649 \u064A\u0639\u0645\u0644 \u0627\u0644\u062A\u0637\u0628\u064A\u0642. \u0641\u064A \u062D\u0627\u0644\u0629 \u0641\u0634\u0644 \u0641\u062D\u0635 \u0627\u0644\u0625\u0630\u0646 \u060C \u062A\u0623\u0643\u062F \u0645\u0646 \u062A\u062D\u062F\u064A\u062B \u0623\u0630\u0648\u0646\u0627\u062A \u0627\u0644\u0645\u062C\u0644\u062F."},mail:{host:"\u062E\u0627\u062F\u0645 \u0627\u0644\u0628\u0631\u064A\u062F",port:"\u0645\u0646\u0641\u0630 \u0627\u0644\u0628\u0631\u064A\u062F",driver:"\u0645\u0634\u063A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F",secret:"\u0633\u0631\u064A",mailgun_secret:"\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A \u0644\u0640 Mailgun",mailgun_domain:"\u0627\u0644\u0645\u062C\u0627\u0644",mailgun_endpoint:"\u0627\u0644\u0646\u0647\u0627\u064A\u0629 \u0627\u0644\u0637\u0631\u0641\u064A\u0629 \u0644\u0640 Mailgun",ses_secret:"SES \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064A",ses_key:"SES \u0645\u0641\u062A\u0627\u062D",password:"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0644\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",mail_config:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",from_name:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0631\u0633\u0644",from_mail:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0644\u0645\u0631\u0633\u0644",encryption:"\u0635\u064A\u063A\u0629 \u0627 \u0644\u062A\u0634\u0641\u064A\u0631",mail_config_desc:"\u0623\u062F\u0646\u0627\u0647 \u0647\u0648 \u0646\u0645\u0648\u0630\u062C \u0644\u062A\u0643\u0648\u064A\u0646 \u0628\u0631\u0646\u0627\u0645\u062C \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0646 \u0627\u0644\u062A\u0637\u0628\u064A\u0642. \u064A\u0645\u0643\u0646\u0643 \u0623\u064A\u0636\u064B\u0627 \u062A\u0647\u064A\u0626\u0629 \u0645\u0648\u0641\u0631\u064A \u0627\u0644\u062C\u0647\u0627\u062A \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629 \u0645\u062B\u0644 Sendgrid \u0648 SES \u0625\u0644\u062E."},req:{system_req:"\u0645\u062A\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u0646\u0638\u0627\u0645",php_req_version:"Php (\u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 {version} \u0628\u062D\u062F \u0623\u062F\u0646\u0649)",check_req:"\u0641\u062D\u0635 \u0645\u062A\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u0646\u0638\u0627\u0645",system_req_desc:"\u064A\u062D\u062A\u0648\u064A \u0627\u0644\u0646\u0638\u0627\u0645 \u0639\u0644\u0649 \u0628\u0639\u0636 \u0645\u062A\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u062E\u0627\u062F\u0645. \u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646 \u062E\u0627\u062F\u0645\u0643 \u0644\u062F\u064A\u0647 \u0646\u0633\u062E\u0629 php \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u0648\u062C\u0645\u064A\u0639 \u0627\u0644\u0627\u0645\u062A\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0645\u0630\u0643\u0648\u0631\u0629 \u0623\u062F\u0646\u0627\u0647."},errors:{migrate_failed:"\u0641\u0634\u0644 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062C\u062F\u0627\u0648\u0644",database_variables_save_error:"\u063A\u064A\u0631 \u0642\u0627\u062F\u0631 \u0639\u0644\u0649 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0642\u064A\u0645 \u0627\u0644\u0645\u0642\u062F\u0645\u0629.",mail_variables_save_error:"\u0641\u0634\u0644 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A.",connection_failed:"\u0641\u0634\u0644 \u0627\u062A\u0635\u0627\u0644 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",database_should_be_empty:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0641\u0627\u0631\u063A\u0629"},success:{mail_variables_save_successfully:"\u062A\u0645 \u062A\u0643\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0628\u0646\u062C\u0627\u062D",database_variables_save_successfully:"\u062A\u0645 \u062A\u0643\u0648\u064A\u0646 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0628\u0646\u062C\u0627\u062D."}},Pr={invalid_phone:"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D",invalid_url:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0646\u062A\u0631\u0646\u062A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D (\u0645\u062B\u0627\u0644: http://www.craterapp.com)",invalid_domain_url:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0646\u062A\u0631\u0646\u062A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D (\u0645\u062B\u0627\u0644: craterapp.com)",required:"\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628",email_incorrect:"\u0628\u0631\u064A\u062F \u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u063A\u064A\u0631 \u0635\u062D\u064A\u062D.",email_already_taken:"\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0645\u0633\u062A\u062E\u062F\u0645 \u0645\u0633\u0628\u0642\u0627\u064B",email_does_not_exist:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0643\u0633\u062A\u062E\u062F\u0645 \u0628\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0627\u0644\u0643\u062A\u0631\u0648\u0646\u064A",item_unit_already_taken:"\u0648\u062D\u062F\u0629 \u0627\u0644\u0628\u0646\u062F \u0642\u062F \u0627\u062A\u062E\u0630\u062A \u0628\u0627\u0644\u0641\u0639\u0644",payment_mode_already_taken:"\u0644\u0642\u062F \u062A\u0645 \u0628\u0627\u0644\u0641\u0639\u0644 \u0623\u062E\u0630 \u0637\u0631\u064A\u0642\u0629 \u0627\u0644\u062F\u0641\u0639",send_reset_link:"\u0623\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u0627\u0633\u062A\u0639\u0627\u062F\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",not_yet:"\u0644\u064A\u0633 \u0628\u0639\u062F\u061F \u0623\u0639\u062F \u0627\u0644\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0622\u0646..",password_min_length:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u064A\u062C\u0628 \u0623\u0646 \u062A\u062A\u0643\u0648\u0646 \u0645\u0646 {count} \u0623\u062D\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644",name_min_length:"\u0627\u0644\u0627\u0633\u0645 \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0643\u0648\u0646 \u0645\u0646 {count} \u0623\u062D\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644",enter_valid_tax_rate:"\u0623\u062F\u062E\u0644 \u0645\u0639\u062F\u0644 \u0627\u0644\u0636\u0631\u064A\u0628\u0629 \u0628\u0634\u0643\u0644 \u0635\u062D\u064A\u062D",numbers_only:"\u0623\u0631\u0642\u0627\u0645 \u0641\u0642\u0637.",characters_only:"\u062D\u0631\u0648\u0641 \u0641\u0642\u0637.",password_incorrect:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0643\u0644\u0645\u0627\u062A \u0627\u0644\u0645\u0631\u0648\u0631 \u0645\u062A\u0637\u0627\u0628\u0642\u0629",password_length:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0637\u0648\u0644 {count} \u062D\u0631\u0641.",qty_must_greater_than_zero:"\u0627\u0644\u0643\u0645\u064A\u0629 \u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",price_greater_than_zero:"\u0627\u0644\u0633\u0639\u0631 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",payment_greater_than_zero:"\u0627\u0644\u062F\u0641\u0639\u0629 \u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",payment_greater_than_due_amount:"\u0645\u0628\u0644\u063A \u0627\u0644\u062F\u0641\u0639\u0629 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0633\u062A\u062D\u0642 \u0644\u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",quantity_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u062A\u0632\u064A\u062F \u0627\u0644\u0643\u0645\u064A\u0629 \u0639\u0646 20 \u0631\u0642\u0645\u0627\u064B.",price_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0633\u0639\u0631 \u0639\u0646 20 \u0631\u0642\u0645\u0627\u064B.",price_minvalue:"\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0627\u0644\u0633\u0639\u0631 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",amount_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0645\u0628\u0644\u063A \u0639\u0646 20 \u0631\u0642\u0645\u0627\u064B.",amount_minvalue:"\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0627\u0644\u0645\u0628\u0644\u063A \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631.",description_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0648\u0635\u0641 \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",subject_maxlength:"Subject should not be greater than 100 characters.",message_maxlength:"Message should not be greater than 255 characters.",maximum_options_error:"\u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0639\u0644\u0649 \u0647\u0648 {max} \u062E\u064A\u0627\u0631\u0627\u062A. \u0642\u0645 \u0628\u0625\u0632\u0627\u0644\u0629 \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0644\u062A\u062D\u062F\u064A\u062F \u062E\u064A\u0627\u0631 \u0622\u062E\u0631.",notes_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0627\u062A \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",address_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",ref_number_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0631\u0642\u0645 \u0627\u0644\u0645\u0631\u062C\u0639\u064A \u0639\u0646 255 \u062D\u0631\u0641\u0627\u064B.",prefix_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u062A\u0632\u064A\u062F \u0627\u0644\u0628\u0627\u062F\u0626\u0629 \u0639\u0646 5 \u0623\u062D\u0631\u0641.",something_went_wrong:"\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641!"},Dr="\u062A\u0642\u062F\u064A\u0631",Cr="\u0631\u0642\u0645 \u062A\u0642\u062F\u064A\u0631",Ar="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062A\u0642\u062F\u064A\u0631",Er="Expiry date",Nr="\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",Tr="\u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",Ir="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",$r="Due date",Rr="\u0645\u0644\u0627\u062D\u0638\u0627\u062A",Fr="\u0627\u0644\u0623\u0635\u0646\u0627\u0641",Mr="\u0627\u0644\u0643\u0645\u064A\u0629",Vr="\u0627\u0644\u0633\u0639\u0631",Br="\u0627\u0644\u062E\u0635\u0645",Or="\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",Lr="Subtotal",Ur="\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",Kr="Payment",qr="PAYMENT RECEIPT",Zr="Payment Date",Wr="\u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",Hr="\u0646\u0648\u0639 \u0627\u0644\u062F\u0641\u0639\u0629",Gr="Amount Received",Yr="EXPENSES REPORT",Jr="TOTAL EXPENSE",Xr="PROFIT & LOSS REPORT",Qr="Sales Customer Report",ed="Sales Item Report",td="Tax Summary Report",ad="INCOME",sd="NET PROFIT",nd="Sales Report: By Customer",id="TOTAL SALES",od="Sales Report: By Item",rd="TAX REPORT",dd="TOTAL TAX",ld="\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0636\u0631\u0627\u0626\u0628",cd="\u0627\u0644\u0646\u0641\u0642\u0627\u062A",_d="\u0645\u0637\u0644\u0648\u0628 \u0645\u0646,",ud="\u064A\u0634\u062D\u0646 \u0625\u0644\u0649,",md="Received from:",pd="\u0636\u0631\u064A\u0628\u0629";var gd={navigation:_r,general:ur,dashboard:mr,tax_types:pr,global_search:gr,customers:fr,items:hr,estimates:vr,invoices:yr,payments:br,expenses:kr,login:wr,users:xr,reports:zr,settings:Sr,wizard:jr,validation:Pr,pdf_estimate_label:Dr,pdf_estimate_number:Cr,pdf_estimate_date:Ar,pdf_estimate_expire_date:Er,pdf_invoice_label:Nr,pdf_invoice_number:Tr,pdf_invoice_date:Ir,pdf_invoice_due_date:$r,pdf_notes:Rr,pdf_items_label:Fr,pdf_quantity_label:Mr,pdf_price_label:Vr,pdf_discount_label:Br,pdf_amount_label:Or,pdf_subtotal:Lr,pdf_total:Ur,pdf_payment_label:Kr,pdf_payment_receipt_label:qr,pdf_payment_date:Zr,pdf_payment_number:Wr,pdf_payment_mode:Hr,pdf_payment_amount_received_label:Gr,pdf_expense_report_label:Yr,pdf_total_expenses_label:Jr,pdf_profit_loss_label:Xr,pdf_sales_customers_label:Qr,pdf_sales_items_label:ed,pdf_tax_summery_label:td,pdf_income_label:ad,pdf_net_profit_label:sd,pdf_customer_sales_report:nd,pdf_total_sales_label:id,pdf_item_sales_label:od,pdf_tax_report_label:rd,pdf_total_tax_label:dd,pdf_tax_types_label:ld,pdf_expenses_label:cd,pdf_bill_to:_d,pdf_ship_to:ud,pdf_received_from:md,pdf_tax_label:pd};const fd={dashboard:"\xDCbersicht",customers:"Kunden",items:"Artikel",invoices:"Rechnungen",expenses:"Kosten",estimates:"Kostenvoranschl\xE4ge",payments:"Zahlungen",reports:"Berichte",settings:"Einstellungen",logout:"Abmelden",users:"Benutzer"},hd={add_company:"Unternehmen hinzuf\xFCgen",view_pdf:"PDF anzeigen",copy_pdf_url:"PDF-Link kopieren",download_pdf:"PDF herunterladen",save:"Speichern",create:"Erstellen",cancel:"Abbrechen",update:"Aktualisieren",deselect:"Abw\xE4hlen",download:"Herunterladen",from_date:"Von Datum",to_date:"bis Datum",from:"Von",to:"bis",sort_by:"Sortieren nach",ascending:"Aufsteigend",descending:"Absteigend",subject:"Betreff",body:"Inhalt",message:"Nachricht",send:"Absenden",go_back:"zur\xFCck",back_to_login:"Zur\xFCck zum Login?",home:"Startseite",filter:"Filter",delete:"L\xF6schen",edit:"Bearbeiten",view:"Anzeigen",add_new_item:"Artikel hinzuf\xFCgen",clear_all:"Alle entfernen",showing:"Anzeigen",of:"von",actions:"Aktionen",subtotal:"ZWISCHENSUMME",discount:"RABATT",fixed:"Festsatz",percentage:"Prozentsatz",tax:"Steuer",total_amount:"GESAMTSUMME",bill_to:"Rechnungsempf\xE4nger",ship_to:"Versand ein",due:"F\xE4llig",draft:"Entwurf",sent:"Gesendet",all:"Alle",select_all:"Alle ausw\xE4hlen",choose_file:"Klicken Sie hier, um eine Datei auszuw\xE4hlen",choose_template:"W\xE4hlen Sie eine Vorlage",choose:"W\xE4hlen",remove:"Entfernen",powered_by:"Betrieben durch",bytefury:"Bytefury",select_a_status:"Status w\xE4hlen",select_a_tax:"Steuersatz w\xE4hlen",search:"Suchen",are_you_sure:"Sind Sie sicher?",list_is_empty:"Liste ist leer.",no_tax_found:"Kein Steuersatz gefunden!",four_zero_four:"Vier hundert vier",you_got_lost:"Hoppla! Du hast dich verirrt!",go_home:"Geh zur\xFCck",test_mail_conf:"E-Mail Konfiguration testen",send_mail_successfully:"E-Mail versendet erfolgreich",setting_updated:"Einstellungen erfolgreich aktualisiert",select_state:"Bundesland w\xE4hlen",select_country:"Land w\xE4hlen",select_city:"Stadt w\xE4hlen",street_1:"Stra\xDFe",street_2:"Zusatz Strasse",action_failed:"Aktion fehlgeschlagen",retry:"Wiederholen",choose_note:"Notiz ausw\xE4hlen",no_note_found:"Keine Notizen gefunden",insert_note:"Notiz einf\xFCgen"},vd={select_year:"Jahr w\xE4hlen",cards:{due_amount:"Offene Betr\xE4ge",customers:"Kunden",invoices:"Rechnungen",estimates:"Kostenvoranschl\xE4ge"},chart_info:{total_sales:"Auftr\xE4ge gesamt",total_receipts:"Zahlungen gesamt",total_expense:"Kosten gesamt",net_income:"Einnahmen Netto",year:"Jahr"},monthly_chart:{title:"Umsatz & Kosten"},recent_invoices_card:{title:"F\xE4llige Rechnungen",due_on:"F\xE4llig am",customer:"Kunden",amount_due:"Offener Betrag",actions:"Aktionen",view_all:"Alle Anzeigen"},recent_estimate_card:{title:"Aktuelle Kostenvoranschl\xE4ge",date:"Datum",customer:"Kunden",amount_due:"Betrag",actions:"Aktionen",view_all:"Alle Anzeigen"}},yd={name:"Name",description:"Beschreibung",percent:"Prozent",compound_tax:"zusammengesetzte Steuer"},bd={search:"Suchen...",customers:"Kunden",users:"Benutzer",no_results_found:"Keine Ergebnisse gefunden"},kd={title:"Kunden",add_customer:"Kunde hinzuf\xFCgen",contacts_list:"Kunden-Liste",name:"Name",mail:"E-Mail| E-Mails",statement:"Stellungnahme",display_name:"Anzeige Name",primary_contact_name:"Ansprechpartner",contact_name:"Kontakt Name",amount_due:"Offener Betrag",email:"E-Mail",address:"Adresse",phone:"Telefon",website:"Webseite",overview:"\xDCbersicht",enable_portal:"Kunden-Portal aktivieren",country:"Land",state:"Bundesland",city:"Stadt",zip_code:"PLZ",added_on:"Hinzugef\xFCgt am",action:"Aktion",password:"Passwort",street_number:"Hausnummer",primary_currency:"Prim\xE4re W\xE4hrung",description:"Beschreibung",add_new_customer:"Neuen Kunden hinzuf\xFCgen",save_customer:"Kunde speichern",update_customer:"Kunden \xE4ndern",customer:"Kunde | Kunden",new_customer:"Neuer Kunde",edit_customer:"Kunde bearbeiten",basic_info:"Basisinformation",billing_address:"Rechnungsadresse",shipping_address:"Versand-Adresse",copy_billing_address:"Rechnungsadresse kopieren",no_customers:"Noch keine Kunden!",no_customers_found:"Keine Kunden gefunden!",no_contact:"Kein Kontakt",no_contact_name:"Kein Kontaktname",list_of_customers:"Dieser Abschnitt enth\xE4lt die Liste der Kunden.",primary_display_name:"Prim\xE4rer Anzeige Name",select_currency:"W\xE4hrung w\xE4hlen",select_a_customer:"W\xE4hlen Sie einen Kunden",type_or_click:"Eingeben oder anklicken zum ausw\xE4hlen",new_transaction:"Neue Transaktion",no_matching_customers:"Es gibt keine passenden Kunden!",phone_number:"Telefonnummer",create_date:"Erstellungsdatum",confirm_delete:"Sie k\xF6nnen diesen Kunden und alle zugeh\xF6rigen Rechnungen, Sch\xE4tzungen und Zahlungen nicht wiederherstellen. | Sie k\xF6nnen diesen Kunden und alle zugeh\xF6rigen Rechnungen, Sch\xE4tzungen und Zahlungen nicht wiederherstellen.",created_message:"Benutzer erfolgreich erstellt",updated_message:"Kunde erfolgreich aktualisiert",deleted_message:"Kunden erfolgreich gel\xF6scht | Kunden erfolgreich gel\xF6scht"},wd={title:"Artikel",items_list:"Artikel-Liste",name:"Name",unit:"Einheit",description:"Beschreibung",added_on:"Hinzugef\xFCgt am",price:"Preis",date_of_creation:"Erstellt am",not_selected:"Keine ausgew\xE4hlt",action:"Aktion",add_item:"Artikel hinzuf\xFCgen",save_item:"Artikel speichern",update_item:"Artikel \xE4ndern",item:"Artikel | Artikel",add_new_item:"Neuen Artikel hinzuf\xFCgen",new_item:"Neuer Artikel",edit_item:"Artikel bearbeiten",no_items:"Keine Artikel vorhanden!",list_of_items:"Dieser Abschnitt enth\xE4lt die Liste der Artikel.",select_a_unit:"w\xE4hlen Sie die Einheit",taxes:"Steuern",item_attached_message:"Ein Artikel der bereits verwendet wird kann nicht gel\xF6scht werden",confirm_delete:"Sie k\xF6nnen diesen Artikel nicht wiederherstellen | Sie k\xF6nnen diese Artikel nicht wiederherstellen",created_message:"Artikel erfolgreich erstellt",updated_message:"Artikel erfolgreich aktualisiert",deleted_message:"Artikel erfolgreich gel\xF6scht | Artikel erfolgreich gel\xF6scht"},xd={title:"Kostenvoranschl\xE4ge",estimate:"Kostenvoranschlag | Kostenvoranschl\xE4ge",estimates_list:"Liste Kostenvoranschl\xE4ge",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahre",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlte",customer:"KUNDEN",ref_no:"REF. - NR.",number:"ANZAHL",amount_due:"OFFENER BETRAG",partially_paid:"Teilweise bezahlt",total:"Gesamt",discount:"Rabatt",sub_total:"Zwischensumme",estimate_number:"Kostenvoran. Nummer",ref_number:"Ref-Nummer",contact:"Kontakt",add_item:"F\xFCgen Sie ein Artikel hinzu",date:"Datum",due_date:"F\xE4lligkeit",expiry_date:"Zahlungsziel",status:"Status",add_tax:"Steuer hinzuf\xFCgen",amount:"Summe",action:"Aktion",notes:"Hinweise",tax:"Steuer",estimate_template:"Vorlage",convert_to_invoice:"Konvertieren in Rechnung",mark_as_sent:"Als gesendet markieren",send_estimate:"Kostenvoranschlag senden",resend_estimate:"Kostenvoranschlag erneut senden",record_payment:"Zahlung erfassen",add_estimate:"Kostenvoranschlag hinzuf\xFCgen",save_estimate:"Kostenvoranschlag speichern",confirm_conversion:"Sie m\xF6chten, konvertieren Sie diese Sch\xE4tzung in die Rechnung?",conversion_message:"Rechnung erfolgreich erstellt",confirm_send_estimate:"Der Kostenvoranschlag wird per E-Mail an den Kunden gesendet",confirm_mark_as_sent:"Dieser Kostenvoranschlag wird als gesendet markiert",confirm_mark_as_accepted:"Dieser Kostenvoranschlag wird als angenommen markiert",confirm_mark_as_rejected:"Dieser Kostenvoranschlag wird als abgelehnt markiert",no_matching_estimates:"Es gibt keine \xFCbereinstimmenden Kostenvoranschl\xE4ge!",mark_as_sent_successfully:"Kostenvoranschlag als gesendet markiert.",send_estimate_successfully:"Kostenvoranschlag erfolgreich gesendet",errors:{required:"Feld ist erforderlich"},accepted:"Angenommen",rejected:"Abgelehnt",sent:"Gesendet",draft:"Entwurf",declined:"Abgelehnt",new_estimate:"Neuer Kostenvoranschlag",add_new_estimate:"Neuen Kostenvoranschlag hinzuf\xFCgen",update_Estimate:"Kostenvoranschlag aktualisieren",edit_estimate:"Kostenvoranschlag \xE4ndern",items:"Artikel",Estimate:"Kostenvoranschlag | Kostenvoranschl\xE4ge",add_new_tax:"neuen Steuersatz hinzuf\xFCgen",no_estimates:"Keine Kostenvoranschl\xE4ge vorhanden!",list_of_estimates:"Dieser Abschnitt enth\xE4lt die Liste der Kostenvoranschl\xE4ge.",mark_as_rejected:"Markiert als abgelehnt",mark_as_accepted:"Markiert als angenommen",marked_as_accepted_message:"Kostenvoranschlag als angenommen markiert",marked_as_rejected_message:"Kostenvoranschlag als abgelehnt markiert",confirm_delete:"Der Kostenvoranschlag kann nicht wiederhergestellt werden | Die Kostenvoranschl\xE4ge k\xF6nnen nicht wiederhergestellt werden",created_message:"Kostenvoranschlag erfolgreich erstellt",updated_message:"Kostenvoranschlag erfolgreich aktualisiert",deleted_message:"Kostenvoranschlag erfolgreich gel\xF6scht | Kostenvoranschl\xE4ge erfolgreich gel\xF6scht",something_went_wrong:"Da ging etwas schief",item:{title:"Titel",description:"Beschreibung",quantity:"Menge",price:"Preis",discount:"Rabatt",total:"Gesamt",total_discount:"Rabatt Gesamt",sub_total:"Zwischensumme",tax:"Steuer",amount:"Summe",select_an_item:"W\xE4hlen Sie einen Artikel",type_item_description:"Artikel Beschreibung (optional)"}},zd={title:"Rechnungen",invoices_list:"Liste der Rechnungen",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahre",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlt",viewed:"Gesehen",overdue:"\xDCberf\xE4llig",completed:"Abgeschlossen",customer:"KUNDEN",paid_status:"BEZAHLT-STATUS",ref_no:"REF. - NR.",number:"ANZAHL",amount_due:"OFFENER BETRAG",partially_paid:"Teilzahlung",total:"Gesamt",discount:"Rabatt",sub_total:"Zwischensumme",invoice:"Rechnung | Rechnungen",invoice_number:"Rechnungsnummer",ref_number:"Ref-Nummer",contact:"Kontakt",add_item:"F\xFCgen Sie ein Artikel hinzu",date:"Datum",due_date:"F\xE4lligkeit",status:"Status",add_tax:"Steuersatz hinzuf\xFCgen",amount:"Summe",action:"Aktion",notes:"Hinweise",view:"Anzeigen",send_invoice:"Rechnung senden",resend_invoice:"Rechnung erneut senden",invoice_template:"Rechnungs-Vorlage",template:"Vorlage",mark_as_sent:"Als gesendet markieren",confirm_send_invoice:"Diese Rechnung wird per E-Mail an den Kunden gesendet",invoice_mark_as_sent:"Diese Rechnung wird als gesendet markiert",confirm_send:"Diese Rechnung wird per E-Mail an den Kunden gesendet",invoice_date:"Rechnungsdatum",record_payment:"Zahlung erfassen",add_new_invoice:"Neue Rechnung hinzuf\xFCgen",update_expense:"Kosten aktualisieren",edit_invoice:"Rechnung bearbeiten",new_invoice:"Neue Rechnung",save_invoice:"Rechnung speichern",update_invoice:"Rechnung \xE4ndern",add_new_tax:"Neuen Steuersatz hinzuf\xFCgen",no_invoices:"Keine Rechnungen vorhanden!",list_of_invoices:"Dieser Abschnitt enth\xE4lt die Liste der Rechnungen.",select_invoice:"W\xE4hlen Sie eine Rechnung",no_matching_invoices:"Es gibt keine entsprechenden Rechnungen!",mark_as_sent_successfully:"Rechnung gekennzeichnet als erfolgreich gesendet",invoice_sent_successfully:"Rechnung erfolgreich versendet",cloned_successfully:"Rechnung erfolgreich kopiert",clone_invoice:"Rechnung kopieren",confirm_clone:"Diese Rechnung wird kopiert",item:{title:"Titel",description:"Beschreibung",quantity:"Menge",price:"Preis",discount:"Rabatt",total:"Gesamt",total_discount:"Rabatt Gesamt",sub_total:"Zwischensumme",tax:"Steuer",amount:"Summe",select_an_item:"Geben Sie oder w\xE4hlen Sie ein Artikel",type_item_description:"Artikel Beschreibung (optional)"},confirm_delete:"Sie k\xF6nnen diese Rechnung nicht wiederherstellen. | Sie k\xF6nnen diese Rechnungen nicht wiederherstellen.",created_message:"Rechnung erfolgreich erstellt",updated_message:"Rechnung erfolgreich aktualisiert",deleted_message:"Rechnung erfolgreich gel\xF6scht | Rechnungen erfolgreich gel\xF6scht",marked_as_sent_message:"Rechnung als erfolgreich gesendet markiert",something_went_wrong:"Da ist etwas schief gelaufen",invalid_due_amount_message:"Der Gesamtrechnungsbetrag darf nicht kleiner sein als der f\xFCr diese Rechnung bezahlte Gesamtbetrag. Bitte aktualisieren Sie die Rechnung oder l\xF6schen Sie die zugeh\xF6rigen Zahlungen um fortzufahren."},Sd={title:"Zahlungen",payments_list:"Liste der Zahlungen",record_payment:"Zahlung eintragen",customer:"Kunden",date:"Datum",amount:"Summe",action:"Aktion",payment_number:"Zahlungsnummer",payment_mode:"Zahlungsart",invoice:"Rechnung",note:"Hinweis",add_payment:"Zahlung hinzuf\xFCgen",new_payment:"Neue Zahlung",edit_payment:"Zahlung bearbeiten",view_payment:"Zahlung anzeigen",add_new_payment:"Neue Zahlung hinzuf\xFCgen",send_payment_receipt:"Zahlungsbeleg senden",send_payment:"Senden Sie die Zahlung",save_payment:"Zahlung speichern",update_payment:"Zahlung \xE4ndern",payment:"Zahlung | Zahlungen",no_payments:"Keine Zahlungen vorhanden!",not_selected:"Nicht ausgew\xE4hlt",no_invoice:"Keine Rechnung",no_matching_payments:"Es gibt keine passenden Zahlungen!",list_of_payments:"Dieser Abschnitt enth\xE4lt die Liste der Zahlungen.",select_payment_mode:"W\xE4hlen Sie den Zahlungsmodus",confirm_mark_as_sent:"Dieser Kostenvoranschlag wird als gesendet markiert",confirm_send_payment:"Diese Zahlung wird per E-Mail an den Kunden gesendet",send_payment_successfully:"Zahlung erfolgreich gesendet",something_went_wrong:"Da ist etwas schief gelaufen",confirm_delete:"Sie k\xF6nnen diese Zahlung nicht wiederherstellen. | Sie k\xF6nnen diese Zahlungen nicht wiederherstellen.",created_message:"Zahlung erfolgreich erstellt",updated_message:"Zahlung erfolgreich aktualisiert",deleted_message:"Zahlung erfolgreich gel\xF6scht | Zahlungen erfolgreich gel\xF6scht",invalid_amount_message:"Zahlungsbetrag ist ung\xFCltig"},jd={title:"Aufwendungen/Ausgaben",expenses_list:"Liste der Ausgaben",select_a_customer:"W\xE4hlen Sie einen Kunden",expense_title:"Titel",customer:"Kundin",contact:"Kontakt",category:"Kategorie",from_date:"Von Datum",to_date:"bis Datum",expense_date:"Datum",description:"Beschreibung",receipt:"Eingang",amount:"Summe",not_selected:"Nicht ausgew\xE4hlt",action:"Aktion",note:"Hinweis",category_id:"Kategorie-Id",date:"Aufwandsdatum",add_expense:"Aufwendung hinzuf\xFCgen",add_new_expense:"Neue Aufwendung hinzuf\xFCgen",save_expense:"Aufwendung speichern",update_expense:"Aufwendung aktualisieren",download_receipt:"Quittung herunterladen",edit_expense:"Aufwendung \xE4ndern",new_expense:"Neue Aufwendung",expense:"Aufwendung | Aufwendungen",no_expenses:"Noch keine Ausgaben!",list_of_expenses:"Dieser Abschnitt enth\xE4lt die Liste der Ausgaben.",confirm_delete:"Sie k\xF6nnen diese Ausgabe nicht wiederherstellen. | Sie k\xF6nnen diese Ausgaben nicht wiederherstellen.",created_message:"Aufwand erfolgreich erstellt",updated_message:"Aufwand erfolgreich aktualisiert",deleted_message:"Aufwand erfolgreich gel\xF6scht | Aufwand erfolgreich gel\xF6scht",categories:{categories_list:"Liste der Kategorien",title:"Titel",name:"Name",description:"Beschreibung",amount:"Summe",actions:"Aktionen",add_category:"Kategorie hinzuf\xFCgen",new_category:"Neue Kategorie",category:"Kategorie | Kategorien",select_a_category:"W\xE4hlen Sie eine Kategorie"}},Pd={email:"E-Mail",password:"Passwort",forgot_password:"Passwort vergessen?",or_signIn_with:"oder Anmelden mit",login:"Anmelden",register:"Registrieren",reset_password:"Passwort zur\xFCcksetzen",password_reset_successfully:"Passwort erfolgreich zur\xFCckgesetzt",enter_email:"Geben Sie Ihre E-Mail ein",enter_password:"Geben Sie das Passwort ein",retype_password:"Passwort best\xE4tigen"},Dd={title:"Benutzer",users_list:"Benutzerliste",name:"Name",description:"Beschreibung",added_on:"Hinzugef\xFCgt am",date_of_creation:"Erstellt am",action:"Aktion",add_user:"Benutzer hinzuf\xFCgen",save_user:"Benutzer speichern",update_user:"Benutzer aktualisieren",user:"Benutzer",add_new_user:"Neuen Benutzer hinzuf\xFCgen",new_user:"Neuer Benutzer",edit_user:"Benutzer bearbeiten",no_users:"Noch keine Benutzer!",list_of_users:"Dieser Abschnitt enth\xE4lt die Liste der Benutzer.",email:"E-Mail",phone:"Telefon",password:"Passwort",user_attached_message:"Ein Artikel der bereits verwendet wird kann nicht gel\xF6scht werden",confirm_delete:"Sie werden diesen Benutzer nicht wiederherstellen k\xF6nnen | Sie werden nicht in der Lage sein, diese Benutzer wiederherzustellen",created_message:"Benutzer erfolgreich erstellt",updated_message:"Benutzer wurde erfolgreich aktualisiert",deleted_message:"Benutzer erfolgreich gel\xF6scht | Benutzer erfolgreich gel\xF6scht"},Cd={title:"Bericht",from_date:"Ab Datum",to_date:"bis Datum",status:"Status",paid:"Bezahlt",unpaid:"Unbezahlt",download_pdf:"PDF herunterladen",view_pdf:"PDF anzeigen",update_report:"Bericht aktualisieren",report:"Bericht | Berichte",profit_loss:{profit_loss:"Gewinn & Verlust",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"},sales:{sales:"Umsatz",date_range:"Datumsbereich ausw\xE4hlen",to_date:"bis Datum",from_date:"Ab Datum",report_type:"Berichtstyp"},taxes:{taxes:"Steuern",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"},errors:{required:"Feld ist erforderlich"},invoices:{invoice:"Rechnung",invoice_date:"Rechnungsdatum",due_date:"F\xE4lligkeit",amount:"Summe",contact_name:"Ansprechpartner",status:"Status"},estimates:{estimate:"Kostenvoranschlag",estimate_date:"Datum Kostenvoranschlag",due_date:"F\xE4lligkeit",estimate_number:"Kostenvoranschlag-Nr.",ref_number:"Ref-Nummer",amount:"Summe",contact_name:"Ansprechpartner",status:"Status"},expenses:{expenses:"Aufwendungen",category:"Kategorie",date:"Datum",amount:"Summe",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"}},Ad={menu_title:{account_settings:"Konto-Einstellungen",company_information:"Informationen zum Unternehmen",customization:"Anpassung",preferences:"Einstellungen",notifications:"Benachrichtigungen",tax_types:"Steuers\xE4tze",expense_category:"Ausgabenkategorien",update_app:"Applikation aktualisieren",backup:"Sicherung",file_disk:"Dateispeicher",custom_fields:"Benutzerdefinierte Felder",payment_modes:"Zahlungsarten",notes:"Hinweise"},title:"Einstellungen",setting:"Einstellung | Einstellungen",general:"Allgemeine",language:"Sprache",primary_currency:"Prim\xE4re W\xE4hrung",timezone:"Zeitzone",date_format:"Datum-Format",currencies:{title:"W\xE4hrungen",currency:"W\xE4hrung | W\xE4hrungen",currencies_list:"W\xE4hrungen Liste",select_currency:"W\xE4hrung w\xE4hlen",name:"Name",code:"Code",symbol:"Symbol",precision:"Pr\xE4zision",thousand_separator:"Tausendertrennzeichen",decimal_separator:"Dezimal-Trennzeichen",position:"Position",position_of_symbol:"Position des W\xE4hrungssymbol",right:"Rechts",left:"Links",action:"Aktion",add_currency:"W\xE4hrung einf\xFCgen"},mail:{host:"E-Mail Mailserver",port:"E-Mail Port",driver:"E-Mail Treiber",secret:"Verschl\xFCsselung",mailgun_secret:"Mailgun Verschl\xFCsselung",mailgun_domain:"Mailgun Adresse",mailgun_endpoint:"Mailgun-Endpunkt",ses_secret:"SES Verschl\xFCsselung",ses_key:"SES-Taste",password:"E-Mail-Kennwort",username:"E-Mail-Benutzername",mail_config:"E-Mail-Konfiguration",from_name:"Von E-Mail-Namen",from_mail:"Von E-Mail-Adresse",encryption:"E-Mail-Verschl\xFCsselung",mail_config_desc:"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails \xFCber die App. Sie k\xF6nnen auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},pdf:{title:"PDF-Einstellung",footer_text:"Fu\xDFzeile Text",pdf_layout:"PDF-Layout"},company_info:{company_info:"Firmeninfo",company_name:"Name des Unternehmens",company_logo:"Firmenlogo",section_description:"Informationen zu Ihrem Unternehmen, die auf Rechnungen, Kostenvoranschl\xE4gen und anderen von Crater erstellten Dokumenten angezeigt werden.",phone:"Telefon",country:"Land",state:"Bundesland",city:"Stadt",address:"Adresse",zip:"PLZ",save:"Speichern",updated_message:"Unternehmensinformationen wurden erfolgreich aktualisiert"},custom_fields:{title:"Benutzerdefinierte Felder",section_description:"Passen Sie Ihre Rechnungen, Kostenvoranschl\xE4ge und Zahlungseinnahmen mit Ihren eigenen Feldern an. Benutzen Sie die unten aufgef\xFChrten Felder in den Adressformaten auf der Seite Anpassungseinstellungen.",add_custom_field:"Benutzerdefiniertes Feld hinzuf\xFCgen",edit_custom_field:"Benutzerdefiniertes Feld bearbeiten",field_name:"Feldname",label:"Etikette",type:"Art",name:"Name",required:"Erforderlich",placeholder:"Platzhalter",help_text:"Hilfstext",default_value:"Standardwert",prefix:"Pr\xE4fix",starting_number:"Startnummer",model:"Modell",help_text_description:"Geben Sie einen Text ein, damit Benutzer den Zweck dieses benutzerdefinierten Felds verstehen.",suffix:"Vorzeichen",yes:"Ja",no:"Nein",order:"Auftrag",custom_field_confirm_delete:"Sie k\xF6nnen dieses benutzerdefinierte Feld nicht wiederherstellen",already_in_use:"Benutzerdefiniertes Feld wird bereits verwendet",deleted_message:"Benutzerdefiniertes Feld erfolgreich gel\xF6scht",options:"Optionen",add_option:"Optionen hinzuf\xFCgen",add_another_option:"F\xFCgen Sie eine weitere Option hinzu",sort_in_alphabetical_order:"In alphabetischer Reihenfolge sortieren",add_options_in_bulk:"F\xFCgen Sie Optionen in gro\xDFen Mengen hinzu",use_predefined_options:"Verwenden Sie vordefinierte Optionen",select_custom_date:"W\xE4hlen Sie Benutzerdefiniertes Datum",select_relative_date:"W\xE4hlen Sie Relatives Datum",ticked_by_default:"Standardm\xE4\xDFig aktiviert",updated_message:"Benutzerdefiniertes Feld erfolgreich aktualisiert",added_message:"Benutzerdefiniertes Feld erfolgreich hinzugef\xFCgt"},customization:{customization:"Anpassung",save:"Speichern",addresses:{title:"Adressen",section_description:"Sie k\xF6nnen die Rechnungsadresse und das Versandadressenformat des Kunden festlegen (nur in PDF angezeigt). ",customer_billing_address:"Rechnungsadresse des Kunden",customer_shipping_address:"Versand-Adresse des Kunden",company_address:"Firma Adresse",insert_fields:"Felder einf\xFCgen",contact:"Kontakt",address:"Adresse",display_name:"Anzeigename",primary_contact_name:"Ansprechpartner",email:"E-Mail",website:"Webseite",name:"Name",country:"Land",state:"Bundesland",city:"Stadt",company_name:"Name des Unternehmens",address_street_1:"Strasse",address_street_2:"Zusatz Strasse",phone:"Telefon",zip_code:"PLZ",address_setting_updated:"Adresse-Einstellung erfolgreich aktualisiert"},updated_message:"Unternehmensinformationen wurden erfolgreich aktualisiert",invoices:{title:"Rechnungen",notes:"Hinweise",invoice_prefix:"Rechnung Pr\xE4fix",invoice_number_length:"Rechnungsnummerl\xE4nge",default_invoice_email_body:"Standard Rechnung E-Mail Inhalt",invoice_settings:"Rechnungseinstellungen",autogenerate_invoice_number:"Rechnungsnummer automatisch generieren",autogenerate_invoice_number_desc:"Deaktivieren Sie diese Option, wenn Sie Rechnungsnummern nicht jedes Mal automatisch generieren m\xF6chten, wenn Sie eine neue Rechnung erstellen.",enter_invoice_prefix:"Rechnungspr\xE4fix eingeben",terms_and_conditions:"Allgemeine Gesch\xE4ftsbedingungen",company_address_format:"Firmenadressformat",shipping_address_format:"Versandadressen Format",billing_address_format:"Rechnungsadressen Format",invoice_settings_updated:"Rechnungseinstellung erfolgreich aktualisiert"},estimates:{title:"Kostenvoranschl\xE4ge",estimate_prefix:"Kostenvoranschlag Pr\xE4fix",estimate_number_length:"Angebotsnummerl\xE4nge",default_estimate_email_body:"Rechnung - E-Mail Text",estimate_settings:"Einstellungen Kostenvoranschlag",autogenerate_estimate_number:"Kostenvoranschlagsnummer automatisch generieren",estimate_setting_description:"Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie einen neue Kostenvoranschlag erstellen, automatisch eine Sch\xE4tzung generieren m\xF6chten.",enter_estimate_prefix:"Geben Sie das Kostenvoranschlag Pr\xE4fix ein",estimate_setting_updated:"Einstellungen Kostenvoranschl\xE4ge erfolgreich aktualisiert",company_address_format:"Firmenadresse Format",billing_address_format:"Rechnungsadressen Format",shipping_address_format:"Versandadressen Format"},payments:{title:"Zahlungen",description:"Transaktionsmodi f\xFCr Zahlungen",payment_prefix:"Zahlung Pr\xE4fix",payment_number_length:"Zahlungsnummerl\xE4nge",default_payment_email_body:"Zahlung - E-Mail Text",payment_settings:"Zahlung Einstellungen",autogenerate_payment_number:"Zahlungsnummer automatisch generieren",payment_setting_description:"Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie eine neue Zahlung erstellen, automatisch Zahlungsnummern generieren m\xF6chten.",enter_payment_prefix:"Zahlungspr\xE4fix eingeben",payment_setting_updated:"Zahlungseinstellung erfolgreich aktualisiert",payment_modes:"Zahlungsarten",add_payment_mode:"Zahlungsmethode hinzuf\xFCgen",edit_payment_mode:"Zahlungsmodus bearbeiten",mode_name:"Methodenname",payment_mode_added:"Zahlungsmethode hinzugef\xFCgt",payment_mode_updated:"Zahlungsmethode aktualisiert",payment_mode_confirm_delete:"Du kannst diese Zahlungsmethode nicht wiederherstellen",already_in_use:"Zahlungsmethode bereits in Verwendung",deleted_message:"Zahlungsmethode erfolgreich",company_address_format:"Firmenadressformat",from_customer_address_format:"Rechnungsadressen Format"},items:{title:"Artikel",units:"Einheiten",add_item_unit:"Artikeleinheit hinzuf\xFCgen",edit_item_unit:"Elementeinheit bearbeiten",unit_name:"Einheitname",item_unit_added:"Artikeleinheit hinzugef\xFCgt",item_unit_updated:"Artikeleinheit aktualisiert",item_unit_confirm_delete:"Du kannst diese Artikeleinheit nicht wiederherstellen",already_in_use:"Diese Artikeleinheit ist bereits in Verwendung",deleted_message:"Artikeleinheit erfolgreich gel\xF6scht"},notes:{title:"Hinweise",description:"Sparen Sie Zeit, indem Sie Notizen erstellen und diese auf Ihren Rechnungen, Kostenvoranschl\xE4gen und Zahlungen wiederverwenden.",notes:"Hinweise",type:"Art",add_note:"Notiz hinzuf\xFCgen",add_new_note:"Neue Notiz hinzuf\xFCgen",name:"Name",edit_note:"Notiz bearbeiten",note_added:"Notiz erfolgreich hinzugef\xFCgt",note_updated:"Notiz erfolgreich aktualisiert",note_confirm_delete:"Dieser Hinweis wird unwiderruflich gel\xF6scht",already_in_use:"Hinweis bereits in verwendet",deleted_message:"Notiz erfolgreich gel\xF6scht"}},account_settings:{profile_picture:"Profil Bild",name:"Name",email:"E-Mail",password:"Passwort",confirm_password:"Kennwort Best\xE4tigen",account_settings:"Konto-Einstellungen",save:"Speichern",section_description:"Sie k\xF6nnen Ihren Namen, Ihre E-Mail-Adresse und Ihr Passwort mit dem folgenden Formular aktualisieren.",updated_message:"Kontoeinstellungen erfolgreich aktualisiert"},user_profile:{name:"Name",email:"E-Mail",password:"Passwort",confirm_password:"Kennwort best\xE4tigen"},notification:{title:"Benachrichtigung",email:"Benachrichtigungen senden an",description:"Welche E-Mail-Benachrichtigungen m\xF6chten Sie erhalten wenn sich etwas \xE4ndert?",invoice_viewed:"Rechnung angezeigt",invoice_viewed_desc:"Wenn Ihr Kunde die gesendete Rechnung anzeigt bekommt.",estimate_viewed:"Kostenvoranschlag angesehen",estimate_viewed_desc:"Wenn Ihr Kunde den gesendeten Kostenvoranschlag anzeigt bekommt.",save:"Speichern",email_save_message:"Email erfolgreich gespeichert",please_enter_email:"Bitte E-Mail eingeben"},tax_types:{title:"Steuers\xE4tze",add_tax:"Steuers\xE4tze hinzuf\xFCgen",edit_tax:"Steuer bearbeiten",description:"Sie k\xF6nnen Steuern nach Belieben hinzuf\xFCgen oder entfernen. Crater unterst\xFCtzt Steuern auf einzelne Artikel sowie auf die Rechnung.",add_new_tax:"Neuen Steuersatz hinzuf\xFCgen",tax_settings:"Einstellungen Steuersatz",tax_per_item:"Steuersatz pro Artikel",tax_name:"Name des Steuersatzes",compound_tax:"zusammengesetzte Steuer",percent:"Prozent",action:"Aktion",tax_setting_description:"Aktivieren Sie diese Option, wenn Sie den Steuersatz zu einzelnen Rechnungspositionen hinzuf\xFCgen m\xF6chten. Standardm\xE4\xDFig wird der Steuersatz direkt zur Rechnung hinzugef\xFCgt.",created_message:"Steuersatz erfolgreich erstellt",updated_message:"Steuersatz erfolgreich aktualisiert",deleted_message:"Steuersatz erfolgreich gel\xF6scht",confirm_delete:"Sie k\xF6nnen diesen Steuersatz nicht wiederherstellen",already_in_use:"Steuersatz wird bereits verwendet"},expense_category:{title:"Kategorien Kosten",action:"Aktion",description:"F\xFCr das Hinzuf\xFCgen von Ausgabeneintr\xE4gen sind Kategorien erforderlich. Sie k\xF6nnen diese Kategorien nach Ihren W\xFCnschen hinzuf\xFCgen oder entfernen.",add_new_category:"Neue Kategorie hinzuf\xFCgen",add_category:"Kategorie hinzuf\xFCgen",edit_category:"Kategorie bearbeiten",category_name:"Kategorie Name",category_description:"Beschreibung",created_message:"Ausgabenkategorie erfolgreich erstellt",deleted_message:"Ausgabenkategorie erfolgreich gel\xF6scht",updated_message:"Ausgabenkategorie erfolgreich aktualisiert",confirm_delete:"Sie k\xF6nnen diese Ausgabenkategorie nicht wiederherstellen",already_in_use:"Kategorie wird bereits verwendet"},preferences:{currency:"W\xE4hrung",default_language:"Standardsprache",time_zone:"Zeitzone",fiscal_year:"Gesch\xE4ftsjahr",date_format:"Datum-Format",discount_setting:"Einstellung Rabatt",discount_per_item:"Rabatt pro Artikel ",discount_setting_description:"Aktivieren Sie diese Option, wenn Sie einzelnen Rechnungspositionen einen Rabatt hinzuf\xFCgen m\xF6chten. Standardm\xE4\xDFig wird der Rabatt direkt zur Rechnung hinzugef\xFCgt.",save:"Speichern",preference:"Pr\xE4ferenz | Pr\xE4ferenzen",general_settings:"Standardeinstellungen f\xFCr das System.",updated_message:"Einstellungen erfolgreich aktualisiert",select_language:"Sprache ausw\xE4hlen",select_time_zone:"Zeitzone ausw\xE4hlen",select_date_format:"W\xE4hle das Datumsformat",select_financial_year:"Gesch\xE4ftsjahr ausw\xE4hlen"},update_app:{title:"Applikation aktualisieren",description:"Sie k\xF6nnen Crater ganz einfach aktualisieren, indem Sie auf die Schaltfl\xE4che unten klicken, um nach einem neuen Update zu suchen.",check_update:"Nach Updates suchen",avail_update:"Neues Update verf\xFCgbar",next_version:"N\xE4chste Version",requirements:"Voraussetzungen",update:"Jetzt aktualisieren",update_progress:"Update l\xE4uft ...",progress_text:"Es dauert nur ein paar Minuten. Bitte aktualisieren Sie den Bildschirm nicht und schlie\xDFen Sie das Fenster nicht, bevor das Update abgeschlossen ist.",update_success:"App wurde aktualisiert! Bitte warten Sie, w\xE4hrend Ihr Browserfenster automatisch neu geladen wird.",latest_message:"Kein Update verf\xFCgbar! Du bist auf der neuesten Version.",current_version:"Aktuelle Version",download_zip_file:"Laden Sie die ZIP-Datei herunter",unzipping_package:"Paket entpacken",copying_files:"Dateien kopieren",running_migrations:"Ausf\xFChren von Migrationen",finishing_update:"Update beenden",update_failed:"Update fehlgeschlagen",update_failed_text:"Es tut uns leid! Ihr Update ist am folgenden Schritt fehlgeschlagen: {step}"},backup:{title:"Sicherung | Sicherungen",description:"Die Sicherung ist eine ZIP-Datei, die alle Dateien der ausgew\xE4hlten Pfade und eine Kopie der Datenbank enth\xE4lt",new_backup:"Neues Backup",create_backup:"Datensicherung erstellen",select_backup_type:"W\xE4hlen Sie den Sicherungs-Typ",backup_confirm_delete:"Dieses Backup wird unwiderruflich gel\xF6scht",path:"Pfad",new_disk:"Speicher hinzuf\xFCgen",created_at:"erstellt am",size:"Gr\xF6\xDFe",dropbox:"Dropbox",local:"Lokal",healthy:"intakt",amount_of_backups:"Menge an Sicherungen",newest_backups:"Neuste Sicherung",used_storage:"Verwendeter Speicher",select_disk:"Speicher ausw\xE4hlen",action:"Aktion",deleted_message:"Sicherung erfolgreich gel\xF6scht",created_message:"Backup erfolgreich erstellt",invalid_disk_credentials:"Ung\xFCltige Anmeldeinformationen f\xFCr ausgew\xE4hlten Speicher"},disk:{title:"Dateispeicher | Dateispeicher",description:"Standardm\xE4\xDFig verwendet Crater Ihre lokale Festplatte zum Speichern von Sicherungen, Avatar und anderen Bilddateien. Sie k\xF6nnen mehr als einen Speicherort wie DigitalOcean, S3 und Dropbox nach Ihren W\xFCnschen konfigurieren.",created_at:"erstellt am",dropbox:"Dropbox",name:"Name",driver:"Treiber",disk_type:"Art",disk_name:"Speicher Bezeichnung",new_disk:"Speicher hinzuf\xFCgen",filesystem_driver:"Dateisystem-Treiber",local_driver:"Lokaler Treiber",local_root:"lokaler Pfad",public_driver:"\xD6ffentlicher Treiber",public_root:"\xD6ffentlicher Pfad",public_url:"\xD6ffentliche URL",public_visibility:"\xD6ffentliche Sichtbarkeit",media_driver:"Medientreiber",media_root:"Medienpfad",aws_driver:"AWS-Treiber",aws_key:"AWS-Schl\xFCssel",aws_secret:"AWS-Geheimnis",aws_region:"AWS-Region",aws_bucket:"AWS Bucket",aws_root:"AWS-Pfad",do_spaces_type:"Do Spaces-Typ",do_spaces_key:"Do Spaces-Schl\xFCssel",do_spaces_secret:"Do Spaces-Geheimnis",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Standard-Treiber",is_default:"Standard",set_default_disk:"Als Standard festlegen",success_set_default_disk:"Speicher wurde als Standard festgelegt",save_pdf_to_disk:"PDFs auf Festplatte speichern",disk_setting_description:" Aktivieren Sie dies, um eine Kopie von jeder Rechnung, jedem Kostenvoranschlag & jedem Zahlungsbelegung als PDF automatisch auf ihrem Standard-Speicher abzulegen. Wenn Sie diese Option aktivieren, verringert sich die Ladezeit beim Betrachten der PDFs.",select_disk:"Speicherort ausw\xE4hlen",disk_settings:"Speichermedienkonfiguration",confirm_delete:"Ihre existierenden Dateien und Ordner auf der angegebenen Festplatte werden nicht beeinflusst, aber Dieser Speicherort wird aus Crater gel\xF6scht",action:"Aktion",edit_file_disk:"Edit File Disk",success_create:"Speicher erfolgreich hinzugef\xFCgt",success_update:"Speicher erfolgreich bearbeitet",error:"Hinzuf\xFCgen des Speichers gescheitert",deleted_message:"Speicher erfolgreich gel\xF6scht",disk_variables_save_successfully:"Speicher erfolgreich konfiguriert",disk_variables_save_error:"Konfiguration des Speicher gescheitert",invalid_disk_credentials:"Ung\xFCltige Anmeldeinformationen f\xFCr ausgew\xE4hlten Speicher"}},Ed={account_info:"Account-Informationen",account_info_desc:"Die folgenden Details werden zum Erstellen des Hauptadministratorkontos verwendet. Sie k\xF6nnen die Details auch jederzeit nach dem Anmelden \xE4ndern.",name:"Name",email:"E-Mail",password:"Passwort",confirm_password:"Passwort best\xE4tigen",save_cont:"Speichern und weiter",company_info:"Unternehmensinformationen",company_info_desc:"Diese Informationen werden auf Rechnungen angezeigt. Beachten Sie, dass Sie diese sp\xE4ter auf der Einstellungsseite bearbeiten k\xF6nnen.",company_name:"Firmenname",company_logo:"Firmenlogo",logo_preview:"Vorschau Logo",preferences:"Einstellungen",preferences_desc:"Standardeinstellungen f\xFCr das System.",country:"Land",state:"Bundesland",city:"Stadt",address:"Adresse",street:"Stra\xDFe1 | Stra\xDFe2",phone:"Telefon",zip_code:"Postleitzahl",go_back:"Zur\xFCck",currency:"W\xE4hrung",language:"Sprache",time_zone:"Zeitzone",fiscal_year:"Gesch\xE4ftsjahr",date_format:"Datumsformat",from_address:"Absender",username:"Benutzername",next:"Weiter",continue:"Weiter",skip:"\xDCberspringen",database:{database:"URL der Seite & Datenbank",connection:"Datenbank Verbindung",host:"Datenbank Host",port:"Datenbank Port",password:"Datenbank Passwort",app_url:"App-URL",app_domain:"Domain der App",username:"Datenbank Benutzername",db_name:"Datenbank Name",db_path:"Datenbankpfad",desc:"Erstellen Sie eine Datenbank auf Ihrem Server und legen Sie die Anmeldeinformationen mithilfe des folgenden Formulars fest."},permissions:{permissions:"Berechtigungen",permission_confirm_title:"Sind Sie sicher, dass Sie fortfahren m\xF6chten?",permission_confirm_desc:"Pr\xFCfung der Berechtigung der Ordner fehlgeschlagen.",permission_desc:"Unten finden Sie eine Liste der Ordnerberechtigungen, die erforderlich sind, damit die App funktioniert. Wenn die Berechtigungspr\xFCfung fehlschl\xE4gt, m\xFCssen Sie Ihre Ordnerberechtigungen aktualisieren."},mail:{host:"E-Mail-Host",port:"E-Mail-Port",driver:"E-Mail-Treiber",secret:"Verschl\xFCsselung",mailgun_secret:"Mailgun Verschl\xFCsselung",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun-Endpunkt",ses_secret:"SES Verschl\xFCsselung",ses_key:"SES-Taste",password:"E-Mail-Passwort",username:"E-Mail-Benutzername",mail_config:"E-Mail-Konfiguration",from_name:"Von E-Mail-Absendername",from_mail:"Von E-Mail-Absenderadresse",encryption:"E-Mail-Verschl\xFCsselung",mail_config_desc:"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails \xFCber die App. Sie k\xF6nnen auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},req:{system_req:"System Anforderungen",php_req_version:"Php (version {version} erforderlich)",check_req:"Anforderungen pr\xFCfen",system_req_desc:"Crater hat einige Serveranforderungen. Stellen Sie sicher, dass Ihr Server die erforderliche PHP-Version und alle unten genannten Erweiterungen hat."},errors:{migrate_failed:"Migration ist Fehlgeschlagen",database_variables_save_error:"Konfiguration kann nicht in EN.env-Datei geschrieben werden. Bitte \xFCberpr\xFCfen Sie die Dateiberechtigungen.",mail_variables_save_error:"E-Mail-Konfiguration fehlgeschlagen.",connection_failed:"Datenbankverbindung fehlgeschlagen",database_should_be_empty:"Datenbank sollte leer sein"},success:{mail_variables_save_successfully:"E-Mail erfolgreich konfiguriert",database_variables_save_successfully:"Datenbank erfolgreich konfiguriert."}},Nd={invalid_phone:"Ung\xFCltige Telefonnummer",invalid_url:"Ung\xFCltige URL (Bsp.: http://www.craterapp.com)",invalid_domain_url:"Ung\xFCltige URL (Bsp.: craterapp.com)",required:"Feld ist erforderlich",email_incorrect:"Falsche E-Mail.",email_already_taken:"Die E-Mail ist bereits vergeben.",email_does_not_exist:"Benutzer mit der angegebenen E-Mail existiert nicht",item_unit_already_taken:"Die Artikeleinheit wurde bereits vergeben",payment_mode_already_taken:"Der Zahlungsmodus wurde bereits verwendet",send_reset_link:"Link zum Zur\xFCcksetzen senden",not_yet:"Noch erhalten? Erneut senden",password_min_length:"Password mu\xDF {count} Zeichen enthalten",name_min_length:"Name muss mindestens {count} Zeichen enthalten.",enter_valid_tax_rate:"Geben Sie einen g\xFCltige Steuersatz ein",numbers_only:"Nur Zahlen.",characters_only:"Nur Zeichen.",password_incorrect:"Passw\xF6rter m\xFCssen identisch sein",password_length:"Passwort muss {count} Zeichen lang sein.",qty_must_greater_than_zero:"Die Menge muss gr\xF6\xDFer als 0 sein.",price_greater_than_zero:"Preis muss gr\xF6\xDFer als 0 sein.",payment_greater_than_zero:"Die Zahlung muss gr\xF6\xDFer als 0 sein.",payment_greater_than_due_amount:"Die eingegebene Zahlung ist mehr als der f\xE4llige Betrag dieser Rechnung.",quantity_maxlength:"Die Menge sollte nicht gr\xF6\xDFer als 20 Ziffern sein.",price_maxlength:"Der Preis sollte nicht gr\xF6\xDFer als 20 Ziffern sein.",price_minvalue:"Der Preis sollte gr\xF6\xDFer als 0 sein.",amount_maxlength:"Der Betrag sollte nicht gr\xF6\xDFer als 20 Ziffern sein.",amount_minvalue:"Betrag sollte gr\xF6\xDFer als 0 sein.",description_maxlength:"Die Beschreibung sollte nicht l\xE4nger als 255 Zeichen sein.",subject_maxlength:"Der Betreff sollte nicht l\xE4nger als 100 Zeichen sein.",message_maxlength:"Die Nachricht sollte nicht l\xE4nger als 255 Zeichen sein.",maximum_options_error:"Maximal {max} Optionen ausgew\xE4hlt. Entfernen Sie zuerst eine ausgew\xE4hlte Option, um eine andere auszuw\xE4hlen.",notes_maxlength:"Notizen sollten nicht l\xE4nger als 255 Zeichen sein.",address_maxlength:"Die Adresse sollte nicht l\xE4nger als 255 Zeichen sein.",ref_number_maxlength:"Ref Number sollte nicht l\xE4nger als 255 Zeichen sein.",prefix_maxlength:"Das Pr\xE4fix sollte nicht l\xE4nger als 5 Zeichen sein.",something_went_wrong:"Da ist etwas schief gelaufen",number_length_minvalue:"Nummernl\xE4nge sollte gr\xF6\xDFer als 0 sein"},Td="Kostenvoranschlag",Id="Kostenvoran. Nummer",$d="Datum Kostenvoranschlag",Rd="Ablaufdatum",Fd="Rechnung",Md="Rechnungsnummer",Vd="Rechnungsdatum",Bd="F\xE4lligkeitsdatum",Od="Hinweise",Ld="Artikel",Ud="Menge",Kd="Preis",qd="Rabatt",Zd="Summe",Wd="Zwischensumme",Hd="Gesamt",Gd="Zahlung",Yd="Zahlungsbeleg",Jd="Zahlungsdatum",Xd="Zahlungsnummer",Qd="Zahlungsart",el="Betrag erhalten",tl="Ausgaben Bericht",al="Gesamtausgaben",sl="Gewinn & Verlust Bericht",nl="Kundenverkaufs Bericht",il="Artikelverkaufs Bericht",ol="Steuer Bericht",rl="Einkommen",dl="Nettogewinn",ll="Umsatzbericht: Nach Kunde",cl="GESAMTUMSATZ",_l="Umsatzbericht: Nach Artikel",ul="Umsatzsteuer BERICHT",ml="Gesamte Umsatzsteuer",pl="Steuers\xE4tze",gl="Gesamtausgaben",fl="Rechnungsempf\xE4nger,",hl="Versand an,",vl="Erhalten von:",yl="Skat";var bl={navigation:fd,general:hd,dashboard:vd,tax_types:yd,global_search:bd,customers:kd,items:wd,estimates:xd,invoices:zd,payments:Sd,expenses:jd,login:Pd,users:Dd,reports:Cd,settings:Ad,wizard:Ed,validation:Nd,pdf_estimate_label:Td,pdf_estimate_number:Id,pdf_estimate_date:$d,pdf_estimate_expire_date:Rd,pdf_invoice_label:Fd,pdf_invoice_number:Md,pdf_invoice_date:Vd,pdf_invoice_due_date:Bd,pdf_notes:Od,pdf_items_label:Ld,pdf_quantity_label:Ud,pdf_price_label:Kd,pdf_discount_label:qd,pdf_amount_label:Zd,pdf_subtotal:Wd,pdf_total:Hd,pdf_payment_label:Gd,pdf_payment_receipt_label:Yd,pdf_payment_date:Jd,pdf_payment_number:Xd,pdf_payment_mode:Qd,pdf_payment_amount_received_label:el,pdf_expense_report_label:tl,pdf_total_expenses_label:al,pdf_profit_loss_label:sl,pdf_sales_customers_label:nl,pdf_sales_items_label:il,pdf_tax_summery_label:ol,pdf_income_label:rl,pdf_net_profit_label:dl,pdf_customer_sales_report:ll,pdf_total_sales_label:cl,pdf_item_sales_label:_l,pdf_tax_report_label:ul,pdf_total_tax_label:ml,pdf_tax_types_label:pl,pdf_expenses_label:gl,pdf_bill_to:fl,pdf_ship_to:hl,pdf_received_from:vl,pdf_tax_label:yl};const kl={dashboard:"\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9",customers:"\u304A\u5BA2\u69D8",items:"\u30A2\u30A4\u30C6\u30E0",invoices:"\u8ACB\u6C42\u66F8",expenses:"\u7D4C\u8CBB",estimates:"\u898B\u7A4D\u308A",payments:"\u652F\u6255\u3044",reports:"\u30EC\u30DD\u30FC\u30C8",settings:"\u8A2D\u5B9A",logout:"\u30ED\u30B0\u30A2\u30A6\u30C8",users:"\u30E6\u30FC\u30B6\u30FC"},wl={add_company:"\u4F1A\u793E\u3092\u8FFD\u52A0",view_pdf:"PDF\u3092\u898B\u308B",copy_pdf_url:"PDFURL\u3092\u30B3\u30D4\u30FC\u3059\u308B",download_pdf:"PDF\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",save:"\u30BB\u30FC\u30D6",create:"\u4F5C\u6210\u3059\u308B",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",update:"\u66F4\u65B0",deselect:"\u9078\u629E\u3092\u89E3\u9664",download:"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",from_date:"\u65E5\u4ED8\u304B\u3089",to_date:"\u73FE\u5728\u307E\u3067",from:"\u304B\u3089",to:"\u306B",sort_by:"\u4E26\u3073\u66FF\u3048",ascending:"\u4E0A\u6607",descending:"\u964D\u9806",subject:"\u4EF6\u540D",body:"\u4F53",message:"\u30E1\u30C3\u30BB\u30FC\u30B8",send:"\u9001\u4FE1",go_back:"\u623B\u308B",back_to_login:"\u30ED\u30B0\u30A4\u30F3\u306B\u623B\u308B\uFF1F",home:"\u30DB\u30FC\u30E0\u30DB\u30FC\u30E0",filter:"\u30D5\u30A3\u30EB\u30BF",delete:"\u524A\u9664",edit:"\u7DE8\u96C6",view:"\u898B\u308B",add_new_item:"\u65B0\u3057\u3044\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",clear_all:"\u3059\u3079\u3066\u30AF\u30EA\u30A2",showing:"\u8868\u793A\u4E2D",of:"\u306E",actions:"\u884C\u52D5",subtotal:"\u5C0F\u8A08",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",fixed:"\u4FEE\u7E55",percentage:"\u30D1\u30FC\u30BB\u30F3\u30C6\u30FC\u30B8",tax:"\u7A0E\u91D1",total_amount:"\u5408\u8A08\u91D1\u984D",bill_to:"\u8ACB\u6C42\u66F8\u9001\u4ED8\u5148",ship_to:"\u9001\u308A\u5148",due:"\u671F\u9650",draft:"\u30C9\u30E9\u30D5\u30C8",sent:"\u9001\u4FE1\u6E08\u307F",all:"\u3059\u3079\u3066",select_all:"\u3059\u3079\u3066\u9078\u629E",choose_file:"\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3059\u308B\u306B\u306F\u3001\u3053\u3053\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044",choose_template:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",choose:"\u9078\u629E",remove:"\u524A\u9664\u3059\u308B",powered_by:"\u642D\u8F09",bytefury:"Bytefury",select_a_status:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u9078\u629E",select_a_tax:"\u7A0E\u91D1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",search:"\u63A2\u3059",are_you_sure:"\u672C\u6C17\u3067\u3059\u304B\uFF1F",list_is_empty:"\u30EA\u30B9\u30C8\u306F\u7A7A\u3067\u3059\u3002",no_tax_found:"\u7A0E\u91D1\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF01",four_zero_four:"404",you_got_lost:"\u304A\u3063\u3068\uFF01\u3042\u306A\u305F\u306F\u8FF7\u5B50\u306B\u306A\u308A\u307E\u3057\u305F\uFF01",go_home:"\u5BB6\u306B\u5E30\u308B",test_mail_conf:"\u30E1\u30FC\u30EB\u69CB\u6210\u306E\u30C6\u30B9\u30C8",send_mail_successfully:"\u30E1\u30FC\u30EB\u306F\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",setting_updated:"\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",select_state:"\u72B6\u614B\u3092\u9078\u629E",select_country:"\u56FD\u3092\u9078\u629E",select_city:"\u90FD\u5E02\u3092\u9078\u629E",street_1:"\u30B9\u30C8\u30EA\u30FC\u30C81",street_2:"2\u4E01\u76EE",action_failed:"\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u5931\u6557\u3057\u307E\u3057\u305F",retry:"\u30EA\u30C8\u30E9\u30A4",choose_note:"\u6CE8\u3092\u9078\u629E",no_note_found:"\u30E1\u30E2\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",insert_note:"\u30E1\u30E2\u3092\u633F\u5165",copied_pdf_url_clipboard:"PDF\u306EURL\u3092\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\uFF01"},xl={select_year:"\u5E74\u3092\u9078\u629E",cards:{due_amount:"\u6599\u91D1",customers:"\u304A\u5BA2\u69D8",invoices:"\u8ACB\u6C42\u66F8",estimates:"\u898B\u7A4D\u308A"},chart_info:{total_sales:"\u8CA9\u58F2",total_receipts:"\u9818\u53CE\u66F8",total_expense:"\u7D4C\u8CBB",net_income:"\u5F53\u671F\u7D14\u5229\u76CA",year:"\u5E74\u3092\u9078\u629E"},monthly_chart:{title:"\u8CA9\u58F2"},recent_invoices_card:{title:"\u671F\u65E5\u8ACB\u6C42\u66F8",due_on:"\u671F\u9650",customer:"\u304A\u5BA2\u69D8",amount_due:"\u6599\u91D1",actions:"\u884C\u52D5",view_all:"\u3059\u3079\u3066\u8868\u793A"},recent_estimate_card:{title:"\u6700\u8FD1\u306E\u898B\u7A4D\u3082\u308A",date:"\u65E5\u4ED8",customer:"\u304A\u5BA2\u69D8",amount_due:"\u6599\u91D1",actions:"\u884C\u52D5",view_all:"\u3059\u3079\u3066\u8868\u793A"}},zl={name:"\u540D\u524D",description:"\u8AAC\u660E",percent:"\u30D1\u30FC\u30BB\u30F3\u30C8",compound_tax:"\u8907\u5408\u7A0E"},Sl={search:"\u63A2\u3059...",customers:"\u304A\u5BA2\u69D8",users:"\u30E6\u30FC\u30B6\u30FC",no_results_found:"\u7D50\u679C\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},jl={title:"\u304A\u5BA2\u69D8",add_customer:"\u9867\u5BA2\u3092\u8FFD\u52A0",contacts_list:"\u9867\u5BA2\u30EA\u30B9\u30C8",name:"\u540D\u524D",mail:"\u30E1\u30FC\u30EB|\u30E1\u30FC\u30EB",statement:"\u30B9\u30C6\u30FC\u30C8\u30E1\u30F3\u30C8",display_name:"\u8868\u793A\u540D",primary_contact_name:"\u4E3B\u306A\u9023\u7D61\u5148\u540D",contact_name:"\u9023\u7D61\u5148",amount_due:"\u6599\u91D1",email:"E\u30E1\u30FC\u30EB",address:"\u4F4F\u6240",phone:"\u96FB\u8A71",website:"\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8",overview:"\u6982\u8981\u6982\u8981",enable_portal:"\u30DD\u30FC\u30BF\u30EB\u3092\u6709\u52B9\u306B\u3059\u308B",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",zip_code:"\u90F5\u4FBF\u756A\u53F7",added_on:"\u8FFD\u52A0\u3055\u308C\u305F",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",street_number:"\u8857\u8DEF\u756A\u53F7",primary_currency:"\u4E00\u6B21\u901A\u8CA8",description:"\u8AAC\u660E",add_new_customer:"\u65B0\u898F\u9867\u5BA2\u306E\u8FFD\u52A0",save_customer:"\u9867\u5BA2\u3092\u6551\u3046",update_customer:"\u9867\u5BA2\u306E\u66F4\u65B0",customer:"\u9867\u5BA2|\u304A\u5BA2\u69D8",new_customer:"\u65B0\u898F\u9867\u5BA2",edit_customer:"\u9867\u5BA2\u306E\u7DE8\u96C6",basic_info:"\u57FA\u672C\u60C5\u5831",billing_address:"\u8ACB\u6C42\u5148\u4F4F\u6240",shipping_address:"\u304A\u5C4A\u3051\u5148\u306E\u4F4F\u6240",copy_billing_address:"\u8ACB\u6C42\u304B\u3089\u30B3\u30D4\u30FC",no_customers:"\u307E\u3060\u304A\u5BA2\u69D8\u306F\u3044\u307E\u305B\u3093\uFF01",no_customers_found:"\u9867\u5BA2\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF01",no_contact:"\u63A5\u89E6\u7121\u3057",no_contact_name:"\u9023\u7D61\u5148\u540D\u306A\u3057",list_of_customers:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u9867\u5BA2\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",primary_display_name:"\u4E00\u6B21\u8868\u793A\u540D",select_currency:"\u901A\u8CA8\u3092\u9078\u629E",select_a_customer:"\u9867\u5BA2\u3092\u9078\u629E\u3059\u308B",type_or_click:"\u5165\u529B\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u9078\u629E",new_transaction:"\u65B0\u3057\u3044\u30C8\u30E9\u30F3\u30B6\u30AF\u30B7\u30E7\u30F3",no_matching_customers:"\u4E00\u81F4\u3059\u308B\u9867\u5BA2\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",phone_number:"\u96FB\u8A71\u756A\u53F7",create_date:"\u65E5\u4ED8\u3092\u4F5C\u6210\u3057\u307E\u3059",confirm_delete:"\u3053\u306E\u9867\u5BA2\u304A\u3088\u3073\u95A2\u9023\u3059\u308B\u3059\u3079\u3066\u306E\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3001\u304A\u3088\u3073\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002 |\u3053\u308C\u3089\u306E\u9867\u5BA2\u304A\u3088\u3073\u95A2\u9023\u3059\u308B\u3059\u3079\u3066\u306E\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3001\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",created_message:"\u9867\u5BA2\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u304A\u5BA2\u69D8\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u304A\u5BA2\u69D8\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u9867\u5BA2\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},Pl={title:"\u30A2\u30A4\u30C6\u30E0",items_list:"\u30A2\u30A4\u30C6\u30E0\u30EA\u30B9\u30C8",name:"\u540D\u524D",unit:"\u5358\u4F4D",description:"\u8AAC\u660E",added_on:"\u8FFD\u52A0\u3055\u308C\u305F",price:"\u4FA1\u683C",date_of_creation:"\u4F5C\u6210\u65E5",not_selected:"\u30A2\u30A4\u30C6\u30E0\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",add_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0",save_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u4FDD\u5B58",update_item:"\u30A2\u30A4\u30C6\u30E0\u306E\u66F4\u65B0",item:"\u30A2\u30A4\u30C6\u30E0|\u30A2\u30A4\u30C6\u30E0",add_new_item:"\u65B0\u3057\u3044\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",new_item:"\u65B0\u5546\u54C1",edit_item:"\u30A2\u30A4\u30C6\u30E0\u306E\u7DE8\u96C6",no_items:"\u307E\u3060\u30A2\u30A4\u30C6\u30E0\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_items:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u30A2\u30A4\u30C6\u30E0\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",select_a_unit:"\u30E6\u30CB\u30C3\u30C8\u3092\u9078\u629E",taxes:"\u7A0E\u91D1",item_attached_message:"\u3059\u3067\u306B\u4F7F\u7528\u4E2D\u306E\u30A2\u30A4\u30C6\u30E0\u306F\u524A\u9664\u3067\u304D\u307E\u305B\u3093",confirm_delete:"\u3053\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u30A2\u30A4\u30C6\u30E0\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},Dl={title:"\u898B\u7A4D\u308A",estimate:"\u898B\u7A4D\u3082\u308A|\u898B\u7A4D\u308A",estimates_list:"\u898B\u7A4D\u3082\u308A\u30EA\u30B9\u30C8",days:"{days}\u65E5",months:"{months}\u6708",years:"{years}\u5E74",all:"\u3059\u3079\u3066",paid:"\u6709\u6599",unpaid:"\u672A\u6255\u3044",customer:"\u304A\u5BA2\u69D8",ref_no:"\u53C2\u7167\u756A\u53F7",number:"\u6570",amount_due:"\u6599\u91D1",partially_paid:"\u90E8\u5206\u7684\u306B\u652F\u6255\u308F\u308C\u305F",total:"\u5408\u8A08",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",sub_total:"\u5C0F\u8A08",estimate_number:"\u898B\u7A4D\u3082\u308A\u756A\u53F7",ref_number:"\u53C2\u7167\u756A\u53F7",contact:"\u9023\u7D61\u5148",add_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",date:"\u65E5\u4ED8",due_date:"\u671F\u65E5",expiry_date:"\u6709\u52B9\u671F\u9650",status:"\u72B6\u614B",add_tax:"\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",notes:"\u30CE\u30FC\u30C8",tax:"\u7A0E\u91D1",estimate_template:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",convert_to_invoice:"\u8ACB\u6C42\u66F8\u306B\u5909\u63DB",mark_as_sent:"\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",send_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u9001\u4FE1",resend_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u518D\u9001",record_payment:"\u652F\u6255\u3044\u306E\u8A18\u9332",add_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",save_estimate:"\u898B\u7A4D\u3082\u308A\u3092\u4FDD\u5B58",confirm_conversion:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u3001\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u3092\u4F5C\u6210\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002",conversion_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",confirm_send_estimate:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u3001\u96FB\u5B50\u30E1\u30FC\u30EB\u3067\u304A\u5BA2\u69D8\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",confirm_mark_as_sent:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_mark_as_accepted:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u627F\u8A8D\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_mark_as_rejected:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u62D2\u5426\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",no_matching_estimates:"\u4E00\u81F4\u3059\u308B\u898B\u7A4D\u3082\u308A\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",mark_as_sent_successfully:"\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u305F\u3068\u30DE\u30FC\u30AF\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A",send_estimate_successfully:"\u898B\u7A4D\u3082\u308A\u306F\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",errors:{required:"\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u5FC5\u9808\u9805\u76EE\u3067\u3059"},accepted:"\u627F\u8A8D\u6E08\u307F",rejected:"\u62D2\u5426\u3055\u308C\u307E\u3057\u305F",sent:"\u9001\u4FE1\u6E08\u307F",draft:"\u30C9\u30E9\u30D5\u30C8",declined:"\u8F9E\u9000",new_estimate:"\u65B0\u3057\u3044\u898B\u7A4D\u3082\u308A",add_new_estimate:"\u65B0\u3057\u3044\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",update_Estimate:"\u898B\u7A4D\u3082\u308A\u3092\u66F4\u65B0",edit_estimate:"\u898B\u7A4D\u3082\u308A\u306E\u7DE8\u96C6",items:"\u30A2\u30A4\u30C6\u30E0",Estimate:"\u898B\u7A4D\u3082\u308A|\u898B\u7A4D\u308A",add_new_tax:"\u65B0\u3057\u3044\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",no_estimates:"\u307E\u3060\u898B\u7A4D\u3082\u308A\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_estimates:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u898B\u7A4D\u3082\u308A\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",mark_as_rejected:"\u62D2\u5426\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",mark_as_accepted:"\u627F\u8A8D\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",marked_as_accepted_message:"\u627F\u8A8D\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A",marked_as_rejected_message:"\u62D2\u5426\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A",confirm_delete:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u898B\u7A4D\u3082\u308A\u3092\u5FA9\u5143\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u898B\u7A4D\u3082\u308A\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u898B\u7A4D\u3082\u308A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u63A8\u5B9A\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u63A8\u5B9A\u5024\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F",item:{title:"\u30A2\u30A4\u30C6\u30E0\u30BF\u30A4\u30C8\u30EB",description:"\u8AAC\u660E",quantity:"\u91CF",price:"\u4FA1\u683C",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",total:"\u5408\u8A08",total_discount:"\u5408\u8A08\u5272\u5F15",sub_total:"\u5C0F\u8A08",tax:"\u7A0E\u91D1",amount:"\u91CF",select_an_item:"\u5165\u529B\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30A2\u30A4\u30C6\u30E0\u3092\u9078\u629E\u3057\u307E\u3059",type_item_description:"\u30BF\u30A4\u30D7\u30A2\u30A4\u30C6\u30E0\u8AAC\u660E\uFF08\u30AA\u30D7\u30B7\u30E7\u30F3\uFF09"}},Cl={title:"\u8ACB\u6C42\u66F8",invoices_list:"\u8ACB\u6C42\u66F8\u30EA\u30B9\u30C8",days:"{days}\u65E5",months:"{months}\u6708",years:"{years}\u5E74",all:"\u3059\u3079\u3066",paid:"\u6709\u6599",unpaid:"\u672A\u6255\u3044",viewed:"\u95B2\u89A7\u6E08\u307F",overdue:"\u5EF6\u6EDE",completed:"\u5B8C\u4E86",customer:"\u304A\u5BA2\u69D8",paid_status:"\u6709\u6599\u30B9\u30C6\u30FC\u30BF\u30B9",ref_no:"\u53C2\u7167\u756A\u53F7",number:"\u6570",amount_due:"\u6599\u91D1",partially_paid:"\u90E8\u5206\u7684\u306B\u652F\u6255\u308F\u308C\u305F",total:"\u5408\u8A08",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",sub_total:"\u5C0F\u8A08",invoice:"\u8ACB\u6C42\u66F8|\u8ACB\u6C42\u66F8",invoice_number:"\u8ACB\u6C42\u66F8\u756A\u53F7",ref_number:"\u53C2\u7167\u756A\u53F7",contact:"\u9023\u7D61\u5148",add_item:"\u30A2\u30A4\u30C6\u30E0\u3092\u8FFD\u52A0\u3059\u308B",date:"\u65E5\u4ED8",due_date:"\u671F\u65E5",status:"\u72B6\u614B",add_tax:"\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",notes:"\u30CE\u30FC\u30C8",view:"\u898B\u308B",send_invoice:"\u8ACB\u6C42\u66F8\u3092\u9001\u308A\u307E\u3059",resend_invoice:"\u8ACB\u6C42\u66F8\u3092\u518D\u9001\u3059\u308B",invoice_template:"\u8ACB\u6C42\u66F8\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",template:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",mark_as_sent:"\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF",confirm_send_invoice:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u30E1\u30FC\u30EB\u3067\u304A\u5BA2\u69D8\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",invoice_mark_as_sent:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_send:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u30E1\u30FC\u30EB\u3067\u304A\u5BA2\u69D8\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",invoice_date:"\u8ACB\u6C42\u66F8\u306E\u65E5\u4ED8",record_payment:"\u652F\u6255\u3044\u306E\u8A18\u9332",add_new_invoice:"\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u3092\u8FFD\u52A0\u3059\u308B",update_expense:"\u7D4C\u8CBB\u306E\u66F4\u65B0",edit_invoice:"\u8ACB\u6C42\u66F8\u306E\u7DE8\u96C6",new_invoice:"\u65B0\u3057\u3044\u8ACB\u6C42\u66F8",save_invoice:"\u8ACB\u6C42\u66F8\u3092\u4FDD\u5B58\u3059\u308B",update_invoice:"\u8ACB\u6C42\u66F8\u3092\u66F4\u65B0\u3059\u308B",add_new_tax:"\u65B0\u3057\u3044\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",no_invoices:"\u8ACB\u6C42\u66F8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_invoices:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u8ACB\u6C42\u66F8\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",select_invoice:"\u8ACB\u6C42\u66F8\u3092\u9078\u629E",no_matching_invoices:"\u4E00\u81F4\u3059\u308B\u8ACB\u6C42\u66F8\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",mark_as_sent_successfully:"\u6B63\u5E38\u306B\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u8ACB\u6C42\u66F8",invoice_sent_successfully:"\u8ACB\u6C42\u66F8\u306F\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",cloned_successfully:"\u8ACB\u6C42\u66F8\u306E\u30AF\u30ED\u30FC\u30F3\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",clone_invoice:"\u30AF\u30ED\u30FC\u30F3\u8ACB\u6C42\u66F8",confirm_clone:"\u3053\u306E\u8ACB\u6C42\u66F8\u306F\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u306B\u8907\u88FD\u3055\u308C\u307E\u3059",item:{title:"\u30A2\u30A4\u30C6\u30E0\u30BF\u30A4\u30C8\u30EB",description:"\u8AAC\u660E",quantity:"\u91CF",price:"\u4FA1\u683C",discount:"\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",total:"\u5408\u8A08",total_discount:"\u5408\u8A08\u5272\u5F15",sub_total:"\u5C0F\u8A08",tax:"\u7A0E\u91D1",amount:"\u91CF",select_an_item:"\u5165\u529B\u307E\u305F\u306F\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30A2\u30A4\u30C6\u30E0\u3092\u9078\u629E\u3057\u307E\u3059",type_item_description:"\u30BF\u30A4\u30D7\u30A2\u30A4\u30C6\u30E0\u8AAC\u660E\uFF08\u30AA\u30D7\u30B7\u30E7\u30F3\uFF09"},confirm_delete:"\u3053\u306E\u8ACB\u6C42\u66F8\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u8ACB\u6C42\u66F8\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",created_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u8ACB\u6C42\u66F8\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u8ACB\u6C42\u66F8\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",marked_as_sent_message:"\u6B63\u5E38\u306B\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u305F\u8ACB\u6C42\u66F8",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F",invalid_due_amount_message:"\u8ACB\u6C42\u66F8\u306E\u5408\u8A08\u91D1\u984D\u306F\u3001\u3053\u306E\u8ACB\u6C42\u66F8\u306E\u652F\u6255\u3044\u7DCF\u984D\u3088\u308A\u5C11\u306A\u304F\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002\u7D9A\u884C\u3059\u308B\u306B\u306F\u3001\u8ACB\u6C42\u66F8\u3092\u66F4\u65B0\u3059\u308B\u304B\u3001\u95A2\u9023\u3059\u308B\u652F\u6255\u3044\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},Al={title:"\u652F\u6255\u3044",payments_list:"\u652F\u6255\u3044\u30EA\u30B9\u30C8",record_payment:"\u652F\u6255\u3044\u306E\u8A18\u9332",customer:"\u304A\u5BA2\u69D8",date:"\u65E5\u4ED8",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",payment_number:"\u652F\u6255\u3044\u756A\u53F7",payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9",invoice:"\u8ACB\u6C42\u66F8",note:"\u6CE8\u610F",add_payment:"\u652F\u6255\u3044\u3092\u8FFD\u52A0\u3059\u308B",new_payment:"\u65B0\u898F\u652F\u6255\u3044",edit_payment:"\u652F\u6255\u3044\u306E\u7DE8\u96C6",view_payment:"\u652F\u6255\u3044\u3092\u8868\u793A",add_new_payment:"\u65B0\u3057\u3044\u652F\u6255\u3044\u3092\u8FFD\u52A0\u3059\u308B",send_payment_receipt:"\u9818\u53CE\u66F8\u3092\u9001\u308B",send_payment:"\u652F\u6255\u3044\u3092\u9001\u308B",save_payment:"\u652F\u6255\u3044\u3092\u7BC0\u7D04\u3059\u308B",update_payment:"\u652F\u6255\u3044\u306E\u66F4\u65B0",payment:"\u652F\u6255\u3044|\u652F\u6255\u3044",no_payments:"\u307E\u3060\u652F\u6255\u3044\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",not_selected:"\u9078\u629E\u3055\u308C\u3066\u3044\u306A\u3044",no_invoice:"\u8ACB\u6C42\u66F8\u306A\u3057",no_matching_payments:"\u4E00\u81F4\u3059\u308B\u652F\u6255\u3044\u306F\u3042\u308A\u307E\u305B\u3093\uFF01",list_of_payments:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u652F\u6255\u3044\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",select_payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u3092\u9078\u629E\u3057\u307E\u3059",confirm_mark_as_sent:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u306F\u9001\u4FE1\u6E08\u307F\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3055\u308C\u307E\u3059",confirm_send_payment:"\u3053\u306E\u652F\u6255\u3044\u306F\u96FB\u5B50\u30E1\u30FC\u30EB\u3067\u9867\u5BA2\u306B\u9001\u4FE1\u3055\u308C\u307E\u3059",send_payment_successfully:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F",confirm_delete:"\u3053\u306E\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u652F\u6255\u3044\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u652F\u6255\u3044\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",invalid_amount_message:"\u304A\u652F\u6255\u3044\u91D1\u984D\u304C\u7121\u52B9\u3067\u3059"},El={title:"\u7D4C\u8CBB",expenses_list:"\u7D4C\u8CBB\u30EA\u30B9\u30C8",select_a_customer:"\u9867\u5BA2\u3092\u9078\u629E\u3059\u308B",expense_title:"\u984C\u540D",customer:"\u304A\u5BA2\u69D8",contact:"\u9023\u7D61\u5148",category:"\u30AB\u30C6\u30B4\u30EA\u30FC",from_date:"\u65E5\u4ED8\u304B\u3089",to_date:"\u73FE\u5728\u307E\u3067",expense_date:"\u65E5\u4ED8",description:"\u8AAC\u660E",receipt:"\u9818\u53CE\u66F8",amount:"\u91CF",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",not_selected:"\u9078\u629E\u3055\u308C\u3066\u3044\u306A\u3044",note:"\u6CE8\u610F",category_id:"\u30AB\u30C6\u30B4\u30EAID",date:"\u65E5\u4ED8",add_expense:"\u7D4C\u8CBB\u3092\u8FFD\u52A0\u3059\u308B",add_new_expense:"\u65B0\u3057\u3044\u7D4C\u8CBB\u3092\u8FFD\u52A0\u3059\u308B",save_expense:"\u7D4C\u8CBB\u3092\u7BC0\u7D04",update_expense:"\u7D4C\u8CBB\u306E\u66F4\u65B0",download_receipt:"\u9818\u53CE\u66F8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",edit_expense:"\u7D4C\u8CBB\u306E\u7DE8\u96C6",new_expense:"\u65B0\u3057\u3044\u7D4C\u8CBB",expense:"\u7D4C\u8CBB|\u7D4C\u8CBB",no_expenses:"\u307E\u3060\u8CBB\u7528\u306F\u304B\u304B\u308A\u307E\u305B\u3093\uFF01",list_of_expenses:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u7D4C\u8CBB\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",confirm_delete:"\u3053\u306E\u8CBB\u7528\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u8CBB\u7528\u3092\u56DE\u53CE\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",created_message:"\u7D4C\u8CBB\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u7D4C\u8CBB\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u7D4C\u8CBB\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u7D4C\u8CBB\u306F\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",categories:{categories_list:"\u30AB\u30C6\u30B4\u30EA\u30EA\u30B9\u30C8",title:"\u984C\u540D",name:"\u540D\u524D",description:"\u8AAC\u660E",amount:"\u91CF",actions:"\u884C\u52D5",add_category:"\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0",new_category:"\u65B0\u305F\u306A\u30AB\u30C6\u30B4\u30EA\u30FC",category:"\u30AB\u30C6\u30B4\u30EA|\u30AB\u30C6\u30B4\u30EA",select_a_category:"\u30AB\u30C6\u30B4\u30EA\u30FC\u3092\u9078\u3076"}},Nl={email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",forgot_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u304A\u5FD8\u308C\u3067\u3059\u304B\uFF1F",or_signIn_with:"\u307E\u305F\u306F\u3067\u30B5\u30A4\u30F3\u30A4\u30F3",login:"\u30ED\u30B0\u30A4\u30F3",register:"\u767B\u9332",reset_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u8A2D\u5B9A\u3059\u308B",password_reset_successfully:"\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u6B63\u5E38\u306B\u30EA\u30BB\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F",enter_email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066",enter_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3059\u308B",retype_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u518D\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},Tl={title:"\u30E6\u30FC\u30B6\u30FC",users_list:"\u30E6\u30FC\u30B6\u30FC\u30EA\u30B9\u30C8",name:"\u540D\u524D",description:"\u8AAC\u660E",added_on:"\u8FFD\u52A0\u3055\u308C\u305F",date_of_creation:"\u4F5C\u6210\u65E5",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",add_user:"\u30E6\u30FC\u30B6\u30FC\u3092\u8FFD\u52A0\u3059\u308B",save_user:"\u30E6\u30FC\u30B6\u30FC\u3092\u4FDD\u5B58",update_user:"\u30E6\u30FC\u30B6\u30FC\u306E\u66F4\u65B0",user:"\u30E6\u30FC\u30B6\u30FC|\u30E6\u30FC\u30B6\u30FC",add_new_user:"\u65B0\u3057\u3044\u30E6\u30FC\u30B6\u30FC\u3092\u8FFD\u52A0",new_user:"\u65B0\u3057\u3044\u30E6\u30FC\u30B6\u30FC",edit_user:"\u30E6\u30FC\u30B6\u30FC\u306E\u7DE8\u96C6",no_users:"\u307E\u3060\u30E6\u30FC\u30B6\u30FC\u306F\u3044\u307E\u305B\u3093\uFF01",list_of_users:"\u3053\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u306F\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002",email:"E\u30E1\u30FC\u30EB",phone:"\u96FB\u8A71",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",user_attached_message:"\u3059\u3067\u306B\u4F7F\u7528\u4E2D\u306E\u30A2\u30A4\u30C6\u30E0\u306F\u524A\u9664\u3067\u304D\u307E\u305B\u3093",confirm_delete:"\u3053\u306E\u30E6\u30FC\u30B6\u30FC\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093|\u3053\u308C\u3089\u306E\u30E6\u30FC\u30B6\u30FC\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",created_message:"\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F|\u30E6\u30FC\u30B6\u30FC\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},Il={title:"\u5831\u544A\u3059\u308B",from_date:"\u65E5\u4ED8\u304B\u3089",to_date:"\u73FE\u5728\u307E\u3067",status:"\u72B6\u614B",paid:"\u6709\u6599",unpaid:"\u672A\u6255\u3044",download_pdf:"PDF\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",view_pdf:"PDF\u3092\u898B\u308B",update_report:"\u30EC\u30DD\u30FC\u30C8\u306E\u66F4\u65B0",report:"\u30EC\u30DD\u30FC\u30C8|\u30EC\u30DD\u30FC\u30C8",profit_loss:{profit_loss:"\u5229\u76CA",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E"},sales:{sales:"\u8CA9\u58F2",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",report_type:"\u30EC\u30DD\u30FC\u30C8\u30BF\u30A4\u30D7"},taxes:{taxes:"\u7A0E\u91D1",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E"},errors:{required:"\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u5FC5\u9808\u9805\u76EE\u3067\u3059"},invoices:{invoice:"\u8ACB\u6C42\u66F8",invoice_date:"\u8ACB\u6C42\u66F8\u306E\u65E5\u4ED8",due_date:"\u671F\u65E5",amount:"\u91CF",contact_name:"\u9023\u7D61\u5148",status:"\u72B6\u614B"},estimates:{estimate:"\u898B\u7A4D\u3082\u308A",estimate_date:"\u898B\u7A4D\u3082\u308A\u65E5",due_date:"\u671F\u65E5",estimate_number:"\u898B\u7A4D\u3082\u308A\u756A\u53F7",ref_number:"\u53C2\u7167\u756A\u53F7",amount:"\u91CF",contact_name:"\u9023\u7D61\u5148",status:"\u72B6\u614B"},expenses:{expenses:"\u7D4C\u8CBB",category:"\u30AB\u30C6\u30B4\u30EA\u30FC",date:"\u65E5\u4ED8",amount:"\u91CF",to_date:"\u73FE\u5728\u307E\u3067",from_date:"\u65E5\u4ED8\u304B\u3089",date_range:"\u65E5\u4ED8\u7BC4\u56F2\u3092\u9078\u629E"}},$l={menu_title:{account_settings:"\u30A2\u30AB\u30A6\u30F3\u30C8\u8A2D\u5B9A",company_information:"\u4F1A\u793E\u60C5\u5831",customization:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",preferences:"\u74B0\u5883\u8A2D\u5B9A",notifications:"\u901A\u77E5",tax_types:"\u7A0E\u306E\u7A2E\u985E",expense_category:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA",update_app:"\u30A2\u30D7\u30EA\u3092\u66F4\u65B0",backup:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",file_disk:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF",custom_fields:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9",payment_modes:"\u652F\u6255\u3044\u30E2\u30FC\u30C9",notes:"\u30CE\u30FC\u30C8"},title:"\u8A2D\u5B9A",setting:"\u8A2D\u5B9A|\u8A2D\u5B9A",general:"\u4E00\u822C",language:"\u8A00\u8A9E",primary_currency:"\u4E00\u6B21\u901A\u8CA8",timezone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",date_format:"\u65E5\u4ED8\u5F62\u5F0F",currencies:{title:"\u901A\u8CA8",currency:"\u901A\u8CA8|\u901A\u8CA8",currencies_list:"\u901A\u8CA8\u30EA\u30B9\u30C8",select_currency:"\u901A\u8CA8\u3092\u9078\u629E",name:"\u540D\u524D",code:"\u30B3\u30FC\u30C9",symbol:"\u30B7\u30F3\u30DC\u30EB",precision:"\u7CBE\u5EA6",thousand_separator:"\u30B5\u30A6\u30B6\u30F3\u30C9\u30BB\u30D1\u30EC\u30FC\u30BF\u30FC",decimal_separator:"\u5C0F\u6570\u70B9\u8A18\u53F7",position:"\u30DD\u30B8\u30B7\u30E7\u30F3",position_of_symbol:"\u30B7\u30F3\u30DC\u30EB\u306E\u4F4D\u7F6E",right:"\u6B63\u3057\u3044",left:"\u5DE6",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",add_currency:"\u901A\u8CA8\u3092\u8FFD\u52A0\u3059\u308B"},mail:{host:"\u30E1\u30FC\u30EB\u30DB\u30B9\u30C8",port:"\u30E1\u30FC\u30EB\u30DD\u30FC\u30C8",driver:"\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC",secret:"\u79D8\u5BC6",mailgun_secret:"\u30E1\u30FC\u30EB\u30AC\u30F3\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",mailgun_domain:"\u30C9\u30E1\u30A4\u30F3",mailgun_endpoint:"Mailgun\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8",ses_secret:"SES\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",ses_key:"SES\u30AD\u30FC",password:"\u30E1\u30FC\u30EB\u30D1\u30B9\u30EF\u30FC\u30C9",username:"\u30E1\u30FC\u30EB\u30E6\u30FC\u30B6\u30FC\u540D",mail_config:"\u30E1\u30FC\u30EB\u8A2D\u5B9A",from_name:"\u30E1\u30FC\u30EB\u540D\u304B\u3089",from_mail:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304B\u3089",encryption:"\u30E1\u30FC\u30EB\u306E\u6697\u53F7\u5316",mail_config_desc:"\u4EE5\u4E0B\u306F\u3001\u30A2\u30D7\u30EA\u304B\u3089\u30E1\u30FC\u30EB\u3092\u9001\u4FE1\u3059\u308B\u305F\u3081\u306E\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC\u3092\u69CB\u6210\u3059\u308B\u305F\u3081\u306E\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002 Sendgrid\u3001SES\u306A\u3069\u306E\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u69CB\u6210\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002"},pdf:{title:"PDF\u8A2D\u5B9A",footer_text:"\u30D5\u30C3\u30BF\u30FC\u30C6\u30AD\u30B9\u30C8",pdf_layout:"PDF\u30EC\u30A4\u30A2\u30A6\u30C8"},company_info:{company_info:"\u4F1A\u793E\u60C5\u5831",company_name:"\u4F1A\u793E\u540D",company_logo:"\u4F1A\u793E\u306E\u30ED\u30B4",section_description:"Crater\u306B\u3088\u3063\u3066\u4F5C\u6210\u3055\u308C\u305F\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3001\u304A\u3088\u3073\u305D\u306E\u4ED6\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306B\u8868\u793A\u3055\u308C\u308B\u4F1A\u793E\u306B\u95A2\u3059\u308B\u60C5\u5831\u3002",phone:"\u96FB\u8A71",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",address:"\u4F4F\u6240",zip:"\u30B8\u30C3\u30D7",save:"\u30BB\u30FC\u30D6",updated_message:"\u4F1A\u793E\u60C5\u5831\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},custom_fields:{title:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9",section_description:"\u8ACB\u6C42\u66F8\u3001\u898B\u7A4D\u3082\u308A\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3059\u308B",add_custom_field:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u8FFD\u52A0",edit_custom_field:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u7DE8\u96C6",field_name:"\u30D5\u30A3\u30FC\u30EB\u30C9\u540D",label:"\u30E9\u30D9\u30EB",type:"\u30BF\u30A4\u30D7",name:"\u540D\u524D",required:"\u5FC5\u9808",placeholder:"\u30D7\u30EC\u30FC\u30B9\u30DB\u30EB\u30C0\u30FC",help_text:"\u30D8\u30EB\u30D7\u30C6\u30AD\u30B9\u30C8",default_value:"\u30C7\u30D5\u30A9\u30EB\u30C8\u5024",prefix:"\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9",starting_number:"\u958B\u59CB\u756A\u53F7",model:"\u30E2\u30C7\u30EB",help_text_description:"\u30E6\u30FC\u30B6\u30FC\u304C\u3053\u306E\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u76EE\u7684\u3092\u7406\u89E3\u3067\u304D\u308B\u3088\u3046\u306B\u3001\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",suffix:"\u30B5\u30D5\u30A3\u30C3\u30AF\u30B9",yes:"\u306F\u3044",no:"\u756A\u53F7",order:"\u6CE8\u6587",custom_field_confirm_delete:"\u3053\u306E\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",options:"\u30AA\u30D7\u30B7\u30E7\u30F3",add_option:"\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u8FFD\u52A0",add_another_option:"\u5225\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u8FFD\u52A0\u3059\u308B",sort_in_alphabetical_order:"\u30A2\u30EB\u30D5\u30A1\u30D9\u30C3\u30C8\u9806\u306B\u4E26\u3079\u66FF\u3048\u308B",add_options_in_bulk:"\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u307E\u3068\u3081\u3066\u8FFD\u52A0\u3059\u308B",use_predefined_options:"\u4E8B\u524D\u5B9A\u7FA9\u3055\u308C\u305F\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3059\u308B",select_custom_date:"\u30AB\u30B9\u30BF\u30E0\u65E5\u4ED8\u3092\u9078\u629E",select_relative_date:"\u76F8\u5BFE\u65E5\u4ED8\u3092\u9078\u629E",ticked_by_default:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u30C1\u30A7\u30C3\u30AF\u3055\u308C\u3066\u3044\u307E\u3059",updated_message:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",added_message:"\u30AB\u30B9\u30BF\u30E0\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F"},customization:{customization:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",save:"\u30BB\u30FC\u30D6",addresses:{title:"\u4F4F\u6240",section_description:"\u9867\u5BA2\u306E\u8ACB\u6C42\u5148\u4F4F\u6240\u3068\u9867\u5BA2\u306E\u914D\u9001\u5148\u4F4F\u6240\u306E\u5F62\u5F0F\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u3059\uFF08PDF\u3067\u306E\u307F\u8868\u793A\uFF09\u3002",customer_billing_address:"\u9867\u5BA2\u306E\u8ACB\u6C42\u5148\u4F4F\u6240",customer_shipping_address:"\u304A\u5BA2\u69D8\u306E\u914D\u9001\u5148\u4F4F\u6240",company_address:"\u4F1A\u793E\u306E\u4F4F\u6240",insert_fields:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u633F\u5165",contact:"\u9023\u7D61\u5148",address:"\u4F4F\u6240",display_name:"\u8868\u793A\u540D",primary_contact_name:"\u4E3B\u306A\u9023\u7D61\u5148\u540D",email:"E\u30E1\u30FC\u30EB",website:"\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8",name:"\u540D\u524D",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",company_name:"\u4F1A\u793E\u540D",address_street_1:"\u4F4F\u6240\u901A\u308A1",address_street_2:"\u30A2\u30C9\u30EC\u30B9\u30B9\u30C8\u30EA\u30FC\u30C82",phone:"\u96FB\u8A71",zip_code:"\u90F5\u4FBF\u756A\u53F7",address_setting_updated:"\u30A2\u30C9\u30EC\u30B9\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},updated_message:"\u4F1A\u793E\u60C5\u5831\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",invoices:{title:"\u8ACB\u6C42\u66F8",notes:"\u30CE\u30FC\u30C8",invoice_prefix:"\u8ACB\u6C42\u66F8\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9",default_invoice_email_body:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u8ACB\u6C42\u66F8\u30E1\u30FC\u30EB\u672C\u6587",invoice_settings:"\u8ACB\u6C42\u66F8\u306E\u8A2D\u5B9A",autogenerate_invoice_number:"\u8ACB\u6C42\u66F8\u756A\u53F7\u306E\u81EA\u52D5\u751F\u6210",autogenerate_invoice_number_desc:"\u65B0\u3057\u3044\u8ACB\u6C42\u66F8\u3092\u4F5C\u6210\u3059\u308B\u305F\u3073\u306B\u8ACB\u6C42\u66F8\u756A\u53F7\u3092\u81EA\u52D5\u751F\u6210\u3057\u305F\u304F\u306A\u3044\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u7121\u52B9\u306B\u3057\u307E\u3059\u3002",invoice_email_attachment:"\u8ACB\u6C42\u66F8\u3092\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B",invoice_email_attachment_setting_description:"\u8ACB\u6C42\u66F8\u3092\u96FB\u5B50\u30E1\u30FC\u30EB\u306E\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u30E1\u30FC\u30EB\u306E[\u8ACB\u6C42\u66F8\u306E\u8868\u793A]\u30DC\u30BF\u30F3\u3092\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enter_invoice_prefix:"\u8ACB\u6C42\u66F8\u306E\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",terms_and_conditions:"\u898F\u7D04\u3068\u6761\u4EF6",company_address_format:"\u4F1A\u793E\u306E\u4F4F\u6240\u5F62\u5F0F",shipping_address_format:"\u914D\u9001\u5148\u4F4F\u6240\u306E\u5F62\u5F0F",billing_address_format:"\u8ACB\u6C42\u5148\u4F4F\u6240\u306E\u5F62\u5F0F",invoice_settings_updated:"\u8ACB\u6C42\u66F8\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},estimates:{title:"\u898B\u7A4D\u308A",estimate_prefix:"\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u306E\u898B\u7A4D\u3082\u308A",default_estimate_email_body:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u898B\u7A4D\u3082\u308A\u30E1\u30FC\u30EB\u672C\u6587",estimate_settings:"\u898B\u7A4D\u3082\u308A\u306E\u8A2D\u5B9A",autogenerate_estimate_number:"\u898B\u7A4D\u3082\u308A\u756A\u53F7\u306E\u81EA\u52D5\u751F\u6210",estimate_setting_description:"\u65B0\u3057\u3044\u898B\u7A4D\u3082\u308A\u3092\u4F5C\u6210\u3059\u308B\u305F\u3073\u306B\u898B\u7A4D\u3082\u308A\u756A\u53F7\u3092\u81EA\u52D5\u751F\u6210\u3057\u305F\u304F\u306A\u3044\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u7121\u52B9\u306B\u3057\u307E\u3059\u3002",estimate_email_attachment:"\u898B\u7A4D\u3082\u308A\u3092\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B",estimate_email_attachment_setting_description:"\u898B\u7A4D\u3082\u308A\u3092\u96FB\u5B50\u30E1\u30FC\u30EB\u306E\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u30E1\u30FC\u30EB\u306E[\u898B\u7A4D\u3082\u308A\u3092\u8868\u793A]\u30DC\u30BF\u30F3\u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enter_estimate_prefix:"\u63A8\u5B9A\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u3092\u5165\u529B\u3057\u307E\u3059",estimate_setting_updated:"\u898B\u7A4D\u3082\u308A\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",company_address_format:"\u4F1A\u793E\u306E\u4F4F\u6240\u5F62\u5F0F",billing_address_format:"\u8ACB\u6C42\u5148\u4F4F\u6240\u306E\u5F62\u5F0F",shipping_address_format:"\u914D\u9001\u5148\u4F4F\u6240\u306E\u5F62\u5F0F"},payments:{title:"\u652F\u6255\u3044",description:"\u652F\u6255\u3044\u306E\u53D6\u5F15\u30E2\u30FC\u30C9",payment_prefix:"\u652F\u6255\u3044\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9",default_payment_email_body:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u652F\u6255\u3044\u30E1\u30FC\u30EB\u672C\u6587",payment_settings:"\u652F\u6255\u3044\u8A2D\u5B9A",autogenerate_payment_number:"\u652F\u6255\u3044\u756A\u53F7\u306E\u81EA\u52D5\u751F\u6210",payment_setting_description:"\u65B0\u3057\u3044\u652F\u6255\u3044\u3092\u4F5C\u6210\u3059\u308B\u305F\u3073\u306B\u652F\u6255\u3044\u756A\u53F7\u3092\u81EA\u52D5\u751F\u6210\u3057\u305F\u304F\u306A\u3044\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u7121\u52B9\u306B\u3057\u307E\u3059\u3002",payment_email_attachment:"\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u652F\u6255\u3044\u3092\u9001\u4FE1\u3059\u308B",payment_email_attachment_setting_description:"\u9818\u53CE\u66F8\u3092\u30E1\u30FC\u30EB\u306E\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3068\u3057\u3066\u9001\u4FE1\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u30E1\u30FC\u30EB\u306E[\u652F\u6255\u3044\u306E\u8868\u793A]\u30DC\u30BF\u30F3\u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enter_payment_prefix:"\u652F\u6255\u3044\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",payment_setting_updated:"\u652F\u6255\u3044\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",payment_modes:"\u652F\u6255\u3044\u30E2\u30FC\u30C9",add_payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u306E\u8FFD\u52A0",edit_payment_mode:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u306E\u7DE8\u96C6",mode_name:"\u30E2\u30FC\u30C9\u540D",payment_mode_added:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u304C\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",payment_mode_updated:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",payment_mode_confirm_delete:"\u3053\u306E\u652F\u6255\u3044\u30E2\u30FC\u30C9\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u652F\u6255\u3044\u30E2\u30FC\u30C9\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",company_address_format:"\u4F1A\u793E\u306E\u4F4F\u6240\u5F62\u5F0F",from_customer_address_format:"\u9867\u5BA2\u306E\u4F4F\u6240\u5F62\u5F0F\u304B\u3089"},items:{title:"\u30A2\u30A4\u30C6\u30E0",units:"\u5358\u4F4D",add_item_unit:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u3092\u8FFD\u52A0",edit_item_unit:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u306E\u7DE8\u96C6",unit_name:"\u30E6\u30CB\u30C3\u30C8\u540D",item_unit_added:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u304C\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",item_unit_updated:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",item_unit_confirm_delete:"\u3053\u306E\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u30A2\u30A4\u30C6\u30E0\u30E6\u30CB\u30C3\u30C8\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"},notes:{title:"\u30CE\u30FC\u30C8",description:"\u30E1\u30E2\u3092\u4F5C\u6210\u3057\u3066\u8ACB\u6C42\u66F8\u3084\u898B\u7A4D\u3082\u308A\u306B\u518D\u5229\u7528\u3059\u308B\u3053\u3068\u3067\u6642\u9593\u3092\u7BC0\u7D04\u3067\u304D\u307E\u3059",notes:"\u30CE\u30FC\u30C8",type:"\u30BF\u30A4\u30D7",add_note:"\u30E1\u30E2\u3092\u8FFD\u52A0",add_new_note:"\u65B0\u3057\u3044\u30E1\u30E2\u3092\u8FFD\u52A0",name:"\u540D\u524D",edit_note:"\u30E1\u30E2\u3092\u7DE8\u96C6",note_added:"\u30E1\u30E2\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",note_updated:"\u6CE8\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",note_confirm_delete:"\u3053\u306E\u30E1\u30E2\u3092\u5FA9\u5143\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30CE\u30FC\u30C8\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",deleted_message:"\u30E1\u30E2\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F"}},account_settings:{profile_picture:"\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u306E\u5199\u771F",name:"\u540D\u524D",email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirm_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8A8D\u8A3C\u3059\u308B",account_settings:"\u30A2\u30AB\u30A6\u30F3\u30C8\u8A2D\u5B9A",save:"\u30BB\u30FC\u30D6",section_description:"\u3042\u306A\u305F\u306F\u3042\u306A\u305F\u306E\u540D\u524D\u3001\u96FB\u5B50\u30E1\u30FC\u30EB\u3092\u66F4\u65B0\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059",updated_message:"\u30A2\u30AB\u30A6\u30F3\u30C8\u8A2D\u5B9A\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},user_profile:{name:"\u540D\u524D",email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirm_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8A8D\u8A3C\u3059\u308B"},notification:{title:"\u901A\u77E5",email:"\u306B\u901A\u77E5\u3092\u9001\u4FE1\u3059\u308B",description:"\u4F55\u304B\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306B\u3069\u306E\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308A\u305F\u3044\u3067\u3059\u304B\uFF1F",invoice_viewed:"\u8ACB\u6C42\u66F8\u3092\u8868\u793A",invoice_viewed_desc:"\u9867\u5BA2\u304C\u30AF\u30EC\u30FC\u30BF\u30FC\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u4ECB\u3057\u3066\u9001\u4FE1\u3055\u308C\u305F\u8ACB\u6C42\u66F8\u3092\u8868\u793A\u3057\u305F\u3068\u304D\u3002",estimate_viewed:"\u95B2\u89A7\u3057\u305F\u898B\u7A4D\u3082\u308A",estimate_viewed_desc:"\u9867\u5BA2\u304C\u30AF\u30EC\u30FC\u30BF\u30FC\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u4ECB\u3057\u3066\u9001\u4FE1\u3055\u308C\u305F\u898B\u7A4D\u3082\u308A\u3092\u8868\u793A\u3057\u305F\u3068\u304D\u3002",save:"\u30BB\u30FC\u30D6",email_save_message:"\u30E1\u30FC\u30EB\u304C\u6B63\u5E38\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3057\u305F",please_enter_email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},tax_types:{title:"\u7A0E\u306E\u7A2E\u985E",add_tax:"\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",edit_tax:"\u7A0E\u91D1\u306E\u7DE8\u96C6",description:"\u5FC5\u8981\u306B\u5FDC\u3058\u3066\u7A0E\u91D1\u3092\u8FFD\u52A0\u307E\u305F\u306F\u524A\u9664\u3067\u304D\u307E\u3059\u3002\u30AF\u30EC\u30FC\u30BF\u30FC\u306F\u3001\u8ACB\u6C42\u66F8\u3060\u3051\u3067\u306A\u304F\u3001\u500B\u3005\u306E\u30A2\u30A4\u30C6\u30E0\u306B\u5BFE\u3059\u308B\u7A0E\u91D1\u3082\u30B5\u30DD\u30FC\u30C8\u3057\u3066\u3044\u307E\u3059\u3002",add_new_tax:"\u65B0\u3057\u3044\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B",tax_settings:"\u7A0E\u8A2D\u5B9A",tax_per_item:"\u30A2\u30A4\u30C6\u30E0\u3054\u3068\u306E\u7A0E\u91D1",tax_name:"\u7A0E\u540D",compound_tax:"\u8907\u5408\u7A0E",percent:"\u30D1\u30FC\u30BB\u30F3\u30C8",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",tax_setting_description:"\u500B\u3005\u306E\u8ACB\u6C42\u66F8\u30A2\u30A4\u30C6\u30E0\u306B\u7A0E\u91D1\u3092\u8FFD\u52A0\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001\u7A0E\u91D1\u306F\u8ACB\u6C42\u66F8\u306B\u76F4\u63A5\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002",created_message:"\u7A0E\u30BF\u30A4\u30D7\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",updated_message:"\u7A0E\u30BF\u30A4\u30D7\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u7A0E\u30BF\u30A4\u30D7\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",confirm_delete:"\u3053\u306E\u7A0E\u30BF\u30A4\u30D7\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u7A0E\u91D1\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059"},expense_category:{title:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",description:"\u7D4C\u8CBB\u30A8\u30F3\u30C8\u30EA\u3092\u8FFD\u52A0\u3059\u308B\u306B\u306F\u3001\u30AB\u30C6\u30B4\u30EA\u304C\u5FC5\u8981\u3067\u3059\u3002\u597D\u307F\u306B\u5FDC\u3058\u3066\u3001\u3053\u308C\u3089\u306E\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0\u307E\u305F\u306F\u524A\u9664\u3067\u304D\u307E\u3059\u3002",add_new_category:"\u65B0\u3057\u3044\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0",add_category:"\u30AB\u30C6\u30B4\u30EA\u3092\u8FFD\u52A0",edit_category:"\u30AB\u30C6\u30B4\u30EA\u306E\u7DE8\u96C6",category_name:"\u7A2E\u5225\u540D",category_description:"\u8AAC\u660E",created_message:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",deleted_message:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",updated_message:"\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",confirm_delete:"\u3053\u306E\u7D4C\u8CBB\u30AB\u30C6\u30B4\u30EA\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",already_in_use:"\u30AB\u30C6\u30B4\u30EA\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059"},preferences:{currency:"\u901A\u8CA8",default_language:"\u65E2\u5B9A\u306E\u8A00\u8A9E",time_zone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",fiscal_year:"\u4F1A\u8A08\u5E74\u5EA6",date_format:"\u65E5\u4ED8\u5F62\u5F0F",discount_setting:"\u5272\u5F15\u8A2D\u5B9A",discount_per_item:"\u30A2\u30A4\u30C6\u30E0\u3054\u3068\u306E\u5272\u5F15",discount_setting_description:"\u500B\u3005\u306E\u8ACB\u6C42\u66F8\u30A2\u30A4\u30C6\u30E0\u306B\u5272\u5F15\u3092\u8FFD\u52A0\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001\u5272\u5F15\u306F\u8ACB\u6C42\u66F8\u306B\u76F4\u63A5\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002",save:"\u30BB\u30FC\u30D6",preference:"\u597D\u307F|\u74B0\u5883\u8A2D\u5B9A",general_settings:"\u30B7\u30B9\u30C6\u30E0\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u8A2D\u5B9A\u3002",updated_message:"\u30D7\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",select_language:"\u8A00\u8A9E\u3092\u9078\u629E\u3059\u308B",select_time_zone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3\u3092\u9078\u629E",select_date_format:"\u65E5\u4ED8\u5F62\u5F0F\u306E\u9078\u629E",select_financial_year:"\u4F1A\u8A08\u5E74\u5EA6\u3092\u9078\u629E"},update_app:{title:"\u30A2\u30D7\u30EA\u3092\u66F4\u65B0",description:"\u4E0B\u306E\u30DC\u30BF\u30F3\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65B0\u3057\u3044\u66F4\u65B0\u3092\u78BA\u8A8D\u3059\u308B\u3053\u3068\u3067\u3001\u30AF\u30EC\u30FC\u30BF\u30FC\u3092\u7C21\u5358\u306B\u66F4\u65B0\u3067\u304D\u307E\u3059\u3002",check_update:"\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3092\u78BA\u8A8D\u3059\u308B",avail_update:"\u65B0\u3057\u3044\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u304C\u5229\u7528\u53EF\u80FD",next_version:"\u6B21\u306E\u30D0\u30FC\u30B8\u30E7\u30F3",requirements:"\u8981\u4EF6",update:"\u4ECA\u3059\u3050\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8",update_progress:"\u66F4\u65B0\u4E2D...",progress_text:"\u307B\u3093\u306E\u6570\u5206\u304B\u304B\u308A\u307E\u3059\u3002\u66F4\u65B0\u304C\u5B8C\u4E86\u3059\u308B\u524D\u306B\u3001\u753B\u9762\u3092\u66F4\u65B0\u3057\u305F\u308A\u3001\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u9589\u3058\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",update_success:"\u30A2\u30D7\u30EA\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F\uFF01\u30D6\u30E9\u30A6\u30B6\u30A6\u30A3\u30F3\u30C9\u30A6\u304C\u81EA\u52D5\u7684\u306B\u518D\u8AAD\u307F\u8FBC\u307F\u3055\u308C\u308B\u307E\u3067\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002",latest_message:"\u5229\u7528\u53EF\u80FD\u306A\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u306F\u3042\u308A\u307E\u305B\u3093\uFF01\u3042\u306A\u305F\u306F\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059\u3002",current_version:"\u73FE\u884C\u7248",download_zip_file:"ZIP\u30D5\u30A1\u30A4\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3059\u308B",unzipping_package:"\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u89E3\u51CD",copying_files:"\u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30D4\u30FC",deleting_files:"\u672A\u4F7F\u7528\u30D5\u30A1\u30A4\u30EB\u306E\u524A\u9664",running_migrations:"\u79FB\u884C\u306E\u5B9F\u884C",finishing_update:"\u66F4\u65B0\u306E\u7D42\u4E86",update_failed:"\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F",update_failed_text:"\u3054\u3081\u3093\u306A\u3055\u3044\uFF01\u66F4\u65B0\u304C\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{step} step"},backup:{title:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7|\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",description:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306F\u3001\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306E\u30C0\u30F3\u30D7\u3068\u3068\u3082\u306B\u3001\u6307\u5B9A\u3057\u305F\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u5185\u306E\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u542B\u3080zip\u30D5\u30A1\u30A4\u30EB\u3067\u3059\u3002",new_backup:"\u65B0\u3057\u3044\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B",create_backup:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u4F5C\u6210\u3059\u308B",select_backup_type:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u307E\u3059",backup_confirm_delete:"\u3053\u306E\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3092\u56DE\u5FA9\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",path:"\u9053",new_disk:"\u65B0\u3057\u3044\u30C7\u30A3\u30B9\u30AF",created_at:"\u3067\u4F5C\u6210\u3055\u308C\u305F",size:"\u30B5\u30A4\u30BA",dropbox:"\u30C9\u30ED\u30C3\u30D7\u30DC\u30C3\u30AF\u30B9",local:"\u5730\u5143",healthy:"\u5143\u6C17",amount_of_backups:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u91CF",newest_backups:"\u6700\u65B0\u306E\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",used_storage:"\u4F7F\u7528\u6E08\u307F\u30B9\u30C8\u30EC\u30FC\u30B8",select_disk:"\u30C7\u30A3\u30B9\u30AF\u3092\u9078\u629E",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",deleted_message:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",created_message:"\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F",invalid_disk_credentials:"\u9078\u629E\u3057\u305F\u30C7\u30A3\u30B9\u30AF\u306E\u8CC7\u683C\u60C5\u5831\u304C\u7121\u52B9\u3067\u3059"},disk:{title:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF|\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF",description:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u306F\u3001Crater\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u3001\u30A2\u30D0\u30BF\u30FC\u3001\u305D\u306E\u4ED6\u306E\u753B\u50CF\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u5B58\u3059\u308B\u305F\u3081\u306B\u30ED\u30FC\u30AB\u30EB\u30C7\u30A3\u30B9\u30AF\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u597D\u307F\u306B\u5FDC\u3058\u3066\u3001DigitalOcean\u3001S3\u3001Dropbox\u306A\u3069\u306E\u8907\u6570\u306E\u30C7\u30A3\u30B9\u30AF\u30C9\u30E9\u30A4\u30D0\u30FC\u3092\u69CB\u6210\u3067\u304D\u307E\u3059\u3002",created_at:"\u3067\u4F5C\u6210\u3055\u308C\u305F",dropbox:"\u30C9\u30ED\u30C3\u30D7\u30DC\u30C3\u30AF\u30B9",name:"\u540D\u524D",driver:"\u904B\u8EE2\u8005",disk_type:"\u30BF\u30A4\u30D7",disk_name:"\u30C7\u30A3\u30B9\u30AF\u540D",new_disk:"\u65B0\u3057\u3044\u30C7\u30A3\u30B9\u30AF\u3092\u8FFD\u52A0\u3059\u308B",filesystem_driver:"\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u30C9\u30E9\u30A4\u30D0\u30FC",local_driver:"\u30ED\u30FC\u30AB\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC",local_root:"\u30ED\u30FC\u30AB\u30EB\u30EB\u30FC\u30C8",public_driver:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30C9\u30E9\u30A4\u30D0\u30FC",public_root:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30EB\u30FC\u30C8",public_url:"\u30D1\u30D6\u30EA\u30C3\u30AFURL",public_visibility:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30D3\u30B8\u30D3\u30EA\u30C6\u30A3",media_driver:"\u30E1\u30C7\u30A3\u30A2\u30C9\u30E9\u30A4\u30D0\u30FC",media_root:"\u30E1\u30C7\u30A3\u30A2\u30EB\u30FC\u30C8",aws_driver:"AWS\u30C9\u30E9\u30A4\u30D0\u30FC",aws_key:"AWS\u30AD\u30FC",aws_secret:"AWS\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",aws_region:"AWS\u30EA\u30FC\u30B8\u30E7\u30F3",aws_bucket:"AWS\u30D0\u30B1\u30C3\u30C8",aws_root:"AWS\u30EB\u30FC\u30C8",do_spaces_type:"\u30B9\u30DA\u30FC\u30B9\u30BF\u30A4\u30D7\u3092\u5B9F\u884C\u3057\u307E\u3059",do_spaces_key:"\u30B9\u30DA\u30FC\u30B9\u30AD\u30FC\u3092\u5B9F\u884C\u3057\u307E\u3059",do_spaces_secret:"\u30B9\u30DA\u30FC\u30B9\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3092\u884C\u3046",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"\u30B9\u30DA\u30FC\u30B9\u30D0\u30B1\u30C3\u30C8\u3092\u884C\u3046",do_spaces_endpoint:"\u30B9\u30DA\u30FC\u30B9\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3092\u5B9F\u884C",do_spaces_root:"\u30B9\u30DA\u30FC\u30B9\u30EB\u30FC\u30C8\u3092\u5B9F\u884C\u3057\u307E\u3059",dropbox_type:"Dropbox\u30BF\u30A4\u30D7",dropbox_token:"Dropbox\u30C8\u30FC\u30AF\u30F3",dropbox_key:"Dropbox\u30AD\u30FC",dropbox_secret:"Dropbox\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",dropbox_app:"Dropbox\u30A2\u30D7\u30EA",dropbox_root:"Dropbox\u30EB\u30FC\u30C8",default_driver:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30C9\u30E9\u30A4\u30D0\u30FC",is_default:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3059",set_default_disk:"\u30C7\u30D5\u30A9\u30EB\u30C8\u30C7\u30A3\u30B9\u30AF\u306E\u8A2D\u5B9A",set_default_disk_confirm:"\u3053\u306E\u30C7\u30A3\u30B9\u30AF\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3068\u3057\u3066\u8A2D\u5B9A\u3055\u308C\u3001\u3059\u3079\u3066\u306E\u65B0\u3057\u3044PDF\u304C\u3053\u306E\u30C7\u30A3\u30B9\u30AF\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059",success_set_default_disk:"\u30C7\u30A3\u30B9\u30AF\u304C\u30C7\u30D5\u30A9\u30EB\u30C8\u3068\u3057\u3066\u6B63\u5E38\u306B\u8A2D\u5B9A\u3055\u308C\u307E\u3057\u305F",save_pdf_to_disk:"PDF\u3092\u30C7\u30A3\u30B9\u30AF\u306B\u4FDD\u5B58",disk_setting_description:"\u5404\u8ACB\u6C42\u66F8\u306E\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u308C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\u3002\u898B\u7A4D\u3082\u308A",select_disk:"\u30C7\u30A3\u30B9\u30AF\u3092\u9078\u629E",disk_settings:"\u30C7\u30A3\u30B9\u30AF\u8A2D\u5B9A",confirm_delete:"\u65E2\u5B58\u306E\u30D5\u30A1\u30A4\u30EB",action:"\u30A2\u30AF\u30B7\u30E7\u30F3",edit_file_disk:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF\u306E\u7DE8\u96C6",success_create:"\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",success_update:"\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F",error:"\u30C7\u30A3\u30B9\u30AF\u306E\u8FFD\u52A0\u306B\u5931\u6557\u3057\u307E\u3057\u305F",deleted_message:"\u30D5\u30A1\u30A4\u30EB\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u524A\u9664\u3055\u308C\u307E\u3057\u305F",disk_variables_save_successfully:"\u30C7\u30A3\u30B9\u30AF\u304C\u6B63\u5E38\u306B\u69CB\u6210\u3055\u308C\u307E\u3057\u305F",disk_variables_save_error:"\u30C7\u30A3\u30B9\u30AF\u69CB\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",invalid_disk_credentials:"\u9078\u629E\u3057\u305F\u30C7\u30A3\u30B9\u30AF\u306E\u8CC7\u683C\u60C5\u5831\u304C\u7121\u52B9\u3067\u3059"}},Rl={account_info:"\u53E3\u5EA7\u60C5\u5831",account_info_desc:"\u4EE5\u4E0B\u306E\u8A73\u7D30\u306F\u3001\u30E1\u30A4\u30F3\u306E\u7BA1\u7406\u8005\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u6210\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002\u307E\u305F\u3001\u30ED\u30B0\u30A4\u30F3\u5F8C\u306F\u3044\u3064\u3067\u3082\u8A73\u7D30\u3092\u5909\u66F4\u3067\u304D\u307E\u3059\u3002",name:"\u540D\u524D",email:"E\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirm_password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8A8D\u8A3C\u3059\u308B",save_cont:"\u30BB\u30FC\u30D6",company_info:"\u4F1A\u793E\u60C5\u5831",company_info_desc:"\u3053\u306E\u60C5\u5831\u306F\u8ACB\u6C42\u66F8\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u3053\u308C\u306F\u5F8C\u3067\u8A2D\u5B9A\u30DA\u30FC\u30B8\u3067\u7DE8\u96C6\u3067\u304D\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",company_name:"\u4F1A\u793E\u540D",company_logo:"\u4F1A\u793E\u306E\u30ED\u30B4",logo_preview:"\u30ED\u30B4\u30D7\u30EC\u30D3\u30E5\u30FC",preferences:"\u74B0\u5883\u8A2D\u5B9A",preferences_desc:"\u30B7\u30B9\u30C6\u30E0\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u8A2D\u5B9A\u3002",country:"\u56FD",state:"\u72B6\u614B",city:"\u5E02",address:"\u4F4F\u6240",street:"Street1 | 2\u4E01\u76EE",phone:"\u96FB\u8A71",zip_code:"\u90F5\u4FBF\u756A\u53F7",go_back:"\u623B\u308B",currency:"\u901A\u8CA8",language:"\u8A00\u8A9E",time_zone:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",fiscal_year:"\u4F1A\u8A08\u5E74\u5EA6",date_format:"\u65E5\u4ED8\u5F62\u5F0F",from_address:"\u5DEE\u51FA\u4EBA\u4F4F\u6240",username:"\u30E6\u30FC\u30B6\u30FC\u540D",next:"\u6B21",continue:"\u7D99\u7D9A\u3059\u308B",skip:"\u30B9\u30AD\u30C3\u30D7",database:{database:"\u30B5\u30A4\u30C8\u306EURL",connection:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u63A5\u7D9A",host:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30DB\u30B9\u30C8",port:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30DD\u30FC\u30C8",password:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30D1\u30B9\u30EF\u30FC\u30C9",app_url:"\u30A2\u30D7\u30EA\u306EURL",app_domain:"\u30A2\u30D7\u30EA\u30C9\u30E1\u30A4\u30F3",username:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30E6\u30FC\u30B6\u30FC\u540D",db_name:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D",db_path:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30D1\u30B9",desc:"\u30B5\u30FC\u30D0\u30FC\u4E0A\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210\u3057\u3001\u4EE5\u4E0B\u306E\u30D5\u30A9\u30FC\u30E0\u3092\u4F7F\u7528\u3057\u3066\u8CC7\u683C\u60C5\u5831\u3092\u8A2D\u5B9A\u3057\u307E\u3059\u3002"},permissions:{permissions:"\u6A29\u9650",permission_confirm_title:"\u7D9A\u884C\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",permission_confirm_desc:"\u30D5\u30A9\u30EB\u30C0\u306E\u30A2\u30AF\u30BB\u30B9\u8A31\u53EF\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F",permission_desc:"\u4EE5\u4E0B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u6A5F\u80FD\u3059\u308B\u305F\u3081\u306B\u5FC5\u8981\u306A\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u30A2\u30AF\u30BB\u30B9\u8A31\u53EF\u306E\u30EA\u30B9\u30C8\u3067\u3059\u3002\u6A29\u9650\u30C1\u30A7\u30C3\u30AF\u306B\u5931\u6557\u3057\u305F\u5834\u5408\u306F\u3001\u5FC5\u305A\u30D5\u30A9\u30EB\u30C0\u306E\u6A29\u9650\u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},mail:{host:"\u30E1\u30FC\u30EB\u30DB\u30B9\u30C8",port:"\u30E1\u30FC\u30EB\u30DD\u30FC\u30C8",driver:"\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC",secret:"\u79D8\u5BC6",mailgun_secret:"\u30E1\u30FC\u30EB\u30AC\u30F3\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",mailgun_domain:"\u30C9\u30E1\u30A4\u30F3",mailgun_endpoint:"Mailgun\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8",ses_secret:"SES\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8",ses_key:"SES\u30AD\u30FC",password:"\u30E1\u30FC\u30EB\u30D1\u30B9\u30EF\u30FC\u30C9",username:"\u30E1\u30FC\u30EB\u30E6\u30FC\u30B6\u30FC\u540D",mail_config:"\u30E1\u30FC\u30EB\u8A2D\u5B9A",from_name:"\u30E1\u30FC\u30EB\u540D\u304B\u3089",from_mail:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304B\u3089",encryption:"\u30E1\u30FC\u30EB\u306E\u6697\u53F7\u5316",mail_config_desc:"\u4EE5\u4E0B\u306F\u3001\u30A2\u30D7\u30EA\u304B\u3089\u30E1\u30FC\u30EB\u3092\u9001\u4FE1\u3059\u308B\u305F\u3081\u306E\u30E1\u30FC\u30EB\u30C9\u30E9\u30A4\u30D0\u30FC\u3092\u69CB\u6210\u3059\u308B\u305F\u3081\u306E\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002 Sendgrid\u3001SES\u306A\u3069\u306E\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u69CB\u6210\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002"},req:{system_req:"\u30B7\u30B9\u30C6\u30E0\u8981\u6C42",php_req_version:"PHP\uFF08\u30D0\u30FC\u30B8\u30E7\u30F3{version}\u304C\u5FC5\u8981\uFF09",check_req:"\u8981\u4EF6\u3092\u78BA\u8A8D\u3059\u308B",system_req_desc:"\u30AF\u30EC\u30FC\u30BF\u30FC\u306B\u306F\u3044\u304F\u3064\u304B\u306E\u30B5\u30FC\u30D0\u30FC\u8981\u4EF6\u304C\u3042\u308A\u307E\u3059\u3002\u30B5\u30FC\u30D0\u30FC\u306B\u5FC5\u8981\u306Aphp\u30D0\u30FC\u30B8\u30E7\u30F3\u3068\u4EE5\u4E0B\u306B\u8A18\u8F09\u3055\u308C\u3066\u3044\u308B\u3059\u3079\u3066\u306E\u62E1\u5F35\u6A5F\u80FD\u304C\u3042\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},errors:{migrate_failed:"\u79FB\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F",database_variables_save_error:"\u69CB\u6210\u3092.env\u30D5\u30A1\u30A4\u30EB\u306B\u66F8\u304D\u8FBC\u3081\u307E\u305B\u3093\u3002\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30AF\u30BB\u30B9\u8A31\u53EF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",mail_variables_save_error:"\u96FB\u5B50\u30E1\u30FC\u30EB\u306E\u69CB\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",connection_failed:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u63A5\u7D9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F",database_should_be_empty:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306F\u7A7A\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"},success:{mail_variables_save_successfully:"\u96FB\u5B50\u30E1\u30FC\u30EB\u304C\u6B63\u5E38\u306B\u69CB\u6210\u3055\u308C\u307E\u3057\u305F",database_variables_save_successfully:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u6B63\u5E38\u306B\u69CB\u6210\u3055\u308C\u307E\u3057\u305F\u3002"}},Fl={invalid_phone:"\u7121\u52B9\u306A\u96FB\u8A71\u756A\u53F7",invalid_url:"\u7121\u52B9\u306AURL\uFF08\u4F8B\uFF1Ahttp\uFF1A//www.craterapp.com\uFF09",invalid_domain_url:"\u7121\u52B9\u306AURL\uFF08\u4F8B\uFF1Acraterapp.com\uFF09",required:"\u30D5\u30A3\u30FC\u30EB\u30C9\u306F\u5FC5\u9808\u9805\u76EE\u3067\u3059",email_incorrect:"\u8AA4\u3063\u305F\u30E1\u30FC\u30EB\u3002",email_already_taken:"\u30E1\u30FC\u30EB\u306F\u3059\u3067\u306B\u53D6\u3089\u308C\u3066\u3044\u307E\u3059\u3002",email_does_not_exist:"\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u6301\u3064\u30E6\u30FC\u30B6\u30FC\u306F\u5B58\u5728\u3057\u307E\u305B\u3093",item_unit_already_taken:"\u3053\u306E\u30A2\u30A4\u30C6\u30E0\u306E\u30E6\u30CB\u30C3\u30C8\u540D\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",payment_mode_already_taken:"\u3053\u306E\u652F\u6255\u3044\u30E2\u30FC\u30C9\u540D\u306F\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059",send_reset_link:"\u30EA\u30BB\u30C3\u30C8\u30EA\u30F3\u30AF\u3092\u9001\u4FE1\u3059\u308B",not_yet:"\u672A\u3060\u306B\uFF1F\u3082\u3046\u4E00\u5EA6\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044",password_min_length:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306B\u306F{count}\u6587\u5B57\u3092\u542B\u3081\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",name_min_length:"\u540D\u524D\u306B\u306F\u5C11\u306A\u304F\u3068\u3082{count}\u6587\u5B57\u304C\u5FC5\u8981\u3067\u3059\u3002",enter_valid_tax_rate:"\u6709\u52B9\u306A\u7A0E\u7387\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",numbers_only:"\u6570\u5B57\u306E\u307F\u3002",characters_only:"\u6587\u5B57\u306E\u307F\u3002",password_incorrect:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u540C\u4E00\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",password_length:"\u30D1\u30B9\u30EF\u30FC\u30C9\u306F{count}\u6587\u5B57\u306E\u9577\u3055\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",qty_must_greater_than_zero:"\u6570\u91CF\u306F\u30BC\u30ED\u3088\u308A\u5927\u304D\u304F\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002",price_greater_than_zero:"\u4FA1\u683C\u306F\u30BC\u30ED\u3088\u308A\u5927\u304D\u304F\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002",payment_greater_than_zero:"\u652F\u6255\u3044\u306F\u30BC\u30ED\u3088\u308A\u5927\u304D\u304F\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002",payment_greater_than_due_amount:"\u5165\u529B\u3055\u308C\u305F\u652F\u6255\u3044\u306F\u3001\u3053\u306E\u8ACB\u6C42\u66F8\u306E\u652F\u6255\u984D\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",quantity_maxlength:"\u6570\u91CF\u306F20\u6841\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",price_maxlength:"\u4FA1\u683C\u306F20\u6841\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",price_minvalue:"\u4FA1\u683C\u306F0\u3088\u308A\u5927\u304D\u304F\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",amount_maxlength:"\u91D1\u984D\u306F20\u6841\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",amount_minvalue:"\u91D1\u984D\u306F0\u3088\u308A\u5927\u304D\u304F\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",description_maxlength:"\u8AAC\u660E\u306F65,000\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",subject_maxlength:"\u4EF6\u540D\u306F100\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",message_maxlength:"\u30E1\u30C3\u30BB\u30FC\u30B8\u306F255\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",maximum_options_error:"\u9078\u629E\u3055\u308C\u305F{max}\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u6700\u5927\u6570\u3002\u307E\u305A\u3001\u9078\u629E\u3057\u305F\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u524A\u9664\u3057\u3066\u3001\u5225\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u307E\u3059\u3002",notes_maxlength:"\u30E1\u30E2\u306F65,000\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",address_maxlength:"\u30A2\u30C9\u30EC\u30B9\u306F255\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",ref_number_maxlength:"\u53C2\u7167\u756A\u53F7\u306F255\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",prefix_maxlength:"\u30D7\u30EC\u30D5\u30A3\u30C3\u30AF\u30B9\u306F5\u6587\u5B57\u3092\u8D85\u3048\u3066\u306F\u306A\u308A\u307E\u305B\u3093\u3002",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F"},Ml="\u898B\u7A4D\u3082\u308A",Vl="\u898B\u7A4D\u3082\u308A\u756A\u53F7",Bl="\u898B\u7A4D\u3082\u308A\u65E5",Ol="\u6709\u52B9\u671F\u9650",Ll="\u8ACB\u6C42\u66F8",Ul="\u8ACB\u6C42\u66F8\u756A\u53F7",Kl="\u8ACB\u6C42\u66F8\u306E\u65E5\u4ED8",ql="\u671F\u65E5",Zl="\u30CE\u30FC\u30C8",Wl="\u30A2\u30A4\u30C6\u30E0",Hl="\u91CF",Gl="\u4FA1\u683C",Yl="\u30C7\u30A3\u30B9\u30AB\u30A6\u30F3\u30C8",Jl="\u91CF",Xl="\u5C0F\u8A08",Ql="\u5408\u8A08",ec="\u652F\u6255\u3044",tc="\u304A\u652F\u6255\u3044\u306E\u9818\u53CE\u66F8",ac="\u652F\u6255\u671F\u65E5",sc="\u652F\u6255\u3044\u756A\u53F7",nc="\u652F\u6255\u3044\u30E2\u30FC\u30C9",ic="\u3082\u3089\u3063\u305F\u5206\u91CF",oc="\u7D4C\u8CBB\u5831\u544A\u66F8",rc="\u7DCF\u7D4C\u8CBB",dc="\u5229\u76CA",lc="\u30BB\u30FC\u30EB\u30B9\u30AB\u30B9\u30BF\u30DE\u30FC\u30EC\u30DD\u30FC\u30C8",cc="\u8CA9\u58F2\u30A2\u30A4\u30C6\u30E0\u30EC\u30DD\u30FC\u30C8",_c="\u7A0E\u6982\u8981\u30EC\u30DD\u30FC\u30C8",uc="\u6240\u5F97",mc="\u7D14\u5229\u76CA",pc="\u8CA9\u58F2\u30EC\u30DD\u30FC\u30C8\uFF1A\u9867\u5BA2\u5225",gc="\u7DCF\u58F2\u4E0A\u9AD8",fc="\u8CA9\u58F2\u30EC\u30DD\u30FC\u30C8\uFF1A\u30A2\u30A4\u30C6\u30E0\u5225",hc="\u7A0E\u30EC\u30DD\u30FC\u30C8",vc="\u7DCF\u7A0E",yc="\u7A0E\u306E\u7A2E\u985E",bc="\u7D4C\u8CBB",kc="\u8ACB\u6C42\u66F8\u9001\u4ED8\u5148\u3001",wc="\u9001\u308A\u5148\u3001",xc="\u304B\u3089\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF1A",zc="\u7A0E";var Sc={navigation:kl,general:wl,dashboard:xl,tax_types:zl,global_search:Sl,customers:jl,items:Pl,estimates:Dl,invoices:Cl,payments:Al,expenses:El,login:Nl,users:Tl,reports:Il,settings:$l,wizard:Rl,validation:Fl,pdf_estimate_label:Ml,pdf_estimate_number:Vl,pdf_estimate_date:Bl,pdf_estimate_expire_date:Ol,pdf_invoice_label:Ll,pdf_invoice_number:Ul,pdf_invoice_date:Kl,pdf_invoice_due_date:ql,pdf_notes:Zl,pdf_items_label:Wl,pdf_quantity_label:Hl,pdf_price_label:Gl,pdf_discount_label:Yl,pdf_amount_label:Jl,pdf_subtotal:Xl,pdf_total:Ql,pdf_payment_label:ec,pdf_payment_receipt_label:tc,pdf_payment_date:ac,pdf_payment_number:sc,pdf_payment_mode:nc,pdf_payment_amount_received_label:ic,pdf_expense_report_label:oc,pdf_total_expenses_label:rc,pdf_profit_loss_label:dc,pdf_sales_customers_label:lc,pdf_sales_items_label:cc,pdf_tax_summery_label:_c,pdf_income_label:uc,pdf_net_profit_label:mc,pdf_customer_sales_report:pc,pdf_total_sales_label:gc,pdf_item_sales_label:fc,pdf_tax_report_label:hc,pdf_total_tax_label:vc,pdf_tax_types_label:yc,pdf_expenses_label:bc,pdf_bill_to:kc,pdf_ship_to:wc,pdf_received_from:xc,pdf_tax_label:zc};const jc={dashboard:"Panel zarz\u0105dzania",customers:"Kontrahenci",items:"Pozycje",invoices:"Faktury",expenses:"Wydatki",estimates:"Oferty",payments:"P\u0142atno\u015Bci",reports:"Raporty",settings:"Ustawienia",logout:"Wyloguj",users:"U\u017Cytkownicy"},Pc={add_company:"Dodaj firm\u0119",view_pdf:"Wy\u015Bwietl PDF",copy_pdf_url:"Kopiuj adres URL PDF",download_pdf:"\u015Aci\u0105gnij PDF",save:"Zapisz",create:"Stw\xF3rz",cancel:"Anuluj",update:"Zaktualizuj",deselect:"Odznacz",download:"Pobierz",from_date:"Od daty",to_date:"Do daty",from:"Od",to:"Do",sort_by:"Sortuj wed\u0142ug",ascending:"Rosn\u0105co",descending:"Malej\u0105co",subject:"Temat",body:"Tre\u015B\u0107",message:"Wiadomo\u015B\u0107",send:"Wy\u015Blij",go_back:"Wstecz",back_to_login:"Wr\xF3\u0107 do logowania?",home:"Strona g\u0142\xF3wna",filter:"Filtr",delete:"Usu\u0144",edit:"Edytuj",view:"Widok",add_new_item:"Dodaj now\u0105 pozycj\u0119",clear_all:"Wyczy\u015B\u0107 wszystko",showing:"Wy\u015Bwietlanie",of:"z",actions:"Akcje",subtotal:"SUMA CZ\u0118\u015ACIOWA",discount:"RABAT",fixed:"Sta\u0142y",percentage:"Procentowo",tax:"PODATEK",total_amount:"\u0141\u0104CZNA KWOTA",bill_to:"P\u0142atnik",ship_to:"Wy\u015Blij do",due:"Nale\u017Cno\u015B\u0107",draft:"Wersja robocza",sent:"Wys\u0142ano",all:"Wszystko",select_all:"Zaznacz wszystkie",choose_file:"Kliknij tutaj, aby wybra\u0107 plik",choose_template:"Wybierz szablon",choose:"Wybierz",remove:"Usu\u0144",powered_by:"Wspierane przez",bytefury:"Bytefury",select_a_status:"Wybierz status",select_a_tax:"Wybierz podatek",search:"Wyszukaj",are_you_sure:"Czy jeste\u015B pewien?",list_is_empty:"Lista jest pusta.",no_tax_found:"Nie znaleziono podatku!",four_zero_four:"404",you_got_lost:"Ups! Zgubi\u0142e\u015B si\u0119!",go_home:"Wr\xF3\u0107 do strony g\u0142\xF3wnej",test_mail_conf:"Konfiguracja poczty testowej",send_mail_successfully:"Wiadomo\u015B\u0107 wys\u0142ana pomy\u015Blnie",setting_updated:"Ustawienia zosta\u0142y zaktualizowane",select_state:"Wybierz wojew\xF3dztwo",select_country:"Wybierz kraj",select_city:"Wybierz miasto",street_1:"Adres 1",street_2:"Adres 2",action_failed:"Niepowodzenie",retry:"Spr\xF3buj ponownie",choose_note:"Wybierz notatk\u0119",no_note_found:"Nie znaleziono notatki",insert_note:"Wstaw notatk\u0119",copied_pdf_url_clipboard:"Skopiowano adres URL pliku PDF do schowka!"},Dc={select_year:"Wybierz rok",cards:{due_amount:"Do zap\u0142aty",customers:"Kontrahenci",invoices:"Faktury",estimates:"Oferty"},chart_info:{total_sales:"Sprzeda\u017C",total_receipts:"Przychody",total_expense:"Wydatki",net_income:"Doch\xF3d netto",year:"Wybierz rok"},weekly_invoices:{title:"Faktury tygodniowe"},monthly_chart:{title:"Sprzeda\u017C i wydatki"},recent_invoices_card:{title:"Nale\u017Cne faktury",due_on:"Termin p\u0142atno\u015Bci",customer:"Kontrahent",amount_due:"Do zap\u0142aty",actions:"Akcje",view_all:"Zobacz wszsytkie"},recent_estimate_card:{title:"Najnowsze oferty",date:"Data",customer:"Kontrahent",amount_due:"Do zap\u0142aty",actions:"Akcje",view_all:"Zobacz wszsytkie"}},Cc={name:"Nazwa",description:"Opis",percent:"Procent",compound_tax:"Podatek z\u0142o\u017Cony"},Ac={search:"Wyszukaj...",customers:"Kontrahenci",users:"U\u017Cytkownicy",no_results_found:"Nie znaleziono wynik\xF3w"},Ec={title:"Kontrahenci",add_customer:"Dodaj kontrahenta",contacts_list:"Lista kontrahent\xF3w",name:"Nazwa",mail:"Poczta | Poczta",statement:"Komunikat",display_name:"Widoczna nazwa",primary_contact_name:"G\u0142\xF3wna osoba kontaktowa",contact_name:"Nazwa kontaktu",amount_due:"Do zap\u0142aty",email:"E-mail",address:"Adres",phone:"Telefon",website:"Strona internetowa",overview:"Przegl\u0105d",enable_portal:"W\u0142\u0105cz portal",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",zip_code:"Kod pocztowy",added_on:"Dodano dnia",action:"Akcja",password:"Has\u0142a",street_number:"Numer ulicy",primary_currency:"Waluta g\u0142\xF3wna",description:"Opis",add_new_customer:"Dodaj nowego kontrahenta",save_customer:"Zapisz kontrahenta",update_customer:"Aktualizuj kontrahenta",customer:"Kontrahent | Kontrahenci",new_customer:"Nowy kontrahent",edit_customer:"Edytuj kontrahenta",basic_info:"Podstawowe informacje",billing_address:"Adres do faktury",shipping_address:"Adres dostawy",copy_billing_address:"Kopiuj z rachunku",no_customers:"Brak kontrahent\xF3w!",no_customers_found:"Nie znaleziono kontrahent\xF3w!",no_contact:"Brak kontaktu",no_contact_name:"Brak nazwy kontaktu",list_of_customers:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 kontrahent\xF3w.",primary_display_name:"G\u0142\xF3wna nazwa wy\u015Bwietlana",select_currency:"Wybierz walut\u0119",select_a_customer:"Wybierz kontrahenta",type_or_click:"Wpisz lub kliknij aby wybra\u0107",new_transaction:"Nowa transakcja",no_matching_customers:"Brak pasuj\u0105cych kontrahent\xF3w!",phone_number:"Numer telefonu",create_date:"Data utworzenia",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego kontrahenta i wszystkich powi\u0105zanych faktur, ofert i p\u0142atno\u015Bci. | Nie b\u0119dziesz w stanie odzyska\u0107 tych kontrahent\xF3w i wszystkich powi\u0105zanych faktur, ofert i p\u0142atno\u015Bci.",created_message:"Kontrahent zosta\u0142 utworzony poprawnie",updated_message:"Kontrahent zosta\u0142 zaktualizowany poprawnie",deleted_message:"Kontrahent zosta\u0142 usuni\u0119ty pomy\u015Blnie | Kontrahenci zostali usuni\u0119ci pomy\u015Blnie"},Nc={title:"Pozycje",items_list:"Lista artyku\u0142\xF3w",name:"Nazwa",unit:"Jednostka",description:"Opis",added_on:"Dodane",price:"Cena",date_of_creation:"Data utworzenia",not_selected:"Nie wybrano element\xF3w",action:"Akcja",add_item:"Dodaj pozycj\u0119",save_item:"Zapisz element",update_item:"Aktualizuj element",item:"Pozycja | Pozycje",add_new_item:"Dodaj now\u0105 pozycj\u0119",new_item:"Nowy produkt",edit_item:"Edytuj element",no_items:"Brak element\xF3w!",list_of_items:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 pozycji.",select_a_unit:"wybierz jednostk\u0119",taxes:"Podatki",item_attached_message:"Nie mo\u017Cna usun\u0105\u0107 elementu, kt\xF3ry jest ju\u017C u\u017Cywany",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej pozycji | Nie b\u0119dziesz w stanie odzyska\u0107 tych pozycji",created_message:"Element zosta\u0142 pomy\u015Blnie zaktualizowany",updated_message:"Element zosta\u0142 pomy\u015Blnie zaktualizowany",deleted_message:"Pozycja usuni\u0119ta pomy\u015Blnie | Pozycje usuni\u0119te pomy\u015Blnie"},Tc={title:"Oferty",estimate:"Oferta | Oferty",estimates_list:"Lista ofert",days:"{days} Dni",months:"{months} Miesi\u0105c",years:"{years} Rok",all:"Wszystkie",paid:"Zap\u0142acone",unpaid:"Niezap\u0142acone",customer:"KONTRAHENT",ref_no:"NR REF.",number:"NUMER",amount_due:"DO ZAP\u0141ATY",partially_paid:"Cz\u0119\u015Bciowo op\u0142acona",total:"Razem",discount:"Rabat",sub_total:"Podsumowanie",estimate_number:"Numer oferty",ref_number:"Numer referencyjny",contact:"Kontakt",add_item:"Dodaj pozycj\u0119",date:"Data",due_date:"Data wa\u017Cno\u015Bci",expiry_date:"Data wyga\u015Bni\u0119cia",status:"Status",add_tax:"Dodaj podatek",amount:"Kwota",action:"Akcja",notes:"Notatki",tax:"Podatek",estimate_template:"Szablon",convert_to_invoice:"Konwertuj do faktury",mark_as_sent:"Oznacz jako wys\u0142ane",send_estimate:"Wy\u015Blij ofert\u0119",resend_estimate:"Wy\u015Blij ponownie ofert\u0119",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",add_estimate:"Dodaj ofert\u0119",save_estimate:"Zapisz ofert\u0119",confirm_conversion:"Ta oferta zostanie u\u017Cyta do utworzenia nowej faktury.",conversion_message:"Faktura zosta\u0142a utworzona pomy\u015Blnie",confirm_send_estimate:"Ta oferta zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do kontrahenta",confirm_mark_as_sent:"Ta oferta zostanie oznaczona jako wys\u0142ana",confirm_mark_as_accepted:"Ta oferta zostanie oznaczona jako zatwierdzona",confirm_mark_as_rejected:"Ta oferta zostanie oznaczona jako odrzucona",no_matching_estimates:"Brak pasuj\u0105cych ofert!",mark_as_sent_successfully:"Oferta oznaczona jako wys\u0142ana pomy\u015Blnie",send_estimate_successfully:"Kalkulacja wys\u0142ana pomy\u015Blnie",errors:{required:"To pole jest wymagane"},accepted:"Zaakceptowano",rejected:"Odrzucono",sent:"Wys\u0142ano",draft:"Wersja robocza",declined:"Odrzucony",new_estimate:"Nowa oferta",add_new_estimate:"Dodaj now\u0105 ofert\u0119",update_Estimate:"Zaktualizuj ofert\u0119",edit_estimate:"Edytuj ofert\u0119",items:"pozycje",Estimate:"Oferta | Oferty",add_new_tax:"Dodaj nowy podatek",no_estimates:"Nie ma jeszcze ofert!",list_of_estimates:"Ta sekcja b\u0119dzie zawiera\u0142a list\u0119 ofert.",mark_as_rejected:"Oznacz jako odrzucon\u0105",mark_as_accepted:"Oznacz jako zaakceptowan\u0105",marked_as_accepted_message:"Oferty oznaczone jako zaakceptowane",marked_as_rejected_message:"Oferty oznaczone jako odrzucone",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej oferty | Nie b\u0119dziesz w stanie odzyska\u0107 tych ofert",created_message:"Oferta utworzona pomy\u015Blnie",updated_message:"Oferta zaktualizowana pomy\u015Blnie",deleted_message:"Oferta usuni\u0119ta pomy\u015Blnie | Oferty usuni\u0119te pomy\u015Blnie",user_email_does_not_exist:"E-mail u\u017Cytkownika nie istnieje",something_went_wrong:"co\u015B posz\u0142o nie tak",item:{title:"Tytu\u0142 pozycji",description:"Opis",quantity:"Ilo\u015B\u0107",price:"Cena",discount:"Rabat",total:"Razem",total_discount:"Rabat \u0142\u0105cznie",sub_total:"Podsumowanie",tax:"Podatek",amount:"Kwota",select_an_item:"Wpisz lub kliknij aby wybra\u0107 element",type_item_description:"Opis pozycji (opcjonalnie)"}},Ic={title:"Faktury",invoices_list:"Lista faktur",days:"{days} Dni",months:"{months} Miesi\u0105c",years:"{years} Rok",all:"Wszystko",paid:"Zap\u0142acono",unpaid:"Nie zap\u0142acono",viewed:"Przejrzane",overdue:"Zaleg\u0142e",completed:"Uko\u0144czone",customer:"KONTRAHENT",paid_status:"STATUS P\u0141ATNO\u015ACI",ref_no:"NR REF.",number:"NUMER",amount_due:"DO ZAP\u0141ATY",partially_paid:"Cz\u0119\u015Bciowo op\u0142acona",total:"Razem",discount:"Rabat",sub_total:"Podsumowanie",invoice:"Faktura | Faktury",invoice_number:"Numer faktury",ref_number:"Numer referencyjny",contact:"Kontakt",add_item:"Dodaj pozycj\u0119",date:"Data",due_date:"Termin p\u0142atno\u015Bci",status:"Status",add_tax:"Dodaj podatek",amount:"Kwota",action:"Akcja",notes:"Notatki",view:"Widok",send_invoice:"Wy\u015Blij faktur\u0119",resend_invoice:"Wy\u015Blij faktur\u0119 ponownie",invoice_template:"Szablon faktury",template:"Szablon",mark_as_sent:"Oznacz jako wys\u0142ane",confirm_send_invoice:"Ta faktura zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do kontrahenta",invoice_mark_as_sent:"Ta faktura zostanie oznaczona jako wys\u0142ana",confirm_send:"Ta faktura zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do kontrahenta",invoice_date:"Data faktury",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",add_new_invoice:"Dodaj now\u0105 faktur\u0119",update_expense:"Zaktualizuj wydatki",edit_invoice:"Edytuj faktur\u0119",new_invoice:"Nowa faktura",save_invoice:"Zapisz faktur\u0119",update_invoice:"Zaktualizuj faktur\u0119",add_new_tax:"Dodaj nowy podatek",no_invoices:"Brak faktur!",list_of_invoices:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 faktur.",select_invoice:"Wybierz faktur\u0119",no_matching_invoices:"Brak pasuj\u0105cych faktur!",mark_as_sent_successfully:"Faktura oznaczona jako wys\u0142ana pomy\u015Blnie",send_invoice_successfully:"Faktura wys\u0142ana pomy\u015Blnie",cloned_successfully:"Faktura sklonowana pomy\u015Blnie",clone_invoice:"Sklonuj faktur\u0119",confirm_clone:"Ta faktura zostanie sklonowana do nowej faktury",item:{title:"Tytu\u0142 pozycji",description:"Opis",quantity:"Ilo\u015B\u0107",price:"Cena",discount:"Rabat",total:"Razem",total_discount:"Rabat \u0142\u0105cznie",sub_total:"Podsumowanie",tax:"Podatek",amount:"Kwota",select_an_item:"Wpisz lub kliknij aby wybra\u0107 element",type_item_description:"Opis pozycji (opcjonalnie)"},payment_attached_message:"Jedna z wybranych faktur ma do\u0142\u0105czon\u0105 p\u0142atno\u015B\u0107. Upewnij si\u0119, \u017Ce najpierw usuniesz za\u0142\u0105czone p\u0142atno\u015Bci, aby kontynuowa\u0107 usuwanie",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej faktury | Nie b\u0119dziesz w stanie odzyska\u0107 tych faktur",created_message:"Faktura zosta\u0142a utworzona pomy\u015Blnie",updated_message:"Faktura zosta\u0142a pomy\u015Blnie zaktualizowana",deleted_message:"Faktura usuni\u0119ta pomy\u015Blnie | Faktury usuni\u0119te pomy\u015Blnie",marked_as_sent_message:"Faktura oznaczona jako wys\u0142ana pomy\u015Blnie",user_email_does_not_exist:"E-mail u\u017Cytkownika nie istnieje",something_went_wrong:"co\u015B posz\u0142o nie tak",invalid_due_amount_message:"Ca\u0142kowita kwota faktury nie mo\u017Ce by\u0107 mniejsza ni\u017C ca\u0142kowita kwota zap\u0142acona za t\u0119 faktur\u0119. Prosz\u0119 zaktualizowa\u0107 faktur\u0119 lub usun\u0105\u0107 powi\u0105zane p\u0142atno\u015Bci, aby kontynuowa\u0107."},$c={title:"Noty kredytowe",credit_notes_list:"Lista not kredytowych",credit_notes:"Noty kredytowe",contact:"Kontakt",date:"Data",amount:"Kwota",action:"Akcja",credit_number:"Numer kredytu",notes:"Notatki",confirm_delete:"Czy na pewno chcesz usun\u0105\u0107 notatk\u0119 kredytow\u0105?",item:{title:"Tytu\u0142 pozycji",description:"Opis",quantity:"Ilo\u015B\u0107",price:"Cena",discount:"Rabat",total:"Razem",total_discount:"Rabat \u0142\u0105cznie",sub_total:"Podsumowanie",tax:"Podatek"}},Rc={title:"P\u0142atno\u015Bci",payments_list:"Lista p\u0142atno\u015Bci",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",customer:"Kontrahent",date:"Data",amount:"Kwota",action:"Akcja",payment_number:"Numer p\u0142atno\u015Bci",payment_mode:"Metoda p\u0142atno\u015Bci",invoice:"Faktura",note:"Notatka",add_payment:"Dodaj p\u0142atno\u015B\u0107",new_payment:"Nowa p\u0142atno\u015B\u0107",edit_payment:"Edytuj p\u0142atno\u015B\u0107",view_payment:"Wy\u015Bwietl p\u0142atno\u015B\u0107",add_new_payment:"Dodaj now\u0105 p\u0142atno\u015B\u0107",send_payment_receipt:"Wy\u015Blij potwierdzenie p\u0142atno\u015Bci",send_payment:"Wy\u015Blij p\u0142atno\u015B\u0107",save_payment:"Zapisz p\u0142atno\u015B\u0107",update_payment:"Zaktualizuj p\u0142atno\u015B\u0107",payment:"P\u0142atno\u015B\u0107 | P\u0142atno\u015Bci",no_payments:"Nie ma jeszcze p\u0142atno\u015Bci!",not_selected:"Nie wybrano",no_invoice:"Brak faktury",no_matching_payments:"Brak pasuj\u0105cych p\u0142atno\u015Bci!",list_of_payments:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 p\u0142atno\u015Bci.",select_payment_mode:"Wybierz spos\xF3b p\u0142atno\u015Bci",confirm_mark_as_sent:"Ta oferta zostanie oznaczona jako wys\u0142ana",confirm_send_payment:"Ta p\u0142atno\u015B\u0107 zostanie wys\u0142ana e-mailem do kontrahenta",send_payment_successfully:"P\u0142atno\u015B\u0107 wys\u0142ana pomy\u015Blnie",user_email_does_not_exist:"E-mail u\u017Cytkownika nie istnieje",something_went_wrong:"co\u015B posz\u0142o nie tak",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej p\u0142atno\u015Bci | Nie b\u0119dziesz w stanie odzyska\u0107 tych p\u0142atno\u015Bci",created_message:"P\u0142atno\u015B\u0107 zosta\u0142a pomy\u015Blnie utworzona",updated_message:"P\u0142atno\u015B\u0107 zosta\u0142a pomy\u015Blnie zaktualizowana",deleted_message:"P\u0142atno\u015B\u0107 usuni\u0119ta pomy\u015Blnie | P\u0142atno\u015Bci usuni\u0119te pomy\u015Blnie",invalid_amount_message:"Kwota p\u0142atno\u015Bci jest nieprawid\u0142owa"},Fc={title:"Wydatki",expenses_list:"Lista wydatk\xF3w",select_a_customer:"Wybierz kontrahenta",expense_title:"Tytu\u0142",customer:"Kontrahent",contact:"Kontakt",category:"Kategoria",from_date:"Od daty",to_date:"Do daty",expense_date:"Data",description:"Opis",receipt:"Potwierdzenie",amount:"Kwota",action:"Akcja",not_selected:"Nie wybrano",note:"Notatka",category_id:"Identyfikator kategorii",date:"Data",add_expense:"Dodaj wydatek",add_new_expense:"Dodaj nowy wydatek",save_expense:"Zapisz wydatek",update_expense:"Zaktualizuj wydatek",download_receipt:"Pobierz potwierdzenie wp\u0142aty",edit_expense:"Edytuj wydatek",new_expense:"Nowy wydatek",expense:"Wydatek | Wydatki",no_expenses:"Nie ma jeszcze wydatk\xF3w!",list_of_expenses:"Ta sekcja b\u0119dzie zawiera\u0142a list\u0119 wydatk\xF3w.",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego wydatku | Nie b\u0119dziesz w stanie odzyska\u0107 tych wydatk\xF3w",created_message:"Wydatek utworzony pomy\u015Blnie",updated_message:"Wydatek zaktualizowany pomy\u015Blnie",deleted_message:"Wydatek usuni\u0119ty pomy\u015Blnie | Wydatki usuni\u0119te pomy\u015Blnie",categories:{categories_list:"Lista kategorii",title:"Tytu\u0142",name:"Nazwa",description:"Opis",amount:"Kwota",actions:"Akcje",add_category:"Dodaj kategori\u0119",new_category:"Nowa kategoria",category:"Kategoria | Kategorie",select_a_category:"Wybierz kategori\u0119"}},Mc={email:"E-mail",password:"Has\u0142o",forgot_password:"Nie pami\u0119tasz has\u0142a?",or_signIn_with:"lub zaloguj si\u0119 przez",login:"Logowanie",register:"Rejestracja",reset_password:"Resetuj has\u0142o",password_reset_successfully:"Has\u0142o zosta\u0142o pomy\u015Blnie zresetowane",enter_email:"Wprowad\u017A adres e-mail",enter_password:"Wprowad\u017A has\u0142o",retype_password:"Wprowad\u017A has\u0142o ponownie",login_placeholder:"mail@example.com"},Vc={title:"U\u017Cytkownicy",users_list:"Lista u\u017Cytkownik\xF3w",name:"Nazwa",description:"Opis",added_on:"Dodano dnia",date_of_creation:"Data utworzenia",action:"Akcja",add_user:"Dodaj u\u017Cytkownika",save_user:"Zapisz u\u017Cytkownika",update_user:"Zaktualizuj u\u017Cytkownika",user:"U\u017Cytkownik | U\u017Cytkownicy",add_new_user:"Dodaj nowego u\u017Cytkownika",new_user:"Nowy u\u017Cytkownik",edit_user:"Edytuj u\u017Cytkownika",no_users:"Brak u\u017Cytkownik\xF3w!",list_of_users:"Ta sekcja b\u0119dzie zawiera\u0142a list\u0119 u\u017Cytkownik\xF3w.",email:"Email",phone:"Telefon",password:"Has\u0142o",user_attached_message:"Nie mo\u017Cna usun\u0105\u0107 elementu, kt\xF3ry jest ju\u017C w u\u017Cyciu",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego u\u017Cytkownika | Nie b\u0119dziesz w stanie odzyska\u0107 tych u\u017Cytkownik\xF3w",created_message:"U\u017Cytkownik zosta\u0142 utworzony pomy\u015Blnie",updated_message:"U\u017Cytkownik zosta\u0142 zaktualizowany pomy\u015Blnie",deleted_message:"U\u017Cytkownik usuni\u0119ty pomy\u015Blnie | U\u017Cytkownicy usuni\u0119ci pomy\u015Blnie"},Bc={title:"Raport",from_date:"Od daty",to_date:"Do daty",status:"Status",paid:"Zap\u0142acono",unpaid:"Nie zap\u0142acono",download_pdf:"Pobierz plik PDF",view_pdf:"Podgl\u0105d PDF",update_report:"Aktualizuj raport",report:"Raport | Raporty",profit_loss:{profit_loss:"Zyski i straty",to_date:"Do daty",from_date:"Od daty",date_range:"Wybierz zakres dat"},sales:{sales:"Sprzeda\u017C",date_range:"Wybierz zakres dat",to_date:"Do daty",from_date:"Od daty",report_type:"Typ raportu"},taxes:{taxes:"Podatki",to_date:"Do daty",from_date:"Od daty",date_range:"Wybierz zakres dat"},errors:{required:"To pole jest wymagane"},invoices:{invoice:"Faktura",invoice_date:"Data faktury",due_date:"Termin p\u0142atno\u015Bci",amount:"Kwota",contact_name:"Nazwa kontaktu",status:"Status"},estimates:{estimate:"Oferta",estimate_date:"Data oferty",due_date:"Data wa\u017Cno\u015Bci",estimate_number:"Numer oferty",ref_number:"Numer referencyjny",amount:"Kwota",contact_name:"Nazwa kontaktu",status:"Status"},expenses:{expenses:"Wydatki",category:"Kategoria",date:"Data",amount:"Kwota",to_date:"Do daty",from_date:"Od daty",date_range:"Wybierz zakres dat"}},Oc={menu_title:{account_settings:"Ustawienia konta",company_information:"Informacje o firmie",customization:"Dostosowywanie",preferences:"Opcje",notifications:"Powiadomienia",tax_types:"Rodzaje podatku",expense_category:"Kategorie wydatku",update_app:"Aktualizuj aplikacj\u0119",backup:"Kopia zapasowa",file_disk:"Dysk plik\xF3w",custom_fields:"Pola niestandardowe",payment_modes:"Rodzaje p\u0142atno\u015Bci",notes:"Notatki"},title:"Ustawienia",setting:"Ustawienia | Ustawienia",general:"Og\xF3lne",language:"J\u0119zyk",primary_currency:"Waluta g\u0142\xF3wna",timezone:"Strefa czasowa",date_format:"Format daty",currencies:{title:"Waluty",currency:"Waluta | Waluty",currencies_list:"Lista walut",select_currency:"Wybierz walut\u0119",name:"Nazwa",code:"Kod",symbol:"Symbol",precision:"Dok\u0142adno\u015B\u0107",thousand_separator:"Separator tysi\u0119cy",decimal_separator:"Separator dziesi\u0119tny",position:"Pozycja",position_of_symbol:"Po\u0142o\u017Cenie symbolu",right:"Do prawej",left:"Do lewej",action:"Akcja",add_currency:"Dodaj walut\u0119"},mail:{host:"Adres hosta poczty",port:"Port poczty",driver:"Sterownik poczty",secret:"Tajny klucz",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domena",mailgun_endpoint:"Punkt dost\u0119powy Mailgun",ses_secret:"Tajny klucz SES",ses_key:"Klucz SES",password:"Has\u0142o poczty",username:"Nazwa u\u017Cytkownika poczty",mail_config:"Konfiguracja poczty",from_name:"Nazwa nadawcy",from_mail:"Adres e-mail nadawcy",encryption:"Szyfrowanie poczty",mail_config_desc:"Poni\u017Cej znajduje si\u0119 formularz konfiguracji sterownika poczty e-mail do wysy\u0142ania wiadomo\u015Bci e-mail z aplikacji. Mo\u017Cesz r\xF3wnie\u017C skonfigurowa\u0107 zewn\u0119trznych dostawc\xF3w takich jak Sendgrid, SES itp."},pdf:{title:"Ustawienia PDF",footer_text:"Teks stopki",pdf_layout:"Szablon PDF"},company_info:{company_info:"Dane firmy",company_name:"Nazwa firmy",company_logo:"Logo firmy",section_description:"Informacje o Twojej firmie, kt\xF3re b\u0119d\u0105 wy\u015Bwietlane na fakturach, ofertach i innych dokumentach stworzonych przez Crater.",phone:"Telefon",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",address:"Adres",zip:"Kod pocztowy",save:"Zapisz",updated_message:"Informacje o firmie zosta\u0142y pomy\u015Blnie zaktualizowane"},custom_fields:{title:"Pola niestandardowe",section_description:"Dostosuj swoje faktury, oferty i wp\u0142ywy p\u0142atno\u015Bci w\u0142asnymi polami. Upewnij si\u0119, \u017Ce u\u017Cywasz poni\u017Cszych p\xF3l w formatach adresowych na stronie ustawie\u0144 dostosowywania.",add_custom_field:"Dodaj pole niestandardowe",edit_custom_field:"Edytuj pole niestandardowe",field_name:"Nazwa pola",label:"Etykieta",type:"Typ",name:"Nazwa",required:"Wymagane",placeholder:"Symbol zast\u0119pczy",help_text:"Tekst pomocy",default_value:"Warto\u015B\u0107 domy\u015Blna",prefix:"Prefiks",starting_number:"Numer pocz\u0105tkowy",model:"Model",help_text_description:"Wprowad\u017A jaki\u015B tekst, aby pom\xF3c u\u017Cytkownikom zrozumie\u0107 cel tego pola niestandardowego.",suffix:"Sufiks",yes:"Tak",no:"Nie",order:"Zam\xF3wienie",custom_field_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego niestandardowego pola",already_in_use:"Pole niestandardowe jest ju\u017C w u\u017Cyciu",deleted_message:"Pole niestandardowe zosta\u0142o usuni\u0119te pomy\u015Blnie",options:"opcje",add_option:"Dodaj opcje",add_another_option:"Dodaj inn\u0105 opcj\u0119",sort_in_alphabetical_order:"Sortuj wed\u0142ug kolejno\u015Bci alfabetycznej",add_options_in_bulk:"Dodaj opcje zbiorcze",use_predefined_options:"U\u017Cyj predefiniowanych opcji",select_custom_date:"Wybierz niestandardow\u0105 dat\u0119",select_relative_date:"Wybierz dat\u0119 wzgl\u0119dn\u0105",ticked_by_default:"Zaznaczone domy\u015Blnie",updated_message:"Pole niestandardowe zosta\u0142o zaktualizowane pomy\u015Blnie",added_message:"Pole niestandardowe zosta\u0142o dodane pomy\u015Blnie"},customization:{customization:"dostosowywanie",save:"Zapisz",addresses:{title:"Adresy",section_description:"Mo\u017Cesz ustawi\u0107 adres rozliczeniowy kontrahenta i format adresu dostawy kontrahenta (tylko w formacie PDF). ",customer_billing_address:"Adres rozliczeniowy kontrahenta",customer_shipping_address:"Adres dostawy kontrahenta",company_address:"Adres firmy",insert_fields:"Wstaw pola",contact:"Kontakt",address:"Adres",display_name:"Widoczna nazwa",primary_contact_name:"G\u0142\xF3wna osoba kontaktowa",email:"Email",website:"Strona internetowa",name:"Nazwa",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",company_name:"Nazwa firmy",address_street_1:"Ulica 1",address_street_2:"Ulica 2",phone:"Telefon",zip_code:"Kod pocztowy",address_setting_updated:"Ustawienia adresu zosta\u0142y pomy\u015Blnie zaktualizowane"},updated_message:"Informacje o firmie zosta\u0142y pomy\u015Blnie zaktualizowane",invoices:{title:"Faktury",notes:"Notatki",invoice_prefix:"Prefiks faktury",invoice_number_length:"D\u0142ugo\u015B\u0107 numeru faktury",default_invoice_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila faktury",invoice_settings:"Ustawienia faktury",autogenerate_invoice_number:"Automatycznie generuj numer faktury",invoice_setting_description:"Wy\u0142\u0105cz to, je\u015Bli nie chcesz automatycznie generowa\u0107 numer\xF3w faktur za ka\u017Cdym razem, gdy tworzysz now\u0105 faktur\u0119.",invoice_email_attachment:"Wy\u015Blij faktury jako za\u0142\u0105czniki",invoice_email_attachment_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz wysy\u0142a\u0107 faktury jako za\u0142\u0105cznik e-mail. Pami\u0119taj, \u017Ce przycisk 'Zobacz faktur\u0119' w wiadomo\u015Bciach e-mail nie b\u0119dzie ju\u017C wy\u015Bwietlany, gdy jest w\u0142\u0105czony.",enter_invoice_prefix:"Wprowad\u017A prefiks faktury",terms_and_conditions:"Zasady i warunki",company_address_format:"Format adresu firmy",shipping_address_format:"Format adresu dostawy",billing_address_format:"Format adresu do faktury",invoice_setting_updated:"Ustawienia faktury zosta\u0142y pomy\u015Blnie zaktualizowane"},estimates:{title:"Oferty",estimate_prefix:"Prefiks oferty",estimate_number_length:"D\u0142ugo\u015B\u0107 numeru oferty",default_estimate_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila oferty",estimate_settings:"Ustawienia oferty",autogenerate_estimate_number:"Automatycznie generuj numer oferty",estimate_setting_description:"Wy\u0142\u0105cz to, je\u015Bli nie chcesz automatycznie generowa\u0107 numer\xF3w ofert za ka\u017Cdym razem, gdy tworzysz now\u0105 ofert\u0119.",estimate_email_attachment:"Wy\u015Blij oferty jako za\u0142\u0105czniki",estimate_email_attachment_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz wysy\u0142a\u0107 oferty jako za\u0142\u0105cznik e-mail. Pami\u0119taj, \u017Ce przycisk 'Zobacz ofert\u0119' w wiadomo\u015Bciach e-mail nie b\u0119dzie ju\u017C wy\u015Bwietlany, gdy jest w\u0142\u0105czony.",enter_estimate_prefix:"Wprowad\u017A prefiks oferty",estimate_setting_updated:"Ustawienia oferty zosta\u0142y pomy\u015Blnie zaktualizowane",company_address_format:"Format adresu firmy",billing_address_format:"Format adresu do faktury",shipping_address_format:"Format adresu dostawy"},payments:{title:"P\u0142atno\u015Bci",description:"Sposoby transakcji dla p\u0142atno\u015Bci",payment_prefix:"Prefiks p\u0142atno\u015Bci",payment_number_length:"D\u0142ugo\u015B\u0107 numeru p\u0142atno\u015Bci",default_payment_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila p\u0142atno\u015Bci",payment_settings:"Ustawienia p\u0142atno\u015Bci",autogenerate_payment_number:"Automatycznie generuj numer p\u0142atno\u015Bci",payment_setting_description:"Wy\u0142\u0105cz to, je\u015Bli nie chcesz automatycznie generowa\u0107 numer\xF3w p\u0142atno\u015Bci za ka\u017Cdym razem, gdy tworzysz now\u0105 p\u0142atno\u015B\u0107.",payment_email_attachment:"Wy\u015Blij p\u0142atno\u015Bci jako za\u0142\u0105czniki",payment_email_attachment_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz wysy\u0142a\u0107 p\u0142atno\u015Bci jako za\u0142\u0105cznik e-mail. Pami\u0119taj, \u017Ce przycisk 'Zobacz p\u0142atno\u015B\u0107' w wiadomo\u015Bciach e-mail nie b\u0119dzie ju\u017C wy\u015Bwietlany, gdy jest w\u0142\u0105czony.",enter_payment_prefix:"Wprowad\u017A prefiks p\u0142atno\u015Bci",payment_setting_updated:"Ustawienia p\u0142atno\u015Bci zosta\u0142y pomy\u015Blnie zaktualizowane",payment_modes:"Rodzaje p\u0142atno\u015Bci",add_payment_mode:"Dodaj metod\u0119 p\u0142atno\u015Bci",edit_payment_mode:"Edytuj metod\u0119 p\u0142atno\u015Bci",mode_name:"Metoda p\u0142atno\u015Bci",payment_mode_added:"Dodano metod\u0119 p\u0142atno\u015Bci",payment_mode_updated:"Zaktualizowano metod\u0119 p\u0142atno\u015Bci",payment_mode_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej metody p\u0142atno\u015Bci",already_in_use:"Metoda p\u0142atno\u015Bci jest ju\u017C w u\u017Cyciu",deleted_message:"Metoda p\u0142atno\u015Bci zosta\u0142a pomy\u015Blnie usuni\u0119ta",company_address_format:"Format adresu firmy",from_customer_address_format:"Format adresu nadawcy"},items:{title:"Pozycje",units:"Jednostki",add_item_unit:"Dodaj jednostk\u0119",edit_item_unit:"Edytuj jednostk\u0119",unit_name:"Nazwa jednostki",item_unit_added:"Dodano jednostk\u0119",item_unit_updated:"Zaktualizowano jednostk\u0119",item_unit_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej jednostki przedmiotu",already_in_use:"Jednostka pozycji jest ju\u017C w u\u017Cyciu",deleted_message:"Jednostka pozycji zosta\u0142a usuni\u0119ta pomy\u015Blnie"},notes:{title:"Notatki",description:"Oszcz\u0119dzaj czas, tworz\u0105c notatki i ponownie u\u017Cywaj\u0105c ich na fakturach, ofertach i p\u0142atno\u015Bciach.",notes:"Notatki",type:"Typ",add_note:"Dodaj notatk\u0119",add_new_note:"Dodaj now\u0105 notatk\u0119",name:"Nazwa",edit_note:"Edytuj notatk\u0119",note_added:"Notatka zosta\u0142a dodana pomy\u015Blnie",note_updated:"Notatka zaktualizowana pomy\u015Blnie",note_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej notatki",already_in_use:"Notatka jest ju\u017C w u\u017Cyciu",deleted_message:"Notatka zosta\u0142a usuni\u0119ta pomy\u015Blnie"}},account_settings:{profile_picture:"Zdj\u0119cie profilowe",name:"Nazwa",email:"Email",password:"Has\u0142o",confirm_password:"Potwierd\u017A has\u0142o",account_settings:"Ustawienia konta",save:"Zapisz",section_description:"Mo\u017Cesz zaktualizowa\u0107 swoje imi\u0119, e-mail i has\u0142o u\u017Cywaj\u0105c poni\u017Cszego formularza.",updated_message:"Ustawienia konta zosta\u0142y pomy\u015Blnie zaktualizowane"},user_profile:{name:"Nazwa",email:"Email",password:"Has\u0142o",confirm_password:"Potwierd\u017A has\u0142o"},notification:{title:"Powiadomienie",email:"Wy\u015Blij powiadomienie do",description:"Kt\xF3re powiadomienia e-mail chcesz otrzymywa\u0107 kiedy co\u015B si\u0119 zmieni?",invoice_viewed:"Faktura wy\u015Bwietlona",invoice_viewed_desc:"Kiedy klient wy\u015Bwietli faktur\u0119 wys\u0142an\u0105 za po\u015Brednictwem kokpitu Cratera.",estimate_viewed:"Oferta wy\u015Bwietlona",estimate_viewed_desc:"Kiedy klient wy\u015Bwietli ofert\u0119 wys\u0142an\u0105 za po\u015Brednictwem kokpitu Cratera.",save:"Zapisz",email_save_message:"Wiadomo\u015B\u0107 zapisana pomy\u015Blnie",please_enter_email:"Prosz\u0119 wpisa\u0107 adres e-mail"},tax_types:{title:"Rodzaje opodatkowania",add_tax:"Dodaj podatek",edit_tax:"Edytuj podatek",description:"Mo\u017Cesz dodawa\u0107 lub usuwa\u0107 podatki. Crater obs\u0142uguje podatki od poszczeg\xF3lnych produkt\xF3w, jak r\xF3wnie\u017C na fakturze.",add_new_tax:"Dodaj nowy podatek",tax_settings:"Ustawienia podatku",tax_per_item:"Podatek na produkt",tax_name:"Nazwa podatku",compound_tax:"Podatek z\u0142o\u017Cony",percent:"Procent",action:"Akcja",tax_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz doda\u0107 podatki do poszczeg\xF3lnych element\xF3w faktury. Domy\u015Blnie podatki s\u0105 dodawane bezpo\u015Brednio do ca\u0142ej faktury.",created_message:"Typ podatku zosta\u0142 pomy\u015Blnie utworzony",updated_message:"Typ podatku zosta\u0142 pomy\u015Blnie zaktualizowany",deleted_message:"Typ podatku zosta\u0142 pomy\u015Blnie usuni\u0119ty",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego typu podatku",already_in_use:"Ten podatek jest w u\u017Cyciu"},expense_category:{title:"Kategorie wydatk\xF3w",action:"Akcja",description:"Kategorie s\u0105 wymagane do dodawania wpis\xF3w wydatk\xF3w. Mo\u017Cesz doda\u0107 lub usun\u0105\u0107 te kategorie zgodnie ze swoimi preferencjami.",add_new_category:"Dodaj now\u0105 kategori\u0119",add_category:"Dodaj kategori\u0119",edit_category:"Edytuj kategori\u0119",category_name:"Nazwa kategorii",category_description:"Opis",created_message:"Kategoria wydatk\xF3w zosta\u0142a utworzona pomy\u015Blnie",deleted_message:"Kategoria wydatk\xF3w zosta\u0142a usuni\u0119ta pomy\u015Blnie",updated_message:"Kategoria wydatk\xF3w zaktualizowana pomy\u015Blnie",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej kategorii wydatk\xF3w",already_in_use:"Kategoria jest ju\u017C w u\u017Cyciu"},preferences:{currency:"Waluta",default_language:"Domy\u015Blny j\u0119zyk",time_zone:"Strefa czasowa",fiscal_year:"Rok finansowy",date_format:"Format daty",discount_setting:"Ustawienia rabatu",discount_per_item:"Rabat na produkt ",discount_setting_description:"W\u0142\u0105cz to, je\u015Bli chcesz doda\u0107 rabat do poszczeg\xF3lnych element\xF3w faktury. Domy\u015Blnie rabat jest dodawany bezpo\u015Brednio do ca\u0142ej faktury.",save:"Zapisz",preference:"Preferencje | Preferencje",general_settings:"Domy\u015Blne ustawienia systemu.",updated_message:"Preferencje pomy\u015Blnie zaktualizowane",select_language:"Wybierz j\u0119zyk",select_time_zone:"Ustaw stref\u0119 czasow\u0105",select_date_format:"Wybierz format daty",select_financial_year:"Wybierz rok podatkowy"},update_app:{title:"Aktualizuj aplikacj\u0119",description:"Mo\u017Cesz \u0142atwo zaktualizowa\u0107 Cratera poprzez klikni\u0119cie przycisku poni\u017Cej",check_update:"Sprawd\u017A czy s\u0105 dost\u0119pne nowe aktualizacje",avail_update:"Dost\u0119pna nowa aktualizacja",next_version:"Nowa wersja",requirements:"Wymagania",update:"Aktualizuj teraz",update_progress:"Aktualizacja w toku...",progress_text:"To zajmie tylko kilka minut. Prosz\u0119 nie od\u015Bwie\u017Ca\u0107 ekranu ani zamyka\u0107 okna przed zako\u0144czeniem aktualizacji",update_success:"Aplikacja zosta\u0142a zaktualizowana! Prosz\u0119 czeka\u0107, a\u017C okno przegl\u0105darki zostanie automatycznie prze\u0142adowane.",latest_message:"Brak dost\u0119pnych aktualizacji! Posiadasz najnowsz\u0105 wersj\u0119.",current_version:"Aktualna wersja",download_zip_file:"Pobierz plik ZIP",unzipping_package:"Rozpakuj pakiet",copying_files:"Kopiowanie plik\xF3w",deleting_files:"Usuwanie nieu\u017Cywanych plik\xF3w",running_migrations:"Uruchamianie migracji",finishing_update:"Ko\u0144czenie aktualizacji",update_failed:"Aktualizacja nie powiod\u0142a si\u0119",update_failed_text:"Przepraszamy! Twoja aktualizacja nie powiod\u0142a si\u0119 w kroku: {step}"},backup:{title:"Kopia zapasowa | Kopie zapasowe",description:"Kopia zapasowa jest plikiem zipfile zawieraj\u0105cym wszystkie pliki w katalogach kt\xF3re podasz wraz z zrzutem bazy danych",new_backup:"Dodaj now\u0105 kopi\u0119 zapasow\u0105",create_backup:"Utw\xF3rz kopi\u0119 zapasow\u0105",select_backup_type:"Wybierz typ kopii zapasowej",backup_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej kopii zapasowej",path:"\u015Bcie\u017Cka",new_disk:"Nowy dysk",created_at:"utworzono w",size:"rozmiar",dropbox:"dropbox",local:"lokalny",healthy:"zdrowy",amount_of_backups:"liczba kopii zapasowych",newest_backups:"najnowsza kopia zapasowa",used_storage:"zu\u017Cyta pami\u0119\u0107",select_disk:"Wybierz dysk",action:"Akcja",deleted_message:"Kopia zapasowa usuni\u0119ta pomy\u015Blnie",created_message:"Kopia zapasowa utworzona pomy\u015Blnie",invalid_disk_credentials:"Nieprawid\u0142owe dane uwierzytelniaj\u0105ce wybranego dysku"},disk:{title:"Dysk plik\xF3w | Dyski plik\xF3w",description:"Domy\u015Blnie Crater u\u017Cyje twojego lokalnego dysku do zapisywania kopii zapasowych, awatara i innych plik\xF3w obrazu. Mo\u017Cesz skonfigurowa\u0107 wi\u0119cej ni\u017C jeden serwer dysku, taki jak DigitalOcean, S3 i Dropbox, zgodnie z Twoimi preferencjami.",created_at:"utworzono w",dropbox:"dropbox",name:"Nazwa",driver:"Sterownik",disk_type:"Typ",disk_name:"Nazwa dysku",new_disk:"Dodaj nowy dysk",filesystem_driver:"Sterownik systemu plik\xF3w",local_driver:"lokalny sterownik",local_root:"g\u0142\xF3wny katalog lokalny",public_driver:"Publiczny sterownik",public_root:"Publiczny g\u0142\xF3wny katalog",public_url:"Publiczny URL",public_visibility:"Widoczno\u015B\u0107 publiczna",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"Sterownik AWS",aws_key:"Klucz AWS",aws_secret:"Tajny klucz AWS",aws_region:"Region AWS",aws_bucket:"Zasobnik AWS",aws_root:"Katalog g\u0142\xF3wny AWS",do_spaces_type:"Typ Do Spaces",do_spaces_key:"Klucz Do Spaces",do_spaces_secret:"Tajny klucz Do Spaces",do_spaces_region:"Region Do Spaces",do_spaces_bucket:"Zasobnik Do Spaces",do_spaces_endpoint:"Punkt dost\u0119powy Do Spaces",do_spaces_root:"Katalog g\u0142\xF3wny Do Spaces",dropbox_type:"Typ Dropbox",dropbox_token:"Token Dropbox",dropbox_key:"Klucz Dropbox",dropbox_secret:"Tajny klucz Dropbox",dropbox_app:"Aplikacja Dropbox",dropbox_root:"Root Dropbox",default_driver:"Domy\u015Blny sterownik",is_default:"JEST DOMY\u015ALNY",set_default_disk:"Ustaw domy\u015Blny dysk",set_default_disk_confirm:"Ten dysk zostanie ustawiony jako domy\u015Blny, a wszystkie nowe pliki PDF zostan\u0105 zapisane na tym dysku",success_set_default_disk:"Dysk zosta\u0142 pomy\u015Blnie ustawiony jako domy\u015Blny",save_pdf_to_disk:"Zapisz pliki PDF na dysku",disk_setting_description:" W\u0142\u0105cz t\u0119 opcj\u0119, je\u015Bli chcesz automatycznie zapisa\u0107 kopi\u0119 ka\u017Cdej faktury, oferty i potwierdzenia p\u0142atno\u015Bci PDF na swoim domy\u015Blnym dysku. W\u0142\u0105czenie tej opcji spowoduje skr\xF3cenie czasu \u0142adowania podczas przegl\u0105dania PDF.",select_disk:"Wybierz dysk",disk_settings:"Ustawienia dysku",confirm_delete:"Twoje istniej\u0105ce pliki i foldery na okre\u015Blonym dysku nie zostan\u0105 zmienione, ale konfiguracja twojego dysku zostanie usuni\u0119ta z Cratera",action:"Akcja",edit_file_disk:"Edytuj dysk plk\xF3w",success_create:"Dysk dodany pomy\u015Blnie",success_update:"Dysk zaktualizowany pomy\u015Blnie",error:"B\u0142\u0105d dodawania dysku",deleted_message:"Dysk plik\xF3w zosta\u0142 usuni\u0119ty pomy\u015Blnie",disk_variables_save_successfully:"Dysk skonfigurowany pomy\u015Blnie",disk_variables_save_error:"Konfiguracja dysku nieudana.",invalid_disk_credentials:"Nieprawid\u0142owe dane uwierzytelniaj\u0105ce wybranego dysku"}},Lc={account_info:"Informacje o koncie",account_info_desc:"Poni\u017Csze szczeg\xF3\u0142y zostan\u0105 u\u017Cyte do utworzenia g\u0142\xF3wnego konta administratora. Mo\u017Cesz tak\u017Ce zmieni\u0107 szczeg\xF3\u0142y w dowolnym momencie po zalogowaniu.",name:"Nazwa",email:"E-mail",password:"Has\u0142o",confirm_password:"Potwierd\u017A has\u0142o",save_cont:"Zapisz i kontynuuj",company_info:"Informacje o firmie",company_info_desc:"Ta informacja b\u0119dzie wy\u015Bwietlana na fakturach. Pami\u0119taj, \u017Ce mo\u017Cesz to p\xF3\u017Aniej edytowa\u0107 na stronie ustawie\u0144.",company_name:"Nazwa firmy",company_logo:"Logo firmy",logo_preview:"Podgl\u0105d loga",preferences:"Preferencje",preferences_desc:"Domy\u015Blne preferencje dla systemu.",country:"Kraj",state:"Wojew\xF3dztwo",city:"Miasto",address:"Adres",street:"Ulica1 | Ulica2",phone:"Telefon",zip_code:"Kod pocztowy",go_back:"Wstecz",currency:"Waluta",language:"J\u0119zyk",time_zone:"Strefa czasowa",fiscal_year:"Rok finansowy",date_format:"Format daty",from_address:"Adres nadawcy",username:"Nazwa u\u017Cytkownika",next:"Nast\u0119pny",continue:"Kontynuuj",skip:"Pomi\u0144",database:{database:"Adres URL witryny i baza danych",connection:"Po\u0142\u0105czenie z baz\u0105 danych",host:"Host bazy danych",port:"Port bazy danych",password:"Has\u0142o bazy danych",app_url:"Adres aplikacji",app_domain:"Domena aplikacji",username:"Nazwa u\u017Cytkownika bazy danych",db_name:"Nazwa bazy danych",db_path:"\u015Acie\u017Cka do bazy danych",desc:"Utw\xF3rz baz\u0119 danych na swoim serwerze i ustaw dane logowania za pomoc\u0105 poni\u017Cszego formularza."},permissions:{permissions:"Uprawnienia",permission_confirm_title:"Czy na pewno chcesz kontynuowa\u0107?",permission_confirm_desc:"Sprawdzanie uprawnie\u0144 do katalogu nie powiod\u0142o si\u0119",permission_desc:"Poni\u017Cej znajduje si\u0119 lista uprawnie\u0144 folder\xF3w, kt\xF3re s\u0105 wymagane do dzia\u0142ania aplikacji. Je\u015Bli sprawdzenie uprawnie\u0144 nie powiedzie si\u0119, upewnij si\u0119, \u017Ce zaktualizujesz uprawnienia folderu."},verify_domain:{title:"Weryfikacja domeny",desc:"Crater u\u017Cywa uwierzytelniania opartego na sesji, kt\xF3re wymaga weryfikacji domeny dla cel\xF3w bezpiecze\u0144stwa. Wprowad\u017A domen\u0119, na kt\xF3rej b\u0119dziesz mie\u0107 dost\u0119p do swojej aplikacji internetowej.",app_domain:"Domena aplikacji",verify_now:"Potwierd\u017A teraz",success:"Pomy\u015Blnie zweryfikowano domen\u0119.",verify_and_continue:"Weryfikuj i kontynuuj"},mail:{host:"Adres hosta poczty",port:"Port poczty",driver:"Spos\xF3b wysy\u0142ania wiadomo\u015Bci e-mail",secret:"Tajny klucz",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domena",mailgun_endpoint:"Punkt dost\u0119powy Mailgun",ses_secret:"Tajny klucz SES",ses_key:"Klucz SES",password:"Has\u0142o poczty",username:"Nazwa u\u017Cytkownika poczty",mail_config:"Konfiguracja poczty",from_name:"Nazwa nadawcy",from_mail:"Adres e-mail nadawcy",encryption:"Szyfrowanie poczty",mail_config_desc:"Poni\u017Cej znajduje si\u0119 formularz konfiguracji sterownika poczty e-mail do wysy\u0142ania wiadomo\u015Bci e-mail z aplikacji. Mo\u017Cesz r\xF3wnie\u017C skonfigurowa\u0107 zewn\u0119trznych dostawc\xF3w takich jak Sendgrid, SES itp."},req:{system_req:"Wymagania systemowe",php_req_version:"Minimalna wersja Php (wymagana wersja {version})",check_req:"Sprawd\u017A wymagania",system_req_desc:"Crater posiada kilka wymaga\u0144 serwera. Upewnij si\u0119, \u017Ce Tw\xF3j serwer ma wymagan\u0105 wersj\u0119 php oraz wszystkie rozszerzenia wymienione poni\u017Cej."},errors:{migrate_failed:"Migracja nie powiod\u0142a si\u0119",domain_verification_failed:"Weryfikacja domeny nie powiod\u0142a si\u0119",database_variables_save_error:"Nie mo\u017Cna zapisa\u0107 konfiguracji do pliku .env. Prosz\u0119 sprawdzi\u0107 jego uprawnienia",mail_variables_save_error:"Konfiguracja email nie powiod\u0142a si\u0119.",connection_failed:"B\u0142\u0105d po\u0142\u0105czenia z baz\u0105 danych",database_should_be_empty:"Baza danych powinna by\u0107 pusta"},success:{mail_variables_save_successfully:"Email zosta\u0142 skonfigurowany pomy\u015Blnie",domain_variable_save_successfully:"Domena zosta\u0142a skonfigurowana pomy\u015Blnie",database_variables_save_successfully:"Baza danych zosta\u0142a skonfigurowana poprawnie."}},Uc={copyright_crater:"Copyright @ Crater - 2020",super_simple_invoicing:"Super proste fakturowanie",for_freelancer:"dla Freelancer\xF3w i",small_businesses:"Mikroprzedsi\u0119biorstw ",crater_help:"Crater pomaga \u015Bledzi\u0107 Twoje wydatki, zapisywa\u0107 p\u0142atno\u015Bci i generowa\u0107 pi\u0119kne",invoices_and_estimates:"faktury i oferty z mo\u017Cliwo\u015Bci\u0105 wyboru wielu szablon\xF3w."},Kc={invalid_phone:"Nieprawid\u0142owy numer telefonu",invalid_url:"Nieprawid\u0142owy adres url (np. http://www.crater.com)",invalid_domain_url:"Nieprawid\u0142owy adres url (np. crater.com)",required:"Pole jest wymagane",email_incorrect:"Niepoprawny email.",email_already_taken:"Ten adres e-mail jest ju\u017C zaj\u0119ty.",email_does_not_exist:"U\u017Cytkownik z podanym adresem email nie istnieje",item_unit_already_taken:"Ta nazwa jednostki zosta\u0142a ju\u017C zaj\u0119ta",payment_mode_already_taken:"Ta nazwa trybu p\u0142atno\u015Bci zosta\u0142a ju\u017C zaj\u0119ta",send_reset_link:"Wy\u015Blij link do resetowania has\u0142a",not_yet:"Jeszcze nie? Wy\u015Blij ponownie",password_min_length:"Has\u0142o musi zawiera\u0107 co najmniej {count} znak\xF3w",name_min_length:"Nazwa u\u017Cytkownika musi zawiera\u0107 co najmniej {count} znak\xF3w.",enter_valid_tax_rate:"Wprowad\u017A poprawn\u0105 stawk\u0119 podatku",numbers_only:"Tylko liczby.",characters_only:"Tylko znaki.",password_incorrect:"Has\u0142a musz\u0105 by\u0107 identyczne",password_length:"Has\u0142o musi zawiera\u0107 {count} znak\xF3w.",qty_must_greater_than_zero:"Ilo\u015B\u0107 musi by\u0107 wi\u0119ksza ni\u017C zero.",price_greater_than_zero:"Cena musi by\u0107 wi\u0119ksza ni\u017C zero.",payment_greater_than_zero:"P\u0142atno\u015B\u0107 musi by\u0107 wi\u0119ksza ni\u017C zero.",payment_greater_than_due_amount:"Wprowadzona p\u0142atno\u015B\u0107 to wi\u0119cej ni\u017C nale\u017Cna kwota tej faktury.",quantity_maxlength:"Ilo\u015B\u0107 nie powinna by\u0107 wi\u0119ksza ni\u017C 20 cyfr.",price_maxlength:"Cena nie powinna by\u0107 wi\u0119ksza ni\u017C 20 cyfr.",price_minvalue:"Cena powinna by\u0107 wi\u0119ksza ni\u017C 0.",amount_maxlength:"Kwota nie powinna by\u0107 wi\u0119ksza ni\u017C 20 cyfr.",amount_minvalue:"Kwota powinna by\u0107 wi\u0119ksza ni\u017C 0.",description_maxlength:"Opis nie powinien przekracza\u0107 65 000 znak\xF3w.",subject_maxlength:"Temat nie powinien by\u0107 d\u0142u\u017Cszy ni\u017C 100 znak\xF3w.",message_maxlength:"Wiadomo\u015B\u0107 nie powinna by\u0107 d\u0142u\u017Csza ni\u017C 255 znak\xF3w.",maximum_options_error:"Wybrano maksymalnie {max} opcji. Najpierw usu\u0144 wybran\u0105 opcj\u0119, aby wybra\u0107 inn\u0105.",notes_maxlength:"Notatki nie powinny by\u0107 wi\u0119ksze ni\u017C 65 000 znak\xF3w.",address_maxlength:"Adres nie powinien mie\u0107 wi\u0119cej ni\u017C 255 znak\xF3w.",ref_number_maxlength:"Numer referencyjny nie mo\u017Ce by\u0107 d\u0142u\u017Cszy ni\u017C 255 znak\xF3w.",prefix_maxlength:"Prefiks nie powinien by\u0107 d\u0142u\u017Cszy ni\u017C 5 znak\xF3w.",something_went_wrong:"co\u015B posz\u0142o nie tak",number_length_minvalue:"D\u0142ugo\u015B\u0107 numeru powinna by\u0107 wi\u0119ksza ni\u017C 0"},qc="Oferta",Zc="Numer oferty",Wc="Data oferty",Hc="Termin wa\u017Cno\u015Bci",Gc="Faktura",Yc="Numer faktury",Jc="Data faktury",Xc="Termin",Qc="Notatki",e_="Pozycje",t_="Ilo\u015B\u0107",a_="Cena",s_="Rabat",n_="Kwota",i_="Suma cz\u0119\u015Bciowa",o_="Razem",r_="P\u0142atno\u015B\u0107",d_="POTWIERDZENIE P\u0141ATNO\u015ACI",l_="Data p\u0142atno\u015Bci",c_="Numer p\u0142atno\u015Bci",__="Metoda p\u0142atno\u015Bci",u_="Kwota otrzymana",m_="SPRAWOZDANIE Z WYDATK\xD3W",p_="WYDATKI OG\xD3\u0141EM",g_="RAPORT ZYSK\xD3W I STRAT",f_="Raport sprzeda\u017Cy obs\u0142ugi kontrahenta",h_="Raport dotycz\u0105cy przedmiotu sprzeda\u017Cy",v_="Raport podsumowania podatku",y_="PRZYCH\xD3D",b_="ZYSK NETTO",k_="Raport sprzeda\u017Cy: Wed\u0142ug Kontrahenta",w_="CA\u0141KOWITA SPRZEDA\u017B",x_="Raport sprzeda\u017Cy: Wed\u0142ug produktu",z_="RAPORT PODATKOWY",S_="CA\u0141KOWITY PODATEK",j_="Rodzaje podatku",P_="Wydatki",D_="Wystawiono dla",C_="Wysy\u0142ka do",A_="Otrzymane od:";var E_={navigation:jc,general:Pc,dashboard:Dc,tax_types:Cc,global_search:Ac,customers:Ec,items:Nc,estimates:Tc,invoices:Ic,credit_notes:$c,payments:Rc,expenses:Fc,login:Mc,users:Vc,reports:Bc,settings:Oc,wizard:Lc,layout_login:Uc,validation:Kc,pdf_estimate_label:qc,pdf_estimate_number:Zc,pdf_estimate_date:Wc,pdf_estimate_expire_date:Hc,pdf_invoice_label:Gc,pdf_invoice_number:Yc,pdf_invoice_date:Jc,pdf_invoice_due_date:Xc,pdf_notes:Qc,pdf_items_label:e_,pdf_quantity_label:t_,pdf_price_label:a_,pdf_discount_label:s_,pdf_amount_label:n_,pdf_subtotal:i_,pdf_total:o_,pdf_payment_label:r_,pdf_payment_receipt_label:d_,pdf_payment_date:l_,pdf_payment_number:c_,pdf_payment_mode:__,pdf_payment_amount_received_label:u_,pdf_expense_report_label:m_,pdf_total_expenses_label:p_,pdf_profit_loss_label:g_,pdf_sales_customers_label:f_,pdf_sales_items_label:h_,pdf_tax_summery_label:v_,pdf_income_label:y_,pdf_net_profit_label:b_,pdf_customer_sales_report:k_,pdf_total_sales_label:w_,pdf_item_sales_label:x_,pdf_tax_report_label:z_,pdf_total_tax_label:S_,pdf_tax_types_label:j_,pdf_expenses_label:P_,pdf_bill_to:D_,pdf_ship_to:C_,pdf_received_from:A_};const N_={dashboard:"Painel",customers:"Clientes",items:"Itens",invoices:"Faturas",expenses:"Despesas",estimates:"Or\xE7amentos",payments:"Pagamentos",reports:"Relat\xF3rios",settings:"Configura\xE7\xF5es",logout:"Encerrar sess\xE3o"},T_={view_pdf:"Ver PDF",download_pdf:"Baixar PDF",save:"Salvar",cancel:"Cancelar",update:"Atualizar",deselect:"Desmarcar",download:"Baixar",from_date:"A partir da Data",to_date:"At\xE9 a Data",from:"De",to:"Para",sort_by:"Ordenar por",ascending:"Crescente",descending:"Descendente",subject:"Sujeita",body:"Corpo",message:"Mensagem",go_back:"Voltar",back_to_login:"Voltar ao Login",home:"Home",filter:"Filtrar",delete:"Excluir",edit:"Editar",view:"Ver",add_new_item:"Adicionar novo item",clear_all:"Limpar tudo",showing:"Mostrando",of:"de",actions:"A\xE7\xF5es",subtotal:"Total parcial",discount:"Desconto",fixed:"Fixado",percentage:"Porcentagem",tax:"Imposto",total_amount:"Quantidade Total",bill_to:"Cobrar a",ship_to:"Envie a",due:"Vencida",draft:"Rascunho",sent:"Enviado",all:"Todos",select_all:"Selecionar tudo",choose_file:"Escolha um arquivo.",choose_template:"Escolha um modelo",choose:"Escolher",remove:"Excluir",powered_by:"Distribu\xEDdo por",bytefury:"Bytefury",select_a_status:"Selecione um status",select_a_tax:"Selecione um Imposto",search:"Buscar",are_you_sure:"Tem certeza?",list_is_empty:"Lista est\xE1 vazia.",no_tax_found:"Imposto n\xE3o encontrado!",four_zero_four:"404",you_got_lost:"Ops! Se perdeu!",go_home:"Ir para Home",test_mail_conf:"Testar configura\xE7\xE3o de email",send_mail_successfully:"Correio enviado com sucesso",setting_updated:"Configura\xE7\xE3o atualizada com sucesso",select_state:"Selecione Estado",select_country:"Selecionar pais",select_city:"Selecionar cidade",street_1:"Rua 1",street_2:"Rua # 2",action_failed:"A\xE7\xE3o: Falhou",retry:"Atualiza\xE7\xE3o falhou"},I_={select_year:"Selecione Ano",cards:{due_amount:"Montante devido",customers:"Clientes",invoices:"Faturas",estimates:"Or\xE7amentos"},chart_info:{total_sales:"Vendas",total_receipts:"Receitas",total_expense:"Despesas",net_income:"Resultado l\xEDquido",year:"Selecione Ano"},monthly_chart:{title:"Vendas e Despesas"},recent_invoices_card:{title:"Faturas vencidas",due_on:"vencido em",customer:"Cliente",amount_due:"Valor Devido",actions:"A\xE7\xF5es",view_all:"Ver todos"},recent_estimate_card:{title:"Or\xE7amentos Recentes",date:"Data",customer:"Cliente",amount_due:"Valor Devido",actions:"A\xE7\xF5es",view_all:"Ver todos"}},$_={name:"Nome",description:"Descri\xE7\xE3o",percent:"Porcentagem",compound_tax:"Imposto compuesto"},R_={title:"Clientes",add_customer:"Adicionar cliente",contacts_list:"Lista de clientes",name:"Nome",display_name:"Nome de exibi\xE7\xE3o",primary_contact_name:"Nome do contato principal",contact_name:"Nome de Contato",amount_due:"Valor Devido",email:"Email",address:"Endere\xE7o",phone:"Telefone",website:"Site",country:"Pais",state:"Estado",city:"Cidade",zip_code:"C\xF3digo postal",added_on:"Adicionado",action:"A\xE7\xE3o",password:"Senha",street_number:"N\xFAmero",primary_currency:"Moeda principal",add_new_customer:"Adicionar novo cliente",save_customer:"Salvar cliente",update_customer:"Atualizar cliente",customer:"Cliente | Clientes",new_customer:"Novo cliente",edit_customer:"Editar cliente",basic_info:"Informa\xE7\xE3o basica",billing_address:"Endere\xE7o de cobran\xE7a",shipping_address:"Endere\xE7o de entrega",copy_billing_address:"C\xF3pia de faturamento",no_customers:"Ainda n\xE3o h\xE1 clientes!",no_customers_found:"Clientes n\xE3o encontrados!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Esta se\xE7\xE3o conter\xE1 a lista de clientes.",primary_display_name:"Nome de exibi\xE7\xE3o principal",select_currency:"Selecione o tipo de moeda",select_a_customer:"Selecione um cliente",type_or_click:"Digite ou clique para selecionar",new_transaction:"Nova transa\xE7\xE3o",no_matching_customers:"N\xE3o h\xE1 clientes correspondentes!",phone_number:"N\xFAmero de telefone",create_date:"Criar Data",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este cliente e todas as faturas, estimativas e pagamentos relacionados. | Voc\xEA n\xE3o poder\xE1 recuperar esses clientes e todas as faturas, estimativas e pagamentos relacionados.",created_message:"Cliente criado com sucesso",updated_message:"Cliente atualizado com sucesso",deleted_message:"Cliente exclu\xEDdo com sucesso | Clientes exclu\xEDdos com sucesso"},F_={title:"Itens",items_list:"Lista de Itens",name:"Nome",unit:"Unidade",description:"Descri\xE7\xE3o",added_on:"Adicionado",price:"Pre\xE7o",date_of_creation:"Data de cria\xE7\xE3o",not_selected:"No item selected",action:"A\xE7\xE3o",add_item:"Adicionar item",save_item:"Salvar item",update_item:"Atualizar item",item:"Item | Itens",add_new_item:"Adicionar novo item",new_item:"Novo item",edit_item:"Editar item",no_items:"Ainda n\xE3o existe itens",list_of_items:"Esta se\xE7\xE3o conter\xE1 a lista de itens.",select_a_unit:"Seleciona unidade",taxes:"Impostos",item_attached_message:"N\xE3o \xE9 poss\xEDvel excluir um item que j\xE1 est\xE1 em uso.",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este item | Voc\xEA n\xE3o poder\xE1 recuperar esses itens",created_message:"Item criado com sucesso",updated_message:"Item atualizado com sucesso",deleted_message:"Item exclu\xEDdo com sucesso | Itens Exclu\xEDdos com sucesso"},M_={title:"Or\xE7amentos",estimate:"Or\xE7amento | Or\xE7amentos",estimates_list:"Lista de or\xE7amentos",days:"{dias} dias",months:"{meses} M\xEAs",years:"{Anos} Ano",all:"Todos",paid:"Pago",unpaid:"N\xE3o pago",customer:"CLIENTE",ref_no:"N\xDAMERO DE REFER\xCANCIA.",number:"N\xDAMERO",amount_due:"Valor Devido",partially_paid:"Pago parcialmente",total:"Total",discount:"Desconto",sub_total:"Subtotal",estimate_number:"Numero do Or\xE7amento",ref_number:"Refer\xEAncia",contact:"Contato",add_item:"Adicionar Item",date:"Data",due_date:"Data de Vencimento",expiry_date:"Data de expira\xE7\xE3o",status:"Status",add_tax:"Adicionar Imposto",amount:"Montante",action:"A\xE7\xE3o",notes:"Observa\xE7\xF5es",tax:"Imposto",estimate_template:"Modelo de or\xE7amento",convert_to_invoice:"Converter em fatura",mark_as_sent:"Marcar como enviado",send_estimate:"Enviar or\xE7amento",record_payment:"Registro de pago",add_estimate:"Adicionar or\xE7amento",save_estimate:"Salvar Or\xE7amento",confirm_conversion:"Deseja converter este or\xE7amento em uma fatura?",conversion_message:"Conver\xE7\xE3o realizada com sucesso",confirm_send_estimate:"Este or\xE7amento ser\xE1 enviado por email ao cliente",confirm_mark_as_sent:"Este or\xE7amento ser\xE1 marcado como enviado",confirm_mark_as_accepted:"Este or\xE7amento ser\xE1 marcado como Aceito",confirm_mark_as_rejected:"Este or\xE7amento ser\xE1 marcado como Rejeitado",no_matching_estimates:"N\xE3o h\xE1 or\xE7amentos correspondentes!",mark_as_sent_successfully:"Or\xE7amento como marcado como enviado com sucesso",send_estimate_successfully:"Or\xE7amento enviado com sucesso",errors:{required:"Campo obrigat\xF3rio"},accepted:"Aceito",rejected:"Rejected",sent:"Enviado",draft:"Rascunho",declined:"Rejeitado",new_estimate:"Novo or\xE7amento",add_new_estimate:"Adicionar novo or\xE7amento",update_Estimate:"Atualizar or\xE7amento",edit_estimate:"Editar or\xE7amento",items:"art\xEDculos",Estimate:"Or\xE7amento | Or\xE7amentos",add_new_tax:"Adicionar novo imposto",no_estimates:"Ainda n\xE3o h\xE1 orcamentos",list_of_estimates:"Esta se\xE7\xE3o cont\xE9m a lista de or\xE7amentos.",mark_as_rejected:"Marcar como rejeitado",mark_as_accepted:"Marcar como aceito",marked_as_accepted_message:"Or\xE7amento marcado como aceito",marked_as_rejected_message:"Or\xE7amento marcado como rejeitado",confirm_delete:"N\xE3o poder\xE1 recuperar este or\xE7amento | N\xE3o poder\xE1 recuperar estes or\xE7amentos",created_message:"Or\xE7amento criado com sucesso",updated_message:"Or\xE7amento atualizado com sucesso",deleted_message:"Or\xE7amento exclu\xEDdo com sucesso | Or\xE7amentos exclu\xEDdos com sucesso",something_went_wrong:"Algo deu errado",item:{title:"Titulo do item",description:"Descri\xE7\xE3o",quantity:"Quantidade",price:"Pre\xE7o",discount:"Desconto",total:"Total",total_discount:"Desconto total",sub_total:"Subtotal",tax:"Imposto",amount:"Montante",select_an_item:"Escreva ou clique para selecionar um item",type_item_description:"Tipo Item Descri\xE7\xE3o (opcional)"}},V_={title:"Faturas",invoices_list:"Lista de faturas",days:"{dias} dias",months:"{meses} M\xEAs",years:"{anos} Ano",all:"Todas",paid:"Paga",unpaid:"N\xE3o Paga",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENTE",paid_status:"STATUS PAGAMENTO",ref_no:"REFER\xCANCIA",number:"N\xDAMERO",amount_due:"VALOR DEVIDO",partially_paid:"Parcialmente pago",total:"Total",discount:"Desconto",sub_total:"Subtotal",invoice:"Fatura | Faturas",invoice_number:"N\xFAmero da fatura",ref_number:"Refer\xEAncia",contact:"Contato",add_item:"Adicionar um item",date:"Data",due_date:"Data de Vencimento",status:"Status",add_tax:"Adicionar imposto",amount:"Montante",action:"A\xE7\xE3o",notes:"Observa\xE7\xF5es",view:"Ver",send_invoice:"Enviar Fatura",invoice_template:"Modelo da Fatura",template:"Modelo",mark_as_sent:"Marcar como enviada",confirm_send_invoice:"Esta fatura ser\xE1 enviada por e-mail ao cliente",invoice_mark_as_sent:"Esta fatura ser\xE1 marcada como enviada",confirm_send:"Esta fatura ser\xE1 enviada por e-mail ao cliente",invoice_date:"Data da Fatura",record_payment:"Gravar Pagamento",add_new_invoice:"Adicionar Nova Fatura",update_expense:"Atualizar Despesa",edit_invoice:"Editar Fatura",new_invoice:"Nova Fatura",save_invoice:"Salvar Fatura",update_invoice:"Atualizar Fatura",add_new_tax:"Adicionar novo Imposto",no_invoices:"Ainda n\xE3o h\xE1 faturas!",list_of_invoices:"Esta se\xE7\xE3o conter\xE1 a lista de faturas.",select_invoice:"Selecionar Fatura",no_matching_invoices:"N\xE3o h\xE1 faturas correspondentes!",mark_as_sent_successfully:"Fatura marcada como enviada com sucesso",invoice_sent_successfully:"Fatura enviada com sucesso",cloned_successfully:"Fatura clonada com sucesso",clone_invoice:"Clonar fatura",confirm_clone:"Esta fatura ser\xE1 clonada em uma nova fatura",item:{title:"Titulo do Item",description:"Descri\xE7\xE3o",quantity:"Quantidade",price:"Pre\xE7o",discount:"Desconto",total:"Total",total_discount:"Desconto Total",sub_total:"SubTotal",tax:"Imposto",amount:"Montante",select_an_item:"Digite ou clique para selecionar um item",type_item_description:"Tipo Descri\xE7\xE3o do item (opcional)"},confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta fatura | Voc\xEA n\xE3o poder\xE1 recuperar essas faturas",created_message:"Fatura criada com sucesso",updated_message:"Fatura atualizada com sucesso",deleted_message:"Fatura exclu\xEDda com sucesso | Faturas exclu\xEDdas com sucesso",marked_as_sent_message:"Fatura marcada como enviada com sucesso",something_went_wrong:"Algo deu errado",invalid_due_amount_message:"O valor total da fatura n\xE3o pode ser menor que o valor total pago para esta fatura. Atualize a fatura ou exclua os pagamentos associados para continuar."},B_={title:"Pagamentos",payments_list:"Lista de Pagamentos",record_payment:"Gravar Pagamento",customer:"Cliente",date:"Data",amount:"Montante",action:"A\xE7\xE3o",payment_number:"N\xFAmero do Pagamento",payment_mode:"Forma de Pagamento",invoice:"Fatura",note:"Observa\xE7\xE3o",add_payment:"Adicionar Pagamento",new_payment:"Novo Pagamento",edit_payment:"Editar Pagamento",view_payment:"Ver Pagamento",add_new_payment:"Adicionar novo Pagamento",send_payment_receipt:"Enviar recibo de pagamento",save_payment:"Salvar Pagamento",send_payment:"Mande o pagamento",update_payment:"Atualizar Pagamento",payment:"Pagamento | Pagamentos",no_payments:"Ainda sem pagamentos!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"N\xE3o h\xE1 pagamentos correspondentes!",list_of_payments:"Esta se\xE7\xE3o conter\xE1 a lista de pagamentos.",select_payment_mode:"Selecione a forma de pagamento",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este Pagamento | Voc\xEA n\xE3o poder\xE1 recuperar esses Pagamentos",created_message:"Pagamento criado com sucesso",updated_message:"Pagamento atualizado com sucesso",deleted_message:"Pagamento exclu\xEDdo com sucesso | Pagamentos exclu\xEDdos com sucesso",invalid_amount_message:"O valor do pagamento \xE9 inv\xE1lido"},O_={title:"Despesas",expenses_list:"Lista de Despesas",expense_title:"T\xEDtulo",contact:"Contato",category:"Categoria",customer:"Cliente",from_date:"A partir da Data",to_date:"At\xE9 a Data",expense_date:"Data",description:"Descri\xE7\xE3o",receipt:"Receita",amount:"Montante",action:"A\xE7\xE3o",not_selected:"Not selected",note:"Observa\xE7\xE3o",category_id:"Categoria",date:"Data da Despesa",add_expense:"Adicionar Despesa",add_new_expense:"Adicionar Nova Despesa",save_expense:"Salvar Despesa",update_expense:"Atualizar Despesa",download_receipt:"Baixar Receita",edit_expense:"Editar Despesa",new_expense:"Nova Despesa",expense:"Despesa | Despesas",no_expenses:"Ainda sem Despesas!",list_of_expenses:"Esta se\xE7\xE3o conter\xE1 a lista de despesas.",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta despesa | Voc\xEA n\xE3o poder\xE1 recuperar essas despesas",created_message:"Despesa criada com sucesso",updated_message:"Despesa atualizada com sucesso",deleted_message:"Despesas exclu\xEDdas com sucesso | Despesas exclu\xEDdas com sucesso",categories:{categories_list:"Lista de Categorias",title:"T\xEDtulo",name:"Nome",description:"Descri\xE7\xE3o",amount:"Montante",actions:"A\xE7\xF5es",add_category:"Adicionar Categoria",new_category:"Nova Categoria",category:"Categoria | Categorias",select_a_category:"Selecionar uma Categoria"}},L_={email:"Email",password:"Senha",forgot_password:"Esqueceu a senha?",or_signIn_with:"ou Entre com",login:"Entrar",register:"Registre-se",reset_password:"Resetar Senha",password_reset_successfully:"Senha redefinida com sucesso",enter_email:"Digite email",enter_password:"Digite a senha",retype_password:"Confirme a Senha"},U_={title:"Relat\xF3rio",from_date:"A partir da Data",to_date:"At\xE9 a Data",status:"Status",paid:"Pago",unpaid:"N\xE3o Pago",download_pdf:"Baixar PDF",view_pdf:"Ver PDF",update_report:"Atualizar Relat\xF3rio",report:"Relat\xF3rio | Relat\xF3rios",profit_loss:{profit_loss:"Perda de lucro",to_date:"At\xE9 a Data",from_date:"A partir da Data",date_range:"Selecionar per\xEDodo"},sales:{sales:"Vendas",date_range:"Selecionar per\xEDodo",to_date:"At\xE9 a Data",from_date:"A partir da Data",report_type:"Tipo de Relat\xF3rio"},taxes:{taxes:"Impostos",to_date:"At\xE9 a Data",from_date:"A partir da Data",date_range:"Selecionar per\xEDodo"},errors:{required:"Campo obrigat\xF3rio"},invoices:{invoice:"Fatura",invoice_date:"Data da Fatura",due_date:"Data de Vencimento",amount:"Montante",contact_name:"Nome de Contato",status:"Status"},estimates:{estimate:"Or\xE7amento",estimate_date:"Data do Or\xE7amento",due_date:"Data de Vencimento",estimate_number:"N\xFAmero do Or\xE7amento",ref_number:"Refer\xEAncia",amount:"Montante",contact_name:"Nome de Contato",status:"Status"},expenses:{expenses:"Despesas",category:"Categoria",date:"Data",amount:"Montante",to_date:"At\xE9 a Data",from_date:"A partir da Data",date_range:"Selecionar per\xEDodo"}},K_={menu_title:{account_settings:"Configura\xE7\xF5es da conta",company_information:"Informa\xE7\xF5es da Empresa",customization:"Personalizar",preferences:"Prefer\xEAncias",notifications:"Notifica\xE7\xF5es",tax_types:"Tipos de Impostos",expense_category:"Categorias de Despesas",update_app:"Atualizar Aplicativo",custom_fields:"Os campos personalizados"},title:"Configura\xE7\xF5es",setting:"Configura\xE7\xE3o | Configura\xE7\xF5es",general:"Geral",language:"Idioma",primary_currency:"Mo\xE9da Principal",timezone:"Fuso hor\xE1rio",date_format:"Formato de data",currencies:{title:"Moedas",currency:"Moeda | Moedas",currencies_list:"Moedas",select_currency:"Selecione uma Moeda",name:"Nome",code:"C\xF3digo",symbol:"S\xEDmbolo",precision:"Precis\xE3o",thousand_separator:"Separador de Milhar",decimal_separator:"Separador Decimal",position:"Posi\xE7\xE3o",position_of_symbol:"Posi\xE7\xE3o do S\xEDmbolo",right:"Direita",left:"Esquerda",action:"A\xE7\xE3o",add_currency:"Adicionar Moeda"},mail:{host:"Host de Email",port:"Porta de Email",driver:"Mail Driver",secret:"Segredo",mailgun_secret:"Mailgun Segredo",mailgun_domain:"Dom\xEDnio",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Segredo",ses_key:"SES Chave",password:"Senha do Email",username:"Nome de Usu\xE1rio do Email",mail_config:"Configura\xE7\xE3o de Email",from_name:"Do Nome de Email",from_mail:"Do Endere\xE7o de Email",encryption:"Criptografia de Email",mail_config_desc:"Abaixo est\xE1 o formul\xE1rio para configurar o driver de email para enviar emails do aplicativo. Voc\xEA tamb\xE9m pode configurar provedores de terceiros como Sendgrid, SES etc."},pdf:{title:"Configura\xE7\xF5es de PDF",footer_text:"Texto do Rodap\xE9",pdf_layout:"Layout de PDF"},company_info:{company_info:"Informa\xE7\xE3o da Empresa",company_name:"Nome da Empresa",company_logo:"Logotipo da Empresa",section_description:"Informa\xE7\xF5es sobre sua empresa que ser\xE3o exibidas em Faturas, Or\xE7amentos e outros documentos criados pela Crater.",phone:"Telefone",country:"Pais",state:"Estado",city:"Cidade",address:"Endere\xE7o",zip:"CEP",save:"Salvar",updated_message:"Informa\xE7\xF5es da Empresa atualizadas com sucesso"},custom_fields:{title:"Os campos personalizados",add_custom_field:"Adicionar campo personalizado",edit_custom_field:"Editar campo personalizado",field_name:"Nome do campo",type:"Tipo",name:"Nome",required:"Requeridas",label:"R\xF3tulo",placeholder:"Placeholder",help_text:"Texto de ajuda",default_value:"Valor padr\xE3o",prefix:"Prefixo",starting_number:"N\xFAmero inicial",model:"Modelo",help_text_description:"Digite algum texto para ajudar os usu\xE1rios a entender a finalidade desse campo personalizado.",suffix:"Sufixo",yes:"sim",no:"N\xE3o",order:"Ordem",custom_field_confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este campo personalizado",already_in_use:"O campo personalizado j\xE1 est\xE1 em uso",deleted_message:"Campo personalizado exclu\xEDdo com sucesso",options:"op\xE7\xF5es",add_option:"Adicionar op\xE7\xF5es",add_another_option:"Adicione outra op\xE7\xE3o",sort_in_alphabetical_order:"Classificar em ordem alfab\xE9tica",add_options_in_bulk:"Adicionar op\xE7\xF5es em massa",use_predefined_options:"Use Predefined Options",select_custom_date:"Selecionar data personalizada",select_relative_date:"Selecionar data relativa",ticked_by_default:"Marcado por padr\xE3o",updated_message:"Campo personalizado atualizado com sucesso",added_message:"Campo personalizado adicionado com sucesso"},customization:{customization:"Personalizar",save:"Salvar",addresses:{title:"Endere\xE7o",section_description:"Voc\xEA pode definir o endere\xE7o de cobran\xE7a do cliente e o formato do endere\xE7o de entrega do cliente (exibido apenas em PDF).",customer_billing_address:"Endere\xE7o de Cobran\xE7a do Cliente",customer_shipping_address:"Endere\xE7o de Entrega do Cliente",company_address:"Endere\xE7o da Empresa",insert_fields:"Inserir Campos",contact:"Contato",address:"Endere\xE7o",display_name:"Nome em Exibi\xE7\xE3o",primary_contact_name:"Nome do Contato Principal",email:"Email",website:"Website",name:"Nome",country:"Pais",state:"Estado",city:"Cidade",company_name:"Nome da Empresa",address_street_1:"Endere\xE7o Rua 1",address_street_2:"Endere\xE7o Rua 2",phone:"Telefone",zip_code:"CEP",address_setting_updated:"Configura\xE7\xE3o de Endere\xE7o Atualizada com Sucesso"},updated_message:"Informa\xE7\xF5es da Empresa atualizadas com sucesso",invoices:{title:"Faturas",notes:"Notas",invoice_prefix:"Fatura Prefixo",invoice_settings:"Configra\xE7\xF5es da Fatura",autogenerate_invoice_number:"Gerar automaticamente o n\xFAmero da Fatura",autogenerate_invoice_number_desc:"Desative isso, se voc\xEA n\xE3o deseja gerar automaticamente n\xFAmeros da Fatura sempre que criar uma nova.",enter_invoice_prefix:"Digite o prefixo da Fatura",terms_and_conditions:"Termos e Condi\xE7\xF5es",invoice_settings_updated:"Configura\xE7\xE3o da Fatura atualizada com sucesso"},estimates:{title:"Or\xE7amentos",estimate_prefix:"Or\xE7amento Prefixo",estimate_settings:"Configura\xE7\xF5es do Or\xE7amento",autogenerate_estimate_number:"Gerar automaticamente o n\xFAmero do Or\xE7amento",estimate_setting_description:"Desative isso, se voc\xEA n\xE3o deseja gerar automaticamente n\xFAmeros do Or\xE7amento sempre que criar um novo.",enter_estimate_prefix:"Digite o prefixo do Or\xE7amento",estimate_setting_updated:"Configura\xE7\xE3o do Or\xE7amento atualizada com sucesso"},payments:{title:"Pagamentos",payment_prefix:"Pagamento Prefixo",payment_settings:"Configura\xE7\xF5es de Pagamento",autogenerate_payment_number:"Gerar automaticamente n\xFAmero do Pagamento",payment_setting_description:"Desative isso, se voc\xEA n\xE3o deseja gerar automaticamente n\xFAmeros do Pagamento sempre que criar um novo.",enter_payment_prefix:"Digite o Prefixo do Pagamento",payment_setting_updated:"Configura\xE7\xF5es de Pagamento atualizada com sucesso",payment_mode:"Modo de pagamento",add_payment_mode:"Adicionar modo de pagamento",edit_payment_mode:"Editar modo de pagamento",mode_name:"Nome do modo",payment_mode_added:"Modo de pagamento adicionado",payment_mode_updated:"Modo de pagamento atualizado",payment_mode_confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este modo de pagamento",already_in_use:"O modo de pagamento j\xE1 est\xE1 em uso",deleted_message:"Modo de pagamento exclu\xEDdo com sucesso"},items:{title:"Itens",units:"unidades",add_item_unit:"Adicionar unidade de item",edit_item_unit:"Editar unidade de item",unit_name:"Nome da unidade",item_unit_added:"Item Unit Added",item_unit_updated:"Item Unit Updated",item_unit_confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta unidade de item",already_in_use:"A unidade do item j\xE1 est\xE1 em uso",deleted_message:"Unidade de item exclu\xEDda com sucesso"}},account_settings:{profile_picture:"Foto do Perfil",name:"Nome",email:"Email",password:"Senha",confirm_password:"Confirmar Senha",account_settings:"Configura\xE7\xF5es da conta",save:"Salvar",section_description:"Voc\xEA pode atualizar seu nome, email e senha usando o formul\xE1rio abaixo.",updated_message:"Configura\xE7\xF5es da conta atualizadas com sucesso"},user_profile:{name:"Nome",email:"Email",password:"Password",confirm_password:"Confirmar Senha"},notification:{title:"Notifica\xE7\xE3o",email:"Enviar Notifica\xE7\xF5es para",description:"Quais notifica\xE7\xF5es por email voc\xEA gostaria de receber quando algo mudar?",invoice_viewed:"Fatura Visualizada",invoice_viewed_desc:"Quando o seu cliente visualiza uma Fatura enviada pelo painel do Crater.",estimate_viewed:"Or\xE7amento Visualizado",estimate_viewed_desc:"Quando o seu cliente visualiza um Or\xE7amento enviada pelo painel do Crater.",save:"Salvar",email_save_message:"E-mail salvo com sucesso",please_enter_email:"Por favor digite um E-mail"},tax_types:{title:"Tipos de Impostos",add_tax:"Adicionar Imposto",edit_tax:"Editar imposto",description:"Voc\xEA pode adicionar ou remover impostos conforme desejar. O Crater suporta impostos sobre itens individuais e tamb\xE9m na Fatura.",add_new_tax:"Adicionar Novo Imposto",tax_settings:"Configura\xE7\xF5es de Impostos",tax_per_item:"Imposto por Item",tax_name:"Nome do Imposto",compound_tax:"Imposto Composto",percent:"Porcentagem",action:"A\xE7\xE3o",tax_setting_description:"Habilite isso se desejar adicionar Impostos a itens da Fatura Idividualmente. Por padr\xE3o, os impostos s\xE3o adicionados diretamente \xE0 Fatura.",created_message:"Tipo de Imposto criado com sucesso",updated_message:"Tipo de Imposto Atualizado com sucesso",deleted_message:"Tipo de Imposto Deletado com sucesso",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar este tipo de Imposto",already_in_use:"O Imposto j\xE1 est\xE1 em uso"},expense_category:{title:"Categoria de Despesa",action:"A\xE7\xE3o",description:"As Categorias s\xE3o necess\xE1rias para adicionar entradas de Despesas. Voc\xEA pode adicionar ou remover essas Categorias de acordo com sua prefer\xEAncia.",add_new_category:"Adicionar Nova Categoria",add_category:"Adicionar categoria",edit_category:"Editar categoria",category_name:"Nome da Categoria",category_description:"Descri\xE7\xE3o",created_message:"Categoria de Despesa criada com sucesso",deleted_message:"Categoria de Despesa exclu\xEDda com sucesso",updated_message:"Categoria de Despesa atualizada com sucesso",confirm_delete:"Voc\xEA n\xE3o poder\xE1 recuperar esta Categoria de Despesa",already_in_use:"A categoria j\xE1 est\xE1 em uso"},preferences:{currency:"Moeda",language:"Idioma",time_zone:"Fuso Hor\xE1rio",fiscal_year:"Ano Financeiro",date_format:"Formato da Data",discount_setting:"Configura\xE7\xE3o de Desconto",discount_per_item:"Desconto por Item ",discount_setting_description:"Habilite isso se desejar adicionar desconto a itens de Fatura individualmente. Por padr\xE3o, o desconto \xE9 adicionado diretamente \xE0 Fatura.",save:"Salvar",preference:"Prefer\xEAncia | Prefer\xEAncias",general_settings:"Prefer\xEAncias padr\xE3o para o sistema.",updated_message:"Prefer\xEAncias atualizadas com sucesso",select_language:"Selecione um Idioma",select_time_zone:"Selecione um fuso hor\xE1rio",select_date_formate:"Selecione um formato de data",select_financial_year:"Selecione o ano financeiro"},update_app:{title:"Atualizar Aplicativo",description:"Voc\xEA pode atualizar facilmente o Crater, verifique se h\xE0 novas atualiza\xE7\xF5es, clicando no bot\xE3o abaixo",check_update:"Verifique se h\xE1 atualiza\xE7\xF5es",avail_update:"Nova atualiza\xE7\xE3o dispon\xEDvel",next_version:"Pr\xF3xima vers\xE3o",update:"Atualizar agora",update_progress:"Atualiza\xE7\xE3o em progresso...",progress_text:"Levar\xE1 apenas alguns minutos. N\xE3o atualize a tela ou feche a janela antes que a atualiza\xE7\xE3o seja conclu\xEDda",update_success:"O aplicativo foi atualizado! Aguarde enquanto a janela do navegador \xE9 recarregada automaticamente.",latest_message:"Nenhuma atualiza\xE7\xE3o dispon\xEDvel! Voc\xEA est\xE1 na vers\xE3o mais recente.",current_version:"Vers\xE3o Atual",download_zip_file:"Baixar arquivo ZIP",unzipping_package:"Descompactando o pacote",copying_files:"Copiando arquivos",running_migrations:"Executando migra\xE7\xF5es",finishing_update:"Atualiza\xE7\xE3o de acabamento",update_failed:"Atualiza\xE7\xE3o falhou",update_failed_text:"Desculpa! Sua atualiza\xE7\xE3o falhou em: {step} step"}},q_={account_info:"Informa\xE7\xE3o da conta",account_info_desc:"Os detalhes abaixo ser\xE3o usados para criar a conta principal do administrador. Al\xE9m disso, voc\xEA pode alterar os detalhes a qualquer momento ap\xF3s o login.",name:"Nome",email:"Email",password:"Senha",confirm_password:"Confirmar Senha",save_cont:"Salvar e Continuar",company_info:"Informa\xE7\xE3o da Empresa",company_info_desc:"Esta informa\xE7\xE3o ser\xE1 exibida nas Faturas. Observe que voc\xEA pode editar isso mais tarde na p\xE1gina de configura\xE7\xF5es.",company_name:"Nome da Empresa",company_logo:"Logotipo da Empresa",logo_preview:"Previsualizar Logotipo",preferences:"Prefer\xEAncias",preferences_desc:"Prefer\xEAncias padr\xE3o para o sistema.",country:"Pais",state:"Estado",city:"Cidade",address:"Endere\xE7o",street:"Rua 1 | Rua 2",phone:"Telefone",zip_code:"CEP",go_back:"Voltar",currency:"Moeda",language:"Idioma",time_zone:"Fuso Hor\xE1rio",fiscal_year:"Ano Financeiro",date_format:"Formato de Data",from_address:"Do Endere\xE7o",username:"Nome de Usu\xE1rio",next:"Pr\xF3ximo",continue:"Continuar",skip:"Pular",database:{database:"URL do Site e Base de Dados",connection:"Conex\xE3o da Base de Dados",host:"Host da Base de Dados",port:"Porta da Base de Dados",password:"Senha da Base de Dados",app_url:"URL do Aplicativo",username:"Usu\xE1rio da Base de Dados",db_name:"Nome da Base de Dados",desc:"Crie um Banco de Dados no seu servidor e defina as credenciais usando o formul\xE1rio abaixo."},permissions:{permissions:"Permiss\xF5es",permission_confirm_title:"Voc\xEA tem certeza que quer continuar?",permission_confirm_desc:"Falha na verifica\xE7\xE3o de permiss\xE3o da pasta",permission_desc:"Abaixo est\xE1 a lista de permiss\xF5es de pasta que s\xE3o necess\xE1rias para que o aplicativo funcione. Se a verifica\xE7\xE3o da permiss\xE3o falhar, atualize as permiss\xF5es da pasta."},mail:{host:"Host do email",port:"Porta do email",driver:"Driver do email",secret:"Segredo",mailgun_secret:"Segredo do Mailgun",mailgun_domain:"Dom\xEDnio",mailgun_endpoint:"Endpoint do Mailgun",ses_secret:"Segredo do SES",ses_key:"Chave SES",password:"Senha do email",username:"Nome do Usu\xE1rio do email",mail_config:"Configura\xE7\xE3o de email",from_name:"Nome do email",from_mail:"Endere\xE7o de email",encryption:"Criptografia de email",mail_config_desc:"Abaixo est\xE1 o formul\xE1rio para configurar o driver de email que ser\xE1 usado para enviar emails do aplicativo. Voc\xEA tamb\xE9m pode configurar provedores de terceiros como Sendgrid, SES etc."},req:{system_req:"Requisitos de Sistema",php_req_version:"PHP (vers\xE3o {version} obrigat\xF3ria)",check_req:"Verificar Requisitos",system_req_desc:"O Crater tem alguns requisitos de servidor. Verifique se o seu servidor possui a vers\xE3o do PHP necess\xE1ria e todas as extens\xF5es mencionadas abaixo."},errors:{migrate_failed:"Falha na migra\xE7\xE3o",database_variables_save_error:"N\xE3o \xE9 poss\xEDvel gravar a configura\xE7\xE3o no arquivo .env. Por favor, verifique suas permiss\xF5es de arquivo",mail_variables_save_error:"A configura\xE7\xE3o do email falhou.",connection_failed:"Falha na conex\xE3o com o banco de dados",database_should_be_empty:"O banco de dados deve estar vazio"},success:{mail_variables_save_successfully:"Email configurado com sucesso",database_variables_save_successfully:"Banco de dados configurado com sucesso."}},Z_={invalid_phone:"N\xFAmero de telefone inv\xE1lido",invalid_url:"url inv\xE1lidas (ex: http://www.craterapp.com)",required:"Campo obrigat\xF3rio",email_incorrect:"E-mail incorreto",email_already_taken:"O email j\xE1 foi recebido.",email_does_not_exist:"O usu\xE1rio com determinado email n\xE3o existe",send_reset_link:"Enviar link de redefini\xE7\xE3o",not_yet:"Ainda n\xE3o? Envie novamente",password_min_length:"A senha deve conter {count} caracteres",name_min_length:"O nome deve ter pelo menos {count} letras.",enter_valid_tax_rate:"Insira uma taxa de imposto v\xE1lida",numbers_only:"Apenas N\xFAmeros.",characters_only:"Apenas Caracteres.",password_incorrect:"As senhas devem ser id\xEAnticas",password_length:"A senha deve ter {count} caracteres.",qty_must_greater_than_zero:"A quantidade deve ser maior que zero.",price_greater_than_zero:"O pre\xE7o deve ser maior que zero.",payment_greater_than_zero:"O pagamento deve ser maior que zero.",payment_greater_than_due_amount:"O pagamento inserido \xE9 mais do que o valor devido desta fatura.",quantity_maxlength:"A quantidade n\xE3o deve exceder 20 d\xEDgitos.",price_maxlength:"O pre\xE7o n\xE3o deve ser superior a 20 d\xEDgitos.",price_minvalue:"O pre\xE7o deve ser maior que 0.",amount_maxlength:"Montante n\xE3o deve ser superior a 20 d\xEDgitos.",amount_minvalue:"Montante deve ser maior que zero",description_maxlength:"A descri\xE7\xE3o n\xE3o deve ter mais que 255 caracteres.",maximum_options_error:"M\xE1ximo de {max} op\xE7\xF5es selecionadas. Primeiro remova uma op\xE7\xE3o selecionada para selecionar outra.",notes_maxlength:"As anota\xE7\xF5es n\xE3o devem ter mais que 255 caracteres.",address_maxlength:"O endere\xE7o n\xE3o deve ter mais que 255 caracteres.",ref_number_maxlength:"O n\xFAmero de refer\xEAncia n\xE3o deve ter mais que 255 caracteres.",prefix_maxlength:"O prefixo n\xE3o deve ter mais que 5 caracteres."};var W_={navigation:N_,general:T_,dashboard:I_,tax_types:$_,customers:R_,items:F_,estimates:M_,invoices:V_,payments:B_,expenses:O_,login:L_,reports:U_,settings:K_,wizard:q_,validation:Z_};const H_={dashboard:"Dashboard",customers:"Clienti",items:"Commesse",invoices:"Fatture",expenses:"Spese",estimates:"Preventivi",payments:"Pagamenti",reports:"Reports",settings:"Configurazione",logout:"Logout",users:"Users"},G_={add_company:"Add Company",view_pdf:"Vedi PDF",copy_pdf_url:"Copy PDF Url",download_pdf:"Scarica PDF",save:"Salva",create:"Create",cancel:"Elimina",update:"Aggiorna",deselect:"Deseleziona",download:"Download",from_date:"Dalla Data",to_date:"Alla Data",from:"Da",to:"A",sort_by:"Ordina per",ascending:"Crescente",descending:"Decrescente",subject:"Oggetto",body:"Corpo",message:"Messaggio",send:"Send",go_back:"Torna indietro",back_to_login:"Torna al Login?",home:"Home",filter:"Filtro",delete:"Elimina",edit:"Modifica",view:"Visualizza",add_new_item:"Aggiungi nuova Commessa",clear_all:"Pulisci tutto",showing:"Showing",of:"di",actions:"Azioni",subtotal:"SUBTOTALE",discount:"SCONTO",fixed:"Fissato",percentage:"Percentuale",tax:"TASSA",total_amount:"AMMONTARE TOTALE",bill_to:"Fattura a",ship_to:"Invia a",due:"Dovuto",draft:"Bozza",sent:"Inviata",all:"Tutte",select_all:"Seleziona tutto",choose_file:"Clicca per selezionare un file",choose_template:"Scegli un modello",choose:"Scegli",remove:"Rimuovi",powered_by:"Prodotto da",bytefury:"Bytefury",select_a_status:"Seleziona uno Stato",select_a_tax:"Seleziona una Tassa",search:"Cerca",are_you_sure:"Sei sicuro/a?",list_is_empty:"La lista \xE8 vuota.",no_tax_found:"Nessuna Tassa trovata!",four_zero_four:"404",you_got_lost:"Hoops! Ti sei perso",go_home:"Vai alla Home",test_mail_conf:"Configurazione della mail di test",send_mail_successfully:"Mail inviata con successo",setting_updated:"Configurazioni aggiornate con successo",select_state:"Seleziona lo Stato",select_country:"Seleziona Paese",select_city:"Seleziona Citt\xE0",street_1:"Indirizzo 1",street_2:"Indirizzo 2",action_failed:"Errore",retry:"Retry",choose_note:"Choose Note",no_note_found:"No Note Found",insert_note:"Insert Note"},Y_={select_year:"Seleziona anno",cards:{due_amount:"Somma dovuta",customers:"Clienti",invoices:"Fatture",estimates:"Preventivi"},chart_info:{total_sales:"Vendite",total_receipts:"Ricevute",total_expense:"Uscite",net_income:"Guadagno netto",year:"Seleziona anno"},monthly_chart:{title:"Entrate & Uscite"},recent_invoices_card:{title:"Fatture insolute",due_on:"Data di scadenza",customer:"Cliente",amount_due:"Ammontare dovuto",actions:"Azioni",view_all:"Vedi tutto"},recent_estimate_card:{title:"Preventivi recenti",date:"Data",customer:"Cliente",amount_due:"Ammontare dovuto",actions:"Azioni",view_all:"Vedi tutto"}},J_={name:"Nome",description:"Descrizione",percent:"Percento",compound_tax:"Tassa composta"},X_={search:"Search...",customers:"Clienti",users:"Users",no_results_found:"No Results Found"},Q_={title:"Clienti",add_customer:"Aggiungi cliente",contacts_list:"Lista clienti",name:"Nome",mail:"Mail | Mails",statement:"Statement",display_name:"Mostra nome",primary_contact_name:"Riferimento",contact_name:"Nome Contatto",amount_due:"Ammontare dovuto",email:"Email",address:"Indirizzo",phone:"Telefono",website:"Sito web",overview:"Overview",enable_portal:"Enable Portal",country:"Paese",state:"Stato",city:"Citt\xE0",zip_code:"Codice Postale",added_on:"Aggiunto il",action:"Azione",password:"Password",street_number:"Numero Civico",primary_currency:"Val\xF9ta Principale",description:"Descrizione",add_new_customer:"Aggiungi nuovo Cliente",save_customer:"Salva Cliente",update_customer:"Aggiorna Cliente",customer:"Cliente | Clienti",new_customer:"Nuovo cliente",edit_customer:"Modifica Cliente",basic_info:"Informazioni",billing_address:"Indirizzo di Fatturazione",shipping_address:"Indirizzo di Spedizione",copy_billing_address:"Copia da Fatturazione",no_customers:"Ancora nessun Cliente!",no_customers_found:"Nessun cliente trovato!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Qui ci sar\xE0 la lista dei tuoi clienti",primary_display_name:"Mostra il Nome Principale",select_currency:"Selezione Val\xF9ta",select_a_customer:"Seleziona Cliente",type_or_click:"Scrivi o clicca per selezionare",new_transaction:"Nuova transazione",no_matching_customers:"Non ci sono clienti corrispondenti!",phone_number:"Numero di telefono",create_date:"Crea data",confirm_delete:"Non sarai in grado di recuperare questo cliente e tutte le relative fatture, stime e pagamenti. | Non sarai in grado di recuperare questi clienti e tutte le relative fatture, stime e pagamenti.",created_message:"Cliente creato con successo",updated_message:"Cliente aggiornato con successo",deleted_message:"Cliente cancellato con successo | Clienti cancellati con successo"},eu={title:"Commesse",items_list:"Lista Commesse",name:"Nome",unit:"Unit\xE0/Tipo",description:"Descrizione",added_on:"Aggiunto il",price:"Prezzo",date_of_creation:"Data di creazione",not_selected:"No item selected",action:"Azione",add_item:"Aggiungi Commessa",save_item:"Salva",update_item:"Aggiorna",item:"Commessa | Commesse",add_new_item:"Aggiungi nuova Commessa",new_item:"Nuova Commessa",edit_item:"Modifica Commessa",no_items:"Ancora nessuna commessa!",list_of_items:"Qui ci sar\xE0 la lista delle commesse.",select_a_unit:"Seleziona",taxes:"Imposte",item_attached_message:"Non puoi eliminare una Commessa che \xE8 gi\xE0 attiva",confirm_delete:"Non potrai ripristinare la Commessa | Non potrai ripristinare le Commesse",created_message:"Commessa creata con successo",updated_message:"Commessa aggiornata con successo",deleted_message:"Commessa eliminata con successo | Commesse eliminate con successo"},tu={title:"Preventivi",estimate:"Preventivo | Preventivi",estimates_list:"Lista Preventivi",days:"{days} Giorni",months:"{months} Mese",years:"{years} Anno",all:"Tutti",paid:"Pagato",unpaid:"Non pagato",customer:"CLIENTE",ref_no:"RIF N.",number:"NUMERO",amount_due:"AMMONTARE DOVUTO",partially_paid:"Pagamento Parziale",total:"Totale",discount:"Sconto",sub_total:"Sub Totale",estimate_number:"Preventivo Numero",ref_number:"Numero di Rif.",contact:"Contatto",add_item:"Aggiungi un item",date:"Data",due_date:"Data di pagamento",expiry_date:"Data di scadenza",status:"Stato",add_tax:"Aggiungi Imposta",amount:"Ammontare",action:"Azione",notes:"Note",tax:"Imposta",estimate_template:"Modello",convert_to_invoice:"Converti in Fattura",mark_as_sent:"Segna come Inviata",send_estimate:"Invia preventivo",resend_estimate:"Resend Estimate",record_payment:"Registra Pagamento",add_estimate:"Aggiungi Preventivo",save_estimate:"Salva Preventivo",confirm_conversion:"Questo preventivo verr\xE0 usato per generare una nuova fattura.",conversion_message:"Fattura creata",confirm_send_estimate:"Questo preventivo verr\xE0 inviato al cliente via mail",confirm_mark_as_sent:"Questo preventivo verr\xE0 contrassegnato come inviato",confirm_mark_as_accepted:"Questo preventivo verr\xE0 contrassegnato come Accettato",confirm_mark_as_rejected:"Questo preventivo verr\xE0 contrassegnato come Rifiutato",no_matching_estimates:"Nessun preventivo trovato!",mark_as_sent_successfully:"Preventivo contrassegnato come inviato con successo",send_estimate_successfully:"Preventivo inviato con successo",errors:{required:"Campo obbligatorio"},accepted:"Accettato",rejected:"Rejected",sent:"Inviato",draft:"Bozza",declined:"Rifiutato",new_estimate:"Nuovo Preventivo",add_new_estimate:"Crea Nuovo Preventivo",update_Estimate:"Aggiorna preventivo",edit_estimate:"Modifica Preventivo",items:"Commesse",Estimate:"Preventivo | Preventivi",add_new_tax:"Aggiungi una nuova tassa/imposta",no_estimates:"Ancora nessun preventivo!",list_of_estimates:"Questa sezione conterr\xE0 la lista dei preventivi.",mark_as_rejected:"Segna come Rifiutato",mark_as_accepted:"Segna come Accettato",marked_as_accepted_message:"Preventivo contrassegnato come accettato",marked_as_rejected_message:"Preventivo contrassegnato come rifiutato",confirm_delete:"Non potrai pi\xF9 recuperare questo preventivo | Non potrai pi\xF9 recuperare questi preventivi",created_message:"Preventivo creato con successo",updated_message:"Preventivo modificato con successo",deleted_message:"Preventivo eliminato con successo | Preventivi eliminati con successo",something_went_wrong:"Si \xE8 verificato un errore",item:{title:"Titolo Commessa",description:"Descrizione",quantity:"Quantit\xE0",price:"Prezzo",discount:"Sconto",total:"Totale",total_discount:"Sconto Totale",sub_total:"Sub Totale",tax:"Tasse",amount:"Ammontare",select_an_item:"Scrivi o clicca per selezionare un item",type_item_description:"Scrivi una Descrizione (opzionale)"}},au={title:"Fatture",invoices_list:"Lista Fatture",days:"{days} Giorni",months:"{months} Mese",years:"{years} Anno",all:"Tutti",paid:"Pagato",unpaid:"Insoluto",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"CLIENTE",paid_status:"STATO DI PAGAMENTO",ref_no:"RIF N.",number:"NUMERO",amount_due:"AMMONTARE DOVUTO",partially_paid:"Parzialmente Pagata",total:"Totale",discount:"Sconto",sub_total:"Sub Totale",invoice:"Fattura | Fatture",invoice_number:"Numero Fattura",ref_number:"Rif Numero",contact:"Contatto",add_item:"Aggiungi Commessa/Item",date:"Data",due_date:"Data di pagamento",status:"Stato",add_tax:"Aggiungi Imposta",amount:"Ammontare",action:"Azione",notes:"Note",view:"Vedi",send_invoice:"Invia Fattura",resend_invoice:"Resend Invoice",invoice_template:"Modello Fattura",template:"Modello",mark_as_sent:"Segna come inviata",confirm_send_invoice:"Questa fattura sar\xE0 inviata via Mail al Cliente",invoice_mark_as_sent:"Questa fattura sar\xE0 contrassegnata come inviata",confirm_send:"Questa fattura sar\xE0 inviata via Mail al Cliente",invoice_date:"Data fattura",record_payment:"Registra Pagamento",add_new_invoice:"Aggiungi nuova Fattura",update_expense:"Aggiorna Costo",edit_invoice:"Modifica Fattura",new_invoice:"Nuova Fattura",save_invoice:"Salva fattura",update_invoice:"Aggiorna Fattura",add_new_tax:"Aggiungi tassa/imposta",no_invoices:"Ancora nessuna fattura!",list_of_invoices:"Questa sezione conterr\xE0 la lista delle Fatture.",select_invoice:"Seleziona Fattura",no_matching_invoices:"Nessuna fattura trovata!",mark_as_sent_successfully:"Fattura contassegnata come inviata con successo",invoice_sent_successfully:"Fattura inviata con successo",cloned_successfully:"Fattura copiata con successo",clone_invoice:"Clona Fattura",confirm_clone:"Questa fattura verr\xE0 clonata in una nuova fattura",item:{title:"Titolo Commessa",description:"Descrizione",quantity:"Quantit\xE0",price:"Prezzo",discount:"Sconto",total:"Totale",total_discount:"Sconto Totale",sub_total:"Sub Totale",tax:"Tassa",amount:"Ammontare",select_an_item:"Scrivi o clicca per selezionare un item",type_item_description:"Scrivi una descrizione (opzionale)"},confirm_delete:"Non potrai recuperare la Fattura cancellata | Non potrai recuperare le Fatture cancellate",created_message:"Fattura creata con successo",updated_message:"Fattura aggiornata con successo",deleted_message:"Fattura cancellata con successo | Fatture cancellate con successo",marked_as_sent_message:"Fattura contrassegnata come inviata con successo",something_went_wrong:"Si \xE8 verificato un errore",invalid_due_amount_message:"L'ammontare totale della fattura non pu\xF2 essere inferiore all'ammontare totale pagato per questa fattura. Modifica la fattura o cancella i pagamenti associati per continuare."},su={title:"Pagamenti",payments_list:"Lista Pagamenti",record_payment:"Registra Pagamento",customer:"Cliente",date:"Data",amount:"Ammontare",action:"Azione",payment_number:"Numero di pagamento",payment_mode:"Modalit\xE0 di Pagamento",invoice:"Fattura",note:"Nota",add_payment:"Aggiungi Pagamento",new_payment:"Nuovo Pagamento",edit_payment:"Modifica Pagamento",view_payment:"Vedi Pagamento",add_new_payment:"Aggiungi nuovo pagamento",send_payment_receipt:"Invia ricevuta di pagamento",send_payment:"Inviare il pagamento",save_payment:"Salva pagamento",update_payment:"Aggiorna pagamento",payment:"Pagamento | Pagamenti",no_payments:"Ancora nessun pagamento!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Non ci sono pagamenti!",list_of_payments:"Questa sezione conterr\xE0 la lista dei pagamenti.",select_payment_mode:"Seleziona modalit\xE0 di pagamento",confirm_mark_as_sent:"Questo preventivo verr\xE0 contrassegnato come inviato",confirm_send_payment:"Questo pagamento verr\xE0 inviato via email al cliente",send_payment_successfully:"Pagamento inviato con successo",something_went_wrong:"si \xE8 verificato un errore",confirm_delete:"Non potrai recuperare questo pagamento | Non potrai recuperare questi pagamenti",created_message:"Pagamento creato con successo",updated_message:"Pagamento aggiornato con successo",deleted_message:"Pagamento cancellato con successo | Pagamenti cancellati con successo",invalid_amount_message:"L'ammontare del pagamento non \xE8 valido"},nu={title:"Spese",expenses_list:"Lista Costi",select_a_customer:"Seleziona Cliente",expense_title:"Titolo",customer:"Cliente",contact:"Contatto",category:"Categoria",from_date:"Dalla Data",to_date:"Alla Data",expense_date:"Data",description:"Descrizione",receipt:"Ricevuta",amount:"Ammontare",action:"Azione",not_selected:"Not selected",note:"Nota",category_id:"Id categoria",date:"Data Spesa",add_expense:"Aggiungi Spesa",add_new_expense:"Aggiungi nuova Spesa",save_expense:"Salva la Spesa",update_expense:"Aggiorna Spesa",download_receipt:"Scarica la Ricevuta",edit_expense:"Modifica Spesa",new_expense:"Nuova Spesa",expense:"Spesa | Spese",no_expenses:"Ancora nessuna spesa!",list_of_expenses:"Questa sezione conterr\xE0 la lista delle Spese.",confirm_delete:"Non potrai recuperare questa spesa | Non potrai recuperare queste spese",created_message:"Spesa creata con successo",updated_message:"Spesa modificata con successo",deleted_message:"Spesa cancellata con successo | Spese cancellate con successo",categories:{categories_list:"Lista categorie",title:"Titolo",name:"Nome",description:"Descrizione",amount:"Ammontare",actions:"Azioni",add_category:"Aggiungi Categoria",new_category:"Nuova Categoria",category:"Categoria | Categorie",select_a_category:"Seleziona Categoria"}},iu={email:"Email",password:"Password",forgot_password:"Password dimenticata?",or_signIn_with:"o fai login con",login:"Login",register:"Registrati",reset_password:"Resetta Password",password_reset_successfully:"Password Resettata con successo",enter_email:"Inserisci email",enter_password:"Inserisci Password",retype_password:"Ridigita Password"},ou={title:"Users",users_list:"Users List",name:"Nome",description:"Descrizione",added_on:"Aggiunto il",date_of_creation:"Data di creazione",action:"Azione",add_user:"Add User",save_user:"Save User",update_user:"Update User",user:"User | Users",add_new_user:"Add New User",new_user:"New User",edit_user:"Edit User",no_users:"No users yet!",list_of_users:"This section will contain the list of users.",email:"Email",phone:"Telefono",password:"Password",user_attached_message:"Non puoi eliminare una Commessa che \xE8 gi\xE0 attiva",confirm_delete:"You will not be able to recover this User | You will not be able to recover these Users",created_message:"User created successfully",updated_message:"User updated successfully",deleted_message:"User deleted successfully | User deleted successfully"},ru={title:"Report",from_date:"Da",to_date:"A",status:"Stato",paid:"Pagato",unpaid:"Non pagato",download_pdf:"Scarica PDF",view_pdf:"Vedi PDF",update_report:"Aggiorna Report",report:"Report | Reports",profit_loss:{profit_loss:"Guadagni & Perdite",to_date:"A",from_date:"Da",date_range:"Seleziona intervallo date"},sales:{sales:"Vendite",date_range:"Seleziona intervallo date",to_date:"A",from_date:"Da",report_type:"Tipo di report"},taxes:{taxes:"Tasse",to_date:"Alla data",from_date:"Dalla data",date_range:"Seleziona intervallo date"},errors:{required:"Campo obbligatorio"},invoices:{invoice:"Fattura",invoice_date:"Data fattura",due_date:"Data di pagamento",amount:"Ammontare",contact_name:"Nome contatto",status:"Stato"},estimates:{estimate:"Preventivo",estimate_date:"Data preventivo",due_date:"Data di pagamento",estimate_number:"Numero di preventivo",ref_number:"Numero di Rif.",amount:"Ammontare",contact_name:"Nome contatto",status:"Stato"},expenses:{expenses:"Spese",category:"Categoria",date:"Data",amount:"Ammontare",to_date:"Alla data",from_date:"Dalla data",date_range:"Seleziona intervallo date"}},du={menu_title:{account_settings:"Impostazioni Account",company_information:"Informazioni Azienda",customization:"Personalizzazione",preferences:"Opzioni",notifications:"Notifiche",tax_types:"Tupi di Tasse",expense_category:"Categorie di spesa",update_app:"Aggiorna App",backup:"Backup",file_disk:"File Disk",custom_fields:"Campi personalizzati",payment_modes:"Payment Modes",notes:"Note"},title:"Impostazioni",setting:"Opzione | Impostazioni",general:"Generale",language:"Lingua",primary_currency:"Valuta Principale",timezone:"Time Zone",date_format:"Formato data",currencies:{title:"Valute",currency:"Val\xF9ta | Valute",currencies_list:"Lista valute",select_currency:"Seleziona Val\xF9ta",name:"Nome",code:"Codice",symbol:"Simbolo",precision:"Precisione",thousand_separator:"Separatore migliaia",decimal_separator:"Separatore decimali",position:"Posizione",position_of_symbol:"Posizione del Simbolo",right:"Destra",left:"Sinistra",action:"Azione",add_currency:"Aggiungi Val\xF9ta"},mail:{host:"Mail Host",port:"Mail - Porta",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Configurazione Mail",from_name:"Nome Mittente Mail",from_mail:"Indirizzo Mittente Mail",encryption:"Tipo di cifratura Mail",mail_config_desc:"Form per Configurazione Driver Mail per invio mail dall'App. Puoi anche configurare providers di terze parti come Sendgrid, SES, etc.."},pdf:{title:"Configurazione PDF",footer_text:"Testo Footer",pdf_layout:"Layout PDF"},company_info:{company_info:"Info azienda",company_name:"Nome azienda",company_logo:"Logo azienda",section_description:"Informazioni sulla tua azienda che saranno mostrate in fattura, preventivi ed altri documenti creati dell'applicazione.",phone:"Telefono",country:"Paese",state:"Stato",city:"Citt\xE0",address:"Indirizzo",zip:"CAP",save:"Salva",updated_message:"Informazioni Azienda aggiornate con successo."},custom_fields:{title:"Campi personalizzati",section_description:"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.",add_custom_field:"Aggiungi campo personalizzato",edit_custom_field:"Modifica campo personalizzato",field_name:"Nome campo",label:"Etichetta",type:"genere",name:"Nome",required:"Necessaria",placeholder:"segnaposto",help_text:"Testo guida",default_value:"Valore predefinito",prefix:"Prefisso",starting_number:"Numero iniziale",model:"Modella",help_text_description:"Inserisci del testo per aiutare gli utenti a comprendere lo scopo di questo campo personalizzato.",suffix:"Suffisso",yes:"s\xEC",no:"No",order:"Ordine",custom_field_confirm_delete:"Non sarai in grado di recuperare questo campo personalizzato",already_in_use:"Il campo personalizzato \xE8 gi\xE0 in uso",deleted_message:"Campo personalizzato eliminato correttamente",options:"opzioni",add_option:"Aggiungi opzioni",add_another_option:"Aggiungi un'altra opzione",sort_in_alphabetical_order:"Ordina in ordine alfabetico",add_options_in_bulk:"Aggiungi opzioni in blocco",use_predefined_options:"Usa opzioni predefinite",select_custom_date:"Seleziona la data personalizzata",select_relative_date:"Seleziona la data relativa",ticked_by_default:"Contrassegnato per impostazione predefinita",updated_message:"Campo personalizzato aggiornato correttamente",added_message:"Campo personalizzato aggiunto correttamente"},customization:{customization:"personalizzazione",save:"Salva",addresses:{title:"Indirizzi",section_description:"Puoi settare l'indirizzo di fatturazione del Cliente e/o il formato dell'indirizzo di spedizione (Mostrato solo sul PDF). ",customer_billing_address:"Indirizzo Fatturazione Cliente",customer_shipping_address:"Indirizzo spedizione Cliente",company_address:"Indirizzo Azienda",insert_fields:"Inserisci Campi",contact:"Contatto",address:"Indirizzo",display_name:"Mostra nome",primary_contact_name:"Nome contatto primario",email:"Email",website:"Sito web",name:"Nome",country:"Paese",state:"Stato",city:"Citt\xE0",company_name:"Nome Azienda",address_street_1:"Indirizzo 1",address_street_2:"Indirizzo 2",phone:"Telefono",zip_code:"CAP/ZIP Code",address_setting_updated:"Indirizzo aggiornato con Successo"},updated_message:"Info azienda aggiornate con successo",invoices:{title:"Fatture",notes:"Note",invoice_prefix:"Prefisso Fattura",default_invoice_email_body:"Default Invoice Email Body",invoice_settings:"Impostazioni fattura",autogenerate_invoice_number:"Auto genera numero di fattura",autogenerate_invoice_number_desc:"Disabilita, se non vuoi auto-generare i numeri delle fatture ogni volta che crei una nuova fattura.",enter_invoice_prefix:"Inserisci prefisso fattura",terms_and_conditions:"Termini e Condizioni",company_address_format:"Company Address Format",shipping_address_format:"Shipping Address Format",billing_address_format:"Billing Address Format",invoice_settings_updated:"Impostazioni fatture aggiornate con successo"},estimates:{title:"Preventivi",estimate_prefix:"Prefisso Preventivi",default_estimate_email_body:"Default Estimate Email Body",estimate_settings:"Impostazioni Preventivi",autogenerate_estimate_number:"Auto-genera Numero di preventivo",estimate_setting_description:"Disabilita, se non vuoi autogenerare il numero di preventivo ogni volta che ne viene creato uno nuovo.",enter_estimate_prefix:"Inserisci prefisso preventivo",estimate_setting_updated:"Impostazioni preventivi aggiornate con successo",company_address_format:"Company Address Format",billing_address_format:"Billing Address Format",shipping_address_format:"Shipping Address Format"},payments:{title:"Pagamenti",description:"Modes of transaction for payments",payment_prefix:"Prefisso Pagamento",default_payment_email_body:"Default Payment Email Body",payment_settings:"Impostazioni Pagamento",autogenerate_payment_number:"Auto genera il numero di Pagamento",payment_setting_description:"Disabilita, se non vuoi autogenerare il numero di pagamento ogni volta che ne viene creato uno nuovo.",enter_payment_prefix:"Inserisci prefisso di pagamento",payment_setting_updated:"Impostazioni di pagamento aggiornate con successo",payment_modes:"Payment Modes",add_payment_mode:"Aggiungi modalit\xE0 di pagamento",edit_payment_mode:"Modifica modalit\xE0 di pagamento",mode_name:"Nome modalit\xE0",payment_mode_added:"Modalit\xE0 di pagamento aggiunta",payment_mode_updated:"Modalit\xE0 di pagamento aggiornata",payment_mode_confirm_delete:"Non potrai ripristinare la modalit\xE0 di pagamento",already_in_use:"Modalit\xE0 di pagamento gi\xE0 in uso",deleted_message:"Payment Mode deleted successfully",company_address_format:"Company Address Format",from_customer_address_format:"From Customer Address Format"},items:{title:"Commesse",units:"unit\xE0",add_item_unit:"Aggiungi Unit\xE0 Item",edit_item_unit:"Modifica unit\xE0 articolo",unit_name:"Nome",item_unit_added:"Unit\xE0 aggiunta",item_unit_updated:"Unit\xE0 aggiornata",item_unit_confirm_delete:"Non potrai ripristinare questa unit\xE0 Item",already_in_use:"Unit\xE0 Item gi\xE0 in uso",deleted_message:"Unit\xE0 item eliminata con successo"},notes:{title:"Note",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"Note",type:"genere",add_note:"Add Note",add_new_note:"Add New Note",name:"Nome",edit_note:"Edit Note",note_added:"Note added successfully",note_updated:"Note Updated successfully",note_confirm_delete:"You will not be able to recover this Note",already_in_use:"Note is already in use",deleted_message:"Note deleted successfully"}},account_settings:{profile_picture:"Immagine profilo",name:"Nome",email:"Email",password:"Password",confirm_password:"Conferma Password",account_settings:"Impostazioni Account",save:"Salva",section_description:"Puoi aggiornare nome email e password utilizzando il form qui sotto.",updated_message:"Impostazioni account aggiornate con successo"},user_profile:{name:"Nome",email:"Email",password:"Password",confirm_password:"Conferma Password"},notification:{title:"Notifica",email:"Invia notifiche a",description:"Quali notifiche email vorresti ricevere quando qualcosa cambia?",invoice_viewed:"Fattura visualizzata",invoice_viewed_desc:"Quando il cliente visualizza la fattura inviata via dashboard applicazione.",estimate_viewed:"Preventivo visualizzato",estimate_viewed_desc:"Quando il cliente visualizza il preventivo inviato dall'applicazione.",save:"Salva",email_save_message:"Email salvata con successo",please_enter_email:"Inserisci Email"},tax_types:{title:"Tipi di Imposta",add_tax:"Aggiungi Imposta",edit_tax:"Modifica imposta",description:"Puoi aggiongere e rimuovere imposte a piacimento. Vengono supportate Tasse differenti per prodotti/servizi specifici esattamento come per le fatture.",add_new_tax:"Aggiungi nuova imposta",tax_settings:"Impostazioni Imposte",tax_per_item:"Tassa per prodotto/servizio",tax_name:"Nome imposta",compound_tax:"Imposta composta",percent:"Percento",action:"Azione",tax_setting_description:"Abilita se vuoi aggiungere imposte specifiche per prodotti o servizi. Di default le imposte sono aggiunte direttamente alla fattura.",created_message:"Tipo di imposta creato con successo",updated_message:"Tipo di imposta aggiornato con successo",deleted_message:"Tipo di imposta eliminato con successo",confirm_delete:"Non potrai ripristinare questo tipo di imposta",already_in_use:"Imposta gi\xE0 in uso"},expense_category:{title:"Categorie di spesa",action:"Azione",description:"Le categorie sono necessarie per aggiungere delle voci di spesa. Puoi aggiungere o eliminare queste categorie in base alle tue preferenze.",add_new_category:"Aggiungi nuova categoria",add_category:"Aggiungi categoria",edit_category:"Modifica categoria",category_name:"Nome Categoria",category_description:"Descrizione",created_message:"Categoria di spesa creata con successo",deleted_message:"Categoria di spesa eliminata con successo",updated_message:"Categoria di spesa aggiornata con successo",confirm_delete:"Non potrai ripristinare questa categoria di spesa",already_in_use:"Categoria gi\xE0 in uso"},preferences:{currency:"Val\xF9ta",default_language:"Default Language",time_zone:"Time Zone",fiscal_year:"Anno finanziario",date_format:"Formato Data",discount_setting:"Impostazione Sconto",discount_per_item:"Sconto Per Item ",discount_setting_description:"Abilita se vuoi aggiungere uno sconto ad uno specifica fattura. Di default, lo sconto \xE8 aggiunto direttamente in fattura.",save:"Salva",preference:"Preferenza | Preferenze",general_settings:"Impostazioni di default del sistema.",updated_message:"Preferenze aggiornate con successo",select_language:"seleziona lingua",select_time_zone:"Seleziona Time Zone",select_date_format:"Select Date Format",select_financial_year:"Seleziona anno finanziario"},update_app:{title:"Aggiorna App",description:"Puoi facilmente aggiornare l'app. Aggiorna cliccando sul bottone qui sotto",check_update:"Controllo aggiornamenti",avail_update:"Aggiornamento disponibile",next_version:"Versione successiva",requirements:"Requirements",update:"Aggiorna ora",update_progress:"Aggiornamento in corso...",progress_text:"Sar\xE0 necessario qualche minuto. Per favore non aggiornare la pagina e non chiudere la finestra prima che l'aggiornamento sia completato",update_success:"L'App \xE8 aggiornata! Attendi che la pagina venga ricaricata automaticamente.",latest_message:"Nessun aggiornamneto disponibile! Sei gi\xE0 alla versione pi\xF9 recente.",current_version:"Versione corrente",download_zip_file:"Scarica il file ZIP",unzipping_package:"Pacchetto di decompressione",copying_files:"Copia dei file",running_migrations:"Esecuzione delle migrazioni",finishing_update:"Aggiornamento di finitura",update_failed:"Aggiornamento non riuscito",update_failed_text:"Scusate! L'aggiornamento non \xE8 riuscito il: passaggio {step}"},backup:{title:"Backup | Backups",description:"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database",new_backup:"Add New Backup",create_backup:"Create Backup",select_backup_type:"Select Backup Type",backup_confirm_delete:"You will not be able to recover this Backup",path:"path",new_disk:"New Disk",created_at:"created at",size:"size",dropbox:"dropbox",local:"local",healthy:"healthy",amount_of_backups:"amount of backups",newest_backups:"newest backups",used_storage:"used storage",select_disk:"Select Disk",action:"Azione",deleted_message:"Backup deleted successfully",created_message:"Backup created successfully",invalid_disk_credentials:"Invalid credential of selected disk"},disk:{title:"File Disk | File Disks",description:"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.",created_at:"created at",dropbox:"dropbox",name:"Nome",driver:"Driver",disk_type:"genere",disk_name:"Disk Name",new_disk:"Add New Disk",filesystem_driver:"Filesystem Driver",local_driver:"local Driver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Default Driver",is_default:"IS DEFAULT",set_default_disk:"Set Default Disk",success_set_default_disk:"Disk set as default successfully",save_pdf_to_disk:"Save PDFs to Disk",disk_setting_description:" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.",select_disk:"Select Disk",disk_settings:"Disk Settings",confirm_delete:"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater",action:"Azione",edit_file_disk:"Edit File Disk",success_create:"Disk added successfully",success_update:"Disk updated successfully",error:"Disk addition failed",deleted_message:"File Disk deleted successfully",disk_variables_save_successfully:"Disk Configured Successfully",disk_variables_save_error:"Disk configuration failed.",invalid_disk_credentials:"Invalid credential of selected disk"}},lu={account_info:"Informazioni Account",account_info_desc:"I dettagli qui sotto verranno usati per creare l'account principale dell'Amministratore. Puoi modificarli in qualsiasi momento dopo esserti loggato come Amministratore.",name:"Nome",email:"Email",password:"Password",confirm_password:"Conferma Password",save_cont:"Salva & Continua",company_info:"Informazioni Azienda",company_info_desc:"Questa informazione verr\xE0 mostrata nelle fatture. Puoi modificare queste informazione in un momento successivo dalla pagina delle impostazioni.",company_name:"Nome Azienda",company_logo:"Logo Azienda",logo_preview:"Anteprima Logo",preferences:"Impostazioni",preferences_desc:"Impostazioni di default del sistema.",country:"Paese",state:"Stato",city:"Citt\xE0",address:"Indirizzo",street:"Indirizzo1 | Indirizzo2",phone:"Telefono",zip_code:"CAP/Zip Code",go_back:"Torna indietro",currency:"Val\xF9ta",language:"Lingua",time_zone:"Time Zone",fiscal_year:"Anno Finanziario",date_format:"Formato Date",from_address:"Indirizzo - Da",username:"Username",next:"Successivo",continue:"Continua",skip:"Salta",database:{database:"URL del sito & database",connection:"Connessione Database",host:"Database Host",port:"Database - Porta",password:"Database Password",app_url:"App URL",app_domain:"App Domain",username:"Database Username",db_name:"Database Nome",db_path:"Database Path",desc:"Crea un database sul tuo server e setta le credenziali usando il form qui sotto."},permissions:{permissions:"Permessi",permission_confirm_title:"Sei sicuro di voler continuare?",permission_confirm_desc:"Controllo sui permessi Cartelle, fallito",permission_desc:"Qui sotto la lista dei permessi richiesti per far funzionare correttamente l'App. Se il controllo dei permessi fallisce, assicurati di aggiornare/modificare i permessi sulle cartelle."},mail:{host:"Mail Host",port:"Mail - Porta",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Configurazione Mail",from_name:"Nome mittente mail",from_mail:"Indirizzo mittente mail",encryption:"Tipo di cifratura Mail",mail_config_desc:"Form per configurazione del 'driver mail' per inviare emails dall'App. Puoi anche configurare servizi di terze parti come Sendgrid, SES, ecc.."},req:{system_req:"Requisiti di Sistema",php_req_version:"Php (versione {version} richiesta)",check_req:"Controllo Requisiti",system_req_desc:"Crater ha alcuni requisiti di sistema. Assicurati che il server ha la versione di php richiesta e tutte le estensioni necessarie."},errors:{migrate_failed:"Migrate Failed",database_variables_save_error:"Cannot write configuration to .env file. Please check its file permissions",mail_variables_save_error:"Email configuration failed.",connection_failed:"Database connection failed",database_should_be_empty:"Database should be empty"},success:{mail_variables_save_successfully:"Email configurata con successo",database_variables_save_successfully:"Database configurato con successo."}},cu={invalid_phone:"Numero di telefono invalido",invalid_url:"URL non valido (es: http://www.craterapp.com)",invalid_domain_url:"URL non valido (es: craterapp.com)",required:"Campo obbligatorio",email_incorrect:"Email non corretta.",email_already_taken:"Email gi\xE0 in uso.",email_does_not_exist:"L'utente con questa email non esiste",item_unit_already_taken:"Questo nome item \xE8 gi\xE0 utilizzato",payment_mode_already_taken:"Questa modalit\xE0 di pagamento \xE8 gi\xE0 stata inserita.",send_reset_link:"Invia Link di Reset",not_yet:"Non ancora? Invia di nuovo",password_min_length:"La password deve contenere {count} caratteri",name_min_length:"Il nome deve avere almeno {count} lettere.",enter_valid_tax_rate:"Inserisci un tasso di imposta valido",numbers_only:"Solo numeri.",characters_only:"Solo caratteri.",password_incorrect:"La Password deve essere identica",password_length:"La password deve essere lunga {count} caratteri.",qty_must_greater_than_zero:"La quantit\xE0 deve essere maggiore di zero.",price_greater_than_zero:"Il prezzo deve essere maggiore di zero.",payment_greater_than_zero:"Il pagamento deve essere maggiore di zero.",payment_greater_than_due_amount:"Il pagamento inserito \xE8 maggiore di quello indicato in fattura.",quantity_maxlength:"La Quantit\xE0 non pu\xF2 essere maggiore di 20 cifre.",price_maxlength:"Il prezzo non pu\xF2 contenere pi\xF9 di 20 cifre.",price_minvalue:"Il prezzo deve essere maggiore di 0.",amount_maxlength:"La somma non deve contenere pi\xF9 di 20 cifre.",amount_minvalue:"La somma deve essere maggiore di 0.",description_maxlength:"La Descrizione non deve superare i 255 caratteri.",subject_maxlength:"L'Oggetto non deve superare i 100 caratter.",message_maxlength:"Il messaggio non pu\xF2 superare i 255 caratteri.",maximum_options_error:"Massimo di {max} opzioni selezionate. Per selezionare un'altra opzione deseleziona prima una opzione.",notes_maxlength:"Le note non possono superare i 255 caratteri.",address_maxlength:"L'Indirizzo non pu\xF2 eccedere i 255 caratteri.",ref_number_maxlength:"Il Numero di Riferimento non pu\xF2 superare i 255 caratteri.",prefix_maxlength:"Il Prefisso non pu\xF2 superare i 5 caratteri.",something_went_wrong:"Si \xE8 verificato un errore"},_u="Preventivo",uu="Preventivo Numero",mu="Data preventivo",pu="Expiry date",gu="Fattura",fu="Numero Fattura",hu="Data fattura",vu="Due date",yu="Note",bu="Commesse",ku="Quantit\xE0",wu="Prezzo",xu="Sconto",zu="Ammontare",Su="Subtotal",ju="Totale",Pu="Payment",Du="PAYMENT RECEIPT",Cu="Payment Date",Au="Numero di pagamento",Eu="Modalit\xE0 di Pagamento",Nu="Amount Received",Tu="EXPENSES REPORT",Iu="TOTAL EXPENSE",$u="PROFIT & LOSS REPORT",Ru="Sales Customer Report",Fu="Sales Item Report",Mu="Tax Summary Report",Vu="INCOME",Bu="NET PROFIT",Ou="Sales Report: By Customer",Lu="TOTAL SALES",Uu="Sales Report: By Item",Ku="TAX REPORT",qu="TOTAL TAX",Zu="Tipi di Imposta",Wu="Uscite",Hu="Fattura a,",Gu="Invia a,",Yu="Received from:",Ju="imposta";var Xu={navigation:H_,general:G_,dashboard:Y_,tax_types:J_,global_search:X_,customers:Q_,items:eu,estimates:tu,invoices:au,payments:su,expenses:nu,login:iu,users:ou,reports:ru,settings:du,wizard:lu,validation:cu,pdf_estimate_label:_u,pdf_estimate_number:uu,pdf_estimate_date:mu,pdf_estimate_expire_date:pu,pdf_invoice_label:gu,pdf_invoice_number:fu,pdf_invoice_date:hu,pdf_invoice_due_date:vu,pdf_notes:yu,pdf_items_label:bu,pdf_quantity_label:ku,pdf_price_label:wu,pdf_discount_label:xu,pdf_amount_label:zu,pdf_subtotal:Su,pdf_total:ju,pdf_payment_label:Pu,pdf_payment_receipt_label:Du,pdf_payment_date:Cu,pdf_payment_number:Au,pdf_payment_mode:Eu,pdf_payment_amount_received_label:Nu,pdf_expense_report_label:Tu,pdf_total_expenses_label:Iu,pdf_profit_loss_label:$u,pdf_sales_customers_label:Ru,pdf_sales_items_label:Fu,pdf_tax_summery_label:Mu,pdf_income_label:Vu,pdf_net_profit_label:Bu,pdf_customer_sales_report:Ou,pdf_total_sales_label:Lu,pdf_item_sales_label:Uu,pdf_tax_report_label:Ku,pdf_total_tax_label:qu,pdf_tax_types_label:Zu,pdf_expenses_label:Wu,pdf_bill_to:Hu,pdf_ship_to:Gu,pdf_received_from:Yu,pdf_tax_label:Ju};const Qu={dashboard:"Komandna tabla",customers:"Klijenti",items:"Stavke",invoices:"Fakture",expenses:"Rashodi",estimates:"Profakture",payments:"Uplate",reports:"Izve\u0161taji",settings:"Pode\u0161avanja",logout:"Odjavi se",users:"Korisnici"},em={add_company:"Dodaj kompaniju",view_pdf:"Pogledaj PDF",copy_pdf_url:"Kopiraj PDF link",download_pdf:"Preuzmi PDF",save:"Sa\u010Duvaj",create:"Napravi",cancel:"Otka\u017Ei",update:"A\u017Euriraj",deselect:"Poni\u0161ti izbor",download:"Preuzmi",from_date:"Od Datuma",to_date:"Do Datuma",from:"Po\u0161iljalac",to:"Primalac",sort_by:"Rasporedi Po",ascending:"Rastu\u0107e",descending:"Opadaju\u0107e",subject:"Predmet",body:"Telo",message:"Poruka",send:"Po\u0161alji",go_back:"Idi nazad",back_to_login:"Nazad na prijavu?",home:"Po\u010Detna",filter:"Filter",delete:"Obri\u0161i",edit:"Izmeni",view:"Pogledaj",add_new_item:"Dodaj novu stavku",clear_all:"Izbri\u0161i sve",showing:"Prikazivanje",of:"od",actions:"Akcije",subtotal:"UKUPNO",discount:"POPUST",fixed:"Fiksno",percentage:"Procenat",tax:"POREZ",total_amount:"UKUPAN IZNOS",bill_to:"Ra\u010Dun za",ship_to:"Isporu\u010Diti za",due:"Du\u017Ean",draft:"U izradi",sent:"Poslato",all:"Sve",select_all:"Izaberi sve",choose_file:"Klikni ovde da izabere\u0161 fajl",choose_template:"Izaberi \u0161ablon",choose:"Izaberi",remove:"Ukloni",powered_by:"Pokre\u0107e",bytefury:"Bytefury",select_a_status:"Izaberi status",select_a_tax:"Izaberi porez",search:"Pretraga",are_you_sure:"Da li ste sigurni?",list_is_empty:"Lista je prazna.",no_tax_found:"Porez nije prona\u0111en!",four_zero_four:"404",you_got_lost:"Ups! Izgubio si se!",go_home:"Idi na po\u010Detnu stranicu",test_mail_conf:"Testiraj pode\u0161avanje Po\u0161te",send_mail_successfully:"Po\u0161ta uspe\u0161no poslata",setting_updated:"Pode\u0161avanje uspe\u0161no a\u017Eurirano",select_state:"Odaberi saveznu dr\u017Eavu",select_country:"Odaberi dr\u017Eavu",select_city:"Odaberi grad",street_1:"Adresa 1",street_2:"Adresa 2",action_failed:"Akcija nije uspela",retry:"Poku\u0161aj ponovo",choose_note:"Odaberi napomenu",no_note_found:"Ne postoje sa\u010Duvane napomene",insert_note:"Unesi bele\u0161ku",copied_pdf_url_clipboard:"Link do PDF fajla kopiran!"},tm={select_year:"Odaberi godinu",cards:{due_amount:"Du\u017Ean iznos",customers:"Klijenti",invoices:"Fakture",estimates:"Profakture"},chart_info:{total_sales:"Prodaja",total_receipts:"Ra\u010Duni",total_expense:"Rashodi",net_income:"Prihod NETO",year:"Odaberi godinu"},monthly_chart:{title:"Prodaja & Rashodi"},recent_invoices_card:{title:"Dospele fakture",due_on:"Datum dospevanja",customer:"Klijent",amount_due:"Iznos dospe\u0107a",actions:"Akcije",view_all:"Pogledaj sve"},recent_estimate_card:{title:"Nedavne profakture",date:"Datum",customer:"Klijent",amount_due:"Iznos dospe\u0107a",actions:"Akcije",view_all:"Pogledaj sve"}},am={name:"Naziv",description:"Opis",percent:"Procenat",compound_tax:"Slo\u017Eeni porez"},sm={search:"Pretraga...",customers:"Klijenti",users:"Korisnici",no_results_found:"Nema rezultata"},nm={title:"Klijenti",add_customer:"Dodaj Klijenta",contacts_list:"Lista klijenata",name:"Naziv",mail:"Mail | Mail-ovi",statement:"Izjava",display_name:"Naziv koji se prikazuje",primary_contact_name:"Primarna kontakt osoba",contact_name:"Naziv kontakt osobe",amount_due:"Iznos dospe\u0107a",email:"Email",address:"Adresa",phone:"Telefon",website:"Veb stranica",overview:"Pregled",enable_portal:"Uklju\u010Di portal",country:"Dr\u017Eava",state:"Savezna dr\u017Eava",city:"Grad",zip_code:"Po\u0161tanski broj",added_on:"Datum dodavanja",action:"Akcija",password:"\u0160ifra",street_number:"Broj ulice",primary_currency:"Primarna valuta",description:"Opis",add_new_customer:"Dodaj novog klijenta",save_customer:"Sa\u010Duvaj klijenta",update_customer:"A\u017Euriraj klijenta",customer:"Klijent | Klijenti",new_customer:"Nov klijent",edit_customer:"Izmeni klijenta",basic_info:"Osnovne informacije",billing_address:"Adresa za naplatu",shipping_address:"Adresa za dostavu",copy_billing_address:"Kopiraj iz adrese za naplatu",no_customers:"Jo\u0161 uvek nema klijenata!",no_customers_found:"Klijenti nisu prona\u0111eni!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Ova sekcija \u0107e da sadr\u017Ei spisak klijenata.",primary_display_name:"Primarni naziv koji se prikazuje",select_currency:"Odaberi valutu",select_a_customer:"Odaberi klijenta",type_or_click:"Unesi tekst ili klikni da izabere\u0161",new_transaction:"Nova transakcija",no_matching_customers:"Ne postoje klijenti koji odgovaraju pretrazi!",phone_number:"Broj telefona",create_date:"Datum kreiranja",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovog klijenta i sve njegove Fakture, Profakture i Uplate. | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove klijente i njihove Fakture, Profakture i Uplate.",created_message:"Klijent uspe\u0161no kreiran",updated_message:"Klijent uspe\u0161no a\u017Euriran",deleted_message:"Klijent uspe\u0161no obrisan | Klijenti uspe\u0161no obrisani"},im={title:"Stavke",items_list:"Lista stavki",name:"Naziv",unit:"Jedinica",description:"Opis",added_on:"Datum dodavanja",price:"Cena",date_of_creation:"Datum kreiranja",not_selected:"No item selected",action:"Akcije",add_item:"Dodaj Stavku",save_item:"Sa\u010Duvaj Stavku",update_item:"A\u017Euriraj Stavku",item:"Stavka | Stavke",add_new_item:"Dodaj novu stavku",new_item:"Nova stavka",edit_item:"Izmeni stavku",no_items:"Jo\u0161 uvek nema stavki!",list_of_items:"Ova sekcija \u0107e da sadr\u017Ei spisak stavki.",select_a_unit:"odaberi jedinicu",taxes:"Porezi",item_attached_message:"Nije dozvoljeno brisanje stavke koje se koristi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Stavku | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Stavke",created_message:"Stavka uspe\u0161no kreirana",updated_message:"Stavka uspe\u0161no a\u017Eurirana",deleted_message:"Stavka uspe\u0161no obrisana | Stavke uspe\u0161no obrisane"},om={title:"Profakture",estimate:"Profaktura | Profakture",estimates_list:"Lista profaktura",days:"{days} Dan",months:"{months} Mesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",customer:"KLIJENT",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPE\u0106A",partially_paid:"Delimi\u010Dno Pla\u0107eno",total:"Ukupno za pla\u0107anje",discount:"Popust",sub_total:"Osnovica za obra\u010Dun PDV-a",estimate_number:"Broj profakture",ref_number:"Poziv na broj",contact:"Kontakt",add_item:"Dodaj stavku",date:"Datum",due_date:"Datum Dospe\u0107a",expiry_date:"Datum Isteka",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Akcija",notes:"Napomena",tax:"Porez",estimate_template:"\u0160ablon",convert_to_invoice:"Pretvori u Fakturu",mark_as_sent:"Ozna\u010Di kao Poslato",send_estimate:"Po\u0161alji Profakturu",resend_estimate:"Ponovo po\u0161alji Profakturu",record_payment:"Unesi uplatu",add_estimate:"Dodaj Profakturu",save_estimate:"Sa\u010Duvaj Profakturu",confirm_conversion:"Detalji ove Profakture \u0107e biti iskori\u0161\u0107eni za pravljenje Fakture.",conversion_message:"Faktura uspe\u0161no kreirana",confirm_send_estimate:"Ova Profaktura \u0107e biti poslata putem Email-a klijentu",confirm_mark_as_sent:"Ova Profaktura \u0107e biti ozna\u010Dena kao Poslata",confirm_mark_as_accepted:"Ova Profaktura \u0107e biti ozna\u010Dena kao Prihva\u0107ena",confirm_mark_as_rejected:"Ova Profaktura \u0107e biti ozna\u010Dena kao Odbijena",no_matching_estimates:"Ne postoji odgovaraju\u0107a profaktura!",mark_as_sent_successfully:"Profaktura uspe\u0161no ozna\u010Dena kao Poslata",send_estimate_successfully:"Profaktura uspe\u0161no poslata",errors:{required:"Polje je obavezno"},accepted:"Prihva\u0107eno",rejected:"Rejected",sent:"Poslato",draft:"U izradi",declined:"Odbijeno",new_estimate:"Nova Profaktura",add_new_estimate:"Dodaj novu Profakturu",update_Estimate:"A\u017Euriraj Profakturu",edit_estimate:"Izmeni Profakturu",items:"stavke",Estimate:"Profaktura | Profakture",add_new_tax:"Dodaj nov Porez",no_estimates:"Jo\u0161 uvek nema Profaktura!",list_of_estimates:"Ova sekcija \u0107e da sadr\u017Ei spisak Profaktura.",mark_as_rejected:"Ozna\u010Di kao odbijeno",mark_as_accepted:"Ozna\u010Di kao prihva\u0107eno",marked_as_accepted_message:"Profaktura ozna\u010Dena kao prihva\u0107ena",marked_as_rejected_message:"Profaktura ozna\u010Dena kao odbijena",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Profakturu | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Profakture",created_message:"Profaktura uspe\u0161no kreirana",updated_message:"Profaktura uspe\u0161no a\u017Eurirana",deleted_message:"Profaktura uspe\u0161no obrisana | Profakture uspe\u0161no obrisane",something_went_wrong:"ne\u0161to je krenulo naopako",item:{title:"Naziv stavke",description:"Opis",quantity:"Koli\u010Dina",price:"Cena",discount:"Popust",total:"Ukupno za pla\u0107anje",total_discount:"Ukupan popust",sub_total:"Ukupno",tax:"Porez",amount:"Iznos",select_an_item:"Unesi tekst ili klikni da izabere\u0161",type_item_description:"Unesi opis Stavke (nije obavezno)"}},rm={title:"Fakture",invoices_list:"List Faktura",days:"{days} dan",months:"{months} Mesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"KLIJENT",paid_status:"STATUS UPLATE",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPE\u0106A",partially_paid:"Delimi\u010Dno pla\u0107eno",total:"Ukupno za pla\u0107anje",discount:"Popust",sub_total:"Osnovica za obra\u010Dun PDV-a",invoice:"Faktura | Fakture",invoice_number:"Broj Fakture",ref_number:"Poziv na broj",contact:"Kontakt",add_item:"Dodaj Stavku",date:"Datum",due_date:"Datum Dospe\u0107a",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Akcija",notes:"Napomena",view:"Pogledaj",send_invoice:"Po\u0161alji Fakturu",resend_invoice:"Ponovo po\u0161alji Fakturu",invoice_template:"\u0160ablon Fakture",template:"\u0160ablon",mark_as_sent:"Ozna\u010Di kao Poslato",confirm_send_invoice:"Ova Faktura \u0107e biti poslata putem Email-a klijentu",invoice_mark_as_sent:"Ova Faktura \u0107e biti ozna\u010Dena kao poslata",confirm_send:"Ova Faktura \u0107e biti poslata putem Email-a klijentu",invoice_date:"Datum Fakture",record_payment:"Unesi Uplatu",add_new_invoice:"Dodaj novu Fakturu",update_expense:"A\u017Euriraj Rashod",edit_invoice:"Izmeni Fakturu",new_invoice:"Nova Faktura",save_invoice:"Sa\u010Duvaj Fakturu",update_invoice:"A\u017Euriraj Fakturu",add_new_tax:"Dodaj nov Porez",no_invoices:"Jo\u0161 uvek nema Faktura!",list_of_invoices:"Ova sekcija \u0107e da sadr\u017Ei spisak Faktura.",select_invoice:"Odaberi Fakturu",no_matching_invoices:"Ne postoje Fakture koje odgovaraju pretrazi!",mark_as_sent_successfully:"Faktura uspe\u0161no ozna\u010Dena kao Poslata",invoice_sent_successfully:"Faktura uspe\u0161no poslata",cloned_successfully:"Uspe\u0161no napravljen duplikat Fakture",clone_invoice:"Napravi duplikat",confirm_clone:"Ova Faktura \u0107e biti duplikat nove Fakture",item:{title:"Naziv Stavke",description:"Opis",quantity:"Koli\u010Dina",price:"Cena",discount:"Popust",total:"Ukupno za pla\u0107anje",total_discount:"Ukupan popust",sub_total:"Ukupno",tax:"Porez",amount:"Iznos",select_an_item:"Unesi tekst ili klikni da izabere\u0161",type_item_description:"Unesi opis Stavke (nije obavezno)"},confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Fakturu | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Fakture",created_message:"Faktura uspe\u0161no kreirana",updated_message:"Faktura uspe\u0161no a\u017Eurirana",deleted_message:"Faktura uspe\u0161no obrisana | Fakture uspe\u0161no obrisane",marked_as_sent_message:"Faktura ozna\u010Dena kao uspe\u0161no poslata",something_went_wrong:"ne\u0161to je krenulo naopako",invalid_due_amount_message:"Ukupan iznos za pla\u0107anje u fakturi ne mo\u017Ee biti manji od iznosa uplate za ovu fakturu. Molim Vas a\u017Eurirajte fakturu ili obri\u0161ite uplate koje su povezane sa ovom fakturom da bi nastavili."},dm={title:"Uplate",payments_list:"Lista uplata",record_payment:"Unesi Uplatu",customer:"Klijent",date:"Datum",amount:"Iznos",action:"Akcija",payment_number:"Broj uplate",payment_mode:"Na\u010Din pla\u0107anja",invoice:"Faktura",note:"Napomena",add_payment:"Dodaj Uplatu",new_payment:"Nova Uplata",edit_payment:"Izmeni Uplatu",view_payment:"Vidi Uplatu",add_new_payment:"Dodaj Novu Uplatu",send_payment_receipt:"Po\u0161alji potvrdu o uplati",send_payment:"Po\u0161alji Uplatu",save_payment:"Sa\u010Duvaj Uplatu",update_payment:"A\u017Euriraj Uplatu",payment:"Uplata | Uplate",no_payments:"Jo\u0161 uvek nema uplata!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Ne postoje uplate koje odgovaraju pretrazi!",list_of_payments:"Ova sekcija \u0107e da sadr\u017Ei listu uplata.",select_payment_mode:"Odaberi na\u010Din pla\u0107anja",confirm_mark_as_sent:"Ovo pla\u0107anje \u0107e biti ozna\u010Dena kao Poslata",confirm_send_payment:"Ovo pla\u0107anje \u0107e biti poslato putem Email-a klijentu",send_payment_successfully:"Pla\u0107anje uspe\u0161no poslato",something_went_wrong:"ne\u0161to je krenulo naopako",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Uplatu | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Uplate",created_message:"Uplata uspe\u0161no kreirana",updated_message:"Uplata uspe\u0161no a\u017Eurirana",deleted_message:"Uplata uspe\u0161no obrisana | Uplate uspe\u0161no obrisane",invalid_amount_message:"Iznos Uplate je pogre\u0161an"},lm={title:"Rashodi",expenses_list:"Lista Rashoda",select_a_customer:"Odaberi klijenta",expense_title:"Naslov",customer:"Klijent",contact:"Kontakt",category:"Kategorija",from_date:"Datum od",to_date:"Datum do",expense_date:"Datum",description:"Opis",receipt:"Ra\u010Dun",amount:"Iznos",action:"Akcija",not_selected:"Not selected",note:"Napomena",category_id:"ID kategorije",date:"Datum",add_expense:"Dodaj Rashod",add_new_expense:"Dodaj Novi Rashod",save_expense:"Sa\u010Duvaj Rashod",update_expense:"A\u017Euriraj Rashod",download_receipt:"Preuzmi Ra\u010Dun",edit_expense:"Izmeni Rashod",new_expense:"Novi Rashod",expense:"Rashod | Rashodi",no_expenses:"Jo\u0161 uvek nema rashoda!",list_of_expenses:"Ova sekcija \u0107e da sadr\u017Ei listu rashoda.",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovaj Rashod | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Rashode",created_message:"Rashod uspe\u0161no kreiran",updated_message:"Rashod uspe\u0161no a\u017Euriran",deleted_message:"Rashod uspe\u0161no obrisan | Rashodi uspe\u0161no obrisani",categories:{categories_list:"Lista Kategorija",title:"Naslov",name:"Naziv",description:"Opis",amount:"Iznos",actions:"Akcije",add_category:"Dodaj Kategoriju",new_category:"Nova Kategorija",category:"Kategorija | Kategorije",select_a_category:"Izaberi kategoriju"}},cm={email:"Email",password:"\u0160ifra",forgot_password:"Zaboravili ste \u0161ifru?",or_signIn_with:"ili se prijavite sa",login:"Prijava",register:"Registracija",reset_password:"Restujte \u0161ifru",password_reset_successfully:"\u0160ifra Uspe\u0161no Resetovana",enter_email:"Unesi email",enter_password:"Unesi \u0161ifru",retype_password:"Ponovo unesi \u0161ifru"},_m={title:"Korisnici",users_list:"Lista korisnika",name:"Ime i prezime",description:"Opis",added_on:"Datum dodavanja",date_of_creation:"Datum kreiranja",action:"Akcija",add_user:"Dodaj Korisnika",save_user:"Sa\u010Duvaj Korisnika",update_user:"A\u017Euriraj Korisnika",user:"Korisnik | Korisnici",add_new_user:"Dodaj novog korisnika",new_user:"Nov Korisnik",edit_user:"Izmeni Korisnika",no_users:"Jo\u0161 uvek nema korisnika!",list_of_users:"Ova sekcija \u0107e da sadr\u017Ei listu korisnika.",email:"Email",phone:"Broj telefona",password:"\u0160ifra",user_attached_message:"Ne mo\u017Eete obrisati stavku koja je ve\u0107 u upotrebi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovog Korisnika | Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ove Korisnike",created_message:"Korisnik uspe\u0161no napravljen",updated_message:"Korisnik uspe\u0161no a\u017Euriran",deleted_message:"Korisnik uspe\u0161no obrisan | Korisnici uspe\u0161no obrisani"},um={title:"Izve\u0161taj",from_date:"Datum od",to_date:"Datum do",status:"Status",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",download_pdf:"Preuzmi PDF",view_pdf:"Pogledaj PDF",update_report:"A\u017Euriraj Izve\u0161taj",report:"Izve\u0161taj | Izve\u0161taji",profit_loss:{profit_loss:"Prihod & Rashod",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi opseg datuma"},sales:{sales:"Prodaja",date_range:"Izaberi opseg datuma",to_date:"Datum do",from_date:"Datum od",report_type:"Tip Izve\u0161taja"},taxes:{taxes:"Porezi",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi opseg datuma"},errors:{required:"Polje je obavezno"},invoices:{invoice:"Faktura",invoice_date:"Datum Fakture",due_date:"Datum Dospe\u0107a",amount:"Iznos",contact_name:"Ime Kontakta",status:"Status"},estimates:{estimate:"Profaktura",estimate_date:"Datum Profakture",due_date:"Datum Dospe\u0107a",estimate_number:"Broj Profakture",ref_number:"Poziv na broj",amount:"Iznos",contact_name:"Ime Kontakta",status:"Status"},expenses:{expenses:"Rashodi",category:"Kategorija",date:"Datum",amount:"Iznos",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi opseg datuma"}},mm={menu_title:{account_settings:"Pode\u0161avanje Naloga",company_information:"Podaci o firmi",customization:"Prilago\u0111avanje",preferences:"Preferencija",notifications:"Obave\u0161tenja",tax_types:"Tipovi Poreza",expense_category:"Kategorije Rashoda",update_app:"A\u017Euriraj Aplikaciju",backup:"Bekap",file_disk:"File Disk",custom_fields:"Prilago\u0111ena polja",payment_modes:"Na\u010Din pla\u0107anja",notes:"Napomene"},title:"Pode\u0161avanja",setting:"Pode\u0161avanje | Pode\u0161avanja",general:"Op\u0161te",language:"Jezik",primary_currency:"Primarna Valuta",timezone:"Vremenska Zona",date_format:"Format Datuma",currencies:{title:"Valute",currency:"Valuta | Valute",currencies_list:"Lista Valuta",select_currency:"Odaberi Valutu",name:"Naziv",code:"Kod",symbol:"Simbol",precision:"Preciznost",thousand_separator:"Separator za hiljade",decimal_separator:"Separator za decimale",position:"Pozicija",position_of_symbol:"Pozicija simbola",right:"Desno",left:"Levo",action:"Akcija",add_currency:"Dodaj Valutu"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"\u0160ifra",mailgun_secret:"Mailgun \u0160ifra",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES \u0160ifra",ses_key:"SES Klju\u010D",password:"Mail \u0160ifra",username:"Mail Korisni\u010Dko Ime",mail_config:"Mail Pode\u0161avanje",from_name:"Naziv po\u0161iljaoca",from_mail:"E-mail adresa po\u0161iljaoca",encryption:"E-mail enkripcija",mail_config_desc:"Ispod se nalazi forma za pode\u0161avanje E-mail drajvera za slanje po\u0161te iz aplikacije. Tako\u0111e mo\u017Eete podesiti provajdere tre\u0107e strane kao Sendgrid, SES itd."},pdf:{title:"PDF Pode\u0161avanje",footer_text:"Tekstualno zaglavlje na dnu strane",pdf_layout:"PDF Raspored"},company_info:{company_info:"Podaci o firmi",company_name:"Naziv firme",company_logo:"Logo firme",section_description:"Informacije o Va\u0161oj firmi \u0107e biti prikazane na fakturama, profakturama i drugim dokumentima koji se prave u ovoj aplikaciji.",phone:"Telefon",country:"Dr\u017Eava",state:"Savezna Dr\u017Eava",city:"Grad",address:"Adresa",zip:"Po\u0161tanski broj",save:"Sa\u010Duvaj",updated_message:"Podaci o firmi uspe\u0161no sa\u010Duvani"},custom_fields:{title:"Prilago\u0111ena polja",section_description:"Prilagodite va\u0161e Fakture, Profakture i Uplate (priznanice) sa svojim poljima. Postarajte se da koristite polja navedena ispod na formatu adrese na stranici Pode\u0161avanja/Prilago\u0111avanje.",add_custom_field:"Dodaj prilago\u0111eno polje",edit_custom_field:"Izmeni prilago\u0111eno polje",field_name:"Naziv polja",label:"Oznaka",type:"Tip",name:"Naziv",required:"Obavezno",placeholder:"Opis polja (Placeholder)",help_text:"Pomo\u0107ni tekst",default_value:"Podrazumevana vrednost",prefix:"Prefiks",starting_number:"Po\u010Detni broj",model:"Model",help_text_description:"Unesite opis koji \u0107e pomo\u0107i korisnicima da razumeju svrhu ovog prilago\u0111enog polja.",suffix:"Sufiks",yes:"Da",no:"Ne",order:"Redosled",custom_field_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovo prilago\u0111eno polje",already_in_use:"Prilago\u0111eno polje je ve\u0107 u upotrebi",deleted_message:"Prilago\u0111eno polje je uspe\u0161no obrisano",options:"opcije",add_option:"Dodaj opcije",add_another_option:"Dodaj jo\u0161 jednu opciju",sort_in_alphabetical_order:"Pore\u0111aj po Abecedi",add_options_in_bulk:"Grupno dodavanje opcija",use_predefined_options:"Koristi predefinisane opcije",select_custom_date:"Odaberi datum",select_relative_date:"Odaberi relativan datum",ticked_by_default:"Podrazumevano odabrano",updated_message:"Prilago\u0111eno polje uspe\u0161no a\u017Eurirano",added_message:"Prilago\u0111eno polje uspe\u0161no dodato"},customization:{customization:"prilago\u0111avanje",save:"Sa\u010Duvaj",addresses:{title:"Adrese",section_description:"Mo\u017Eete podesiti format adrese klijenta za naplatu i adrese klijenta za dostavu (Prikazano samo u PDF-u)",customer_billing_address:"Adresa za naplatu klijentu",customer_shipping_address:"Adresa za dostavu klijentu",company_address:"Adresa Firme",insert_fields:"Dodaj Polja",contact:"Kontakt",address:"Adresa",display_name:"Naziv koji se prikazuje",primary_contact_name:"Primarna kontakt osoba",email:"Email",website:"Veb stranica",name:"Naziv",country:"Dr\u017Eava",state:"Savezna Dr\u017Eava",city:"Grad",company_name:"Naziv Firme",address_street_1:"Adresa 1",address_street_2:"Adresa 2",phone:"Telefon",zip_code:"Po\u0161tanski broj",address_setting_updated:"Pode\u0161avanje adrese uspe\u0161no a\u017Eurirano"},updated_message:"Podaci o firmi su uspe\u0161no a\u017Eurirani",invoices:{title:"Fakture",notes:"Napomene",invoice_prefix:"Prefiks faktura",default_invoice_email_body:"Podrazumevan sadr\u017Eaj email-a za Fakture",invoice_settings:"Pode\u0161avanje za fakture",autogenerate_invoice_number:"Automatski-generi\u0161i broj fakture",autogenerate_invoice_number_desc:"Onemogu\u0107i ovo, Ako Vi ne \u017Eelite da automatski-generi\u0161ete broj fakture kada pravite novu fakturu.",enter_invoice_prefix:"Unesite prefiks fakture",terms_and_conditions:"Uslovi Kori\u0161\u0107enja",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",invoice_settings_updated:"Pode\u0161avanje za fakture je uspe\u0161no sa\u010Duvano"},estimates:{title:"Profakture",estimate_prefix:"Prefiks profaktura",default_estimate_email_body:"Podrazumevan sadr\u017Eaj email-a za Profakture",estimate_settings:"Pode\u0161avanje za profakture",autogenerate_estimate_number:"Automatski-generi\u0161i broj profakture",estimate_setting_description:"Onemogu\u0107i ovo, Ako Vi ne \u017Eelite da automatski-generi\u0161ete broj profakture kada pravite novu profakturu.",enter_estimate_prefix:"Unesite prefiks profakture",estimate_setting_updated:"Pode\u0161avanje za profakture je uspe\u0161no sa\u010Duvano",company_address_format:"Format adrese firme",billing_address_format:"Format adrese za naplatu firme",shipping_address_format:"Format adrese za dostavu firme"},payments:{title:"Uplate",description:"Na\u010Din pla\u0107anja",payment_prefix:"Prefiks uplata",default_payment_email_body:"Podrazumevan sadr\u017Eaj email-a za potvrdu o pla\u0107anju (ra\u010Dun)",payment_settings:"Pode\u0161avanje za pla\u0107anja",autogenerate_payment_number:"Automatski-generi\u0161i broj uplate",payment_setting_description:"Onemogu\u0107i ovo, Ako ne \u017Eelite da automatski-generi\u0161ete broj uplate kada pravite novu uplatu.",enter_payment_prefix:"Unesite prefiks uplate",payment_setting_updated:"Pode\u0161avanje za pla\u0107anja je uspe\u0161no sa\u010Duvano",payment_modes:"Na\u010Din Pla\u0107anja",add_payment_mode:"Dodaj na\u010Din pla\u0107anja",edit_payment_mode:"Izmeni na\u010Din pla\u0107anja",mode_name:"Na\u010Din pla\u0107anja",payment_mode_added:"Na\u010Din pla\u0107anja dodat",payment_mode_updated:"Na\u010Din pla\u0107anja a\u017Euriran",payment_mode_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovaj Na\u010Din Pla\u0107anja",already_in_use:"Na\u010Din pla\u0107anja se ve\u0107 koristi",deleted_message:"Na\u010Din pla\u0107anja uspe\u0161no obrisan",company_address_format:"Format adrese firme",from_customer_address_format:"Format adrese klijenta"},items:{title:"Stavke",units:"Jedinice",add_item_unit:"Dodaj jedinicu stavke",edit_item_unit:"Izmeni jedinicu stavke",unit_name:"Naziv jedinice",item_unit_added:"Jedinica stavke dodata",item_unit_updated:"Jedinica stavke a\u017Eurirana",item_unit_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu jedinicu stavke",already_in_use:"Jedinica stavke se ve\u0107 koristi",deleted_message:"Jedinica stavke uspe\u0161no obrisana"},notes:{title:"Napomene",description:"U\u0161tedite vreme pravlje\u0107i napomene i koriste\u0107i ih na fakturama, profakturama i uplatama.",notes:"Napomene",type:"Tip",add_note:"Dodaj Napomenu",add_new_note:"Dodaj novu Napomenu",name:"Naziv",edit_note:"Izmeni Napomenu",note_added:"Napomena uspe\u0161no dodata",note_updated:"Napomena uspe\u0161no a\u017Eurirana",note_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu Napomenu",already_in_use:"Napomena se ve\u0107 koristi",deleted_message:"Napomena uspe\u0161no obrisana"}},account_settings:{profile_picture:"Profilna slika",name:"Ime i prezime",email:"Email",password:"\u0160ifra",confirm_password:"Potvrdi \u0161ifru",account_settings:"Pode\u0161avanje naloga",save:"Sa\u010Duvaj",section_description:"Mo\u017Eete a\u017Eurirati Va\u0161e ime i prezime, email, \u0161ifru koriste\u0107i formu ispod.",updated_message:"Pode\u0161avanje naloga uspe\u0161no a\u017Eurirano"},user_profile:{name:"Ime i prezime",email:"Email",password:"\u0160ifra",confirm_password:"Potvrdi \u0161ifru"},notification:{title:"Obave\u0161tenje",email:"\u0160alji obave\u0161tenja na",description:"Koja email obave\u0161tenja bi \u017Eeleli da dobijate kada se ne\u0161to promeni?",invoice_viewed:"Faktura gledana",invoice_viewed_desc:"Kada klijent pogleda fakturu koja je poslata putem ove aplikacije.",estimate_viewed:"Profaktura gledana",estimate_viewed_desc:"Kada klijent pogleda profakturu koja je poslata putem ove aplikacije.",save:"Sa\u010Duvaj",email_save_message:"Email uspe\u0161no sa\u010Duvan",please_enter_email:"Molim Vas unesite E-mail"},tax_types:{title:"Tipovi Poreza",add_tax:"Dodaj Porez",edit_tax:"Izmeni Porez",description:"Mo\u017Eete dodavati ili uklanjati poreze kako \u017Eelite. Ova aplikacija podr\u017Eava porez kako na individualnim stavkama tako i na fakturi.",add_new_tax:"Dodaj Nov Porez",tax_settings:"Pode\u0161avanje Poreza",tax_per_item:"Porez po Stavki",tax_name:"Naziv Poreza",compound_tax:"Slo\u017Een Porez",percent:"Procenat",action:"Akcija",tax_setting_description:"Izaberite ovo ako \u017Eelite da dodajete porez na individualne stavke. Podrazumevano pona\u0161anje je da je porez dodat direktno na fakturu.",created_message:"Tip poreza uspe\u0161no kreiran",updated_message:"Tip poreza uspe\u0161no a\u017Euriran",deleted_message:"Tip poreza uspe\u0161no obrisan",confirm_delete:"Ne\u0107ete mo\u0107i da povratite ovaj Tip Poreza",already_in_use:"Porez se ve\u0107 koristi"},expense_category:{title:"Kategorija Rashoda",action:"Akcija",description:"Kategorije su obavezne za dodavanje rashoda. Mo\u017Ee\u0161 da doda\u0161 ili obri\u0161e\u0161 ove kategorije po svojoj \u017Eelji.",add_new_category:"Dodaj novu kategoriju",add_category:"Dodaj kategoriju",edit_category:"Izmeni kategoriju",category_name:"Naziv kategorije",category_description:"Opis",created_message:"Kagetorija rashoda je uspe\u0161no kreirana",deleted_message:"Kategorija rashoda je uspe\u0161no izbrisana",updated_message:"Kategorija rashoda je uspe\u0161no a\u017Eurirana",confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovu kategoriju rashoda",already_in_use:"Kategorija se ve\u0107 koristi"},preferences:{currency:"Valuta",default_language:"Jezik",time_zone:"Vremenska Zona",fiscal_year:"Finansijska Godina",date_format:"Format datuma",discount_setting:"Pode\u0161avanja za popuste",discount_per_item:"Popust po stavci",discount_setting_description:"Izaberite ovo ako \u017Eelite da dodajete Popust na individualne stavke. Podrazumevano pona\u0161anje je da je Popust dodat direktno na fakturu.",save:"Sa\u010Duvaj",preference:"Preferencija | Preferencije",general_settings:"Podrazumevane preferencije za sistem",updated_message:"Preferencije su uspe\u0161no a\u017Eurirane",select_language:"Izaberi Jezik",select_time_zone:"Izaberi Vremensku Zonu",select_date_format:"Izaberi Format Datuma",select_financial_year:"Izaberi Finansijsku Godinu"},update_app:{title:"A\u017Euriraj aplikaciju",description:"Lako mo\u017Ee\u0161 da a\u017Eurira\u0161 Crater tako \u0161to \u0107e\u0161 uraditi proveru novih verzija klikom na polje ispod",check_update:"Proveri a\u017Euriranost",avail_update:"Dostupna je nova verzija",next_version:"Slede\u0107a verzija",requirements:"Zahtevi",update:"A\u017Euriraj sad",update_progress:"A\u017Euriranje je u toku...",progress_text:"Traja\u0107e svega par minuta. Nemojte osve\u017Eavati ili zatvoriti stranicu dok a\u017Euriranje ne bude gotovo",update_success:"Aplikacija je a\u017Eurirana! Molim Vas Sa\u010Dekajte da se stranica osve\u017Ei automatski.",latest_message:"Nema nove verzije! A\u017Eurirana poslednja verzija.",current_version:"Trenutna verzija",download_zip_file:"Preuzmi ZIP paket",unzipping_package:"Raspakivanje paketa",copying_files:"Kopiranje datoteka",deleting_files:"Brisanje fajlova koji nisu u upotrebi",running_migrations:"Migracije u toku",finishing_update:"Zavr\u0161avanje a\u017Euriranja",update_failed:"Neuspe\u0161no a\u017Euriranje",update_failed_text:"\u017Dao mi je! Tvoje a\u017Euriranje nije uspelo na koraku broj: {step} korak"},backup:{title:"Bekap | Bekapi",description:"Bekap je zip arhiva koja sadr\u017Ei sve fajlove iz foldera koje ste specificirali, tako\u0111e sadr\u017Ei bekap baze.",new_backup:"Dodaj novi Bekap",create_backup:"Napravi Bekap",select_backup_type:"Izaberi tip Bekapa",backup_confirm_delete:"Ne\u0107e\u0161 mo\u0107i da povrati\u0161 ovaj Bekap",path:"putanja",new_disk:"Novi Disk",created_at:"datum kreiranja",size:"veli\u010Dina",dropbox:"dropbox",local:"lokalni",healthy:"zdrav",amount_of_backups:"broj bekapa",newest_backups:"najnoviji bekapi",used_storage:"kori\u0161c\u0301eno skladi\u0161te",select_disk:"Izaberi Disk",action:"Akcija",deleted_message:"Bekap uspe\u0161no obrisan",created_message:"Bekap uspe\u0161no napravljen",invalid_disk_credentials:"Pogre\u0161ni kredencijali za odabrani disk"},disk:{title:"File Disk | File Disks",description:"Podrazumevano pona\u0161anje je da Crater koristi lokalni disk za \u010Duvanje bekapa, avatara i ostalih slika. Mo\u017Eete podesiti vi\u0161e od jednog disk drajvera od provajdera poput DigitalOcean, S3 i Dropbox po va\u0161oj \u017Eelji.",created_at:"datum kreiranja",dropbox:"dropbox",name:"Naziv",driver:"Drajver",disk_type:"Tip",disk_name:"Naziv Diska",new_disk:"Dodaj novi Disk",filesystem_driver:"Filesystem Driver",local_driver:"lokalni Drajver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Podrazumevani Drajver",is_default:"DA LI JE PODRAZUMEVAN",set_default_disk:"Postavi Podrazumevani Disk",set_default_disk_confirm:"Ovaj disk \u0107e biti postavljen kao podrazumevan i svi novi PDF fajlovi \u0107e biti sa\u010Duvani na ovom disku",success_set_default_disk:"Disk je uspe\u0161no postavljen kao podrazumevan",save_pdf_to_disk:"Sa\u010Duvaj PDF fajlove na Disk",disk_setting_description:" Uklju\u010Dite ovo ako \u017Eelite da sa\u010Duvate kopiju PDF fajla svake Fakture, Profakture i Uplate na va\u0161 podrazumevani disk automatski. Uklju\u010Divanjem ove opcije \u0107ete smanjiti vreme u\u010Ditavanja pri pregledu PDF fajlova.",select_disk:"Izaberi Disk",disk_settings:"Disk Pode\u0161avanja",confirm_delete:"Ovo ne\u0107e uticati na va\u0161e postoje\u0107e fajlove i foldere na navedenom disku, ali \u0107e se konfiguracija va\u0161eg diska izbrisati iz Cratera.",action:"Akcija",edit_file_disk:"Izmeni File Disk",success_create:"Disk uspe\u0161no dodat",success_update:"Disk uspe\u0161no a\u017Euriran",error:"Dodavanje diska nije uspelo",deleted_message:"File Disk uspe\u0161no obrisan",disk_variables_save_successfully:"Disk uspe\u0161no pode\u0161en",disk_variables_save_error:"Pode\u0161avanje diska nije uspelo.",invalid_disk_credentials:"Pogre\u0161an kredencijal za disk koji je naveden"}},pm={account_info:"Informacije o nalogu",account_info_desc:"Detalji u nastavku \u0107e se koristiti za kreiranje glavnog administratorskog naloga. Mogu\u0107e ih je izmeniti u bilo kom trenutku nakon prijavljivanja.",name:"Naziv",email:"E-mail",password:"\u0160ifra",confirm_password:"Potvrdi \u0161ifru",save_cont:"Sa\u010Duvaj & Nastavi",company_info:"Informacije o firmi",company_info_desc:"Ove informacije \u0107e biti prikazane na fakturama. Mogu\u0107e ih je izmeniti kasnije u pode\u0161avanjima.",company_name:"Naziv firme",company_logo:"Logo firme",logo_preview:"Pregled logoa",preferences:"Preference",preferences_desc:"Podrazumevane Preference za sistem",country:"Dr\u017Eava",state:"Savezna Dr\u017Eava",city:"Grad",address:"Adresa",street:"Ulica1 | Ulica2",phone:"Telefon",zip_code:"Po\u0161tanski broj",go_back:"Vrati se nazad",currency:"Valuta",language:"Jezik",time_zone:"Vremenska zona",fiscal_year:"Finansijska godina",date_format:"Format datuma",from_address:"Adresa po\u0161iljaoca",username:"Korisni\u010Dko ime",next:"Slede\u0107e",continue:"Nastavi",skip:"Presko\u010Di",database:{database:"URL stranice & baze podataka",connection:"Veza baze podataka",host:"Host baze podataka",port:"Port baze podataka",password:"\u0160ifra baze podataka",app_url:"URL aplikacije",app_domain:"Domen aplikacije",username:"Korisni\u010Dko ime baze podataka",db_name:"Naziv baze podataka",db_path:"Putanja do baze",desc:"Kreiraj bazu podataka na svom serveru i postavi kredencijale prate\u0107i obrazac u nastavku."},permissions:{permissions:"Dozvole",permission_confirm_title:"Da li ste sigurni da \u017Eelite da nastavite?",permission_confirm_desc:"Provera dozvola za foldere nije uspela",permission_desc:"U nastavku se nalazi lista dozvola za foldere koji su neophodni kako bi alikacija radila. Ukoliko provera dozvola ne uspe, a\u017Euriraj svoju listu dozvola za te foldere."},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail drajver",secret:"\u0160ifra",mailgun_secret:"Mailgun \u0160ifra",mailgun_domain:"Domen",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES \u0160ifra",ses_key:"SES Klju\u010D",password:"\u0160ifra za e-mail",username:"Koristni\u010Dko ime za e-mail",mail_config:"E-mail konfigurisanje",from_name:"Naziv po\u0161iljaoca",from_mail:"E-mail adresa po\u0161iljaoca",encryption:"E-mail enkripcija",mail_config_desc:"Ispod se nalazi forma za pode\u0161avanje E-mail drajvera za slanje po\u0161te iz aplikacije. Tako\u0111e mo\u017Eete podesiti provajdere tre\u0107e strane kao Sendgrid, SES itd."},req:{system_req:"Sistemski zahtevi",php_req_version:"Zahteva se PHP verzija {version} ",check_req:"Proveri zahteve",system_req_desc:"Crater ima nekoliko zahteva za server. Proveri da li tvoj server ima potrebnu verziju PHP-a i sva navedena pro\u0161irenja navedena u nastavku"},errors:{migrate_failed:"Neuspe\u0161no migriranje",database_variables_save_error:"Konfiguraciju nije moguc\u0301e zapisati u .env datoteku. Proveri dozvole za datoteku",mail_variables_save_error:"E-mail konfigurisanje je neuspe\u0161no",connection_failed:"Neuspe\u0161na konekcija sa bazom podataka",database_should_be_empty:"Baza podataka treba da bude prazna"},success:{mail_variables_save_successfully:"E-mail je uspe\u0161no konfigurisan",database_variables_save_successfully:"Baza podataka je uspe\u0161no konfigurisana"}},gm={invalid_phone:"Pogre\u0161an Broj Telefona",invalid_url:"Neva\u017Ee\u0107i URL (primer: http://www.craterapp.com)",invalid_domain_url:"Pogre\u0161an URL (primer: craterapp.com)",required:"Obavezno polje",email_incorrect:"Pogre\u0161an E-mail",email_already_taken:"Navedeni E-mail je zauzet",email_does_not_exist:"Korisnik sa navedenom e-mail adresom ne postoji",item_unit_already_taken:"Naziv ove jedinice stavke je zauzet",payment_mode_already_taken:"Naziv ovog na\u010Dina pla\u0107anja je zauzet",send_reset_link:"Po\u0161alji link za resetovanje",not_yet:"Jo\u0161 uvek ni\u0161ta? Po\u0161alji ponovo",password_min_length:"\u0160ifra mora imati {count} karaktera",name_min_length:"Naziv mora imati najmanje {count} slova",enter_valid_tax_rate:"Unesite odgovaraju\u0107u poresku stopu",numbers_only:"Mogu se unositi samo brojevi",characters_only:"Mogu se unositi samo karakteri",password_incorrect:"\u0160ifra mora biti identi\u010Dna",password_length:"\u0160ifra mora imati {count} karaktera",qty_must_greater_than_zero:"Koli\u010Dina mora biti ve\u0107a od 0.",price_greater_than_zero:"Cena mora biti ve\u0107a od 0",payment_greater_than_zero:"Uplata mora biti ve\u0107a od 0",payment_greater_than_due_amount:"Uneta uplata je ve\u0107a od dospelog iznosa ove fakture",quantity_maxlength:"Koli\u010Dina ne mo\u017Ee imati vi\u0161e od 20 cifara",price_maxlength:"Cena ne mo\u017Ee imati vi\u0161e od 20 cifara",price_minvalue:"Cena mora biti ve\u0107a od 0",amount_maxlength:"Iznos ne mo\u017Ee da ima vi\u0161e od 20 cifara",amount_minvalue:"Iznos mora biti ve\u0107i od 0",description_maxlength:"Opis ne mo\u017Ee da ima vi\u0161e od 65,000 karaktera",subject_maxlength:"Predmet ne mo\u017Ee da ima vi\u0161e od 100 karaktera",message_maxlength:"Poruka ne mo\u017Ee da ima vi\u0161e od 255 karaktera",maximum_options_error:"Maksimalan broj opcija je izabran. Prvo uklonite izabranu opciju da biste izabrali drugu",notes_maxlength:"Napomena ne mo\u017Ee da ima vi\u0161e od 65,000 karaktera",address_maxlength:"Adresa ne mo\u017Ee da ima vi\u0161e od 255 karaktera",ref_number_maxlength:"Poziv na broj ne mo\u017Ee da ima vi\u0161e od 225 karaktera",prefix_maxlength:"Prefiks ne mo\u017Ee da ima vi\u0161e od 5 karaktera",something_went_wrong:"ne\u0161to je krenulo naopako"},fm="Profaktura",hm="Broj Profakture",vm="Datum Profakture",ym="Datum isteka Profakture",bm="Faktura",km="Broj Fakture",wm="Datum Fakture",xm="Datum dospe\u0107a Fakture",zm="Napomena",Sm="Stavke",jm="Koli\u010Dina",Pm="Cena",Dm="Popust",Cm="Iznos",Am="Osnovica za obra\u010Dun PDV-a",Em="Ukupan iznos",Nm="Payment",Tm="POTVRDA O UPLATI",Im="Datum Uplate",$m="Broj Uplate",Rm="Na\u010Din Uplate",Fm="Iznos Uplate",Mm="IZVE\u0160TAJ O RASHODIMA",Vm="RASHODI UKUPNO",Bm="IZVE\u0160TAJ O PRIHODIMA I RASHODIMA",Om="Sales Customer Report",Lm="Sales Item Report",Um="Tax Summary Report",Km="PRIHOD",qm="NETO PROFIT",Zm="Izve\u0161taj o Prodaji: Po Klijentu",Wm="PRODAJA UKUPNO",Hm="Izve\u0161taj o Prodaji: Po Stavci",Gm="IZVE\u0160TAJ O POREZIMA",Ym="UKUPNO POREZ",Jm="Tipovi Poreza",Xm="Rashodi",Qm="Ra\u010Dun za,",ep="Isporu\u010Diti za,",tp="Poslat od strane:",ap="Tax";var sp={navigation:Qu,general:em,dashboard:tm,tax_types:am,global_search:sm,customers:nm,items:im,estimates:om,invoices:rm,payments:dm,expenses:lm,login:cm,users:_m,reports:um,settings:mm,wizard:pm,validation:gm,pdf_estimate_label:fm,pdf_estimate_number:hm,pdf_estimate_date:vm,pdf_estimate_expire_date:ym,pdf_invoice_label:bm,pdf_invoice_number:km,pdf_invoice_date:wm,pdf_invoice_due_date:xm,pdf_notes:zm,pdf_items_label:Sm,pdf_quantity_label:jm,pdf_price_label:Pm,pdf_discount_label:Dm,pdf_amount_label:Cm,pdf_subtotal:Am,pdf_total:Em,pdf_payment_label:Nm,pdf_payment_receipt_label:Tm,pdf_payment_date:Im,pdf_payment_number:$m,pdf_payment_mode:Rm,pdf_payment_amount_received_label:Fm,pdf_expense_report_label:Mm,pdf_total_expenses_label:Vm,pdf_profit_loss_label:Bm,pdf_sales_customers_label:Om,pdf_sales_items_label:Lm,pdf_tax_summery_label:Um,pdf_income_label:Km,pdf_net_profit_label:qm,pdf_customer_sales_report:Zm,pdf_total_sales_label:Wm,pdf_item_sales_label:Hm,pdf_tax_report_label:Gm,pdf_total_tax_label:Ym,pdf_tax_types_label:Jm,pdf_expenses_label:Xm,pdf_bill_to:Qm,pdf_ship_to:ep,pdf_received_from:tp,pdf_tax_label:ap};const np={dashboard:"Overzicht",customers:"Klanten",items:"Artikelen",invoices:"Facturen",expenses:"Uitgaven",estimates:"Offertes",payments:"Betalingen",reports:"Rapporten",settings:"Instellingen",logout:"Uitloggen",users:"Gebruikers"},ip={add_company:"Bedrijf toevoegen",view_pdf:"Bekijk PDF",copy_pdf_url:"Kopieer PDF-URL",download_pdf:"Download PDF",save:"Opslaan",create:"Maak",cancel:"annuleren",update:"Bijwerken",deselect:"Maak de selectie ongedaan",download:"Downloaden",from_date:"Van datum",to_date:"Tot datum",from:"Van",to:"Naar",sort_by:"Sorteer op",ascending:"Oplopend",descending:"Aflopend",subject:"Onderwerp",body:"Inhoud",message:"Bericht",send:"Verstuur",go_back:"Ga terug",back_to_login:"Terug naar Inloggen?",home:"Home",filter:"Filter",delete:"Verwijderen",edit:"Bewerken",view:"Bekijken",add_new_item:"Voeg een nieuw item toe",clear_all:"Wis alles",showing:"Weergegeven",of:"van",actions:"Acties",subtotal:"SUBTOTAAL",discount:"KORTING",fixed:"Gemaakt",percentage:"Percentage",tax:"BELASTING",total_amount:"TOTAALBEDRAG",bill_to:"Rekening naar",ship_to:"Verzend naar",due:"Openstaand",draft:"Concept",sent:"Verzonden",all:"Alles",select_all:"Selecteer alles",choose_file:"Klik hier om een bestand te kiezen",choose_template:"Kies een sjabloon",choose:"Kiezen",remove:"Verwijderen",powered_by:"Mogelijk gemaakt door",bytefury:"Bytefury",select_a_status:"Selecteer een status",select_a_tax:"Selecteer een belasting",search:"Zoeken",are_you_sure:"Weet je het zeker?",list_is_empty:"Lijst is leeg.",no_tax_found:"Geen belasting gevonden!",four_zero_four:"404",you_got_lost:"Oeps!\xA0Je bent verdwaald!",go_home:"Ga naar home",test_mail_conf:"E-mailconfiguratie testen",send_mail_successfully:"Mail is succesvol verzonden",setting_updated:"Instelling succesvol bijgewerkt",select_state:"Selecteer staat",select_country:"Selecteer land",select_city:"Selecteer stad",street_1:"straat 1",street_2:"Straat # 2",action_failed:"Actie: mislukt",retry:"Retr",choose_note:"Kies notitie",no_note_found:"Geen notitie gevonden",insert_note:"Notitie invoegen"},op={select_year:"Selecteer jaar",cards:{due_amount:"Openstaand bedrag",customers:"Klanten",invoices:"Facturen",estimates:"Offertes"},chart_info:{total_sales:"Verkoop",total_receipts:"Inkomsten",total_expense:"Uitgaven",net_income:"Netto inkomen",year:"Selecteer jaar"},monthly_chart:{title:"Verkoop en kosten"},recent_invoices_card:{title:"Openstaande facturen",due_on:"Openstaand op",customer:"Klant",amount_due:"Openstaand bedrag",actions:"Acties",view_all:"Toon alles"},recent_estimate_card:{title:"Recente offertes",date:"Datum",customer:"Klant",amount_due:"Openstaand bedrag",actions:"Acties",view_all:"Toon alles"}},rp={name:"Naam",description:"Omschrijving",percent:"Procent",compound_tax:"Verbinding Ta"},dp={search:"Zoeken...",customers:"Klanten",users:"Gebruikers",no_results_found:"Geen zoekresultaten"},lp={title:"Klanten",add_customer:"Klant toevoegen",contacts_list:"Klantenlijst",name:"Naam",mail:"Mail | Mails",statement:"Verklaring",display_name:"Weergavenaam",primary_contact_name:"Naam primaire contactpersoon",contact_name:"Contactnaam",amount_due:"Openstaand bedrag",email:"E-mail",address:"Adres",phone:"Telefoon",website:"Website",overview:"Overzicht",enable_portal:"Activeer Portaal",country:"Land",state:"Provincie",city:"Stad",zip_code:"Postcode",added_on:"Toegevoegd",action:"Actie",password:"Wachtwoord",street_number:"Huisnummer",primary_currency:"Primaire valuta",description:"Omschrijving",add_new_customer:"Nieuwe klant toevoegen",save_customer:"Klant opslaan",update_customer:"Klant bijwerken",customer:"Klant |\xA0Klanten",new_customer:"Nieuwe klant",edit_customer:"Klant bewerken",basic_info:"Basis informatie",billing_address:"factuur adres",shipping_address:"Verzendingsadres",copy_billing_address:"Kopi\xEBren van facturering",no_customers:"Nog geen klanten!",no_customers_found:"Geen klanten gevonden!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"Hier vind je jouw klanten terug.",primary_display_name:"Primaire weergavenaam",select_currency:"Selecteer valuta",select_a_customer:"Selecteer een klant",type_or_click:"Typ of klik om te selecteren",new_transaction:"Nieuwe transactie",no_matching_customers:"Er zijn geen overeenkomende klanten!",phone_number:"Telefoonnummer",create_date:"Aangemaakt op",confirm_delete:"Deze klant en alle gerelateerde facturen, offertes en betalingen worden permanent verwijderd.\xA0|\xA0Deze klanten en alle gerelateerde facturen, offertes en betalingen worden permanent verwijderd.",created_message:"Klant succesvol aangemaakt",updated_message:"Klant succesvol ge\xFCpdatet",deleted_message:"Klant succesvol verwijderd |\xA0Klanten zijn succesvol verwijderd"},cp={title:"Artikelen",items_list:"Lijst met items",name:"Naam",unit:"Eenheid",description:"Omschrijving",added_on:"Toegevoegd",price:"Prijs",date_of_creation:"Datum van creatie",not_selected:"No item selected",action:"Actie",add_item:"Voeg item toe",save_item:"Item opslaan",update_item:"Item bijwerken",item:"Artikel |\xA0Artikelen",add_new_item:"Voeg een nieuw item toe",new_item:"Nieuw item",edit_item:"Item bewerken",no_items:"Nog geen items!",list_of_items:"Hier vind je jouw artikelen terug.",select_a_unit:"selecteer eenheid",taxes:"Belastingen",item_attached_message:"Kan een item dat al in gebruik is niet verwijderen",confirm_delete:"U kunt dit item | niet herstellen\xA0U kunt deze items niet herstellen",created_message:"Item succesvol aangemaakt",updated_message:"Item succesvol bijgewerkt",deleted_message:"Item succesvol verwijderd |\xA0Items zijn verwijderd"},_p={title:"Offertes",estimate:"Offerte |\xA0Offertes",estimates_list:"Lijst met offertes",days:"{dagen} dagen",months:"{months} Maand",years:"{jaar} jaar",all:"Allemaal",paid:"Betaald",unpaid:"Onbetaald",customer:"Klant",ref_no:"Ref Nr.",number:"Aantal",amount_due:"Bedrag",partially_paid:"Gedeeltelijk betaald",total:"Totaal",discount:"Korting",sub_total:"Subtotaal",estimate_number:"Offerte nummer",ref_number:"Referentie nummer",contact:"Contact",add_item:"Voeg een item toe",date:"Datum",due_date:"Opleveringsdatum",expiry_date:"Vervaldatum",status:"Status",add_tax:"Belasting toevoegen",amount:"Bedrag",action:"Actie",notes:"Opmerkingen",tax:"Belasting",estimate_template:"Sjabloon",convert_to_invoice:"Converteren naar factuur",mark_as_sent:"Markeren als verzonden",send_estimate:"Verzend offerte",resend_estimate:"Offerte opnieuw verzenden",record_payment:"Bestaling registreren",add_estimate:"Offerte toevoegen",save_estimate:"Bewaar offerte",confirm_conversion:"Deze offerte wordt gebruikt om een nieuwe factuur te maken.",conversion_message:"Factuur gemaakt",confirm_send_estimate:"Deze offerte wordt via e-mail naar de klant gestuurd",confirm_mark_as_sent:"Deze offerte wordt gemarkeerd als verzonden",confirm_mark_as_accepted:"Deze offerte wordt gemarkeerd als Geaccepteerd",confirm_mark_as_rejected:"Deze offerte wordt gemarkeerd als Afgewezen",no_matching_estimates:"Er zijn geen overeenkomende offertes!",mark_as_sent_successfully:"Offerte gemarkeerd als succesvol verzonden",send_estimate_successfully:"Offerte succesvol verzonden",errors:{required:"Veld is vereist"},accepted:"Geaccepteerd",rejected:"Rejected",sent:"Verzonden",draft:"Concept",declined:"Geweigerd",new_estimate:"Nieuwe offerte",add_new_estimate:"Offerte toevoegen",update_Estimate:"Offerte bijwerken",edit_estimate:"Offerte bewerken",items:"artikelen",Estimate:"Offerte |\xA0Offertes",add_new_tax:"Nieuwe belasting toevoegen",no_estimates:"Nog geen offertes!",list_of_estimates:"Hier vind je jouw offertes terug.",mark_as_rejected:"Markeer als afgewezen",mark_as_accepted:"Markeer als geaccepteerd",marked_as_accepted_message:"Offerte gemarkeerd als geaccepteerd",marked_as_rejected_message:"Offerte gemarkeerd als afgewezen",confirm_delete:"U kunt deze offerte | niet herstellen\xA0U kunt deze offertes niet herstellen",created_message:"Offerte is gemaakt",updated_message:"Offerte succesvol bijgewerkt",deleted_message:"Offerte succesvol verwijderd |\xA0Offertes zijn succesvol verwijderd",something_went_wrong:"Er is iets fout gegaan",item:{title:"Titel van het item",description:"Omschrijving",quantity:"Aantal stuks",price:"Prijs",discount:"Korting",total:"Totaal",total_discount:"Totale korting",sub_total:"Subtotaal",tax:"Belasting",amount:"Bedrag",select_an_item:"Typ of klik om een item te selecteren",type_item_description:"Type Item Beschrijving (optioneel)"}},up={title:"Facturen",invoices_list:"Facturenlijst",days:"{dagen} dagen",months:"{months} Maand",years:"{jaar} jaar",all:"Allemaal",paid:"Betaald",unpaid:"Onbetaald",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"Klant",paid_status:"Betaling",ref_no:"REF NR.",number:"AANTAL",amount_due:"BEDRAG",partially_paid:"Gedeeltelijk betaald",total:"Totaal",discount:"Korting",sub_total:"Subtotaal",invoice:"Factuur |\xA0Facturen",invoice_number:"Factuurnummer",ref_number:"Referentie nummer",contact:"Contact",add_item:"Voeg een item toe",date:"Datum",due_date:"Opleveringsdatum",status:"Status",add_tax:"Belasting toevoegen",amount:"Bedrag",action:"Actie",notes:"Opmerkingen",view:"Bekijken",send_invoice:"Factuur verzenden",resend_invoice:"Factuur opnieuw verzenden",invoice_template:"Factuursjabloon",template:"Sjabloon",mark_as_sent:"Markeer als verzonden",confirm_send_invoice:"Deze factuur wordt via e-mail naar de klant gestuurd",invoice_mark_as_sent:"Deze factuur wordt gemarkeerd als verzonden",confirm_send:"Deze factuur wordt via e-mail naar de klant gestuurd",invoice_date:"Factuur datum",record_payment:"Bestaling registreren",add_new_invoice:"Nieuwe factuur toevoegen",update_expense:"Onkosten bijwerken",edit_invoice:"Factuur bewerken",new_invoice:"Nieuwe factuur",save_invoice:"Factuur opslaan",update_invoice:"Factuur bijwerken",add_new_tax:"Nieuwe belasting toevoegen",no_invoices:"Nog geen facturen!",list_of_invoices:"Hier vind je jouw facturen terug.",select_invoice:"Selecteer Factuur",no_matching_invoices:"Er zijn geen overeenkomende facturen!",mark_as_sent_successfully:"Factuur gemarkeerd als succesvol verzonden",invoice_sent_successfully:"Factuur succesvol verzonden",cloned_successfully:"Factuur succesvol gekloond",clone_invoice:"Factuur klonen",confirm_clone:"Deze factuur wordt gekloond in een nieuwe factuur",item:{title:"Titel van het item",description:"Omschrijving",quantity:"Aantal stuks",price:"Prijs",discount:"Korting",total:"Totaal",total_discount:"Totale korting",sub_total:"Subtotaal",tax:"Belasting",amount:"Bedrag",select_an_item:"Typ of klik om een item te selecteren",type_item_description:"Type Item Beschrijving (optioneel)"},confirm_delete:"Deze factuur wordt permanent verwijderd |\xA0Deze facturen worden permanent verwijderd",created_message:"Factuur succesvol aangemaakt",updated_message:"Factuur succesvol bijgewerkt",deleted_message:"Factuur succesvol verwijderd |\xA0Facturen succesvol verwijderd",marked_as_sent_message:"Factuur gemarkeerd als succesvol verzonden",something_went_wrong:"Er is iets fout gegaan",invalid_due_amount_message:"Het totale factuurbedrag mag niet lager zijn dan het totale betaalde bedrag voor deze factuur.\xA0Werk de factuur bij of verwijder de bijbehorende betalingen om door te gaan."},mp={title:"Betalingen",payments_list:"Betalingslijst",record_payment:"Bestaling registreren",customer:"Klant",date:"Datum",amount:"Bedrag",action:"Actie",payment_number:"Betalingsnummer",payment_mode:"Betaalmethode",invoice:"Factuur",note:"Notitie",add_payment:"Betaling toevoegen",new_payment:"Nieuwe betaling",edit_payment:"Betaling bewerken",view_payment:"Bekijk betaling",add_new_payment:"Nieuwe betaling toevoegen",send_payment_receipt:"Betaalbewijs verzenden",send_payment:"Verstuur betaling",save_payment:"Betaling opslaan",update_payment:"Betaling bijwerken",payment:"Betaling |\xA0Betalingen",no_payments:"Nog geen betalingen!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Er zijn geen overeenkomende betalingen!",list_of_payments:"Hier vind je jouw betalingen terug.",select_payment_mode:"Selecteer betalingswijze",confirm_mark_as_sent:"Deze offerte wordt gemarkeerd als verzonden",confirm_send_payment:"Deze betaling wordt via e-mail naar de klant gestuurd",send_payment_successfully:"Betaling succesvol verzonden",something_went_wrong:"Er is iets fout gegaan",confirm_delete:"Deze betaling wordt permanent verwijderd |\xA0Deze betalingen worden permanent verwijderd",created_message:"De betaling is succesvol aangemaakt",updated_message:"Betaling succesvol bijgewerkt",deleted_message:"Betaling succesvol verwijderd |\xA0Betalingen zijn verwijderd",invalid_amount_message:"Het bedrag van de betaling is ongeldig"},pp={title:"Uitgaven",expenses_list:"Uitgavenlijst",select_a_customer:"Selecteer een klant",expense_title:"Titel",customer:"Klant",contact:"Contact",category:"Categorie",from_date:"Van datum",to_date:"Tot datum",expense_date:"Datum",description:"Omschrijving",receipt:"Bon",amount:"Bedrag",action:"Actie",not_selected:"Not selected",note:"Notitie",category_id:"Categorie ID",date:"Uitgavendatum",add_expense:"Kosten toevoegen",add_new_expense:"Kosten toevoegen",save_expense:"Kosten opslaan",update_expense:"Onkosten bijwerken",download_receipt:"Ontvangstbewijs downloaden",edit_expense:"Uitgaven bewerken",new_expense:"Kosten toevoegen",expense:"Uitgaven |\xA0Uitgaven",no_expenses:"Nog geen kosten!",list_of_expenses:"Hier vind je jouw uitgaven terug.",confirm_delete:"Deze uitgave wordt permanent verwijderd | Deze kosten worden permanent verwijderd",created_message:"Kosten succesvol gemaakt",updated_message:"Kosten succesvol bijgewerkt",deleted_message:"Kosten succesvol verwijderd |\xA0Uitgaven zijn verwijderd",categories:{categories_list:"Categorie\xEBnlijst",title:"Titel",name:"Naam",description:"Omschrijving",amount:"Bedrag",actions:"Acties",add_category:"categorie toevoegen",new_category:"Nieuwe categorie",category:"Categorie |\xA0Categorie\xEBn",select_a_category:"Selecteer een categorie"}},gp={email:"E-mail",password:"Wachtwoord",forgot_password:"Wachtwoord vergeten?",or_signIn_with:"of Log in met",login:"Log in",register:"Registreren",reset_password:"Wachtwoord opnieuw instellen",password_reset_successfully:"Wachtwoord opnieuw ingesteld",enter_email:"Voer email in",enter_password:"Voer wachtwoord in",retype_password:"Geef nogmaals het wachtwoord"},fp={title:"Gebruikers",users_list:"Gebruikerslijst",name:"Naam",description:"Omschrijving",added_on:"Toegevoegd",date_of_creation:"Datum van creatie",action:"Actie",add_user:"Gebruiker toevoegen",save_user:"Gebruiker opslaan",update_user:"Gebruiker bijwerken",user:"Gebruiker | Gebruikers",add_new_user:"Nieuwe gebruiker toevoegen",new_user:"Nieuwe gebruiker",edit_user:"Gebruiker bewerken",no_users:"Nog geen gebruikers!",list_of_users:"Deze sectie zal de lijst met gebruikers bevatten.",email:"E-mail",phone:"Telefoon",password:"Wachtwoord",user_attached_message:"Kan een item dat al in gebruik is niet verwijderen",confirm_delete:"Je kunt deze gebruiker later niet herstellen | Je kunt deze gebruikers later niet herstellen",created_message:"Gebruiker succesvol aangemaakt",updated_message:"Gebruiker met succes bijgewerkt",deleted_message:"Gebruiker succesvol verwijderd | Gebruikers succesvol verwijderd"},hp={title:"Verslag doen van",from_date:"Van datum",to_date:"Tot datum",status:"Status",paid:"Betaald",unpaid:"Onbetaald",download_pdf:"Download PDF",view_pdf:"Bekijk PDF",update_report:"Rapport bijwerken",report:"Verslag |\xA0Rapporten",profit_loss:{profit_loss:"Verlies",to_date:"Tot datum",from_date:"Van datum",date_range:"Selecteer Datumbereik"},sales:{sales:"Verkoop",date_range:"Selecteer datumbereik",to_date:"Tot datum",from_date:"Van datum",report_type:"Rapporttype"},taxes:{taxes:"Belastingen",to_date:"Tot datum",from_date:"Van datum",date_range:"Selecteer Datumbereik"},errors:{required:"Veld is vereist"},invoices:{invoice:"Factuur",invoice_date:"Factuur datum",due_date:"Opleveringsdatum",amount:"Bedrag",contact_name:"Contactnaam",status:"Status"},estimates:{estimate:"Offerte",estimate_date:"Offerte Datum",due_date:"Opleveringsdatum",estimate_number:"Offerte nummer",ref_number:"Referentie nummer",amount:"Bedrag",contact_name:"Contactnaam",status:"Status"},expenses:{expenses:"Uitgaven",category:"Categorie",date:"Datum",amount:"Bedrag",to_date:"Tot datum",from_date:"Van datum",date_range:"Selecteer Datumbereik"}},vp={menu_title:{account_settings:"Account instellingen",company_information:"Bedrijfsinformatie",customization:"Aanpassen",preferences:"Voorkeuren",notifications:"Kennisgevingen",tax_types:"Belastingtypen",expense_category:"Onkostencategorie\xEBn",update_app:"App bijwerken",backup:"Back-up",file_disk:"Bestandsopslag",custom_fields:"Aangepaste velden",payment_modes:"Betaalmethodes",notes:"Opmerkingen"},title:"Instellingen",setting:"Instellingen |\xA0Instellingen",general:"Algemeen",language:"Taal",primary_currency:"Primaire valuta",timezone:"Tijdzone",date_format:"Datumnotatie",currencies:{title:"Valuta's",currency:"Valuta |\xA0Valuta's",currencies_list:"Lijst van valuta's",select_currency:"selecteer valuta",name:"Naam",code:"Code",symbol:"Symbool",precision:"Precisie",thousand_separator:"Duizend scheidingsteken",decimal_separator:"Decimaalscheidingsteken",position:"Positie",position_of_symbol:"Positie van symbool",right:"Rechtsaf",left:"Links",action:"Actie",add_currency:"Valuta toevoegen"},mail:{host:"Mail host",port:"Mail Port",driver:"Mail-stuurprogramma",secret:"Geheim",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domein",mailgun_endpoint:"Mailgun-eindpunt",ses_secret:"SES Secret",ses_key:"SES-sleutel",password:"Mail wachtwoord",username:"Mail gebruikersnaam",mail_config:"E-mailconfiguratie",from_name:"Van Mail Name",from_mail:"Van e-mailadres",encryption:"E-mailversleuteling",mail_config_desc:"Hieronder vindt u het formulier voor het configureren van het e-mailstuurprogramma voor het verzenden van e-mails vanuit de app.\xA0U kunt ook externe providers zoals Sendgrid, SES enz. Configureren."},pdf:{title:"PDF-instelling",footer_text:"Voettekst",pdf_layout:"PDF indeling"},company_info:{company_info:"Bedrijfsinfo",company_name:"Bedrijfsnaam",company_logo:"Bedrijfslogo",section_description:"Informatie over uw bedrijf die wordt weergegeven op facturen, offertes en andere documenten die door Crater zijn gemaakt.",phone:"Telefoon",country:"Land",state:"Provincie",city:"Stad",address:"Adres",zip:"Postcode",save:"Opslaan",updated_message:"Bedrijfsinformatie succesvol bijgewerkt"},custom_fields:{title:"Aangepaste velden",section_description:"Uw facturen, offertes & betalingsbewijzen aanpassen met uw eigen velden. Gebruik onderstaande velden op het adres format op de Customization instellings pagina.",add_custom_field:"Extra veld toevoegen",edit_custom_field:"Veld wijzigen",field_name:"Veld naam",label:"Label",type:"Type",name:"Naam",required:"Verplicht",placeholder:"Tijdelijke plaatshouder",help_text:"Hulp Text",default_value:"Standaard waarde",prefix:"Voorvoegsel",starting_number:"Starting Number",model:"Model",help_text_description:"Voer tekst in om gebruikers te helpen het doel van dit aangepaste veld te begrijpen.",suffix:"Achtervoegsel",yes:"Ja",no:"Nee",order:"Volgorde",custom_field_confirm_delete:"U kunt dit veld niet herstellen",already_in_use:"Aangepast veld is al in gebruik",deleted_message:"Aangepast veld is succesvol verwijderd",options:"opties",add_option:"Optie toevoegen",add_another_option:"Nog een optie toevoegen",sort_in_alphabetical_order:"Sorteer op alfabetische volgorde",add_options_in_bulk:"Voeg opties toe in bulk",use_predefined_options:"Gebruik voorgedefinieerde opties",select_custom_date:"Selecteer een aangepaste datum",select_relative_date:"Selecteer relatieve datum",ticked_by_default:"Standaard aangevinkt",updated_message:"Aangepast veld is succesvol aangepast",added_message:"Aangepast veld is succesvol toegevoegd"},customization:{customization:"aanpassen",save:"Opslaan",addresses:{title:"Adressen",section_description:"U kunt het factuuradres van de klant en het verzendadres van de klant instellen (alleen weergegeven in PDF).",customer_billing_address:"Factuuradres van klant",customer_shipping_address:"Klant verzendadres",company_address:"bedrijfsadres",insert_fields:"Velden invoegen",contact:"Contact",address:"Adres",display_name:"Weergavenaam",primary_contact_name:"Naam primaire contactpersoon",email:"E-mail",website:"Website",name:"Naam",country:"Land",state:"Provincie",city:"Stad",company_name:"Bedrijfsnaam",address_street_1:"Adres Straat 1",address_street_2:"Adresstraat 2",phone:"Telefoon",zip_code:"Postcode",address_setting_updated:"Adresinstelling is bijgewerkt"},updated_message:"Bedrijfsinformatie succesvol bijgewerkt",invoices:{title:"Facturen",notes:"Opmerkingen",invoice_prefix:"Factuurvoorvoegsel",default_invoice_email_body:"Standaard factuur email text",invoice_settings:"Factuurinstellingen",autogenerate_invoice_number:"Factuurnummer automatisch genereren",autogenerate_invoice_number_desc:"Schakel dit uit als u niet automatisch factuurnummers wilt genereren telkens wanneer u een nieuwe factuur maakt.",enter_invoice_prefix:"Voer het factuurvoorvoegsel in",terms_and_conditions:"Voorwaarden",company_address_format:"Bedrijfsadres format",shipping_address_format:"Verzendadres format",billing_address_format:"Factuuradres format",invoice_settings_updated:"Factuurinstelling succesvol bijgewerkt"},estimates:{title:"Offertes",estimate_prefix:"Voorvoegsel schatten",default_estimate_email_body:"Standaard offerte email text",estimate_settings:"Instellingen schatten",autogenerate_estimate_number:"Automatisch geschat nummer genereren",estimate_setting_description:"Schakel dit uit als u niet automatisch offertesaantallen wilt genereren telkens wanneer u een nieuwe offerte maakt.",enter_estimate_prefix:"Voer het prefixnummer in",estimate_setting_updated:"Instelling Offerte succesvol bijgewerkt",company_address_format:"Bedrijfsadres format",billing_address_format:"Factuuradres Format",shipping_address_format:"Verzendadres format"},payments:{title:"Betalingen",description:"Modes of transaction for payments",payment_prefix:"Betalingsvoorvoegsel",default_payment_email_body:"Default Payment Email Body",payment_settings:"Betalingsinstellingen",autogenerate_payment_number:"Betalingsnummer automatisch genereren",payment_setting_description:"Schakel dit uit als u niet elke keer dat u een nieuwe betaling aanmaakt, automatisch betalingsnummers wilt genereren.",enter_payment_prefix:"Voer het betalingsvoorvoegsel in",payment_setting_updated:"Betalingsinstelling ge\xFCpdatet",payment_modes:"Betaalmethodes",add_payment_mode:"Betaalmodus toevoegen",edit_payment_mode:"Betaalmodus bewerken",mode_name:"Mode naam",payment_mode_added:"Betaalwijze toegevoegd",payment_mode_updated:"Betalingsmodus bijgewerkt",payment_mode_confirm_delete:"U kunt deze betalingsmodus niet herstellen",already_in_use:"De betalingsmodus is al in gebruik",deleted_message:"Betaalwijze succesvol verwijderd",company_address_format:"Bedrijfsadres format",from_customer_address_format:"Van klant adres formaat"},items:{title:"Artikelen",units:"eenheden",add_item_unit:"Itemeenheid toevoegen",edit_item_unit:"Itemeenheid bewerken",unit_name:"Naam eenheid",item_unit_added:"Item Eenheid toegevoegd",item_unit_updated:"Artikeleenheid bijgewerkt",item_unit_confirm_delete:"U kunt dit item niet terughalen",already_in_use:"Item Unit is al in gebruik",deleted_message:"Artikeleenheid succesvol verwijderd"},notes:{title:"Opmerkingen",description:"Bespaar tijd door notities te maken en ze opnieuw te gebruiken op uw facturen, ramingen en betalingen.",notes:"Opmerkingen",type:"Type",add_note:"Notitie toevoegen",add_new_note:"Voeg een nieuwe notitie toe",name:"Naam",edit_note:"Notitie bewerken",note_added:"Notitie toegevoegd",note_updated:"Notitie bijgewerkt",note_confirm_delete:"U kunt deze notitie niet terughalen",already_in_use:"Notitie is reeds in gebruik",deleted_message:"Notitie verwijderd"}},account_settings:{profile_picture:"Profielfoto",name:"Naam",email:"E-mail",password:"Wachtwoord",confirm_password:"bevestig wachtwoord",account_settings:"Account instellingen",save:"Opslaan",section_description:"U kunt uw naam, e-mailadres en wachtwoord bijwerken via onderstaand formulier.",updated_message:"Accountinstellingen succesvol bijgewerkt"},user_profile:{name:"Naam",email:"E-mail",password:"Wachtwoord",confirm_password:"Bevestig wachtwoord"},notification:{title:"Kennisgeving",email:"Stuur meldingen naar",description:"Welke e-mailmeldingen wilt u ontvangen als er iets verandert?",invoice_viewed:"Factuur bekeken",invoice_viewed_desc:"Wanneer uw klant de factuur bekijkt die via het kraterdashboard is verzonden.",estimate_viewed:"Offerte bekeken",estimate_viewed_desc:"Wanneer uw klant de offerte bekijkt die via het kraterdashboard is verzonden.",save:"Opslaan",email_save_message:"E-mail succesvol opgeslagen",please_enter_email:"Voer e-mailadres in"},tax_types:{title:"Belastingtypen",add_tax:"Belasting toevoegen",edit_tax:"Belasting bewerken",description:"U kunt naar believen belastingen toevoegen of verwijderen.\xA0Crater ondersteunt belastingen op individuele items en op de factuur.",add_new_tax:"Nieuwe belasting toevoegen",tax_settings:"Belastinginstellingen",tax_per_item:"Belasting per item",tax_name:"Belastingnaam",compound_tax:"Samengestelde belasting",percent:"Procent",action:"Actie",tax_setting_description:"Schakel dit in als u belastingen wilt toevoegen aan afzonderlijke factuuritems.\xA0Standaard worden belastingen rechtstreeks aan de factuur toegevoegd.",created_message:"Belastingtype is gemaakt",updated_message:"Belastingtype succesvol bijgewerkt",deleted_message:"Belastingtype succesvol verwijderd",confirm_delete:"Dit belastingtype wordt permanent verwijderd",already_in_use:"Belasting al in gebruik"},expense_category:{title:"Onkostencategorie\xEBn",action:"Actie",description:"Categorie\xEBn zijn vereist voor het toevoegen van onkostenposten.\xA0U kunt deze categorie\xEBn naar wens toevoegen of verwijderen.",add_new_category:"Voeg een nieuwe categorie toe",add_category:"categorie toevoegen",edit_category:"Categorie bewerken",category_name:"categorie naam",category_description:"Omschrijving",created_message:"Onkostencategorie succesvol aangemaakt",deleted_message:"Uitgavencategorie is verwijderd",updated_message:"Uitgavencategorie is bijgewerkt",confirm_delete:"U kunt deze uitgavencategorie niet herstellen",already_in_use:"Categorie al in gebruik"},preferences:{currency:"Valuta",default_language:"Standaard taal",time_zone:"Tijdzone",fiscal_year:"Financieel jaar",date_format:"Datumnotatie",discount_setting:"Kortingsinstelling",discount_per_item:"Korting per item",discount_setting_description:"Schakel dit in als u korting wilt toevoegen aan afzonderlijke factuuritems.\xA0Standaard wordt korting rechtstreeks aan de factuur toegevoegd.",save:"Opslaan",preference:"Voorkeur |\xA0Voorkeuren",general_settings:"Standaardvoorkeuren voor het systeem.",updated_message:"Voorkeuren succesvol bijgewerkt",select_language:"Selecteer taal",select_time_zone:"Selecteer Tijdzone",select_date_format:"Selecteer datum/tijdindeling",select_financial_year:"Selecteer financieel ja"},update_app:{title:"App bijwerken",description:"U kunt Crater eenvoudig bijwerken door te controleren op een nieuwe update door op de onderstaande knop te klikken",check_update:"Controleer op updates",avail_update:"Nieuwe update beschikbaar",next_version:"Volgende versie",requirements:"Vereisten",update:"Nu updaten",update_progress:"Update wordt uitgevoerd...",progress_text:"Het duurt maar een paar minuten.\xA0Vernieuw het scherm niet en sluit het venster niet voordat de update is voltooid",update_success:"App is bijgewerkt!\xA0Een ogenblik geduld, uw browservenster wordt automatisch opnieuw geladen.",latest_message:"Geen update beschikbaar!\xA0U gebruikt de nieuwste versie.",current_version:"Huidige versie",download_zip_file:"Download ZIP-bestand",unzipping_package:"Pakket uitpakken",copying_files:"Bestanden kopi\xEBren",running_migrations:"Migraties uitvoeren",finishing_update:"Afwerking Update",update_failed:"Update mislukt",update_failed_text:"Sorry!\xA0Je update is mislukt op: {step} step "},backup:{title:"Backup | Backups",description:"De back-up is een zipfile met alle bestanden in de mappen die je opgeeft samen met een dump van je database",new_backup:"Nieuwe back-up",create_backup:"Backup maken",select_backup_type:"Backup-type selecteren",backup_confirm_delete:"U kunt deze back-up niet terughalen",path:"pad",new_disk:"Nieuwe schijf",created_at:"aangemaakt op",size:"grootte",dropbox:"dropbox",local:"lokaal",healthy:"gezond",amount_of_backups:"aantal back-ups",newest_backups:"nieuwste back-ups",used_storage:"gebruikte opslag",select_disk:"Selecteer Disk",action:"Actie",deleted_message:"Back-up is succesvol verwijderd",created_message:"Back-up successvol gemaakt",invalid_disk_credentials:"Ongeldige inloggegevens voor geselecteerde schijf"},disk:{title:"Bestandsschijf | Bestandsschijven",description:"Standaard gebruikt Crater uw lokale schijf om back-ups, avatars en andere afbeeldingen op te slaan. U kunt indien gewenst meer dan \xE9\xE9n opslaglocatie configureren zoals DigitalOcean, S3 en Dropbox.",created_at:"aangemaakt op",dropbox:"dropbox",name:"Naam",driver:"Stuurprogramma",disk_type:"Type",disk_name:"Naam van de schijf",new_disk:"Nieuwe schijf toevoegen",filesystem_driver:"Filesystem Driver",local_driver:"lokaal besturingsprogramma",local_root:"local Root",public_driver:"Publiek besturingsprogramma",public_root:"Public Root",public_url:"Publieke URL",public_visibility:"Publieke zichtbaarheid",media_driver:"Media stuurprogramma",media_root:"Media Root",aws_driver:"AWS Stuurprogramma",aws_key:"AWS Sleutel",aws_secret:"AWS Secret",aws_region:"AWS Regio",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces Key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Regio",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Standaard stuurprogramma",is_default:"IS STANDAARD",set_default_disk:"Standaardschijf instellen",success_set_default_disk:"Standaardschijf ingesteld",save_pdf_to_disk:"PDF's opslaan op schijf",disk_setting_description:" Schakel dit in als je een kopie van elke factuur, raming en betalingsbewijs automatisch op je standaard schijf wilt opslaan. Het inschakelen van deze optie zal de laadtijd verminderen wanneer de PDF's worden bekeken.",select_disk:"Selecteer Schijf",disk_settings:"Schijfinstellingen",confirm_delete:"Uw bestaande bestanden en mappen in de opgegeven schijf worden niet be\xEFnvloed, maar uw schijfconfiguratie wordt uit Crater verwijderd",action:"Actie",edit_file_disk:"Bestandsschijf bewerken",success_create:"Schijf toegevoegd",success_update:"Schijf bijgewerkt",error:"Schijf niet toegevoegd",deleted_message:"Bestandsschijf verwijderd",disk_variables_save_successfully:"Schijf geconfigureerd",disk_variables_save_error:"Schijfconfiguratie mislukt.",invalid_disk_credentials:"Ongeldige inloggegevens voor geselecteerde schijf"}},yp={account_info:"Account Informatie",account_info_desc:"Onderstaande gegevens worden gebruikt om het hoofdbeheerdersaccount te maken.\xA0Ook kunt u de gegevens op elk moment wijzigen na inloggen.",name:"Naam",email:"E-mail",password:"Wachtwoord",confirm_password:"bevestig wachtwoord",save_cont:"Opslaan doorgaan",company_info:"Bedrijfsinformatie",company_info_desc:"Deze informatie wordt weergegeven op facturen.\xA0Merk op dat u dit later op de instellingenpagina kunt bewerken.",company_name:"Bedrijfsnaam",company_logo:"Bedrijfslogo",logo_preview:"Logo Voorbeeld",preferences:"Voorkeuren",preferences_desc:"Standaardvoorkeuren voor het systeem.",country:"Land",state:"Provincie",city:"Stad",address:"Adres",street:"Straat1 |\xA0Straat # 2",phone:"Telefoon",zip_code:"Postcode",go_back:"Ga terug",currency:"Valuta",language:"Taal",time_zone:"Tijdzone",fiscal_year:"Financieel jaar",date_format:"Datumnotatie",from_address:"Van adres",username:"Gebruikersnaam",next:"De volgende",continue:"Doorgaan met",skip:"Overslaan",database:{database:"Site-URL en database",connection:"Database verbinding",host:"Database host",port:"Databasepoort",password:"Database wachtwoord",app_url:"App-URL",app_domain:"App Domein",username:"Database gebruikersnaam",db_name:"Database naam",db_path:"Databankpad",desc:"Maak een database op uw server en stel de referenties in via het onderstaande formulier."},permissions:{permissions:"Rechten",permission_confirm_title:"Weet je zeker dat je door wilt gaan?",permission_confirm_desc:"Controle van maprechten is mislukt",permission_desc:"Hieronder vindt u de lijst met mapmachtigingen die vereist zijn om de app te laten werken.\xA0Als de machtigingscontrole mislukt, moet u de mapmachtigingen bijwerken."},mail:{host:"E-mail server",port:"E-mail Poort",driver:"Mail-stuurprogramma",secret:"Geheim",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domein",mailgun_endpoint:"Mailgun-eindpunt",ses_secret:"SES Secret",ses_key:"SES-sleutel",password:"Mail wachtwoord",username:"Mail gebruikersnaam",mail_config:"E-mailconfiguratie",from_name:"Van Mail Name",from_mail:"Van e-mailadres",encryption:"E-mailversleuteling",mail_config_desc:"Hieronder vindt u het formulier voor het configureren van het e-mailstuurprogramma voor het verzenden van e-mails vanuit de app.\xA0U kunt ook externe providers zoals Sendgrid, SES enz. Configureren."},req:{system_req:"systeem vereisten",php_req_version:"PHP (versie {versie} vereist))",check_req:"Controleer vereisten",system_req_desc:"Crater heeft een paar serververeisten.\xA0Zorg ervoor dat uw server de vereiste php-versie heeft en alle onderstaande extensies."},errors:{migrate_failed:"Migreren mislukt",database_variables_save_error:"Kan configuratie niet schrijven naar .env-bestand.\xA0Controleer de bestandsrechten",mail_variables_save_error:"E-mailconfiguratie is mislukt.",connection_failed:"Databaseverbinding mislukt",database_should_be_empty:"Database moet leeg zijn"},success:{mail_variables_save_successfully:"E-mail succesvol geconfigureerd",database_variables_save_successfully:"Database succesvol geconfigureerd."}},bp={invalid_phone:"Ongeldig Telefoonnummer",invalid_url:"Ongeldige URL (bijvoorbeeld: http://www.craterapp.com))",invalid_domain_url:"Ongeldige URL (bijvoorbeeld: craterapp.com))",required:"Veld is verplicht",email_incorrect:"Incorrecte Email.",email_already_taken:"De email is al in gebruik.",email_does_not_exist:"Gebruiker met opgegeven e-mailadres bestaat niet",item_unit_already_taken:"De naam van dit item is al in gebruik",payment_mode_already_taken:"Deze naam voor de betalingsmodus is al in gebruik",send_reset_link:"Stuur resetlink",not_yet:"Nog niet?\xA0Stuur het opnieuw",password_min_length:"Wachtwoord moet {count} tekens bevatten",name_min_length:"Naam moet minimaal {count} letters bevatten.",enter_valid_tax_rate:"Voer een geldig belastingtarief in",numbers_only:"Alleen nummers.",characters_only:"Alleen tekens.",password_incorrect:"Wachtwoorden moeten identiek zijn",password_length:"Wachtwoord moet {count} tekens lang zijn.",qty_must_greater_than_zero:"Hoeveelheid moet groter zijn dan nul.",price_greater_than_zero:"Prijs moet groter zijn dan nul.",payment_greater_than_zero:"De betaling moet hoger zijn dan nul.",payment_greater_than_due_amount:"Ingevoerde betaling is meer dan het openstaande bedrag van deze factuur.",quantity_maxlength:"Het aantal mag niet groter zijn dan 20 cijfers.",price_maxlength:"Prijs mag niet groter zijn dan 20 cijfers.",price_minvalue:"Prijs moet hoger zijn dan 0.",amount_maxlength:"Bedrag mag niet groter zijn dan 20 cijfers.",amount_minvalue:"Bedrag moet groter zijn dan 0.",description_maxlength:"De beschrijving mag niet meer dan 255 tekens bevatten.",subject_maxlength:"Het onderwerp mag niet meer dan 100 tekens bevatten.",message_maxlength:"Bericht mag niet groter zijn dan 255 tekens.",maximum_options_error:"Maximaal {max} opties geselecteerd.\xA0Verwijder eerst een geselecteerde optie om een andere te selecteren.",notes_maxlength:"Notities mogen niet langer zijn dan 255 tekens.",address_maxlength:"Adres mag niet groter zijn dan 255 tekens.",ref_number_maxlength:"Ref-nummer mag niet groter zijn dan 255 tekens.",prefix_maxlength:"Het voorvoegsel mag niet meer dan 5 tekens bevatten.",something_went_wrong:"Er is iets fout gegaan"},kp="Offerte",wp="Offerte nummer",xp="Offerte Datum",zp="Vervaldatum",Sp="Factuur",jp="Factuurnummer",Pp="Factuur datum",Dp="Opleveringsdatum",Cp="Opmerkingen",Ap="Artikelen",Ep="Aantal stuks",Np="Prijs",Tp="Korting",Ip="Bedrag",$p="Subtotaal",Rp="Totaal",Fp="Payment",Mp="Betalingsafschrift",Vp="Betalingsdatum",Bp="Betalingsnummer",Op="Betaalmethode",Lp="Ontvangen bedrag",Up="UITGAVEN RAPPORT",Kp="TOTALE UITGAVEN",qp="WINST & VERLIES RAPPORT",Zp="Sales Customer Report",Wp="Sales Item Report",Hp="Tax Summary Report",Gp="INKOMEN",Yp="NETTO WINST",Jp="Verkooprapport: per klant",Xp="TOTALE VERKOPEN",Qp="Verkooprapport: Per Item",eg="BELASTINGEN RAPPORT",tg="TOTALE BELASTINGEN",ag="Belastingtypen",sg="Uitgaven",ng="Rekening naar,",ig="Verzend naar,",og="Ontvangen van:",rg="Tax";var dg={navigation:np,general:ip,dashboard:op,tax_types:rp,global_search:dp,customers:lp,items:cp,estimates:_p,invoices:up,payments:mp,expenses:pp,login:gp,users:fp,reports:hp,settings:vp,wizard:yp,validation:bp,pdf_estimate_label:kp,pdf_estimate_number:wp,pdf_estimate_date:xp,pdf_estimate_expire_date:zp,pdf_invoice_label:Sp,pdf_invoice_number:jp,pdf_invoice_date:Pp,pdf_invoice_due_date:Dp,pdf_notes:Cp,pdf_items_label:Ap,pdf_quantity_label:Ep,pdf_price_label:Np,pdf_discount_label:Tp,pdf_amount_label:Ip,pdf_subtotal:$p,pdf_total:Rp,pdf_payment_label:Fp,pdf_payment_receipt_label:Mp,pdf_payment_date:Vp,pdf_payment_number:Bp,pdf_payment_mode:Op,pdf_payment_amount_received_label:Lp,pdf_expense_report_label:Up,pdf_total_expenses_label:Kp,pdf_profit_loss_label:qp,pdf_sales_customers_label:Zp,pdf_sales_items_label:Wp,pdf_tax_summery_label:Hp,pdf_income_label:Gp,pdf_net_profit_label:Yp,pdf_customer_sales_report:Jp,pdf_total_sales_label:Xp,pdf_item_sales_label:Qp,pdf_tax_report_label:eg,pdf_total_tax_label:tg,pdf_tax_types_label:ag,pdf_expenses_label:sg,pdf_bill_to:ng,pdf_ship_to:ig,pdf_received_from:og,pdf_tax_label:rg};const lg={dashboard:"\uACC4\uAE30\uBC18",customers:"\uACE0\uAC1D",items:"\uC544\uC774\uD15C",invoices:"\uC1A1\uC7A5",expenses:"\uACBD\uBE44",estimates:"\uACAC\uC801",payments:"\uC9C0\uBD88",reports:"\uBCF4\uACE0\uC11C",settings:"\uC124\uC815",logout:"\uB85C\uADF8 \uC544\uC6C3",users:"\uC0AC\uC6A9\uC790"},cg={add_company:"\uD68C\uC0AC \uCD94\uAC00",view_pdf:"PDF\uBCF4\uAE30",copy_pdf_url:"PDF URL \uBCF5\uC0AC",download_pdf:"PDF \uB2E4\uC6B4\uB85C\uB4DC",save:"\uC800\uC7A5",create:"\uCC3D\uC870\uD558\uB2E4",cancel:"\uCDE8\uC18C",update:"\uCD5C\uC2E0 \uC815\uBCF4",deselect:"\uC120\uD0DD \uCDE8\uC18C",download:"\uB2E4\uC6B4\uB85C\uB4DC",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from:"\uC5D0\uC11C",to:"\uC5D0",sort_by:"\uC815\uB82C \uAE30\uC900",ascending:"\uC624\uB984\uCC28\uC21C",descending:"\uB0B4\uB9BC\uCC28\uC21C",subject:"\uC81C\uBAA9",body:"\uBAB8",message:"\uBA54\uC2DC\uC9C0",send:"\uBCF4\uB0B4\uB2E4",go_back:"\uB3CC\uC544 \uAC00\uAE30",back_to_login:"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",home:"\uC9D1",filter:"\uD544\uD130",delete:"\uC9C0\uC6B0\uB2E4",edit:"\uD3B8\uC9D1\uD558\uB2E4",view:"\uC804\uB9DD",add_new_item:"\uC0C8 \uD56D\uBAA9 \uCD94\uAC00",clear_all:"\uBAA8\uB450 \uC9C0\uC6B0\uAE30",showing:"\uC804\uC2DC",of:"\uC758",actions:"\uD589\uC704",subtotal:"\uC18C\uACC4",discount:"\uD560\uC778",fixed:"\uACB0\uC815\uB41C",percentage:"\uBC31\uBD84\uC728",tax:"\uC138",total_amount:"\uCD1D\uC561",bill_to:"\uCCAD\uAD6C \uB300\uC0C1",ship_to:"\uBC30\uC1A1\uC9C0",due:"\uC815\uB2F9\uD55C",draft:"\uCD08\uC548",sent:"\uBCF4\uB0C4",all:"\uBAA8\uB450",select_all:"\uBAA8\uB450 \uC120\uD0DD",choose_file:"\uD30C\uC77C\uC744 \uC120\uD0DD\uD558\uB824\uBA74 \uC5EC\uAE30\uB97C \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624",choose_template:"\uD15C\uD50C\uB9BF \uC120\uD0DD",choose:"\uACE0\uB974\uB2E4",remove:"\uC5C6\uC560\uB2E4",powered_by:"\uC81C\uACF5",bytefury:"\uBC14\uC774\uD2B8 \uD4E8\uB9AC",select_a_status:"\uC0C1\uD0DC \uC120\uD0DD",select_a_tax:"\uC138\uAE08 \uC120\uD0DD",search:"\uAC80\uC0C9",are_you_sure:"\uD655\uC2E4\uD569\uB2C8\uAE4C?",list_is_empty:"\uBAA9\uB85D\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",no_tax_found:"\uC138\uAE08\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",four_zero_four:"404",you_got_lost:"\uC774\uB7F0! \uB2F9\uC2E0\uC740 \uAE38\uC744 \uC783\uC5C8\uC2B5\uB2C8\uB2E4!",go_home:"\uC9D1\uC5D0\uAC00",test_mail_conf:"\uBA54\uC77C \uAD6C\uC131 \uD14C\uC2A4\uD2B8",send_mail_successfully:"\uBA54\uC77C\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uBCF4\uB0C8\uC2B5\uB2C8\uB2E4.",setting_updated:"\uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",select_state:"\uC8FC \uC120\uD0DD",select_country:"\uAD6D\uAC00 \uC120\uD0DD",select_city:"\uB3C4\uC2DC \uC120\uD0DD",street_1:"\uAC70\uB9AC 1",street_2:"\uAC70\uB9AC 2",action_failed:"\uC791\uC5C5 \uC2E4\uD328",retry:"\uB2E4\uC2DC \uD574 \uBCF4\uB2E4",choose_note:"\uCC38\uACE0 \uC120\uD0DD",no_note_found:"\uBA54\uBAA8\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",insert_note:"\uBA54\uBAA8 \uC0BD\uC785",copied_pdf_url_clipboard:"PDF URL\uC744 \uD074\uB9BD \uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4!"},_g={select_year:"\uC5F0\uB3C4 \uC120\uD0DD",cards:{due_amount:"\uC9C0\uBD88\uC561",customers:"\uACE0\uAC1D",invoices:"\uC1A1\uC7A5",estimates:"\uACAC\uC801"},chart_info:{total_sales:"\uB9E4\uC0C1",total_receipts:"\uC601\uC218\uC99D",total_expense:"\uACBD\uBE44",net_income:"\uC21C\uC774\uC775",year:"\uC5F0\uB3C4 \uC120\uD0DD"},monthly_chart:{title:"\uB9E4\uC0C1"},recent_invoices_card:{title:"\uB9CC\uAE30 \uC1A1\uC7A5",due_on:"\uAE30\uD55C",customer:"\uACE0\uAC1D",amount_due:"\uC9C0\uBD88\uC561",actions:"\uD589\uC704",view_all:"\uBAA8\uB450\uBCF4\uAE30"},recent_estimate_card:{title:"\uCD5C\uADFC \uACAC\uC801",date:"\uB370\uC774\uD2B8",customer:"\uACE0\uAC1D",amount_due:"\uC9C0\uBD88\uC561",actions:"\uD589\uC704",view_all:"\uBAA8\uB450\uBCF4\uAE30"}},ug={name:"\uC774\uB984",description:"\uAE30\uC220",percent:"\uD37C\uC13C\uD2B8",compound_tax:"\uBCF5\uD569 \uC138"},mg={search:"\uAC80\uC0C9...",customers:"\uACE0\uAC1D",users:"\uC0AC\uC6A9\uC790",no_results_found:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4"},pg={title:"\uACE0\uAC1D",add_customer:"\uACE0\uAC1D \uCD94\uAC00",contacts_list:"\uACE0\uAC1D \uBAA9\uB85D",name:"\uC774\uB984",mail:"\uBA54\uC77C | \uBA54\uC77C",statement:"\uC131\uBA85\uC11C",display_name:"\uC774\uB984 \uD45C\uC2DC\uD558\uAE30",primary_contact_name:"\uAE30\uBCF8 \uC5F0\uB77D\uCC98 \uC774\uB984",contact_name:"\uB2F4\uB2F9\uC790 \uC774\uB984",amount_due:"\uC9C0\uBD88\uC561",email:"\uC774\uBA54\uC77C",address:"\uC8FC\uC18C",phone:"\uC804\uD654",website:"\uC6F9 \uC0AC\uC774\uD2B8",overview:"\uAC1C\uC694",enable_portal:"\uD3EC\uD138 \uD65C\uC131\uD654",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",zip_code:"\uC6B0\uD3B8 \uBC88\uD638",added_on:"\uCD94\uAC00\uB428",action:"\uB3D9\uC791",password:"\uC554\uD638",street_number:"\uBC88\uC9C0",primary_currency:"\uAE30\uBCF8 \uD1B5\uD654",description:"\uAE30\uC220",add_new_customer:"\uC2E0\uADDC \uACE0\uAC1D \uCD94\uAC00",save_customer:"\uACE0\uAC1D \uC800\uC7A5",update_customer:"\uACE0\uAC1D \uC5C5\uB370\uC774\uD2B8",customer:"\uACE0\uAC1D | \uACE0\uAC1D",new_customer:"\uC2E0\uADDC \uACE0\uAC1D",edit_customer:"\uACE0\uAC1D \uD3B8\uC9D1",basic_info:"\uAE30\uBCF8 \uC815\uBCF4",billing_address:"\uCCAD\uAD6C \uC9C0 \uC8FC\uC18C",shipping_address:"\uBC30\uC1A1 \uC8FC\uC18C",copy_billing_address:"\uACB0\uC81C\uC5D0\uC11C \uBCF5\uC0AC",no_customers:"\uC544\uC9C1 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",no_customers_found:"\uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",no_contact:"\uC5F0\uB77D\uCC98 \uC5C6\uC74C",no_contact_name:"\uC5F0\uB77D\uCC98 \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",list_of_customers:"\uC774 \uC139\uC158\uC5D0\uB294 \uACE0\uAC1D \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",primary_display_name:"\uAE30\uBCF8 \uD45C\uC2DC \uC774\uB984",select_currency:"\uD1B5\uD654 \uC120\uD0DD",select_a_customer:"\uACE0\uAC1D \uC120\uD0DD",type_or_click:"\uC785\uB825\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD",new_transaction:"\uC0C8\uB85C\uC6B4 \uAC70\uB798",no_matching_customers:"\uC77C\uCE58\uD558\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",phone_number:"\uC804\uD654 \uBC88\uD638",create_date:"\uB0A0\uC9DC \uC0DD\uC131",confirm_delete:"\uC774 \uACE0\uAC1D\uACFC \uBAA8\uB4E0 \uAD00\uB828 \uC1A1\uC7A5, \uACAC\uC801 \uBC0F \uC9C0\uBD88\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uACE0\uAC1D \uBC0F \uBAA8\uB4E0 \uAD00\uB828 \uCCAD\uAD6C\uC11C, \uACAC\uC801 \uBC0F \uC9C0\uBD88\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uD588\uC2B5\uB2C8\uB2E4.",deleted_message:"\uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uACE0\uAC1D\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},gg={title:"\uC544\uC774\uD15C",items_list:"\uD488\uBAA9 \uBAA9\uB85D",name:"\uC774\uB984",unit:"\uB2E8\uC704",description:"\uAE30\uC220",added_on:"\uCD94\uAC00\uB428",price:"\uAC00\uACA9",date_of_creation:"\uC0DD\uC131 \uC77C",not_selected:"\uC120\uD0DD\uD55C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",action:"\uB3D9\uC791",add_item:"\uC544\uC774\uD15C \uCD94\uAC00",save_item:"\uD56D\uBAA9 \uC800\uC7A5",update_item:"\uD56D\uBAA9 \uC5C5\uB370\uC774\uD2B8",item:"\uD56D\uBAA9 | \uC544\uC774\uD15C",add_new_item:"\uC0C8 \uD56D\uBAA9 \uCD94\uAC00",new_item:"\uC0C8\uB85C\uC6B4 \uBB3C\uD488",edit_item:"\uD56D\uBAA9 \uD3B8\uC9D1",no_items:"\uC544\uC9C1 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_items:"\uC774 \uC139\uC158\uC5D0\uB294 \uD56D\uBAA9 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",select_a_unit:"\uB2E8\uC704 \uC120\uD0DD",taxes:"\uAD6C\uC2E4",item_attached_message:"\uC774\uBBF8 \uC0AC\uC6A9\uC911\uC778 \uD56D\uBAA9\uC740 \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uD56D\uBAA9\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774 \uD56D\uBAA9\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uD56D\uBAA9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},fg={title:"\uACAC\uC801",estimate:"\uACAC\uC801 | \uACAC\uC801",estimates_list:"\uACAC\uC801 \uBAA9\uB85D",days:"{days} \uC77C",months:"{months} \uAC1C\uC6D4",years:"{years} \uB144",all:"\uBAA8\uB450",paid:"\uC720\uB8CC",unpaid:"\uBBF8\uC9C0\uAE09",customer:"\uACE0\uAC1D",ref_no:"\uCC38\uC870 \uBC88\uD638.",number:"\uBC88\uD638",amount_due:"\uC9C0\uBD88\uC561",partially_paid:"\uBD80\uBD84 \uC9C0\uBD88",total:"\uD569\uACC4",discount:"\uD560\uC778",sub_total:"\uC18C\uACC4",estimate_number:"\uACAC\uC801 \uBC88\uD638",ref_number:"\uCC38\uC870 \uBC88\uD638",contact:"\uC811\uCD09",add_item:"\uD56D\uBAA9 \uCD94\uAC00",date:"\uB370\uC774\uD2B8",due_date:"\uB9C8\uAC10\uC77C",expiry_date:"\uB9CC\uB8CC\uC77C",status:"\uC0C1\uD0DC",add_tax:"\uC138\uAE08 \uCD94\uAC00",amount:"\uC591",action:"\uB3D9\uC791",notes:"\uB178\uD2B8",tax:"\uC138",estimate_template:"\uC8FC\uD615",convert_to_invoice:"\uC1A1\uC7A5\uC73C\uB85C \uBCC0\uD658",mark_as_sent:"\uBCF4\uB0B8 \uAC83\uC73C\uB85C \uD45C\uC2DC",send_estimate:"\uACAC\uC801 \uBCF4\uB0B4\uAE30",resend_estimate:"\uACAC\uC801 \uC7AC\uC804\uC1A1",record_payment:"\uAE30\uB85D \uC9C0\uBD88",add_estimate:"\uACAC\uC801 \uCD94\uAC00",save_estimate:"\uACAC\uC801 \uC800\uC7A5",confirm_conversion:"\uC774 \uACAC\uC801\uC740 \uC0C8 \uC778\uBCF4\uC774\uC2A4\uB97C \uB9CC\uB4DC\uB294 \uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",conversion_message:"\uC778\uBCF4\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",confirm_send_estimate:"\uC774 \uACAC\uC801\uC740 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uC804\uC1A1\uB429\uB2C8\uB2E4.",confirm_mark_as_sent:"\uC774 \uACAC\uC801\uC740 \uC804\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_mark_as_accepted:"\uC774 \uACAC\uC801\uC740 \uC218\uB77D \uB428\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_mark_as_rejected:"\uC774 \uACAC\uC801\uC740 \uAC70\uBD80 \uB428\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",no_matching_estimates:"\uC77C\uCE58\uD558\uB294 \uACAC\uC801\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",mark_as_sent_successfully:"\uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uACAC\uC801",send_estimate_successfully:"\uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",errors:{required:"\uD544\uB4DC\uB294 \uD544\uC218\uC785\uB2C8\uB2E4"},accepted:"\uC218\uB77D \uB428",rejected:"\uAC70\uBD80 \uB428",sent:"\uBCF4\uB0C4",draft:"\uCD08\uC548",declined:"\uAC70\uBD80 \uB428",new_estimate:"\uC0C8\uB85C\uC6B4 \uACAC\uC801",add_new_estimate:"\uC0C8\uB85C\uC6B4 \uACAC\uC801 \uCD94\uAC00",update_Estimate:"\uACAC\uC801 \uC5C5\uB370\uC774\uD2B8",edit_estimate:"\uACAC\uC801 \uC218\uC815",items:"\uD56D\uBAA9",Estimate:"\uACAC\uC801 | \uACAC\uC801",add_new_tax:"\uC0C8 \uC138\uAE08 \uCD94\uAC00",no_estimates:"\uC544\uC9C1 \uACAC\uC801\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_estimates:"\uC774 \uC139\uC158\uC5D0\uB294 \uACAC\uC801 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",mark_as_rejected:"\uAC70\uBD80 \uB428\uC73C\uB85C \uD45C\uC2DC",mark_as_accepted:"\uC218\uB77D \uB428\uC73C\uB85C \uD45C\uC2DC",marked_as_accepted_message:"\uC218\uB77D \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uACAC\uC801",marked_as_rejected_message:"\uAC70\uBD80 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uACAC\uC801",confirm_delete:"\uC774 \uACAC\uC801\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774 \uACAC\uC801\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC608\uC0C1\uCE58\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uACAC\uC801\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4",item:{title:"\uD56D\uBAA9 \uC81C\uBAA9",description:"\uAE30\uC220",quantity:"\uC218\uB7C9",price:"\uAC00\uACA9",discount:"\uD560\uC778",total:"\uD569\uACC4",total_discount:"\uCD1D \uD560\uC778",sub_total:"\uC18C\uACC4",tax:"\uC138",amount:"\uC591",select_an_item:"\uD56D\uBAA9\uC744 \uC785\uB825\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD",type_item_description:"\uC720\uD615 \uD56D\uBAA9 \uC124\uBA85 (\uC120\uD0DD \uC0AC\uD56D)"}},hg={title:"\uC1A1\uC7A5",invoices_list:"\uC1A1\uC7A5 \uBAA9\uB85D",days:"{days} \uC77C",months:"{months} \uAC1C\uC6D4",years:"{years} \uB144",all:"\uBAA8\uB450",paid:"\uC720\uB8CC",unpaid:"\uBBF8\uC9C0\uAE09",viewed:"\uC870\uD68C",overdue:"\uC5F0\uCCB4",completed:"\uC644\uB8CC",customer:"\uACE0\uAC1D",paid_status:"\uC9C0\uBD88 \uC0C1\uD0DC",ref_no:"\uCC38\uC870 \uBC88\uD638.",number:"\uBC88\uD638",amount_due:"\uC9C0\uBD88\uC561",partially_paid:"\uBD80\uBD84 \uC9C0\uBD88",total:"\uD569\uACC4",discount:"\uD560\uC778",sub_total:"\uC18C\uACC4",invoice:"\uC1A1\uC7A5 | \uC1A1\uC7A5",invoice_number:"\uC1A1\uC7A5 \uBC88\uD638",ref_number:"\uCC38\uC870 \uBC88\uD638",contact:"\uC811\uCD09",add_item:"\uD56D\uBAA9 \uCD94\uAC00",date:"\uB370\uC774\uD2B8",due_date:"\uB9C8\uAC10\uC77C",status:"\uC0C1\uD0DC",add_tax:"\uC138\uAE08 \uCD94\uAC00",amount:"\uC591",action:"\uB3D9\uC791",notes:"\uB178\uD2B8",view:"\uC804\uB9DD",send_invoice:"\uC1A1\uC7A5\uC744 \uBCF4\uB0B4\uB2E4",resend_invoice:"\uC778\uBCF4\uC774\uC2A4 \uC7AC\uC804\uC1A1",invoice_template:"\uC1A1\uC7A5 \uD15C\uD50C\uB9BF",template:"\uC8FC\uD615",mark_as_sent:"\uBCF4\uB0B8 \uAC83\uC73C\uB85C \uD45C\uC2DC",confirm_send_invoice:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB294 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uBC1C\uC1A1\uB429\uB2C8\uB2E4.",invoice_mark_as_sent:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB294 \uBCF4\uB0B8 \uAC83\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_send:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB294 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uBC1C\uC1A1\uB429\uB2C8\uB2E4.",invoice_date:"\uC1A1\uC7A5 \uB0A0\uC9DC",record_payment:"\uAE30\uB85D \uC9C0\uBD88",add_new_invoice:"\uC0C8 \uC1A1\uC7A5 \uCD94\uAC00",update_expense:"\uBE44\uC6A9 \uC5C5\uB370\uC774\uD2B8",edit_invoice:"\uC1A1\uC7A5 \uD3B8\uC9D1",new_invoice:"\uC0C8 \uC1A1\uC7A5",save_invoice:"\uC1A1\uC7A5 \uC800\uC7A5",update_invoice:"\uC1A1\uC7A5 \uC5C5\uB370\uC774\uD2B8",add_new_tax:"\uC0C8 \uC138\uAE08 \uCD94\uAC00",no_invoices:"\uC544\uC9C1 \uC778\uBCF4\uC774\uC2A4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_invoices:"\uC774 \uC139\uC158\uC5D0\uB294 \uC1A1\uC7A5 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",select_invoice:"\uC1A1\uC7A5 \uC120\uD0DD",no_matching_invoices:"\uC77C\uCE58\uD558\uB294 \uC1A1\uC7A5\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",mark_as_sent_successfully:"\uC131\uACF5\uC801\uC73C\uB85C \uBC1C\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uC1A1\uC7A5",invoice_sent_successfully:"\uC778\uBCF4\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",cloned_successfully:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uBCF5\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",clone_invoice:"\uC1A1\uC7A5 \uBCF5\uC81C",confirm_clone:"\uC774 \uC1A1\uC7A5\uC740 \uC0C8 \uC1A1\uC7A5\uC5D0 \uBCF5\uC81C\uB429\uB2C8\uB2E4.",item:{title:"\uD56D\uBAA9 \uC81C\uBAA9",description:"\uAE30\uC220",quantity:"\uC218\uB7C9",price:"\uAC00\uACA9",discount:"\uD560\uC778",total:"\uD569\uACC4",total_discount:"\uCD1D \uD560\uC778",sub_total:"\uC18C\uACC4",tax:"\uC138",amount:"\uC591",select_an_item:"\uD56D\uBAA9\uC744 \uC785\uB825\uD558\uAC70\uB098 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD",type_item_description:"\uC720\uD615 \uD56D\uBAA9 \uC124\uBA85 (\uC120\uD0DD \uC0AC\uD56D)"},confirm_delete:"\uC774 \uC778\uBCF4\uC774\uC2A4\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uC778\uBCF4\uC774\uC2A4\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC1A1\uC7A5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uC778\uBCF4\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",marked_as_sent_message:"\uC131\uACF5\uC801\uC73C\uB85C \uBC1C\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB41C \uC1A1\uC7A5",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4",invalid_due_amount_message:"\uCD1D \uC1A1\uC7A5 \uAE08\uC561\uC740\uC774 \uC1A1\uC7A5\uC5D0 \uB300\uD55C \uCD1D \uC9C0\uBD88 \uAE08\uC561\uBCF4\uB2E4 \uC791\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uB824\uBA74 \uC778\uBCF4\uC774\uC2A4\uB97C \uC5C5\uB370\uC774\uD2B8\uD558\uAC70\uB098 \uAD00\uB828 \uACB0\uC81C\uB97C \uC0AD\uC81C\uD558\uC138\uC694."},vg={title:"\uC9C0\uBD88",payments_list:"\uC9C0\uBD88 \uBAA9\uB85D",record_payment:"\uAE30\uB85D \uC9C0\uBD88",customer:"\uACE0\uAC1D",date:"\uB370\uC774\uD2B8",amount:"\uC591",action:"\uB3D9\uC791",payment_number:"\uACB0\uC81C \uBC88\uD638",payment_mode:"\uC9C0\uBD88 \uBAA8\uB4DC",invoice:"\uC1A1\uC7A5",note:"\uB178\uD2B8",add_payment:"\uC9C0\uBD88 \uCD94\uAC00",new_payment:"\uC0C8\uB85C\uC6B4 \uC9C0\uBD88",edit_payment:"\uACB0\uC81C \uC218\uC815",view_payment:"\uACB0\uC81C\uBCF4\uAE30",add_new_payment:"\uC0C8 \uC9C0\uBD88 \uCD94\uAC00",send_payment_receipt:"\uACB0\uC81C \uC601\uC218\uC99D \uBCF4\uB0B4\uAE30",send_payment:"\uC9C0\uBD88 \uBCF4\uB0B4\uAE30",save_payment:"\uC9C0\uBD88 \uC800\uC7A5",update_payment:"\uACB0\uC81C \uC5C5\uB370\uC774\uD2B8",payment:"\uC9C0\uBD88 | \uC9C0\uBD88",no_payments:"\uC544\uC9C1 \uACB0\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4!",not_selected:"\uC120\uD0DD\uB418\uC9C0 \uC54A\uC740",no_invoice:"\uC1A1\uC7A5 \uC5C6\uC74C",no_matching_payments:"\uC77C\uCE58\uD558\uB294 \uC9C0\uBD88\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_payments:"\uC774 \uC139\uC158\uC5D0\uB294 \uC9C0\uBD88 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",select_payment_mode:"\uACB0\uC81C \uBAA8\uB4DC \uC120\uD0DD",confirm_mark_as_sent:"\uC774 \uACAC\uC801\uC740 \uC804\uC1A1 \uB41C \uAC83\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",confirm_send_payment:"\uC774 \uACB0\uC81C\uB294 \uC774\uBA54\uC77C\uC744 \uD1B5\uD574 \uACE0\uAC1D\uC5D0\uAC8C \uC804\uC1A1\uB429\uB2C8\uB2E4.",send_payment_successfully:"\uC9C0\uBD88\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC804\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4",confirm_delete:"\uC774 \uC9C0\uBD88\uAE08\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774 \uC9C0\uAE09\uAE08\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uACB0\uC81C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",invalid_amount_message:"\uACB0\uC81C \uAE08\uC561\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},yg={title:"\uACBD\uBE44",expenses_list:"\uBE44\uC6A9 \uBAA9\uB85D",select_a_customer:"\uACE0\uAC1D \uC120\uD0DD",expense_title:"\uD45C\uC81C",customer:"\uACE0\uAC1D",contact:"\uC811\uCD09",category:"\uBC94\uC8FC",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",to_date:"\uD604\uC7AC\uAE4C\uC9C0",expense_date:"\uB370\uC774\uD2B8",description:"\uAE30\uC220",receipt:"\uC601\uC218\uC99D",amount:"\uC591",action:"\uB3D9\uC791",not_selected:"\uC120\uD0DD\uB418\uC9C0 \uC54A\uC740",note:"\uB178\uD2B8",category_id:"\uCE74\uD14C\uACE0\uB9AC ID",date:"\uB370\uC774\uD2B8",add_expense:"\uBE44\uC6A9 \uCD94\uAC00",add_new_expense:"\uC2E0\uADDC \uBE44\uC6A9 \uCD94\uAC00",save_expense:"\uBE44\uC6A9 \uC808\uAC10",update_expense:"\uBE44\uC6A9 \uC5C5\uB370\uC774\uD2B8",download_receipt:"\uC601\uC218\uC99D \uB2E4\uC6B4\uB85C\uB4DC",edit_expense:"\uBE44\uC6A9 \uD3B8\uC9D1",new_expense:"\uC0C8\uB85C\uC6B4 \uBE44\uC6A9",expense:"\uBE44\uC6A9 | \uACBD\uBE44",no_expenses:"\uC544\uC9C1 \uBE44\uC6A9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_expenses:"\uC774 \uC139\uC158\uC5D0\uB294 \uBE44\uC6A9 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",confirm_delete:"\uC774 \uBE44\uC6A9\uC744 \uD68C\uC218 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uBE44\uC6A9\uC740 \uD68C\uC218 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uBE44\uC6A9\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",categories:{categories_list:"\uCE74\uD14C\uACE0\uB9AC \uBAA9\uB85D",title:"\uD45C\uC81C",name:"\uC774\uB984",description:"\uAE30\uC220",amount:"\uC591",actions:"\uD589\uC704",add_category:"\uCE74\uD14C\uACE0\uB9AC \uCD94\uAC00",new_category:"\uC0C8 \uBD84\uB958",category:"\uCE74\uD14C\uACE0\uB9AC | \uCE74\uD14C\uACE0\uB9AC",select_a_category:"\uCE74\uD14C\uACE0\uB9AC \uC120\uD0DD"}},bg={email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",forgot_password:"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C \uC168\uB098\uC694?",or_signIn_with:"\uB610\uB294 \uB2E4\uC74C\uC73C\uB85C \uB85C\uADF8\uC778",login:"\uB85C\uADF8\uC778",register:"\uB808\uC9C0\uC2A4\uD130",reset_password:"\uC554\uD638\uB97C \uC7AC\uC124\uC815",password_reset_successfully:"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815 \uC131\uACF5",enter_email:"\uC774\uBA54\uC77C \uC785\uB825",enter_password:"\uC554\uD638\uB97C \uC785\uB825",retype_password:"\uBE44\uBC00\uBC88\uD638 \uC7AC \uC785\uB825"},kg={title:"\uC0AC\uC6A9\uC790",users_list:"\uC0AC\uC6A9\uC790 \uBAA9\uB85D",name:"\uC774\uB984",description:"\uAE30\uC220",added_on:"\uCD94\uAC00\uB428",date_of_creation:"\uC0DD\uC131 \uC77C",action:"\uB3D9\uC791",add_user:"\uC0AC\uC6A9\uC790 \uCD94\uAC00",save_user:"\uC0AC\uC6A9\uC790 \uC800\uC7A5",update_user:"\uC0AC\uC6A9\uC790 \uC5C5\uB370\uC774\uD2B8",user:"\uC0AC\uC6A9\uC790 | \uC0AC\uC6A9\uC790",add_new_user:"\uC0C8 \uC0AC\uC6A9\uC790 \uCD94\uAC00",new_user:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790",edit_user:"\uC0AC\uC6A9\uC790 \uD3B8\uC9D1",no_users:"\uC544\uC9C1 \uC0AC\uC6A9\uC790\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4!",list_of_users:"\uC774 \uC139\uC158\uC5D0\uB294 \uC0AC\uC6A9\uC790 \uBAA9\uB85D\uC774 \uD3EC\uD568\uB429\uB2C8\uB2E4.",email:"\uC774\uBA54\uC77C",phone:"\uC804\uD654",password:"\uC554\uD638",user_attached_message:"\uC774\uBBF8 \uC0AC\uC6A9\uC911\uC778 \uD56D\uBAA9\uC740 \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uC0AC\uC6A9\uC790\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. | \uC774\uB7EC\uD55C \uC0AC\uC6A9\uC790\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",created_message:"\uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4. | \uC0AC\uC6A9\uC790\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},wg={title:"\uBCF4\uACE0\uC11C",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",to_date:"\uD604\uC7AC\uAE4C\uC9C0",status:"\uC0C1\uD0DC",paid:"\uC720\uB8CC",unpaid:"\uBBF8\uC9C0\uAE09",download_pdf:"PDF \uB2E4\uC6B4\uB85C\uB4DC",view_pdf:"PDF\uBCF4\uAE30",update_report:"\uBCF4\uACE0\uC11C \uC5C5\uB370\uC774\uD2B8",report:"\uC2E0\uACE0 | \uBCF4\uACE0\uC11C",profit_loss:{profit_loss:"\uC774\uC775",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",date_range:"\uAE30\uAC04 \uC120\uD0DD"},sales:{sales:"\uB9E4\uC0C1",date_range:"\uAE30\uAC04 \uC120\uD0DD",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",report_type:"\uBCF4\uACE0\uC11C \uC720\uD615"},taxes:{taxes:"\uAD6C\uC2E4",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",date_range:"\uAE30\uAC04 \uC120\uD0DD"},errors:{required:"\uD544\uB4DC\uB294 \uD544\uC218\uC785\uB2C8\uB2E4"},invoices:{invoice:"\uC1A1\uC7A5",invoice_date:"\uC1A1\uC7A5 \uB0A0\uC9DC",due_date:"\uB9C8\uAC10\uC77C",amount:"\uC591",contact_name:"\uB2F4\uB2F9\uC790 \uC774\uB984",status:"\uC0C1\uD0DC"},estimates:{estimate:"\uACAC\uC801",estimate_date:"\uC608\uC0C1 \uB0A0\uC9DC",due_date:"\uB9C8\uAC10\uC77C",estimate_number:"\uACAC\uC801 \uBC88\uD638",ref_number:"\uCC38\uC870 \uBC88\uD638",amount:"\uC591",contact_name:"\uB2F4\uB2F9\uC790 \uC774\uB984",status:"\uC0C1\uD0DC"},expenses:{expenses:"\uACBD\uBE44",category:"\uBC94\uC8FC",date:"\uB370\uC774\uD2B8",amount:"\uC591",to_date:"\uD604\uC7AC\uAE4C\uC9C0",from_date:"\uC2DC\uC791 \uB0A0\uC9DC",date_range:"\uAE30\uAC04 \uC120\uD0DD"}},xg={menu_title:{account_settings:"\uACC4\uC815 \uC124\uC815",company_information:"\uD68C\uC0AC \uC815\uBCF4",customization:"\uCEE4\uC2A4\uD130\uB9C8\uC774\uC9D5",preferences:"\uD658\uACBD \uC124\uC815",notifications:"\uC54C\uB9BC",tax_types:"\uC138\uAE08 \uC720\uD615",expense_category:"\uBE44\uC6A9 \uBC94\uC8FC",update_app:"\uC571 \uC5C5\uB370\uC774\uD2B8",backup:"\uC9C0\uC6D0",file_disk:"\uD30C\uC77C \uB514\uC2A4\uD06C",custom_fields:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC",payment_modes:"\uC9C0\uBD88 \uBAA8\uB4DC",notes:"\uB178\uD2B8"},title:"\uC124\uC815",setting:"\uC124\uC815 | \uC124\uC815",general:"\uC77C\uBC18",language:"\uC5B8\uC5B4",primary_currency:"\uAE30\uBCF8 \uD1B5\uD654",timezone:"\uC2DC\uAC04\uB300",date_format:"\uB0A0\uC9DC \uD615\uC2DD",currencies:{title:"\uD1B5\uD654",currency:"\uD1B5\uD654 | \uD1B5\uD654",currencies_list:"\uD1B5\uD654 \uBAA9\uB85D",select_currency:"\uD1B5\uD654 \uC120\uD0DD",name:"\uC774\uB984",code:"\uC554\uD638",symbol:"\uC0C1\uC9D5",precision:"\uC815\uB3C4",thousand_separator:"\uCC9C \uAD6C\uBD84\uC790",decimal_separator:"\uC18C\uC218\uC810 \uAD6C\uBD84 \uAE30\uD638",position:"\uC704\uCE58",position_of_symbol:"\uAE30\uD638 \uC704\uCE58",right:"\uAD8C\uB9AC",left:"\uC67C\uCABD",action:"\uB3D9\uC791",add_currency:"\uD1B5\uD654 \uCD94\uAC00"},mail:{host:"\uBA54\uC77C \uD638\uC2A4\uD2B8",port:"\uBA54\uC77C \uD3EC\uD2B8",driver:"\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84",secret:"\uBE44\uBC00",mailgun_secret:"Mailgun \uBE44\uBC00",mailgun_domain:"\uB3C4\uBA54\uC778",mailgun_endpoint:"Mailgun \uC5D4\uB4DC \uD3EC\uC778\uD2B8",ses_secret:"SES \uBE44\uBC00",ses_key:"SES \uD0A4",password:"\uBA54\uC77C \uBE44\uBC00\uBC88\uD638",username:"\uBA54\uC77C \uC0AC\uC6A9\uC790 \uC774\uB984",mail_config:"\uBA54\uC77C \uAD6C\uC131",from_name:"\uBA54\uC77C \uC774\uB984\uC5D0\uC11C",from_mail:"\uBA54\uC77C \uC8FC\uC18C\uC5D0\uC11C",encryption:"\uBA54\uC77C \uC554\uD638\uD654",mail_config_desc:"\uB2E4\uC74C\uC740 \uC571\uC5D0\uC11C \uC774\uBA54\uC77C\uC744 \uBCF4\uB0B4\uAE30\uC704\uD55C \uC774\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84 \uAD6C\uC131 \uC591\uC2DD\uC785\uB2C8\uB2E4. Sendgrid, SES \uB4F1\uACFC \uAC19\uC740 \uD0C0\uC0AC \uACF5\uAE09\uC790\uB97C \uAD6C\uC131 \uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4."},pdf:{title:"PDF \uC124\uC815",footer_text:"\uBC14\uB2E5 \uAE00 \uD14D\uC2A4\uD2B8",pdf_layout:"PDF \uB808\uC774\uC544\uC6C3"},company_info:{company_info:"\uD68C\uC0AC \uC815\uBCF4",company_name:"\uD68C\uC0AC \uC774\uB984",company_logo:"\uD68C\uC0AC \uB85C\uACE0",section_description:"Crater\uC5D0\uC11C \uC0DD\uC131 \uD55C \uC1A1\uC7A5, \uACAC\uC801 \uBC0F \uAE30\uD0C0 \uBB38\uC11C\uC5D0 \uD45C\uC2DC \uB420 \uD68C\uC0AC\uC5D0 \uB300\uD55C \uC815\uBCF4.",phone:"\uC804\uD654",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",address:"\uC8FC\uC18C",zip:"\uC9C0\uD37C",save:"\uC800\uC7A5",updated_message:"\uD68C\uC0AC \uC815\uBCF4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},custom_fields:{title:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC",section_description:"\uC1A1\uC7A5, \uACAC\uC801 \uC0AC\uC6A9\uC790 \uC9C0\uC815",add_custom_field:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC \uCD94\uAC00",edit_custom_field:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC \uD3B8\uC9D1",field_name:"\uBD84\uC57C \uBA85",label:"\uC0C1\uD45C",type:"\uC720\uD615",name:"\uC774\uB984",required:"\uD544\uC218",placeholder:"\uC790\uB9AC \uD45C\uC2DC \uC790",help_text:"\uB3C4\uC6C0\uB9D0 \uD14D\uC2A4\uD2B8",default_value:"\uAE30\uBCF8\uAC12",prefix:"\uC811\uB450\uC0AC",starting_number:"\uC2DC\uC791 \uBC88\uD638",model:"\uBAA8\uB378",help_text_description:"\uC0AC\uC6A9\uC790\uAC00\uC774 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC\uC758 \uBAA9\uC801\uC744 \uC774\uD574\uD558\uB294 \uB370 \uB3C4\uC6C0\uC774\uB418\uB294 \uD14D\uC2A4\uD2B8\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624.",suffix:"\uC811\uBBF8\uC0AC",yes:"\uC608",no:"\uC544\uB2C8",order:"\uC8FC\uBB38",custom_field_confirm_delete:"\uC774 \uC0AC\uC6A9\uC790 \uC815\uC758 \uD544\uB4DC\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",options:"\uC635\uC158",add_option:"\uC635\uC158 \uCD94\uAC00",add_another_option:"\uB2E4\uB978 \uC635\uC158 \uCD94\uAC00",sort_in_alphabetical_order:"\uC54C\uD30C\uBCB3\uC21C\uC73C\uB85C \uC815\uB82C",add_options_in_bulk:"\uC77C\uAD04 \uC635\uC158 \uCD94\uAC00",use_predefined_options:"\uBBF8\uB9AC \uC815\uC758 \uB41C \uC635\uC158 \uC0AC\uC6A9",select_custom_date:"\uB9DE\uCDA4 \uB0A0\uC9DC \uC120\uD0DD",select_relative_date:"\uC0C1\uB300 \uB0A0\uC9DC \uC120\uD0DD",ticked_by_default:"\uAE30\uBCF8\uC801\uC73C\uB85C \uC120\uD0DD\uB428",updated_message:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",added_message:"\uB9DE\uCDA4 \uC785\uB825\uB780\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},customization:{customization:"\uB9DE\uCDA4\uD654",save:"\uC800\uC7A5",addresses:{title:"\uAD6C\uC560",section_description:"\uACE0\uAC1D \uCCAD\uAD6C \uC8FC\uC18C \uBC0F \uACE0\uAC1D \uBC30\uC1A1 \uC8FC\uC18C \uD615\uC2DD\uC744 \uC124\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4 (PDF\uB85C\uB9CC \uD45C\uC2DC\uB428).",customer_billing_address:"\uACE0\uAC1D \uCCAD\uAD6C \uC8FC\uC18C",customer_shipping_address:"\uACE0\uAC1D \uBC30\uC1A1 \uC8FC\uC18C",company_address:"\uD68C\uC0AC \uC8FC\uC18C",insert_fields:"\uD544\uB4DC \uC0BD\uC785",contact:"\uC811\uCD09",address:"\uC8FC\uC18C",display_name:"\uC774\uB984 \uD45C\uC2DC\uD558\uAE30",primary_contact_name:"\uAE30\uBCF8 \uC5F0\uB77D\uCC98 \uC774\uB984",email:"\uC774\uBA54\uC77C",website:"\uC6F9 \uC0AC\uC774\uD2B8",name:"\uC774\uB984",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",company_name:"\uD68C\uC0AC \uC774\uB984",address_street_1:"\uC8FC\uC18C \uAC70\uB9AC 1",address_street_2:"\uC8FC\uC18C Street 2",phone:"\uC804\uD654",zip_code:"\uC6B0\uD3B8 \uBC88\uD638",address_setting_updated:"\uC8FC\uC18C \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},updated_message:"\uD68C\uC0AC \uC815\uBCF4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",invoices:{title:"\uC1A1\uC7A5",notes:"\uB178\uD2B8",invoice_prefix:"\uC1A1\uC7A5 \uC811\uB450\uC0AC",default_invoice_email_body:"\uAE30\uBCF8 \uC1A1\uC7A5 \uC774\uBA54\uC77C \uBCF8\uBB38",invoice_settings:"\uC1A1\uC7A5 \uC124\uC815",autogenerate_invoice_number:"\uC1A1\uC7A5 \uBC88\uD638 \uC790\uB3D9 \uC0DD\uC131",autogenerate_invoice_number_desc:"\uC0C8 \uC778\uBCF4\uC774\uC2A4\uB97C \uC0DD\uC131 \uD560 \uB54C\uB9C8\uB2E4 \uC778\uBCF4\uC774\uC2A4 \uBC88\uD638\uB97C \uC790\uB3D9 \uC0DD\uC131\uD558\uC9C0 \uC54A\uC73C\uB824\uBA74\uC774 \uAE30\uB2A5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",invoice_email_attachment:"\uC1A1\uC7A5\uC744 \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uAE30",invoice_email_attachment_setting_description:"\uC778\uBCF4\uC774\uC2A4\uB97C \uC774\uBA54\uC77C \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uC774\uBA54\uC77C\uC758 &#39;\uC778\uBCF4\uC774\uC2A4\uBCF4\uAE30&#39;\uBC84\uD2BC\uC774 \uD65C\uC131\uD654\uB418\uBA74 \uB354 \uC774\uC0C1 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",enter_invoice_prefix:"\uC1A1\uC7A5 \uC811\uB450\uC0AC \uC785\uB825",terms_and_conditions:"\uC774\uC6A9 \uC57D\uAD00",company_address_format:"\uD68C\uC0AC \uC8FC\uC18C \uD615\uC2DD",shipping_address_format:"\uBC30\uC1A1 \uC8FC\uC18C \uD615\uC2DD",billing_address_format:"\uCCAD\uAD6C \uC9C0 \uC8FC\uC18C \uD615\uC2DD",invoice_settings_updated:"\uC778\uBCF4\uC774\uC2A4 \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},estimates:{title:"\uACAC\uC801",estimate_prefix:"\uC811\uB450\uC0AC \uCD94\uC815",default_estimate_email_body:"\uAE30\uBCF8 \uC608\uC0C1 \uC774\uBA54\uC77C \uBCF8\uBB38",estimate_settings:"\uC608\uC0C1 \uC124\uC815",autogenerate_estimate_number:"\uACAC\uC801 \uBC88\uD638 \uC790\uB3D9 \uC0DD\uC131",estimate_setting_description:"\uC0C8 \uACAC\uC801\uC744 \uC0DD\uC131 \uD560 \uB54C\uB9C8\uB2E4 \uACAC\uC801 \uBC88\uD638\uB97C \uC790\uB3D9 \uC0DD\uC131\uD558\uC9C0 \uC54A\uC73C\uB824\uBA74\uC774 \uAE30\uB2A5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",estimate_email_attachment:"\uACAC\uC801\uC744 \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uAE30",estimate_email_attachment_setting_description:"\uACAC\uC801\uC744 \uC774\uBA54\uC77C \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uC774\uBA54\uC77C\uC758 &#39;\uC608\uC0C1\uBCF4\uAE30&#39;\uBC84\uD2BC\uC774 \uD65C\uC131\uD654\uB418\uBA74 \uB354 \uC774\uC0C1 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",enter_estimate_prefix:"\uACAC\uC801 \uC811\uB450\uC0AC \uC785\uB825",estimate_setting_updated:"\uC608\uC0C1 \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",company_address_format:"\uD68C\uC0AC \uC8FC\uC18C \uD615\uC2DD",billing_address_format:"\uCCAD\uAD6C \uC9C0 \uC8FC\uC18C \uD615\uC2DD",shipping_address_format:"\uBC30\uC1A1 \uC8FC\uC18C \uD615\uC2DD"},payments:{title:"\uC9C0\uBD88",description:"\uC9C0\uBD88\uC744\uC704\uD55C \uAC70\uB798 \uBC29\uC2DD",payment_prefix:"\uC9C0\uBD88 \uC811\uB450\uC0AC",default_payment_email_body:"\uAE30\uBCF8 \uACB0\uC81C \uC774\uBA54\uC77C \uBCF8\uBB38",payment_settings:"\uACB0\uC81C \uC124\uC815",autogenerate_payment_number:"\uACB0\uC81C \uBC88\uD638 \uC790\uB3D9 \uC0DD\uC131",payment_setting_description:"\uC0C8 \uACB0\uC81C\uB97C \uC0DD\uC131 \uD560 \uB54C\uB9C8\uB2E4 \uACB0\uC81C \uBC88\uD638\uB97C \uC790\uB3D9 \uC0DD\uC131\uD558\uC9C0 \uC54A\uC73C\uB824\uBA74\uC774 \uAE30\uB2A5\uC744 \uBE44\uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",payment_email_attachment:"\uCCA8\uBD80 \uD30C\uC77C\uB85C \uC9C0\uBD88 \uBCF4\uB0B4\uAE30",payment_email_attachment_setting_description:"\uACB0\uC81C \uC601\uC218\uC99D\uC744 \uC774\uBA54\uC77C \uCCA8\uBD80 \uD30C\uC77C\uB85C \uBCF4\uB0B4\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uC774\uBA54\uC77C\uC758 &#39;\uACB0\uC81C\uBCF4\uAE30&#39;\uBC84\uD2BC\uC774 \uD65C\uC131\uD654\uB418\uBA74 \uB354 \uC774\uC0C1 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",enter_payment_prefix:"\uC9C0\uBD88 \uC811\uB450\uC0AC \uC785\uB825",payment_setting_updated:"\uACB0\uC81C \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",payment_modes:"\uC9C0\uBD88 \uBAA8\uB4DC",add_payment_mode:"\uACB0\uC81C \uBAA8\uB4DC \uCD94\uAC00",edit_payment_mode:"\uACB0\uC81C \uBAA8\uB4DC \uC218\uC815",mode_name:"\uBAA8\uB4DC \uC774\uB984",payment_mode_added:"\uACB0\uC81C \uBAA8\uB4DC \uCD94\uAC00",payment_mode_updated:"\uACB0\uC81C \uBAA8\uB4DC \uC5C5\uB370\uC774\uD2B8",payment_mode_confirm_delete:"\uC774 \uACB0\uC81C \uBAA8\uB4DC\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uACB0\uC81C \uBAA8\uB4DC\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uACB0\uC81C \uBAA8\uB4DC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",company_address_format:"\uD68C\uC0AC \uC8FC\uC18C \uD615\uC2DD",from_customer_address_format:"\uACE0\uAC1D \uC8FC\uC18C \uD615\uC2DD\uC5D0\uC11C"},items:{title:"\uC544\uC774\uD15C",units:"\uB2E8\uC704",add_item_unit:"\uD56D\uBAA9 \uB2E8\uC704 \uCD94\uAC00",edit_item_unit:"\uD56D\uBAA9 \uB2E8\uC704 \uD3B8\uC9D1",unit_name:"\uB2E8\uC704 \uC774\uB984",item_unit_added:"\uD56D\uBAA9 \uB2E8\uC704 \uCD94\uAC00\uB428",item_unit_updated:"\uD56D\uBAA9 \uB2E8\uC704 \uC5C5\uB370\uC774\uD2B8 \uB428",item_unit_confirm_delete:"\uC774 \uD56D\uBAA9 \uB2E8\uC704\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uD56D\uBAA9 \uB2E8\uC704\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uD56D\uBAA9 \uB2E8\uC704\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},notes:{title:"\uB178\uD2B8",description:"\uBA54\uBAA8\uB97C \uC791\uC131\uD558\uACE0 \uC1A1\uC7A5, \uACAC\uC801\uC11C\uC5D0 \uC7AC\uC0AC\uC6A9\uD558\uC5EC \uC2DC\uAC04 \uC808\uC57D",notes:"\uB178\uD2B8",type:"\uC720\uD615",add_note:"\uBA54\uBAA8\uB97C \uCD94\uAC00",add_new_note:"\uC0C8 \uBA54\uBAA8 \uCD94\uAC00",name:"\uC774\uB984",edit_note:"\uBA54\uBAA8 \uC218\uC815",note_added:"\uBA54\uBAA8\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",note_updated:"\uCC38\uACE0 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",note_confirm_delete:"\uC774 \uBA54\uBAA8\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uBA54\uBAA8\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",deleted_message:"\uBA54\uBAA8\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}},account_settings:{profile_picture:"\uD504\uB85C\uD544 \uC0AC\uC9C4",name:"\uC774\uB984",email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",confirm_password:"\uBE44\uBC00\uBC88\uD638 \uD655\uC778",account_settings:"\uACC4\uC815 \uC124\uC815",save:"\uC800\uC7A5",section_description:"\uC774\uB984, \uC774\uBA54\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",updated_message:"\uACC4\uC815 \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},user_profile:{name:"\uC774\uB984",email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",confirm_password:"\uBE44\uBC00\uBC88\uD638 \uD655\uC778"},notification:{title:"\uACF5\uACE0",email:"\uC54C\uB9BC \uBCF4\uB0B4\uAE30",description:"\uBCC0\uACBD \uC0AC\uD56D\uC774\uC788\uC744 \uB54C \uC5B4\uB5A4 \uC774\uBA54\uC77C \uC54C\uB9BC\uC744 \uBC1B\uC73C\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",invoice_viewed:"\uC1A1\uC7A5 \uC870\uD68C",invoice_viewed_desc:"\uACE0\uAC1D\uC774 \uBD84\uD654\uAD6C \uB300\uC2DC \uBCF4\uB4DC\uB97C \uD1B5\uD574 \uC804\uC1A1 \uB41C \uC1A1\uC7A5\uC744 \uBCFC \uB54C.",estimate_viewed:"\uBCF8 \uACAC\uC801",estimate_viewed_desc:"\uACE0\uAC1D\uC774 \uBD84\uD654\uAD6C \uB300\uC2DC \uBCF4\uB4DC\uB97C \uD1B5\uD574 \uC804\uC1A1 \uB41C \uACAC\uC801\uC744 \uBCFC \uB54C.",save:"\uC800\uC7A5",email_save_message:"\uC774\uBA54\uC77C\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",please_enter_email:"\uC774\uBA54\uC77C\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624"},tax_types:{title:"\uC138\uAE08 \uC720\uD615",add_tax:"\uC138\uAE08 \uCD94\uAC00",edit_tax:"\uC138\uAE08 \uC218\uC815",description:"\uC6D0\uD558\uB294\uB300\uB85C \uC138\uAE08\uC744 \uCD94\uAC00\uD558\uAC70\uB098 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. Crater\uB294 \uC1A1\uC7A5\uBFD0\uB9CC \uC544\uB2C8\uB77C \uAC1C\uBCC4 \uD488\uBAA9\uC5D0 \uB300\uD55C \uC138\uAE08\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4.",add_new_tax:"\uC0C8 \uC138\uAE08 \uCD94\uAC00",tax_settings:"\uC138\uAE08 \uC124\uC815",tax_per_item:"\uD488\uBAA9 \uB2F9 \uC138\uAE08",tax_name:"\uC138\uAE08 \uC774\uB984",compound_tax:"\uBCF5\uD569 \uC138",percent:"\uD37C\uC13C\uD2B8",action:"\uB3D9\uC791",tax_setting_description:"\uAC1C\uBCC4 \uC1A1\uC7A5 \uD56D\uBAA9\uC5D0 \uC138\uAE08\uC744 \uCD94\uAC00\uD558\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uAE30\uBCF8\uC801\uC73C\uB85C \uC138\uAE08\uC740 \uC1A1\uC7A5\uC5D0 \uC9C1\uC811 \uCD94\uAC00\uB429\uB2C8\uB2E4.",created_message:"\uC138\uAE08 \uC720\uD615\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uC138\uAE08 \uC720\uD615\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uC138\uAE08 \uC720\uD615\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uC138\uAE08 \uC720\uD615\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uC138\uAE08\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4."},expense_category:{title:"\uBE44\uC6A9 \uBC94\uC8FC",action:"\uB3D9\uC791",description:"\uBE44\uC6A9 \uD56D\uBAA9\uC744 \uCD94\uAC00\uD558\uB824\uBA74 \uCE74\uD14C\uACE0\uB9AC\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uAE30\uBCF8 \uC124\uC815\uC5D0 \uB530\uB77C \uC774\uB7EC\uD55C \uBC94\uC8FC\uB97C \uCD94\uAC00\uD558\uAC70\uB098 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",add_new_category:"\uC0C8 \uCE74\uD14C\uACE0\uB9AC \uCD94\uAC00",add_category:"\uCE74\uD14C\uACE0\uB9AC \uCD94\uAC00",edit_category:"\uCE74\uD14C\uACE0\uB9AC \uC218\uC815",category_name:"\uCE74\uD14C\uACE0\uB9AC \uC774\uB984",category_description:"\uAE30\uC220",created_message:"\uBE44\uC6A9 \uBC94\uC8FC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",deleted_message:"\uBE44\uC6A9 \uBC94\uC8FC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",updated_message:"\uBE44\uC6A9 \uBC94\uC8FC\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",confirm_delete:"\uC774 \uBE44\uC6A9 \uBC94\uC8FC\uB97C \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",already_in_use:"\uCE74\uD14C\uACE0\uB9AC\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4."},preferences:{currency:"\uD1B5\uD654",default_language:"\uAE30\uBCF8 \uC5B8\uC5B4",time_zone:"\uC2DC\uAC04\uB300",fiscal_year:"\uD68C\uACC4 \uC5F0\uB3C4",date_format:"\uB0A0\uC9DC \uD615\uC2DD",discount_setting:"\uD560\uC778 \uC124\uC815",discount_per_item:"\uD488\uBAA9\uBCC4 \uD560\uC778",discount_setting_description:"\uAC1C\uBCC4 \uC1A1\uC7A5 \uD56D\uBAA9\uC5D0 \uD560\uC778\uC744 \uCD94\uAC00\uD558\uB824\uBA74\uC774 \uC635\uC158\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624. \uAE30\uBCF8\uC801\uC73C\uB85C \uD560\uC778\uC740 \uC1A1\uC7A5\uC5D0 \uC9C1\uC811 \uCD94\uAC00\uB429\uB2C8\uB2E4.",save:"\uC800\uC7A5",preference:"\uC120\uD638\uB3C4 | \uD658\uACBD \uC124\uC815",general_settings:"\uC2DC\uC2A4\uD15C\uC758 \uAE30\uBCF8 \uAE30\uBCF8 \uC124\uC815\uC785\uB2C8\uB2E4.",updated_message:"\uD658\uACBD \uC124\uC815\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",select_language:"\uC5B8\uC5B4 \uC120\uD0DD",select_time_zone:"\uC2DC\uAC04\uB300 \uC120\uD0DD",select_date_format:"\uB0A0\uC9DC \uD615\uC2DD \uC120\uD0DD",select_financial_year:"\uD68C\uACC4 \uC5F0\uB3C4 \uC120\uD0DD"},update_app:{title:"\uC571 \uC5C5\uB370\uC774\uD2B8",description:"\uC544\uB798 \uBC84\uD2BC\uC744 \uD074\uB9AD\uD558\uC5EC \uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uB97C \uD655\uC778\uD558\uC5EC Crater\uB97C \uC27D\uAC8C \uC5C5\uB370\uC774\uD2B8 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",check_update:"\uC5C5\uB370\uC774\uD2B8 \uD655\uC778",avail_update:"\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8 \uC0AC\uC6A9 \uAC00\uB2A5",next_version:"\uB2E4\uC74C \uBC84\uC804",requirements:"\uC694\uAD6C \uC0AC\uD56D",update:"\uC9C0\uAE08 \uC5C5\uB370\uC774\uD2B8",update_progress:"\uC5C5\uB370\uC774\uD2B8 \uC9C4\uD589 \uC911 ...",progress_text:"\uBA87 \uBD84 \uC815\uB3C4 \uAC78\uB9BD\uB2C8\uB2E4. \uC5C5\uB370\uC774\uD2B8\uAC00 \uC644\uB8CC\uB418\uAE30 \uC804\uC5D0 \uD654\uBA74\uC744 \uC0C8\uB85C \uACE0\uCE58\uAC70\uB098 \uCC3D\uC744 \uB2EB\uC9C0 \uB9C8\uC2ED\uC2DC\uC624.",update_success:"\uC571\uC774 \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4! \uBE0C\uB77C\uC6B0\uC800 \uCC3D\uC774 \uC790\uB3D9\uC73C\uB85C \uB2E4\uC2DC\uB85C\uB4DC\uB418\uB294 \uB3D9\uC548 \uC7A0\uC2DC \uAE30\uB2E4\uB824\uC8FC\uC2ED\uC2DC\uC624.",latest_message:"\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC5C5\uB370\uC774\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4! \uCD5C\uC2E0 \uBC84\uC804\uC744 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",current_version:"\uD604\uC7AC \uBC84\uC804",download_zip_file:"ZIP \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",unzipping_package:"\uD328\uD0A4\uC9C0 \uC555\uCD95 \uD574\uC81C",copying_files:"\uD30C\uC77C \uBCF5\uC0AC",deleting_files:"\uC0AC\uC6A9\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uC0AD\uC81C",running_migrations:"\uB9C8\uC774\uADF8\uB808\uC774\uC158 \uC2E4\uD589",finishing_update:"\uC5C5\uB370\uC774\uD2B8 \uC644\uB8CC",update_failed:"\uC5C5\uB370\uC774\uD2B8\uAC00 \uC2E4\uD328",update_failed_text:"\uC8C4\uC1A1\uD569\uB2C8\uB2E4! \uC5C5\uB370\uC774\uD2B8 \uC2E4\uD328 : {step} \uB2E8\uACC4"},backup:{title:"\uBC31\uC5C5 | \uBC31\uC5C5",description:"\uBC31\uC5C5\uC740 \uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uB364\uD504\uC640 \uD568\uAED8 \uC9C0\uC815\uD55C \uB514\uB809\uD1A0\uB9AC\uC758 \uBAA8\uB4E0 \uD30C\uC77C\uC744 \uD3EC\uD568\uD558\uB294 zip \uD30C\uC77C\uC785\uB2C8\uB2E4.",new_backup:"\uC0C8 \uBC31\uC5C5 \uCD94\uAC00",create_backup:"\uBC31\uC5C5 \uC0DD\uC131",select_backup_type:"\uBC31\uC5C5 \uC720\uD615 \uC120\uD0DD",backup_confirm_delete:"\uC774 \uBC31\uC5C5\uC744 \uBCF5\uAD6C \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",path:"\uD1B5\uB85C",new_disk:"\uC0C8 \uB514\uC2A4\uD06C",created_at:"\uC5D0 \uC0DD\uC131",size:"\uD06C\uAE30",dropbox:"\uB4DC\uB86D \uBC15\uC2A4",local:"\uD604\uC9C0",healthy:"\uAC74\uAC15\uD55C",amount_of_backups:"\uBC31\uC5C5 \uC591",newest_backups:"\uCD5C\uC2E0 \uBC31\uC5C5",used_storage:"\uC911\uACE0 \uC800\uC7A5",select_disk:"\uB514\uC2A4\uD06C \uC120\uD0DD",action:"\uB3D9\uC791",deleted_message:"\uBC31\uC5C5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",created_message:"\uBC31\uC5C5\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",invalid_disk_credentials:"\uC120\uD0DD\uD55C \uB514\uC2A4\uD06C\uC758 \uC798\uBABB\uB41C \uC790\uACA9 \uC99D\uBA85"},disk:{title:"\uD30C\uC77C \uB514\uC2A4\uD06C | \uD30C\uC77C \uB514\uC2A4\uD06C",description:"\uAE30\uBCF8\uC801\uC73C\uB85C Crater\uB294 \uBC31\uC5C5, \uC544\uBC14\uD0C0 \uBC0F \uAE30\uD0C0 \uC774\uBBF8\uC9C0 \uD30C\uC77C\uC744 \uC800\uC7A5\uD558\uAE30 \uC704\uD574 \uB85C\uCEEC \uB514\uC2A4\uD06C\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC120\uD638\uB3C4\uC5D0 \uB530\uB77C DigitalOcean, S3 \uBC0F Dropbox\uC640 \uAC19\uC740 \uB458 \uC774\uC0C1\uC758 \uB514\uC2A4\uD06C \uB4DC\uB77C\uC774\uBC84\uB97C \uAD6C\uC131 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",created_at:"\uC5D0 \uC0DD\uC131",dropbox:"\uB4DC\uB86D \uBC15\uC2A4",name:"\uC774\uB984",driver:"\uC6B4\uC804\uC0AC",disk_type:"\uC720\uD615",disk_name:"\uB514\uC2A4\uD06C \uC774\uB984",new_disk:"\uC0C8 \uB514\uC2A4\uD06C \uCD94\uAC00",filesystem_driver:"\uD30C\uC77C \uC2DC\uC2A4\uD15C \uB4DC\uB77C\uC774\uBC84",local_driver:"\uB85C\uCEEC \uB4DC\uB77C\uC774\uBC84",local_root:"\uB85C\uCEEC \uB8E8\uD2B8",public_driver:"\uACF5\uACF5 \uC6B4\uC804\uC790",public_root:"\uACF5\uAC1C \uB8E8\uD2B8",public_url:"\uACF5\uAC1C URL",public_visibility:"\uACF5\uAC1C \uAC00\uC2DC\uC131",media_driver:"\uBBF8\uB514\uC5B4 \uB4DC\uB77C\uC774\uBC84",media_root:"\uBBF8\uB514\uC5B4 \uB8E8\uD2B8",aws_driver:"AWS \uB4DC\uB77C\uC774\uBC84",aws_key:"AWS \uD0A4",aws_secret:"AWS \uBE44\uBC00",aws_region:"AWS \uB9AC\uC804",aws_bucket:"AWS \uBC84\uD0B7",aws_root:"AWS \uB8E8\uD2B8",do_spaces_type:"Do Spaces \uC720\uD615",do_spaces_key:"Do Spaces \uD0A4",do_spaces_secret:"\uC2A4\uD398\uC774\uC2A4 \uC2DC\uD06C\uB9BF",do_spaces_region:"Do Spaces \uC601\uC5ED",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces \uB05D\uC810",do_spaces_root:"\uACF5\uAC04 \uB8E8\uD2B8 \uC218\uD589",dropbox_type:"Dropbox \uC720\uD615",dropbox_token:"Dropbox \uD1A0\uD070",dropbox_key:"Dropbox \uD0A4",dropbox_secret:"Dropbox \uBE44\uBC00",dropbox_app:"Dropbox \uC571",dropbox_root:"Dropbox \uB8E8\uD2B8",default_driver:"\uAE30\uBCF8 \uB4DC\uB77C\uC774\uBC84",is_default:"\uAE30\uBCF8\uAC12\uC785\uB2C8\uB2E4.",set_default_disk:"\uAE30\uBCF8 \uB514\uC2A4\uD06C \uC124\uC815",set_default_disk_confirm:"\uC774 \uB514\uC2A4\uD06C\uB294 \uAE30\uBCF8\uAC12\uC73C\uB85C \uC124\uC815\uB418\uBA70 \uBAA8\uB4E0 \uC0C8 PDF\uAC00\uC774 \uB514\uC2A4\uD06C\uC5D0 \uC800\uC7A5\uB429\uB2C8\uB2E4.",success_set_default_disk:"\uB514\uC2A4\uD06C\uAC00 \uAE30\uBCF8\uAC12\uC73C\uB85C \uC124\uC815\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",save_pdf_to_disk:"PDF\uB97C \uB514\uC2A4\uD06C\uC5D0 \uC800\uC7A5",disk_setting_description:"\uAC01 \uC1A1\uC7A5\uC758 \uC0AC\uBCF8\uC744 \uC800\uC7A5\uD558\uB824\uBA74 \uC774\uAC83\uC744 \uD65C\uC131\uD654\uD558\uC2ED\uC2DC\uC624.",select_disk:"\uB514\uC2A4\uD06C \uC120\uD0DD",disk_settings:"\uB514\uC2A4\uD06C \uC124\uC815",confirm_delete:"\uAE30\uC874 \uD30C\uC77C",action:"\uB3D9\uC791",edit_file_disk:"\uD30C\uC77C \uB514\uC2A4\uD06C \uD3B8\uC9D1",success_create:"\uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",success_update:"\uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",error:"\uB514\uC2A4\uD06C \uCD94\uAC00 \uC2E4\uD328",deleted_message:"\uD30C\uC77C \uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",disk_variables_save_successfully:"\uB514\uC2A4\uD06C\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uAD6C\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",disk_variables_save_error:"\uB514\uC2A4\uD06C \uAD6C\uC131\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",invalid_disk_credentials:"\uC120\uD0DD\uD55C \uB514\uC2A4\uD06C\uC758 \uC798\uBABB\uB41C \uC790\uACA9 \uC99D\uBA85"}},zg={account_info:"\uACC4\uC815 \uC815\uBCF4",account_info_desc:"\uC544\uB798 \uC138\uBD80 \uC815\uBCF4\uB294 \uAE30\uBCF8 \uAD00\uB9AC\uC790 \uACC4\uC815\uC744 \uB9CC\uB4DC\uB294 \uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4. \uB610\uD55C \uB85C\uADF8\uC778 \uD6C4 \uC5B8\uC81C\uB4E0\uC9C0 \uC138\uBD80 \uC815\uBCF4\uB97C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",name:"\uC774\uB984",email:"\uC774\uBA54\uC77C",password:"\uC554\uD638",confirm_password:"\uBE44\uBC00\uBC88\uD638 \uD655\uC778",save_cont:"\uC800\uC7A5",company_info:"\uD68C\uC0AC \uC815\uBCF4",company_info_desc:"\uC774 \uC815\uBCF4\uB294 \uC1A1\uC7A5\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uC124\uC815 \uD398\uC774\uC9C0\uC5D0\uC11C \uC218\uC815\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",company_name:"\uD68C\uC0AC \uC774\uB984",company_logo:"\uD68C\uC0AC \uB85C\uACE0",logo_preview:"\uB85C\uACE0 \uBBF8\uB9AC\uBCF4\uAE30",preferences:"\uD658\uACBD \uC124\uC815",preferences_desc:"\uC2DC\uC2A4\uD15C\uC758 \uAE30\uBCF8 \uAE30\uBCF8 \uC124\uC815\uC785\uB2C8\uB2E4.",country:"\uAD6D\uAC00",state:"\uC0C1\uD0DC",city:"\uC2DC\uD2F0",address:"\uC8FC\uC18C",street:"Street1 | Street2",phone:"\uC804\uD654",zip_code:"\uC6B0\uD3B8 \uBC88\uD638",go_back:"\uB3CC\uC544 \uAC00\uAE30",currency:"\uD1B5\uD654",language:"\uC5B8\uC5B4",time_zone:"\uC2DC\uAC04\uB300",fiscal_year:"\uD68C\uACC4 \uC5F0\uB3C4",date_format:"\uB0A0\uC9DC \uD615\uC2DD",from_address:"\uC8FC\uC18C\uC5D0\uC11C",username:"\uC0AC\uC6A9\uC790 \uC774\uB984",next:"\uB2E4\uC74C",continue:"\uACC4\uC18D\uD558\uB2E4",skip:"\uAC74\uB108 \uB6F0\uAE30",database:{database:"\uC0AC\uC774\uD2B8 URL",connection:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC5F0\uACB0",host:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uD638\uC2A4\uD2B8",port:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uD3EC\uD2B8",password:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uBE44\uBC00\uBC88\uD638",app_url:"\uC571 URL",app_domain:"\uC571 \uB3C4\uBA54\uC778",username:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC0AC\uC6A9\uC790 \uC774\uB984",db_name:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC774\uB984",db_path:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uACBD\uB85C",desc:"\uC11C\uBC84\uC5D0 \uB370\uC774\uD130\uBCA0\uC774\uC2A4\uB97C \uB9CC\uB4E4\uACE0 \uC544\uB798 \uC591\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC790\uACA9 \uC99D\uBA85\uC744 \uC124\uC815\uD569\uB2C8\uB2E4."},permissions:{permissions:"\uAD8C\uD55C",permission_confirm_title:"\uB108 \uC815\uB9D0 \uACC4\uC18D\uD558\uACE0 \uC2F6\uB2C8?",permission_confirm_desc:"\uD3F4\uB354 \uAD8C\uD55C \uD655\uC778 \uC2E4\uD328",permission_desc:"\uB2E4\uC74C\uC740 \uC571\uC774 \uC791\uB3D9\uD558\uB294 \uB370 \uD544\uC694\uD55C \uD3F4\uB354 \uAD8C\uD55C \uBAA9\uB85D\uC785\uB2C8\uB2E4. \uAD8C\uD55C \uD655\uC778\uC5D0 \uC2E4\uD328\uD558\uBA74 \uD3F4\uB354 \uAD8C\uD55C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uC2ED\uC2DC\uC624."},mail:{host:"\uBA54\uC77C \uD638\uC2A4\uD2B8",port:"\uBA54\uC77C \uD3EC\uD2B8",driver:"\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84",secret:"\uBE44\uBC00",mailgun_secret:"Mailgun \uBE44\uBC00",mailgun_domain:"\uB3C4\uBA54\uC778",mailgun_endpoint:"Mailgun \uC5D4\uB4DC \uD3EC\uC778\uD2B8",ses_secret:"SES \uBE44\uBC00",ses_key:"SES \uD0A4",password:"\uBA54\uC77C \uBE44\uBC00\uBC88\uD638",username:"\uBA54\uC77C \uC0AC\uC6A9\uC790 \uC774\uB984",mail_config:"\uBA54\uC77C \uAD6C\uC131",from_name:"\uBA54\uC77C \uC774\uB984\uC5D0\uC11C",from_mail:"\uBA54\uC77C \uC8FC\uC18C\uC5D0\uC11C",encryption:"\uBA54\uC77C \uC554\uD638\uD654",mail_config_desc:"\uB2E4\uC74C\uC740 \uC571\uC5D0\uC11C \uC774\uBA54\uC77C\uC744 \uBCF4\uB0B4\uAE30\uC704\uD55C \uC774\uBA54\uC77C \uB4DC\uB77C\uC774\uBC84 \uAD6C\uC131 \uC591\uC2DD\uC785\uB2C8\uB2E4. Sendgrid, SES \uB4F1\uACFC \uAC19\uC740 \uD0C0\uC0AC \uACF5\uAE09\uC790\uB97C \uAD6C\uC131 \uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4."},req:{system_req:"\uC2DC\uC2A4\uD15C \uC694\uAD6C \uC0AC\uD56D",php_req_version:"PHP (\uBC84\uC804 {version} \uD544\uC694)",check_req:"\uC694\uAD6C \uC0AC\uD56D \uD655\uC778",system_req_desc:"\uD06C\uB808\uC774\uD130\uC5D0\uB294 \uBA87 \uAC00\uC9C0 \uC11C\uBC84 \uC694\uAD6C \uC0AC\uD56D\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC11C\uBC84\uC5D0 \uD544\uC694\uD55C PHP \uBC84\uC804\uACFC \uC544\uB798\uC5D0 \uC5B8\uAE09 \uB41C \uBAA8\uB4E0 \uD655\uC7A5\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624."},errors:{migrate_failed:"\uB9C8\uC774\uADF8\uB808\uC774\uC158 \uC2E4\uD328",database_variables_save_error:".env \uD30C\uC77C\uC5D0 \uAD6C\uC131\uC744 \uC4F8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uD30C\uC77C \uAD8C\uD55C\uC744 \uD655\uC778\uD558\uC2ED\uC2DC\uC624",mail_variables_save_error:"\uC774\uBA54\uC77C \uAD6C\uC131\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",connection_failed:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4 \uC5F0\uACB0 \uC2E4\uD328",database_should_be_empty:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4\uB294 \uBE44\uC5B4 \uC788\uC5B4\uC57C\uD569\uB2C8\uB2E4."},success:{mail_variables_save_successfully:"\uC774\uBA54\uC77C\uC774 \uC131\uACF5\uC801\uC73C\uB85C \uAD6C\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",database_variables_save_successfully:"\uB370\uC774\uD130\uBCA0\uC774\uC2A4\uAC00 \uC131\uACF5\uC801\uC73C\uB85C \uAD6C\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}},Sg={invalid_phone:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uC804\uD654 \uBC88\uD638",invalid_url:"\uC798\uBABB\uB41C URL (\uC608 : http://www.craterapp.com)",invalid_domain_url:"\uC798\uBABB\uB41C URL (\uC608 : craterapp.com)",required:"\uD544\uB4DC\uB294 \uD544\uC218\uC785\uB2C8\uB2E4",email_incorrect:"\uC798\uBABB\uB41C \uC774\uBA54\uC77C.",email_already_taken:"\uC774\uBA54\uC77C\uC774 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",email_does_not_exist:"\uC8FC\uC5B4\uC9C4 \uC774\uBA54\uC77C\uC744 \uAC00\uC9C4 \uC0AC\uC6A9\uC790\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",item_unit_already_taken:"\uC774 \uD56D\uBAA9 \uB2E8\uC704 \uC774\uB984\uC740 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",payment_mode_already_taken:"\uC774 \uACB0\uC81C \uBAA8\uB4DC \uC774\uB984\uC740 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",send_reset_link:"\uC7AC\uC124\uC815 \uB9C1\uD06C \uBCF4\uB0B4\uAE30",not_yet:"\uC544\uC9C1? \uB2E4\uC2DC \uBCF4\uB0B4\uC918",password_min_length:"\uBE44\uBC00\uBC88\uD638\uB294 {count}\uC790\uB97C \uD3EC\uD568\uD574\uC57C\uD569\uB2C8\uB2E4.",name_min_length:"\uC774\uB984\uC740 {count} \uC790 \uC774\uC0C1\uC774\uC5B4\uC57C\uD569\uB2C8\uB2E4.",enter_valid_tax_rate:"\uC720\uD6A8\uD55C \uC138\uC728\uC744 \uC785\uB825\uD558\uC138\uC694.",numbers_only:"\uC22B\uC790 \uB9CC.",characters_only:"\uBB38\uC790 \uB9CC.",password_incorrect:"\uBE44\uBC00\uBC88\uD638\uB294 \uB3D9\uC77C\uD574\uC57C\uD569\uB2C8\uB2E4.",password_length:"\uBE44\uBC00\uBC88\uD638\uB294 {count} \uC790 \uC5EC\uC57C\uD569\uB2C8\uB2E4.",qty_must_greater_than_zero:"\uC218\uB7C9\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",price_greater_than_zero:"\uAC00\uACA9\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",payment_greater_than_zero:"\uACB0\uC81C \uAE08\uC561\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",payment_greater_than_due_amount:"\uC785\uB825 \uB41C \uACB0\uC81C \uAE08\uC561\uC774\uC774 \uC1A1\uC7A5\uC758 \uB9CC\uAE30 \uAE08\uC561\uC744 \uCD08\uACFC\uD569\uB2C8\uB2E4.",quantity_maxlength:"\uC218\uB7C9\uC740 20 \uC790\uB9AC\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",price_maxlength:"\uAC00\uACA9\uC740 20 \uC790\uB9AC\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",price_minvalue:"\uAC00\uACA9\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",amount_maxlength:"\uAE08\uC561\uC740 20 \uC790\uB9AC\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",amount_minvalue:"\uAE08\uC561\uC740 0\uBCF4\uB2E4 \uCEE4\uC57C\uD569\uB2C8\uB2E4.",description_maxlength:"\uC124\uBA85\uC740 65,000\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",subject_maxlength:"\uC81C\uBAA9\uC740 100 \uC790 \uC774\uD558 \uC5EC\uC57C\uD569\uB2C8\uB2E4.",message_maxlength:"\uBA54\uC2DC\uC9C0\uB294 255\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",maximum_options_error:"\uCD5C\uB300 {max} \uAC1C\uC758 \uC635\uC158\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBA3C\uC800 \uC120\uD0DD\uD55C \uC635\uC158\uC744 \uC81C\uAC70\uD558\uC5EC \uB2E4\uB978 \uC635\uC158\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624.",notes_maxlength:"\uBA54\uBAA8\uB294 65,000\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",address_maxlength:"\uC8FC\uC18C\uB294 255\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ref_number_maxlength:"\uCC38\uC870 \uBC88\uD638\uB294 255\uC790\uB97C \uCD08\uACFC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",prefix_maxlength:"\uC811\uB450\uC0AC\uB294 5 \uC790 \uC774\uD558 \uC5EC\uC57C\uD569\uB2C8\uB2E4.",something_went_wrong:"\uBB54\uAC00 \uC798\uBABB \uB410\uC5B4"},jg="\uACAC\uC801",Pg="\uACAC\uC801 \uBC88\uD638",Dg="\uC608\uC0C1 \uB0A0\uC9DC",Cg="\uB9CC\uB8CC\uC77C",Ag="\uC1A1\uC7A5",Eg="\uC1A1\uC7A5 \uBC88\uD638",Ng="\uC1A1\uC7A5 \uB0A0\uC9DC",Tg="\uB9C8\uAC10\uC77C",Ig="\uB178\uD2B8",$g="\uC544\uC774\uD15C",Rg="\uC218\uB7C9",Fg="\uAC00\uACA9",Mg="\uD560\uC778",Vg="\uC591",Bg="\uC18C\uACC4",Og="\uD569\uACC4",Lg="\uC9C0\uBD88",Ug="\uC601\uC218\uC99D",Kg="\uACB0\uC81C\uC77C",qg="\uACB0\uC81C \uBC88\uD638",Zg="\uC9C0\uBD88 \uBAA8\uB4DC",Wg="\uBC1B\uC740 \uAE08\uC561",Hg="\uBE44\uC6A9 \uBCF4\uACE0\uC11C",Gg="\uCD1D \uBE44\uC6A9",Yg="\uC774\uC775",Jg="\uD310\uB9E4 \uACE0\uAC1D \uBCF4\uACE0\uC11C",Xg="\uD310\uB9E4 \uD488\uBAA9 \uBCF4\uACE0\uC11C",Qg="\uC138\uAE08 \uC694\uC57D \uBCF4\uACE0\uC11C",ef="\uC218\uC785",tf="\uC21C\uC774\uC775",af="\uD310\uB9E4 \uBCF4\uACE0\uC11C : \uACE0\uAC1D \uBCC4",sf="\uCD1D \uB9E4\uCD9C",nf="\uD310\uB9E4 \uBCF4\uACE0\uC11C : \uD488\uBAA9\uBCC4",of="\uC138\uAE08 \uBCF4\uACE0\uC11C",rf="\uCD1D \uC138\uAE08",df="\uC138\uAE08 \uC720\uD615",lf="\uACBD\uBE44",cf="\uCCAD\uAD6C\uC11C,",_f="\uBC30\uC1A1\uC9C0,",uf="\uBC1B\uC740 \uC0AC\uB78C :",mf="\uC138";var pf={navigation:lg,general:cg,dashboard:_g,tax_types:ug,global_search:mg,customers:pg,items:gg,estimates:fg,invoices:hg,payments:vg,expenses:yg,login:bg,users:kg,reports:wg,settings:xg,wizard:zg,validation:Sg,pdf_estimate_label:jg,pdf_estimate_number:Pg,pdf_estimate_date:Dg,pdf_estimate_expire_date:Cg,pdf_invoice_label:Ag,pdf_invoice_number:Eg,pdf_invoice_date:Ng,pdf_invoice_due_date:Tg,pdf_notes:Ig,pdf_items_label:$g,pdf_quantity_label:Rg,pdf_price_label:Fg,pdf_discount_label:Mg,pdf_amount_label:Vg,pdf_subtotal:Bg,pdf_total:Og,pdf_payment_label:Lg,pdf_payment_receipt_label:Ug,pdf_payment_date:Kg,pdf_payment_number:qg,pdf_payment_mode:Zg,pdf_payment_amount_received_label:Wg,pdf_expense_report_label:Hg,pdf_total_expenses_label:Gg,pdf_profit_loss_label:Yg,pdf_sales_customers_label:Jg,pdf_sales_items_label:Xg,pdf_tax_summery_label:Qg,pdf_income_label:ef,pdf_net_profit_label:tf,pdf_customer_sales_report:af,pdf_total_sales_label:sf,pdf_item_sales_label:nf,pdf_tax_report_label:of,pdf_total_tax_label:rf,pdf_tax_types_label:df,pdf_expenses_label:lf,pdf_bill_to:cf,pdf_ship_to:_f,pdf_received_from:uf,pdf_tax_label:mf};const gf={dashboard:"Inform\u0101cijas panelis",customers:"Klienti",items:"Preces",invoices:"R\u0113\u0137ini",expenses:"Izdevumi",estimates:"Apr\u0113\u0137ini",payments:"Maks\u0101jumi",reports:"Atskaites",settings:"Iestat\u012Bjumi",logout:"Iziet",users:"Lietot\u0101ji"},ff={add_company:"Pievienot uz\u0146\u0113mumu",view_pdf:"Apskat\u012Bt PDF",copy_pdf_url:"Kop\u0113t PDF Url",download_pdf:"Lejupiel\u0101d\u0113t PDF",save:"Saglab\u0101t",create:"Izveidot",cancel:"Atcelt",update:"Atjaunin\u0101t",deselect:"Atcelt iez\u012Bm\u0113\u0161anu",download:"Lejupiel\u0101d\u0113t",from_date:"Datums no",to_date:"Datums l\u012Bdz",from:"No",to:"Kam",sort_by:"K\u0101rtot p\u0113c",ascending:"Augo\u0161\u0101 sec\u012Bb\u0101",descending:"Dilsto\u0161\u0101 sec\u012Bb\u0101",subject:"Temats",body:"Saturs",message:"Zi\u0146ojums",send:"Nos\u016Bt\u012Bt",go_back:"Atpaka\u013C",back_to_login:"Atpaka\u013C uz autoriz\u0101ciju?",home:"S\u0101kums",filter:"Filtr\u0113t",delete:"Dz\u0113st",edit:"Labot",view:"Skat\u012Bt",add_new_item:"Pievienot jaunu",clear_all:"Not\u012Br\u012Bt visu",showing:"R\u0101da",of:"no",actions:"Darb\u012Bbas",subtotal:"KOP\u0100",discount:"ATLAIDE",fixed:"Fiks\u0113ts",percentage:"Procenti",tax:"Nodoklis",total_amount:"KOP\u0100 APMAKSAI",bill_to:"Sa\u0146\u0113m\u0113js",ship_to:"Pieg\u0101d\u0101t uz",due:"Due",draft:"Melnraksts",sent:"Nos\u016Bt\u012Bts",all:"Visi",select_all:"Iez\u012Bm\u0113t visu",choose_file:"Speid \u0161eit, lai izv\u0113l\u0113tos failu",choose_template:"Izv\u0113laties sagatavi",choose:"Izv\u0113lies",remove:"Dz\u0113st",select_a_status:"Izv\u0113lieties statusu",select_a_tax:"Izv\u0113l\u0113ties nodokli",search:"Mekl\u0113t",are_you_sure:"Vai esat p\u0101rliecin\u0101ts?",list_is_empty:"Saraksts ir tuk\u0161s.",no_tax_found:"Nodoklis nav atrasts!",four_zero_four:"404",you_got_lost:"Op\u0101! Esi apmald\u012Bjies!",go_home:"Uz S\u0101kumu",test_mail_conf:"J\u016Bsu e-pasta uzst\u0101d\u012Bjumu tests",send_mail_successfully:"Veiksm\u012Bgi nos\u016Bt\u012Bts",setting_updated:"Iestat\u012Bjumi tika veiksm\u012Bgi atjaunin\u0101ti",select_state:"Izv\u0113lieties re\u0123ionu",select_country:"Izv\u0113l\u0113ties valsti",select_city:"Izv\u0113lieties pils\u0113tu",street_1:"Adrese 1",street_2:"Adrese 2",action_failed:"Darb\u012Bba neizdev\u0101s",retry:"Atk\u0101rtot",choose_note:"Izv\u0113lieties piez\u012Bmi",no_note_found:"Piez\u012Bmes nav atrastas",insert_note:"Ievietot piez\u012Bmi"},hf={select_year:"Izv\u0113lieties gadu",cards:{due_amount:"Apmaksas summa",customers:"Klienti",invoices:"R\u0113\u0137ini",estimates:"Apr\u0113\u0137ini"},chart_info:{total_sales:"P\u0101rdotais",total_receipts:"\u010Ceki",total_expense:"Izdevumi",net_income:"Pe\u013C\u0146a",year:"Izv\u0113lieties gadu"},monthly_chart:{title:"P\u0101rdotais un Izdevumi"},recent_invoices_card:{title:"Pien\u0101ko\u0161ie r\u0113\u0137ini",due_on:"Termi\u0146\u0161",customer:"Klients",amount_due:"Apmaksas summa",actions:"Darb\u012Bbas",view_all:"Skat\u012Bt visus"},recent_estimate_card:{title:"Nesenie apr\u0113\u0137ini",date:"Datums",customer:"Klients",amount_due:"Apmaksas summa",actions:"Darb\u012Bbas",view_all:"Skat\u012Bt visus"}},vf={name:"Nosaukums",description:"Apraksts",percent:"Procenti",compound_tax:"Compound Tax"},yf={search:"Mekl\u0113t...",customers:"Klienti",users:"Lietot\u0101ji",no_results_found:"Nav atbilsto\u0161u rezult\u0101tu"},bf={title:"Klienti",add_customer:"Pievienot klientu",contacts_list:"Klientu saraksts",name:"V\u0101rds",mail:"Pasts",statement:"Statement",display_name:"Nosaukums",primary_contact_name:"Galven\u0101 kontakta v\u0101rds",contact_name:"Kontaktpersonas v\u0101rds",amount_due:"Kop\u0101",email:"E-pasts",address:"Adrese",phone:"Telefona numurs",website:"M\u0101jaslapa",overview:"P\u0101rskats",enable_portal:"Aktiviz\u0113t port\u0101lu",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",zip_code:"Pasta indekss",added_on:"Pievienots",action:"Darb\u012Bba",password:"Parole",street_number:"Adrese",primary_currency:"Prim\u0101r\u0101 val\u016Bta",description:"Apraksts",add_new_customer:"Pievienot jaunu klientu",save_customer:"Saglab\u0101t klientu",update_customer:"Atjaunin\u0101t klientu",customer:"Klients | Klienti",new_customer:"Jauns klients",edit_customer:"Redi\u0123\u0113t klientu",basic_info:"Pamatinform\u0101cija",billing_address:"Juridisk\u0101 adrese",shipping_address:"Pieg\u0101des adrese",copy_billing_address:"Kop\u0113t no juridisk\u0101s adreses",no_customers:"Pagaid\u0101m nav klientu!",no_customers_found:"Klienti netika atrasti!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs klientu saraksts.",primary_display_name:"Klienta nosaukums",select_currency:"Izv\u0113lieties val\u016Btu",select_a_customer:"Izv\u0113l\u0113ties klientu",type_or_click:"Rakst\u012Bt vai spiest, lai izv\u0113l\u0113tos",new_transaction:"Jauns dar\u012Bjums",no_matching_customers:"Netika atrasts neviens klients!",phone_number:"Telefona numurs",create_date:"Izveido\u0161anas datums",confirm_delete:"J\u016Bs nevar\u0113sit atg\u016Bt \u0161o klientu un visus saist\u012Btos r\u0113\u0137inus, apr\u0113\u0137inus un maks\u0101jumus.",created_message:"Klients izveidots veiksm\u012Bgi",updated_message:"Klients atjaunin\u0101ts veiksm\u012Bgi",deleted_message:"Klients veiksm\u012Bgi izdz\u0113sts"},kf={title:"Preces",items_list:"Pre\u010Du saraksts",name:"Nosaukums",unit:"Vien\u012Bba",description:"Apraksts",added_on:"Pievienots",price:"Cena",date_of_creation:"Izveido\u0161anas datums",not_selected:"No item selected",action:"Darb\u012Bba",add_item:"Pievienot",save_item:"Saglab\u0101t",update_item:"Atjaunin\u0101t",item:"Prece | Preces",add_new_item:"Pievienot jaunu preci",new_item:"Jauna prece",edit_item:"Redi\u0123\u0113t preci",no_items:"Nav pre\u010Du!",list_of_items:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs pre\u010Du/pakalpojumu saraksts.",select_a_unit:"atlasiet vien\u012Bbu",taxes:"Nodok\u013Ci",item_attached_message:"Nevar dz\u0113st preci, kura tiek izmantota",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o preci",created_message:"Prece izveidota veiksm\u012Bgi",updated_message:"Prece atjaunin\u0101ta veiksm\u012Bgi",deleted_message:"Prece veiksm\u012Bgi izdz\u0113sta"},wf={title:"Apr\u0113\u0137ini",estimate:"Apr\u0113\u0137ins | Apr\u0113\u0137ini",estimates_list:"Apr\u0113\u0137inu saraksts",days:"{days} Dienas",months:"{months} M\u0113nesis",years:"{years} Gads",all:"Visi",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",customer:"KLIENTS",ref_no:"REF NR.",number:"NUMURS",amount_due:"Summa apmaksai",partially_paid:"Da\u013C\u0113ji apmaks\u0101ts",total:"Kop\u0101",discount:"Atlaide",sub_total:"Starpsumma",estimate_number:"Apr\u0113\u0137ina numurs",ref_number:"Ref numurs",contact:"Kontakti",add_item:"Pievienot preci",date:"Datums",due_date:"Apmaksas termi\u0146\u0161",expiry_date:"Termi\u0146a beigu datums",status:"Status",add_tax:"Pievienot nodokli",amount:"Summa",action:"Darb\u012Bba",notes:"Piez\u012Bmes",tax:"Nodoklis",estimate_template:"Sagatave",convert_to_invoice:"P\u0101rveidot par r\u0113\u0137inu",mark_as_sent:"Atz\u012Bm\u0113t k\u0101 nos\u016Bt\u012Btu",send_estimate:"Nos\u016Bt\u012Bt apr\u0113\u0137inu",resend_estimate:"Atk\u0101rtoti nos\u016Bt\u012Bt apr\u0113\u0137inu",record_payment:"Izveidot maks\u0101jumu",add_estimate:"Pievienot apr\u0113\u0137inu",save_estimate:"Saglab\u0101t apr\u0113\u0137inu",confirm_conversion:"\u0160is apr\u0113\u0137ins tiks izmantots, lai izveidotu jaunu r\u0113\u0137inu.",conversion_message:"R\u0113\u0137ins izveidots veiksm\u012Bgi",confirm_send_estimate:"\u0160is apr\u0113\u0137ins tiks nos\u016Bt\u012Bts klientam e-past\u0101",confirm_mark_as_sent:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 nos\u016Bt\u012Bts",confirm_mark_as_accepted:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 apstiprin\u0101ts",confirm_mark_as_rejected:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 noraid\u012Bts",no_matching_estimates:"Netika atrasts neviens apr\u0113\u0137ins!",mark_as_sent_successfully:"Apr\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 veiksm\u012Bgi nos\u016Bt\u012Bts",send_estimate_successfully:"Apr\u0113\u0137ins veiksm\u012Bgi nos\u016Bt\u012Bts",errors:{required:"\u0160is lauks ir oblig\u0101ts"},accepted:"Apstiprin\u0101ts",rejected:"Rejected",sent:"Nos\u016Bt\u012Bts",draft:"Melnraksts",declined:"Noraid\u012Bts",new_estimate:"Jauns apr\u0113\u0137ins",add_new_estimate:"Pievienot jaunu apr\u0113\u0137inu",update_Estimate:"Atjaunin\u0101t apr\u0113\u0137inu",edit_estimate:"Labot apr\u0113\u0137inu",items:"preces",Estimate:"Apr\u0113\u0137ins | Apr\u0113\u0137ini",add_new_tax:"Pievienot jaunu nodokli",no_estimates:"V\u0113l nav apr\u0113\u0137inu!",list_of_estimates:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs apr\u0113\u0137inu saraksts.",mark_as_rejected:"Atz\u012Bm\u0113t k\u0101 noraid\u012Btu",mark_as_accepted:"Atz\u012Bm\u0113t k\u0101 apstiprin\u0101tu",marked_as_accepted_message:"Apr\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 apstiprin\u0101ts",marked_as_rejected_message:"Apr\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 noraid\u012Bts",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o apr\u0113\u0137inu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161o apr\u0113\u0137inus",created_message:"Apr\u0113\u0137ins izveidots veiksm\u012Bgi",updated_message:"Apr\u0113\u0137ins atjaunin\u0101ts veiksm\u012Bgi",deleted_message:"Apr\u0113\u0137ins veiksm\u012Bgi izdz\u0113sts | Apr\u0113\u0137ini veiksm\u012Bgi izdz\u0113sti",something_went_wrong:"kaut kas nog\u0101ja greizi",item:{title:"Preces nosaukums",description:"Apraksts",quantity:"Daudzums",price:"Cena",discount:"Atlaide",total:"Kop\u0101",total_discount:"Kop\u0113j\u0101 atlaide",sub_total:"Starpsumma",tax:"Nodoklis",amount:"Summa",select_an_item:"Rakst\u012Bt vai spiest, lai izv\u0113l\u0113tos",type_item_description:"Ievadiet preces/pakalpojuma aprakstu (nav oblig\u0101ti)"}},xf={title:"R\u0113\u0137ini",invoices_list:"R\u0113\u0137inu saraksts",days:"{days} Dienas",months:"{months} M\u0113nesis",years:"{years} Gads",all:"Visi",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"KLIENTS",paid_status:"APMAKSAS STATUS",ref_no:"REF NR.",number:"NUMURS",amount_due:"SUMMA APMAKSAI",partially_paid:"Da\u013C\u0113ji apmaks\u0101ts",total:"Kop\u0101",discount:"Atlaide",sub_total:"Starpsumma",invoice:"R\u0113\u0137ins | R\u0113\u0137ini",invoice_number:"R\u0113\u0137ina numurs",ref_number:"Ref numurs",contact:"Kontakti",add_item:"Pievienot preci",date:"Datums",due_date:"Apmaksas termi\u0146\u0161",status:"Status",add_tax:"Pievienot nodokli",amount:"Summa",action:"Darb\u012Bba",notes:"Piez\u012Bmes",view:"Skat\u012Bt",send_invoice:"Nos\u016Bt\u012Bt r\u0113\u0137inu",resend_invoice:"Nos\u016Bt\u012Bt r\u0113\u0137inu atk\u0101rtoti",invoice_template:"R\u0113\u0137ina sagatave",template:"Sagatave",mark_as_sent:"Atz\u012Bm\u0113t k\u0101 nos\u016Bt\u012Btu",confirm_send_invoice:"\u0160is r\u0113\u0137ins tiks nos\u016Bt\u012Bts klientam e-past\u0101",invoice_mark_as_sent:"R\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 nos\u016Bt\u012Bts",confirm_send:"\u0160is r\u0113\u0137ins tiks nos\u016Bt\u012Bts klientam e-past\u0101",invoice_date:"R\u0113\u0137ina datums",record_payment:"Izveidot maks\u0101jumu",add_new_invoice:"Jauns r\u0113\u0137ins",update_expense:"Atjaunin\u0101t izdevumu",edit_invoice:"Redi\u0123\u0113t r\u0113\u0137inu",new_invoice:"Jauns r\u0113\u0137ins",save_invoice:"Saglab\u0101t r\u0113\u0137inu",update_invoice:"Atjaunin\u0101t r\u0113\u0137inu",add_new_tax:"Pievienot jaunu nodokli",no_invoices:"V\u0113l nav r\u0113\u0137inu!",list_of_invoices:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs r\u0113\u0137inu saraksts.",select_invoice:"Izv\u0113laties r\u0113\u0137inu",no_matching_invoices:"Netika atrasts neviens r\u0113\u0137ins!",mark_as_sent_successfully:"R\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 veiksm\u012Bgi nos\u016Bt\u012Bts",invoice_sent_successfully:"R\u0113\u0137ins ir veiksm\u012Bgi nos\u016Bt\u012Bts",cloned_successfully:"R\u0113\u0137ins ir veiksm\u012Bgi nokop\u0113ts",clone_invoice:"Kop\u0113t r\u0113\u0137inu",confirm_clone:"\u0160is r\u0113\u0137ins tiks nokop\u0113ts k\u0101 jauns r\u0113\u0137ins",item:{title:"Preces nosaukums",description:"Apraksts",quantity:"Daudzums",price:"Cena",discount:"Atlaide",total:"Kop\u0101",total_discount:"Kop\u0113j\u0101 atlaide",sub_total:"Starpsumma",tax:"Nodoklis",amount:"Summa",select_an_item:"Rakst\u012Bt vai spiest, lai izv\u0113l\u0113tos",type_item_description:"Ievadiet preces/pakalpojuma aprakstu (nav oblig\u0101ti)"},confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o r\u0113\u0137inu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os r\u0113\u0137inus",created_message:"R\u0113\u0137ins izveidots veiksm\u012Bgi",updated_message:"R\u0113\u0137ins ir veiksm\u012Bgi atjaunin\u0101ts",deleted_message:"R\u0113\u0137ins veiksm\u012Bgi izdz\u0113sts | R\u0113\u0137ini veiksm\u012Bgi izdz\u0113sti",marked_as_sent_message:"R\u0113\u0137ins atz\u012Bm\u0113ts k\u0101 veiksm\u012Bgi nos\u016Bt\u012Bts",something_went_wrong:"kaut kas nog\u0101ja greizi",invalid_due_amount_message:"R\u0113\u0137ina kop\u0113j\u0101 summa nevar b\u016Bt maz\u0101ka par kop\u0113jo apmaks\u0101to summu. L\u016Bdzu atjauniniet r\u0113\u0137inu vai dz\u0113siet piesaist\u012Btos maks\u0101jumus, lai turpin\u0101tu."},zf={title:"Maks\u0101jumi",payments_list:"Maks\u0101jumu saraksts",record_payment:"Izveidot maks\u0101jumu",customer:"Klients",date:"Datums",amount:"Summa",action:"Darb\u012Bba",payment_number:"Maks\u0101juma numurs",payment_mode:"Apmaksas veids",invoice:"R\u0113\u0137ins",note:"Piez\u012Bme",add_payment:"Pievienot maks\u0101jumu",new_payment:"Jauns maks\u0101jums",edit_payment:"Labot maks\u0101jumu",view_payment:"Skat\u012Bt maks\u0101jumu",add_new_payment:"Pievienot jaunu maks\u0101jumu",send_payment_receipt:"Nos\u016Bt\u012Bt maks\u0101juma izdruku",send_payment:"Nos\u016Bt\u012Bt maks\u0101jumu",save_payment:"Saglab\u0101t maks\u0101jumu",update_payment:"Labot maks\u0101jumu",payment:"Maks\u0101jums | Maks\u0101jumi",no_payments:"Nav pievienotu maks\u0101jumu!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Netika atrasts neviens maks\u0101jums!",list_of_payments:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs maks\u0101jumu saraksts.",select_payment_mode:"Izv\u0113l\u0113ties maks\u0101juma veidu",confirm_mark_as_sent:"Apr\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 nos\u016Bt\u012Bts",confirm_send_payment:"\u0160is maks\u0101jums tiks nos\u016Bt\u012Bts klientam e-past\u0101",send_payment_successfully:"Maks\u0101jums veiksm\u012Bgi nos\u016Bt\u012Bts",something_went_wrong:"kaut kas nog\u0101ja greizi",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o maks\u0101jumu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os maks\u0101jumus",created_message:"Maks\u0101jums veiksm\u012Bgi izveidots",updated_message:"Maks\u0101jums veiksm\u012Bgi labots",deleted_message:"Maks\u0101jums veiksm\u012Bgi izdz\u0113sts | Maks\u0101jumi veiksm\u012Bgi izdz\u0113sti",invalid_amount_message:"Maks\u0101juma summa nav pareiza"},Sf={title:"Izdevumi",expenses_list:"Izdevumu saraksts",select_a_customer:"Izv\u0113l\u0113ties klientu",expense_title:"Nosaukums",customer:"Klients",contact:"Kontakti",category:"Kategorija",from_date:"Datums no",to_date:"Datums l\u012Bdz",expense_date:"Datums",description:"Apraksts",receipt:"\u010Ceks",amount:"Summa",action:"Darb\u012Bba",not_selected:"Not selected",note:"Piez\u012Bme",category_id:"Kategorijas Id",date:"Datums",add_expense:"Pievienot izdevumu",add_new_expense:"Pievienot jaunu izdevumu",save_expense:"Saglab\u0101t izdevumu",update_expense:"Atjaunin\u0101t izdevumu",download_receipt:"Lejupiel\u0101d\u0113t \u010Deku",edit_expense:"Labot izdevumu",new_expense:"Jauns izdevums",expense:"Izdevums | Izdevumi",no_expenses:"V\u0113l nav izdevumu!",list_of_expenses:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs izdevumu saraksts.",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o izdevumu | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os izdevumus",created_message:"Izdevums izveidots veiksm\u012Bgi",updated_message:"Izdevums atjaunin\u0101ts veiksm\u012Bgi",deleted_message:"Izdevums veiksm\u012Bgi izdz\u0113sts | Izdevumi veiksm\u012Bgi izdz\u0113sti",categories:{categories_list:"Kategoriju saraksts",title:"Nosaukums",name:"V\u0101rds",description:"Apraksts",amount:"Summa",actions:"Darb\u012Bbas",add_category:"Pievienot kategoriju",new_category:"Jauna Kategorija",category:"Kategorija | Kategorijas",select_a_category:"Izv\u0113lieties kategoriju"}},jf={email:"E-pasts",password:"Parole",forgot_password:"Aizmirsi paroli?",or_signIn_with:"vai pierakst\u012Bties ar",login:"Ielogoties",register:"Re\u0123istr\u0113ties",reset_password:"Atjaunot paroli",password_reset_successfully:"Parole atjaunota veiksm\u012Bgi",enter_email:"Ievadiet e-pastu",enter_password:"Ievadiet paroli",retype_password:"Atk\u0101rtoti ievadiet paroli"},Pf={title:"Lietot\u0101ji",users_list:"Lietot\u0101ju saraksts",name:"V\u0101rds",description:"Apraksts",added_on:"Pievienots",date_of_creation:"Izveido\u0161anas datums",action:"Darb\u012Bba",add_user:"Pievienot lietot\u0101ju",save_user:"Saglab\u0101t lietot\u0101ju",update_user:"Atjaunin\u0101t lietot\u0101ju",user:"Lietot\u0101js | Lietot\u0101ji",add_new_user:"Pievienot jaunu lietot\u0101ju",new_user:"Jauns lietot\u0101js",edit_user:"Redi\u0123\u0113t lietot\u0101ju",no_users:"Pagaid\u0101m nav lietot\u0101ju!",list_of_users:"\u0160aj\u0101 sada\u013C\u0101 b\u016Bs lietot\u0101ju saraksts.",email:"E-pasts",phone:"Telefona numurs",password:"Parole",user_attached_message:"Nevar dz\u0113st preci, kura tiek izmantota",confirm_delete:"J\u016Bs nevar\u0113siet atg\u016Bt \u0161o lietot\u0101ju | J\u016Bs nevar\u0113siet atg\u016Bt \u0161os lietot\u0101jus",created_message:"Lietot\u0101js veiksm\u012Bgi izveidots",updated_message:"Lietot\u0101js veiksm\u012Bgi labots",deleted_message:"Lietot\u0101js veiksm\u012Bgi izdz\u0113sts"},Df={title:"Atskaite",from_date:"Datums no",to_date:"Datums l\u012Bdz",status:"Status",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",download_pdf:"Lejupiel\u0101d\u0113t PDF",view_pdf:"Apskat\u012Bt PDF",update_report:"Labot atskaiti",report:"Atskaite | Atskaites",profit_loss:{profit_loss:"Pe\u013C\u0146a & Zaud\u0113jumi",to_date:"Datums l\u012Bdz",from_date:"Datums no",date_range:"Izv\u0113l\u0113ties datumus"},sales:{sales:"P\u0101rdotais",date_range:"Izv\u0113l\u0113ties datumus",to_date:"Datums l\u012Bdz",from_date:"Datums no",report_type:"Atskaites veids"},taxes:{taxes:"Nodok\u013Ci",to_date:"Datums l\u012Bdz",from_date:"Datums no",date_range:"Izv\u0113l\u0113ties datumus"},errors:{required:"\u0160is lauks ir oblig\u0101ts"},invoices:{invoice:"R\u0113\u0137ins",invoice_date:"R\u0113\u0137ina datums",due_date:"Apmaksas termi\u0146\u0161",amount:"Summa",contact_name:"Kontaktpersonas v\u0101rds",status:"Status"},estimates:{estimate:"Apr\u0113\u0137ins",estimate_date:"Apr\u0113\u0137ina datums",due_date:"Termi\u0146\u0161",estimate_number:"Apr\u0113\u0137ina numurs",ref_number:"Ref numurs",amount:"Summa",contact_name:"Kontaktpersonas v\u0101rds",status:"Status"},expenses:{expenses:"Izdevumi",category:"Kategorija",date:"Datums",amount:"Summa",to_date:"Datums l\u012Bdz",from_date:"Datums no",date_range:"Izv\u0113l\u0113ties datumus"}},Cf={menu_title:{account_settings:"Konta iestat\u012Bjumi",company_information:"Uz\u0146\u0113muma inform\u0101cija",customization:"Piel\u0101go\u0161ana",preferences:"Iestat\u012Bjumi",notifications:"Pazi\u0146ojumi",tax_types:"Nodok\u013Cu veidi",expense_category:"Izdevumu kategorijas",update_app:"Atjaunin\u0101t App",backup:"Rezerves kopija",file_disk:"Disks",custom_fields:"Piel\u0101gotie lauki",payment_modes:"Apmaksas veidi",notes:"Piez\u012Bmes"},title:"Iestat\u012Bjumi",setting:"Iestat\u012Bjumi | Iestat\u012Bjumi",general:"Visp\u0101r\u012Bgi",language:"Valoda",primary_currency:"Prim\u0101r\u0101 val\u016Bta",timezone:"Laika josla",date_format:"Datuma form\u0101ts",currencies:{title:"Val\u016Btas",currency:"Val\u016Bta | Val\u016Btas",currencies_list:"Val\u016Btu saraksts",select_currency:"Izv\u0113leties val\u016Btu",name:"Nosaukums",code:"Kods",symbol:"Simbols",precision:"Precizit\u0101te",thousand_separator:"T\u016Bksto\u0161u atdal\u012Bt\u0101js",decimal_separator:"Decim\u0101lda\u013Cu atdal\u012Bt\u0101js",position:"Poz\u012Bcija",position_of_symbol:"Poz\u012Bcijas simbols",right:"Pa labi",left:"Pa kreisi",action:"Darb\u012Bba",add_currency:"Pievienot val\u016Btu"},mail:{host:"E-pasta serveris",port:"E-pasta ports",driver:"E-pasta draiveris",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\u0113ns",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"E-pasta parole",username:"E-pasta lietot\u0101jv\u0101rds",mail_config:"E-pasta konfigur\u0101cija",from_name:"E-pasts no",from_mail:"E-pasta adrese no kuras s\u016Bt\u012Bt",encryption:"E-pasta \u0161ifr\u0113\u0161ana",mail_config_desc:"Zem\u0101k ir e-pasta konfigur\u0113\u0161anas forma. J\u016Bs varat konfigur\u0113t ar\u012B tre\u0161\u0101s puses servisus k\u0101 Sendgrid, SES u.c."},pdf:{title:"PDF uzst\u0101d\u012Bjumi",footer_text:"K\u0101jenes teksts",pdf_layout:"PDF izk\u0101rtojums"},company_info:{company_info:"Uz\u0146\u0113muma inform\u0101cija",company_name:"Uz\u0146\u0113muma nosaukums",company_logo:"Uz\u0146\u0113muma logo",section_description:"Inform\u0101cija par uz\u0146\u0113mumu kura tiks uzr\u0101d\u012Bta r\u0113\u0137inos, apr\u0113\u0137inos un citos dokumentos kurus veidosiet Crater sist\u0113m\u0101.",phone:"Telefona numurs",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",address:"Adrese",zip:"Pasta indekss",save:"Saglab\u0101t",updated_message:"Uz\u0146\u0113muma inform\u0101cija veiksm\u012Bgi saglab\u0101ta"},custom_fields:{title:"Piel\u0101gotie lauki",section_description:"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.",add_custom_field:"Add Custom Field",edit_custom_field:"Edit Custom Field",field_name:"Field Name",label:"Label",type:"Type",name:"Name",required:"Required",placeholder:"Placeholder",help_text:"Help Text",default_value:"Noklus\u0113juma v\u0113rt\u012Bba",prefix:"Prefikss",starting_number:"S\u0101kuma numurs",model:"Modelis",help_text_description:"Enter some text to help users understand the purpose of this custom field.",suffix:"Suffix",yes:"J\u0101",no:"N\u0113",order:"Order",custom_field_confirm_delete:"You will not be able to recover this Custom Field",already_in_use:"Custom Field is already in use",deleted_message:"Custom Field deleted successfully",options:"options",add_option:"Add Options",add_another_option:"Add another option",sort_in_alphabetical_order:"Sort in Alphabetical Order",add_options_in_bulk:"Add options in bulk",use_predefined_options:"Use Predefined Options",select_custom_date:"Select Custom Date",select_relative_date:"Select Relative Date",ticked_by_default:"Ticked by default",updated_message:"Custom Field updated successfully",added_message:"Custom Field added successfully"},customization:{customization:"piel\u0101go\u0161ana",save:"Saglab\u0101t",addresses:{title:"Adreses",section_description:"J\u016Bs varat piel\u0101got klienta juridisk\u0101s adreses un pieg\u0101des adreses form\u0101tu. (Uzr\u0101d\u0101s PDF izdruk\u0101). ",customer_billing_address:"Klienta nor\u0113\u0137inu adrese",customer_shipping_address:"Klienta pieg\u0101des adrese",company_address:"Uz\u0146\u0113muma adrese",insert_fields:"Pievienot lauku",contact:"Kontakti",address:"Adrese",display_name:"Nosaukums",primary_contact_name:"Galven\u0101 kontakta v\u0101rds",email:"E-pasts",website:"M\u0101jaslapa",name:"Nosaukums",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",company_name:"Uz\u0146\u0113muma nosaukums",address_street_1:"Adrese 1",address_street_2:"Adrese 2",phone:"Telefona numurs",zip_code:"Pasta indekss",address_setting_updated:"Iestat\u012Bjumi tika veiksm\u012Bgi atjaunin\u0101ti"},updated_message:"Uz\u0146\u0113muma inform\u0101cija veiksm\u012Bgi saglab\u0101ta",invoices:{title:"R\u0113\u0137ini",notes:"Piez\u012Bmes",invoice_prefix:"R\u0113\u0137ina prefikss",default_invoice_email_body:"Default Invoice Email Body",invoice_settings:"Invoice Settings",autogenerate_invoice_number:"Autom\u0101tiski \u0123ener\u0113t r\u0113\u0137ina numuru",autogenerate_invoice_number_desc:"Atsp\u0113jojiet, ja nev\u0113laties autom\u0101tiski \u0123ener\u0113t r\u0113\u0137inu numurus katru reizi, kad izveidojat jaunu r\u0113\u0137inu.",enter_invoice_prefix:"Ievadiet r\u0113\u0137ina prefiksu",terms_and_conditions:"Lieto\u0161anas noteikumi",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",shipping_address_format:"Pieg\u0101des adreses form\u0101ts",billing_address_format:"Maks\u0101t\u0101ja / Uz\u0146\u0113muma adreses form\u0101ts",invoice_settings_updated:"R\u0113\u0137ina iestat\u012Bjumi ir veiksm\u012Bgi atjaunin\u0101ti"},estimates:{title:"Apr\u0113\u0137ini",estimate_prefix:"Apr\u0113\u0137inu prefikss",default_estimate_email_body:"Noklus\u0113jamais Apr\u0113\u0137ina e-pasta saturs",estimate_settings:"Apr\u0113\u0137inu iestat\u012Bjumi",autogenerate_estimate_number:"Autom\u0101tiski \u0123ener\u0113t Apr\u0113\u0137ina numuru",estimate_setting_description:"Atsp\u0113jojiet, ja nev\u0113laties autom\u0101tiski \u0123ener\u0113t Apr\u0113\u0137inu numurus katru reizi, kad izveidojat jaunu Apr\u0113\u0137inu.",enter_estimate_prefix:"Ievadiet Apr\u0113\u0137ina prefiksu",estimate_setting_updated:"Apr\u0113\u0137ina iestat\u012Bjumi ir veiksm\u012Bgi atjaunin\u0101ti",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",billing_address_format:"Maks\u0101t\u0101ja / Uz\u0146\u0113muma adreses form\u0101ts",shipping_address_format:"Pieg\u0101des adreses form\u0101ts"},payments:{title:"Maks\u0101jumi",description:"P\u0101rskait\u012Bjumu veidi, maks\u0101jumiem",payment_prefix:"Maks\u0101juma prefikss",default_payment_email_body:"Noklus\u0113jamais Maks\u0101juma e-pasta saturs",payment_settings:"Maks\u0101jumu iestat\u012Bjumi",autogenerate_payment_number:"Autom\u0101tiski \u0123ener\u0113t Maks\u0101juma numuru",payment_setting_description:"Atsp\u0113jojiet, ja nev\u0113laties autom\u0101tiski \u0123ener\u0113t Maks\u0101juma numurus katru reizi, kad izveidojat jaunu Maks\u0101jumu.",enter_payment_prefix:"Ievadiet Maks\u0101juma prefiksu",payment_setting_updated:"Maks\u0101jumu iestat\u012Bjumi ir veiksm\u012Bgi atjaunin\u0101ti",payment_modes:"Apmaksas veidi",add_payment_mode:"Pievienojiet apmaksas veidu",edit_payment_mode:"Labot maks\u0101juma veidu",mode_name:"Veida nosaukums",payment_mode_added:"Pievienots maks\u0101\u0161anas veids",payment_mode_updated:"Labots maks\u0101\u0161anas veids",payment_mode_confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Maks\u0101juma veidu",already_in_use:"Maks\u0101juma veids jau tiek izmantots",deleted_message:"Maks\u0101juma veids veiksm\u012Bgi izdz\u0113sts",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",from_customer_address_format:"No Klienta adreses form\u0101ts"},items:{title:"Preces",units:"Vien\u012Bbas",add_item_unit:"Pievienot Preces vien\u012Bbu",edit_item_unit:"Labot Preces vien\u012Bbu",unit_name:"Vien\u012Bbas nosaukums",item_unit_added:"Preces vien\u012Bba pievienota",item_unit_updated:"Preces vien\u012Bba atjaunota",item_unit_confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Preces vien\u012Bbu",already_in_use:"Preces vien\u012Bba jau tiek izmantota",deleted_message:"Preces vien\u012Bba veiksm\u012Bgi izdz\u0113sta"},notes:{title:"Piez\u012Bmes",description:"Save time by creating notes and reusing them on your invoices, estimates & payments.",notes:"Notes",type:"Type",add_note:"Add Note",add_new_note:"Add New Note",name:"Name",edit_note:"Edit Note",note_added:"Note added successfully",note_updated:"Note Updated successfully",note_confirm_delete:"You will not be able to recover this Note",already_in_use:"Note is already in use",deleted_message:"Note deleted successfully"}},account_settings:{profile_picture:"Profile Picture",name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password",account_settings:"Account Settings",save:"Save",section_description:"You can update your name, email & password using the form below.",updated_message:"Account Settings updated successfully"},user_profile:{name:"Name",email:"Email",password:"Password",confirm_password:"Confirm Password"},notification:{title:"Notification",email:"Send Notifications to",description:"Which email notifications would you like to receive when something changes?",invoice_viewed:"Invoice viewed",invoice_viewed_desc:"When your customer views the invoice sent via crater dashboard.",estimate_viewed:"Estimate viewed",estimate_viewed_desc:"When your customer views the estimate sent via crater dashboard.",save:"Save",email_save_message:"Email saved successfully",please_enter_email:"Please Enter Email"},tax_types:{title:"Tax Types",add_tax:"Add Tax",edit_tax:"Edit Tax",description:"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.",add_new_tax:"Add New Tax",tax_settings:"Tax Settings",tax_per_item:"Tax Per Item",tax_name:"Tax Name",compound_tax:"Compound Tax",percent:"Percent",action:"Action",tax_setting_description:"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.",created_message:"Tax type created successfully",updated_message:"Tax type updated successfully",deleted_message:"Tax type deleted successfully",confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Nodok\u013Ca veidu",already_in_use:"Nodoklis jau tiek izmantots"},expense_category:{title:"Izdevumu kategorijas",action:"Darb\u012Bba",description:"Kategorijas ir oblig\u0101tas, lai pievienotu Izdevumus.",add_new_category:"Pievienot jaunu kategoriju",add_category:"Pievienot kategoriju",edit_category:"Redi\u0123\u0113t kategoriju",category_name:"Kategorijas nosaukums",category_description:"Apraksts",created_message:"Izdevumu kategorija izveidota veiksm\u012Bgi",deleted_message:"Izdevumu kategorija veiksm\u012Bgi izdz\u0113sta",updated_message:"Izdevumu kategorija atjaunin\u0101ta veiksm\u012Bgi",confirm_delete:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Izdevumu kategoriju",already_in_use:"Kategorija jau tiek izmantota"},preferences:{currency:"Val\u016Bta",default_language:"Noklus\u0113juma valoda",time_zone:"Laika josla",fiscal_year:"Finan\u0161u gads",date_format:"Datuma form\u0101ts",discount_setting:"Atlai\u017Eu iestat\u012Bjumi",discount_per_item:"Atlaide par preci/pakalpojumu ",discount_setting_description:"Iesp\u0113jot \u0161o, lai pie\u0161\u0137irtu atlaides individu\u0101l\u0101m r\u0113\u0137ina prec\u0113m. P\u0113c noklus\u0113juma, atlaide tiek piem\u0113rota r\u0113\u0137inam.",save:"Saglab\u0101t",preference:"Iestat\u012Bjumi | Iestat\u012Bjumi",general_settings:"Noklus\u0113jamie iestat\u012Bjumi sist\u0113mai.",updated_message:"Iestat\u012Bjumi atjaunin\u0101ti veiksm\u012Bgi",select_language:"Izv\u0113lieties valodu",select_time_zone:"Izv\u0113laties laika joslu",select_date_format:"Izv\u0113laties datuma form\u0101tu",select_financial_year:"Izv\u0113laties finan\u0161u gadu"},update_app:{title:"Atjaunin\u0101t App",description:"J\u016Bs varat atjaunin\u0101t Crater sist\u0113mas versiju pavisam vienk\u0101r\u0161i - spie\u017Eot uz pogas zem\u0101k",check_update:"Mekl\u0113t atjaunin\u0101jumus",avail_update:"Pieejami jauni atjaunin\u0101jumi",next_version:"N\u0101kam\u0101 versija",requirements:"Pras\u012Bbas",update:"Atjaunin\u0101t tagad",update_progress:"Notiek atjaunin\u0101\u0161ana...",progress_text:"Tas pras\u012Bs tikai da\u017Eas min\u016Btes. Pirms atjaunin\u0101\u0161anas beig\u0101m, l\u016Bdzu, neatsvaidziniet ekr\u0101nu un neaizveriet logu",update_success:"Sist\u0113ma ir atjaunin\u0101ta! L\u016Bdzu, uzgaidiet, kam\u0113r p\u0101rl\u016Bkprogrammas logs tiks autom\u0101tiski iel\u0101d\u0113ts.",latest_message:"Atjaunin\u0101jumi nav pieejami! Jums ir jaun\u0101k\u0101 versija.",current_version:"Versija",download_zip_file:"Lejupiel\u0101d\u0113t ZIP failu",unzipping_package:"Atarhiv\u0113 Zip failu",copying_files:"Notiek failu kop\u0113\u0161ana",running_migrations:"Notiek migr\u0101cijas",finishing_update:"Pabeidz atjaunin\u0101jumu",update_failed:"Atjaunin\u0101\u0161ana neizdev\u0101s",update_failed_text:"Atvainojiet! J\u016Bsu atjaunin\u0101juma laik\u0101 notika k\u013C\u016Bda: {step}. sol\u012B"},backup:{title:"Backup | Backups",description:"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database",new_backup:"Add New Backup",create_backup:"Create Backup",select_backup_type:"Select Backup Type",backup_confirm_delete:"You will not be able to recover this Backup",path:"path",new_disk:"New Disk",created_at:"created at",size:"size",dropbox:"dropbox",local:"local",healthy:"healthy",amount_of_backups:"amount of backups",newest_backups:"newest backups",used_storage:"used storage",select_disk:"Select Disk",action:"Action",deleted_message:"Backup deleted successfully",created_message:"Backup created successfully",invalid_disk_credentials:"Invalid credential of selected disk"},disk:{title:"File Disk | File Disks",description:"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.",created_at:"created at",dropbox:"dropbox",name:"Name",driver:"Driver",disk_type:"Type",disk_name:"Disk Name",new_disk:"Add New Disk",filesystem_driver:"Filesystem Driver",local_driver:"local Driver",local_root:"local Root",public_driver:"Public Driver",public_root:"Public Root",public_url:"Public URL",public_visibility:"Public Visibility",media_driver:"Media Driver",media_root:"Media Root",aws_driver:"AWS Driver",aws_key:"AWS Key",aws_secret:"AWS Secret",aws_region:"AWS Region",aws_bucket:"AWS Bucket",aws_root:"AWS Root",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Default Driver",is_default:"IR NOKLUS\u0112JAMS",set_default_disk:"Iestatiet noklus\u0113juma disku",success_set_default_disk:"Disks ir veiksm\u012Bgi iestat\u012Bts k\u0101 noklus\u0113jums",save_pdf_to_disk:"Saglab\u0101t PDF uz diska",disk_setting_description:" Iesp\u0113jot \u0161o, ja v\u0113laties lai katru r\u0113\u0137ina, apr\u0113\u0137ina un maks\u0101juma izdrukas PDF kopiju saglab\u0101tu disk\u0101. \u0160\u012B opcija samazin\u0101s iel\u0101d\u0113\u0161anas laiku, kad apskat\u012Bsiet PDF.",select_disk:"Izv\u0113lieties disku",disk_settings:"Diska uzst\u0101d\u012Bjumi",confirm_delete:"J\u016Bsu eso\u0161ie faili un mapes nor\u0101d\u012Btaj\u0101 disk\u0101 netiks ietekm\u0113ti, bet diska konfigur\u0101cija tiks izdz\u0113sta no Crater sist\u0113mas",action:"Darb\u012Bba",edit_file_disk:"Labot failu disku",success_create:"Disks tika pievienots veiksm\u012Bgi",success_update:"Disks atjaunin\u0101ts veiksm\u012Bgi",error:"Diska pievieno\u0161anas k\u013C\u016Bda",deleted_message:"Failu disks veiksm\u012Bgi izdz\u0113sts",disk_variables_save_successfully:"Disks konfigur\u0113ts veiksm\u012Bgi",disk_variables_save_error:"Diska konfigur\u0101cija neveiksm\u012Bga.",invalid_disk_credentials:"Nepareizi pieejas dati atz\u012Bm\u0113tajam diskam"}},Af={account_info:"Konta inform\u0101cija",account_info_desc:"Zem\u0101k sniegt\u0101 inform\u0101cija tiks izmantota galven\u0101 administratora konta izveidei. J\u016Bs var\u0113siet main\u012Bt inform\u0101ciju jebkur\u0101 laik\u0101 p\u0113c ielogo\u0161an\u0101s.",name:"V\u0101rds",email:"E-pasts",password:"Parole",confirm_password:"Apstipriniet paroli",save_cont:"Saglab\u0101t un turpin\u0101t",company_info:"Uz\u0146\u0113muma inform\u0101cija",company_info_desc:"\u0160\u012B inform\u0101cija tiks par\u0101d\u012Bta r\u0113\u0137inos. \u0145emiet v\u0113r\u0101, ka v\u0113l\u0101k to var redi\u0123\u0113t iestat\u012Bjumu lap\u0101.",company_name:"Uz\u0146\u0113muma nosaukums",company_logo:"Uz\u0146\u0113muma logo",logo_preview:"Logo",preferences:"Iestat\u012Bjumi",preferences_desc:"Noklus\u0113jamie iestat\u012Bjumi sist\u0113mai.",country:"Valsts",state:"Re\u0123ions",city:"Pils\u0113ta",address:"Adrese",street:"Adrese1 | Adrese2",phone:"Telefona numurs",zip_code:"Pasta indekss",go_back:"Atpaka\u013C",currency:"Val\u016Bta",language:"Valoda",time_zone:"Time Zone",fiscal_year:"Financial Year",date_format:"Date Format",from_address:"From Address",username:"Username",next:"Next",continue:"Continue",skip:"Skip",database:{database:"Site URL & Database",connection:"Database Connection",host:"Database Host",port:"Database Port",password:"Database Password",app_url:"App URL",app_domain:"App Domain",username:"Database Username",db_name:"Database Name",db_path:"Database Path",desc:"Create a database on your server and set the credentials using the form below."},permissions:{permissions:"Permissions",permission_confirm_title:"Are you sure you want to continue?",permission_confirm_desc:"Folder permission check failed",permission_desc:"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},req:{system_req:"System Requirements",php_req_version:"Php (version {version} required)",check_req:"P\u0101rbaud\u012Bt pras\u012Bbas",system_req_desc:"Crater sist\u0113mai ir da\u017Eas servera pras\u012Bbas. P\u0101rliecinieties, ka j\u016Bsu serverim ir vajadz\u012Bg\u0101 php versija un visi t\u0101l\u0101k min\u0113tie papla\u0161in\u0101jumi."},errors:{migrate_failed:"Migr\u0101cija neizdev\u0101s",database_variables_save_error:"Nevar\u0113ja konfigur\u0113t .env failu. L\u016Bdzu p\u0101rbaudiet faila pieejas",mail_variables_save_error:"E-pasta konfigur\u0101cija neveiksm\u012Bga.",connection_failed:"Datub\u0101zes savienojums neveiksm\u012Bgs",database_should_be_empty:"Datub\u0101zei j\u0101b\u016Bt tuk\u0161ai"},success:{mail_variables_save_successfully:"E-pasts konfigur\u0113ts veiksm\u012Bgi",database_variables_save_successfully:"Database configured successfully."}},Ef={invalid_phone:"Invalid Phone Number",invalid_url:"Invalid url (ex: http://www.craterapp.com)",invalid_domain_url:"Invalid url (ex: craterapp.com)",required:"Field is required",email_incorrect:"Incorrect Email.",email_already_taken:"The email has already been taken.",email_does_not_exist:"User with given email doesn't exist",item_unit_already_taken:"This item unit name has already been taken",payment_mode_already_taken:"This payment mode name has already been taken",send_reset_link:"Send Reset Link",not_yet:"Not yet? Send it again",password_min_length:"Password must contain {count} characters",name_min_length:"Name must have at least {count} letters.",enter_valid_tax_rate:"Enter valid tax rate",numbers_only:"Numbers Only.",characters_only:"Characters Only.",password_incorrect:"Passwords must be identical",password_length:"Password must be {count} character long.",qty_must_greater_than_zero:"Quantity must be greater than zero.",price_greater_than_zero:"Price must be greater than zero.",payment_greater_than_zero:"Payment must be greater than   zero.",payment_greater_than_due_amount:"Entered Payment is more than due amount of this invoice.",quantity_maxlength:"Quantity should not be greater than 20 digits.",price_maxlength:"Price should not be greater than 20 digits.",price_minvalue:"Price should be greater than 0.",amount_maxlength:"Amount should not be greater than 20 digits.",amount_minvalue:"Amount should be greater than 0.",description_maxlength:"Description should not be greater than 255 characters.",subject_maxlength:"Subject should not be greater than 100 characters.",message_maxlength:"Message should not be greater than 255 characters.",maximum_options_error:"Maximum  of {max} options selected. First remove a selected option to select another.",notes_maxlength:"Notes should not be greater than 255 characters.",address_maxlength:"Address should not be greater than 255 characters.",ref_number_maxlength:"Ref Number should not be greater than 255 characters.",prefix_maxlength:"Prefix should not be greater than 5 characters.",something_went_wrong:"something went wrong"},Nf="Apr\u0113\u0137ins",Tf="Apr\u0113\u0137ina numurs",If="Apr\u0113\u0137ina datums",$f="Der\u012Bgs l\u012Bdz",Rf="R\u0113\u0137ins",Ff="R\u0113\u0137ina numurs",Mf="R\u0113\u0137ina datums",Vf="Apmaksas termi\u0146\u0161",Bf="Notes",Of="Nosaukums",Lf="Daudzums",Uf="Cena",Kf="Atlaide",qf="Summa",Zf="Starpsumma",Wf="Kop\u0101",Hf="Payment",Gf="MAKS\u0100JUMA IZDRUKA",Yf="Maks\u0101juma datums",Jf="Maks\u0101juma numurs",Xf="Apmaksas veids",Qf="Sa\u0146emt\u0101 summa",eh="IZDEVUMU ATSKAITE",th="KOP\u0100 IZDEVUMI",ah="PE\u013B\u0145AS & IZDEVUMU ATSKAITE",sh="Sales Customer Report",nh="Sales Item Report",ih="Tax Summary Report",oh="IEN\u0100KUMI",rh="PE\u013B\u0145A",dh="Atskaite par p\u0101rdoto: P\u0113c lietot\u0101ja",lh="KOP\u0100 P\u0100RDOTAIS",ch="Atskaite par p\u0101rdoto: P\u0113c preces/pakalpojuma",_h="NODOK\u013BU ATSKAITE",uh="NODOK\u013BI KOP\u0100",mh="Nodok\u013Cu veidi",ph="Izdevumi",gh="Sa\u0146\u0113m\u0113js,",fh="Pieg\u0101des adrese,",hh="Sa\u0146emts no:",vh="Nodoklis";var yh={navigation:gf,general:ff,dashboard:hf,tax_types:vf,global_search:yf,customers:bf,items:kf,estimates:wf,invoices:xf,payments:zf,expenses:Sf,login:jf,users:Pf,reports:Df,settings:Cf,wizard:Af,validation:Ef,pdf_estimate_label:Nf,pdf_estimate_number:Tf,pdf_estimate_date:If,pdf_estimate_expire_date:$f,pdf_invoice_label:Rf,pdf_invoice_number:Ff,pdf_invoice_date:Mf,pdf_invoice_due_date:Vf,pdf_notes:Bf,pdf_items_label:Of,pdf_quantity_label:Lf,pdf_price_label:Uf,pdf_discount_label:Kf,pdf_amount_label:qf,pdf_subtotal:Zf,pdf_total:Wf,pdf_payment_label:Hf,pdf_payment_receipt_label:Gf,pdf_payment_date:Yf,pdf_payment_number:Jf,pdf_payment_mode:Xf,pdf_payment_amount_received_label:Qf,pdf_expense_report_label:eh,pdf_total_expenses_label:th,pdf_profit_loss_label:ah,pdf_sales_customers_label:sh,pdf_sales_items_label:nh,pdf_tax_summery_label:ih,pdf_income_label:oh,pdf_net_profit_label:rh,pdf_customer_sales_report:dh,pdf_total_sales_label:lh,pdf_item_sales_label:ch,pdf_tax_report_label:_h,pdf_total_tax_label:uh,pdf_tax_types_label:mh,pdf_expenses_label:ph,pdf_bill_to:gh,pdf_ship_to:fh,pdf_received_from:hh,pdf_tax_label:vh};const bh={dashboard:"\xD6versikt",customers:"Kunder",items:"Artiklar",invoices:"Fakturor",expenses:"Utgifter",estimates:"Kostnadsf\xF6rslag",payments:"Betalningar",reports:"Rapporter",settings:"Inst\xE4llningar",logout:"Logga ut",users:"Anv\xE4ndare"},kh={add_company:"Skapa f\xF6retag",view_pdf:"Visa PDF",copy_pdf_url:"Kopiera adress till PDF",download_pdf:"Ladda ner PDF",save:"Spara",create:"Skapa",cancel:"Avbryt",update:"Uppdatera",deselect:"Avmarkera",download:"Ladda ner",from_date:"Fr\xE5n datum",to_date:"Till datum",from:"Fr\xE5n",to:"Till",sort_by:"Sortera p\xE5",ascending:"Stigande",descending:"Fallande",subject:"\xC4mne",body:"Inneh\xE5ll",message:"Meddelande",send:"Skicka",go_back:"Tillbaka",back_to_login:"Till inloggningssidan?",home:"Hem",filter:"Filter",delete:"Ta bort",edit:"Editera",view:"Visa",add_new_item:"Skapa artikel",clear_all:"Rensa alla",showing:"Visar",of:"av",actions:"Funktioner",subtotal:"DELSUMMA",discount:"RABATT",fixed:"Fast",percentage:"Procent",tax:"MOMS",total_amount:"TOTALSUMMA",bill_to:"Faktureras till",ship_to:"Levereras till",due:"F\xF6rfallen",draft:"F\xF6rslag",sent:"Skickat",all:"Alla",select_all:"V\xE4lj alla",choose_file:"Klicka h\xE4r f\xF6r att v\xE4lja fil",choose_template:"V\xE4lj mall",choose:"V\xE4lj",remove:"Ta bort",select_a_status:"V\xE4lj status",select_a_tax:"V\xE4lj moms",search:"S\xF6k",are_you_sure:"\xC4r du s\xE4ker?",list_is_empty:"Listan \xE4r tom.",no_tax_found:"Hittade inte moms!",four_zero_four:"404",you_got_lost:"Hoppsan! Nu \xE4r du vilse!",go_home:"G\xE5 hem",test_mail_conf:"Testa epostinst\xE4llningar",send_mail_successfully:"Lyckades skicka epost",setting_updated:"Inst\xE4llningar uppdaterades",select_state:"V\xE4lj kommun",select_country:"V\xE4lj land",select_city:"V\xE4lj stad",street_1:"Gatuadress 1",street_2:"Gatuadress 2",action_failed:"F\xF6rs\xF6k misslyckades",retry:"F\xF6rs\xF6k igen",choose_note:"V\xE4lj notering",no_note_found:"Inga noteringar hittades",insert_note:"L\xE4gg till notering",copied_pdf_url_clipboard:"Url till PDF kopierades till urklipp!"},wh={select_year:"V\xE4lj \xE5r",cards:{due_amount:"F\xF6rfallet belopp",customers:"Kunder",invoices:"Fakturor",estimates:"Kostnadsf\xF6rslag"},chart_info:{total_sales:"F\xF6rs\xE4ljning",total_receipts:"Kvitton",total_expense:"Utgifter",net_income:"Nettoinkomst",year:"V\xE4lj \xE5r"},monthly_chart:{title:"F\xF6rs\xE4ljning och utgifter"},recent_invoices_card:{title:"F\xF6rfallna fakturor",due_on:"F\xF6rfaller den",customer:"Kund",amount_due:"F\xF6rfallet belopp",actions:"Handlingar",view_all:"Visa alla"},recent_estimate_card:{title:"Senaste kostnadsf\xF6rslag",date:"Datum",customer:"Kund",amount_due:"F\xF6rfallet belopp",actions:"Handlingar",view_all:"Visa alla"}},xh={name:"Namn",description:"Beskrivning",percent:"Provent",compound_tax:"Sammansatt moms"},zh={search:"S\xF6k...",customers:"Kunder",users:"Anv\xE4ndare",no_results_found:"Hittade inga resultat"},Sh={title:"Kunder",add_customer:"L\xE4gg till kund",contacts_list:"Kundlista",name:"Namn",mail:"Epost | Epost",statement:"P\xE5st\xE5ende",display_name:"Visningsnamn",primary_contact_name:"Prim\xE4r kontakts namn",contact_name:"Kontaktnamn",amount_due:"F\xF6rfallet belopp",email:"Epost",address:"Adress",phone:"Telefon",website:"Hemsida",overview:"\xD6versikt",enable_portal:"Aktivera portal",country:"Land",state:"Kommun",city:"Stad",zip_code:"Postnummer",added_on:"Tillagd den",action:"Handling",password:"L\xF6senord",street_number:"Gatnummer",primary_currency:"Huvudvaluta",description:"Beskrivning",add_new_customer:"L\xE4gg till ny kund",save_customer:"Spara kund",update_customer:"Uppdatera kund",customer:"Kund | Kunder",new_customer:"Ny kund",edit_customer:"\xC4ndra kund",basic_info:"Information",billing_address:"Fakturaadress",shipping_address:"Leveransadress",copy_billing_address:"Kopiera fr\xE5n faktura",no_customers:"Inga kunder \xE4n!",no_customers_found:"Hittade inga kunder!",no_contact:"No contact",no_contact_name:"No contact name",list_of_customers:"H\xE4r kommer det finnas en lista med kunder.",primary_display_name:"Visningsnamn",select_currency:"V\xE4lj valuta",select_a_customer:"V\xE4lj kund",type_or_click:"Skriv eller klicka f\xF6r att v\xE4lja",new_transaction:"Ny transaktion",no_matching_customers:"Matchade inte med n\xE5gon kund!",phone_number:"Telefonnummer",create_date:"Skapandedatum",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna kund eller n\xE5gra relaterade fakturor, kostnadsf\xF6rslag eller betalningar. | Du kommer inte kunna \xE5terst\xE4lla dessa kunder eller n\xE5gra relaterade fakturor, kostnadsf\xF6rslag eller betalningar.",created_message:"Kund skapades",updated_message:"Kund uppdaterades",deleted_message:"Kund raderades | Kunder raderades"},jh={title:"Artiklar",items_list:"Artikellista",name:"Namn",unit:"Enhet",description:"Beskrivning",added_on:"Tillagd den",price:"Pris",date_of_creation:"Skapandedatum",not_selected:"No item selected",action:"Handling",add_item:"Skapa artikel",save_item:"Spara artikel",update_item:"Uppdatera artiklar",item:"Artikel | Artiklar",add_new_item:"Skapa ny artikel",new_item:"Ny artikel",edit_item:"\xC4ndra artikel",no_items:"Inga artiklar \xE4n!",list_of_items:"H\xE4r kommer lista \xF6ver artiklar vara.",select_a_unit:"v\xE4lj enhet",taxes:"Moms",item_attached_message:"Kan inte radera en artikel som anv\xE4nds",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna artikel | Du kommer inte kunna \xE5terst\xE4lla dessa artiklar",created_message:"Artikel skapades",updated_message:"Artikel uppdaterades",deleted_message:"Artikel raderades | Artiklar raderades"},Ph={title:"Kostnadsf\xF6rslag",estimate:"Kostnadsf\xF6rslag | Kostnadsf\xF6rslag",estimates_list:"Lista med kostnadsf\xF6rslag",days:"{days} dagar",months:"{months} m\xE5nader",years:"{years} \xE5r",all:"Alla",paid:"Betalda",unpaid:"Obetalda",customer:"KUND",ref_no:"REF NR.",number:"NUMMER",amount_due:"F\xD6RFALLET BELOPP",partially_paid:"Delbetald",total:"Summa",discount:"Rabatt",sub_total:"Delsumma",estimate_number:"Kostnadsf\xF6rslagsnummer",ref_number:"Ref Nummer",contact:"Kontakt",add_item:"L\xE4gg till artikel",date:"Datum",due_date:"F\xF6rfallodatum",expiry_date:"Utg\xE5ngsdatum",status:"Status",add_tax:"L\xE4gg till moms",amount:"Belopp",action:"Handling",notes:"Noteringar",tax:"Moms",estimate_template:"Mall",convert_to_invoice:"Konvertera till faktura",mark_as_sent:"Markerade som skickad",send_estimate:"Skicka kostnadsf\xF6rslag",resend_estimate:"Skicka kostnadsf\xF6rslag igen",record_payment:"Registrera betalning",add_estimate:"L\xE4gg till kostnadsf\xF6rslag",save_estimate:"Spara kostnadsf\xF6rslag",confirm_conversion:"Detta kostnadsf\xF6rslag anv\xE4nds f\xF6r att skapa ny faktura.",conversion_message:"Faktura skapades",confirm_send_estimate:"Detta kostnadsf\xF6rslag skickas via epost till kund",confirm_mark_as_sent:"Detta kostnadsf\xF6rslag markeras som skickat",confirm_mark_as_accepted:"Detta kostnadsf\xF6rslag markeras som accepterad",confirm_mark_as_rejected:"Detta kostnadsf\xF6rslag markeras som avvisad",no_matching_estimates:"Inga matchande kostnadsf\xF6rslag!",mark_as_sent_successfully:"Kostnadsf\xF6rslag markerat som skickat",send_estimate_successfully:"Kostnadsf\xF6rslag skickades",errors:{required:"F\xE4ltet \xE4r tvingande"},accepted:"Accepterad",rejected:"Rejected",sent:"Skickat",draft:"Utkast",declined:"Avvisad",new_estimate:"Nytt kostnadsf\xF6rslag",add_new_estimate:"Skapa nytt kostnadsf\xF6rslag",update_Estimate:"Uppdatera kostnadsf\xF6rslag",edit_estimate:"\xC4ndra kostnadsf\xF6rslag",items:"artiklar",Estimate:"Kostnadsf\xF6rslag | Kostnadsf\xF6rslag",add_new_tax:"Skapa ny momssats",no_estimates:"Inga kostnadsf\xF6rslag \xE4n!",list_of_estimates:"H\xE4r kommer det finnas kostnadsf\xF6rslag.",mark_as_rejected:"Markera som avvisad",mark_as_accepted:"Markera som godk\xE4nd",marked_as_accepted_message:"Kostnadsf\xF6rslag markerad som godk\xE4nd",marked_as_rejected_message:"Kostnadsf\xF6rslag markerad som avvisad",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla detta kostnadsf\xF6rslag | Du kommer inte kunna \xE5terst\xE4lla dessa kostnadsf\xF6rslag",created_message:"Kostnadsf\xF6rslag skapades",updated_message:"Kostnadsf\xF6rslag \xE4ndrades",deleted_message:"Kostnadsf\xF6rslag raderades | Kostnadsf\xF6rslag raderades",something_went_wrong:"n\xE5got gick fel",item:{title:"Artikelnamn",description:"Beskrivning",quantity:"Antal",price:"Pris",discount:"Rabatt",total:"Summa",total_discount:"Rabattsumma",sub_total:"Delsumma",tax:"Moms",amount:"Summa",select_an_item:"Skriv eller klicka f\xF6r att v\xE4lja artikel",type_item_description:"Skriv in artikelns beskrivning (frivilligt)"}},Dh={title:"Fakturor",invoices_list:"Fakturor",days:"{days} dagar",months:"{months} m\xE5nader",years:"{years} \xE5r",all:"Alla",paid:"Betalda",unpaid:"Obetalda",viewed:"Viewed",overdue:"Overdue",completed:"Completed",customer:"KUNDER",paid_status:"BETALSTATUS",ref_no:"REF NR.",number:"NUMMER",amount_due:"F\xD6RFALLET BELOPP",partially_paid:"Delbetald",total:"Summa",discount:"Rabatt",sub_total:"Delsumma",invoice:"Faktura | Fakturor",invoice_number:"Fakturanummer",ref_number:"Ref Nummer",contact:"Kontakt",add_item:"L\xE4gg till artikel",date:"Datum",due_date:"F\xF6rfallodatum",status:"Status",add_tax:"L\xE4gg till moms",amount:"Summa",action:"Handling",notes:"Noteringar",view:"Visa",send_invoice:"Skicka faktura",resend_invoice:"Skicka faktura igen",invoice_template:"Fakturamall",template:"Mall",mark_as_sent:"Markera som skickad",confirm_send_invoice:"Denna faktura skickas via epost till kunden",invoice_mark_as_sent:"Denna faktura markeras som skickad",confirm_send:"Denna faktura skickas via epost till kunden",invoice_date:"Fakturadatum",record_payment:"Registrera betalning",add_new_invoice:"L\xE4gg till ny faktura",update_expense:"\xC4ndra utgifter",edit_invoice:"Editera faktura",new_invoice:"Ny faktura",save_invoice:"Spara faktura",update_invoice:"Uppdatera faktura",add_new_tax:"L\xE4gg till ny momssats",no_invoices:"Inga fakturor \xE4n!",list_of_invoices:"H\xE4r kommer det vara en lista med fakturor.",select_invoice:"V\xE4lj faktura",no_matching_invoices:"Inga matchande fakturor!",mark_as_sent_successfully:"Fakturans status \xE4ndrad till skickad",invoice_sent_successfully:"Fakturan skickades",cloned_successfully:"Fakturan kopierades",clone_invoice:"Kopiera faktura",confirm_clone:"Denna faktura kopieras till en ny faktura",item:{title:"Artikelnamn",description:"Beskvirning",quantity:"Antal",price:"Pris",discount:"Rabatt",total:"Summa",total_discount:"Totalsumma",sub_total:"Delsumma",tax:"Moms",amount:"Summa",select_an_item:"Skriv eller klicka f\xF6r att v\xE4lja artikel",type_item_description:"Artikeltypsbeskrivning (frivillig)"},confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna faktura | Du kommer inte kunna \xE5terst\xE4lla dessa fakturor",created_message:"Faktura skapades",updated_message:"Faktura uppdaterades",deleted_message:"Faktura raderades | fakturor raderades",marked_as_sent_message:"Faktura markerad som skickad",something_went_wrong:"n\xE5got blev fel",invalid_due_amount_message:"Totalsumman f\xF6r fakturan kan inte vara l\xE4gra \xE4n den betalda summan. V\xE4nligen uppdatera fakturan eller radera dom kopplade betalningarna."},Ch={title:"Betalningar",payments_list:"Lista med betalningar",record_payment:"Registrera betalning",customer:"Kund",date:"Datum",amount:"Summa",action:"Handling",payment_number:"Betalningsnummer",payment_mode:"Betalningss\xE4tt",invoice:"Faktura",note:"Notering",add_payment:"Skapa betalning",new_payment:"Ny betalning",edit_payment:"\xC4ndra betalning",view_payment:"Visa betalning",add_new_payment:"Skapa ny betalning",send_payment_receipt:"Skicka kvitto p\xE5 betalning",send_payment:"Skicka betalning",save_payment:"Spara betalning",update_payment:"Uppdatera betalning",payment:"Betalning | Betalningar",no_payments:"Inga betalningar \xE4n!",not_selected:"Not selected",no_invoice:"No invoice",no_matching_payments:"Inga matchande betalningar!",list_of_payments:"H\xE4r kommer listan med betalningar finnas.",select_payment_mode:"V\xE4lj betalningss\xE4tt",confirm_mark_as_sent:"Detta kostnadsf\xF6rslag markeras som skickat",confirm_send_payment:"Denna betalning skickas till kunden via epost",send_payment_successfully:"Betalningen skickades",something_went_wrong:"n\xE5got gick fel",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna betalning | Du kommer inte kunna \xE5terst\xE4lla dessa betalningar",created_message:"Betalning skapades",updated_message:"Betalning uppdaterades",deleted_message:"Betalning raderades | Betalningar raderades",invalid_amount_message:"Betalsumman \xE4r ogiltig"},Ah={title:"Utgifter",expenses_list:"Lista med utgifter",select_a_customer:"V\xE4lj en kund",expense_title:"Titel",customer:"Kund",contact:"Kontakt",category:"Kategori",from_date:"Fr\xE5n datum",to_date:"Till datum",expense_date:"Datum",description:"Beskrivning",receipt:"Kvitto",amount:"Summa",action:"Handling",not_selected:"Not selected",note:"Notering",category_id:"Kategorins ID",date:"Datum",add_expense:"L\xE4gg till utgift",add_new_expense:"L\xE4gg till ny utgift",save_expense:"Spara utgift",update_expense:"Uppdatera utgift",download_receipt:"Ladda ner kvitto",edit_expense:"\xC4ndra utgift",new_expense:"Ny utgift",expense:"Utgift | Utgifter",no_expenses:"Inga utgifter \xE4n!",list_of_expenses:"H\xE4r kommer utgifterna finnas.",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna utgift | Du kommer inte kunna \xE5terst\xE4lla dessa utgifter",created_message:"Utgift skapades",updated_message:"Utgift \xE4ndrades",deleted_message:"Utgift raderades | utgifterna raderades",categories:{categories_list:"Kategorier",title:"Titel",name:"Namn",description:"Beskrivning",amount:"Summa",actions:"Handlingar",add_category:"L\xE4gg till kategori",new_category:"Ny kategori",category:"Kategori | Kategorier",select_a_category:"V\xE4lj en kategori"}},Eh={email:"Epost",password:"L\xF6senord",forgot_password:"Gl\xF6mt l\xF6senord?",or_signIn_with:"eller logga in med",login:"Logga in",register:"Registrera",reset_password:"\xC5terst\xE4ll l\xF6senord",password_reset_successfully:"L\xF6senord \xE5terst\xE4llt",enter_email:"Skriv in epost",enter_password:"Skriv in l\xF6senord",retype_password:"Skriv l\xF6senordet igen"},Nh={title:"Anv\xE4ndare",users_list:"Anv\xE4ndare",name:"Namn",description:"Beskrivning",added_on:"Tillagd den",date_of_creation:"Datum skapad",action:"Handling",add_user:"L\xE4gg till anv\xE4ndare",save_user:"Spara anv\xE4ndare",update_user:"Uppdatera anv\xE4ndare",user:"Anv\xE4ndare | Anv\xE4ndare",add_new_user:"L\xE4gg till ny anv\xE4ndare",new_user:"Ny anv\xE4ndare",edit_user:"\xC4ndra anv\xE4ndare",no_users:"Inga anv\xE4ndare \xE4n!",list_of_users:"H\xE4r kommer man se alla anv\xE4ndare.",email:"Epost",phone:"Telefon",password:"L\xF6senord",user_attached_message:"Kan inte ta bort ett objeckt som anv\xE4nds",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna anv\xE4ndare | Du kommer inte kunna \xE5terst\xE4lla dessa anv\xE4ndare",created_message:"Anv\xE4ndare skapades",updated_message:"Anv\xE4ndare uppdaterades",deleted_message:"Anv\xE4ndaren raderades | Anv\xE4ndarna raderades"},Th={title:"Rapport",from_date:"Fr\xE5n datum",to_date:"Till datum",status:"Status",paid:"Betald",unpaid:"Obetald",download_pdf:"Ladda ner PDF",view_pdf:"Visa PDF",update_report:"Uppdatera rapport",report:"Rapport | Rapporter",profit_loss:{profit_loss:"Inkomst och utgifter",to_date:"Till datum",from_date:"Fr\xE5n datum",date_range:"V\xE4lj datumintervall"},sales:{sales:"F\xF6rs\xE4ljningar",date_range:"V\xE4lj datumintervall",to_date:"Till datum",from_date:"Fr\xE5n datum",report_type:"Rapporttyp"},taxes:{taxes:"Momssatser",to_date:"Till datum",from_date:"Fr\xE5n datum",date_range:"V\xE4lj datumintervall"},errors:{required:"F\xE4ltet \xE4r tvingande"},invoices:{invoice:"Faktura",invoice_date:"Fakturadatum",due_date:"F\xF6rfallodatum",amount:"Summa",contact_name:"Kontaktnamn",status:"Status"},estimates:{estimate:"Kostnadsf\xF6rslag",estimate_date:"Kostnadsf\xF6rslagsdatum",due_date:"F\xF6rfallodatum",estimate_number:"Kostnadsf\xF6rslagsnummer",ref_number:"Ref Nummer",amount:"Summa",contact_name:"Kontaktnamn",status:"Status"},expenses:{expenses:"Utgifter",category:"Kategori",date:"Datum",amount:"Summa",to_date:"Till datum",from_date:"Fr\xE5n datum",date_range:"V\xE4lj datumintervall"}},Ih={menu_title:{account_settings:"Kontoinst\xE4llningar",company_information:"F\xF6retagsinformation",customization:"Anpassning",preferences:"Inst\xE4llningar",notifications:"Notifieringar",tax_types:"Momssatser",expense_category:"Utgiftskategorier",update_app:"Uppdatera appen",backup:"Backup",file_disk:"File Disk",custom_fields:"Anpassade f\xE4lt",payment_modes:"Betalmetoder",notes:"Noteringar"},title:"Inst\xE4llningar",setting:"Inst\xE4llningar | Inst\xE4llningar",general:"Allm\xE4n",language:"Spr\xE5k",primary_currency:"Prim\xE4r valuta",timezone:"Tidszon",date_format:"Datumformat",currencies:{title:"Valutor",currency:"Valuta | Valutor",currencies_list:"Lista med valutor",select_currency:"V\xE4lj valuta",name:"Namn",code:"Kod",symbol:"Symbol",precision:"Precision",thousand_separator:"Tusenavgr\xE4nsare",decimal_separator:"Decimalavgr\xE4nsare",position:"Position",position_of_symbol:"Symbolens position",right:"H\xF6ger",left:"V\xE4nster",action:"Handling",add_currency:"L\xE4gg till valuta"},mail:{host:"V\xE4rdadress",port:"Port",driver:"Typ",secret:"Hemlighet",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\xE4n",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"L\xF6senord",username:"Anv\xE4ndarnamn",mail_config:"Epostinst\xE4llningar",from_name:"Fr\xE5n namn",from_mail:"Fr\xE5n adress",encryption:"Kryptering",mail_config_desc:"Nedan formul\xE4r anv\xE4nds f\xF6r att konfigurera vilket s\xE4tt som ska anv\xE4ndar f\xF6r att skicka epost. Du kan ocks\xE5 anv\xE4nda tredjepartsleverant\xF6r som Sendgrid, SES o.s.v."},pdf:{title:"PDF-inst\xE4llningar",footer_text:"Sidfotstext",pdf_layout:"PDF-layout"},company_info:{company_info:"F\xF6retagsinfo",company_name:"F\xF6retagsnamn",company_logo:"F\xF6retagslogga",section_description:"Information om ditt f\xF6retags som kommer visas p\xE5 fakturor, kostnadsf\xF6rslag och andra dokument skapade av Crater.",phone:"Telefon",country:"Land",state:"Kommun",city:"Stad",address:"Adress",zip:"Postnr",save:"Spara",updated_message:"F\xF6retagsinformation uppdaterad"},custom_fields:{title:"Anpassade f\xE4lt",section_description:"Anpassa fakturor, kostnadsf\xF6rslag och kvitton med dina egna f\xE4lt. Anv\xE4nd nedanst\xE5ende f\xE4lt i adressforamteringen p\xE5 anpassningarnas inst\xE4llningssida.",add_custom_field:"L\xE4gg till anpassat f\xE4lt",edit_custom_field:"\xC4ndra anpassade f\xE4lt",field_name:"F\xE4ltnamn",label:"Etikett",type:"Typ",name:"Namn",required:"Tvingad",placeholder:"Placeholder",help_text:"Hj\xE4lptext",default_value:"Standardv\xE4rde",prefix:"Prefix",starting_number:"Startnummer",model:"Modell",help_text_description:"Skriv in text som hj\xE4lper anv\xE4ndaren f\xF6rst\xE5 vad det anpassade f\xE4ltet anv\xE4nds f\xF6r.",suffix:"Suffix",yes:"Ja",no:"Nej",order:"Ordning",custom_field_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla detta anpassade f\xE4lt",already_in_use:"Det anpassade f\xE4ltet anv\xE4nds",deleted_message:"Det anpassade f\xE4ltet raderades",options:"val",add_option:"L\xE4gg till val",add_another_option:"L\xE4gg till ett till val",sort_in_alphabetical_order:"Sortera i alfabetisk ordning",add_options_in_bulk:"L\xE4gg till flera val",use_predefined_options:"Anv\xE4nd f\xF6rinst\xE4llda val",select_custom_date:"V\xE4lj anpassat datum",select_relative_date:"V\xE4lj relativt datum",ticked_by_default:"Ikryssad fr\xE5n start",updated_message:"Anpassat f\xE4lt uppdaterades",added_message:"Anpassat f\xE4lt skapat"},customization:{customization:"Anpassning",save:"Spara",addresses:{title:"Adresser",section_description:"Du kan formatera kundens faktura- och leveransadress (Visas enbart i PDF-en). ",customer_billing_address:"Kunds fakturaadress",customer_shipping_address:"Kunds leveransadress",company_address:"F\xF6retagsadress",insert_fields:"L\xE4gg till f\xE4lt",contact:"Kontakt",address:"Adress",display_name:"Visningsnamn",primary_contact_name:"Huvudkontakts namn",email:"Epost",website:"Hemsida",name:"Namn",country:"Lan",state:"Kommun",city:"Stad",company_name:"F\xF6retagsnamn",address_street_1:"Gatuadress 1",address_street_2:"Gatuadress 2",phone:"Telefon",zip_code:"Postnummer",address_setting_updated:"Inst\xE4llningar f\xF6r adress uppdaterades"},updated_message:"F\xF6retagsinformation uppdaterades",invoices:{title:"Fakturor",notes:"Noteringar",invoice_prefix:"Prefix f\xF6r fakturor",default_invoice_email_body:"Standardtext f\xF6r faktura",invoice_settings:"Fakturainst\xE4llningar",autogenerate_invoice_number:"Generera fakturanummer automatiskt",autogenerate_invoice_number_desc:"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt fakturanummer vid skapande av faktura.",enter_invoice_prefix:"Skriv prefix f\xF6r faktura",terms_and_conditions:"Villkor",company_address_format:"Formatering av f\xF6retagsadress",shipping_address_format:"Formatering av leveransadress",billing_address_format:"Formatering av fakturaadress",invoice_settings_updated:"Fakturainst\xE4llningar uppdaterades"},estimates:{title:"Kostnadsf\xF6rslag",estimate_prefix:"Prefix f\xF6r kostnadsf\xF6rslag",default_estimate_email_body:"Standardtext f\xF6r kostnadsf\xF6rslag",estimate_settings:"Kostnadsf\xF6rslagsinst\xE4llningar",autogenerate_estimate_number:"Generera kostnadsf\xF6rslagsnummer automatiskt",estimate_setting_description:"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt kostnadsf\xF6rslagsnummer vid skapande av kostnadsf\xF6rslag.",enter_estimate_prefix:"Skriv prefix f\xF6r kostnadsf\xF6rslag",estimate_setting_updated:"Kostnadsf\xF6rslagsinst\xE4llningar uppdaterades",company_address_format:"Formatering av f\xF6retagsadress",billing_address_format:"Formatering av fakturaadress",shipping_address_format:"Formatering av leveransadress"},payments:{title:"Betalningar",description:"\xD6verf\xF6ringstyper f\xF6r betalningar",payment_prefix:"Prefix f\xF6r betalningar",default_payment_email_body:"Standardtext f\xF6r betalningar",payment_settings:"Betalningsinst\xE4llningar",autogenerate_payment_number:"Generera betalningsnummer automatiskt",payment_setting_description:"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt betalningssnummer vid skapande av betalning.",enter_payment_prefix:"Skriv prefix f\xF6r kostnadsf\xF6rslag",payment_setting_updated:"Betalningsinst\xE4llningar uppdaterades",payment_modes:"Betalningss\xE4tt",add_payment_mode:"L\xE4gg till betalningss\xE4tt",edit_payment_mode:"\xC4ndra betalningss\xE4tt",mode_name:"Typnamn",payment_mode_added:"Betalningss\xE4tt tillagd",payment_mode_updated:"Betalningss\xE4tt uppdaterat",payment_mode_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna betalningsmetod",already_in_use:"Betalningss\xE4ttet anv\xE4nds",deleted_message:"Betalningss\xE4tt raderades",company_address_format:"Format f\xF6r f\xF6retagsadress",from_customer_address_format:"Format f\xF6r kundens fr\xE5n-adress"},items:{title:"Artiklar",units:"Enheter",add_item_unit:"L\xE4gg till artikelenhet",edit_item_unit:"Editera artikelenhet",unit_name:"Enhets namn",item_unit_added:"Artikelenhet tillagd",item_unit_updated:"Artikelenhet uppdaterad",item_unit_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna artikelenhet",already_in_use:"Artikelenhet anv\xE4nds",deleted_message:"Artikelenhet raderades"},notes:{title:"Noteringar",description:"Spara tid genom att skapa noteringar som kan \xE5teranv\xE4ndas p\xE5 fakturor, betalningsf\xF6rslag, och betalningar.",notes:"Noteringar",type:"Typ",add_note:"L\xE4gg till notering",add_new_note:"L\xE4gg till ny notering",name:"Namn",edit_note:"Editera notering",note_added:"Notering skapades",note_updated:"Notering uppdaterades",note_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna notering",already_in_use:"Notering anv\xE4nds",deleted_message:"Notering raderades"}},account_settings:{profile_picture:"Profilbild",name:"Namn",email:"Epost",password:"L\xF6senord",confirm_password:"Bekr\xE4fta l\xF6senord",account_settings:"Kontoinst\xE4llningar",save:"Spara",section_description:"Du kan uppdatera namn, epost och l\xF6senord med hj\xE4lp av formul\xE4ret nedan.",updated_message:"Kontoinst\xE4llningar uppdaterades"},user_profile:{name:"Namn",email:"Epost",password:"L\xF6senord",confirm_password:"Bekr\xE4fta l\xF6senord"},notification:{title:"Notifieringar",email:"Skicka notifiering till",description:"Vilka notifieringar vill du ha via epost n\xE4r n\xE5got \xE4ndras?",invoice_viewed:"Faktura kollad",invoice_viewed_desc:"N\xE4r din kund kollar fakturan via craters \xF6versikt.",estimate_viewed:"Betalf\xF6rslag kollad",estimate_viewed_desc:"N\xE4r din kund kollar betalf\xF6rslag via craters \xF6versikt.",save:"Spara",email_save_message:"Epost sparades",please_enter_email:"Skriv in epostadress"},tax_types:{title:"Momssatser",add_tax:"L\xE4gg till moms",edit_tax:"\xC4ndra moms",description:"Du kan l\xE4gga till och ta bort momssatser som du vill. Crater har st\xF6d f\xF6r moms per artikel men \xE4ven per faktura.",add_new_tax:"L\xE4gg till ny momssats",tax_settings:"Momssattsinst\xE4llningar",tax_per_item:"Moms per artikel",tax_name:"Namn",compound_tax:"Sammansatt moms",percent:"Procent",action:"Handling",tax_setting_description:"Aktivera detta om du vill l\xE4gga till momssats p\xE5 individuella fakturaartiklar. Som standard s\xE4tts moms direkt p\xE5 fakturan.",created_message:"Momssats skapades",updated_message:"Momssats uppdaterades",deleted_message:"Momssats raderades",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna Momssats",already_in_use:"Momssats anv\xE4nds"},expense_category:{title:"Kategorier f\xF6r utgifter",action:"Handling",description:"Kategorier kr\xE4vs f\xF6r att l\xE4gga till utgifter. Du kan l\xE4gga till och ta bort dessa kategorier som du vill",add_new_category:"L\xE4gg till ny kategori",add_category:"L\xE4gg till kategori",edit_category:"\xC4ndra kategori",category_name:"Kategorinamn",category_description:"Beskrivning",created_message:"Utgiftskategori skapades",deleted_message:"Utgiftskategori raderades",updated_message:"Utgiftskategori uppdaterades",confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna utgiftskategori",already_in_use:"Kategorin anv\xE4nds"},preferences:{currency:"Valuta",default_language:"Standardspr\xE5k",time_zone:"Tidszon",fiscal_year:"R\xE4kenskaps\xE5r",date_format:"Datumformattering",discount_setting:"Rabattinst\xE4llningar",discount_per_item:"Rabatt per artikel ",discount_setting_description:"Aktivera detta om du vill kunna l\xE4gga rabatt p\xE5 enskilda fakturaartiklar. Rabatt ges som standard p\xE5 hela fakturan.",save:"Spara",preference:"Preferens | Preferenser",general_settings:"Standardpreferenser f\xF6r systemet.",updated_message:"Preferenser uppdaterades",select_language:"V\xE4lj spr\xE5k",select_time_zone:"V\xE4lj tidszon",select_date_format:"V\xE4lj datumformat",select_financial_year:"V\xE4lj r\xE4kenskaps\xE5r"},update_app:{title:"Uppdatera applikationen",description:"Du kan enkelt uppdatera Crater genom att s\xF6ka efter uppdateringar via knappen nedan",check_update:"S\xF6k efter uppdateringar",avail_update:"Uppdatering \xE4r tillg\xE4nglig",next_version:"N\xE4sta version",requirements:"Krav",update:"Uppdatera nu",update_progress:"Uppdaterar...",progress_text:"Det kommer bara ta n\xE5gra minuter. St\xE4ng eller uppdatera inte webl\xE4saren f\xF6rr\xE4n uppdateringen \xE4r f\xE4rdig.",update_success:"Applikationen har uppdaterats! V\xE4nta s\xE5 kommer f\xF6nstret laddas om automatiskt..",latest_message:"Ingen uppdatering tillg\xE4nglig! Du har den senaste versionen.",current_version:"Nuvarande version",download_zip_file:"Ladda ner ZIP-fil",unzipping_package:"Zippar upp paket",copying_files:"Kopierar filer",running_migrations:"K\xF6r migreringar",finishing_update:"Avslutar uppdateringen",update_failed:"Uppdatering misslyckades",update_failed_text:"Uppdateringen misslyckades p\xE5 steg : {step} step"},backup:{title:"S\xE4kerhetskopiering | S\xE4kerhetskopieringar",description:"S\xE4kerhetskopian \xE4r en zip-fil som inneh\xE5ller alla filer i katalogerna du v\xE4ljer samt en kopia av databasen",new_backup:"Skapa ny s\xE4kerhetskopia",create_backup:"Skapa s\xE4kerhetskopia",select_backup_type:"V\xE4lj typ av s\xE4kerhetskopia",backup_confirm_delete:"Du kommer inte kunna \xE5terst\xE4lla denna s\xE4kerhetskopia",path:"s\xF6kv\xE4g",new_disk:"Ny disk",created_at:"skapad den",size:"storlek",dropbox:"dropbox",local:"lokal",healthy:"h\xE4lsosam",amount_of_backups:"antal s\xE4kerhetskopior",newest_backups:"senaste s\xE4kerhetskopiorna",used_storage:"anv\xE4nt utrymme",select_disk:"V\xE4lj disk",action:"Handling",deleted_message:"S\xE4kerhetskopia raderad",created_message:"S\xE4kerhetskopia skapades",invalid_disk_credentials:"Ogiltiga autentiseringsuppgifter f\xF6r den valda disken"},disk:{title:"Lagring | Lagringar",description:"Crater anv\xE4nder din lokala disk som standard f\xF6r att spara s\xE4kerhetskopior, avatarer och andra bildfiler. Du kan st\xE4lla in fler lagringsenheter s\xE5som DigitalOcean, S3 och Dropbox beroende av ditt behov.",created_at:"skapad den",dropbox:"dropbox",name:"Namn",driver:"Plats",disk_type:"Typ",disk_name:"Lagringsenhetsnamn",new_disk:"L\xE4gg till ny lagringsenhet",filesystem_driver:"Enhetsplats",local_driver:"Lokal enhet",local_root:"S\xF6kv\xE4g p\xE5 lokal enhet",public_driver:"Offentlig drivrutin",public_root:"Offentlig rot",public_url:"Offentlig URL",public_visibility:"Offentlig synlighet",media_driver:"Mediaenhet",media_root:"Media Root",aws_driver:"AWS",aws_key:"Nyckel",aws_secret:"L\xF6senord",aws_region:"Region",aws_bucket:"Bucket",aws_root:"S\xF6kv\xE4g",do_spaces_type:"Do Spaces type",do_spaces_key:"Nyckel",do_spaces_secret:"L\xF6senord",do_spaces_region:"Region",do_spaces_bucket:"Bucket",do_spaces_endpoint:"Endpoint",do_spaces_root:"S\xF6kv\xE4g",dropbox_type:"Typ",dropbox_token:"Token",dropbox_key:"Nyckel",dropbox_secret:"L\xF6senord",dropbox_app:"App",dropbox_root:"S\xF6kv\xE4g",default_driver:"Standard",is_default:"\xC4r standard",set_default_disk:"V\xE4lj som standard",set_default_disk_confirm:"Denna disk kommer bli standard och alla nya PFDer blir sparade h\xE4r",success_set_default_disk:"Disk vald som standard",save_pdf_to_disk:"Spara PDFer till disk",disk_setting_description:"Aktivera detta om du vill ha en kopia av varje faktura, kostnadsf\xF6rslag, och betalningskvitto som PDF p\xE5 din standard disk automatiskt.Aktiverar du denna funktion s\xE5 kommer laddtiderna f\xF6r visning av PDFer minskas.",select_disk:"V\xE4lj Disk",disk_settings:"Diskinst\xE4llningar",confirm_delete:"Dina existerande filer och kataloger p\xE5 den valda disken kommer inte p\xE5verkas men inst\xE4llningarna f\xF6r disken raderas fr\xE5n Crater",action:"Handling",edit_file_disk:"\xC4ndra disk",success_create:"Disk skapades",success_update:"Disk uppdaterades",error:"Fel vid skapande av disk",deleted_message:"Disk raderades",disk_variables_save_successfully:"Diskinst\xE4llningar sparades",disk_variables_save_error:"N\xE5got gick fel vid sparning av diskinst\xE4llningar",invalid_disk_credentials:"Felaktiga uppgifter vid val av disk"}},$h={account_info:"Kontoinformation",account_info_desc:"Nedan detaljer anv\xE4nds f\xF6r att skapa huvudadministrat\xF6rskonto. Du kan \xE4ndra detta i efterhand.",name:"Namn",email:"Epost",password:"L\xF6senord",confirm_password:"Bekr\xE4fta l\xF6senord",save_cont:"Spara och forts\xE4tt",company_info:"F\xF6retagsinformation",company_info_desc:"Denna information visas p\xE5 fakturor. Du kan \xE4ndra detta i efterhand p\xE5 sidan f\xF6r inst\xE4llningar.",company_name:"F\xF6retagsnamn",company_logo:"F\xF6retagslogga",logo_preview:"F\xF6rhandsvisning av logga",preferences:"Inst\xE4llningar",preferences_desc:"Standardinst\xE4llningar f\xF6r systemet.",country:"Land",state:"Kommun",city:"Stad",address:"Adress",street:"Gatuadress1 | Gatuadress2",phone:"Telefon",zip_code:"Postnr",go_back:"Tillbaka",currency:"Valuta",language:"Spr\xE5k",time_zone:"Tidszon",fiscal_year:"R\xE4kenskaps\xE5r",date_format:"Datumformat",from_address:"Fr\xE5n adress",username:"Anv\xE4ndarnamn",next:"N\xE4sta",continue:"Forts\xE4tt",skip:"Hoppa \xF6ver",database:{database:"Sidans URL & Databas",connection:"Databasanslutning",host:"V\xE4rdadress till databasen",port:"Port till databasen",password:"L\xF6senord till databasen",app_url:"Appens URL",app_domain:"Appens Dom\xE4n",username:"Anv\xE4ndarnamn till databasen",db_name:"Databasens namn",db_path:"Databasens s\xF6kv\xE4g",desc:"Skapa en database p\xE5 din server och st\xE4ll in autentiseringsuppgifter i formul\xE4ret nedan."},permissions:{permissions:"Beh\xF6righeter",permission_confirm_title:"\xC4r du s\xE4ker p\xE5 att du vill forts\xE4tta?",permission_confirm_desc:"Fel beh\xF6righeter vid kontroll p\xE5 katalogen",permission_desc:"Nedan \xE4r en lista p\xE5 katalogr\xE4ttigheter som kr\xE4vs f\xF6r att denna app ska fungera. Om beh\xF6righetskontrollen misslyckas, uppdatera beh\xF6righeterna f\xF6r katalogerna."},mail:{host:"V\xE4rdadress till epost",port:"Port till epost",driver:"Typ",secret:"Hemlighet",mailgun_secret:"Hemlighet",mailgun_domain:"Dom\xE4n",mailgun_endpoint:"Endpoint",ses_secret:"Hemlighet",ses_key:"Nyckel",password:"L\xF6senord",username:"Anv\xE4ndarnamn",mail_config:"Epostinst\xE4llningar",from_name:"Namn som st\xE5r vid utg\xE5ende epost",from_mail:"Epostadress som anv\xE4nds som returadress vid utg\xE5ende epost",encryption:"Epostkryptering",mail_config_desc:"Nedan formul\xE4r anv\xE4nds f\xF6r att konfigurera vilket s\xE4tt som ska anv\xE4ndar f\xF6r att skicka epost. Du kan ocks\xE5 anv\xE4nda tredjepartsleverant\xF6r som Sendgrid, SES o.s.v."},req:{system_req:"Systemkrav",php_req_version:"Php (version {version} kr\xE4vs)",check_req:"Kontrollera krav",system_req_desc:"Crater har n\xE5gra krav p\xE5 din server. Kontrollera att din server har den n\xF6dv\xE4ndiga versionen av PHP och alla till\xE4gg som n\xE4mns nedan."},errors:{migrate_failed:"Migration misslyckades",database_variables_save_error:"Kan inte skriva till .env-filen. Kontrollera dina beh\xF6righeter till filen",mail_variables_save_error:"Epostinst\xE4llningar misslyckades.",connection_failed:"Databasanslutning misslyckades",database_should_be_empty:"Databasen m\xE5ste vara tom"},success:{mail_variables_save_successfully:"Epostinst\xE4llningar sparades.",database_variables_save_successfully:"Databasinst\xE4llningar sparades."}},Rh={invalid_phone:"Felaktigt telefonnummer",invalid_url:"Felaktig url (ex: http://www.craterapp.com)",invalid_domain_url:"Felaktig url (ex: craterapp.com)",required:"F\xE4ltet \xE4r tvingande",email_incorrect:"Felaktig epostadress.",email_already_taken:"Denna epostadress finns redan.",email_does_not_exist:"Anv\xE4ndare med den epostadressen finns inte",item_unit_already_taken:"Detta artikelenhetsnamn finns redan",payment_mode_already_taken:"Betalningsmetodsnamnet finns redan",send_reset_link:"Skicka l\xE4nk f\xF6r \xE5terst\xE4llning",not_yet:"Inte \xE4n? Skicka igen",password_min_length:"L\xF6senordet m\xE5ste inneh\xE5lla {count} tecken",name_min_length:"Namn m\xE5ste ha minst {count} bokst\xE4ver.",enter_valid_tax_rate:"Skriv in till\xE5ten momssats",numbers_only:"Endast siffror.",characters_only:"Endast bokst\xE4ver.",password_incorrect:"L\xF6senorden m\xE5ste \xF6verensst\xE4mma",password_length:"L\xF6senordet m\xE5ste vara minst {count} tecken.",qty_must_greater_than_zero:"Antal m\xE5ste vara st\xF6rre \xE4n noll.",price_greater_than_zero:"Pris m\xE5ste vara st\xF6rre \xE4n noll.",payment_greater_than_zero:"Betalningen m\xE5ste vara st\xF6rre \xE4n   noll.",payment_greater_than_due_amount:"Inslagen betalning \xE4r st\xF6rre \xE4n summan p\xE5 denna faktura.",quantity_maxlength:"Antal kan inte vara st\xF6rre \xE4n 20 siffror.",price_maxlength:"Pris kan inte vara st\xF6rre \xE4n 20 siffror.",price_minvalue:"Pris m\xE5ste vara st\xF6rre \xE4n 0.",amount_maxlength:"Belopp kan inte vara st\xF6rre \xE4n 20 siffror.",amount_minvalue:"Belopp m\xE5ste vara st\xF6rre \xE4n 9.",description_maxlength:"Beskrivning f\xE5r inte inneh\xE5lla fler \xE4n 255 tecken.",subject_maxlength:"\xC4mne f\xE5r inte inneh\xE5lla fler \xE4n 100 tecken.",message_maxlength:"Meddelande f\xE5r inte inneh\xE5lla fler \xE4n 255 tecken.",maximum_options_error:"H\xF6gst {max} val. Ta bort ett val f\xF6r att kunna l\xE4gga till ett annat.",notes_maxlength:"Noteringar kan inte vara st\xF6rre \xE4n 255 tecken.",address_maxlength:"Adress kan inte vara st\xF6rre \xE4n 255 tecken.",ref_number_maxlength:"Referensnummer kan inte vara st\xF6rre \xE4n 255 tecken.",prefix_maxlength:"Prefix kan inte vara st\xF6rre \xE4n 5 tecken.",something_went_wrong:"n\xE5got blev fel"},Fh="Kostnadsf\xF6rslag",Mh="Kostnadsf\xF6rslagsnummer",Vh="Kostnadsf\xF6rslagsdatum",Bh="Utg\xE5ngsdatum",Oh="Faktura",Lh="Fakturanummer",Uh="Fakturadatum",Kh="Inbetalningsdatum",qh="Noteringar",Zh="Artiklar",Wh="Antal",Hh="Kostnad",Gh="Rabatt",Yh="Belopp",Jh="Delsumma",Xh="Summa",Qh="Payment",ev="Betalningskvitto",tv="Betalningsdatum",av="Betalningsnummer",sv="Betalningstyp",nv="Belopp mottaget",iv="Kostnadsrapport",ov="Totalkostnad",rv="Resultat- och f\xF6rlustrapport",dv="Sales Customer Report",lv="Sales Item Report",cv="Tax Summary Report",_v="Inkomst",uv="Nettof\xF6rtj\xE4nst",mv="F\xF6rs\xE4ljningsrapport: Per kund",pv="SUMMA F\xD6RS\xC4LJNINGAR",gv="F\xF6rs\xE4ljningsrapport: Per artikel",fv="Momsrapport",hv="SUMMA MOMS",vv="Momssatser",yv="Utgifter",bv="Faktureras till,",kv="Skickas till,",wv="Fr\xE5n:",xv="Tax";var zv={navigation:bh,general:kh,dashboard:wh,tax_types:xh,global_search:zh,customers:Sh,items:jh,estimates:Ph,invoices:Dh,payments:Ch,expenses:Ah,login:Eh,users:Nh,reports:Th,settings:Ih,wizard:$h,validation:Rh,pdf_estimate_label:Fh,pdf_estimate_number:Mh,pdf_estimate_date:Vh,pdf_estimate_expire_date:Bh,pdf_invoice_label:Oh,pdf_invoice_number:Lh,pdf_invoice_date:Uh,pdf_invoice_due_date:Kh,pdf_notes:qh,pdf_items_label:Zh,pdf_quantity_label:Wh,pdf_price_label:Hh,pdf_discount_label:Gh,pdf_amount_label:Yh,pdf_subtotal:Jh,pdf_total:Xh,pdf_payment_label:Qh,pdf_payment_receipt_label:ev,pdf_payment_date:tv,pdf_payment_number:av,pdf_payment_mode:sv,pdf_payment_amount_received_label:nv,pdf_expense_report_label:iv,pdf_total_expenses_label:ov,pdf_profit_loss_label:rv,pdf_sales_customers_label:dv,pdf_sales_items_label:lv,pdf_tax_summery_label:cv,pdf_income_label:_v,pdf_net_profit_label:uv,pdf_customer_sales_report:mv,pdf_total_sales_label:pv,pdf_item_sales_label:gv,pdf_tax_report_label:fv,pdf_total_tax_label:hv,pdf_tax_types_label:vv,pdf_expenses_label:yv,pdf_bill_to:bv,pdf_ship_to:kv,pdf_received_from:wv,pdf_tax_label:xv};const Sv={dashboard:"Hlavn\xFD Panel",customers:"Z\xE1kazn\xEDci",items:"Polo\u017Eky",invoices:"Fakt\xFAry",expenses:"V\xFDdaje",estimates:"Cenov\xE9 odhady",payments:"Platby",reports:"Reporty",settings:"Nastavenia",logout:"Odhl\xE1si\u0165 sa",users:"U\u017Eivatelia"},jv={add_company:"Prida\u0165 firmu",view_pdf:"Zobrazi\u0165 PDF",copy_pdf_url:"Kop\xEDrova\u0165 PDF adresu",download_pdf:"Stiahnu\u0165 PDF",save:"Ulo\u017Ei\u0165",create:"Vytvori\u0165",cancel:"Zru\u0161i\u0165",update:"Aktualizova\u0165",deselect:"Zru\u0161i\u0165 v\xFDber",download:"Stiahnu\u0165",from_date:"Od d\xE1tumu",to_date:"Do d\xE1tumu",from:"Od",to:"Pre",sort_by:"Zoradi\u0165 pod\u013Ea",ascending:"Vzostupne",descending:"Zostupne",subject:"Predmet",body:"Telo textu",message:"Spr\xE1va",send:"Odosla\u0165",go_back:"Sp\xE4\u0165",back_to_login:"Sp\xE4\u0165 na prihl\xE1senie?",home:"Domov",filter:"Filtrova\u0165",delete:"Odstr\xE1ni\u0165",edit:"Upravi\u0165",view:"Zobrazi\u0165",add_new_item:"Prida\u0165 nov\xFA polo\u017Eku",clear_all:"Vy\u010Disti\u0165 v\u0161etko",showing:"Zobrazuje sa",of:"z",actions:"Akcie",subtotal:"MEDZIS\xDA\u010CET",discount:"Z\u013DAVA",fixed:"Pevn\xE9",percentage:"Percento",tax:"DA\u0147",total_amount:"SUMA SPOLU",bill_to:"Faktura\u010Dn\xE1 adresa",ship_to:"Adresa doru\u010Denia",due:"Term\xEDn",draft:"Koncept",sent:"Odoslan\xE9",all:"V\u0161etko",select_all:"Vybra\u0165 v\u0161etky",choose_file:"Kliknite sem pre vybratie s\xFAboru",choose_template:"Vybra\u0165 vzh\u013Ead",choose:"Vybra\u0165",remove:"Odstr\xE1ni\u0165",powered_by:"Be\u017E\xED na",bytefury:"Bytefury",select_a_status:"Vyberte stav",select_a_tax:"Vyberte da\u0148",search:"H\u013Eada\u0165",are_you_sure:"Ste si ist\xFD?",list_is_empty:"Zoznam je pr\xE1zdny.",no_tax_found:"\u017Diadna da\u0148 nebola n\xE1jden\xE1!",four_zero_four:"404",you_got_lost:"Ups! Stratili ste sa!",go_home:"\xCDs\u0165 domov",test_mail_conf:"Otestova\u0165 e-mailov\xFA konfigur\xE1ciu",send_mail_successfully:"E-Mail odoslan\xFD \xFAspe\u0161ne",setting_updated:"Nastavenia boli \xFAspe\u0161ne aktualizovan\xE9",select_state:"Vyberte \u0161t\xE1t",select_country:"Vyberte krajinu",select_city:"Vyberte mesto",street_1:"Prv\xFD riadok ulice",street_2:"Druh\xFD riadok ulice",action_failed:"Akcia ne\xFAspe\u0161n\xE1",retry:"Sk\xFAsi\u0165 znova",choose_note:"Vyberte pozn\xE1mku",no_note_found:"Neboli n\xE1jden\xE9 \u017Eiadne pozn\xE1mky",insert_note:"Vlo\u017E pozn\xE1mku"},Pv={select_year:"Vyberte rok",cards:{due_amount:"\u010Ciastka k zaplateniu",customers:"Z\xE1kazn\xEDci",invoices:"Fakt\xFAry",estimates:"Cenov\xE9 odhady"},chart_info:{total_sales:"Predaje",total_receipts:"Doklady o zaplaten\xED",total_expense:"V\xFDdaje",net_income:"\u010Cist\xFD pr\xEDjem",year:"Vyberte rok"},monthly_chart:{title:"Predaje a V\xFDdaje"},recent_invoices_card:{title:"Splatn\xE9 fakt\xFAry",due_on:"Term\xEDn splatenia",customer:"Z\xE1kazn\xEDk",amount_due:"\u010Ciastka k zaplateniu",actions:"Akcie",view_all:"Zobrazi\u0165 v\u0161etko"},recent_estimate_card:{title:"Ned\xE1vne cenov\xE9 odhady",date:"D\xE1tum",customer:"Z\xE1kazn\xEDk",amount_due:"Cena",actions:"Akcie",view_all:"Zobrazi\u0165 v\u0161etky"}},Dv={name:"Meno",description:"Popis",percent:"Percento",compound_tax:"Zlo\u017Een\xE1 da\u0148"},Cv={search:"H\u013Eada\u0165...",customers:"Z\xE1kazn\xEDci",users:"U\u017Eivatelia",no_results_found:"Neboli n\xE1jden\xE9 \u017Eiadne v\xFDsledky"},Av={title:"Z\xE1kazn\xEDci",add_customer:"Prida\u0165 Z\xE1kazn\xEDka",contacts_list:"Zoznam z\xE1kazn\xEDkov",name:"Meno",mail:"E-mail | E-maily",statement:"V\xFDpis",display_name:"Zobrazovan\xE9 meno",primary_contact_name:"Meno Prim\xE1rneho Kontaktu",contact_name:"Meno Kontaktu",amount_due:"\u010Ciastka k zaplateniu",email:"E-mail",address:"Adresa",phone:"Telef\xF3n",website:"Webov\xE9 str\xE1nky",overview:"Preh\u013Ead",enable_portal:"Aktivova\u0165 port\xE1l",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",zip_code:"PS\u010C",added_on:"Pridan\xE9 D\u0148a",action:"Akcia",password:"Heslo",street_number:"\u010C\xEDslo Ulice",primary_currency:"Hlavn\xE1 Mena",description:"Popis",add_new_customer:"Prida\u0165 Nov\xE9ho Z\xE1kazn\xEDka",save_customer:"Ulo\u017Ei\u0165 Z\xE1kazn\xEDka",update_customer:"Aktualizova\u0165 Zak\xE1zn\xEDka",customer:"Z\xE1kazn\xEDk | Z\xE1kazn\xEDci",new_customer:"Nov\xFD Z\xE1kazn\xEDk",edit_customer:"Upravi\u0165 Z\xE1kazn\xEDka",basic_info:"Z\xE1kladn\xE9 Inform\xE1cie",billing_address:"Faktura\u010Dn\xE1 Adresa",shipping_address:"Doru\u010Dovacia Adresa",copy_billing_address:"Kop\xEDrova\u0165 pod\u013Ea Faktura\u010Dnej adresy",no_customers:"Zatia\u013E nebol pridan\xFD \u017Eiadny z\xE1kazn\xEDk!",no_customers_found:"Nen\xE1jden\xED \u017Eiadni z\xE1kazn\xEDci!",list_of_customers:"T\xE1to sekcia bude obsahova\u0165 zoznam z\xE1kazn\xEDkov.",primary_display_name:"Hlavn\xE9 meno pre zobrazenie",select_currency:"Vyberte menu",select_a_customer:"Vyberte z\xE1kazn\xEDka",type_or_click:"Za\u010Dnite p\xEDsa\u0165 alebo kliknite pre vybratie",new_transaction:"Nov\xE1 Transakcia",no_matching_customers:"Nena\u0161li sa \u017Eiadny z\xE1kazn\xEDci sp\u013A\u0148aj\xFAce Va\u0161e podmienky!",phone_number:"Telef\xF3nne \u010C\xEDslo",create_date:"D\xE1tum Vytvorenia",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 tohto z\xE1kazn\xEDka ani \u017Eiadne fakt\xFAry, cenov\xE9 odhady alebo platby s n\xEDm spojen\xE9. | Nebudete m\xF4c\u0165 obnovi\u0165 t\xFDchto z\xE1kazn\xEDkov ani \u017Eiadne fakt\xFAry, cenov\xE9 odhady alebo platby s nimi spojen\xE9.",created_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne vytvoren\xFD",updated_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne aktualizovan\xFD",deleted_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne odstr\xE1nen\xFD | Z\xE1kazn\xEDci \xFAspe\u0161ne odstr\xE1nen\xED"},Ev={title:"Polo\u017Eky",items_list:"Zoznam Polo\u017Eiek",name:"Meno",unit:"Jednotka",description:"Popis",added_on:"Pridan\xE9 D\u0148a",price:"Cena",date_of_creation:"D\xE1tum Vytvorenia",action:"Akcia",add_item:"Prida\u0165 Polo\u017Eku",save_item:"Ulo\u017Ei\u0165 Polo\u017Eku",update_item:"Aktualizova\u0165 Polo\u017Eku",item:"Polo\u017Eka | Polo\u017Eky",add_new_item:"Prida\u0165 Nov\xFA Polo\u017Eku",new_item:"Nov\xE1 polo\u017Eka",edit_item:"Upravi\u0165 Polo\u017Eku",no_items:"Zatia\u013E \u017Eiadn\xE9 polo\u017Eky!",list_of_items:"T\xE1to sekcia bude obsahova\u0165 zoznam z\xE1kazn\xEDkov.",select_a_unit:"vyberte jednotku",taxes:"Dane",item_attached_message:"Nie je mo\u017En\xE9 vymaza\u0165 polo\u017Eku, ktor\xE1 sa pou\u017E\xEDva",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Polo\u017Eku | Nebudete m\xF4c\u0165 obnovi\u0165 tieto Polo\u017Eky",created_message:"Polo\u017Eka \xFAspe\u0161ne vytvoren\xE1",updated_message:"Polo\u017Eka \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"Polo\u017Eka \xFAspe\u0161ne odstr\xE1nen\xE1 | Polo\u017Eky \xFAspe\u0161ne odstr\xE1nen\xE9"},Nv={title:"Cenov\xE9 odhady",estimate:"Cenov\xFD odhad | Cenov\xE9 odhady",estimates_list:"Zoznam Cenov\xFDch odhadov",days:"{days} Dn\xED",months:"{months} Mesiac",years:"{years} Rok",all:"V\u0161etko",paid:"Zaplaten\xE9",unpaid:"Nezaplaten\xE9",customer:"Z\xC1KAZN\xCDK",ref_no:"REF \u010C.",number:"\u010C\xCDSLO",amount_due:"Dl\u017En\xE1 suma",partially_paid:"\u010Ciasto\u010Dne Zaplaten\xE9",total:"Spolu",discount:"Z\u013Eava",sub_total:"Medzis\xFA\u010Det",estimate_number:"\u010C\xEDslo Cenov\xE9ho odhadu",ref_number:"Ref. \u010C\xEDslo",contact:"Kontakt",add_item:"Prida\u0165 Polo\u017Eku",date:"D\xE1tum",due_date:"D\xE1tum Splatnosti",expiry_date:"D\xE1tum Ukon\u010Denia Platnosti",status:"Stav",add_tax:"Prida\u0165 Da\u0148",amount:"Suma",action:"Akcia",notes:"Pozn\xE1mky",tax:"Da\u0148",estimate_template:"Vzh\u013Ead",convert_to_invoice:"Konvertova\u0165 do Fakt\xFAry",mark_as_sent:"Ozna\u010Di\u0165 ako odoslan\xE9",send_estimate:"Odosla\u0165 Cenov\xFD odhad",resend_estimate:"Znovu Odosla\u0165 Cenov\xFD odhad",record_payment:"Zaznamena\u0165 Platbu",add_estimate:"Vytvori\u0165 Cenov\xFD odhad",save_estimate:"Ulo\u017Ei\u0165 Cenov\xFD odhad",confirm_conversion:"Tento cenov\xFD odhad bude pou\u017Eit\xFD k vytvoreniu novej Fakt\xFAry.",conversion_message:"Fakt\xFAra \xFAspe\u0161ne vytvoren\xE1",confirm_send_estimate:"Tento Cenov\xFD odhad bude odoslan\xFD z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",confirm_mark_as_sent:"Tento Cenov\xFD odhad bude ozna\u010Den\xFD ako odoslan\xFD",confirm_mark_as_accepted:"Tento Cenov\xFD odhad bude ozna\u010Den\xFD ako Prijat\xFD",confirm_mark_as_rejected:"Tento Cenov\xFD odhad bude ozna\u010Den\xFD ako Odmietnut\xFD",no_matching_estimates:"Nena\u0161li sa \u017Eiadne Cenov\xE9 odhady sp\u013A\u0148aj\xFAce Va\u0161e podmienky!",mark_as_sent_successfully:"Cenov\xFD odhad \xFAspe\u0161ne ozna\u010Den\xFD ako odoslan\xFD",send_estimate_successfully:"Cenov\xFD odhad \xFAspe\u0161ne odoslan\xFD",errors:{required:"Pole je povinn\xE9"},accepted:"Prij\xE1t\xE1",sent:"Odoslan\xE1",draft:"Koncept",declined:"Zru\u0161en\xFD",new_estimate:"Nov\xFD Cenov\xFD odhad",add_new_estimate:"Prida\u0165 nov\xFD Cenov\xFD odhad",update_Estimate:"Aktualizova\u0165 Cenov\xFD odhad",edit_estimate:"Upravi\u0165 Cenov\xFD odhad",items:"polo\u017Eky",Estimate:"Cenov\xFD odhad | Cenov\xE9 odhady",add_new_tax:"Prida\u0165 Nov\xFA Da\u0148",no_estimates:"Zatia\u013E \u017Eiadne cenov\xE9 odhady",list_of_estimates:"T\xE1to sekcia bude obsahova\u0165 zoznam cenov\xFDch odhadov.",mark_as_rejected:"Ozna\u010Di\u0165 ako odmietnut\xFA",mark_as_accepted:"Ozna\u010Den\xFD ako prijat\xFA",marked_as_accepted_message:"Cenov\xFD odhad ozna\u010Den\xFD ako schv\xE1len\xFD",marked_as_rejected_message:"Cenov\xFD odhad ozna\u010Den\xFD ako odmietnut\xFD",confirm_delete:"Nebude mo\u017En\xE9 obnovi\u0165 cenov\xFD odhad | Nebude mo\u017En\xE9 obnovi\u0165 cenov\xE9 odhady",created_message:"Cenov\xFD odhad \xFAspe\u0161n\xE9 vytvoren\xFD",updated_message:"Cenov\xFD odhad \xFAspe\u0161n\xE9 aktualizovan\xFD",deleted_message:"Cenov\xFD odhad \xFAspe\u0161n\xE9 vymazan\xFD | Cenov\xE9 odhady \xFAspe\u0161n\xE9 vymazan\xE9",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova.",item:{title:"N\xE1zov Polo\u017Eky",description:"Popis",quantity:"Mno\u017Estvo",price:"Cena",discount:"Z\u013Eava",total:"Celkom",total_discount:"Celkov\xE1 z\u013Eava",sub_total:"Medzis\xFA\u010Det",tax:"Da\u0148",amount:"Suma",select_an_item:"Za\u010Dnite p\xEDsa\u0165 alebo kliknite pre vybratie polo\u017Eky",type_item_description:"Zadajte Popis Polo\u017Eky (volite\u013En\xE9)"}},Tv={title:"Fakt\xFAry",invoices_list:"Zoznam Fakt\xFAr",days:"{days} \u010Ee\u0148",months:"{months} Mesiac",years:"{years} Rok",all:"V\u0161etko",paid:"Zaplaten\xE9",unpaid:"Nezaplaten\xE9",customer:"Z\xC1KAZN\xCDK",paid_status:"Stav platby",ref_no:"REF \u010C.",number:"\u010C\xCDSLO",amount_due:"Dl\u017En\xE1 suma",partially_paid:"\u010Ciasto\u010Dne Zaplaten\xE9",total:"Spolu",discount:"Z\u013Eava",sub_total:"Medzis\xFA\u010Det",invoice:"Fakt\xFAra | Fakt\xFAry",invoice_number:"\u010C\xEDslo Fakt\xFAry",ref_number:"Ref. \u010C\xEDslo",contact:"Kontakt",add_item:"Prida\u0165 Polo\u017Eku",date:"D\xE1tum",due_date:"D\xE1tum Splatnosti",status:"Stav",add_tax:"Prida\u0165 Da\u0148",amount:"Suma",action:"Akcia",notes:"Pozn\xE1mky",view:"Zobrazi\u0165",send_invoice:"Odosla\u0165 Fakt\xFAru",resend_invoice:"Odosla\u0165 Fakt\xFAru Znovu",invoice_template:"Vzh\u013Ead fakt\xFAry",template:"Vzh\u013Ead",mark_as_sent:"Ozna\u010Di\u0165 ako odoslan\xFA",confirm_send_invoice:"T\xE1to fakt\xFAra bude odoslan\xE1 z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",invoice_mark_as_sent:"T\xE1to fakt\xFAra bude ozna\u010Den\xE1 ako odoslan\xE1",confirm_send:"T\xE1to fakt\xFAra bude odoslan\xE1 z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",invoice_date:"D\xE1tum Vystavenia",record_payment:"Zaznamena\u0165 Platbu",add_new_invoice:"Nov\xE1 Fakt\xFAra",update_expense:"Update Expense",edit_invoice:"Upravi\u0165 Fakt\xFAru",new_invoice:"Nov\xE1 Fakt\xFAra",save_invoice:"Ulo\u017Ei\u0165 Fakt\xFAru",update_invoice:"Upravi\u0165 Fakt\xFAru",add_new_tax:"Prida\u0165 Nov\xFA Da\u0148",no_invoices:"Zatia\u013E nem\xE1te \u017Eiadn\xE9 fakt\xFAry!",list_of_invoices:"T\xE1to sekcia bude obsahova\u0165 zoznam fakt\xFAr",select_invoice:"Vybra\u0165 Fakt\xFAru",no_matching_invoices:"Nena\u0161li sa \u017Eiadne fakt\xFAry!",mark_as_sent_successfully:"Fakt\xFAra ozna\u010Den\xE1 ako \xFAspe\u0161ne odoslan\xE1",invoice_sent_successfully:"Fakt\xFAra bola \xFAspe\u0161ne odoslan\xE1",cloned_successfully:"Fakt\xFAra bola \xFAspe\u0161ne okop\xEDrovan\xE1",clone_invoice:"Kop\xEDrova\u0165 fakt\xFAru",confirm_clone:"Fakt\xFAra bude okop\xEDrovan\xE1 do novej",item:{title:"N\xE1zov polo\u017Eky",description:"Popis",quantity:"Mno\u017Estvo",price:"Cena",discount:"Z\u013Eava",total:"Celkom",total_discount:"Celkov\xE1 z\u013Eava",sub_total:"Medzis\xFA\u010Det",tax:"Da\u0148",amount:"\u010Ciastka",select_an_item:"Nap\xED\u0161te alebo vyberte polo\u017Eku",type_item_description:"Popis polo\u017Eky (volite\u013En\xE9)"},confirm_delete:"T\xFAto fakt\xFAru nebude mo\u017En\xE9 obnovi\u0165 | Tieto fakt\xFAry nebude mo\u017En\xE9 obnovi\u0165",created_message:"Fakt\xFAra \xFAspe\u0161ne vytvoren\xE1",updated_message:"Fakt\xFAra \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"Fakt\xFAra \xFAspe\u0161ne vymazan\xE1 | Fakt\xFAry \xFAspe\u0161ne vymazan\xE9",marked_as_sent_message:"Fakt\xFAra \xFAspe\u0161ne ozna\u010Den\xE1 ako odoslan\xE1",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova.",invalid_due_amount_message:"Celkov\xE1 suma fakt\xFAry nem\xF4\u017Ee by\u0165 ni\u017E\u0161ia ako celkov\xE1 suma zaplaten\xE1 za t\xFAto fakt\xFAru. Ak chcete pokra\u010Dova\u0165, aktualizujte fakt\xFAru alebo odstr\xE1\u0148te s\xFAvisiace platby."},Iv={title:"Platby",payments_list:"Zoznam Platieb",record_payment:"Zaznamena\u0165 Platbu",customer:"Z\xE1kazn\xEDk",date:"D\xE1tum",amount:"Suma",action:"Akcia",payment_number:"\u010C\xEDslo Platby",payment_mode:"Sp\xF4sob Platby",invoice:"Fakt\xFAra",note:"Pozn\xE1mka",add_payment:"Prida\u0165 Platbu",new_payment:"Nov\xE1 Platba",edit_payment:"\xDApravi\u0165 Platbu",view_payment:"Zobrazi\u0165 Platbu",add_new_payment:"Nov\xE1 Platba",send_payment_receipt:"Posla\u0165 Doklad o Zaplaten\xED",send_payment:"Odosla\u0165 Platbu",save_payment:"Ulo\u017Ei\u0165 Platbu",update_payment:"\xDApravi\u0165 Platbu",payment:"Platba | Platby",no_payments:"Zatia\u013E nem\xE1te \u017Eiadne platby!",no_matching_payments:"Nena\u0161li sa \u017Eiadne platby sp\u013A\u0148aj\xFAce Va\u0161e podmienky!",list_of_payments:"T\xE1to sekcia bude obsahova\u0165 zoznam platieb.",select_payment_mode:"Vyberte sp\xF4sob platby",confirm_mark_as_sent:"Tento cenov\xFD odhad bude ozna\u010Den\xFD ako odoslan\xFD",confirm_send_payment:"Tento cenov\xFD odhad bude odoslan\xFD z\xE1kazn\xEDkovi prostredn\xEDctvom e-mailu",send_payment_successfully:"Platba \xFAspe\u0161ne odoslan\xE1",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova.",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Platbu | Nebudete m\xF4c\u0165 obnovi\u0165 tieto Platby",created_message:"Platba \xFAspe\u0161ne vytvoren\xE1",updated_message:"Platba \xFAspe\u0161ne upravena",deleted_message:"Platba \xFAspe\u0161ne odstr\xE1nen\xE1 | Platby \xFAspe\u0161ne odstr\xE1nen\xE9",invalid_amount_message:"Suma platby nie je spr\xE1vna"},$v={title:"V\xFDdaje",expenses_list:"Zoznam V\xFDdajov",select_a_customer:"Vyberte z\xE1kazn\xEDka",expense_title:"Nadpis",customer:"Z\xE1kazn\xEDk",contact:"Kontakt",category:"Kateg\xF3ria",from_date:"Od d\xE1tumu",to_date:"Do d\xE1tumu",expense_date:"D\xE1tum",description:"Popis",receipt:"Doklad o zaplaten\xED",amount:"Suma",action:"Akcia",note:"Pozn\xE1mka",category_id:"ID kateg\xF3rie",date:"D\xE1tum",add_expense:"Prida\u0165 V\xFDdaj",add_new_expense:"Prida\u0165 Nov\xFD V\xFDdaj",save_expense:"Ulo\u017Ei\u0165 V\xFDdaj",update_expense:"Aktualizova\u0165 V\xFDdaj",download_receipt:"Stiahnu\u0165 doklad o zaplaten\xED",edit_expense:"Upravi\u0165 V\xFDdaj",new_expense:"Nov\xFD V\xFDdaj",expense:"V\xFDdaj | V\xFDdaje",no_expenses:"Zatia\u013E nem\xE1te \u017Eiadne v\xFDdaje!",list_of_expenses:"T\xE1to sekcia bude obsahova\u0165 zoznam v\xFDdajov.",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 tento V\xFDdaj | Nebudete m\xF4c\u0165 obnovi\u0165 tieto V\xFDdaje",created_message:"V\xFDdaj \xFAspe\u0161ne vytvoren\xFD",updated_message:"V\xFDdaj \xFAspe\u0161ne aktualizovan\xFD",deleted_message:"V\xFDdaj \xFAspe\u0161ne odstr\xE1nen\xFD | V\xFDdaje \xFAspe\u0161ne odstr\xE1nen\xE9",categories:{categories_list:"Zoznam kateg\xF3ri\xED",title:"Nadpis",name:"N\xE1zov",description:"Popis",amount:"Suma",actions:"Akcie",add_category:"Prida\u0165 Kateg\xF3riu",new_category:"Nov\xE1 Kateg\xF3ria",category:"Kateg\xF3ria | Kateg\xF3rie",select_a_category:"Vyberte kateg\xF3riu"}},Rv={email:"E-mail",password:"Heslo",forgot_password:"Zabudol som heslo",or_signIn_with:"alebo sa prihl\xE1si\u0165 pomocou",login:"Prihl\xE1si\u0165 sa",register:"Registrova\u0165 sa",reset_password:"Obnovi\u0165 heslo",password_reset_successfully:"Heslo \xDAspe\u0161ne Obnoven\xE9",enter_email:"Zadajte e-mail",enter_password:"Zadajte heslo",retype_password:"Znova zadajte heslo"},Fv={title:"U\u017Eivatelia",users_list:"Zoznam U\u017E\xEDvate\u013Eov",name:"Meno",description:"Popis",added_on:"Pridan\xE9 D\u0148a",date_of_creation:"D\xE1tum Vytvorenia",action:"Akcia",add_user:"Prida\u0165 pou\u017E\xEDvate\u013Ea",save_user:"Ulo\u017Ei\u0165 pou\u017E\xEDvate\u013Ea",update_user:"Aktualizova\u0165 pou\u017E\xEDvate\u013Ea",user:"U\u017E\xEDvate\u013E | U\u017E\xEDvatelia",add_new_user:"Prida\u0165 Nov\xE9ho U\u017E\xEDvate\u013Ea",new_user:"Nov\xFD u\u017E\xEDvate\u013E",edit_user:"Upravi\u0165 U\u017E\xEDvate\u013Ea",no_users:"Zatia\u013E nebol pridan\xFD \u017Eiadny u\u017E\xEDvate\u013E!",list_of_users:"T\xE1to sekcia bude obsahova\u0165 zoznam u\u017E\xEDvate\u013Eov.",email:"E-mail",phone:"Telef\xF3n",password:"Heslo",user_attached_message:"Nie je mo\u017En\xE9 vymaza\u0165 akt\xEDvneho u\u017E\xEDvate\u013Ea",confirm_delete:"Nebude mo\u017En\xE9 obnovi\u0165 tohto pou\u017E\xEDvate\u013Ea | Nebude mo\u017En\xE9 obnovi\u0165 t\xFDchto pou\u017E\xEDvate\u013Eov",created_message:"U\u017E\xEDvate\u013E \xFAspe\u0161ne vytvoren\xFD",updated_message:"U\u017E\xEDvate\u013E \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"U\u017E\xEDvate\u013E \xFAspe\u0161ne odstr\xE1nen\xFD | U\u017E\xEDvatelia \xFAspe\u0161ne odstr\xE1nen\xED"},Mv={title:"Reporty",from_date:"Od d\xE1tumu",to_date:"Do d\xE1tumu",status:"Stav",paid:"Zaplaten\xE1",unpaid:"Nezaplaten\xE1",download_pdf:"Stiahnu\u0165 PDF",view_pdf:"Zobrazi\u0165 PDF",update_report:"Aktualizova\u0165 Report",report:"Report | Reporty",profit_loss:{profit_loss:"Ziskt a Straty",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",date_range:"Vybra\u0165 rozsah d\xE1tumu"},sales:{sales:"Predaje",date_range:"Vybra\u0165 rozsah d\xE1tumu",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",report_type:"Typ Reportu"},taxes:{taxes:"Dane",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",date_range:"Vybra\u0165 Rozsah D\xE1tumu"},errors:{required:"Pole je povinn\xE9"},invoices:{invoice:"Fakt\xFAra",invoice_date:"D\xE1tum Vystavenia",due_date:"D\xE1tum Splatnosti",amount:"Suma",contact_name:"Kontaktn\xE1 Osoba",status:"Stav"},estimates:{estimate:"Cenov\xFD odhad",estimate_date:"D\xE1tum cenov\xE9ho odhadu",due_date:"D\xE1tum platnosti cenov\xE9ho odhadu",estimate_number:"\u010C\xEDslo cenov\xE9ho odhadu",ref_number:"Ref. \u010C\xEDslo",amount:"Suma",contact_name:"Kontaktn\xE1 Osoba",status:"Stav"},expenses:{expenses:"V\xFDdaje",category:"Kateg\xF3ria",date:"D\xE1tum",amount:"Suma",to_date:"Do d\xE1tumu",from_date:"Od d\xE1tumu",date_range:"Vybra\u0165 Rozsah D\xE1tumu"}},Vv={menu_title:{account_settings:"Nastavenia \xFA\u010Dtu",company_information:"Inform\xE1cie o Firme",customization:"Prisp\xF4sobenie",preferences:"Preferencie",notifications:"Upozornenia",tax_types:"Typy Dan\xED",expense_category:"Kateg\xF3rie cenov\xFDch odhadov",update_app:"Aktualizova\u0165 Aplik\xE1ciu",backup:"Z\xE1loha",file_disk:"S\xFAborov\xFD disk",custom_fields:"Vlastn\xE9 Polia",payment_modes:"Sp\xF4soby Platby",notes:"Pozn\xE1mky"},title:"Nastavenia",setting:"Nastavenia | Nastavenia",general:"V\u0161eobecn\xE9",language:"Jazyk",primary_currency:"Hlavn\xE1 Mena",timezone:"\u010Casov\xE9 P\xE1smo",date_format:"Form\xE1t D\xE1tumu",currencies:{title:"Meny",currency:"Mena | Meny",currencies_list:"Zoznam Mien",select_currency:"Vyberte Menu",name:"Meno",code:"K\xF3d",symbol:"Symbol",precision:"Presnos\u0165",thousand_separator:"Oddelova\u010D Tis\xEDciek",decimal_separator:"Oddelova\u010D Desatinn\xFDch Miest",position:"Poz\xEDcia",position_of_symbol:"Poz\xEDcia Symbolu",right:"Vpravo",left:"V\u013Eavo",action:"Akcia",add_currency:"Prida\u0165 nov\xFA Menu"},mail:{host:"Host E-mailu",port:"Port E-mailu",driver:"Driver E-mailu",secret:"Tajn\xFD K\u013E\xFA\u010D (secret)",mailgun_secret:"Tajn\xFD k\u013E\xFA\u010D Mailgun (secret)",mailgun_domain:"Dom\xE9na",mailgun_endpoint:"Endpoint Mailgun",ses_secret:"SES Tajn\xFD K\u013E\xFA\u010D (secret)",ses_key:"SES k\u013E\xFA\u010D (key)",password:"E-mailov\xE9 heslo",username:"E-mailov\xE9 meno (username)",mail_config:"Konfigur\xE1cia E-mailov",from_name:"Meno odosielate\u013Ea",from_mail:"E-mail odosielate\u013Ea",encryption:"E-mailov\xE1 Enkrypcia",mail_config_desc:"Ni\u017E\u0161ie n\xE1jdete konfigur\xE1ciu E-mailu pou\u017Eit\xE9ho k odosielaniu E-mailov z aplik\xE1cie Crater. M\xF4\u017Eete taktie\u017E nastavi\u0165 spojenie so slu\u017Ebami tret\xEDch str\xE1n ako napr\xEDklad Sendgrid, SES a pod."},pdf:{title:"Nastavenia PDF",footer_text:"Text v p\xE4ti\u010Dke",pdf_layout:"Rozlo\u017Eenie PDF"},company_info:{company_info:"Inform\xE1cie o spolo\u010Dnosti",company_name:"N\xE1zov spolo\u010Dnosti",company_logo:"Logo spolo\u010Dnosti",section_description:"Inform\xE1cie o Va\u0161ej firme, ktor\xE9 bud\xFA zobrazen\xE9 na fakt\xFArach, cenov\xFDch odhadoch a in\xFDch dokumentoch vytvoren\xFDch v\u010Faka Creater.",phone:"Telef\xF3n",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",address:"Adresa",zip:"PS\u010C",save:"Ulo\u017Ei\u0165",updated_message:"Inform\xE1cie o firme \xFAspe\u0161ne aktualizovan\xE9"},custom_fields:{title:"Vlastn\xE9 Polia",section_description:"Personalizujte si Fakt\xFAry, Cenov\xE9 Odhady a Potvrdenia o platbe pomocou vlastn\xFDch pol\xED. Uistite sa, \u017Ee ste ni\u017E\u0161ie vytvoren\xE9 polia pou\u017Eili v form\xE1te adresy na str\xE1nke nastaven\xED personaliz\xE1cie.",add_custom_field:"Prida\u0165 Vlastn\xE9 Pole",edit_custom_field:"Upravi\u0165 Vlastn\xE9 Pole",field_name:"Meno Po\u013Ea",label:"Zna\u010Dka",type:"Typ",name:"N\xE1zov",required:"Povinn\xE9",placeholder:"Umiestnenie",help_text:"Pomocn\xFD Text",default_value:"Predvolen\xE1 hodnota",prefix:"Predpona",starting_number:"Po\u010Diato\u010Dn\xE9 \u010C\xEDslo",model:"Model",help_text_description:"Nap\xED\u0161te popis aby u\u017E\xEDvatelia lep\u0161ie pochopili v\xFDznam tohto po\u013Ea.",suffix:"Pr\xEDpona",yes:"\xC1no",no:"Nie",order:"Objedna\u0165",custom_field_confirm_delete:"Nebudete m\xF4c\u0165 obnovit toto vlastn\xE9 pole",already_in_use:"Toto vlastne pole sa u\u017E pou\u017E\xEDva",deleted_message:"Vlastn\xE9 pole \xFAspe\u0161ne vymazan\xE9",options:"mo\u017Enosti",add_option:"Prida\u0165 Mo\u017Enosti",add_another_option:"Prida\u0165 \u010Fa\u013E\u0161iu mo\u017Enost\u0165",sort_in_alphabetical_order:"Zoradi\u0165 v abecednom porad\xED",add_options_in_bulk:"Prida\u0165 hromadn\xE9 mo\u017Enosti",use_predefined_options:"Pou\u017Ei\u0165 predvolen\xE9 mo\u017Enosti",select_custom_date:"Vybrat vlastn\xFD d\xE1tum",select_relative_date:"Vybra\u0165 Relat\xEDvny D\xE1tum",ticked_by_default:"Predvolene ozna\u010Den\xE9",updated_message:"Vlastn\xE9 pole \xFAspe\u0161ne aktualizovan\xE9",added_message:"Vlastne pole \xFAspe\u0161ne pridan\xE9"},customization:{customization:"Prisp\xF4sobenie",save:"Ulo\u017Ei\u0165",addresses:{title:"Adresy",section_description:"M\xF4\u017Eete nastavi\u0165 form\xE1t faktura\u010Dnej a dodacej adresy z\xE1kazn\xEDka (Zobrazuje sa iba v PDF). ",customer_billing_address:"Z\xE1kazn\xEDk - faktura\u010Dn\xE1 adresa",customer_shipping_address:"Z\xE1kazn\xEDk - doru\u010Dovacia adresa",company_address:"Firemn\xE1 adresa",insert_fields:"Vlo\u017Ei\u0165 polia",contact:"Kontakt",address:"Adresa",display_name:"Zobrazovan\xE9 Meno",primary_contact_name:"Meno Prim\xE1rneho Kontaktu",email:"Email",website:"Webov\xE9 str\xE1nky",name:"N\xE1zov",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",company_name:"N\xE1zov firmy",address_street_1:"Adresa ulica 1",address_street_2:"Adresa ulica 2",phone:"Telef\xF3n",zip_code:"PS\u010C",address_setting_updated:"Nastavenia adresy \xFAspe\u0161ne aktualizovan\xE9"},updated_message:"Inform\xE1cie o firme \xFAspe\u0161ne aktualizovan\xE9",invoices:{title:"Fakt\xFAry",notes:"Pozn\xE1mky",invoice_prefix:"Predpona Fakt\xFAry",default_invoice_email_body:"Prednastaven\xE9 telo e-mailu fakt\xFAry",invoice_settings:"Nastavenia Fakt\xFAry",autogenerate_invoice_number:"Automaticky Vygenerova\u0165 \u010C\xEDslo Fakt\xFAry",autogenerate_invoice_number_desc:"Ak si neprajete automaticky generova\u0165 \u010D\xEDslo novej fakt\xFAry, vypnite t\xFAto mo\u017Enos\u0165.",enter_invoice_prefix:"Zadajte predponu fakt\xFAry",terms_and_conditions:"Podmienky pou\u017E\xEDvania",company_address_format:"Form\xE1t firemnej adresy",shipping_address_format:"Form\xE1t doru\u010Dovacej adresy",billing_address_format:"Form\xE1t faktura\u010Dnej adresy",invoice_settings_updated:"Nastavenia fakt\xFAr boli \xFAspe\u0161ne aktualizovan\xE9"},estimates:{title:"Cenov\xFD odhad",estimate_prefix:"Predpona cenov\xE9ho odhadu",default_estimate_email_body:"Prednastaven\xE9 telo e-mailu cenov\xE9ho dohadu",estimate_settings:"Nastavenia cenov\xFDch odhadov",autogenerate_estimate_number:"Automaticky generova\u0165 \u010D\xEDslo cenov\xE9ho odhadu",estimate_setting_description:"Zak\xE1\u017Ete to, ak si neprajete automaticky generova\u0165 \u010D\xEDsla cenovych odhadov zaka\u017Ed\xFDm, ke\u010F vytvor\xEDte nov\xFD odhad.",enter_estimate_prefix:"Vlo\u017Ete prepdonu cenov\xE9ho odhadu",estimate_setting_updated:"Nastavenia cenov\xFDch odhadov \xFAspe\u0161ne aktualizovan\xE9",company_address_format:"Form\xE1t firemnej adresy",billing_address_format:"Form\xE1t faktura\u010Dnej adresy",shipping_address_format:"Form\xE1t faktura\u010Dnej adresy"},payments:{title:"Platby",description:"Mo\u017Enosti platieb",payment_prefix:"Predpona platby",default_payment_email_body:"Prednastaven\xE9 telo e-mailu platby",payment_settings:"Nastavenia Platieb",autogenerate_payment_number:"Automaticky generova\u0165 \u010D\xEDslo platby",payment_setting_description:"Zak\xE1\u017Ete to, ak si neprajete automaticky generova\u0165 \u010D\xEDsla platieb zaka\u017Ed\xFDm, ke\u010F vytvor\xEDte nov\xFA platbu.",enter_payment_prefix:"Vlo\u017Eit Predponu Platby",payment_setting_updated:"Nastavenia platieb \xFAspe\u0161ne aktualizovan\xE9",payment_modes:"Typy Platieb",add_payment_mode:"Prida\u0165 typ Platby",edit_payment_mode:"Upravi\u0165 typ Platby",mode_name:"N\xE1zov platby",payment_mode_added:"Typ Platby pridan\xFD",payment_mode_updated:"Typ Platby aktualizovan\xFD",payment_mode_confirm_delete:"Nebude m\xF4c\u0165 obnovi\u0165 typ platby",already_in_use:"Tento typ platby sa u\u017E pou\u017E\xEDva",deleted_message:"Typ platby \xFAspe\u0161ne odstr\xE1nen\xFD",company_address_format:"Form\xE1t firemnej adresy",from_customer_address_format:"Z form\xE1tu adresy z\xE1kazn\xEDka"},items:{title:"Polo\u017Eky",units:"Jednotky",add_item_unit:"Prida\u0165 Jednotku",edit_item_unit:"Upravi\u0165 Jednotku",unit_name:"N\xE1zov Jednotky",item_unit_added:"Jednotka \xFAspe\u0161ne pridan\xE1",item_unit_updated:"Jednotka \xFAspe\u0161ne aktualizovan\xE1",item_unit_confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Jednotku",already_in_use:"Jednotk\xE1 sa pr\xE1ve pou\u017E\xEDva",deleted_message:"Jednotka \xFAspe\u0161ne odstr\xE1nena"},notes:{title:"Pozn\xE1mky",description:"U\u0161etrite \u010Das vytv\xE1ran\xEDm pozn\xE1mok a ich op\xE4tovn\xFDm pou\u017Eit\xEDm vo svojich fakt\xFArach, odhadoch a platb\xE1ch.",notes:"Pozn\xE1mky",type:"Typ",add_note:"Prida\u0165 pozn\xE1mku",add_new_note:"Prida\u0165 Nov\xFA Pozn\xE1mku",name:"N\xE1zov",edit_note:"Upravi\u0165 pozn\xE1mku",note_added:"Pozn\xE1mka \xFAspe\u0161ne pridan\xE1",note_updated:"Pozn\xE1mka \xFAspe\u0161ne aktualizovan\xE1",note_confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto Pozn\xE1mku",already_in_use:"Pozn\xE1mka sa pr\xE1ve pou\u017E\xEDva",deleted_message:"Pozn\xE1mka \xFAspe\u0161ne odstr\xE1nena"}},account_settings:{profile_picture:"Profilov\xE1 Fotka",name:"Meno",email:"Email",password:"Heslo",confirm_password:"Potvrdi\u0165 heslo",account_settings:"Nastavenie \xFA\u010Dtu",save:"Ulo\u017Ei\u0165",section_description:"Svoje meno, e-mail a heslo m\xF4\u017Eete aktualizova\u0165 pomocou formul\xE1ra ni\u017E\u0161ie.",updated_message:"Nastavenia \xFA\u010Dtu boli \xFAspe\u0161ne aktualizovan\xE9"},user_profile:{name:"Meno",email:"Email",password:"Heslo",confirm_password:"Potvrdi\u0165 heslo"},notification:{title:"Upozornenia",email:"Odosla\u0165 upozornenie",description:"Ktor\xE9 e-mailov\xE9 upozornenia chcete dost\xE1va\u0165 ke\u010F sa nie\u010Do zmen\xED?",invoice_viewed:"Fakt\xFAra zobrazen\xE1",invoice_viewed_desc:"Ke\u010F si v\xE1\u0161 z\xE1kazn\xEDk prezer\xE1 fakt\xFAru odoslan\xFA cez Hlavn\xFD Panel.",estimate_viewed:"Cenov\xFD odhad zobrazen\xFD",estimate_viewed_desc:"Ke\u010F si v\xE1\u0161 z\xE1kazn\xEDk prezer\xE1 cenov\xFD odhad odoslan\xFD cez Hlavn\xFD Panel.",save:"Ulo\u017Ei\u0165",email_save_message:"E-mail bol \xFAspe\u0161ne ulo\u017Een\xFD",please_enter_email:"Zadajte e-mail"},tax_types:{title:"Typ dan\xED",add_tax:"Prida\u0165 da\u0148",edit_tax:"Upravi\u0165 Da\u0148",description:"M\xF4\u017Eete prida\u0165 alebo odobra\u0165 dane. Crater podporuje dane jednotliv\xFDch polo\u017Eiek aj na fakt\xFAre.",add_new_tax:"Prida\u0165 Nov\xFA Da\u0148",tax_settings:"Nastavenia dan\xED",tax_per_item:"Da\u0148 pre ka\u017Ed\xFA Polo\u017Eku zvl\xE1\u0161\u0165",tax_name:"N\xE1zov Dane",compound_tax:"Zlo\u017Een\xE1 da\u0148",percent:"Percento",action:"Akcia",tax_setting_description:"T\xFAto mo\u017Enos\u0165 povo\u013Ete, ak chcete prida\u0165 dane k jednotliv\xFDm polo\u017Ek\xE1m fakt\xFAr. \u0160tandardne sa dane pripo\u010D\xEDtavaj\xFA priamo k fakt\xFAre.",created_message:"Da\u0148 \xFAspe\u0161ne vytvoren\xE1",updated_message:"Da\u0148 \xFAspe\u0161ne aktualizovan\xE1",deleted_message:"Da\u0148 \xFAspe\u0161ne odstr\xE1nen\xE1",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 da\u0148",already_in_use:"Da\u0148 u\u017E sa u\u017E po\u017E\xEDva"},expense_category:{title:"Kateg\xF3rie v\xFDdajov",action:"Akcia",description:"Na pridanie polo\u017Eiek v\xFDdavkov s\xFA povinn\xE9 kateg\xF3rie. Tieto kateg\xF3rie m\xF4\u017Eete prida\u0165 alebo odstr\xE1ni\u0165 pod\u013Ea svojich preferenci\xED.",add_new_category:"Prida\u0165 Nov\xFA Kateg\xF3riu",add_category:"Prida\u0165 Kateg\xF3riu",edit_category:"Upravi\u0165 Kateg\xF3riu",category_name:"N\xE1zov Kateg\xF3rie",category_description:"Popis",created_message:"Kateg\xF3ria cenov\xE9ho odhadu \xFAspe\u0161ne vytvoren\xE1",deleted_message:"Kateg\xF3ria cenov\xE9ho odhadu \xFAspe\u0161ne odstr\xE1nena",updated_message:"Kateg\xF3ria cenov\xE9ho odhadu \xFAspe\u0161ne aktualizovan\xE1",confirm_delete:"Nebudete m\xF4c\u0165 obnovi\u0165 t\xFAto kateg\xF3riu cenov\xFDch odhadov",already_in_use:"Kateg\xF3ria sa u\u017E pou\u017E\xEDva"},preferences:{currency:"Mena",default_language:"Predvolen\xFD Jazyk",time_zone:"\u010Casov\xE9 P\xE1smo",fiscal_year:"Fi\u0161k\xE1lny Rok",date_format:"Form\xE1t D\xE1tumu",discount_setting:"Nastavenia Z\u013Eavy",discount_per_item:"Z\u013Eava pre ka\u017Ed\xFA Polo\u017Eku zvl\xE1\u0161\u0165",discount_setting_description:"T\xFAto mo\u017Enos\u0165 povo\u013Ete, ak chcete prida\u0165 z\u013Eavu k jednotliv\xFDm polo\u017Ek\xE1m fakt\xFAry. \u0160tandardne sa z\u013Eava pripo\u010D\xEDtava priamo k fakt\xFAre.",save:"Ulo\u017Ei\u0165",preference:"Preferencie | Preferencie",general_settings:"Syst\xE9movo predvolen\xE9 preferencie.",updated_message:"Preferencie \xFAspe\u0161ne aktualizovan\xE9",select_language:"Vyberte Jazyk",select_time_zone:"Vyberte \u010Casov\xE9 P\xE1smo",select_date_format:"Vybra\u0165 Form\xE1t D\xE1tumu",select_financial_year:"Vyberte Fi\u0161k\xE1lny Rok"},update_app:{title:"Aktualizova\u0165 Aplik\xE1ciu",description:"Aplik\xE1ciu m\xF4\u017Ete jednoducho aktualizova\u0165 tla\u010Ditkom ni\u017E\u0161ie",check_update:"Skontrolova\u0165 Aktualiz\xE1cie",avail_update:"Nov\xE1 aktualiz\xE1cia je k dispoz\xEDcii",next_version:"\u010Eal\u0161ia Verzia",requirements:"Po\u017Eiadavky",update:"Aktualizova\u0165",update_progress:"Aktualiz\xE1cia prebieha...",progress_text:"Bude to trva\u0165 len p\xE1r min\xFAt. Pred dokon\u010Den\xEDm aktualiz\xE1cie neobnovujte obrazovku ani nezatv\xE1rajte okno.",update_success:"App bola aktualizovan\xE1! Po\u010Dkajte, k\xFDm sa okno v\xE1\u0161ho prehliada\u010Da na\u010D\xEDta automaticky.",latest_message:"Nie je k dispoz\xEDcii \u017Eiadna aktualiz\xE1cia! Pou\u017E\xEDvate najnov\u0161iu verziu.",current_version:"Aktu\xE1lna verzia",download_zip_file:"Stiahnu\u0165 ZIP s\xFAbor",unzipping_package:"Rozbali\u0165 bal\xEDk",copying_files:"Kop\xEDrovanie s\xFAborov",running_migrations:"Prebieha Migr\xE1cia",finishing_update:"Ukon\u010Dovanie Aktualiz\xE1cie",update_failed:"Aktualiz\xE1cia zlyhala!",update_failed_text:"Aktualiz\xE1cia zlyhala na : {step} kroku"},backup:{title:"Z\xE1loha | Z\xE1lohy",description:"Z\xE1loha je vo form\xE1te zip ktor\xFD obsahuje v\u0161etky s\xFAbory v adres\xE1roch vr\xE1tane v\xFDpisu z datab\xE1zy.",new_backup:"Vytvori\u0165 z\xE1lohu",create_backup:"Vytvori\u0165 z\xE1lohu",select_backup_type:"Vybra\u0165 typ z\xE1lohy",backup_confirm_delete:"Nebude mo\u017En\xE9 obnovi\u0165 t\xFAto z\xE1lohu",path:"cesta",new_disk:"Nov\xFD Disk",created_at:"vytvoren\xE9",size:"velkost",dropbox:"dropbox",local:"local",healthy:"v poriadku",amount_of_backups:"po\u010Det z\xE1loh",newest_backups:"najnov\u0161ie z\xE1lohy",used_storage:"vyu\u017Eit\xE9 miesto na disku",select_disk:"Vybra\u0165 disk",action:"Akcia",deleted_message:"Z\xE1loha \xFAspe\u0161ne vymazan\xE1",created_message:"Z\xE1loha \xFAspe\u0161ne vytvoren\xE1",invalid_disk_credentials:"Nespr\xE1vne prihlasovacie \xFAdaje na disk"},disk:{title:"File Disk | File Disks",description:"V predvolenom nastaven\xED pou\u017Eije Crater v\xE1\u0161 lok\xE1lny disk na ukladanie z\xE1loh, avatarov a in\xFDch obrazov\xFDch s\xFAborov. M\xF4\u017Eete nakonfigurova\u0165 viac ako jeden disku ako napr. DigitalOcean, S3 a Dropbox pod\u013Ea va\u0161ich preferenci\xED.",created_at:"vytvoren\xE9",dropbox:"Dropbox",name:"N\xE1zov",driver:"Driver",disk_type:"Typ",disk_name:"N\xE1zov Disku",new_disk:"Prida\u0165 Nov\xFD Disk",filesystem_driver:"Driver syst\xE9mov\xFDch s\xFAborov",local_driver:"lok\xE1lny Driver",local_root:"Lok\xE1lka Cesta (root)",public_driver:"Verejn\xFD Driver",public_root:"Verejn\xE1 Cesta (root)",public_url:"Verejn\xE1 URL",public_visibility:"Vidite\u013En\xE9 pre Verejnos\u0165",media_driver:"Driver m\xE9di\xED",media_root:"Root m\xE9di\xED",aws_driver:"AWS Driver",aws_key:"AWS K\u013E\xFA\u010D (key)",aws_secret:"AWS Tajn\xFD K\u013E\xFA\u010D (secret)",aws_region:"AWS Regi\xF3n",aws_bucket:"AWP Bucket",aws_root:"AWP Cesta (root)",do_spaces_type:"Do Spaces type",do_spaces_key:"Do Spaces key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Dropbox Type",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Key",dropbox_secret:"Dropbox Secret",dropbox_app:"Dropbox App",dropbox_root:"Dropbox Root",default_driver:"Predvolen\xFD Driver",is_default:"Je predvolen\xFD",set_default_disk:"Nastavi\u0165 predvolen\xFD disk",success_set_default_disk:"Disk \xFAspe\u0161ne nastaven\xFD ako predvolen\xFD",save_pdf_to_disk:"Ulo\u017E PDFs na Disk",disk_setting_description:"T\xFAto mo\u017Enos\u0165 povo\u013Ete ak si chcete automaticky ulo\u017Ei\u0165 k\xF3piu ka\u017Ed\xE9ho s\xFAboru PDF s fakturami, odhadmi a pr\xEDjmami na predvolen\xFD disk. Pou\u017Eit\xEDm tejto mo\u017Enosti skr\xE1tite dobu na\u010D\xEDtania pri prezeran\xED s\xFAborov PDF.",select_disk:"Vybra\u0165 Disk",disk_settings:"Nastavenie Disku",confirm_delete:"Va\u0161e existuj\xFAce s\xFAbory a prie\u010Dinky na zadanom disku nebud\xFA ovplyvnen\xE9 ale konfigur\xE1cia v\xE1\u0161ho disku bude odstr\xE1nen\xE1 z Crateru",action:"Akcia",edit_file_disk:"Upravit Disk",success_create:"Disk \xFAspe\u0161ne pridan\xFD",success_update:"Disk \xFAspe\u0161ne aktualizovan\xFD",error:"Pridanie disku zlyhalo",deleted_message:"Disk bol \xFAspe\u0161ne odstr\xE1nen\xFD",disk_variables_save_successfully:"Disk bol \xFAspe\u0161ne pridan\xFD",disk_variables_save_error:"Konfigur\xE1cia disku zlyhala.",invalid_disk_credentials:"Neplatn\xE9 prihlasovacie \xFAdaje pre Disk"}},Bv={account_info:"Inform\xE1cie o \xFA\u010Dte",account_info_desc:"Ni\u017E\u0161ie uveden\xE9 podrobnosti sa pou\u017Eij\xFA na vytvorenie hlavn\xE9ho \xFA\u010Dtu spr\xE1vcu. Tie m\xF4\u017Eete kedyko\u013Evek zmeni\u0165 po prihl\xE1sen\xED.",name:"Meno",email:"Email",password:"Heslo",confirm_password:"Potvrdi\u0165 heslo",save_cont:"Ulo\u017Ei\u0165 a pokra\u010Dova\u0165",company_info:"Firemn\xE9 \xFAdaje",company_info_desc:"Tieto inform\xE1cie sa zobrazia na fakt\xFArach. Nesk\xF4r ich v\u0161ak m\xF4\u017Eete upravi\u0165.",company_name:"N\xE1zov firmy",company_logo:"Firemn\xE9 logo",logo_preview:"N\xE1h\u013Ead loga",preferences:"Preferencie",preferences_desc:"Predvolen\xE9 nastavenie syst\xE9mu.",country:"Krajina",state:"\u0160t\xE1t",city:"Mesto",address:"Adresa",street:"Ulica1 | Ulica2",phone:"Telef\xF3n",zip_code:"PS\u010C",go_back:"Nasp\xE4\u0165",currency:"Mena",language:"Jazyk",time_zone:"\u010Casov\xE9 p\xE1smo",fiscal_year:"Fi\u0161k\xE1lny rok",date_format:"Form\xE1t d\xE1tumu",from_address:"Z adresy",username:"Prihlasovacie meno",next:"\u010Ea\u013E\u0161\xED",continue:"Pokra\u010Dova\u0165",skip:"Vynecha\u0165",database:{database:"URL Adresa Aplik\xE1cie a Datab\xE1za",connection:"Pripojenie k datab\xE1ze",host:"Datab\xE1za - Host",port:"Datab\xE1za - Port",password:"Heslo do datab\xE1zy",app_url:"URL Adresa Aplik\xE1cie",app_domain:"Dom\xE9na aplik\xE1cie",username:"Prihlasovacie meno do datab\xE1zy",db_name:"N\xE1zov datab\xE1zy",db_path:"Datab\xE1z\xE1 - cesta (path)",desc:"Vytvorte datab\xE1zu na svojom serveri a pomocou nasleduj\xFAceho formul\xE1ra nastavte poverenia."},permissions:{permissions:"Opr\xE1vnenia",permission_confirm_title:"Ste si ist\xFD \u017Ee chcete pokra\u010Dova\u0165?",permission_confirm_desc:"Nedostato\u010Dn\xE9 opr\xE1vnenia na prie\u010Dinky in\u0161tal\xE1cie",permission_desc:"Ni\u017E\u0161ie je uveden\xFD zoznam povolen\xED prie\u010Dinkov ktor\xE9 s\xFA potrebn\xE9 na fungovanie aplik\xE1cie. Ak kontrola povolen\xED zlyh\xE1 nezabudnite aktualizova\u0165 povolenia prie\u010Dinka."},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"Mail Password",username:"Mail Username",mail_config:"Mail Configuration",from_name:"From Mail Name",from_mail:"From Mail Address",encryption:"Mail Encryption",mail_config_desc:"Ni\u017E\u0161ie je uveden\xFD formul\xE1r na konfigur\xE1ciu ovl\xE1da\u010Da e-mailu na odosielanie e-mailov z aplik\xE1cie. M\xF4\u017Eete tie\u017E nakonfigurova\u0165 aj extern\xFDch poskytovate\u013Eov napr\xEDklad Sendgrid apod."},req:{system_req:"Syst\xE9mov\xE9 po\u017Eiadavky",php_req_version:"Php (verzia {version} po\u017Eadovan\xE1)",check_req:"Skontrolujte po\u017Eiadavky",system_req_desc:"Crater m\xE1 nieko\u013Eko po\u017Eiadaviek na server. Skontrolujte \u010Di m\xE1 v\xE1\u0161 server po\u017Eadovan\xFA verziu php a v\u0161etky moduly uveden\xE9 ni\u017E\u0161ie."},errors:{migrate_failed:"Migr\xE1ci zlyhala",database_variables_save_error:"Nie je mo\u017En\xE9 zap\xEDsa\u0165 konfigur\xE1ciu do .env file. Skontrolujte opr\xE1vnenia",mail_variables_save_error:"Konfigur\xE1cia emailu zlyhala.",connection_failed:"Pripojenie k datab\xE1ze zlyhalo",database_should_be_empty:"Datab\xE1za mus\xED by\u0165 pr\xE1zdna"},success:{mail_variables_save_successfully:"Email \xFAspe\u0161ne nakonfigurovan\xFD",database_variables_save_successfully:"Datab\xE1za \xFAspe\u0161ne nakonfigurovan\xE1."}},Ov={invalid_phone:"Zl\xE9 telef\xF3nn\xE9 \u010D\xEDslo",invalid_url:"Nespr\xE1vna URL adresa (ex: http://www.craterapp.com)",invalid_domain_url:"Nespr\xE1vna URL (ex: craterapp.com)",required:"Povinn\xE9 pole",email_incorrect:"Zl\xFD email.",email_already_taken:"Email sa uz pou\u017E\xEDva.",email_does_not_exist:"Pou\u017E\xEDvate\u013E s t\xFDmto emailom neexistuje.",item_unit_already_taken:"N\xE1zov tejto polo\u017Eky sa u\u017E pou\u017E\xEDva",payment_mode_already_taken:"N\xE1zov tohto typu platby sa u\u017E pou\u017E\xEDva",send_reset_link:"Odosla\u0165 resetovac\xED link",not_yet:"Email e\u0161te nepri\u0161iel? Znova odosla\u0165",password_min_length:"Heslo mus\xED obsahova\u0165 {count} znaky",name_min_length:"Meno mus\xED ma\u0165 minim\xE1lne {count} p\xEDsmen.",enter_valid_tax_rate:"Zadajte platn\xFA sadzbu dane",numbers_only:"Iba \u010D\xEDsla.",characters_only:"Iba znaky.",password_incorrect:"Hesl\xE1 musia by\u0165 rovnak\xE9",password_length:"Heslo musi obsahova\u0165 minim\xE1lne {count} znakov.",qty_must_greater_than_zero:"Mno\u017Estvo mus\xED by\u0165 viac ako 0.",price_greater_than_zero:"Cena mus\xED by\u0165 viac ako 0.",payment_greater_than_zero:"Platba mus\xED by\u0165 viac ako   0.",payment_greater_than_due_amount:"Zadan\xE1 platba je vy\u0161\u0161ia ako suma na fakt\xFAre.",quantity_maxlength:"Mno\u017Estvo by nemalo obsahova\u0165 ako 20 \u010D\xEDslic.",price_maxlength:"Cena by nemala obsahova\u0165 viac ako 20 \u010D\xEDslic.",price_minvalue:"Suma musi by\u0165 vy\u0161\u0161ia ako 0.",amount_maxlength:"\u010Ciastka by nemala obsahova\u0165 viac ako 20 \u010D\xEDslic.",amount_minvalue:"\u010Ciastka mus\xED by\u0165 va\u010D\u0161ia ako 0.",description_maxlength:"Popis nesmie obsahova\u0165 viac ako 255 znaokv.",subject_maxlength:"Predmet nesmie obsahova\u0165 viac ako 100 znakov.",message_maxlength:"Spr\xE1va nesmie obsahova\u0165 viac ako 255 znakov.",maximum_options_error:"Maxim\xE1lny po\u010Det z {max} mo\u017Enosti vybran\xFD. Najprv odstr\xE1nte aspo\u0148 jednu mo\u017Enost a n\xE1sledne vyberte in\xFA.",notes_maxlength:"Pozn\xE1mky nesm\xFA obsahova\u0165 viac ako 100 znakov.",address_maxlength:"Adresa nesmie obsahova\u0165 viac ako 255 znakov",ref_number_maxlength:"Referen\u010Dn\xE9 \u010Dislo nesmie obsahova\u0165 viac ako 255 znakov",prefix_maxlength:"Predpona nesmie ma\u0165 viac ako 5 znakov.",something_went_wrong:"Nie\u010Do neprebehlo v poriadku, odsk\xFA\u0161ajte pros\xEDm znova."},Lv="Cenov\xFD odhad",Uv="\u010C\xEDslo cenov\xE9ho odhadu",Kv="D\xE1tum cenov\xE9ho odhadu",qv="Platnos\u0165 cenov\xE9ho odhadu",Zv="Fakt\xFAra",Wv="\u010C\xEDslo fakt\xFAry",Hv="D\xE1tum vystavenia",Gv="D\xE1tum splatnosti",Yv="Pozn\xE1mky",Jv="Polo\u017Eky",Xv="Po\u010Det",Qv="Cena",ey="Z\u013Eava",ty="Celkom",ay="Medzis\xFA\u010Det",sy="S\xFA\u010Det",ny="Doklad o zaplaten\xED",iy="D\xE1tum platby",oy="\u010C\xEDslo platby",ry="Sp\xF4sob platby",dy="Prijat\xE1 suma",ly="Report v\xFDdajov",cy="Celkov\xE9 v\xFDdaje",_y="Zisky a straty",uy="Pr\xEDjem",my="\u010Cist\xFD pr\xEDjem",py="Report predajov: Pod\u013Ea z\xE1kazn\xEDkov",gy="Celkov\xE9 predaje",fy="Report predajov: Pod\u013Ea polo\u017Eky",hy="Report dan\xED",vy="Celkov\xE9 dane",yy="Typy dan\xED",by="V\xFDdaje",ky="Fakturova\u0165,",wy="Doru\u010Di\u0165,",xy="Prijat\xE9 od:",zy="da\u0148";var Sy={navigation:Sv,general:jv,dashboard:Pv,tax_types:Dv,global_search:Cv,customers:Av,items:Ev,estimates:Nv,invoices:Tv,payments:Iv,expenses:$v,login:Rv,users:Fv,reports:Mv,settings:Vv,wizard:Bv,validation:Ov,pdf_estimate_label:Lv,pdf_estimate_number:Uv,pdf_estimate_date:Kv,pdf_estimate_expire_date:qv,pdf_invoice_label:Zv,pdf_invoice_number:Wv,pdf_invoice_date:Hv,pdf_invoice_due_date:Gv,pdf_notes:Yv,pdf_items_label:Jv,pdf_quantity_label:Xv,pdf_price_label:Qv,pdf_discount_label:ey,pdf_amount_label:ty,pdf_subtotal:ay,pdf_total:sy,pdf_payment_receipt_label:ny,pdf_payment_date:iy,pdf_payment_number:oy,pdf_payment_mode:ry,pdf_payment_amount_received_label:dy,pdf_expense_report_label:ly,pdf_total_expenses_label:cy,pdf_profit_loss_label:_y,pdf_income_label:uy,pdf_net_profit_label:my,pdf_customer_sales_report:py,pdf_total_sales_label:gy,pdf_item_sales_label:fy,pdf_tax_report_label:hy,pdf_total_tax_label:vy,pdf_tax_types_label:yy,pdf_expenses_label:by,pdf_bill_to:ky,pdf_ship_to:wy,pdf_received_from:xy,pdf_tax_label:zy};const jy={dashboard:"B\u1EA3ng \u0111i\u1EC1u khi\u1EC3n",customers:"Kh\xE1ch h\xE0ng",items:"M\u1EB7t h\xE0ng",invoices:"H\xF3a \u0111\u01A1n",expenses:"Chi ph\xED",estimates:"\u01AF\u1EDBc t\xEDnh",payments:"Thanh to\xE1n",reports:"B\xE1o c\xE1o",settings:"C\xE0i \u0111\u1EB7t",logout:"\u0110\u0103ng xu\u1EA5t",users:"Ng\u01B0\u1EDDi d\xF9ng"},Py={add_company:"Th\xEAm c\xF4ng ty",view_pdf:"Xem PDF",copy_pdf_url:"Sao ch\xE9p Url PDF",download_pdf:"t\u1EA3i PDF",save:"Ti\u1EBFt ki\u1EC7m",create:"T\u1EA1o m\u1EDBi",cancel:"Hu\u1EF7 b\u1ECF",update:"C\u1EADp nh\u1EADt",deselect:"B\u1ECF ch\u1ECDn",download:"T\u1EA3i xu\u1ED1ng",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",from:"T\u1EEB",to:"\u0110\u1EBFn",sort_by:"S\u1EAFp x\u1EBFp theo",ascending:"T\u0103ng d\u1EA7n",descending:"Gi\u1EA3m d\u1EA7n",subject:"M\xF4n h\u1ECDc",body:"Th\xE2n h\xECnh",message:"Th\xF4ng \u0111i\u1EC7p",send:"G\u1EEDi",go_back:"Quay l\u1EA1i",back_to_login:"Quay l\u1EA1i \u0111\u0103ng nh\u1EADp?",home:"Trang Ch\u1EE7",filter:"B\u1ED9 l\u1ECDc",delete:"X\xF3a b\u1ECF",edit:"Ch\u1EC9nh s\u1EEDa",view:"L\u01B0\u1EE3t xem",add_new_item:"Th\xEAm m\u1EE5c m\u1EDBi",clear_all:"L\xE0m s\u1EA1ch t\u1EA5t c\u1EA3",showing:"Hi\u1EC3n th\u1ECB",of:"c\u1EE7a",actions:"H\xE0nh \u0111\u1ED9ng",subtotal:"TI\xCAU \u0110\u1EC0",discount:"GI\u1EA2M GI\xC1",fixed:"\u0111\xE3 s\u1EEDa",percentage:"Ph\u1EA7n tr\u0103m",tax:"THU\u1EBE",total_amount:"T\xD4\u0309NG C\xD4\u0323NG",bill_to:"Giao t\u1EEB",ship_to:"Giao t\u1EDBi",due:"\u0110\u1EBFn h\u1EA1n",draft:"B\u1EA3n nh\xE1p",sent:"G\u1EEDi",all:"T\u1EA5t c\u1EA3",select_all:"Ch\u1ECDn t\u1EA5t c\u1EA3",choose_file:"B\u1EA5m v\xE0o \u0111\xE2y \u0111\u1EC3 ch\u1ECDn m\u1ED9t t\u1EADp tin",choose_template:"Ch\u1ECDn m\u1ED9t m\u1EABu",choose:"Ch\u1ECDn",remove:"G\u1EE1",powered_by:"\u0110\u01B0\u1EE3c cung c\u1EA5p b\u1EDFi",bytefury:"Bytefury",select_a_status:"Ch\u1ECDn m\u1ED9t tr\u1EA1ng th\xE1i",select_a_tax:"Ch\u1ECDn thu\u1EBF",search:"T\xECm ki\u1EBFm",are_you_sure:"B\u1EA1n c\xF3 ch\u1EAFc kh\xF4ng?",list_is_empty:"Danh s\xE1ch tr\u1ED1ng.",no_tax_found:"Kh\xF4ng t\xECm th\u1EA5y thu\u1EBF!",four_zero_four:"404",you_got_lost:"R\u1EA5t ti\u1EBFc! B\u1EA1n b\u1ECB l\u1EA1c r\u1ED3i!",go_home:"V\u1EC1 nh\xE0",test_mail_conf:"Ki\u1EC3m tra c\u1EA5u h\xECnh th\u01B0",send_mail_successfully:"Th\u01B0 \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t th\xE0nh c\xF4ng",select_state:"Ch\u1ECDn tr\u1EA1ng th\xE1i",select_country:"Ch\u1ECDn qu\u1ED1c gia",select_city:"L\u1EF1a ch\u1ECDn th\xE0nh ph\u1ED1",street_1:"\u0111\u01B0\u1EDDng s\u1ED1 1",street_2:"\u0110\u01B0\u1EDDng 2",action_failed:"\u0110\xE3 th\u1EA5t b\u1EA1i",retry:"Th\u1EED l\u1EA1i",choose_note:"Ch\u1ECDn Ghi ch\xFA",no_note_found:"Kh\xF4ng t\xECm th\u1EA5y ghi ch\xFA",insert_note:"Ch\xE8n ghi ch\xFA",copied_pdf_url_clipboard:"\u0110\xE3 sao ch\xE9p url PDF v\xE0o khay nh\u1EDB t\u1EA1m!"},Dy={select_year:"Ch\u1ECDn n\u0103m",cards:{due_amount:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",customers:"Kh\xE1ch h\xE0ng",invoices:"H\xF3a \u0111\u01A1n",estimates:"\u01AF\u1EDBc t\xEDnh"},chart_info:{total_sales:"B\xE1n h\xE0ng",total_receipts:"Bi\xEAn lai",total_expense:"Chi ph\xED",net_income:"Thu nh\u1EADp r\xF2ng",year:"Ch\u1ECDn n\u0103m"},monthly_chart:{title:"B\xE1n h\xE0ng"},recent_invoices_card:{title:"H\xF3a \u0111\u01A1n \u0111\u1EBFn h\u1EA1n",due_on:"\u0110\u1EBFn h\u1EA1n v\xE0o",customer:"kh\xE1ch h\xE0ng",amount_due:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",actions:"H\xE0nh \u0111\u1ED9ng",view_all:"Xem t\u1EA5t c\u1EA3"},recent_estimate_card:{title:"C\xE1c \u01B0\u1EDBc t\xEDnh g\u1EA7n \u0111\xE2y",date:"Ng\xE0y",customer:"kh\xE1ch h\xE0ng",amount_due:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",actions:"H\xE0nh \u0111\u1ED9ng",view_all:"Xem t\u1EA5t c\u1EA3"}},Cy={name:"T\xEAn",description:"Mi\xEAu t\u1EA3",percent:"Ph\u1EA7n tr\u0103m",compound_tax:"Thu\u1EBF t\u1ED5ng h\u1EE3p"},Ay={search:"T\xECm ki\u1EBFm...",customers:"Kh\xE1ch h\xE0ng",users:"Ng\u01B0\u1EDDi d\xF9ng",no_results_found:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3 n\xE0o"},Ey={title:"Kh\xE1ch h\xE0ng",add_customer:"Th\xEAm kh\xE1ch h\xE0ng",contacts_list:"Danh s\xE1ch kh\xE1ch h\xE0ng",name:"T\xEAn",mail:"Th\u01B0 t\xEDn | Th\u01B0",statement:"Tuy\xEAn b\u1ED1",display_name:"T\xEAn hi\u1EC3n th\u1ECB",primary_contact_name:"T\xEAn li\xEAn h\u1EC7 ch\xEDnh",contact_name:"T\xEAn Li\xEAn l\u1EA1c",amount_due:"S\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n",email:"E-mail",address:"\u0110\u1ECBa ch\u1EC9",phone:"\u0110i\u1EC7n tho\u1EA1i",website:"Website",overview:"T\u1ED5ng quan",enable_portal:"B\u1EADt C\u1ED5ng th\xF4ng tin",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",zip_code:"M\xE3 B\u01B0u Ch\xEDnh",added_on:"\u0110\xE3 th\xEAm v\xE0o",action:"Ho\u1EA1t \u0111\u1ED9ng",password:"M\u1EADt kh\u1EA9u",street_number:"S\u1ED1 \u0111\u01B0\u1EDDng",primary_currency:"Ti\u1EC1n t\u1EC7 ch\xEDnh",description:"Mi\xEAu t\u1EA3",add_new_customer:"Th\xEAm kh\xE1ch h\xE0ng m\u1EDBi",save_customer:"L\u01B0u kh\xE1ch h\xE0ng",update_customer:"C\u1EADp nh\u1EADt kh\xE1ch h\xE0ng",customer:"Kh\xE1ch h\xE0ng | Kh\xE1ch h\xE0ng",new_customer:"Kh\xE1ch h\xE0ng m\u1EDBi",edit_customer:"Ch\u1EC9nh s\u1EEDa kh\xE1ch h\xE0ng",basic_info:"Th\xF4ng tin c\u01A1 b\u1EA3n",billing_address:"\u0110\u1ECBa ch\u1EC9 thanh to\xE1n",shipping_address:"\u0110\u1ECBa ch\u1EC9 giao h\xE0ng",copy_billing_address:"Sao ch\xE9p t\u1EEB thanh to\xE1n",no_customers:"Ch\u01B0a c\xF3 kh\xE1ch h\xE0ng!",no_customers_found:"Kh\xF4ng t\xECm th\u1EA5y kh\xE1ch h\xE0ng n\xE0o!",no_contact:"Kh\xF4ng c\xF3 li\xEAn l\u1EA1c",no_contact_name:"Kh\xF4ng c\xF3 t\xEAn li\xEAn h\u1EC7",list_of_customers:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c kh\xE1ch h\xE0ng.",primary_display_name:"T\xEAn hi\u1EC3n th\u1ECB ch\xEDnh",select_currency:"Ch\u1ECDn \u0111\u01A1n v\u1ECB ti\u1EC1n t\u1EC7",select_a_customer:"Ch\u1ECDn m\u1ED9t kh\xE1ch h\xE0ng",type_or_click:"Nh\u1EADp ho\u1EB7c nh\u1EA5p \u0111\u1EC3 ch\u1ECDn",new_transaction:"Giao d\u1ECBch m\u1EDBi",no_matching_customers:"Kh\xF4ng c\xF3 kh\xE1ch h\xE0ng ph\xF9 h\u1EE3p!",phone_number:"S\u1ED1 \u0111i\u1EC7n tho\u1EA1i",create_date:"T\u1EA1o ng\xE0y",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c kh\xE1ch h\xE0ng n\xE0y v\xE0 t\u1EA5t c\u1EA3 c\xE1c H\xF3a \u0111\u01A1n, \u01AF\u1EDBc t\xEDnh v\xE0 Thanh to\xE1n c\xF3 li\xEAn quan. | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c nh\u1EEFng kh\xE1ch h\xE0ng n\xE0y v\xE0 t\u1EA5t c\u1EA3 c\xE1c H\xF3a \u0111\u01A1n, \u01AF\u1EDBc t\xEDnh v\xE0 Thanh to\xE1n c\xF3 li\xEAn quan.",created_message:"Kh\xE1ch h\xE0ng \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt kh\xE1ch h\xE0ng th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a kh\xE1ch h\xE0ng th\xE0nh c\xF4ng | \u0110\xE3 x\xF3a kh\xE1ch h\xE0ng th\xE0nh c\xF4ng"},Ny={title:"M\u1EB7t h\xE0ng",items_list:"Danh s\xE1ch m\u1EB7t h\xE0ng",name:"T\xEAn",unit:"\u0110\u01A1n v\u1ECB",description:"Mi\xEAu t\u1EA3",added_on:"\u0110\xE3 th\xEAm v\xE0o",price:"Gi\xE1 b\xE1n",date_of_creation:"Ng\xE0y t\u1EA1o",not_selected:"Kh\xF4ng c\xF3 m\u1EE5c n\xE0o \u0111\u01B0\u1EE3c ch\u1ECDn",action:"Ho\u1EA1t \u0111\u1ED9ng",add_item:"Th\xEAm m\u1EB7t h\xE0ng",save_item:"L\u01B0u m\u1EE5c",update_item:"C\u1EADp nh\u1EADt m\u1EB7t h\xE0ng",item:"M\u1EB7t h\xE0ng | M\u1EB7t h\xE0ng",add_new_item:"Th\xEAm m\u1EE5c m\u1EDBi",new_item:"S\u1EA3n ph\u1EA9m m\u1EDBi",edit_item:"Ch\u1EC9nh s\u1EEDa m\u1EE5c",no_items:"Ch\u01B0a c\xF3 m\u1EB7t h\xE0ng n\xE0o!",list_of_items:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c m\u1EE5c.",select_a_unit:"ch\u1ECDn \u0111\u01A1n v\u1ECB",taxes:"Thu\u1EBF",item_attached_message:"Kh\xF4ng th\u1EC3 x\xF3a m\u1ED9t m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c V\u1EADt ph\u1EA9m n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c M\u1EE5c n\xE0y",created_message:"M\u1EE5c \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt m\u1EB7t h\xE0ng th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a m\u1EE5c th\xE0nh c\xF4ng | C\xE1c m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng"},Ty={title:"\u01AF\u1EDBc t\xEDnh",estimate:"\u01AF\u1EDBc t\xEDnh | \u01AF\u1EDBc t\xEDnh",estimates_list:"Danh s\xE1ch \u01B0\u1EDBc t\xEDnh",days:"{days} Ng\xE0y",months:"{months} th\xE1ng",years:"{years} N\u0103m",all:"T\u1EA5t c\u1EA3",paid:"\u0110\xE3 thanh to\xE1n",unpaid:"Ch\u01B0a thanh to\xE1n",customer:"KH\xC1CH H\xC0NG",ref_no:"S\u1ED0 THAM CHI\u1EBEU.",number:"CON S\u1ED0",amount_due:"S\u1ED0 TI\u1EC0N THANH TO\xC1N",partially_paid:"Thanh to\xE1n m\u1ED9t ph\u1EA7n",total:"To\xE0n b\u1ED9",discount:"Gi\u1EA3m gi\xE1",sub_total:"T\u1ED5ng ph\u1EE5",estimate_number:"S\u1ED1 \u01B0\u1EDBc t\xEDnh",ref_number:"S\u1ED1 REF",contact:"Li\xEAn h\u1EC7",add_item:"Th\xEAm m\u1ED9t m\u1EB7t h\xE0ng",date:"Ng\xE0y",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",expiry_date:"Ng\xE0y h\u1EBFt h\u1EA1n",status:"Tr\u1EA1ng th\xE1i",add_tax:"Th\xEAm thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",notes:"Ghi ch\xFA",tax:"Thu\u1EBF",estimate_template:"B\u1EA3n m\u1EABu",convert_to_invoice:"Chuy\u1EC3n \u0111\u1ED5i sang h\xF3a \u0111\u01A1n",mark_as_sent:"\u0110\xE1nh d\u1EA5u l\xE0 \u0110\xE3 g\u1EEDi",send_estimate:"G\u1EEDi \u01B0\u1EDBc t\xEDnh",resend_estimate:"G\u1EEDi l\u1EA1i \u01B0\u1EDBc t\xEDnh",record_payment:"Ghi l\u1EA1i Thanh to\xE1n",add_estimate:"Th\xEAm \u01B0\u1EDBc t\xEDnh",save_estimate:"L\u01B0u \u01B0\u1EDBc t\xEDnh",confirm_conversion:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 t\u1EA1o H\xF3a \u0111\u01A1n m\u1EDBi.",conversion_message:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",confirm_send_estimate:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",confirm_mark_as_sent:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_mark_as_accepted:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0110\xE3 ch\u1EA5p nh\u1EADn",confirm_mark_as_rejected:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 B\u1ECB t\u1EEB ch\u1ED1i",no_matching_estimates:"Kh\xF4ng c\xF3 \u01B0\u1EDBc t\xEDnh ph\xF9 h\u1EE3p!",mark_as_sent_successfully:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi th\xE0nh c\xF4ng",send_estimate_successfully:"\u01AF\u1EDBc t\xEDnh \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",errors:{required:"Tr\u01B0\u1EDDng kh\xF4ng \u0111\u01B0\u1EE3c b\u1ECF tr\u1ED1ng."},accepted:"\u0110\xE3 \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn",rejected:"T\u1EEB ch\u1ED1i",sent:"G\u1EEDi",draft:"B\u1EA3n nh\xE1p",declined:"Suy gi\u1EA3m",new_estimate:"\u01AF\u1EDBc t\xEDnh m\u1EDBi",add_new_estimate:"Th\xEAm \u01B0\u1EDBc t\xEDnh m\u1EDBi",update_Estimate:"C\u1EADp nh\u1EADt \u01B0\u1EDBc t\xEDnh",edit_estimate:"Ch\u1EC9nh s\u1EEDa \u01B0\u1EDBc t\xEDnh",items:"m\u1EB7t h\xE0ng",Estimate:"\u01AF\u1EDBc t\xEDnh | \u01AF\u1EDBc t\xEDnh",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",no_estimates:"Ch\u01B0a c\xF3 \u01B0\u1EDBc t\xEDnh n\xE0o!",list_of_estimates:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c \u01B0\u1EDBc t\xEDnh.",mark_as_rejected:"\u0110\xE1nh d\u1EA5u l\xE0 b\u1ECB t\u1EEB ch\u1ED1i",mark_as_accepted:"\u0110\xE1nh d\u1EA5u l\xE0 \u0111\xE3 ch\u1EA5p nh\u1EADn",marked_as_accepted_message:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn",marked_as_rejected_message:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 b\u1ECB t\u1EEB ch\u1ED1i",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c \u01AF\u1EDBc t\xEDnh n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c \u01AF\u1EDBc t\xEDnh n\xE0y",created_message:"\u01AF\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng | \u0110\xE3 x\xF3a \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng",something_went_wrong:"C\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n",item:{title:"Danh m\u1EE5c",description:"Mi\xEAu t\u1EA3",quantity:"\u0110\u1ECBnh l\u01B0\u1EE3ng",price:"Gi\xE1 b\xE1n",discount:"Gi\u1EA3m gi\xE1",total:"To\xE0n b\u1ED9",total_discount:"T\u1ED5ng kh\u1EA5u tr\u1EEB",sub_total:"T\u1ED5ng ph\u1EE5",tax:"Thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",select_an_item:"Nh\u1EADp ho\u1EB7c nh\u1EA5p \u0111\u1EC3 ch\u1ECDn m\u1ED9t m\u1EE5c",type_item_description:"Lo\u1EA1i M\u1EE5c M\xF4 t\u1EA3 (t\xF9y ch\u1ECDn)"}},Iy={title:"H\xF3a \u0111\u01A1n",invoices_list:"Danh s\xE1ch h\xF3a \u0111\u01A1n",days:"{days} Ng\xE0y",months:"{months} th\xE1ng",years:"{years} N\u0103m",all:"T\u1EA5t c\u1EA3",paid:"\u0110\xE3 thanh to\xE1n",unpaid:"Ch\u01B0a thanh to\xE1n",viewed:"\u0110\xE3 xem",overdue:"Qu\xE1 h\u1EA1n",completed:"\u0110\xE3 ho\xE0n th\xE0nh",customer:"KH\xC1CH H\xC0NG",paid_status:"TR\u1EA0NG TH\xC1I \u0110\xC3 TR\u1EA2 TI\u1EC0N",ref_no:"S\u1ED0 THAM CHI\u1EBEU.",number:"S\u1ED0",amount_due:"S\u1ED0 TI\u1EC0N THANH TO\xC1N",partially_paid:"Thanh to\xE1n m\u1ED9t ph\u1EA7n",total:"To\xE0n b\u1ED9",discount:"Gi\u1EA3m gi\xE1",sub_total:"T\u1ED5ng ph\u1EE5",invoice:"H\xF3a \u0111\u01A1n | H\xF3a \u0111\u01A1n",invoice_number:"S\u1ED1 h\xF3a \u0111\u01A1n",ref_number:"S\u1ED1 REF",contact:"Li\xEAn h\u1EC7",add_item:"Th\xEAm m\u1ED9t m\u1EB7t h\xE0ng",date:"Ng\xE0y",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",status:"Tr\u1EA1ng th\xE1i",add_tax:"Th\xEAm thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",notes:"Ghi ch\xFA",view:"L\u01B0\u1EE3t xem",send_invoice:"G\u1EEDi h\xF3a \u0111\u01A1n",resend_invoice:"G\u1EEDi l\u1EA1i h\xF3a \u0111\u01A1n",invoice_template:"M\u1EABu h\xF3a \u0111\u01A1n",template:"B\u1EA3n m\u1EABu",mark_as_sent:"\u0110\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_send_invoice:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",invoice_mark_as_sent:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_send:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",invoice_date:"Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",record_payment:"Ghi l\u1EA1i Thanh to\xE1n",add_new_invoice:"Th\xEAm h\xF3a \u0111\u01A1n m\u1EDBi",update_expense:"C\u1EADp nh\u1EADt chi ph\xED",edit_invoice:"Ch\u1EC9nh s\u1EEDa h\xF3a \u0111\u01A1n",new_invoice:"H\xF3a \u0111\u01A1n m\u1EDBi",save_invoice:"L\u01B0u h\xF3a \u0111\u01A1n",update_invoice:"C\u1EADp nh\u1EADt h\xF3a \u0111\u01A1n",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",no_invoices:"Ch\u01B0a c\xF3 h\xF3a \u0111\u01A1n!",list_of_invoices:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c h\xF3a \u0111\u01A1n.",select_invoice:"Ch\u1ECDn h\xF3a \u0111\u01A1n",no_matching_invoices:"Kh\xF4ng c\xF3 h\xF3a \u0111\u01A1n ph\xF9 h\u1EE3p!",mark_as_sent_successfully:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi th\xE0nh c\xF4ng",invoice_sent_successfully:"H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",cloned_successfully:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c sao ch\xE9p th\xE0nh c\xF4ng",clone_invoice:"H\xF3a \u0111\u01A1n nh\xE2n b\u1EA3n",confirm_clone:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c sao ch\xE9p v\xE0o m\u1ED9t H\xF3a \u0111\u01A1n m\u1EDBi",item:{title:"Danh m\u1EE5c",description:"Mi\xEAu t\u1EA3",quantity:"\u0110\u1ECBnh l\u01B0\u1EE3ng",price:"Gi\xE1 b\xE1n",discount:"Gi\u1EA3m gi\xE1",total:"To\xE0n b\u1ED9",total_discount:"T\u1ED5ng kh\u1EA5u tr\u1EEB",sub_total:"T\u1ED5ng ph\u1EE5",tax:"Thu\u1EBF",amount:"S\u1ED1 ti\u1EC1n",select_an_item:"Nh\u1EADp ho\u1EB7c nh\u1EA5p \u0111\u1EC3 ch\u1ECDn m\u1ED9t m\u1EE5c",type_item_description:"Lo\u1EA1i M\u1EE5c M\xF4 t\u1EA3 (t\xF9y ch\u1ECDn)"},confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c H\xF3a \u0111\u01A1n n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c H\xF3a \u0111\u01A1n n\xE0y",created_message:"H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt h\xF3a \u0111\u01A1n th\xE0nh c\xF4ng",deleted_message:"H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng | H\xF3a \u0111\u01A1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",marked_as_sent_message:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi th\xE0nh c\xF4ng",something_went_wrong:"c\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n",invalid_due_amount_message:"T\u1ED5ng s\u1ED1 ti\u1EC1n tr\xEAn H\xF3a \u0111\u01A1n kh\xF4ng \u0111\u01B0\u1EE3c nh\u1ECF h\u01A1n t\u1ED5ng s\u1ED1 ti\u1EC1n \u0111\xE3 thanh to\xE1n cho H\xF3a \u0111\u01A1n n\xE0y. Vui l\xF2ng c\u1EADp nh\u1EADt h\xF3a \u0111\u01A1n ho\u1EB7c x\xF3a c\xE1c kho\u1EA3n thanh to\xE1n li\xEAn quan \u0111\u1EC3 ti\u1EBFp t\u1EE5c."},$y={title:"Thanh to\xE1n",payments_list:"Danh s\xE1ch thanh to\xE1n",record_payment:"Ghi l\u1EA1i Thanh to\xE1n",customer:"kh\xE1ch h\xE0ng",date:"Ng\xE0y",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",payment_number:"M\xE3 S\u1ED1 Thanh To\xE1n",payment_mode:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",invoice:"H\xF3a \u0111\u01A1n",note:"Ghi ch\xFA",add_payment:"Th\xEAm thanh to\xE1n",new_payment:"Thanh to\xE1n m\u1EDBi",edit_payment:"Ch\u1EC9nh s\u1EEDa Thanh to\xE1n",view_payment:"Xem thanh to\xE1n",add_new_payment:"Th\xEAm thanh to\xE1n m\u1EDBi",send_payment_receipt:"G\u1EEDi bi\xEAn lai thanh to\xE1n",send_payment:"G\u1EEDi h\xF3a \u0111\u01A1n",save_payment:"L\u01B0u thanh to\xE1n",update_payment:"C\u1EADp nh\u1EADt thanh to\xE1n",payment:"Thanh to\xE1n | Thanh to\xE1n",no_payments:"Ch\u01B0a c\xF3 kho\u1EA3n thanh to\xE1n n\xE0o!",not_selected:"Kh\xF4ng \u0111\u01B0\u1EE3c ch\u1ECDn",no_invoice:"Kh\xF4ng c\xF3 h\xF3a \u0111\u01A1n",no_matching_payments:"Kh\xF4ng c\xF3 kho\u1EA3n thanh to\xE1n n\xE0o ph\xF9 h\u1EE3p!",list_of_payments:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c kho\u1EA3n thanh to\xE1n.",select_payment_mode:"Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",confirm_mark_as_sent:"\u01AF\u1EDBc t\xEDnh n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0111\xE3 g\u1EEDi",confirm_send_payment:"Kho\u1EA3n thanh to\xE1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c g\u1EEDi qua email cho kh\xE1ch h\xE0ng",send_payment_successfully:"Thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c g\u1EEDi th\xE0nh c\xF4ng",something_went_wrong:"C\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Thanh to\xE1n n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c c\xE1c Kho\u1EA3n thanh to\xE1n n\xE0y",created_message:"Thanh to\xE1n \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt thanh to\xE1n th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a thanh to\xE1n th\xE0nh c\xF4ng | Thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",invalid_amount_message:"S\u1ED1 ti\u1EC1n thanh to\xE1n kh\xF4ng h\u1EE3p l\u1EC7"},Ry={title:"Chi ph\xED",expenses_list:"Danh s\xE1ch chi ph\xED",select_a_customer:"Ch\u1ECDn m\u1ED9t kh\xE1ch h\xE0ng",expense_title:"Ti\xEAu \u0111\u1EC1",customer:"kh\xE1ch h\xE0ng",contact:"Li\xEAn h\u1EC7",category:"th\u1EC3 lo\u1EA1i",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",expense_date:"Ng\xE0y",description:"Mi\xEAu t\u1EA3",receipt:"Bi\xEAn lai",amount:"S\u1ED1 ti\u1EC1n",action:"Ho\u1EA1t \u0111\u1ED9ng",not_selected:"Kh\xF4ng \u0111\u01B0\u1EE3c ch\u1ECDn",note:"Ghi ch\xFA",category_id:"Th\u1EC3 lo\u1EA1i ID",date:"Ng\xE0y",add_expense:"Th\xEAm chi ph\xED",add_new_expense:"Th\xEAm chi ph\xED m\u1EDBi",save_expense:"Ti\u1EBFt ki\u1EC7m chi ph\xED",update_expense:"C\u1EADp nh\u1EADt chi ph\xED",download_receipt:"Bi\xEAn nh\u1EADn t\u1EA3i xu\u1ED1ng",edit_expense:"Ch\u1EC9nh s\u1EEDa chi ph\xED",new_expense:"Chi ph\xED m\u1EDBi",expense:"Chi ph\xED | Chi ph\xED",no_expenses:"Ch\u01B0a c\xF3 chi ph\xED!",list_of_expenses:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch c\xE1c chi ph\xED.",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 thu h\u1ED3i Kho\u1EA3n chi ph\xED n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 thu h\u1ED3i c\xE1c Kho\u1EA3n chi ph\xED n\xE0y",created_message:"\u0110\xE3 t\u1EA1o th\xE0nh c\xF4ng chi ph\xED",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt chi ph\xED th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a th\xE0nh c\xF4ng chi ph\xED | \u0110\xE3 x\xF3a th\xE0nh c\xF4ng chi ph\xED",categories:{categories_list:"Danh s\xE1ch h\u1EA1ng m\u1EE5c",title:"Ti\xEAu \u0111\u1EC1",name:"T\xEAn",description:"Mi\xEAu t\u1EA3",amount:"S\u1ED1 ti\u1EC1n",actions:"H\xE0nh \u0111\u1ED9ng",add_category:"th\xEAm th\xEA\u0309 loa\u0323i",new_category:"Danh m\u1EE5c m\u1EDBi",category:"Th\u1EC3 lo\u1EA1i | Th\u1EC3 lo\u1EA1i",select_a_category:"Ch\u1ECDn m\u1ED9t danh m\u1EE5c"}},Fy={email:"E-mail",password:"M\u1EADt kh\u1EA9u",forgot_password:"Qu\xEAn m\u1EADt kh\u1EA9u?",or_signIn_with:"ho\u1EB7c \u0110\u0103ng nh\u1EADp b\u1EB1ng",login:"\u0110\u0103ng nh\u1EADp",register:"\u0110\u0103ng k\xFD",reset_password:"\u0110\u1EB7t l\u1EA1i m\u1EADt kh\u1EA9u",password_reset_successfully:"\u0110\u1EB7t l\u1EA1i m\u1EADt kh\u1EA9u th\xE0nh c\xF4ng",enter_email:"Nh\u1EADp email",enter_password:"Nh\u1EADp m\u1EADt kh\u1EA9u",retype_password:"G\xF5 l\u1EA1i m\u1EADt kh\u1EA9u"},My={title:"Ng\u01B0\u1EDDi d\xF9ng",users_list:"Danh s\xE1ch ng\u01B0\u1EDDi d\xF9ng",name:"T\xEAn",description:"Mi\xEAu t\u1EA3",added_on:"\u0110\xE3 th\xEAm v\xE0o",date_of_creation:"Ng\xE0y t\u1EA1o",action:"Ho\u1EA1t \u0111\u1ED9ng",add_user:"Th\xEAm ng\u01B0\u1EDDi d\xF9ng",save_user:"L\u01B0u ng\u01B0\u1EDDi d\xF9ng",update_user:"C\u1EADp nh\u1EADt ng\u01B0\u1EDDi d\xF9ng",user:"Ng\u01B0\u1EDDi d\xF9ng | Ng\u01B0\u1EDDi d\xF9ng",add_new_user:"Th\xEAm ng\u01B0\u1EDDi d\xF9ng m\u1EDBi",new_user:"Ng\u01B0\u1EDDi d\xF9ng m\u1EDBi",edit_user:"Ch\u1EC9nh s\u1EEDa g\u01B0\u1EDDi d\xF9ng",no_users:"Ch\u01B0a c\xF3 ng\u01B0\u1EDDi d\xF9ng n\xE0o!",list_of_users:"Ph\u1EA7n n\xE0y s\u1EBD ch\u1EE9a danh s\xE1ch ng\u01B0\u1EDDi d\xF9ng.",email:"E-mail",phone:"\u0110i\u1EC7n tho\u1EA1i",password:"M\u1EADt kh\u1EA9u",user_attached_message:"Kh\xF4ng th\u1EC3 x\xF3a m\u1ED9t m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Ng\u01B0\u1EDDi d\xF9ng n\xE0y | B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c nh\u1EEFng Ng\u01B0\u1EDDi d\xF9ng n\xE0y",created_message:"Ng\u01B0\u1EDDi d\xF9ng \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt ng\u01B0\u1EDDi d\xF9ng th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a ng\u01B0\u1EDDi d\xF9ng th\xE0nh c\xF4ng | \u0110\xE3 x\xF3a ng\u01B0\u1EDDi d\xF9ng th\xE0nh c\xF4ng"},Vy={title:"B\xE1o c\xE1o",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",status:"Tr\u1EA1ng th\xE1i",paid:"\u0110\xE3 thanh to\xE1n",unpaid:"Ch\u01B0a thanh to\xE1n",download_pdf:"T\u1EA3i PDF",view_pdf:"Xem PDF",update_report:"C\u1EADp nh\u1EADt b\xE1o c\xE1o",report:"B\xE1o c\xE1o | B\xE1o c\xE1o",profit_loss:{profit_loss:"L\u1EE3i nhu\u1EADn",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"},sales:{sales:"B\xE1n h\xE0ng",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",report_type:"Lo\u1EA1i b\xE1o c\xE1o"},taxes:{taxes:"Thu\u1EBF",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"},errors:{required:"L\u0129nh v\u1EF1c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u"},invoices:{invoice:"H\xF3a \u0111\u01A1n",invoice_date:"Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",amount:"S\u1ED1 ti\u1EC1n",contact_name:"T\xEAn Li\xEAn l\u1EA1c",status:"Tr\u1EA1ng th\xE1i"},estimates:{estimate:"\u01AF\u1EDBc t\xEDnh",estimate_date:"Ng\xE0y \u01B0\u1EDBc t\xEDnh",due_date:"Ng\xE0y \u0111\xE1o h\u1EA1n",estimate_number:"S\u1ED1 \u01B0\u1EDBc t\xEDnh",ref_number:"S\u1ED1 REF",amount:"S\u1ED1 ti\u1EC1n",contact_name:"T\xEAn Li\xEAn l\u1EA1c",status:"Tr\u1EA1ng th\xE1i"},expenses:{expenses:"Chi ph\xED",category:"th\u1EC3 lo\u1EA1i",date:"Ng\xE0y",amount:"S\u1ED1 ti\u1EC1n",to_date:"\u0110\u1EBFn ng\xE0y",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"}},By={menu_title:{account_settings:"C\xE0i \u0111\u1EB7t t\xE0i kho\u1EA3n",company_information:"Th\xF4ng tin c\xF4ng ty",customization:"T\xF9y bi\u1EBFn",preferences:"S\u1EDF th\xEDch",notifications:"Th\xF4ng b\xE1o",tax_types:"C\xE1c lo\u1EA1i thu\u1EBF",expense_category:"H\u1EA1ng m\u1EE5c Chi ph\xED",update_app:"C\u1EADp nh\u1EADt \u1EE9ng d\u1EE5ng",backup:"Sao l\u01B0u",file_disk:"\u0110\u0129a t\u1EC7p",custom_fields:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",payment_modes:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",notes:"Ghi ch\xFA"},title:"C\xE0i \u0111\u1EB7t",setting:"C\xE0i \u0111\u1EB7t | C\xE0i \u0111\u1EB7t",general:"Chung",language:"Ng\xF4n ng\u1EEF",primary_currency:"Ti\u1EC1n t\u1EC7 ch\xEDnh",timezone:"M\xFAi gi\u1EDD",date_format:"\u0110\u1ECBnh d\u1EA1ng ng\xE0y th\xE1ng",currencies:{title:"Ti\u1EC1n t\u1EC7",currency:"Ti\u1EC1n t\u1EC7 | Ti\u1EC1n t\u1EC7",currencies_list:"Danh s\xE1ch ti\u1EC1n t\u1EC7",select_currency:"Ch\u1ECDn ti\u1EC1n t\u1EC7",name:"T\xEAn",code:"M\xE3",symbol:"Bi\u1EC3u t\u01B0\u1EE3ng",precision:"\u0110\u1ED9 ch\xEDnh x\xE1c",thousand_separator:"H\xE0ng ng\xE0n m\xE1y t\xE1ch",decimal_separator:"Ph\xE2n s\u1ED1 th\u1EADp ph\xE2n",position:"Ch\u1EE9c v\u1EE5",position_of_symbol:"V\u1ECB tr\xED c\u1EE7a bi\u1EC3u t\u01B0\u1EE3ng",right:"\u0110\xFAng",left:"Tr\xE1i",action:"Ho\u1EA1t \u0111\u1ED9ng",add_currency:"Th\xEAm ti\u1EC1n t\u1EC7"},mail:{host:"M\xE1y ch\u1EE7 Th\u01B0",port:"C\u1ED5ng th\u01B0",driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n Th\u01B0",secret:"Kh\xF3a",mailgun_secret:"Kh\xF3a Mailgun",mailgun_domain:"Mi\u1EC1n",mailgun_endpoint:"\u0110i\u1EC3m cu\u1ED1i c\u1EE7a Mailgun",ses_secret:"Kh\xF3a SES",ses_key:"Kh\xF3a SES",password:"M\u1EADt kh\u1EA9u th\u01B0",username:"T\xEAn ng\u01B0\u1EDDi d\xF9ng th\u01B0",mail_config:"C\u1EA5u h\xECnh th\u01B0",from_name:"T\u1EEB t\xEAn th\u01B0",from_mail:"T\u1EEB \u0111\u1ECBa ch\u1EC9 th\u01B0",encryption:"M\xE3 h\xF3a Th\u01B0",mail_config_desc:"D\u01B0\u1EDBi \u0111\xE2y l\xE0 bi\u1EC3u m\u1EABu \u0110\u1ECBnh c\u1EA5u h\xECnh tr\xECnh \u0111i\u1EC1u khi\u1EC3n Email \u0111\u1EC3 g\u1EEDi email t\u1EEB \u1EE9ng d\u1EE5ng. B\u1EA1n c\u0169ng c\xF3 th\u1EC3 \u0111\u1ECBnh c\u1EA5u h\xECnh c\xE1c nh\xE0 cung c\u1EA5p b\xEAn th\u1EE9 ba nh\u01B0 Sendgrid, SES, v.v."},pdf:{title:"C\xE0i \u0111\u1EB7t PDF",footer_text:"V\u0103n b\u1EA3n ch\xE2n trang",pdf_layout:"B\u1ED1 c\u1EE5c PDF"},company_info:{company_info:"Th\xF4ng tin c\xF4ng ty",company_name:"T\xEAn c\xF4ng ty",company_logo:"Logo c\xF4ng ty",section_description:"Th\xF4ng tin v\u1EC1 c\xF4ng ty c\u1EE7a b\u1EA1n s\u1EBD \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB tr\xEAn h\xF3a \u0111\u01A1n, \u01B0\u1EDBc t\xEDnh v\xE0 c\xE1c t\xE0i li\u1EC7u kh\xE1c do Crater t\u1EA1o.",phone:"\u0110i\u1EC7n tho\u1EA1i",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",address:"\u0110\u1ECBa ch\u1EC9",zip:"Zip",save:"L\u01B0u",updated_message:"Th\xF4ng tin c\xF4ng ty \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt th\xE0nh c\xF4ng"},custom_fields:{title:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",section_description:"T\xF9y ch\u1EC9nh h\xF3a \u0111\u01A1n, \u01B0\u1EDBc t\xEDnh c\u1EE7a b\u1EA1n",add_custom_field:"Th\xEAm tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",edit_custom_field:"Ch\u1EC9nh s\u1EEDa tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh",field_name:"T\xEAn tr\u01B0\u1EDDng",label:"Nh\xE3n",type:"Ki\u1EC3u",name:"T\xEAn",required:"C\u1EA7n thi\u1EBFt",placeholder:"Tr\xECnh gi\u1EEF ch\u1ED7",help_text:"V\u0103n b\u1EA3n tr\u1EE3 gi\xFAp",default_value:"Gi\xE1 tr\u1ECB m\u1EB7c \u0111\u1ECBnh",prefix:"Ti\u1EBFp \u0111\u1EA7u ng\u1EEF",starting_number:"S\u1ED1 b\u1EAFt \u0111\u1EA7u",model:"M\xF4 h\xECnh",help_text_description:"Nh\u1EADp m\u1ED9t s\u1ED1 v\u0103n b\u1EA3n \u0111\u1EC3 gi\xFAp ng\u01B0\u1EDDi d\xF9ng hi\u1EC3u m\u1EE5c \u0111\xEDch c\u1EE7a tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh n\xE0y.",suffix:"H\u1EADu t\u1ED1",yes:"\u0110\xFAng",no:"Kh\xF4ng",order:"\u0110\u1EB7t h\xE0ng",custom_field_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh n\xE0y",already_in_use:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"Tr\u01B0\u1EDDng T\xF9y ch\u1EC9nh \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",options:"c\xE1c t\xF9y ch\u1ECDn",add_option:"Th\xEAm t\xF9y ch\u1ECDn",add_another_option:"Th\xEAm m\u1ED9t t\xF9y ch\u1ECDn kh\xE1c",sort_in_alphabetical_order:"S\u1EAFp x\u1EBFp theo th\u1EE9 t\u1EF1 b\u1EA3ng ch\u1EEF c\xE1i",add_options_in_bulk:"Th\xEAm h\xE0ng lo\u1EA1t t\xF9y ch\u1ECDn",use_predefined_options:"S\u1EED d\u1EE5ng c\xE1c t\xF9y ch\u1ECDn \u0111\u01B0\u1EE3c x\xE1c \u0111\u1ECBnh tr\u01B0\u1EDBc",select_custom_date:"Ch\u1ECDn ng\xE0y t\xF9y ch\u1EC9nh",select_relative_date:"Ch\u1ECDn ng\xE0y t\u01B0\u01A1ng \u0111\u1ED1i",ticked_by_default:"\u0110\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u theo m\u1EB7c \u0111\u1ECBnh",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh th\xE0nh c\xF4ng",added_message:"Tr\u01B0\u1EDDng t\xF9y ch\u1EC9nh \u0111\xE3 \u0111\u01B0\u1EE3c th\xEAm th\xE0nh c\xF4ng"},customization:{customization:"s\u1EF1 t\xF9y bi\u1EBFn",save:"Ti\u1EBFt ki\u1EC7m",addresses:{title:"\u0110\u1ECBa ch\u1EC9",section_description:"B\u1EA1n c\xF3 th\u1EC3 \u0111\u1EB7t \u0110\u1ECBnh d\u1EA1ng \u0110\u1ECBa ch\u1EC9 Thanh to\xE1n c\u1EE7a Kh\xE1ch h\xE0ng v\xE0 \u0110\u1ECBa ch\u1EC9 Giao h\xE0ng c\u1EE7a Kh\xE1ch h\xE0ng (Ch\u1EC9 hi\u1EC3n th\u1ECB d\u01B0\u1EDBi d\u1EA1ng PDF).",customer_billing_address:"\u0110\u1ECBa ch\u1EC9 thanh to\xE1n c\u1EE7a kh\xE1ch h\xE0ng",customer_shipping_address:"\u0110\u1ECBa ch\u1EC9 giao h\xE0ng c\u1EE7a kh\xE1ch h\xE0ng",company_address:"\u0111\u1ECBa ch\u1EC9 c\xF4ng ty",insert_fields:"Ch\xE8n tr\u01B0\u1EDDng",contact:"Li\xEAn h\u1EC7",address:"\u0110\u1ECBa ch\u1EC9",display_name:"T\xEAn hi\u1EC3n th\u1ECB",primary_contact_name:"T\xEAn li\xEAn h\u1EC7 ch\xEDnh",email:"E-mail",website:"Website",name:"T\xEAn",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",company_name:"T\xEAn c\xF4ng ty",address_street_1:"\u0110\u1ECBa ch\u1EC9 \u0110\u01B0\u1EDDng 1",address_street_2:"\u0110\u1ECBa ch\u1EC9 \u0110\u01B0\u1EDDng 2",phone:"\u0110i\u1EC7n tho\u1EA1i",zip_code:"M\xE3 B\u01B0u Ch\xEDnh",address_setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t \u0111\u1ECBa ch\u1EC9 th\xE0nh c\xF4ng"},updated_message:"Th\xF4ng tin c\xF4ng ty \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt th\xE0nh c\xF4ng",invoices:{title:"H\xF3a \u0111\u01A1n",notes:"Ghi ch\xFA",invoice_prefix:"Ti\u1EC1n t\u1ED1 h\xF3a \u0111\u01A1n",default_invoice_email_body:"N\u1ED9i dung email h\xF3a \u0111\u01A1n m\u1EB7c \u0111\u1ECBnh",invoice_settings:"C\xE0i \u0111\u1EB7t h\xF3a \u0111\u01A1n",autogenerate_invoice_number:"T\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 h\xF3a \u0111\u01A1n",autogenerate_invoice_number_desc:"T\u1EAFt t\xEDnh n\u0103ng n\xE0y, N\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n t\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 h\xF3a \u0111\u01A1n m\u1ED7i khi b\u1EA1n t\u1EA1o h\xF3a \u0111\u01A1n m\u1EDBi.",invoice_email_attachment:"G\u1EEDi h\xF3a \u0111\u01A1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m",invoice_email_attachment_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n g\u1EEDi h\xF3a \u0111\u01A1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m email. Xin l\u01B0u \xFD r\u1EB1ng n\xFAt &#39;Xem H\xF3a \u0111\u01A1n&#39; trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",enter_invoice_prefix:"Nh\u1EADp ti\u1EC1n t\u1ED1 h\xF3a \u0111\u01A1n",terms_and_conditions:"C\xE1c \u0111i\u1EC1u kho\u1EA3n v\xE0 \u0111i\u1EC1u ki\u1EC7n",company_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 c\xF4ng ty",shipping_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 giao h\xE0ng",billing_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 thanh to\xE1n",invoice_settings_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t h\xF3a \u0111\u01A1n th\xE0nh c\xF4ng"},estimates:{title:"\u01AF\u1EDBc t\xEDnh",estimate_prefix:"Ti\u1EC1n t\u1ED1 \u01B0\u1EDBc t\xEDnh",default_estimate_email_body:"N\u1ED9i dung Email \u01AF\u1EDBc t\xEDnh M\u1EB7c \u0111\u1ECBnh",estimate_settings:"C\xE0i \u0111\u1EB7t \u01B0\u1EDBc t\xEDnh",autogenerate_estimate_number:"T\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 \u01B0\u1EDBc t\xEDnh",estimate_setting_description:"T\u1EAFt t\xEDnh n\u0103ng n\xE0y, n\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n t\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 \u01B0\u1EDBc t\xEDnh m\u1ED7i khi b\u1EA1n t\u1EA1o \u01B0\u1EDBc t\xEDnh m\u1EDBi.",estimate_email_attachment:"G\u1EEDi \u01B0\u1EDBc t\xEDnh d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m",estimate_email_attachment_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n g\u1EEDi \u01B0\u1EDBc t\xEDnh d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m email. Xin l\u01B0u \xFD r\u1EB1ng n\xFAt &#39;Xem \u01AF\u1EDBc t\xEDnh&#39; trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",enter_estimate_prefix:"Nh\u1EADp ti\u1EC1n t\u1ED1 estmiate",estimate_setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t \u01B0\u1EDBc t\xEDnh th\xE0nh c\xF4ng",company_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 c\xF4ng ty",billing_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 thanh to\xE1n",shipping_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 giao h\xE0ng"},payments:{title:"Thanh to\xE1n",description:"C\xE1c ph\u01B0\u01A1ng th\u1EE9c giao d\u1ECBch thanh to\xE1n",payment_prefix:"Ti\u1EC1n t\u1ED1 thanh to\xE1n",default_payment_email_body:"N\u1ED9i dung Email Thanh to\xE1n M\u1EB7c \u0111\u1ECBnh",payment_settings:"C\xE0i \u0111\u1EB7t thanh to\xE1n",autogenerate_payment_number:"T\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 thanh to\xE1n",payment_setting_description:"T\u1EAFt t\xEDnh n\u0103ng n\xE0y, n\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n t\u1EF1 \u0111\u1ED9ng t\u1EA1o s\u1ED1 thanh to\xE1n m\u1ED7i khi b\u1EA1n t\u1EA1o m\u1ED9t kho\u1EA3n thanh to\xE1n m\u1EDBi.",payment_email_attachment:"G\u1EEDi thanh to\xE1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m",payment_email_attachment_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n g\u1EEDi bi\xEAn nh\u1EADn thanh to\xE1n d\u01B0\u1EDBi d\u1EA1ng t\u1EC7p \u0111\xEDnh k\xE8m email. Xin l\u01B0u \xFD r\u1EB1ng n\xFAt &#39;Xem Thanh to\xE1n&#39; trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",enter_payment_prefix:"Nh\u1EADp ti\u1EC1n t\u1ED1 thanh to\xE1n",payment_setting_updated:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t thanh to\xE1n th\xE0nh c\xF4ng",payment_modes:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",add_payment_mode:"Th\xEAm ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",edit_payment_mode:"Ch\u1EC9nh s\u1EEDa Ph\u01B0\u01A1ng th\u1EE9c Thanh to\xE1n",mode_name:"T\xEAn ch\u1EBF \u0111\u1ED9",payment_mode_added:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c th\xEAm",payment_mode_updated:"\u0110\xE3 c\u1EADp nh\u1EADt ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",payment_mode_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n n\xE0y",already_in_use:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",company_address_format:"\u0110\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 c\xF4ng ty",from_customer_address_format:"T\u1EEB \u0111\u1ECBnh d\u1EA1ng \u0111\u1ECBa ch\u1EC9 kh\xE1ch h\xE0ng"},items:{title:"M\u1EB7t h\xE0ng",units:"C\xE1c \u0111\u01A1n v\u1ECB",add_item_unit:"Th\xEAm \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng",edit_item_unit:"Ch\u1EC9nh s\u1EEDa \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng",unit_name:"T\xEAn b\xE0i",item_unit_added:"\u0110\u01A1n v\u1ECB m\u1EB7t h\xE0ng \u0111\xE3 \u0111\u01B0\u1EE3c th\xEAm",item_unit_updated:"\u0110\xE3 c\u1EADp nh\u1EADt \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng",item_unit_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c \u0111\u01A1n v\u1ECB M\u1EB7t h\xE0ng n\xE0y",already_in_use:"\u0110\u01A1n v\u1ECB v\u1EADt ph\u1EA9m \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"\u0110\u01A1n v\u1ECB m\u1EB7t h\xE0ng \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng"},notes:{title:"Ghi ch\xFA",description:"Ti\u1EBFt ki\u1EC7m th\u1EDDi gian b\u1EB1ng c\xE1ch t\u1EA1o ghi ch\xFA v\xE0 s\u1EED d\u1EE5ng l\u1EA1i ch\xFAng tr\xEAn h\xF3a \u0111\u01A1n, \u01B0\u1EDBc t\xEDnh c\u1EE7a b\u1EA1n",notes:"Ghi ch\xFA",type:"Ki\u1EC3u",add_note:"Th\xEAm ghi ch\xFA",add_new_note:"Th\xEAm ghi ch\xFA m\u1EDBi",name:"T\xEAn",edit_note:"Ch\u1EC9nh s\u1EEDa ghi ch\xFA",note_added:"\u0110\xE3 th\xEAm ghi ch\xFA th\xE0nh c\xF4ng",note_updated:"\u0110\xE3 c\u1EADp nh\u1EADt ghi ch\xFA th\xE0nh c\xF4ng",note_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Ghi ch\xFA n\xE0y",already_in_use:"Ghi ch\xFA \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",deleted_message:"\u0110\xE3 x\xF3a ghi ch\xFA th\xE0nh c\xF4ng"}},account_settings:{profile_picture:"\u1EA2nh \u0111\u1EA1i di\u1EC7n",name:"T\xEAn",email:"E-mail",password:"M\u1EADt kh\u1EA9u",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u",account_settings:"C\xE0i \u0111\u1EB7t t\xE0i kho\u1EA3n",save:"L\u01B0u",section_description:"B\u1EA1n c\xF3 th\u1EC3 c\u1EADp nh\u1EADt t\xEAn, email c\u1EE7a m\xECnh",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt c\xE0i \u0111\u1EB7t t\xE0i kho\u1EA3n th\xE0nh c\xF4ng"},user_profile:{name:"T\xEAn",email:"E-mail",password:"M\u1EADt kh\u1EA9u",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u"},notification:{title:"Th\xF4ng b\xE1o",email:"G\u1EEDi th\xF4ng b\xE1o t\u1EDBi",description:"B\u1EA1n mu\u1ED1n nh\u1EADn th\xF4ng b\xE1o email n\xE0o khi c\xF3 \u0111i\u1EC1u g\xEC \u0111\xF3 thay \u0111\u1ED5i?",invoice_viewed:"H\xF3a \u0111\u01A1n \u0111\xE3 xem",invoice_viewed_desc:"Khi kh\xE1ch h\xE0ng c\u1EE7a b\u1EA1n xem h\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c g\u1EEDi qua b\u1EA3ng \u0111i\u1EC1u khi\u1EC3n mi\u1EC7ng n\xFAi l\u1EEDa.",estimate_viewed:"\u01AF\u1EDBc t\xEDnh \u0111\xE3 xem",estimate_viewed_desc:"Khi kh\xE1ch h\xE0ng c\u1EE7a b\u1EA1n xem \u01B0\u1EDBc t\xEDnh \u0111\u01B0\u1EE3c g\u1EEDi qua b\u1EA3ng \u0111i\u1EC1u khi\u1EC3n mi\u1EC7ng n\xFAi l\u1EEDa.",save:"L\u01B0u",email_save_message:"Email \u0111\xE3 \u0111\u01B0\u1EE3c l\u01B0u th\xE0nh c\xF4ng",please_enter_email:"Vui l\xF2ng nh\u1EADp Email"},tax_types:{title:"C\xE1c lo\u1EA1i thu\u1EBF",add_tax:"Th\xEAm thu\u1EBF",edit_tax:"Ch\u1EC9nh s\u1EEDa thu\u1EBF",description:"B\u1EA1n c\xF3 th\u1EC3 th\xEAm ho\u1EB7c b\u1EDBt thu\u1EBF t\xF9y \xFD. Crater h\u1ED7 tr\u1EE3 Thu\u1EBF \u0111\u1ED1i v\u1EDBi c\xE1c m\u1EB7t h\xE0ng ri\xEAng l\u1EBB c\u0169ng nh\u01B0 tr\xEAn h\xF3a \u0111\u01A1n.",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",tax_settings:"C\xE0i \u0111\u1EB7t thu\u1EBF",tax_per_item:"Thu\u1EBF m\u1ED7i m\u1EB7t h\xE0ng",tax_name:"T\xEAn thu\u1EBF",compound_tax:"Thu\u1EBF t\u1ED5ng h\u1EE3p",percent:"Ph\u1EA7n tr\u0103m",action:"Ho\u1EA1t \u0111\u1ED9ng",tax_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n th\xEAm thu\u1EBF v\xE0o c\xE1c m\u1EE5c h\xF3a \u0111\u01A1n ri\xEAng l\u1EBB. Theo m\u1EB7c \u0111\u1ECBnh, thu\u1EBF \u0111\u01B0\u1EE3c th\xEAm tr\u1EF1c ti\u1EBFp v\xE0o h\xF3a \u0111\u01A1n.",created_message:"Lo\u1EA1i thu\u1EBF \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt th\xE0nh c\xF4ng lo\u1EA1i thu\u1EBF",deleted_message:"\u0110\xE3 x\xF3a th\xE0nh c\xF4ng lo\u1EA1i thu\u1EBF",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Lo\u1EA1i thu\u1EBF n\xE0y",already_in_use:"Thu\u1EBF \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng"},expense_category:{title:"H\u1EA1ng m\u1EE5c Chi ph\xED",action:"Ho\u1EA1t \u0111\u1ED9ng",description:"C\xE1c danh m\u1EE5c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u \u0111\u1EC3 th\xEAm c\xE1c m\u1EE5c chi ph\xED. B\u1EA1n c\xF3 th\u1EC3 Th\xEAm ho\u1EB7c X\xF3a c\xE1c danh m\u1EE5c n\xE0y t\xF9y theo s\u1EDF th\xEDch c\u1EE7a m\xECnh.",add_new_category:"Th\xEAm danh m\u1EE5c m\u1EDBi",add_category:"th\xEAm th\xEA\u0309 loa\u0323i",edit_category:"Ch\u1EC9nh s\u1EEDa danh m\u1EE5c",category_name:"t\xEAn danh m\u1EE5c",category_description:"Mi\xEAu t\u1EA3",created_message:"Danh m\u1EE5c Chi ph\xED \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o th\xE0nh c\xF4ng",deleted_message:"\u0110\xE3 x\xF3a th\xE0nh c\xF4ng danh m\u1EE5c chi ph\xED",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt danh m\u1EE5c chi ph\xED th\xE0nh c\xF4ng",confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c Danh m\u1EE5c Chi ph\xED n\xE0y",already_in_use:"Danh m\u1EE5c \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng"},preferences:{currency:"Ti\u1EC1n t\u1EC7",default_language:"Ng\xF4n ng\u1EEF m\u1EB7c \u0111\u1ECBnh",time_zone:"M\xFAi gi\u1EDD",fiscal_year:"N\u0103m t\xE0i ch\xEDnh",date_format:"\u0110\u1ECBnh d\u1EA1ng ng\xE0y th\xE1ng",discount_setting:"C\xE0i \u0111\u1EB7t chi\u1EBFt kh\u1EA5u",discount_per_item:"Gi\u1EA3m gi\xE1 cho m\u1ED7i m\u1EB7t h\xE0ng",discount_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y n\u1EBFu b\u1EA1n mu\u1ED1n th\xEAm Gi\u1EA3m gi\xE1 v\xE0o c\xE1c m\u1EB7t h\xE0ng h\xF3a \u0111\u01A1n ri\xEAng l\u1EBB. Theo m\u1EB7c \u0111\u1ECBnh, Gi\u1EA3m gi\xE1 \u0111\u01B0\u1EE3c th\xEAm tr\u1EF1c ti\u1EBFp v\xE0o h\xF3a \u0111\u01A1n.",save:"L\u01B0u",preference:"S\u1EDF th\xEDch | S\u1EDF th\xEDch",general_settings:"T\xF9y ch\u1ECDn m\u1EB7c \u0111\u1ECBnh cho h\u1EC7 th\u1ED1ng.",updated_message:"\u0110\xE3 c\u1EADp nh\u1EADt th\xE0nh c\xF4ng c\xE1c t\xF9y ch\u1ECDn",select_language:"Ch\u1ECDn ng\xF4n ng\u1EEF",select_time_zone:"Ch\u1ECDn m\xFAi gi\u1EDD",select_date_format:"Ch\u1ECDn \u0111\u1ECBnh d\u1EA1ng ng\xE0y",select_financial_year:"Ch\u1ECDn n\u0103m t\xE0i ch\xEDnh"},update_app:{title:"C\u1EADp nh\u1EADt \u1EE9ng d\u1EE5ng",description:"B\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng c\u1EADp nh\u1EADt Crater b\u1EB1ng c\xE1ch ki\u1EC3m tra b\u1EA3n c\u1EADp nh\u1EADt m\u1EDBi b\u1EB1ng c\xE1ch nh\u1EA5p v\xE0o n\xFAt b\xEAn d\u01B0\u1EDBi",check_update:"Ki\u1EC3m tra c\u1EADp nh\u1EADt",avail_update:"C\u1EADp nh\u1EADt m\u1EDBi c\xF3 s\u1EB5n",next_version:"Phi\xEAn b\u1EA3n ti\u1EBFp theo",requirements:"Y\xEAu c\u1EA7u",update:"C\u1EADp nh\u1EADt b\xE2y gi\u1EDD",update_progress:"\u0110ang c\u1EADp nh\u1EADt ...",progress_text:"N\xF3 s\u1EBD ch\u1EC9 m\u1EA5t m\u1ED9t v\xE0i ph\xFAt. Vui l\xF2ng kh\xF4ng l\xE0m m\u1EDBi m\xE0n h\xECnh ho\u1EB7c \u0111\xF3ng c\u1EEDa s\u1ED5 tr\u01B0\u1EDBc khi c\u1EADp nh\u1EADt k\u1EBFt th\xFAc",update_success:"\u1EE8ng d\u1EE5ng \u0111\xE3 \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt! Vui l\xF2ng \u0111\u1EE3i trong khi c\u1EEDa s\u1ED5 tr\xECnh duy\u1EC7t c\u1EE7a b\u1EA1n \u0111\u01B0\u1EE3c t\u1EA3i l\u1EA1i t\u1EF1 \u0111\u1ED9ng.",latest_message:"Kh\xF4ng c\xF3 b\u1EA3n c\u1EADp nh\u1EADt n\xE0o! B\u1EA1n \u0111ang s\u1EED d\u1EE5ng phi\xEAn b\u1EA3n m\u1EDBi nh\u1EA5t.",current_version:"Phi\xEAn b\u1EA3n hi\u1EC7n t\u1EA1i",download_zip_file:"T\u1EA3i xu\u1ED1ng t\u1EC7p ZIP",unzipping_package:"G\xF3i gi\u1EA3i n\xE9n",copying_files:"Sao ch\xE9p c\xE1c t\u1EADp tin",deleting_files:"X\xF3a c\xE1c t\u1EC7p kh\xF4ng s\u1EED d\u1EE5ng",running_migrations:"Ch\u1EA1y di c\u01B0",finishing_update:"C\u1EADp nh\u1EADt k\u1EBFt th\xFAc",update_failed:"C\u1EADp nh\u1EADt kh\xF4ng th\xE0nh c\xF4ng",update_failed_text:"L\u1EA5y l\xE0m ti\u1EBFc! C\u1EADp nh\u1EADt c\u1EE7a b\u1EA1n kh\xF4ng th\xE0nh c\xF4ng v\xE0o: b\u01B0\u1EDBc {step}"},backup:{title:"Sao l\u01B0u | Sao l\u01B0u",description:"B\u1EA3n sao l\u01B0u l\xE0 m\u1ED9t t\u1EC7p zip ch\u1EE9a t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p trong th\u01B0 m\u1EE5c b\u1EA1n ch\u1EC9 \u0111\u1ECBnh c\xF9ng v\u1EDBi m\u1ED9t k\u1EBFt xu\u1EA5t c\u01A1 s\u1EDF d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n",new_backup:"Th\xEAm b\u1EA3n sao l\u01B0u m\u1EDBi",create_backup:"T\u1EA1o b\u1EA3n sao",select_backup_type:"Ch\u1ECDn lo\u1EA1i sao l\u01B0u",backup_confirm_delete:"B\u1EA1n s\u1EBD kh\xF4ng th\u1EC3 kh\xF4i ph\u1EE5c B\u1EA3n sao l\u01B0u n\xE0y",path:"con \u0111\u01B0\u1EDDng",new_disk:"\u0110\u0129a m\u1EDBi",created_at:"\u0111\u01B0\u1EE3c t\u1EA1o ra t\u1EA1i",size:"k\xEDch th\u01B0\u1EDBc",dropbox:"dropbox",local:"\u0111\u1ECBa ph\u01B0\u01A1ng",healthy:"kh\u1ECFe m\u1EA1nh",amount_of_backups:"l\u01B0\u1EE3ng sao l\u01B0u",newest_backups:"b\u1EA3n sao l\u01B0u m\u1EDBi nh\u1EA5t",used_storage:"l\u01B0u tr\u1EEF \u0111\xE3 s\u1EED d\u1EE5ng",select_disk:"Ch\u1ECDn \u0111\u0129a",action:"Ho\u1EA1t \u0111\u1ED9ng",deleted_message:"\u0110\xE3 x\xF3a b\u1EA3n sao l\u01B0u th\xE0nh c\xF4ng",created_message:"\u0110\xE3 t\u1EA1o th\xE0nh c\xF4ng b\u1EA3n sao l\u01B0u",invalid_disk_credentials:"Th\xF4ng tin \u0111\u0103ng nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7 c\u1EE7a \u0111\u0129a \u0111\xE3 ch\u1ECDn"},disk:{title:"\u0110\u0129a t\u1EADp tin | \u0110\u0129a T\u1EC7p",description:"Theo m\u1EB7c \u0111\u1ECBnh, Crater s\u1EBD s\u1EED d\u1EE5ng \u0111\u0129a c\u1EE5c b\u1ED9 c\u1EE7a b\u1EA1n \u0111\u1EC3 l\u01B0u c\xE1c b\u1EA3n sao l\u01B0u, \u1EA3nh \u0111\u1EA1i di\u1EC7n v\xE0 c\xE1c t\u1EC7p h\xECnh \u1EA3nh kh\xE1c. B\u1EA1n c\xF3 th\u1EC3 \u0111\u1ECBnh c\u1EA5u h\xECnh nhi\u1EC1u h\u01A1n m\u1ED9t tr\xECnh \u0111i\u1EC1u khi\u1EC3n \u0111\u0129a nh\u01B0 DigitalOcean, S3 v\xE0 Dropbox theo s\u1EDF th\xEDch c\u1EE7a m\xECnh.",created_at:"\u0111\u01B0\u1EE3c t\u1EA1o ra t\u1EA1i",dropbox:"dropbox",name:"T\xEAn",driver:"Ng\u01B0\u1EDDi l\xE1i xe",disk_type:"Ki\u1EC3u",disk_name:"T\xEAn \u0111\u0129a",new_disk:"Th\xEAm \u0111\u0129a m\u1EDBi",filesystem_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n h\u1EC7 th\u1ED1ng t\u1EADp tin",local_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n \u0111\u1ECBa ph\u01B0\u01A1ng",local_root:"G\u1ED1c c\u1EE5c b\u1ED9",public_driver:"T\xE0i x\u1EBF c\xF4ng c\u1ED9ng",public_root:"G\u1ED1c c\xF4ng khai",public_url:"URL c\xF4ng khai",public_visibility:"Hi\u1EC3n th\u1ECB c\xF4ng khai",media_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n ph\u01B0\u01A1ng ti\u1EC7n",media_root:"G\u1ED1c ph\u01B0\u01A1ng ti\u1EC7n",aws_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n AWS",aws_key:"Kh\xF3a AWS",aws_secret:"Kh\xF3a AWS",aws_region:"Khu v\u1EF1c AWS",aws_bucket:"Nh\xF3m AWS",aws_root:"G\u1ED1c AWS",do_spaces_type:"L\xE0m ki\u1EC3u Spaces",do_spaces_key:"Do ph\xEDm Spaces",do_spaces_secret:"L\xE0m b\xED m\u1EADt v\u1EC1 kh\xF4ng gian",do_spaces_region:"Do Spaces Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaces Root",dropbox_type:"Lo\u1EA1i h\u1ED9p ch\u1EE9a",dropbox_token:"M\xE3 th\xF4ng b\xE1o Dropbox",dropbox_key:"Kh\xF3a Dropbox",dropbox_secret:"Kh\xF3a Dropbox",dropbox_app:"\u1EE8ng d\u1EE5ng Dropbox",dropbox_root:"G\u1ED1c Dropbox",default_driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n m\u1EB7c \u0111\u1ECBnh",is_default:"L\xC0 \u0110\u1ECANH NGH\u0128A",set_default_disk:"\u0110\u1EB7t \u0111\u0129a m\u1EB7c \u0111\u1ECBnh",set_default_disk_confirm:"\u0110\u0129a n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\u1EB7t l\xE0m m\u1EB7c \u0111\u1ECBnh v\xE0 t\u1EA5t c\u1EA3 c\xE1c t\u1EC7p PDF m\u1EDBi s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u tr\xEAn \u0111\u0129a n\xE0y",success_set_default_disk:"\u0110\u0129a \u0111\u01B0\u1EE3c \u0111\u1EB7t l\xE0m m\u1EB7c \u0111\u1ECBnh th\xE0nh c\xF4ng",save_pdf_to_disk:"L\u01B0u PDF v\xE0o \u0111\u0129a",disk_setting_description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y, n\u1EBFu b\u1EA1n mu\u1ED1n l\u01B0u m\u1ED9t b\u1EA3n sao c\u1EE7a m\u1ED7i H\xF3a \u0111\u01A1n, \u01AF\u1EDBc t\xEDnh",select_disk:"Ch\u1ECDn \u0111\u0129a",disk_settings:"C\xE0i \u0111\u1EB7t \u0111\u0129a",confirm_delete:"T\u1EC7p hi\u1EC7n c\xF3 c\u1EE7a b\u1EA1n",action:"Ho\u1EA1t \u0111\u1ED9ng",edit_file_disk:"Ch\u1EC9nh s\u1EEDa \u0110\u0129a T\u1EC7p",success_create:"\u0110\xE3 th\xEAm \u0111\u0129a th\xE0nh c\xF4ng",success_update:"\u0110\xE3 c\u1EADp nh\u1EADt \u0111\u0129a th\xE0nh c\xF4ng",error:"Th\xEAm \u0111\u0129a kh\xF4ng th\xE0nh c\xF4ng",deleted_message:"\u0110\u0129a T\u1EC7p \u0111\xE3 \u0111\u01B0\u1EE3c x\xF3a th\xE0nh c\xF4ng",disk_variables_save_successfully:"\u0110\xE3 c\u1EA5u h\xECnh \u0111\u0129a th\xE0nh c\xF4ng",disk_variables_save_error:"C\u1EA5u h\xECnh \u0111\u0129a kh\xF4ng th\xE0nh c\xF4ng.",invalid_disk_credentials:"Th\xF4ng tin \u0111\u0103ng nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7 c\u1EE7a \u0111\u0129a \u0111\xE3 ch\u1ECDn"}},Oy={account_info:"th\xF4ng tin t\xE0i kho\u1EA3n",account_info_desc:"Th\xF4ng tin chi ti\u1EBFt d\u01B0\u1EDBi \u0111\xE2y s\u1EBD \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 t\u1EA1o t\xE0i kho\u1EA3n Qu\u1EA3n tr\u1ECB vi\xEAn ch\xEDnh. Ngo\xE0i ra, b\u1EA1n c\xF3 th\u1EC3 thay \u0111\u1ED5i th\xF4ng tin chi ti\u1EBFt b\u1EA5t c\u1EE9 l\xFAc n\xE0o sau khi \u0111\u0103ng nh\u1EADp.",name:"T\xEAn",email:"E-mail",password:"M\u1EADt kh\u1EA9u",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u",save_cont:"L\u01B0u",company_info:"Th\xF4ng tin c\xF4ng ty",company_info_desc:"Th\xF4ng tin n\xE0y s\u1EBD \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB tr\xEAn h\xF3a \u0111\u01A1n. L\u01B0u \xFD r\u1EB1ng b\u1EA1n c\xF3 th\u1EC3 ch\u1EC9nh s\u1EEDa \u0111i\u1EC1u n\xE0y sau tr\xEAn trang c\xE0i \u0111\u1EB7t.",company_name:"T\xEAn c\xF4ng ty",company_logo:"Logo c\xF4ng ty",logo_preview:"Xem tr\u01B0\u1EDBc Logo",preferences:"S\u1EDF th\xEDch",preferences_desc:"T\xF9y ch\u1ECDn m\u1EB7c \u0111\u1ECBnh cho h\u1EC7 th\u1ED1ng.",country:"Qu\u1ED1c gia",state:"Ti\u1EC3u bang",city:"Tp.",address:"\u0110\u1ECBa ch\u1EC9",street:"Ph\u1ED11 | Street2",phone:"\u0110i\u1EC7n tho\u1EA1i",zip_code:"M\xE3 B\u01B0u Ch\xEDnh",go_back:"Quay l\u1EA1i",currency:"Ti\u1EC1n t\u1EC7",language:"Ng\xF4n ng\u1EEF",time_zone:"M\xFAi gi\u1EDD",fiscal_year:"N\u0103m t\xE0i ch\xEDnh",date_format:"\u0110\u1ECBnh d\u1EA1ng ng\xE0y th\xE1ng",from_address:"T\u1EEB \u0111\u1ECBa ch\u1EC9",username:"t\xEAn t\xE0i kho\u1EA3n",next:"K\u1EBF ti\u1EBFp",continue:"Ti\u1EBFp t\u1EE5c",skip:"Nh\u1EA3y",database:{database:"URL trang web",connection:"K\u1EBFt n\u1ED1i c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",host:"M\xE1y ch\u1EE7 c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",port:"C\u1ED5ng c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",password:"M\u1EADt kh\u1EA9u c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",app_url:"URL \u1EE9ng d\u1EE5ng",app_domain:"Mi\u1EC1n \u1EE9ng d\u1EE5ng",username:"T\xEAn ng\u01B0\u1EDDi d\xF9ng c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",db_name:"T\xEAn c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",db_path:"\u0110\u01B0\u1EDDng d\u1EABn c\u01A1 s\u1EDF d\u1EEF li\u1EC7u",desc:"T\u1EA1o c\u01A1 s\u1EDF d\u1EEF li\u1EC7u tr\xEAn m\xE1y ch\u1EE7 c\u1EE7a b\u1EA1n v\xE0 \u0111\u1EB7t th\xF4ng tin \u0111\u0103ng nh\u1EADp b\u1EB1ng bi\u1EC3u m\u1EABu b\xEAn d\u01B0\u1EDBi."},permissions:{permissions:"Quy\u1EC1n",permission_confirm_title:"B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n ti\u1EBFp t\u1EE5c kh\xF4ng?",permission_confirm_desc:"Ki\u1EC3m tra quy\u1EC1n th\u01B0 m\u1EE5c kh\xF4ng th\xE0nh c\xF4ng",permission_desc:"D\u01B0\u1EDBi \u0111\xE2y l\xE0 danh s\xE1ch c\xE1c quy\u1EC1n \u0111\u1ED1i v\u1EDBi th\u01B0 m\u1EE5c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u \u0111\u1EC3 \u1EE9ng d\u1EE5ng ho\u1EA1t \u0111\u1ED9ng. N\u1EBFu ki\u1EC3m tra quy\u1EC1n kh\xF4ng th\xE0nh c\xF4ng, h\xE3y \u0111\u1EA3m b\u1EA3o c\u1EADp nh\u1EADt quy\u1EC1n th\u01B0 m\u1EE5c c\u1EE7a b\u1EA1n."},mail:{host:"M\xE1y ch\u1EE7 Th\u01B0",port:"C\u1ED5ng th\u01B0",driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n Th\u01B0",secret:"Kh\xF3a",mailgun_secret:"Kh\xF3a Mailgun",mailgun_domain:"Mi\u1EC1n",mailgun_endpoint:"\u0110i\u1EC3m cu\u1ED1i c\u1EE7a Mailgun",ses_secret:"Kh\xF3a SES",ses_key:"Kh\xF3a SES",password:"M\u1EADt kh\u1EA9u th\u01B0",username:"T\xEAn ng\u01B0\u1EDDi d\xF9ng th\u01B0",mail_config:"C\u1EA5u h\xECnh th\u01B0",from_name:"T\u1EEB t\xEAn th\u01B0",from_mail:"T\u1EEB \u0111\u1ECBa ch\u1EC9 th\u01B0",encryption:"M\xE3 h\xF3a Th\u01B0",mail_config_desc:"D\u01B0\u1EDBi \u0111\xE2y l\xE0 bi\u1EC3u m\u1EABu \u0110\u1ECBnh c\u1EA5u h\xECnh tr\xECnh \u0111i\u1EC1u khi\u1EC3n Email \u0111\u1EC3 g\u1EEDi email t\u1EEB \u1EE9ng d\u1EE5ng. B\u1EA1n c\u0169ng c\xF3 th\u1EC3 \u0111\u1ECBnh c\u1EA5u h\xECnh c\xE1c nh\xE0 cung c\u1EA5p b\xEAn th\u1EE9 ba nh\u01B0 Sendgrid, SES, v.v."},req:{system_req:"y\xEAu c\u1EA7u h\u1EC7 th\u1ED1ng",php_req_version:"Php (version {version} required)",check_req:"Ki\u1EC3m tra y\xEAu c\u1EA7u",system_req_desc:"Crater c\xF3 m\u1ED9t s\u1ED1 y\xEAu c\u1EA7u m\xE1y ch\u1EE7. \u0110\u1EA3m b\u1EA3o r\u1EB1ng m\xE1y ch\u1EE7 c\u1EE7a b\u1EA1n c\xF3 phi\xEAn b\u1EA3n php b\u1EAFt bu\u1ED9c v\xE0 t\u1EA5t c\u1EA3 c\xE1c ph\u1EA7n m\u1EDF r\u1ED9ng \u0111\u01B0\u1EE3c \u0111\u1EC1 c\u1EADp b\xEAn d\u01B0\u1EDBi."},errors:{migrate_failed:"Di chuy\u1EC3n kh\xF4ng th\xE0nh c\xF4ng",database_variables_save_error:"Kh\xF4ng th\u1EC3 ghi c\u1EA5u h\xECnh v\xE0o t\u1EC7p .env. Vui l\xF2ng ki\u1EC3m tra quy\u1EC1n \u0111\u1ED1i v\u1EDBi t\u1EC7p c\u1EE7a n\xF3",mail_variables_save_error:"C\u1EA5u h\xECnh email kh\xF4ng th\xE0nh c\xF4ng.",connection_failed:"K\u1EBFt n\u1ED1i c\u01A1 s\u1EDF d\u1EEF li\u1EC7u kh\xF4ng th\xE0nh c\xF4ng",database_should_be_empty:"C\u01A1 s\u1EDF d\u1EEF li\u1EC7u ph\u1EA3i tr\u1ED1ng"},success:{mail_variables_save_successfully:"Email \u0111\u01B0\u1EE3c \u0111\u1ECBnh c\u1EA5u h\xECnh th\xE0nh c\xF4ng",database_variables_save_successfully:"\u0110\xE3 c\u1EA5u h\xECnh th\xE0nh c\xF4ng c\u01A1 s\u1EDF d\u1EEF li\u1EC7u."}},Ly={invalid_phone:"S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",invalid_url:"Url kh\xF4ng h\u1EE3p l\u1EC7 (v\xED d\u1EE5: http://www.craterapp.com)",invalid_domain_url:"Url kh\xF4ng h\u1EE3p l\u1EC7 (v\xED d\u1EE5: craterapp.com)",required:"L\u0129nh v\u1EF1c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u",email_incorrect:"Email kh\xF4ng ch\xEDnh x\xE1c.",email_already_taken:"L\xE1 th\u01B0 \u0111\xE3 \u0111\u01B0\u1EE3c l\u1EA5y \u0111i.",email_does_not_exist:"Ng\u01B0\u1EDDi d\xF9ng c\xF3 email \u0111\xE3 cho kh\xF4ng t\u1ED3n t\u1EA1i",item_unit_already_taken:"T\xEAn \u0111\u01A1n v\u1ECB m\u1EB7t h\xE0ng n\xE0y \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",payment_mode_already_taken:"T\xEAn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n n\xE0y \u0111\xE3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng",send_reset_link:"G\u1EEDi li\xEAn k\u1EBFt \u0111\u1EB7t l\u1EA1i",not_yet:"Ch\u01B0a? G\u1EEDi l\u1EA1i",password_min_length:"M\u1EADt kh\u1EA9u ph\u1EA3i ch\u1EE9a {count} k\xFD t\u1EF1",name_min_length:"T\xEAn ph\u1EA3i c\xF3 \xEDt nh\u1EA5t {count} ch\u1EEF c\xE1i.",enter_valid_tax_rate:"Nh\u1EADp thu\u1EBF su\u1EA5t h\u1EE3p l\u1EC7",numbers_only:"Ch\u1EC9 s\u1ED1.",characters_only:"Ch\u1EC9 nh\xE2n v\u1EADt.",password_incorrect:"M\u1EADt kh\u1EA9u ph\u1EA3i gi\u1ED1ng h\u1EC7t nhau",password_length:"M\u1EADt kh\u1EA9u ph\u1EA3i d\xE0i {count} k\xFD t\u1EF1.",qty_must_greater_than_zero:"S\u1ED1 l\u01B0\u1EE3ng ph\u1EA3i l\u1EDBn h\u01A1n kh\xF4ng.",price_greater_than_zero:"Gi\xE1 ph\u1EA3i l\u1EDBn h\u01A1n 0.",payment_greater_than_zero:"Kho\u1EA3n thanh to\xE1n ph\u1EA3i l\u1EDBn h\u01A1n 0.",payment_greater_than_due_amount:"Thanh to\xE1n \u0111\xE3 nh\u1EADp nhi\u1EC1u h\u01A1n s\u1ED1 ti\u1EC1n \u0111\u1EBFn h\u1EA1n c\u1EE7a h\xF3a \u0111\u01A1n n\xE0y.",quantity_maxlength:"S\u1ED1 l\u01B0\u1EE3ng kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 20 ch\u1EEF s\u1ED1.",price_maxlength:"Gi\xE1 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 20 ch\u1EEF s\u1ED1.",price_minvalue:"Gi\xE1 ph\u1EA3i l\u1EDBn h\u01A1n 0.",amount_maxlength:"S\u1ED1 ti\u1EC1n kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 20 ch\u1EEF s\u1ED1.",amount_minvalue:"S\u1ED1 ti\u1EC1n ph\u1EA3i l\u1EDBn h\u01A1n 0.",description_maxlength:"M\xF4 t\u1EA3 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 65.000 k\xFD t\u1EF1.",subject_maxlength:"Ch\u1EE7 \u0111\u1EC1 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 100 k\xFD t\u1EF1.",message_maxlength:"Tin nh\u1EAFn kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 255 k\xFD t\u1EF1.",maximum_options_error:"\u0110\xE3 ch\u1ECDn t\u1ED1i \u0111a {max} t\xF9y ch\u1ECDn. \u0110\u1EA7u ti\xEAn, h\xE3y x\xF3a m\u1ED9t t\xF9y ch\u1ECDn \u0111\xE3 ch\u1ECDn \u0111\u1EC3 ch\u1ECDn m\u1ED9t t\xF9y ch\u1ECDn kh\xE1c.",notes_maxlength:"Ghi ch\xFA kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 65.000 k\xFD t\u1EF1.",address_maxlength:"\u0110\u1ECBa ch\u1EC9 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 255 k\xFD t\u1EF1.",ref_number_maxlength:"S\u1ED1 tham chi\u1EBFu kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 255 k\xFD t\u1EF1.",prefix_maxlength:"Ti\u1EC1n t\u1ED1 kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 5 k\xFD t\u1EF1.",something_went_wrong:"c\xF3 g\xEC \u0111\xF3 kh\xF4ng \u1ED5n"},Uy="\u01AF\u1EDBc t\xEDnh",Ky="S\u1ED1 \u01B0\u1EDBc t\xEDnh",qy="Ng\xE0y \u01B0\u1EDBc t\xEDnh",Zy="Ng\xE0y h\u1EBFt h\u1EA1n",Wy="H\xF3a \u0111\u01A1n",Hy="S\u1ED1 h\xF3a \u0111\u01A1n",Gy="Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",Yy="Ng\xE0y \u0111\xE1o h\u1EA1n",Jy="Ghi ch\xFA",Xy="M\u1EB7t h\xE0ng",Qy="\u0110\u1ECBnh l\u01B0\u1EE3ng",eb="Gi\xE1 b\xE1n",tb="Gi\u1EA3m gi\xE1",ab="S\u1ED1 ti\u1EC1n",sb="T\u1ED5ng ph\u1EE5",nb="To\xE0n b\u1ED9",ib="Thanh to\xE1n",ob="H\xD3A \u0110\u01A0N THANH TO\xC1N",rb="Ng\xE0y thanh to\xE1n",db="S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3",lb="Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",cb="S\u1ED1 ti\u1EC1n nh\u1EADn \u0111\u01B0\u1EE3c",_b="B\xC1O C\xC1O CHI PH\xCD",ub="T\u1ED4NG CHI PH\xCD",mb="L\u1EE2I NHU\u1EACN",pb="B\xE1o c\xE1o kh\xE1ch h\xE0ng b\xE1n h\xE0ng",gb="B\xE1o c\xE1o m\u1EB7t h\xE0ng b\xE1n h\xE0ng",fb="B\xE1o c\xE1o T\xF3m t\u1EAFt Thu\u1EBF",hb="THU NH\u1EACP = EARNINGS",vb="L\u1EE2I NHU\u1EACN R\xD2NG",yb="B\xE1o c\xE1o b\xE1n h\xE0ng: Theo kh\xE1ch h\xE0ng",bb="T\u1ED4NG DOANH S\u1ED0 B\xC1N H\xC0NG",kb="B\xE1o c\xE1o b\xE1n h\xE0ng: Theo m\u1EB7t h\xE0ng",wb="B\xC1O C\xC1O THU\u1EBE",xb="T\u1ED4NG THU\u1EBE",zb="C\xE1c lo\u1EA1i thu\u1EBF",Sb="Chi ph\xED",jb="Xu\u1EA5t t\u1EEB,",Pb="Chuy\u1EC3n t\u1EDBi,",Db="Nh\xE2\u0323n t\u1EEB:",Cb="Thu\u1EBF";var Ab={navigation:jy,general:Py,dashboard:Dy,tax_types:Cy,global_search:Ay,customers:Ey,items:Ny,estimates:Ty,invoices:Iy,payments:$y,expenses:Ry,login:Fy,users:My,reports:Vy,settings:By,wizard:Oy,validation:Ly,pdf_estimate_label:Uy,pdf_estimate_number:Ky,pdf_estimate_date:qy,pdf_estimate_expire_date:Zy,pdf_invoice_label:Wy,pdf_invoice_number:Hy,pdf_invoice_date:Gy,pdf_invoice_due_date:Yy,pdf_notes:Jy,pdf_items_label:Xy,pdf_quantity_label:Qy,pdf_price_label:eb,pdf_discount_label:tb,pdf_amount_label:ab,pdf_subtotal:sb,pdf_total:nb,pdf_payment_label:ib,pdf_payment_receipt_label:ob,pdf_payment_date:rb,pdf_payment_number:db,pdf_payment_mode:lb,pdf_payment_amount_received_label:cb,pdf_expense_report_label:_b,pdf_total_expenses_label:ub,pdf_profit_loss_label:mb,pdf_sales_customers_label:pb,pdf_sales_items_label:gb,pdf_tax_summery_label:fb,pdf_income_label:hb,pdf_net_profit_label:vb,pdf_customer_sales_report:yb,pdf_total_sales_label:bb,pdf_item_sales_label:kb,pdf_tax_report_label:wb,pdf_total_tax_label:xb,pdf_tax_types_label:zb,pdf_expenses_label:Sb,pdf_bill_to:jb,pdf_ship_to:Pb,pdf_received_from:Db,pdf_tax_label:Cb},Eb={en:Qn,fr:no,es:cr,ar:gd,de:bl,ja:Sc,pt_BR:W_,it:Xu,sr:sp,nl:dg,ko:pf,lv:yh,sv:zv,sk:Sy,vi:Ab,pl:E_};const Nb={props:{bgColor:{type:String,default:null},color:{type:String,default:null}},setup(s){return(r,i)=>(l(),_("span",{class:"px-2 py-1 text-sm font-normal text-center text-green-800 uppercase bg-success",style:Ce({backgroundColor:s.bgColor,color:s.color})},[F(r.$slots,"default")],4))}};var Tb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nb});const Ib={name:"BaseBreadcrumb"},$b={class:"flex flex-wrap py-4 text-gray-900 rounded list-reset"};function Rb(s,r,i,a,t,n){return l(),_("nav",null,[c("ol",$b,[F(s.$slots,"default")])])}var Fb=ee(Ib,[["render",Rb]]),Mb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fb});const Vb={class:"pr-2 text-sm"},Bb={key:0,class:"px-1"},Ob={props:{title:{type:String,default:String},to:{type:String,default:"#"},active:{type:Boolean,default:!1,required:!1}},setup(s){return(r,i)=>{const a=C("router-link");return l(),_("li",Vb,[u(a,{class:"m-0 mr-2 text-sm font-medium leading-5 text-gray-900 outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-400",to:s.to},{default:g(()=>[K(w(s.title),1)]),_:1},8,["to"]),s.active?S("",!0):(l(),_("span",Bb,"/"))])}}};var Lb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ob});const Ub={},Kb={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},qb=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Zb=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Wb=[qb,Zb];function Hb(s,r){return l(),_("svg",Kb,Wb)}var Gb=ee(Ub,[["render",Hb]]);const Yb={props:{contentLoading:{type:Boolean,default:!1},defaultClass:{type:String,default:"inline-flex whitespace-nowrap items-center border font-medium focus:outline-none focus:ring-2 focus:ring-offset-2"},tag:{type:String,default:"button"},disabled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,default:"md",validator:function(s){return["xs","sm","md","lg","xl"].indexOf(s)!==-1}},variant:{type:String,default:"primary",validator:function(s){return["primary","secondary","primary-outline","white","danger","gray"].indexOf(s)!==-1}}},setup(s){const r=s,i=D(()=>({"px-2.5 py-1.5 text-xs leading-4 rounded":r.size==="xs","px-3 py-2 text-sm leading-4 rounded-md":r.size=="sm","px-4 py-2 text-sm leading-5 rounded-md":r.size==="md","px-4 py-2 text-base leading-6 rounded-md":r.size==="lg","px-6 py-3 text-base leading-6 rounded-md":r.size==="xl"})),a=D(()=>{switch(r.size){case"xs":return"32";case"sm":return"38";case"md":return"42";case"lg":return"42";case"xl":return"46";default:return""}}),t=D(()=>({"border-transparent shadow-sm text-white bg-primary-600 hover:bg-primary-700 focus:ring-primary-500":r.variant==="primary","border-transparent text-primary-700 bg-primary-100 hover:bg-primary-200 focus:ring-primary-500":r.variant==="secondary","border-transparent  border-solid border-primary-500 font-normal transition ease-in-out duration-150 text-primary-500 hover:bg-primary-200 shadow-inner focus:ring-primary-500":r.variant=="primary-outline","border-gray-200 text-gray-700 bg-white hover:bg-gray-50 focus:ring-primary-500 focus:ring-offset-0":r.variant=="white","border-transparent shadow-sm text-white bg-red-600 hover:bg-red-700 focus:ring-red-500":r.variant==="danger","border-transparent bg-gray-200 border hover:bg-opacity-60 focus:ring-gray-500 focus:ring-offset-0":r.variant==="gray"})),n=D(()=>r.rounded?"!rounded-full":""),e=D(()=>({"-ml-0.5 mr-2 h-4 w-4":r.size=="sm","-ml-1 mr-2 h-5 w-5":r.size==="md","-ml-1 mr-3 h-5 w-5":r.size==="lg"||r.size==="xl"})),o=D(()=>({"text-white":r.variant==="primary","text-primary-700":r.variant==="secondary","text-gray-700":r.variant==="white","text-gray-400":r.variant==="gray"})),m=D(()=>({"ml-2 -mr-0.5 h-4 w-4":r.size=="sm","ml-2 -mr-1 h-5 w-5":r.size==="md","ml-3 -mr-1 h-5 w-5":r.size==="lg"||r.size==="xl"}));return(p,k)=>{const x=C("BaseContentPlaceholdersBox"),b=C("BaseContentPlaceholders"),h=C("BaseCustomTag");return s.contentLoading?(l(),T(b,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:g(()=>[u(x,{rounded:!0,style:Ce([{width:"96px"},`height: ${d(a)}px;`])},null,8,["style"])]),_:1})):(l(),T(h,{key:1,tag:s.tag,disabled:s.disabled,class:A([s.defaultClass,d(i),d(t),d(n)])},{default:g(()=>[s.loading?(l(),T(Gb,{key:0,class:A([d(e),d(o)])},null,8,["class"])):F(p.$slots,"left",{key:1,class:A(d(e))}),F(p.$slots,"default"),F(p.$slots,"right",{class:A([d(m),d(o)])})]),_:3},8,["tag","disabled","class"]))}}};var Jb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Yb});const Xb={class:"bg-white rounded-lg shadow"},Qb={key:0,class:"px-5 py-4 text-black border-b border-gray-100 border-solid"},ek={key:1,class:"px-5 py-4 border-t border-gray-100 border-solid sm:px-6"},tk={props:{containerClass:{type:String,default:"px-4 py-5 sm:px-8 sm:py-8"}},setup(s){const r=pe(),i=D(()=>!!r.header),a=D(()=>!!r.footer);return(t,n)=>(l(),_("div",Xb,[d(i)?(l(),_("div",Qb,[F(t.$slots,"header")])):S("",!0),c("div",{class:A(s.containerClass)},[F(t.$slots,"default")],2),d(a)?(l(),_("div",ek,[F(t.$slots,"footer")])):S("",!0)]))}};var ak=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tk});const sk={class:"relative flex items-start"},nk={class:"flex items-center h-5"},ik=["id","disabled"],ok={class:"ml-3 text-sm"},rk=["for"],dk={props:{label:{type:String,default:""},modelValue:{type:[Boolean,Array],default:!1},id:{type:[Number,String],default:()=>`check_${Math.random().toString(36).substr(2,9)}`},disabled:{type:Boolean,default:!1},checkboxClass:{type:String,default:"w-4 h-4 border-gray-300 rounded cursor-pointer"},setInitialValue:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{emit:r}){const i=s;i.setInitialValue&&r("update:modelValue",i.modelValue);const a=D({get:()=>i.modelValue,set:n=>{r("update:modelValue",n),r("change",n)}}),t=D(()=>i.disabled?"text-gray-300 cursor-not-allowed":"text-primary-600 focus:ring-primary-500");return(n,e)=>(l(),_("div",sk,[c("div",nk,[xe(c("input",le({id:s.id,"onUpdate:modelValue":e[0]||(e[0]=o=>J(a)?a.value=o:null)},n.$attrs,{disabled:s.disabled,type:"checkbox",class:[s.checkboxClass,d(t)]}),null,16,ik),[[Bt,d(a)]])]),c("div",ok,[s.label?(l(),_("label",{key:0,for:s.id,class:A(`font-medium ${s.disabled?"text-gray-400 cursor-not-allowed":"text-gray-600"} cursor-pointer `)},w(s.label),11,rk)):S("",!0)])]))}};var lk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:dk});const ck={props:{rounded:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},animated:{type:Boolean,default:!0}},setup(s){const r=s,i=D(()=>({"base-content-placeholders":!0,"base-content-placeholders-is-rounded":r.rounded,"base-content-placeholders-is-centered":r.centered,"base-content-placeholders-is-animated":r.animated}));return(a,t)=>(l(),_("div",{class:A(d(i))},[F(a.$slots,"default")],2))}};var _k=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ck});const uk={props:{circle:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(s){const r=s,i=D(()=>({"base-content-circle":r.circle,"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",{class:A(["base-content-placeholders-box",d(i)])},null,2))}};var mk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:uk});const pk={class:"base-content-placeholders-heading"},gk={key:0,class:"base-content-placeholders-heading__box"},fk=c("div",{class:"base-content-placeholders-heading__content"},[c("div",{class:"base-content-placeholders-heading__title",style:{background:"#eee"}}),c("div",{class:"base-content-placeholders-heading__subtitle"})],-1),hk={props:{box:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(s){return(r,i)=>(l(),_("div",pk,[s.box?(l(),_("div",gk)):S("",!0),fk]))}};var vk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:hk});const yk={class:"base-content-placeholders-text"},bk={props:{lines:{type:Number,default:4},rounded:{type:Boolean,default:!1}},setup(s){const r=s,i=D(()=>({"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",yk,[(l(!0),_(Q,null,ae(s.lines,n=>(l(),_("div",{key:n,class:A([d(i),"w-full h-full base-content-placeholders-text__line"])},null,2))),128))]))}};var kk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bk}),xt={id:null,label:null,type:null,name:null,default_answer:null,is_required:!1,placeholder:null,model_type:null,order:1,options:[]},wk=s=>Qe({locale:"en",fallbackLocale:"en",messages:s});const{global:ne}=wk;var Ze={isImageFile(s){return["image/gif","image/jpeg","image/png"].includes(s)},addClass(s,r){s.classList?s.classList.add(r):s.className+=" "+r},hasClass(s,r){return s.classList?s.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(s.className)},formatMoney(s,r=0){r||(r={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),s=s/100;let{precision:i,decimal_separator:a,thousand_separator:t,symbol:n,swap_currency_symbol:e}=r;try{i=Math.abs(i),i=isNaN(i)?2:i;const o=s<0?"-":"";let m=parseInt(s=Math.abs(Number(s)||0).toFixed(i)).toString(),p=m.length>3?m.length%3:0,k=`${n}`,x=p?m.substr(0,p)+t:"",b=m.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+t),h=i?a+Math.abs(s-m).toFixed(i).slice(2):"",E=o+x+b+h;return e?E+" "+k:k+" "+E}catch(o){console.error(o)}},mergeSettings(s,r){Object.keys(r).forEach(function(i){i in s&&(s[i]=r[i])})},checkValidUrl(s){return s.includes("http://localhost")||s.includes("http://127.0.0.1")||s.includes("https://localhost")||s.includes("https://127.0.0.1")?!0:!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(s)},checkValidDomainUrl(s){return s.includes("localhost")||s.includes("127.0.0.1")?!0:!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(s)},fallbackCopyTextToClipboard(s){var r=document.createElement("textarea");r.value=s,r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{var i=document.execCommand("copy"),a=i?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+a)}catch(t){console.error("Fallback: Oops, unable to copy",t)}document.body.removeChild(r)},copyTextToClipboard(s){if(!navigator.clipboard){this.fallbackCopyTextToClipboard(s);return}navigator.clipboard.writeText(s).then(function(){return!0},function(r){return!1})},arrayDifference(s,r){return s==null?void 0:s.filter(i=>(r==null?void 0:r.indexOf(i))<0)},getBadgeStatusColor(s){switch(s){case"DRAFT":return{bgColor:"#F8EDCB",color:"#744210"};case"PAID":return{bgColor:"#D5EED0",color:"#276749"};case"UNPAID":return{bgColor:"#F8EDC",color:"#744210"};case"SENT":return{bgColor:"rgba(246, 208, 154, 0.4)",color:"#975a16"};case"REJECTED":return{bgColor:"#E1E0EA",color:"#1A1841"};case"ACCEPTED":return{bgColor:"#D5EED0",color:"#276749"};case"VIEWED":return{bgColor:"#C9E3EC",color:"#2c5282"};case"EXPIRED":return{bgColor:"#FED7D7",color:"#c53030"};case"PARTIALLY PAID":return{bgColor:"#C9E3EC",color:"#2c5282"};case"OVERDUE":return{bgColor:"#FED7D7",color:"#c53030"};case"COMPLETED":return{bgColor:"#D5EED0",color:"#276749"};case"DUE":return{bgColor:"#F8EDCB",color:"#744210"};case"YES":return{bgColor:"#D5EED0",color:"#276749"};case"NO":return{bgColor:"#FED7D7",color:"#c53030"}}},getStatusTranslation(s){switch(s){case"DRAFT":return ne.t("general.draft");case"PAID":return ne.t("invoices.paid");case"UNPAID":return ne.t("invoices.unpaid");case"SENT":return ne.t("general.sent");case"REJECTED":return ne.t("estimates.rejected");case"ACCEPTED":return ne.t("estimates.accepted");case"VIEWED":return ne.t("invoices.viewed");case"EXPIRED":return ne.t("estimates.expired");case"PARTIALLY PAID":return ne.t("estimates.partially_paid");case"OVERDUE":return ne.t("invoices.overdue");case"COMPLETED":return ne.t("invoices.completed");case"DUE":return ne.t("general.due");default:return s}},toFormData(s){const r=new FormData;return Object.keys(s).forEach(i=>{Ot.exports.isArray(s[i])?r.append(i,JSON.stringify(s[i])):(s[i]===null&&(s[i]=""),r.append(i,s[i]))}),r}};const xk=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"custom-field",state:()=>({customFields:[],isRequestOngoing:!1,currentCustomField:R({},xt)}),getters:{isEdit(){return!!this.currentCustomField.id}},actions:{resetCustomFields(){this.customFields=[]},resetCurrentCustomField(){this.currentCustomField=R({},xt)},fetchCustomFields(a){return new Promise((t,n)=>{f.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchNoteCustomFields(a){return new Promise((t,n)=>{if(this.isRequestOngoing)return t({requestOnGoing:!0}),!0;this.isRequestOngoing=!0,f.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,this.isRequestOngoing=!1,t(e)}).catch(e=>{this.isRequestOngoing=!1,v(e),n(e)})})},fetchCustomField(a){return new Promise((t,n)=>{f.get(`/api/v1/custom-fields/${a}`).then(e=>{this.currentCustomField=e.data.data,this.currentCustomField.options&&this.currentCustomField.options.length&&(this.currentCustomField.options=this.currentCustomField.options.map(o=>o={name:o})),t(e)}).catch(e=>{v(e),n(e)})})},addCustomField(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/custom-fields",a).then(o=>{let m=R({},o.data.data);m.options&&(m.options=m.options.map(p=>({name:p||""}))),this.customFields.push(m),t.showNotification({type:"success",message:i.t("settings.custom_fields.added_message")}),n(o)}).catch(o=>{v(o),e(o)})})},updateCustomField(a){const t=M();return new Promise((n,e)=>{f.put(`/api/v1/custom-fields/${a.id}`,a).then(o=>{let m=R({},o.data.data);m.options&&(m.options=m.options.map(k=>({name:k||""})));let p=this.customFields.findIndex(k=>k.id===m.id);this.customFields[p]&&(this.customFields[p]=m),t.showNotification({type:"success",message:i.t("settings.custom_fields.updated_message")}),n(o)}).catch(o=>{v(o),e(o)})})},deleteCustomFields(a){const t=M();return new Promise((n,e)=>{f.delete(`/api/v1/custom-fields/${a}`).then(o=>{let m=this.customFields.findIndex(p=>p.id===a);this.customFields.splice(m,1),o.data.error?t.showNotification({type:"error",message:i.t("settings.custom_fields.already_in_use")}):t.showNotification({type:"success",message:i.t("settings.custom_fields.deleted_message")}),n(o)}).catch(o=>{v(o),e(o)})})}}})()},zk={key:1,class:"relative"},Sk={class:"absolute bottom-0 right-0 z-10"},jk={class:"flex p-2"},Pk={class:"mb-1 ml-2 text-xs font-semibold text-gray-500 uppercase"},Dk=["onClick"],Ck={class:"flex pl-1"},Ak={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:String,default:""},fields:{type:Array,default:null}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=xk();let t=q([]),n=q([]),e=q([]),o=q([]),m=q([]);ge(()=>i.fields,b=>{i.fields&&i.fields.length>0&&x()}),ge(()=>a.customFields,b=>{n.value=b?b.filter(h=>h.model_type==="Invoice"):[],m.value=b?b.filter(h=>h.model_type==="Customer"):[],o.value=b?b.filter(h=>h.model_type==="Payment"):[],e.value=b.filter(h=>h.model_type==="Estimate"),x()}),ze(()=>{k()});const p=D({get:()=>i.modelValue,set:b=>{r("update:modelValue",b)}});async function k(){await a.fetchCustomFields()}async function x(){t.value=[],i.fields&&i.fields.length>0&&(i.fields.find(b=>b=="shipping")&&t.value.push({label:"Shipping Address",fields:[{label:"Address name",value:"SHIPPING_ADDRESS_NAME"},{label:"Country",value:"SHIPPING_COUNTRY"},{label:"State",value:"SHIPPING_STATE"},{label:"City",value:"SHIPPING_CITY"},{label:"Address Street 1",value:"SHIPPING_ADDRESS_STREET_1"},{label:"Address Street 2",value:"SHIPPING_ADDRESS_STREET_2"},{label:"Phone",value:"SHIPPING_PHONE"},{label:"Zip Code",value:"SHIPPING_ZIP_CODE"}]}),i.fields.find(b=>b=="billing")&&t.value.push({label:"Billing Address",fields:[{label:"Address name",value:"BILLING_ADDRESS_NAME"},{label:"Country",value:"BILLING_COUNTRY"},{label:"State",value:"BILLING_STATE"},{label:"City",value:"BILLING_CITY"},{label:"Address Street 1",value:"BILLING_ADDRESS_STREET_1"},{label:"Address Street 2",value:"BILLING_ADDRESS_STREET_2"},{label:"Phone",value:"BILLING_PHONE"},{label:"Zip Code",value:"BILLING_ZIP_CODE"}]}),i.fields.find(b=>b=="customer")&&t.value.push({label:"Customer",fields:[{label:"Display Name",value:"CONTACT_DISPLAY_NAME"},{label:"Contact Name",value:"PRIMARY_CONTACT_NAME"},{label:"Email",value:"CONTACT_EMAIL"},{label:"Phone",value:"CONTACT_PHONE"},{label:"Website",value:"CONTACT_WEBSITE"},...m.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="invoice")&&t.value.push({label:"Invoice",fields:[{label:"Date",value:"INVOICE_DATE"},{label:"Due Date",value:"INVOICE_DUE_DATE"},{label:"Number",value:"INVOICE_NUMBER"},{label:"Ref Number",value:"INVOICE_REF_NUMBER"},{label:"Invoice Link",value:"INVOICE_LINK"},...n.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="estimate")&&t.value.push({label:"Estimate",fields:[{label:"Date",value:"ESTIMATE_DATE"},{label:"Expiry Date",value:"ESTIMATE_EXPIRY_DATE"},{label:"Number",value:"ESTIMATE_NUMBER"},{label:"Ref Number",value:"ESTIMATE_REF_NUMBER"},{label:"Estimate Link",value:"ESTIMATE_LINK"},...e.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="payment")&&t.value.push({label:"Payment",fields:[{label:"Date",value:"PAYMENT_DATE"},{label:"Number",value:"PAYMENT_NUMBER"},{label:"Mode",value:"PAYMENT_MODE"},{label:"Amount",value:"PAYMENT_AMOUNT"},{label:"Payment Link",value:"PAYMENT_LINK"},...o.value.map(b=>({label:b.label,value:b.slug}))]}),i.fields.find(b=>b=="company")&&t.value.push({label:"Company",fields:[{label:"Company Name",value:"COMPANY_NAME"},{label:"Country",value:"COMPANY_COUNTRY"},{label:"State",value:"COMPANY_STATE"},{label:"City",value:"COMPANY_CITY"},{label:"Address Street 1",value:"COMPANY_ADDRESS_STREET_1"},{label:"Address Street 2",value:"COMPANY_ADDRESS_STREET_2"},{label:"Phone",value:"COMPANY_PHONE"},{label:"Zip Code",value:"COMPANY_ZIP_CODE"}]}))}return x(),(b,h)=>{const E=C("BaseContentPlaceholdersBox"),$=C("BaseContentPlaceholders"),I=C("BaseIcon"),z=C("BaseButton"),V=C("BaseDropdown"),L=C("BaseEditor");return s.contentLoading?(l(),T($,{key:0},{default:g(()=>[u(E,{rounded:!0,class:"w-full",style:{height:"200px"}})]),_:1})):(l(),_("div",zk,[c("div",Sk,[u(V,{"close-on-select":!0,"max-height":"220",position:"top-end","width-class":"w-92",class:"mb-2"},{activator:g(()=>[u(z,{type:"button",variant:"primary-outline",class:"mr-4"},{left:g(G=>[u(I,{name:"PlusSmIcon",class:A(G.class)},null,8,["class"])]),default:g(()=>[K(w(b.$t("settings.customization.insert_fields"))+" ",1)]),_:1})]),default:g(()=>[c("div",jk,[(l(!0),_(Q,null,ae(d(t),(G,me)=>(l(),_("ul",{key:me,class:"list-none"},[c("li",Pk,w(G.label),1),(l(!0),_(Q,null,ae(G.fields,(Z,N)=>(l(),_("li",{key:N,class:"w-48 text-sm font-normal cursor-pointer hover:bg-gray-100 rounded ml-1 py-0.5",onClick:y=>p.value+=`{${Z.value}}`},[c("div",Ck,[u(I,{name:"ChevronDoubleRightIcon",class:"h-3 mt-1 mr-2 text-gray-400"}),K(" "+w(Z.label),1)])],8,Dk))),128))]))),128))])]),_:1})]),u(L,{modelValue:d(p),"onUpdate:modelValue":h[0]||(h[0]=G=>J(p)?p.value=G:null)},null,8,["modelValue"])]))}}};var Ek=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ak});const Nk={props:{tag:{type:String,default:"button"}},setup(s,{slots:r,attrs:i,emit:a}){return()=>Lt(`${s.tag}`,i,r)}};var Tk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nk});const Ik={key:0,class:"text-sm font-bold leading-5 text-black non-italic space-y-1"},$k={key:0},Rk={key:1},Fk={key:2},Mk={key:3},Vk={key:4},Bk={key:5},Ok={props:{address:{type:Object,required:!0}},setup(s){return(r,i)=>{var a,t,n,e,o,m,p,k,x,b,h,E,$,I;return s.address?(l(),_("div",Ik,[((a=s.address)==null?void 0:a.address_street_1)?(l(),_("p",$k,w((t=s.address)==null?void 0:t.address_street_1)+",",1)):S("",!0),((n=s.address)==null?void 0:n.address_street_2)?(l(),_("p",Rk,w((e=s.address)==null?void 0:e.address_street_2)+",",1)):S("",!0),((o=s.address)==null?void 0:o.city)?(l(),_("p",Fk,w((m=s.address)==null?void 0:m.city)+",",1)):S("",!0),((p=s.address)==null?void 0:p.state)?(l(),_("p",Mk,w((k=s.address)==null?void 0:k.state)+",",1)):S("",!0),((b=(x=s.address)==null?void 0:x.country)==null?void 0:b.name)?(l(),_("p",Vk,w((E=(h=s.address)==null?void 0:h.country)==null?void 0:E.name)+",",1)):S("",!0),(($=s.address)==null?void 0:$.zip)?(l(),_("p",Bk,w((I=s.address)==null?void 0:I.zip)+".",1)):S("",!0)])):S("",!0)}}};var Lk=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ok}),Re={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null};function zt(){return{name:"",contact_name:"",email:"",phone:null,password:"",confirm_password:"",currency_id:null,website:null,billing:R({},Re),shipping:R({},Re),customFields:[],fields:[],enable_portal:!1}}const be=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"customer",state:()=>({customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{},isFetchingInitialSettings:!1,isFetchingViewData:!1,currentCustomer:R({},zt())}),getters:{isEdit:a=>!!a.currentCustomer.id},actions:{resetCurrentCustomer(){this.currentCustomer=R({},zt())},copyAddress(){this.currentCustomer.shipping=W(R({},this.currentCustomer.billing),{type:"shipping"})},fetchCustomerInitialSettings(a){const t=fe(),n=Ie(),e=_e();this.isFetchingInitialSettings=!0;let o=[];a?o=[this.fetchCustomer(t.params.id)]:this.currentCustomer.currency_id=e.selectedCompanyCurrency.id,Promise.all([n.fetchCurrencies(),n.fetchCountries(),...o]).then(async([m,p,k])=>{this.isFetchingInitialSettings=!1}).catch(m=>{v(m)})},fetchCustomers(a){return new Promise((t,n)=>{f.get("/api/v1/customers",{params:a}).then(e=>{this.customers=e.data.data,this.totalCustomers=e.data.meta.customer_total_count,t(e)}).catch(e=>{v(e),n(e)})})},fetchViewCustomer(a){return new Promise((t,n)=>{this.isFetchingViewData=!0,f.get(`/api/v1/customers/${a.id}/stats`,{params:a}).then(e=>{this.selectedViewCustomer={},Object.assign(this.selectedViewCustomer,e.data.data),this.setAddressStub(e.data.data),this.isFetchingViewData=!1,t(e)}).catch(e=>{this.isFetchingViewData=!1,v(e),n(e)})})},fetchCustomer(a){return new Promise((t,n)=>{f.get(`/api/v1/customers/${a}`).then(e=>{Object.assign(this.currentCustomer,e.data.data),this.setAddressStub(e.data.data),t(e)}).catch(e=>{v(e),n(e)})})},addCustomer(a){return new Promise((t,n)=>{f.post("/api/v1/customers",a).then(e=>{this.customers.push(e.data.data),M().showNotification({type:"success",message:i.t("customers.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},updateCustomer(a){return new Promise((t,n)=>{f.put(`/api/v1/customers/${a.id}`,a).then(e=>{if(e.data){let o=this.customers.findIndex(p=>p.id===e.data.data.id);this.customers[o]=a,M().showNotification({type:"success",message:i.t("customers.updated_message")})}t(e)}).catch(e=>{v(e),n(e)})})},deleteCustomer(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/customers/delete",a).then(o=>{let m=this.customers.findIndex(p=>p.id===a);this.customers.splice(m,1),t.showNotification({type:"success",message:i.tc("customers.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleCustomers(){const a=M();return new Promise((t,n)=>{f.post("/api/v1/customers/delete",{ids:this.selectedCustomers}).then(e=>{this.selectedCustomers.forEach(o=>{let m=this.customers.findIndex(p=>p.id===o.id);this.customers.splice(m,1)}),a.showNotification({type:"success",message:i.tc("customers.deleted_message",2)}),t(e)}).catch(e=>{v(e),n(e)})})},setSelectAllState(a){this.selectAllField=a},selectCustomer(a){this.selectedCustomers=a,this.selectedCustomers.length===this.customers.length?this.selectAllField=!0:this.selectAllField=!1},selectAllCustomers(){if(this.selectedCustomers.length===this.customers.length)this.selectedCustomers=[],this.selectAllField=!1;else{let a=this.customers.map(t=>t.id);this.selectedCustomers=a,this.selectAllField=!0}},setAddressStub(a){a.billing||(this.currentCustomer.billing=R({},Re)),a.shipping||(this.currentCustomer.shipping=R({},Re))}}})()},Pe=(s=!1)=>(s?window.pinia.defineStore:X)({id:"modal",state:()=>({active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""}),getters:{isEdit(){return!!this.id}},actions:{openModal(i){this.componentName=i.componentName,this.active=!0,i.id&&(this.id=i.id),this.title=i.title,i.content&&(this.content=i.content),i.data&&(this.data=i.data),i.refreshData&&(this.refreshData=i.refreshData),i.variant&&(this.variant=i.variant),i.size&&(this.size=i.size)},resetModalData(){this.content="",this.title="",this.componentName="",this.id="",this.data=null,this.refreshData=null},closeModal(){this.active=!1,setTimeout(()=>{this.resetModalData()},300)}}})(),Fe=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"item",state:()=>({items:[],totalItems:0,selectAllField:!1,selectedItems:[],itemUnits:[],currentItemUnit:{id:null,name:""},currentItem:{name:"",description:"",price:0,unit_id:"",unit:null,taxes:[],tax_per_item:!1}}),getters:{isItemUnitEdit:a=>!!a.currentItemUnit.id},actions:{resetCurrentItem(){this.currentItem={name:"",description:"",price:0,unit_id:"",unit:null,taxes:[]}},fetchItems(a){return new Promise((t,n)=>{f.get("/api/v1/items",{params:a}).then(e=>{this.items=e.data.data,this.totalItems=e.data.meta.item_total_count,t(e)}).catch(e=>{v(e),n(e)})})},fetchItem(a){return new Promise((t,n)=>{f.get(`/api/v1/items/${a}`).then(e=>{e.data&&Object.assign(this.currentItem,e.data.data),t(e)}).catch(e=>{v(e),n(e)})})},addItem(a){return new Promise((t,n)=>{f.post("/api/v1/items",a).then(e=>{const o=M();this.items.push(e.data.data),o.showNotification({type:"success",message:i.t("items.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},updateItem(a){return new Promise((t,n)=>{f.put(`/api/v1/items/${a.id}`,a).then(e=>{if(e.data){const o=M();let m=this.items.findIndex(p=>p.id===e.data.data.id);this.items[m]=a.item,o.showNotification({type:"success",message:i.t("items.updated_message")})}t(e)}).catch(e=>{v(e),n(e)})})},deleteItem(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/items/delete",a).then(o=>{let m=this.items.findIndex(p=>p.id===a);this.items.splice(m,1),t.showNotification({type:"success",message:i.tc("items.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleItems(){const a=M();return new Promise((t,n)=>{f.post("/api/v1/items/delete",{ids:this.selectedItems}).then(e=>{this.selectedItems.forEach(o=>{let m=this.items.findIndex(p=>p.id===o.id);this.items.splice(m,1)}),a.showNotification({type:"success",message:i.tc("items.deleted_message",2)}),t(e)}).catch(e=>{v(e),n(e)})})},selectItem(a){this.selectedItems=a,this.selectedItems.length===this.items.length?this.selectAllField=!0:this.selectAllField=!1},selectAllItems(a){if(this.selectedItems.length===this.items.length)this.selectedItems=[],this.selectAllField=!1;else{let t=this.items.map(n=>n.id);this.selectedItems=t,this.selectAllField=!0}},addItemUnit(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/units",a).then(o=>{this.itemUnits.push(o.data.data),o.data.data&&t.showNotification({type:"success",message:i.t("settings.customization.items.item_unit_added")}),o.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),n(o)}).catch(o=>{v(o),e(o)})})},updateItemUnit(a){const t=M();return new Promise((n,e)=>{f.put(`/api/v1/units/${a.id}`,a).then(o=>{let m=this.itemUnits.findIndex(p=>p.id===o.data.data.id);this.itemUnits[m]=a,o.data.data&&t.showNotification({type:"success",message:i.t("settings.customization.items.item_unit_updated")}),o.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),n(o)}).catch(o=>{v(o),e(o)})})},fetchItemUnits(a){return new Promise((t,n)=>{f.get("/api/v1/units",{params:a}).then(e=>{this.itemUnits=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchItemUnit(a){return new Promise((t,n)=>{f.get(`/api/v1/units/${a}`).then(e=>{this.currentItemUnit=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},deleteItemUnit(a){const t=M();return new Promise((n,e)=>{f.delete(`/api/v1/units/${a}`).then(o=>{if(!o.data.error){let m=this.itemUnits.findIndex(p=>p.id===a);this.itemUnits.splice(m,1)}o.data.success&&t.showNotification({type:"success",message:i.t("settings.customization.items.deleted_message")}),n(o)}).catch(o=>{v(o),e(o)})})}}})()},ke=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"taxType",state:()=>({taxTypes:[],currentTaxType:{id:null,name:"",percent:0,description:"",compound_tax:!1,collective_tax:0}}),getters:{isEdit:a=>!!a.currentTaxType.id},actions:{resetCurrentTaxType(){this.currentTaxType={id:null,name:"",percent:0,description:"",compound_tax:!1,collective_tax:0}},fetchTaxTypes(a){return new Promise((t,n)=>{f.get("/api/v1/tax-types",{params:a}).then(e=>{this.taxTypes=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},fetchTaxType(a){return new Promise((t,n)=>{f.get(`/api/v1/tax-types/${a}`).then(e=>{this.currentTaxType=e.data.data,t(e)}).catch(e=>{v(e),n(e)})})},addTaxType(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/tax-types",a).then(o=>{this.taxTypes.push(o.data.data),t.showNotification({type:"success",message:i.t("settings.tax_types.created_message")}),n(o)}).catch(o=>{v(o),e(o)})})},updateTaxType(a){const t=M();return new Promise((n,e)=>{f.put(`/api/v1/tax-types/${a.id}`,a).then(o=>{if(o.data){let m=this.taxTypes.findIndex(p=>p.id===o.data.data.id);this.taxTypes[m]=a.taxTypes,t.showNotification({type:"success",message:i.t("settings.tax_types.updated_message")})}n(o)}).catch(o=>{v(o),e(o)})})},fetchSalesTax(a){return new Promise((t,n)=>{f.post("/api/m/sales-tax-us/current-tax",a).then(e=>{if(e.data){let o=this.taxTypes.findIndex(m=>m.name==="SalesTaxUs");o>-1&&this.taxTypes.splice(o,1),this.taxTypes.push(W(R({},e.data.data),{tax_type_id:e.data.data.id}))}t(e)}).catch(e=>{v(e),n(e)})})},deleteTaxType(a){return new Promise((t,n)=>{f.delete(`/api/v1/tax-types/${a}`).then(e=>{if(e.data.success){let o=this.taxTypes.findIndex(p=>p.id===a);this.taxTypes.splice(o,1),M().showNotification({type:"success",message:i.t("settings.tax_types.deleted_message")})}t(e)}).catch(e=>{v(e),n(e)})})}}})()};var We={estimate_id:null,item_id:null,name:"",title:"",description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,sub_total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]},ie={name:"",tax_type_id:0,type:"GENERAL",amount:null,percent:null,compound_tax:!1};function St(){return{id:null,customer:null,template_name:"",tax_per_item:null,sales_tax_type:null,sales_tax_address_type:null,discount_per_item:null,estimate_date:"",expiry_date:"",estimate_number:"",customer_id:null,sub_total:0,total:0,tax:0,notes:"",discount_type:"fixed",discount_val:0,reference_number:null,discount:0,items:[W(R({},We),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})],taxes:[],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const He=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"estimate",state:()=>({templates:[],estimates:[],selectAllField:!1,selectedEstimates:[],totalEstimateCount:0,isFetchingInitialSettings:!1,showExchangeRate:!1,newEstimate:R({},St())}),getters:{getSubTotal(){return this.newEstimate.items.reduce(function(a,t){return a+t.total},0)},getTotalSimpleTax(){return oe.sumBy(this.newEstimate.taxes,function(a){return a.compound_tax?0:a.amount})},getTotalCompoundTax(){return oe.sumBy(this.newEstimate.taxes,function(a){return a.compound_tax?a.amount:0})},getTotalTax(){return this.newEstimate.tax_per_item==="NO"||this.newEstimate.tax_per_item===null?this.getTotalSimpleTax+this.getTotalCompoundTax:oe.sumBy(this.newEstimate.items,function(a){return a.tax})},getSubtotalWithDiscount(){return this.getSubTotal-this.newEstimate.discount_val},getTotal(){return this.getSubtotalWithDiscount+this.getTotalTax},isEdit:a=>!!a.newEstimate.id},actions:{resetCurrentEstimate(){this.newEstimate=R({},St())},previewEstimate(a){return new Promise((t,n)=>{f.get(`/api/v1/estimates/${a.id}/send/preview`,{params:a}).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},fetchEstimates(a){return new Promise((t,n)=>{f.get("/api/v1/estimates",{params:a}).then(e=>{this.estimates=e.data.data,this.totalEstimateCount=e.data.meta.estimate_total_count,t(e)}).catch(e=>{v(e),n(e)})})},getNextNumber(a,t=!1){return new Promise((n,e)=>{f.get("/api/v1/next-number?key=estimate",{params:a}).then(o=>{t&&(this.newEstimate.estimate_number=o.data.nextNumber),n(o)}).catch(o=>{v(o),e(o)})})},fetchEstimate(a){return new Promise((t,n)=>{f.get(`/api/v1/estimates/${a}`).then(e=>{Object.assign(this.newEstimate,e.data.data),t(e)}).catch(e=>{console.log(e),v(e),n(e)})})},addSalesTaxUs(){const a=ke();let t=R({},ie),n=this.newEstimate.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(n){for(const e in n)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=n[e]);t.id=n.tax_type_id,console.log(t,"salesTax"),a.taxTypes.push(t),console.log(a.taxTypes)}},sendEstimate(a){const t=M();return new Promise((n,e)=>{f.post(`/api/v1/estimates/${a.id}/send`,a).then(o=>{a.is_preview||t.showNotification({type:"success",message:i.t("estimates.send_estimate_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},addEstimate(a){return new Promise((t,n)=>{f.post("/api/v1/estimates",a).then(e=>{this.estimates=[...this.estimates,e.data.estimate],M().showNotification({type:"success",message:i.t("estimates.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},deleteEstimate(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/estimates/delete",a).then(o=>{let m=this.estimates.findIndex(p=>p.id===a);this.estimates.splice(m,1),t.showNotification({type:"success",message:i.t("estimates.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleEstimates(a){const t=M();return new Promise((n,e)=>{f.post("/api/v1/estimates/delete",{ids:this.selectedEstimates}).then(o=>{this.selectedEstimates.forEach(m=>{let p=this.estimates.findIndex(k=>k.id===m.id);this.estimates.splice(p,1)}),this.selectedEstimates=[],t.showNotification({type:"success",message:i.tc("estimates.deleted_message",2)}),n(o)}).catch(o=>{v(o),e(o)})})},updateEstimate(a){return new Promise((t,n)=>{f.put(`/api/v1/estimates/${a.id}`,a).then(e=>{let o=this.estimates.findIndex(p=>p.id===e.data.data.id);this.estimates[o]=e.data.data,M().showNotification({type:"success",message:i.t("estimates.updated_message")}),t(e)}).catch(e=>{v(e),n(e)})})},markAsAccepted(a){return new Promise((t,n)=>{f.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let o=this.estimates.findIndex(m=>m.id===a.id);this.estimates[o]&&(this.estimates[o].status="ACCEPTED",M().showNotification({type:"success",message:i.t("estimates.marked_as_accepted_message")})),t(e)}).catch(e=>{v(e),n(e)})})},markAsRejected(a){return new Promise((t,n)=>{f.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{M().showNotification({type:"success",message:i.t("estimates.marked_as_rejected_message")}),t(e)}).catch(e=>{v(e),n(e)})})},markAsSent(a){return new Promise((t,n)=>{f.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let o=this.estimates.findIndex(m=>m.id===a.id);this.estimates[o]&&(this.estimates[o].status="SENT",M().showNotification({type:"success",message:i.t("estimates.mark_as_sent_successfully")})),t(e)}).catch(e=>{v(e),n(e)})})},convertToInvoice(a){const t=M();return new Promise((n,e)=>{f.post(`/api/v1/estimates/${a}/convert-to-invoice`).then(o=>{t.showNotification({type:"success",message:i.t("estimates.conversion_message")}),n(o)}).catch(o=>{v(o),e(o)})})},searchEstimate(a){return new Promise((t,n)=>{f.get(`/api/v1/estimates?${a}`).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},selectEstimate(a){this.selectedEstimates=a,this.selectedEstimates.length===this.estimates.length?this.selectAllField=!0:this.selectAllField=!1},selectAllEstimates(){if(this.selectedEstimates.length===this.estimates.length)this.selectedEstimates=[],this.selectAllField=!1;else{let a=this.estimates.map(t=>t.id);this.selectedEstimates=a,this.selectAllField=!0}},selectCustomer(a){return new Promise((t,n)=>{f.get(`/api/v1/customers/${a}`).then(e=>{this.newEstimate.customer=e.data.data,this.newEstimate.customer_id=e.data.data.id,t(e)}).catch(e=>{v(e),n(e)})})},fetchEstimateTemplates(a){return new Promise((t,n)=>{f.get("/api/v1/estimates/templates",{params:a}).then(e=>{this.templates=e.data.estimateTemplates,t(e)}).catch(e=>{v(e),n(e)})})},setTemplate(a){this.newEstimate.template_name=a},resetSelectedCustomer(){this.newEstimate.customer=null,this.newEstimate.customer_id=""},selectNote(a){this.newEstimate.selectedNote=null,this.newEstimate.selectedNote=a},resetSelectedNote(){this.newEstimate.selectedNote=null},addItem(){this.newEstimate.items.push(W(R({},We),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]}))},updateItem(a){Object.assign(this.newEstimate.items[a.index],R({},a))},removeItem(a){this.newEstimate.items.splice(a,1)},deselectItem(a){this.newEstimate.items[a]=W(R({},We),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})},async fetchEstimateInitialSettings(a){const t=_e(),n=be(),e=Fe(),o=ke(),m=fe();if(this.isFetchingInitialSettings=!0,this.newEstimate.selectedCurrency=t.selectedCompanyCurrency,m.query.customer){let k=await n.fetchCustomer(m.query.customer);this.newEstimate.customer=k.data.data,this.newEstimate.customer_id=k.data.data.id}let p=[];a?p=[this.fetchEstimate(m.params.id)]:(this.newEstimate.tax_per_item=t.selectedCompanySettings.tax_per_item,this.newEstimate.sales_tax_type=t.selectedCompanySettings.sales_tax_type,this.newEstimate.sales_tax_address_type=t.selectedCompanySettings.sales_tax_address_type,this.newEstimate.discount_per_item=t.selectedCompanySettings.discount_per_item,this.newEstimate.estimate_date=ye().format("YYYY-MM-DD"),t.selectedCompanySettings.estimate_set_expiry_date_automatically==="YES"&&(this.newEstimate.expiry_date=ye().add(t.selectedCompanySettings.estimate_expiry_date_days,"days").format("YYYY-MM-DD"))),Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),this.fetchEstimateTemplates(),this.getNextNumber(),o.fetchTaxTypes({limit:"all"}),...p]).then(async([k,x,b,h,E,$,I])=>{a||(h.data&&(this.newEstimate.estimate_number=h.data.nextNumber),this.setTemplate(this.templates[0].name)),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(k=>{v(k),this.isFetchingInitialSettings=!1})}}})()};var Ge={invoice_id:null,item_id:null,name:"",title:"",description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]};function jt(){return{id:null,invoice_number:"",customer:null,customer_id:null,template_name:null,invoice_date:"",due_date:"",notes:"",discount:0,discount_type:"fixed",discount_val:0,reference_number:null,tax:0,sub_total:0,total:0,tax_per_item:null,sales_tax_type:null,sales_tax_address_type:null,discount_per_item:null,taxes:[],items:[W(R({},Ge),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const Me=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n,a=M();return r({id:"invoice",state:()=>({templates:[],invoices:[],selectedInvoices:[],selectAllField:!1,invoiceTotalCount:0,showExchangeRate:!1,isFetchingInitialSettings:!1,isFetchingInvoice:!1,newInvoice:R({},jt())}),getters:{getInvoice:t=>n=>{let e=parseInt(n);return t.invoices.find(o=>o.id===e)},getSubTotal(){return this.newInvoice.items.reduce(function(t,n){return t+n.total},0)},getTotalSimpleTax(){return oe.sumBy(this.newInvoice.taxes,function(t){return t.compound_tax?0:t.amount})},getTotalCompoundTax(){return oe.sumBy(this.newInvoice.taxes,function(t){return t.compound_tax?t.amount:0})},getTotalTax(){return this.newInvoice.tax_per_item==="NO"||this.newInvoice.tax_per_item===null?this.getTotalSimpleTax+this.getTotalCompoundTax:oe.sumBy(this.newInvoice.items,function(t){return t.tax})},getSubtotalWithDiscount(){return this.getSubTotal-this.newInvoice.discount_val},getTotal(){return this.getSubtotalWithDiscount+this.getTotalTax},isEdit:t=>!!t.newInvoice.id},actions:{resetCurrentInvoice(){this.newInvoice=R({},jt())},previewInvoice(t){return new Promise((n,e)=>{f.get(`/api/v1/invoices/${t.id}/send/preview`,{params:t}).then(o=>{n(o)}).catch(o=>{v(o),e(o)})})},fetchInvoices(t){return new Promise((n,e)=>{f.get("/api/v1/invoices",{params:t}).then(o=>{this.invoices=o.data.data,this.invoiceTotalCount=o.data.meta.invoice_total_count,n(o)}).catch(o=>{v(o),e(o)})})},fetchInvoice(t){return new Promise((n,e)=>{f.get(`/api/v1/invoices/${t}`).then(o=>{Object.assign(this.newInvoice,o.data.data),this.newInvoice.customer=o.data.data.customer,n(o)}).catch(o=>{v(o),e(o)})})},addSalesTaxUs(){const t=ke();let n=R({},ie),e=this.newInvoice.taxes.find(o=>o.name==="Sales Tax"&&o.type==="MODULE");if(e){for(const o in e)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=e[o]);n.id=e.tax_type_id,t.taxTypes.push(n)}},sendInvoice(t){return new Promise((n,e)=>{f.post(`/api/v1/invoices/${t.id}/send`,t).then(o=>{a.showNotification({type:"success",message:i.t("invoices.invoice_sent_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},addInvoice(t){return new Promise((n,e)=>{f.post("/api/v1/invoices",t).then(o=>{this.invoices=[...this.invoices,o.data.invoice],a.showNotification({type:"success",message:i.t("invoices.created_message")}),n(o)}).catch(o=>{v(o),e(o)})})},deleteInvoice(t){return new Promise((n,e)=>{f.post("/api/v1/invoices/delete",t).then(o=>{let m=this.invoices.findIndex(p=>p.id===t);this.invoices.splice(m,1),a.showNotification({type:"success",message:i.t("invoices.deleted_message",1)}),n(o)}).catch(o=>{v(o),e(o)})})},deleteMultipleInvoices(t){return new Promise((n,e)=>{f.post("/api/v1/invoices/delete",{ids:this.selectedInvoices}).then(o=>{this.selectedInvoices.forEach(m=>{let p=this.invoices.findIndex(k=>k.id===m.id);this.invoices.splice(p,1)}),this.selectedInvoices=[],a.showNotification({type:"success",message:i.tc("invoices.deleted_message",2)}),n(o)}).catch(o=>{v(o),e(o)})})},updateInvoice(t){return new Promise((n,e)=>{f.put(`/api/v1/invoices/${t.id}`,t).then(o=>{let m=this.invoices.findIndex(p=>p.id===o.data.data.id);this.invoices[m]=o.data.data,a.showNotification({type:"success",message:i.t("invoices.updated_message")}),n(o)}).catch(o=>{v(o),e(o)})})},cloneInvoice(t){return new Promise((n,e)=>{f.post(`/api/v1/invoices/${t.id}/clone`,t).then(o=>{a.showNotification({type:"success",message:i.t("invoices.cloned_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},markAsSent(t){return new Promise((n,e)=>{f.post(`/api/v1/invoices/${t.id}/status`,t).then(o=>{let m=this.invoices.findIndex(p=>p.id===t.id);this.invoices[m]&&(this.invoices[m].status="SENT"),a.showNotification({type:"success",message:i.t("invoices.mark_as_sent_successfully")}),n(o)}).catch(o=>{v(o),e(o)})})},getNextNumber(t,n=!1){return new Promise((e,o)=>{f.get("/api/v1/next-number?key=invoice",{params:t}).then(m=>{n&&(this.newInvoice.invoice_number=m.data.nextNumber),e(m)}).catch(m=>{v(m),o(m)})})},searchInvoice(t){return new Promise((n,e)=>{f.get(`/api/v1/invoices?${t}`).then(o=>{n(o)}).catch(o=>{v(o),e(o)})})},selectInvoice(t){this.selectedInvoices=t,this.selectedInvoices.length===this.invoices.length?this.selectAllField=!0:this.selectAllField=!1},selectAllInvoices(){if(this.selectedInvoices.length===this.invoices.length)this.selectedInvoices=[],this.selectAllField=!1;else{let t=this.invoices.map(n=>n.id);this.selectedInvoices=t,this.selectAllField=!0}},selectCustomer(t){return new Promise((n,e)=>{f.get(`/api/v1/customers/${t}`).then(o=>{this.newInvoice.customer=o.data.data,this.newInvoice.customer_id=o.data.data.id,n(o)}).catch(o=>{v(o),e(o)})})},fetchInvoiceTemplates(t){return new Promise((n,e)=>{f.get("/api/v1/invoices/templates",{params:t}).then(o=>{this.templates=o.data.invoiceTemplates,n(o)}).catch(o=>{v(o),e(o)})})},selectNote(t){this.newInvoice.selectedNote=null,this.newInvoice.selectedNote=t},setTemplate(t){this.newInvoice.template_name=t},resetSelectedCustomer(){this.newInvoice.customer=null,this.newInvoice.customer_id=null},addItem(){this.newInvoice.items.push(W(R({},Ge),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]}))},updateItem(t){Object.assign(this.newInvoice.items[t.index],R({},t))},removeItem(t){this.newInvoice.items.splice(t,1)},deselectItem(t){this.newInvoice.items[t]=W(R({},Ge),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})},resetSelectedNote(){this.newInvoice.selectedNote=null},async fetchInvoiceInitialSettings(t){const n=_e(),e=be(),o=Fe(),m=ke(),p=fe();if(this.isFetchingInitialSettings=!0,this.newInvoice.selectedCurrency=n.selectedCompanyCurrency,p.query.customer){let x=await e.fetchCustomer(p.query.customer);this.newInvoice.customer=x.data.data,this.newInvoice.customer_id=x.data.data.id}let k=[];t?k=[this.fetchInvoice(p.params.id)]:(this.newInvoice.tax_per_item=n.selectedCompanySettings.tax_per_item,this.newInvoice.sales_tax_type=n.selectedCompanySettings.sales_tax_type,this.newInvoice.sales_tax_address_type=n.selectedCompanySettings.sales_tax_address_type,this.newInvoice.discount_per_item=n.selectedCompanySettings.discount_per_item,this.newInvoice.invoice_date=ye().format("YYYY-MM-DD"),n.selectedCompanySettings.invoice_set_due_date_automatically==="YES"&&(this.newInvoice.due_date=ye().add(n.selectedCompanySettings.invoice_due_date_days,"days").format("YYYY-MM-DD"))),Promise.all([o.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),this.fetchInvoiceTemplates(),this.getNextNumber(),m.fetchTaxTypes({limit:"all"}),...k]).then(async([x,b,h,E,$,I])=>{t||(E.data&&(this.newInvoice.invoice_number=E.data.nextNumber),h.data&&this.setTemplate(this.templates[0].name)),t&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(x=>{v(x),reject(x)})}}})()},Uk={class:"relative flex px-4 py-2 rounded-lg bg-opacity-40 bg-gray-300 whitespace-nowrap flex-col mt-1"},Kk=c("rect",{width:"37",height:"37",rx:"10",fill:"currentColor"},null,-1),qk=c("path",{d:"M16 10C15.7348 10 15.4804 10.1054 15.2929 10.2929C15.1054 10.4804 15 10.7348 15 11C15 11.2652 15.1054 11.5196 15.2929 11.7071C15.4804 11.8946 15.7348 12 16 12H18C18.2652 12 18.5196 11.8946 18.7071 11.7071C18.8946 11.5196 19 11.2652 19 11C19 10.7348 18.8946 10.4804 18.7071 10.2929C18.5196 10.1054 18.2652 10 18 10H16Z",fill:"white"},null,-1),Zk=c("path",{d:"M11 13C11 12.4696 11.2107 11.9609 11.5858 11.5858C11.9609 11.2107 12.4696 11 13 11C13 11.7956 13.3161 12.5587 13.8787 13.1213C14.4413 13.6839 15.2044 14 16 14H18C18.7956 14 19.5587 13.6839 20.1213 13.1213C20.6839 12.5587 21 11.7956 21 11C21.5304 11 22.0391 11.2107 22.4142 11.5858C22.7893 11.9609 23 12.4696 23 13V19H18.414L19.707 17.707C19.8892 17.5184 19.99 17.2658 19.9877 17.0036C19.9854 16.7414 19.8802 16.4906 19.6948 16.3052C19.5094 16.1198 19.2586 16.0146 18.9964 16.0123C18.7342 16.01 18.4816 16.1108 18.293 16.293L15.293 19.293C15.1055 19.4805 15.0002 19.7348 15.0002 20C15.0002 20.2652 15.1055 20.5195 15.293 20.707L18.293 23.707C18.4816 23.8892 18.7342 23.99 18.9964 23.9877C19.2586 23.9854 19.5094 23.8802 19.6948 23.6948C19.8802 23.5094 19.9854 23.2586 19.9877 22.9964C19.99 22.7342 19.8892 22.4816 19.707 22.293L18.414 21H23V24C23 24.5304 22.7893 25.0391 22.4142 25.4142C22.0391 25.7893 21.5304 26 21 26H13C12.4696 26 11.9609 25.7893 11.5858 25.4142C11.2107 25.0391 11 24.5304 11 24V13ZM23 19H25C25.2652 19 25.5196 19.1054 25.7071 19.2929C25.8946 19.4804 26 19.7348 26 20C26 20.2652 25.8946 20.5196 25.7071 20.7071C25.5196 20.8946 25.2652 21 25 21H23V19Z",fill:"white"},null,-1),Wk=[Kk,qk,Zk],Hk={props:{token:{type:String,default:null,required:!0}},setup(s){const r=M(),i=q(""),{t:a}=Se();function t(e){let o;document.selection?(o=document.body.createTextRange(),o.moveToElementText(e),o.select()):window.getSelection&&(o=document.createRange(),o.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(o))}function n(){t(i.value),document.execCommand("copy"),r.showNotification({type:"success",message:a("general.copied_url_clipboard")})}return(e,o)=>{const m=et("tooltip");return l(),_("div",Uk,[c("span",{ref:(p,k)=>{k.publicUrl=p,i.value=p},class:"pr-10 text-sm font-medium text-black truncate select-all select-color"},w(s.token),513),xe((l(),_("svg",{class:"absolute right-0 h-full inset-y-0 cursor-pointer focus:outline-none text-primary-500",width:"37",viewBox:"0 0 37 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n},Wk,512)),[[m,{content:"Copy to Clipboard"}]])])}}};var Ye={recurring_invoice_id:null,item_id:null,name:"",title:"",sales_tax_type:null,sales_tax_address_type:null,description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]};function Pt(){return{currency:null,customer:null,customer_id:null,invoice_template_id:1,sub_total:0,total:0,tax:0,notes:"",discount_type:"fixed",discount_val:0,discount:0,starts_at:null,send_automatically:!0,status:"ACTIVE",company_id:null,next_invoice_at:null,next_invoice_date:null,frequency:"0 0 * * 0",limit_count:null,limit_by:"NONE",limit_date:null,exchange_rate:null,tax_per_item:null,discount_per_item:null,template_name:null,items:[W(R({},Ye),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})],taxes:[],customFields:[],fields:[],invoices:[],selectedNote:null,selectedFrequency:{label:"Every Week",value:"0 0 * * 0"},selectedInvoice:null}}const Dt=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"recurring-invoice",state:()=>({templates:[],recurringInvoices:[],selectedRecurringInvoices:[],totalRecurringInvoices:0,isFetchingInitialSettings:!1,isFetchingViewData:!1,showExchangeRate:!1,selectAllField:!1,newRecurringInvoice:R({},Pt()),frequencies:[{label:"Every Minute",value:"* * * * *"},{label:"Every 30 Minute",value:"*/30 * * * *"},{label:"Every Hour",value:"0 * * * *"},{label:"Every 2 Hour",value:"0 */2 * * *"},{label:"Twice A Day",value:"0 13-15 * * *"},{label:"Every Week",value:"0 0 * * 0"},{label:"Every 15 Days",value:"0 5 */15 * *"},{label:"First Day Of Month",value:"0 0 1 * *"},{label:"Every 6 Month",value:"0 0 1 */6 *"},{label:"Every Year",value:"0 0 1 1 *"},{label:"Custom",value:"CUSTOM"}]}),getters:{getSubTotal(){var a;return((a=this.newRecurringInvoice)==null?void 0:a.items.reduce(function(t,n){return t+n.total},0))||0},getTotalSimpleTax(){return oe.sumBy(this.newRecurringInvoice.taxes,function(a){return a.compound_tax?0:a.amount})},getTotalCompoundTax(){return oe.sumBy(this.newRecurringInvoice.taxes,function(a){return a.compound_tax?a.amount:0})},getTotalTax(){return this.newRecurringInvoice.tax_per_item==="NO"||this.newRecurringInvoice.tax_per_item===null?this.getTotalSimpleTax+this.getTotalCompoundTax:oe.sumBy(this.newRecurringInvoice.items,function(a){return a.tax})},getSubtotalWithDiscount(){return this.getSubTotal-this.newRecurringInvoice.discount_val},getTotal(){return this.getSubtotalWithDiscount+this.getTotalTax}},actions:{resetCurrentRecurringInvoice(){this.newRecurringInvoice=R({},Pt())},deselectItem(a){this.newRecurringInvoice.items[a]=W(R({},Ye),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]})},addRecurringInvoice(a){return new Promise((t,n)=>{f.post("/api/v1/recurring-invoices",a).then(e=>{this.recurringInvoices=[...this.recurringInvoices,e.data.recurringInvoice],M().showNotification({type:"success",message:i.t("recurring_invoices.created_message")}),t(e)}).catch(e=>{v(e),n(e)})})},fetchRecurringInvoice(a){return new Promise((t,n)=>{this.isFetchingViewData=!0,f.get(`/api/v1/recurring-invoices/${a}`).then(e=>{Object.assign(this.newRecurringInvoice,e.data.data),this.newRecurringInvoice.invoices=e.data.data.invoices||[],this.setSelectedFrequency(),this.isFetchingViewData=!1,t(e)}).catch(e=>{this.isFetchingViewData=!1,v(e),n(e)})})},updateRecurringInvoice(a){return new Promise((t,n)=>{f.put(`/api/v1/recurring-invoices/${a.id}`,a).then(e=>{t(e),M().showNotification({type:"success",message:i.t("recurring_invoices.updated_message")});let m=this.recurringInvoices.findIndex(p=>p.id===e.data.data.id);this.recurringInvoices[m]=e.data.data}).catch(e=>{v(e),n(e)})})},selectCustomer(a){return new Promise((t,n)=>{f.get(`/api/v1/customers/${a}`).then(e=>{this.newRecurringInvoice.customer=e.data.data,this.newRecurringInvoice.customer_id=e.data.data.id,t(e)}).catch(e=>{v(e),n(e)})})},searchRecurringInvoice(a){return new Promise((t,n)=>{f.get(`/api/v1/recurring-invoices?${a}`).then(e=>{t(e)}).catch(e=>{v(e),n(e)})})},fetchRecurringInvoices(a){return new Promise((t,n)=>{f.get("/api/v1/recurring-invoices",{params:a}).then(e=>{this.recurringInvoices=e.data.data,this.totalRecurringInvoices=e.data.meta.recurring_invoice_total_count,t(e)}).catch(e=>{v(e),n(e)})})},deleteRecurringInvoice(a){return new Promise((t,n)=>{f.post("/api/v1/recurring-invoices/delete",a).then(e=>{let o=this.recurringInvoices.findIndex(m=>m.id===a);this.recurringInvoices.splice(o,1),t(e)}).catch(e=>{v(e),n(e)})})},deleteMultipleRecurringInvoices(a){return new Promise((t,n)=>{let e=this.selectedRecurringInvoices;a&&(e=[a]),f.post("/api/v1/recurring-invoices/delete",{ids:e}).then(o=>{this.selectedRecurringInvoices.forEach(m=>{let p=this.recurringInvoices.findIndex(k=>k.id===m.id);this.recurringInvoices.splice(p,1)}),this.selectedRecurringInvoices=[],t(o)}).catch(o=>{v(o),n(o)})})},resetSelectedCustomer(){this.newRecurringInvoice.customer=null,this.newRecurringInvoice.customer_id=""},selectRecurringInvoice(a){this.selectedRecurringInvoices=a,this.selectedRecurringInvoices.length===this.recurringInvoices.length?this.selectAllField=!0:this.selectAllField=!1},selectAllRecurringInvoices(){if(this.selectedRecurringInvoices.length===this.recurringInvoices.length)this.selectedRecurringInvoices=[],this.selectAllField=!1;else{let a=this.recurringInvoices.map(t=>t.id);this.selectedRecurringInvoices=a,this.selectAllField=!0}},addItem(){this.newRecurringInvoice.items.push(W(R({},Ye),{id:Y.raw(),taxes:[W(R({},ie),{id:Y.raw()})]}))},removeItem(a){this.newRecurringInvoice.items.splice(a,1)},updateItem(a){Object.assign(this.newRecurringInvoice.items[a.index],R({},a))},async fetchRecurringInvoiceInitialSettings(a){const t=_e(),n=be(),e=Fe(),o=Me(),m=ke(),p=fe();if(this.isFetchingInitialSettings=!0,this.newRecurringInvoice.currency=t.selectedCompanyCurrency,p.query.customer){let x=await n.fetchCustomer(p.query.customer);this.newRecurringInvoice.customer=x.data.data,this.selectCustomer(x.data.data.id)}let k=[];a?k=[this.fetchRecurringInvoice(p.params.id)]:(this.newRecurringInvoice.tax_per_item=t.selectedCompanySettings.tax_per_item,this.newRecurringInvoice.discount_per_item=t.selectedCompanySettings.discount_per_item,this.newRecurringInvoice.sales_tax_type=t.selectedCompanySettings.sales_tax_type,this.newRecurringInvoice.sales_tax_address_type=t.selectedCompanySettings.sales_tax_address_type,this.newRecurringInvoice.starts_at=ye().format("YYYY-MM-DD"),this.newRecurringInvoice.next_invoice_date=ye().add(7,"days").format("YYYY-MM-DD")),Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),o.fetchInvoiceTemplates(),m.fetchTaxTypes({limit:"all"}),...k]).then(async([x,b,h,E,$])=>{var I,z;h.data&&(this.templates=o.templates),a||this.setTemplate(this.templates[0].name),a&&($==null?void 0:$.data)&&(R({},$.data.data),this.setTemplate((z=(I=$==null?void 0:$.data)==null?void 0:I.data)==null?void 0:z.template_name)),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(x=>{console.log(x),v(x)})},addSalesTaxUs(){const a=ke();let t=R({},ie),n=this.newRecurringInvoice.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(n){for(const e in n)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=n[e]);t.id=n.tax_type_id,a.taxTypes.push(t)}},setTemplate(a){this.newRecurringInvoice.template_name=a},setSelectedFrequency(){let a=this.frequencies.find(t=>t.value===this.newRecurringInvoice.frequency);a?this.newRecurringInvoice.selectedFrequency=a:this.newRecurringInvoice.selectedFrequency={label:"Custom",value:"CUSTOM"}},resetSelectedNote(){this.newRecurringInvoice.selectedNote=null},fetchRecurringInvoiceFrequencyDate(a){return new Promise((t,n)=>{f.get("/api/v1/recurring-invoice-frequency",{params:a}).then(e=>{this.newRecurringInvoice.next_invoice_at=e.data.next_invoice_at,t(e)}).catch(e=>{M().showNotification({type:"error",message:i.t("errors.enter_valid_cron_format")}),n(e)})})}}})()},Gk={class:"flex justify-between w-full"},Yk=["onSubmit"],Jk={class:"px-6 pb-3"},Xk={class:"md:col-span-2"},Qk={class:"text-sm text-gray-500"},ew={class:"grid md:grid-cols-12"},tw={class:"flex justify-end col-span-12"},aw={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Ct={setup(s){const r=Dt(),i=Pe(),a=He(),t=be(),n=_e(),e=Ie(),o=Me(),m=M();let p=q(!1);const{t:k}=Se(),x=fe();q(!1);const b=q(!1);let h=q(!1),E=q(!1);const $=D(()=>i.active&&i.componentName==="CustomerModal"),I=D(()=>({name:{required:te.withMessage(k("validation.required"),tt),minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ve(3))},currency_id:{required:te.withMessage(k("validation.required"),tt)},password:{required:te.withMessage(k("validation.required"),at(t.currentCustomer.enable_portal==!0&&!t.currentCustomer.password_added)),minLength:te.withMessage(k("validation.password_min_length",{count:8}),Ve(8))},confirm_password:{sameAsPassword:te.withMessage(k("validation.password_incorrect"),Ut(t.currentCustomer.password))},email:{required:te.withMessage(k("validation.required"),at(t.currentCustomer.enable_portal==!0)),email:te.withMessage(k("validation.email_incorrect"),Kt)},prefix:{minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ve(3))},website:{url:te.withMessage(k("validation.invalid_url"),qt)},billing:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))}},shipping:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ae(255))}}})),z=Zt(I,D(()=>t.currentCustomer)),V=D(()=>`${window.location.origin}/${n.selectedCompany.slug}/customer/login`);function L(){t.copyAddress()}async function G(){t.isEdit||(t.currentCustomer.currency_id=n.selectedCompanyCurrency.id)}async function me(){if(z.value.$touch(),z.value.$invalid&&t.currentCustomer.email===""&&m.showNotification({type:"error",message:k("settings.notification.please_enter_email")}),z.value.$invalid)return!0;b.value=!0;let N=R({},t.currentCustomer);try{let y=null;t.isEdit?y=await t.updateCustomer(N):y=await t.addCustomer(N),y.data&&(b.value=!1,(x.name==="invoices.create"||x.name==="invoices.edit")&&o.selectCustomer(y.data.data.id),(x.name==="estimates.create"||x.name==="estimates.edit")&&a.selectCustomer(y.data.data.id),(x.name==="recurring-invoices.create"||x.name==="recurring-invoices.edit")&&r.selectCustomer(y.data.data.id),Z())}catch(y){console.error(y),b.value=!1}}function Z(){i.closeModal(),setTimeout(()=>{t.resetCurrentCustomer(),z.value.$reset()},300)}return(N,y)=>{const ue=C("BaseIcon"),H=C("BaseInput"),U=C("BaseInputGroup"),we=C("BaseMultiselect"),de=C("BaseInputGrid"),he=C("BaseTab"),se=C("BaseSwitch"),ve=C("BaseTextarea"),De=C("BaseButton"),Et=C("BaseTabGroup"),Nt=C("BaseModal");return l(),T(Nt,{show:d($),onClose:Z,onOpen:G},{header:g(()=>[c("div",Gk,[K(w(d(i).title)+" ",1),u(ue,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:Z})])]),default:g(()=>[c("form",{action:"",onSubmit:re(me,["prevent"])},[c("div",Jk,[u(Et,null,{default:g(()=>[u(he,{title:N.$t("customers.basic_info"),class:"!mt-2"},{default:g(()=>[u(de,{layout:"one-column"},{default:g(()=>[u(U,{label:N.$t("customers.display_name"),required:"",error:d(z).name.$error&&d(z).name.$errors[0].$message},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.name,"onUpdate:modelValue":y[0]||(y[0]=P=>d(t).currentCustomer.name=P),modelModifiers:{trim:!0},type:"text",name:"name",class:"mt-1 md:mt-0",invalid:d(z).name.$error,onInput:y[1]||(y[1]=P=>d(z).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(U,{label:N.$tc("settings.currencies.currency"),required:"",error:d(z).currency_id.$error&&d(z).currency_id.$errors[0].$message},{default:g(()=>[u(we,{modelValue:d(t).currentCustomer.currency_id,"onUpdate:modelValue":y[2]||(y[2]=P=>d(t).currentCustomer.currency_id=P),options:d(e).currencies,"value-prop":"id",searchable:"",placeholder:N.$t("customers.select_currency"),"max-height":200,class:"mt-1 md:mt-0","track-by":"name",invalid:d(z).currency_id.$error,label:"name"},null,8,["modelValue","options","placeholder","invalid"])]),_:1},8,["label","error"]),u(U,{label:N.$t("customers.primary_contact_name")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.contact_name,"onUpdate:modelValue":y[3]||(y[3]=P=>d(t).currentCustomer.contact_name=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("login.email"),error:d(z).email.$error&&d(z).email.$errors[0].$message},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.email,"onUpdate:modelValue":y[4]||(y[4]=P=>d(t).currentCustomer.email=P),modelModifiers:{trim:!0},type:"text",name:"email",class:"mt-1 md:mt-0",invalid:d(z).email.$error,onInput:y[5]||(y[5]=P=>d(z).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(U,{label:N.$t("customers.prefix"),error:d(z).prefix.$error&&d(z).prefix.$errors[0].$message,"content-loading":d(p)},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.prefix,"onUpdate:modelValue":y[6]||(y[6]=P=>d(t).currentCustomer.prefix=P),"content-loading":d(p),type:"text",name:"name",class:"",invalid:d(z).prefix.$error,onInput:y[7]||(y[7]=P=>d(z).prefix.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),u(de,null,{default:g(()=>[u(U,{label:N.$t("customers.phone")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.phone,"onUpdate:modelValue":y[8]||(y[8]=P=>d(t).currentCustomer.phone=P),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.website"),error:d(z).website.$error&&d(z).website.$errors[0].$message},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.website,"onUpdate:modelValue":y[9]||(y[9]=P=>d(t).currentCustomer.website=P),type:"url",class:"mt-1 md:mt-0",invalid:d(z).website.$error,onInput:y[10]||(y[10]=P=>d(z).website.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),_:1})]),_:1},8,["title"]),u(he,{title:N.$t("customers.portal_access")},{default:g(()=>[u(de,{class:"col-span-5 lg:col-span-4"},{default:g(()=>[c("div",Xk,[c("p",Qk,w(N.$t("customers.portal_access_text")),1),u(se,{modelValue:d(t).currentCustomer.enable_portal,"onUpdate:modelValue":y[11]||(y[11]=P=>d(t).currentCustomer.enable_portal=P),class:"mt-1 flex"},null,8,["modelValue"])]),d(t).currentCustomer.enable_portal?(l(),T(U,{key:0,"content-loading":d(p),label:N.$t("customers.portal_access_url"),class:"md:col-span-2","help-text":N.$t("customers.portal_access_url_help")},{default:g(()=>[u(Hk,{token:d(V)},null,8,["token"])]),_:1},8,["content-loading","label","help-text"])):S("",!0),d(t).currentCustomer.enable_portal?(l(),T(U,{key:1,"content-loading":d(p),error:d(z).password.$error&&d(z).password.$errors[0].$message,label:N.$t("customers.password")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.password,"onUpdate:modelValue":y[14]||(y[14]=P=>d(t).currentCustomer.password=P),modelModifiers:{trim:!0},"content-loading":d(p),type:d(h)?"text":"password",name:"password",invalid:d(z).password.$error,onInput:y[15]||(y[15]=P=>d(z).password.$touch())},{right:g(()=>[d(h)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[12]||(y[12]=P=>J(h)?h.value=!d(h):h=!d(h))})):(l(),T(ue,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[13]||(y[13]=P=>J(h)?h.value=!d(h):h=!d(h))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["content-loading","error","label"])):S("",!0),d(t).currentCustomer.enable_portal?(l(),T(U,{key:2,error:d(z).confirm_password.$error&&d(z).confirm_password.$errors[0].$message,"content-loading":d(p),label:"Confirm Password"},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.confirm_password,"onUpdate:modelValue":y[18]||(y[18]=P=>d(t).currentCustomer.confirm_password=P),modelModifiers:{trim:!0},"content-loading":d(p),type:d(E)?"text":"password",name:"confirm_password",invalid:d(z).confirm_password.$error,onInput:y[19]||(y[19]=P=>d(z).confirm_password.$touch())},{right:g(()=>[d(E)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[16]||(y[16]=P=>J(E)?E.value=!d(E):E=!d(E))})):(l(),T(ue,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:y[17]||(y[17]=P=>J(E)?E.value=!d(E):E=!d(E))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["error","content-loading"])):S("",!0)]),_:1})]),_:1},8,["title"]),u(he,{title:N.$t("customers.billing_address"),class:"!mt-2"},{default:g(()=>[u(de,{layout:"one-column"},{default:g(()=>[u(U,{label:N.$t("customers.name")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.name,"onUpdate:modelValue":y[20]||(y[20]=P=>d(t).currentCustomer.billing.name=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.country")},{default:g(()=>[u(we,{modelValue:d(t).currentCustomer.billing.country_id,"onUpdate:modelValue":y[21]||(y[21]=P=>d(t).currentCustomer.billing.country_id=P),options:d(e).countries,searchable:"","show-labels":!1,placeholder:N.$t("general.select_country"),"allow-empty":!1,"track-by":"name",class:"mt-1 md:mt-0",label:"name","value-prop":"id"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.state")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.state,"onUpdate:modelValue":y[22]||(y[22]=P=>d(t).currentCustomer.billing.state=P),type:"text",name:"billingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.city")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.city,"onUpdate:modelValue":y[23]||(y[23]=P=>d(t).currentCustomer.billing.city=P),type:"text",name:"billingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.address"),error:d(z).billing.address_street_1.$error&&d(z).billing.address_street_1.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.billing.address_street_1,"onUpdate:modelValue":y[24]||(y[24]=P=>d(t).currentCustomer.billing.address_street_1=P),placeholder:N.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(z).billing.address_street_1.$error,onInput:y[25]||(y[25]=P=>d(z).billing.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:g(()=>[u(U,{error:d(z).billing.address_street_2.$error&&d(z).billing.address_street_2.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.billing.address_street_2,"onUpdate:modelValue":y[26]||(y[26]=P=>d(t).currentCustomer.billing.address_street_2=P),placeholder:N.$t("general.street_2"),rows:"2",cols:"50",invalid:d(z).billing.address_street_2.$error,onInput:y[27]||(y[27]=P=>d(z).billing.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(U,{label:N.$t("customers.phone")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.phone,"onUpdate:modelValue":y[28]||(y[28]=P=>d(t).currentCustomer.billing.phone=P),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.zip_code")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.billing.zip,"onUpdate:modelValue":y[29]||(y[29]=P=>d(t).currentCustomer.billing.zip=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"]),u(he,{title:N.$t("customers.shipping_address"),class:"!mt-2"},{default:g(()=>[c("div",ew,[c("div",tw,[u(De,{variant:"primary",type:"button",size:"xs",onClick:y[30]||(y[30]=P=>L())},{default:g(()=>[K(w(N.$t("customers.copy_billing_address")),1)]),_:1})])]),u(de,{layout:"one-column"},{default:g(()=>[u(U,{label:N.$t("customers.name")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.name,"onUpdate:modelValue":y[31]||(y[31]=P=>d(t).currentCustomer.shipping.name=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.country")},{default:g(()=>[u(we,{modelValue:d(t).currentCustomer.shipping.country_id,"onUpdate:modelValue":y[32]||(y[32]=P=>d(t).currentCustomer.shipping.country_id=P),options:d(e).countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:N.$t("general.select_country"),"track-by":"name",class:"mt-1 md:mt-0",label:"name","value-prop":"id"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.state")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.state,"onUpdate:modelValue":y[33]||(y[33]=P=>d(t).currentCustomer.shipping.state=P),type:"text",name:"shippingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.city")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.city,"onUpdate:modelValue":y[34]||(y[34]=P=>d(t).currentCustomer.shipping.city=P),type:"text",name:"shippingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.address"),error:d(z).shipping.address_street_1.$error&&d(z).shipping.address_street_1.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.shipping.address_street_1,"onUpdate:modelValue":y[35]||(y[35]=P=>d(t).currentCustomer.shipping.address_street_1=P),placeholder:N.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(z).shipping.address_street_1.$error,onInput:y[36]||(y[36]=P=>d(z).shipping.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:g(()=>[u(U,{error:d(z).shipping.address_street_2.$error&&d(z).shipping.address_street_2.$errors[0].$message},{default:g(()=>[u(ve,{modelValue:d(t).currentCustomer.shipping.address_street_2,"onUpdate:modelValue":y[37]||(y[37]=P=>d(t).currentCustomer.shipping.address_street_2=P),placeholder:N.$t("general.street_2"),rows:"2",cols:"50",invalid:d(z).shipping.address_street_1.$error,onInput:y[38]||(y[38]=P=>d(z).shipping.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(U,{label:N.$t("customers.phone")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.phone,"onUpdate:modelValue":y[39]||(y[39]=P=>d(t).currentCustomer.shipping.phone=P),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(U,{label:N.$t("customers.zip_code")},{default:g(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.zip,"onUpdate:modelValue":y[40]||(y[40]=P=>d(t).currentCustomer.shipping.zip=P),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"])]),_:1})]),c("div",aw,[u(De,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:Z},{default:g(()=>[K(w(N.$t("general.cancel")),1)]),_:1}),u(De,{loading:b.value,variant:"primary",type:"submit"},{left:g(P=>[b.value?S("",!0):(l(),T(ue,{key:0,name:"SaveIcon",class:A(P.class)},null,8,["class"]))]),default:g(()=>[K(" "+w(N.$t("general.save")),1)]),_:1},8,["loading"])])],40,Yk)]),_:1},8,["show"])}}},sw={props:{modelValue:{type:[String,Number,Object],default:""},fetchAll:{type:Boolean,default:!1},showAction:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,{t:a}=Se(),t=Pe(),n=be(),e=je(),o=D({get:()=>i.modelValue,set:k=>{r("update:modelValue",k)}});async function m(k){let x={search:k};return i.fetchAll&&(x.limit="all"),(await n.fetchCustomers(x)).data.data}async function p(){n.resetCurrentCustomer(),t.openModal({title:a("customers.add_new_customer"),componentName:"CustomerModal"})}return(k,x)=>{const b=C("BaseIcon"),h=C("BaseSelectAction"),E=C("BaseMultiselect");return l(),_(Q,null,[u(E,le({modelValue:d(o),"onUpdate:modelValue":x[0]||(x[0]=$=>J(o)?o.value=$:null)},k.$attrs,{"track-by":"name","value-prop":"id",label:"name","filter-results":!1,"resolve-on-load":"",delay:500,searchable:!0,options:m,"label-value":"name",placeholder:k.$t("customers.type_or_click"),"can-deselect":!1,class:"w-full"}),Wt({_:2},[s.showAction?{name:"action",fn:g(()=>[d(e).hasAbilities(d(O).CREATE_CUSTOMER)?(l(),T(h,{key:0,onClick:p},{default:g(()=>[u(b,{name:"UserAddIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),K(" "+w(k.$t("customers.add_new_customer")),1)]),_:1})):S("",!0)])}:void 0]),1040,["modelValue","placeholder"]),u(Ct)],64)}}};var nw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sw});const iw={key:1,class:"max-h-[173px]"},ow={class:"flex relative justify-between mb-2"},rw={class:"flex"},dw=["onClick"],lw={class:"grid grid-cols-2 gap-8 mt-2"},cw={key:0,class:"flex flex-col"},_w={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},uw={key:0,class:"flex flex-col flex-1 p-0 text-left"},mw={key:0,class:"relative w-11/12 text-sm truncate"},pw={class:"relative w-11/12 text-sm truncate"},gw={key:0},fw={key:1},hw={key:2},vw={key:1,class:"relative w-11/12 text-sm truncate"},yw={key:1,class:"flex flex-col"},bw={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},kw={key:0,class:"flex flex-col flex-1 p-0 text-left"},ww={key:0,class:"relative w-11/12 text-sm truncate"},xw={class:"relative w-11/12 text-sm truncate"},zw={key:0},Sw={key:1},jw={key:2},Pw={key:1,class:"relative w-11/12 text-sm truncate"},Dw={class:"relative flex justify-center px-0 p-0 py-16 bg-white border border-gray-200 border-solid rounded-md min-h-[170px]"},Cw={class:"mt-1"},Aw={class:"text-lg font-medium text-gray-900"},Ew=c("span",{class:"text-red-500"}," * ",-1),Nw={key:0,class:"text-red-500 text-sm absolute right-3 bottom-3"},Tw={key:0,class:"absolute min-w-full z-10"},Iw={class:"relative"},$w={class:"max-h-80 flex flex-col overflow-auto list border-t border-gray-200"},Rw=["onClick"],Fw={class:"flex items-center content-center justify-center w-10 h-10 mr-4 text-xl font-semibold leading-9 text-white bg-gray-300 rounded-full avatar"},Mw={class:"flex flex-col justify-center text-left"},Vw={key:0,class:"flex justify-center p-5 text-gray-400"},Bw={class:"text-base text-gray-500 cursor-pointer"},Ow={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},Lw={props:{valid:{type:Object,default:()=>{}},customerId:{type:Number,default:null},type:{type:String,default:null},contentLoading:{type:Boolean,default:!1}},setup(s){const r=s,i=Pe(),a=He(),t=be(),n=Ie(),e=Me(),o=Dt(),m=je(),p=fe(),{t:k}=Se(),x=q(null),b=q(!1),h=D(()=>{switch(r.type){case"estimate":return a.newEstimate.customer;case"invoice":return e.newInvoice.customer;case"recurring-invoice":return o.newRecurringInvoice.customer;default:return""}});function E(){r.type==="estimate"?a.resetSelectedCustomer():r.type==="invoice"?e.resetSelectedCustomer():o.resetSelectedCustomer()}r.customerId&&r.type==="estimate"?a.selectCustomer(r.customerId):r.customerId&&r.type==="invoice"?e.selectCustomer(r.customerId):r.customerId&&o.selectCustomer(r.customerId);async function $(){await t.fetchCustomer(h.value.id),i.openModal({title:k("customers.edit_customer"),componentName:"CustomerModal"})}async function I(){await t.fetchCustomers({filter:{},orderByField:"",orderBy:"",customer_id:r.customerId})}const z=Jt(()=>{b.value=!0,V()},500);async function V(){let Z={display_name:x.value,page:1};await t.fetchCustomers(Z),b.value=!1}function L(){i.openModal({title:k("customers.add_customer"),componentName:"CustomerModal",variant:"md"})}function G(Z){if(Z)return Z.split(" ")[0].charAt(0).toUpperCase()}function me(Z,N){let y={userId:Z};p.params.id&&(y.model_id=p.params.id),r.type==="estimate"?(a.getNextNumber(y,!0),a.selectCustomer(Z)):r.type==="invoice"?(e.getNextNumber(y,!0),e.selectCustomer(Z)):o.selectCustomer(Z),N(),x.value=null}return n.fetchCurrencies(),n.fetchCountries(),I(),(Z,N)=>{const y=C("BaseContentPlaceholdersBox"),ue=C("BaseContentPlaceholders"),H=C("BaseText"),U=C("BaseIcon"),we=C("BaseInput");return s.contentLoading?(l(),T(ue,{key:0},{default:g(()=>[u(y,{rounded:!0,class:"w-full",style:{"min-height":"170px"}})]),_:1})):(l(),_("div",iw,[u(Ct),d(h)?(l(),_("div",{key:0,class:"flex flex-col p-4 bg-white border border-gray-200 border-solid min-h-[170px] rounded-md",onClick:N[0]||(N[0]=re(()=>{},["stop"]))},[c("div",ow,[u(H,{text:d(h).name,length:30,class:"flex-1 text-base font-medium text-left text-gray-900"},null,8,["text"]),c("div",rw,[c("a",{class:"relative my-0 ml-6 text-sm font-medium cursor-pointer text-primary-500 items-center flex",onClick:re($,["stop"])},[u(U,{name:"PencilIcon",class:"text-gray-500 h-4 w-4 mr-1"}),K(" "+w(Z.$t("general.edit")),1)],8,dw),c("a",{class:"relative my-0 ml-6 text-sm flex items-center font-medium cursor-pointer text-primary-500",onClick:E},[u(U,{name:"XCircleIcon",class:"text-gray-500 h-4 w-4 mr-1"}),K(" "+w(Z.$t("general.deselect")),1)])])]),c("div",lw,[d(h).billing?(l(),_("div",cw,[c("label",_w,w(Z.$t("general.bill_to")),1),d(h).billing?(l(),_("div",uw,[d(h).billing.name?(l(),_("label",mw,w(d(h).billing.name),1)):S("",!0),c("label",pw,[d(h).billing.city?(l(),_("span",gw,w(d(h).billing.city),1)):S("",!0),d(h).billing.city&&d(h).billing.state?(l(),_("span",fw," , ")):S("",!0),d(h).billing.state?(l(),_("span",hw,w(d(h).billing.state),1)):S("",!0)]),d(h).billing.zip?(l(),_("label",vw,w(d(h).billing.zip),1)):S("",!0)])):S("",!0)])):S("",!0),d(h).shipping?(l(),_("div",yw,[c("label",bw,w(Z.$t("general.ship_to")),1),d(h).shipping?(l(),_("div",kw,[d(h).shipping.name?(l(),_("label",ww,w(d(h).shipping.name),1)):S("",!0),c("label",xw,[d(h).shipping.city?(l(),_("span",zw,w(d(h).shipping.city),1)):S("",!0),d(h).shipping.city&&d(h).shipping.state?(l(),_("span",Sw," , ")):S("",!0),d(h).shipping.state?(l(),_("span",jw,w(d(h).shipping.state),1)):S("",!0)]),d(h).shipping.zip?(l(),_("label",Pw,w(d(h).shipping.zip),1)):S("",!0)])):S("",!0)])):S("",!0)])])):(l(),T(d(Yt),{key:1,class:"relative flex flex-col rounded-md"},{default:g(({open:de})=>[u(d(Ht),{class:A([{"text-opacity-90":de,"border border-solid border-red-500 focus:ring-red-500 rounded":s.valid.$error,"focus:ring-2 focus:ring-primary-400":!s.valid.$error},"w-full outline-none rounded-md"])},{default:g(()=>[c("div",Dw,[u(U,{name:"UserIcon",class:"flex justify-center !w-10 !h-10 p-2 mr-5 text-sm text-white bg-gray-200 rounded-full font-base"}),c("div",Cw,[c("label",Aw,[K(w(Z.$t("customers.new_customer"))+" ",1),Ew]),s.valid.$error&&s.valid.$errors[0].$message?(l(),_("p",Nw,w(Z.$t("estimates.errors.required")),1)):S("",!0)])])]),_:2},1032,["class"]),u(Ee,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:g(()=>[de?(l(),_("div",Tw,[u(d(Gt),{focus:"",static:"",class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5 bg-white"},{default:g(({close:he})=>[c("div",Iw,[u(we,{modelValue:x.value,"onUpdate:modelValue":[N[1]||(N[1]=se=>x.value=se),N[2]||(N[2]=se=>d(z)(se))],"container-class":"m-4",placeholder:Z.$t("general.search"),type:"text",icon:"search"},null,8,["modelValue","placeholder"]),c("ul",$w,[(l(!0),_(Q,null,ae(d(t).customers,(se,ve)=>(l(),_("li",{key:ve,href:"#",class:"flex px-6 py-2 border-b border-gray-200 border-solid cursor-pointer hover:cursor-pointer hover:bg-gray-100 focus:outline-none focus:bg-gray-100 last:border-b-0",onClick:De=>me(se.id,he)},[c("span",Fw,w(G(se.name)),1),c("div",Mw,[se.name?(l(),T(H,{key:0,text:se.name,length:30,class:"m-0 text-base font-normal leading-tight cursor-pointer"},null,8,["text"])):S("",!0),se.contact_name?(l(),T(H,{key:1,text:se.contact_name,length:30,class:"m-0 text-sm font-medium text-gray-400 cursor-pointer"},null,8,["text"])):S("",!0)])],8,Rw))),128)),d(t).customers.length===0?(l(),_("div",Vw,[c("label",Bw,w(Z.$t("customers.no_customers_found")),1)])):S("",!0)])]),d(m).hasAbilities(d(O).CREATE_CUSTOMER)?(l(),_("button",{key:0,type:"button",class:"h-10 flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none focus:bg-gray-300",onClick:L},[u(U,{name:"UserAddIcon",class:"text-primary-400"}),c("label",Ow,w(Z.$t("customers.add_new_customer")),1)])):S("",!0)]),_:1})])):S("",!0)]),_:2},1024)]),_:1}))]))}}};var Uw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Lw});const Kw=c("path",{"fill-rule":"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z","clip-rule":"evenodd"},null,-1),qw=[Kw],Zw={props:{modelValue:{type:[String,Date],default:()=>new Date},contentLoading:{type:Boolean,default:!1},placeholder:{type:String,default:null},invalid:{type:Boolean,default:!1},enableTime:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showCalendarIcon:{type:Boolean,default:!0},containerClass:{type:String,default:""},defaultInputClass:{type:String,default:"font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-200 rounded-md text-black"},time24hr:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=q(null),t=pe(),n=_e();let e=Be({altInput:!0,enableTime:i.enableTime,time_24hr:i.time24hr});const o=D({get:()=>i.modelValue,set:E=>{r("update:modelValue",E)}}),m=D(()=>{var E;return(E=n.selectedCompanySettings)==null?void 0:E.carbon_date_format}),p=D(()=>!!t.icon),k=D(()=>`${i.containerClass} `),x=D(()=>i.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),b=D(()=>i.disabled?"border border-solid rounded-md outline-none input-field box-border-2 base-date-picker-input placeholder-gray-400 bg-gray-200 text-gray-600 border-gray-200":"");function h(E){a.value.fp.open()}return ge(()=>i.enableTime,E=>{i.enableTime&&(e.enableTime=i.enableTime)},{immediate:!0}),ge(()=>m,()=>{i.enableTime?e.altFormat=m.value?`${m.value} H:i `:"d M Y H:i":e.altFormat=m.value?m.value:"d M Y"},{immediate:!0}),(E,$)=>{const I=C("BaseContentPlaceholdersBox"),z=C("BaseContentPlaceholders");return s.contentLoading?(l(),T(z,{key:0},{default:g(()=>[u(I,{rounded:!0,class:A(`w-full ${d(k)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:A([d(k),"relative flex flex-row"])},[s.showCalendarIcon&&!d(p)?(l(),_("svg",{key:0,viewBox:"0 0 20 20",fill:"currentColor",class:"absolute w-4 h-4 mx-2 my-2.5 text-sm not-italic font-black text-gray-400 cursor-pointer",onClick:h},qw)):S("",!0),s.showCalendarIcon&&d(p)?F(E.$slots,"icon",{key:1}):S("",!0),u(d(st),le({ref:(V,L)=>{L.dp=V,a.value=V},modelValue:d(o),"onUpdate:modelValue":$[0]||($[0]=V=>J(o)?o.value=V:null)},E.$attrs,{disabled:s.disabled,config:d(e),class:[s.defaultInputClass,d(x),d(b)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var Ww=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Zw});const Hw={},Gw={class:"grid gap-4 mt-5 md:grid-cols-2 lg:grid-cols-3"};function Yw(s,r){return l(),_("div",Gw,[F(s.$slots,"default")])}var Jw=ee(Hw,[["render",Yw]]),Xw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Jw});const Qw={key:1},ex={class:"text-sm font-bold leading-5 text-black non-italic"},tx={props:{label:{type:String,required:!0},value:{type:[String,Number],default:""},contentLoading:{type:Boolean,default:!1}},setup(s){return(r,i)=>{const a=C("BaseContentPlaceholdersBox"),t=C("BaseContentPlaceholders"),n=C("BaseLabel");return l(),_("div",null,[s.contentLoading?(l(),T(t,{key:0},{default:g(()=>[u(a,{class:"w-20 h-5 mb-1"}),u(a,{class:"w-40 h-5"})]),_:1})):(l(),_("div",Qw,[u(n,{class:"font-normal mb-1"},{default:g(()=>[K(w(s.label),1)]),_:1}),c("p",ex,[K(w(s.value)+" ",1),F(r.$slots,"default")])]))])}}};var ax=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tx});const sx=(s=!1)=>{const r=s?window.pinia.defineStore:X,{global:i}=window.i18n;return r({id:"dialog",state:()=>({active:!1,title:"",message:"",size:"md",data:null,variant:"danger",yesLabel:i.t("settings.custom_fields.yes"),noLabel:i.t("settings.custom_fields.no"),noLabel:"No",resolve:null,hideNoButton:!1}),actions:{openDialog(a){return this.active=!0,this.title=a.title,this.message=a.message,this.size=a.size,this.data=a.data,this.variant=a.variant,this.yesLabel=a.yesLabel,this.noLabel=a.noLabel,this.hideNoButton=a.hideNoButton,new Promise((t,n)=>{this.resolve=t})},closeDialog(){this.active=!1,setTimeout(()=>{this.title="",this.message="",this.data=null},300)}}})()},nx={class:"flex items-end justify-center min-h-screen min-h-screen-ios px-4 pt-4 pb-20 text-center sm:block sm:p-0"},ix=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen sm:h-screen-ios","aria-hidden":"true"},"\u200B",-1),ox={class:"mt-3 text-center sm:mt-5"},rx={class:"mt-2"},dx={class:"text-sm text-gray-500"},lx={setup(s){const r=sx();function i(t){r.resolve(t),r.closeDialog()}const a=D(()=>{switch(r.size){case"sm":return"sm:max-w-sm";case"md":return"sm:max-w-md";case"lg":return"sm:max-w-lg";default:return"sm:max-w-md"}});return(t,n)=>{const e=C("BaseIcon"),o=C("base-button");return l(),T(d(ot),{as:"template",show:d(r).active},{default:g(()=>[u(d(it),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:d(r).active,onClose:d(r).closeDialog},{default:g(()=>[c("div",nx,[u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:g(()=>[u(d(nt),{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75"})]),_:1}),ix,u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:g(()=>[c("div",{class:A(["inline-block px-4 pt-5 pb-4 overflow-hidden text-left align-bottom transition-all bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:w-full sm:p-6 relative",d(a)])},[c("div",null,[c("div",{class:A(["flex items-center justify-center w-12 h-12 mx-auto bg-green-100 rounded-full",{"bg-green-100":d(r).variant==="primary","bg-red-100":d(r).variant==="danger"}])},[d(r).variant==="primary"?(l(),T(e,{key:0,name:"CheckIcon",class:"w-6 h-6 text-green-600"})):(l(),T(e,{key:1,name:"ExclamationIcon",class:"w-6 h-6 text-red-600","aria-hidden":"true"}))],2),c("div",ox,[u(d(Xt),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:g(()=>[K(w(d(r).title),1)]),_:1}),c("div",rx,[c("p",dx,w(d(r).message),1)])])]),c("div",{class:A(["mt-5 sm:mt-6",{"sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense":!d(r).hideNoButton}])},[u(o,{class:A(["justify-center",{"w-full":d(r).hideNoButton}]),variant:d(r).variant,onClick:n[0]||(n[0]=m=>i(!0))},{default:g(()=>[K(w(d(r).yesLabel),1)]),_:1},8,["variant","class"]),d(r).hideNoButton?S("",!0):(l(),T(o,{key:0,class:"justify-center",variant:"white",onClick:n[1]||(n[1]=m=>i(!1))},{default:g(()=>[K(w(d(r).noLabel),1)]),_:1}))],2)],2)]),_:1})])]),_:1},8,["open","onClose"])]),_:1},8,["show"])}}};var cx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lx});const _x={},ux={class:"w-full text-gray-300"};function mx(s,r){return l(),_("hr",ux)}var px=ee(_x,[["render",mx]]),gx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:px});function fx(s){let r=q(null),i=q(null),a=q(null);return ze(()=>{rt(t=>{if(!i.value||!r.value)return;let n=i.value.el||i.value,e=r.value.el||r.value;e instanceof HTMLElement&&n instanceof HTMLElement&&(a.value=Qt(e,n,s),t(a.value.destroy))})}),[r,i,a]}const hx={class:"py-1"},vx={props:{containerClass:{type:String,required:!1,default:""},widthClass:{type:String,default:"w-56"},positionClass:{type:String,default:"absolute z-10 right-0"},position:{type:String,default:"bottom-end"},wrapperClass:{type:String,default:"inline-block h-full text-left"},contentLoading:{type:Boolean,default:!1}},setup(s){const r=s,i=D(()=>`origin-top-right rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-100 focus:outline-none ${r.containerClass}`);let[a,t,n]=fx({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}}]});function e(){n.value.update()}return(o,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return l(),_("div",{class:A(["relative",s.wrapperClass])},[s.contentLoading?(l(),T(k,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:g(()=>[u(p,{rounded:!0,class:"w-14",style:{height:"42px"}})]),_:1})):(l(),T(d(aa),{key:1},{default:g(()=>[u(d(ea),{ref:(x,b)=>{b.trigger=x,J(a)?a.value=x:a=x},class:"focus:outline-none",onClick:e},{default:g(()=>[F(o.$slots,"activator")]),_:3},512),c("div",{ref:(x,b)=>{b.container=x,J(t)?t.value=x:t=x},class:A(["z-10",s.widthClass])},[u(Ee,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"scale-95 opacity-0","enter-to-class":"scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"scale-100 opacity-100","leave-to-class":"scale-95 opacity-0"},{default:g(()=>[u(d(ta),{class:A(d(i))},{default:g(()=>[c("div",hx,[F(o.$slots,"default")])]),_:3},8,["class"])]),_:3})],2)]),_:3}))],2)}}};var yx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vx});const bx={setup(s){return(r,i)=>(l(),T(d(ia),sa(na(r.$attrs)),{default:g(({active:a})=>[c("a",{href:"#",class:A([a?"bg-gray-100 text-gray-900":"text-gray-700","group flex items-center px-4 py-2 text-sm font-normal"])},[F(r.$slots,"default",{active:a})],2)]),_:3},16))}};var kx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bx});const wx={class:"flex flex-col items-center justify-center mt-16"},xx={class:"flex flex-col items-center justify-center"},zx={class:"mt-2"},Sx={class:"font-medium"},jx={class:"mt-2"},Px={class:"text-gray-500"},Dx={class:"mt-6"},Cx={props:{title:{type:String,default:String},description:{type:String,default:String}},setup(s){return(r,i)=>(l(),_("div",wx,[c("div",xx,[F(r.$slots,"default")]),c("div",zx,[c("label",Sx,w(s.title),1)]),c("div",jx,[c("label",Px,w(s.description),1)]),c("div",Dx,[F(r.$slots,"actions")])]))}};var Ax=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Cx});const Ex={class:"rounded-md bg-red-50 p-4"},Nx={class:"flex"},Tx={class:"shrink-0"},Ix={class:"ml-3"},$x={class:"text-sm font-medium text-red-800"},Rx={class:"mt-2 text-sm text-red-700"},Fx={role:"list",class:"list-disc pl-5 space-y-1"},Mx={props:{errorTitle:{type:String,default:"There were some errors with your submission"},errors:{type:Array,default:null}},setup(s){return(r,i)=>(l(),_("div",Ex,[c("div",Nx,[c("div",Tx,[u(d(oa),{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),c("div",Ix,[c("h3",$x,w(s.errorTitle),1),c("div",Rx,[c("ul",Fx,[(l(!0),_(Q,null,ae(s.errors,(a,t)=>(l(),_("li",{key:t},w(a),1))),128))])])])])]))}};var Vx=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Mx});const Bx={props:{status:{type:String,required:!1,default:""}},setup(s){const r=s,i=D(()=>{switch(r.status){case"DRAFT":return"bg-yellow-300 bg-opacity-25 px-2  py-1 text-sm  text-yellow-800 uppercase font-normal text-center ";case"SENT":return" bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm  text-yellow-900 uppercase font-normal text-center ";case"VIEWED":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";case"EXPIRED":return"bg-red-300 bg-opacity-25 px-2 py-1 text-sm  text-red-800 uppercase font-normal text-center";case"ACCEPTED":return"bg-green-400 bg-opacity-25 px-2 py-1 text-sm  text-green-800 uppercase font-normal text-center";case"REJECTED":return"bg-purple-300 bg-opacity-25 px-2 py-1 text-sm  text-purple-800 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 px-2 py-1 text-sm  text-gray-900 uppercase font-normal text-center"}});return(a,t)=>(l(),_("span",{class:A(d(i))},[F(a.$slots,"default")],2))}};var Ox=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Bx});const Lx=["multiple","name","accept"],Ux={key:0,class:""},Kx=["src"],qx=["onClick"],Zx={key:1,class:"flex flex-col items-center"},Wx={class:"text-xs leading-4 text-center text-gray-400"},Hx=K(" Drag a file here or "),Gx=["onClick"],Yx=K(" to choose a file "),Jx={class:"text-xs leading-4 text-center text-gray-400 mt-2"},Xx={key:2,class:"flex w-full h-full border border-gray-200 rounded"},Qx=["src"],ez={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},tz=c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.25",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),az={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},sz={key:3,class:"flex flex-wrap w-full"},nz=["src"],iz={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},oz=c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.25",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),rz={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},dz=["onClick"],lz={key:4,class:"flex w-full items-center justify-center"},cz=["src"],_z={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},uz=c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[c("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.25",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),mz={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},pz=["onClick"],gz={props:{multiple:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},autoProcess:{type:Boolean,default:!1},uploadUrl:{type:String,default:""},preserveLocalFiles:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},inputFieldName:{type:String,default:"photos"},base64:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]},recommendedText:{type:String,default:""}},emits:["change","remove","update:modelValue"],setup(s,{emit:r}){const i=s;let a=q([]);const t=q([]),n=q(null);q(null),q(null);function e(){a.value=[],i.modelValue&&i.modelValue.length?t.value=[...i.modelValue]:t.value=[]}function o($){return f.post(i.uploadUrl,$).then(I=>I.data).then(I=>I.map(z=>W(R({},z),{url:`/images/${z.id}`})))}function m($){o($).then(I=>{a=[].concat(I)}).catch(I=>{})}function p($){return new Promise((I,z)=>{const V=new FileReader;V.readAsDataURL($),V.onload=()=>I(V.result),V.onerror=L=>z(L)})}function k($,I,z){if(!I.length||(i.multiple?r("change",$,I,z):i.base64?p(I[0]).then(L=>{r("change",$,L,z,I[0])}):r("change",$,I[0],z),i.preserveLocalFiles||(t.value=[]),Array.from(Array(I.length).keys()).forEach(L=>{const G=I[L];Ze.isImageFile(G.type)?p(G).then(me=>{t.value.push({fileObject:G,type:G.type,name:G.name,image:me})}):t.value.push({fileObject:G,type:G.type,name:G.name})}),r("update:modelValue",t.value),!i.autoProcess))return;const V=new FormData;Array.from(Array(I.length).keys()).forEach(L=>{V.append($,I[L],I[L].name)}),m(V)}function x(){n.value&&n.value.click()}function b($){t.value=[],r("remove",$)}function h($){t.value.splice($,1)}function E(){return new URL("/build/img/default-avatar.jpg",self.location)}return ze(()=>{e()}),ge(()=>i.modelValue,$=>{t.value=[...$]}),($,I)=>{const z=C("BaseIcon");return l(),_("form",{enctype:"multipart/form-data",class:A(["relative flex items-center justify-center p-2 border-2 border-dashed rounded-md cursor-pointer avatar-upload border-gray-200 transition-all duration-300 ease-in-out isolate w-full hover:border-gray-300 group min-h-[100px] bg-gray-50",s.avatar?"w-32 h-32":"w-full"])},[c("input",{id:"file-upload",ref:(V,L)=>{L.inputRef=V,n.value=V},type:"file",tabindex:"-1",multiple:s.multiple,name:s.inputFieldName,accept:s.accept,class:"absolute z-10 w-full h-full opacity-0 cursor-pointer",onChange:I[0]||(I[0]=V=>k(V.target.name,V.target.files,V.target.files.length))},null,40,Lx),!t.value.length&&s.avatar?(l(),_("div",Ux,[c("img",{src:E(),class:"rounded",alt:"Default Avatar"},null,8,Kx),c("a",{href:"#",class:"absolute z-30 bg-white rounded-full -bottom-3 -right-3 group",onClick:re(x,["prevent","stop"])},[u(z,{name:"PlusCircleIcon",class:"h-8 text-xl leading-6 text-primary-500 group-hover:text-primary-600"})],8,qx)])):t.value.length?t.value.length&&s.avatar&&!s.multiple?(l(),_("div",Xx,[t.value[0].image?(l(),_("img",{key:0,for:"file-upload",src:t.value[0].image,class:"block object-cover w-full h-full rounded opacity-100",style:{animation:"fadeIn 2s ease"}},null,8,Qx)):(l(),_("div",ez,[tz,t.value[0].name?(l(),_("p",az,w(t.value[0].name),1)):S("",!0)])),c("a",{href:"#",class:"box-border absolute z-30 flex items-center justify-center w-8 h-8 bg-white border border-gray-200 rounded-full shadow-md -bottom-3 -right-3 group hover:border-gray-300",onClick:I[1]||(I[1]=re(V=>b(t.value[0]),["prevent","stop"]))},[u(z,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})])])):t.value.length&&s.multiple?(l(),_("div",sz,[(l(!0),_(Q,null,ae(t.value,(V,L)=>(l(),_("a",{key:V,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:I[2]||(I[2]=re(()=>{},["prevent"]))},[V.image?(l(),_("img",{key:0,for:"file-upload",src:V.image,class:"block object-cover w-20 h-20 opacity-100",style:{animation:"fadeIn 2s ease"}},null,8,nz)):(l(),_("div",iz,[oz,V.name?(l(),_("p",rz,w(V.name),1)):S("",!0)])),c("a",{href:"#",class:"box-border absolute z-30 flex items-center justify-center w-8 h-8 bg-white border border-gray-200 rounded-full shadow-md -bottom-3 -right-3 group hover:border-gray-300",onClick:re(G=>h(L),["prevent","stop"])},[u(z,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,dz)]))),128))])):(l(),_("div",lz,[(l(!0),_(Q,null,ae(t.value,(V,L)=>(l(),_("a",{key:V,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:I[3]||(I[3]=re(()=>{},["prevent"]))},[V.image?(l(),_("img",{key:0,for:"file-upload",src:V.image,class:"block object-contain h-20 opacity-100 min-w-[5rem]",style:{animation:"fadeIn 2s ease"}},null,8,cz)):(l(),_("div",_z,[uz,V.name?(l(),_("p",mz,w(V.name),1)):S("",!0)])),c("a",{href:"#",class:"box-border absolute z-30 flex items-center justify-center w-8 h-8 bg-white border border-gray-200 rounded-full shadow-md -bottom-3 -right-3 group hover:border-gray-300",onClick:re(G=>h(L),["prevent","stop"])},[u(z,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,pz)]))),128))])):(l(),_("div",Zx,[u(z,{name:"CloudUploadIcon",class:"h-6 mb-2 text-xl leading-6 text-gray-400"}),c("p",Wx,[Hx,c("a",{class:"cursor-pointer text-primary-500 hover:text-primary-600 hover:font-medium relative z-20",href:"#",onClick:re(x,["prevent","stop"])}," browse ",8,Gx),Yx]),c("p",Jx,w(s.recommendedText),1)]))],2)}}};var fz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:gz});const hz={class:"relative z-10 p-4 md:p-8 bg-gray-200 rounded"},vz={props:{show:{type:Boolean,default:!1},rowOnXl:{type:Boolean,default:!1}},emits:["clear"],setup(s){return(r,i)=>(l(),T(Ee,{"enter-active-class":"transition duration-500 ease-in-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition ease-in-out","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:g(()=>[xe(c("div",hz,[F(r.$slots,"filter-header"),c("label",{class:"absolute text-sm leading-snug text-gray-900 cursor-pointer hover:text-gray-700 top-2.5 right-3.5",onClick:i[0]||(i[0]=a=>r.$emit("clear"))},w(r.$t("general.clear_all")),1),c("div",{class:A(["flex flex-col space-y-3",s.rowOnXl?"xl:flex-row xl:space-x-4 xl:space-y-0 xl:items-center":"lg:flex-row lg:space-x-4 lg:space-y-0 lg:items-center"])},[F(r.$slots,"default")],2)],512),[[dt,s.show]])]),_:3}))}};var yz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vz});const bz={style:{"font-family":"sans-serif"}},kz={props:{amount:{type:[Number,String],required:!0},currency:{type:Object,default:()=>null}},setup(s){const r=s,i=ra("utils"),a=_e(),t=D(()=>i.formatMoney(r.amount,r.currency||a.selectedCompanyCurrency));return(n,e)=>(l(),_("span",bz,w(d(t)),1))}};var wz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:kz});const xz={viewBox:"0 0 225 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zz=lt('<path d="M211.738 32.1659V27.7768C214.619 24.947 218.409 23.3831 224.397 23.1597V11.6916C218.939 11.6916 214.998 13.4043 211.738 16.1597V12.2873H199.576C199.507 12.9433 199.472 13.609 199.472 14.2828C199.472 22.3755 204.546 29.3041 211.738 32.1659Z" fill="url(#paint0_linear_499_29)"></path><path d="M211.738 36.1165C206.645 34.4592 202.327 31.1297 199.459 26.7902V48.4045H211.738V36.1165Z" fill="url(#paint1_linear_499_29)"></path><path d="M16.0297 48.8865C19.2962 46.1641 21.7924 42.5768 23.1519 38.4848C25.3401 37.6506 26.8605 35.8956 27.2881 33.5853H38.8855C38.0517 42.8939 30.2443 49.2237 20.087 49.2237C18.6861 49.2237 17.3305 49.1085 16.0297 48.8865Z" fill="url(#paint2_linear_499_29)"></path><path d="M20.087 11.4682C17.9247 11.4682 15.8704 11.7426 13.9591 12.26C17.5644 14.6466 20.4567 17.9932 22.2562 21.9269C24.9219 22.5899 26.8043 24.4928 27.2881 27.1065H38.8855C38.0517 17.798 30.2443 11.4682 20.087 11.4682Z" fill="url(#paint3_linear_499_29)"></path><path d="M0 30.3087C0 38.354 4.52386 44.7328 11.4781 47.5909C14.7638 45.5212 17.3803 42.5159 18.9382 38.9578C14.3944 38.4418 11.6732 34.8526 11.6732 30.3087C11.6732 26.0841 14.0253 22.7398 18.0075 21.8837C16.0622 18.4948 13.104 15.7418 9.53648 14.0211C3.69365 17.1959 0 23.0881 0 30.3087Z" fill="url(#paint4_linear_499_29)"></path><path d="M69.9096 23.1597V11.6916C64.452 11.6916 60.5104 13.4043 57.251 16.1597V12.2873H44.9714V48.4045H57.251V27.7768C60.1314 24.947 63.9214 23.3831 69.9096 23.1597Z" fill="url(#paint5_linear_499_29)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M113.912 48.4045V12.2873H101.633V14.2235C98.9038 12.5107 95.5686 11.4682 91.5512 11.4682C81.6214 11.4682 73.2833 19.5108 73.2833 30.3087C73.2833 41.0322 81.6214 49.1492 91.5512 49.1492C95.5686 49.1492 98.9038 48.1067 101.633 46.3939V48.4045H113.912ZM93.9768 39.2449C88.974 39.2449 85.3356 35.2981 85.3356 30.3087C85.3356 25.3193 88.974 21.298 93.9768 21.298C96.7056 21.298 99.3586 22.1172 101.633 24.7236V35.8938C99.3586 38.5002 96.7056 39.2449 93.9768 39.2449Z" fill="url(#paint6_linear_499_29)"></path><path d="M151.738 47.7343L150.374 37.5321C147.645 38.0534 145.598 38.4258 143.855 38.4258C140.217 38.4258 138.094 36.6385 138.094 32.9896V22.6384H150.601V12.2873H138.094V0H125.815V12.2873H118.614V22.6384H125.815V33.3619C125.815 43.1173 131.727 49.5216 140.596 49.5216C144.234 49.5216 146.963 49.2237 151.738 47.7343Z" fill="url(#paint7_linear_499_29)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M193.36 29.564C193.36 18.6916 185.25 11.4682 174.562 11.4682C162.813 11.4682 155.005 19.3618 155.005 30.3087C155.005 41.33 163.04 49.2237 175.092 49.2237C184.188 49.2237 191.238 44.5322 192.981 37.0853H180.853C179.792 38.7236 177.821 39.6917 175.244 39.6917C170.544 39.6917 167.967 37.1598 166.982 33.8832H193.209L193.133 33.6598C193.36 32.3193 193.36 30.9044 193.36 29.564ZM174.562 20.7767C178.503 20.7767 181.156 22.8618 181.839 26.8087H166.83C167.74 23.1597 170.393 20.7767 174.562 20.7767Z" fill="url(#paint8_linear_499_29)"></path>',9),Sz={id:"paint0_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},jz=["stop-color"],Pz=["stop-color"],Dz={id:"paint1_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Cz=["stop-color"],Az=["stop-color"],Ez={id:"paint2_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Nz=["stop-color"],Tz=["stop-color"],Iz={id:"paint3_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},$z=["stop-color"],Rz=["stop-color"],Fz={id:"paint4_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Mz=["stop-color"],Vz=["stop-color"],Bz={id:"paint5_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Oz=["stop-color"],Lz=["stop-color"],Uz={id:"paint6_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Kz=["stop-color"],qz=["stop-color"],Zz={id:"paint7_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Wz=["stop-color"],Hz=["stop-color"],Gz={id:"paint8_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},Yz=["stop-color"],Jz=["stop-color"],Xz={props:{darkColor:{type:String,default:"rgba(var(--color-primary-500), var(--tw-text-opacity))"},lightColor:{type:String,default:"rgba(var(--color-primary-400), var(--tw-text-opacity))"}},setup(s){return(r,i)=>(l(),_("svg",xz,[zz,c("defs",null,[c("linearGradient",Sz,[c("stop",{"stop-color":s.darkColor},null,8,jz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Pz)]),c("linearGradient",Dz,[c("stop",{"stop-color":s.darkColor},null,8,Cz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Az)]),c("linearGradient",Ez,[c("stop",{"stop-color":s.darkColor},null,8,Nz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Tz)]),c("linearGradient",Iz,[c("stop",{"stop-color":s.darkColor},null,8,$z),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Rz)]),c("linearGradient",Fz,[c("stop",{"stop-color":s.darkColor},null,8,Mz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Vz)]),c("linearGradient",Bz,[c("stop",{"stop-color":s.darkColor},null,8,Oz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Lz)]),c("linearGradient",Uz,[c("stop",{"stop-color":s.darkColor},null,8,Kz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,qz)]),c("linearGradient",Zz,[c("stop",{"stop-color":s.darkColor},null,8,Wz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Hz)]),c("linearGradient",Gz,[c("stop",{"stop-color":s.darkColor},null,8,Yz),c("stop",{offset:"1","stop-color":s.lightColor},null,8,Jz)])])]))}};const Qz={class:"flex flex-col items-center justify-center h-screen h-screen-ios"},eS={class:"loader loader-white"},tS=lt('<div class="loader-spined"><div class="loader--icon"><svg class="offset-45deg text-primary-500" width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.9053 1.75122C25.8037 1.44653 25.5498 1.19263 25.2451 1.09106C23.6201 0.735596 22.3506 0.735596 21.0811 0.735596C15.8506 0.735596 12.7021 3.57935 10.3662 7.2356L5.03418 7.2356C4.22168 7.28638 3.25684 7.84497 2.85059 8.60669L0.362305 13.634C0.311523 13.7864 0.260742 13.9895 0.260742 14.1418C0.260742 14.8528 0.768555 15.3606 1.47949 15.3606H6.70996L5.59277 16.5286C4.9834 17.0872 4.93262 18.1536 5.59277 18.8137L8.18262 21.4036C8.74121 21.9622 9.80762 22.0637 10.4678 21.4036L11.585 20.2864V25.5168C11.6357 26.2278 12.1436 26.7356 12.8545 26.7356C13.0068 26.7356 13.21 26.6848 13.3623 26.634L18.3896 24.1458C19.1514 23.7395 19.71 22.7747 19.71 21.9622V16.6301C23.417 14.2942 26.21 11.1458 26.21 5.91528C26.2607 4.64575 26.2607 3.37622 25.9053 1.75122ZM19.7607 9.26685C18.5928 9.26685 17.7295 8.40356 17.7295 7.2356C17.7295 6.11841 18.5928 5.20435 19.7607 5.20435C20.8779 5.20435 21.792 6.11841 21.792 7.2356C21.792 8.40356 20.8779 9.26685 19.7607 9.26685Z" fill="currentColor"></path></svg></div></div><div class="pufs text-primary-500"><i class="text-primary-500"></i><i></i><i></i> <i></i><i></i><i></i><i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i></div><div class="particles text-primary-500"><i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i> <i></i><i></i><i></i></div>',3),aS={props:{showBgOverlay:{default:!1,type:Boolean}},setup(s){return(r,i)=>(l(),_("div",Qz,[c("div",eS,[tS,u(Xz,{class:"absolute block h-auto max-w-full transform -translate-x-1/2 -translate-y-1/2 w-28 text-primary-400 top-1/2 left-1/2",alt:"Crater Logo"})])]))}};var sS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:aS});const nS={props:{type:{type:String,default:"section-title",validator:function(s){return["section-title","heading-title"].indexOf(s)!==-1}}},setup(s){const r=s,i=D(()=>({"text-gray-900 text-lg font-medium":r.type==="heading-title","text-gray-500 uppercase text-base":r.type==="section-title"}));return(a,t)=>(l(),_("h6",{class:A(d(i))},[F(a.$slots,"default")],2))}};var iS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nS});const oS={props:{name:{type:String,required:!0}},setup(s){const r=q(!1);return ze(()=>{r.value=!0}),(i,a)=>r.value?(l(),T(da(d(la)[s.name]),{key:0,class:"h-5 w-5"})):S("",!0)}};var rS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:oS});const dS={class:"rounded-md bg-yellow-50 p-4 relative"},lS={class:"flex flex-col"},cS={class:"flex"},_S={class:"shrink-0"},uS={class:"ml-3"},mS={class:"text-sm font-medium text-yellow-800"},pS={class:"mt-2 text-sm text-yellow-700"},gS={role:"list",class:"list-disc pl-5 space-y-1"},fS={key:0,class:"mt-4 ml-3"},hS={class:"-mx-2 -my-1.5 flex flex-row-reverse"},vS=["onClick"],yS={props:{title:{type:String,default:"There were some errors with your submission"},lists:{type:Array,default:null},actions:{type:Array,default:()=>["Dismiss"]}},emits:["hide"],setup(s,{emit:r}){return(i,a)=>{const t=C("BaseIcon");return l(),_("div",dS,[u(t,{name:"XIcon",class:"h-5 w-5 text-yellow-500 absolute right-4 cursor-pointer",onClick:a[0]||(a[0]=n=>i.$emit("hide"))}),c("div",lS,[c("div",cS,[c("div",_S,[u(t,{name:"ExclamationIcon",class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),c("div",uS,[c("h3",mS,w(s.title),1),c("div",pS,[c("ul",gS,[(l(!0),_(Q,null,ae(s.lists,(n,e)=>(l(),_("li",{key:e},w(n),1))),128))])])])]),s.actions.length?(l(),_("div",fS,[c("div",hS,[(l(!0),_(Q,null,ae(s.actions,(n,e)=>(l(),_("button",{key:e,type:"button",class:"bg-yellow-50 px-2 py-1.5 rounded-md text-sm font-medium text-yellow-800 hover:bg-yellow-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-yellow-50 focus:ring-yellow-600 mr-3",onClick:o=>i.$emit(`${n}`)},w(n),9,vS))),128))])])):S("",!0)])])}}};var bS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:yS});const kS={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},wS=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),xS=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),zS=[wS,xS],SS={key:1,class:"absolute inset-y-0 left-0 flex items-center pl-3"},jS={key:2,class:"inline-flex items-center px-3 text-gray-500 border border-r-0 border-gray-200 rounded-l-md bg-gray-50 sm:text-sm"},PS={key:3,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},DS={class:"text-gray-500 sm:text-sm"},CS=["type","value","disabled"],AS={key:4,class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"},ES=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),NS=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),TS=[ES,NS],IS={key:5,class:"absolute inset-y-0 right-0 flex items-center pr-3"},$S={props:{contentLoading:{type:Boolean,default:!1},type:{type:[Number,String],default:"text"},modelValue:{type:[String,Number],default:""},loading:{type:Boolean,default:!1},loadingPosition:{type:String,default:"left"},addon:{type:String,default:null},inlineAddon:{type:String,default:""},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},containerClass:{type:String,default:""},contentLoadClass:{type:String,default:""},defaultInputClass:{type:String,default:"font-base block w-full sm:text-sm border-gray-200 rounded-md text-black"},iconLeftClass:{type:String,default:"h-5 w-5 text-gray-400"},iconRightClass:{type:String,default:"h-5 w-5 text-gray-400"},modelModifiers:{default:()=>({})}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s;q(!1);const a=pe(),t=D(()=>!!a.left||i.loading&&i.loadingPosition==="left"),n=D(()=>!!a.right||i.loading&&i.loadingPosition==="right"),e=D(()=>t.value&&n.value?"px-10":t.value?"pl-10":n.value?"pr-10":""),o=D(()=>i.addon?"flex-1 min-w-0 block w-full px-3 py-2 !rounded-none !rounded-r-md":i.inlineAddon?"pl-7":""),m=D(()=>i.invalid?"border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500":"focus:ring-primary-400 focus:border-primary-400"),p=D(()=>i.disabled?"border-gray-100 bg-gray-100 !text-gray-400 ring-gray-200 focus:ring-gray-200 focus:border-gray-100":""),k=D(()=>{let b=`${i.containerClass} `;return i.addon?`${i.containerClass} flex`:b});function x(b){let h=b.target.value;i.modelModifiers.uppercase&&(h=h.toUpperCase()),r("update:modelValue",h)}return(b,h)=>{const E=C("BaseContentPlaceholdersBox"),$=C("BaseContentPlaceholders");return s.contentLoading?(l(),T($,{key:0},{default:g(()=>[u(E,{rounded:!0,class:A(`w-full ${s.contentLoadClass}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:A([[s.containerClass,d(k)],"relative rounded-md shadow-sm font-base"])},[s.loading&&s.loadingPosition==="left"?(l(),_("div",kS,[(l(),_("svg",{class:A(["animate-spin !text-primary-500",[s.iconLeftClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},zS,2))])):d(t)?(l(),_("div",SS,[F(b.$slots,"left",{class:A(s.iconLeftClass)})])):S("",!0),s.addon?(l(),_("span",jS,w(s.addon),1)):S("",!0),s.inlineAddon?(l(),_("div",PS,[c("span",DS,w(s.inlineAddon),1)])):S("",!0),c("input",le(b.$attrs,{type:s.type,value:s.modelValue,disabled:s.disabled,class:[s.defaultInputClass,d(e),d(o),d(m),d(p)],onInput:x}),null,16,CS),s.loading&&s.loadingPosition==="right"?(l(),_("div",AS,[(l(),_("svg",{class:A(["animate-spin !text-primary-500",[s.iconRightClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},TS,2))])):S("",!0),d(n)?(l(),_("div",IS,[F(b.$slots,"right",{class:A(s.iconRightClass)})])):S("",!0)],2))}}};var RS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$S});const FS={props:{layout:{type:String,default:"two-column"}},setup(s){const r=s,i=D(()=>r.layout==="two-column"?"grid gap-y-6 gap-x-4 grid-cols-1 md:grid-cols-2":"grid gap-y-6 gap-x-4 grid-cols-1");return(a,t)=>(l(),_("div",{class:A(d(i))},[F(a.$slots,"default")],2))}};var MS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:FS});const VS={class:"text-sm text-red-500"},BS={key:0,class:"text-gray-500 text-xs mt-1 font-light"},OS={key:1,class:"block mt-0.5 text-sm text-red-500"},LS={props:{contentLoading:{type:Boolean,default:!1},contentLoadClass:{type:String,default:"w-16 h-5"},label:{type:String,default:""},variant:{type:String,default:"vertical"},error:{type:[String,Boolean],default:null},required:{type:Boolean,default:!1},tooltip:{type:String,default:null,required:!1},helpText:{type:String,default:null,required:!1}},setup(s){const r=s,i=D(()=>r.variant==="horizontal"?"grid md:grid-cols-12 items-center":""),a=D(()=>r.variant==="horizontal"?"relative pr-0 pt-1 mr-3 text-sm md:col-span-4 md:text-right mb-1  md:mb-0":""),t=D(()=>r.variant==="horizontal"?"md:col-span-8 md:col-start-5 md:col-ends-12":"flex flex-col mt-1"),n=pe(),e=D(()=>!!n.labelRight);return(o,m)=>{const p=C("BaseContentPlaceholdersText"),k=C("BaseContentPlaceholders"),x=C("BaseIcon"),b=et("tooltip");return l(),_("div",{class:A([d(i),"relative w-full text-left"])},[s.contentLoading?(l(),T(k,{key:0},{default:g(()=>[u(p,{lines:1,class:A(s.contentLoadClass)},null,8,["class"])]),_:1})):s.label?(l(),_("label",{key:1,class:A([d(a),"flex text-sm not-italic items-center font-medium text-gray-800 whitespace-nowrap justify-between"])},[c("div",null,[K(w(s.label)+" ",1),xe(c("span",VS," * ",512),[[dt,s.required]])]),d(e)?F(o.$slots,"labelRight",{key:0}):S("",!0),s.tooltip?xe((l(),T(x,{key:1,name:"InformationCircleIcon",class:"h-4 text-gray-400 cursor-pointer hover:text-gray-600"},null,512)),[[b,{content:s.tooltip}]]):S("",!0)],2)):S("",!0),c("div",{class:A(d(t))},[F(o.$slots,"default"),s.helpText?(l(),_("span",BS,w(s.helpText),1)):S("",!0),s.error?(l(),_("span",OS,w(s.error),1)):S("",!0)],2)],2)}}};var US=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:LS});const KS={props:{status:{type:String,required:!1,default:""}},setup(s){return{badgeColorClasses:D(()=>{switch(s.status){case"DRAFT":return"bg-yellow-300 bg-opacity-25 px-2  py-1 text-sm  text-yellow-800 uppercase font-normal text-center";case"SENT":return" bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm  text-yellow-900 uppercase font-normal text-center ";case"VIEWED":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";case"COMPLETED":return"bg-green-500 bg-opacity-25 px-2  py-1 text-sm  text-green-900 uppercase font-normal text-center";case"DUE":return"bg-yellow-500 bg-opacity-25 px-2  py-1 text-sm  text-yellow-900 uppercase font-normal text-center";case"OVERDUE":return"bg-red-300 bg-opacity-50 px-2  py-1 text-sm  text-red-900 uppercase font-normal text-center";case"UNPAID":return"bg-yellow-500 bg-opacity-25 px-2 py-1 text-sm  text-yellow-900 uppercase font-normal text-center";case"PARTIALLY_PAID":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";case"PAID":return"bg-green-500 bg-opacity-25 px-2 py-1 text-sm  text-green-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 px-2 py-1 text-sm  text-gray-900 uppercase font-normal text-center"}})}}};function qS(s,r,i,a,t,n){return l(),_("span",{class:A(a.badgeColorClasses)},[F(s.$slots,"default")],2)}var ZS=ee(KS,[["render",qS]]),WS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ZS});const HS={class:"flex-1 text-sm"},GS={key:0,class:"relative flex items-center h-10 pl-2 bg-gray-200 border border-gray-200 border-solid rounded"},YS={class:"w-full pt-1 text-xs text-light"},JS={key:0},XS={class:"text-red-600"},QS={props:{contentLoading:{type:Boolean,default:!1},type:{type:String,default:null},item:{type:Object,required:!0},index:{type:Number,default:0},invalid:{type:Boolean,required:!1,default:!1},invalidDescription:{type:Boolean,required:!1,default:!1},taxPerItem:{type:String,default:""},taxes:{type:Array,default:null},store:{type:Object,default:null},storeProp:{type:String,default:""}},emits:["search","select"],setup(s,{emit:r}){const i=s,a=Fe();He(),Me();const t=Pe(),n=je();fe();const{t:e}=Se(),o=q(null);q(!1);let m=Be(R({},i.item));Object.assign(m,i.item),D(()=>0);const p=D({get:()=>i.item.description,set:h=>{i.store[i.storeProp].items[i.index].description=h}});async function k(h){return(await a.fetchItems({search:h})).data.data}function x(){t.openModal({title:e("items.add_item"),componentName:"ItemModal",refreshData:h=>r("select",h),data:{taxPerItem:i.taxPerItem,taxes:i.taxes,itemIndex:i.index,store:i.store,storeProps:i.storeProp}})}function b(h){i.store.deselectItem(h)}return(h,E)=>{const $=C("BaseIcon"),I=C("BaseSelectAction"),z=C("BaseMultiselect"),V=C("BaseTextarea");return l(),_("div",HS,[s.item.item_id?(l(),_("div",GS,[K(w(s.item.name)+" ",1),c("span",{class:"absolute text-gray-400 cursor-pointer top-[8px] right-[10px]",onClick:E[0]||(E[0]=L=>b(s.index))},[u($,{name:"XCircleIcon"})])])):(l(),T(z,{key:1,modelValue:o.value,"onUpdate:modelValue":[E[1]||(E[1]=L=>o.value=L),E[2]||(E[2]=L=>h.$emit("select",L))],"content-loading":s.contentLoading,"value-prop":"id","track-by":"id",invalid:s.invalid,"preserve-search":"","initial-search":d(m).name,label:"name",filterResults:!1,"resolve-on-load":"",delay:500,searchable:"",options:k,object:"",onSearchChange:E[3]||(E[3]=L=>h.$emit("search",L))},{action:g(()=>[d(n).hasAbilities(d(O).CREATE_ITEM)?(l(),T(I,{key:0,onClick:x},{default:g(()=>[u($,{name:"PlusCircleIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),K(" "+w(h.$t("general.add_new_item")),1)]),_:1})):S("",!0)]),_:1},8,["modelValue","content-loading","invalid","initial-search"])),c("div",YS,[u(V,{modelValue:d(p),"onUpdate:modelValue":E[4]||(E[4]=L=>J(p)?p.value=L:null),"content-loading":s.contentLoading,autosize:!0,class:"text-xs",borderless:!0,placeholder:h.$t("estimates.item.type_item_description"),invalid:s.invalidDescription},null,8,["modelValue","content-loading","placeholder","invalid"]),s.invalidDescription?(l(),_("div",JS,[c("span",XS,w(h.$tc("validation.description_maxlength")),1)])):S("",!0)])])}}};var ej=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:QS});const tj={},aj={class:"text-sm not-italic font-medium leading-5 text-primary-800"};function sj(s,r){return l(),_("label",aj,[F(s.$slots,"default")])}var nj=ee(tj,[["render",sj]]),ij=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nj});const oj={class:"flex items-end justify-center min-h-screen min-h-screen-ios px-4 text-center sm:block sm:px-2"},rj=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen sm:h-screen-ios","aria-hidden":"true"},"\u200B",-1),dj={key:0,class:"flex items-center justify-between px-6 py-4 text-lg font-medium text-black border-b border-gray-200 border-solid"},lj={props:{show:{type:Boolean,default:!1}},emits:["close","open"],setup(s,{emit:r}){const i=s,a=pe(),t=Pe();rt(()=>{i.show&&r("open",i.show)});const n=D(()=>{switch(t.size){case"sm":return"sm:max-w-2xl w-full";case"md":return"sm:max-w-4xl w-full";case"lg":return"sm:max-w-6xl w-full";default:return"sm:max-w-2xl w-full"}}),e=D(()=>!!a.header);return(o,m)=>(l(),T(ca,{to:"body"},[u(d(ot),{appear:"",as:"template",show:s.show},{default:g(()=>[u(d(it),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:s.show,onClose:m[0]||(m[0]=p=>o.$emit("close"))},{default:g(()=>[c("div",oj,[u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:g(()=>[u(d(nt),{class:"fixed inset-0 transition-opacity bg-gray-700 bg-opacity-25"})]),_:1}),rj,u(d(Ne),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:g(()=>[c("div",{class:A(`inline-block
              border-t-8 border-solid rounded shadow-xl  border-primary-500`)},[d(e)?(l(),_("div",dj,[F(o.$slots,"header")])):S("",!0),F(o.$slots,"default"),F(o.$slots,"footer")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"])]))}};var cj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lj});const _j={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:[String,Number],required:!0,default:""},invalid:{type:Boolean,default:!1},inputClass:{type:String,default:"font-base block w-full sm:text-sm border-gray-200 rounded-md text-black"},disabled:{type:Boolean,default:!1},percent:{type:Boolean,default:!1},currency:{type:Object,default:null}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s;let a=_a;const t=_e();let n=!1;const e=D({get:()=>i.modelValue,set:p=>{if(!n){n=!0;return}r("update:modelValue",p)}}),o=D(()=>{const p=i.currency?i.currency:t.selectedCompanyCurrency;return{decimal:p.decimal_separator,thousands:p.thousand_separator,prefix:p.symbol+" ",precision:p.precision,masked:!1}}),m=D(()=>i.invalid?"border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500":"focus:ring-primary-400 focus:border-primary-400");return(p,k)=>{const x=C("BaseContentPlaceholdersBox"),b=C("BaseContentPlaceholders");return s.contentLoading?(l(),T(b,{key:0},{default:g(()=>[u(x,{rounded:!0,class:"w-full",style:{height:"38px"}})]),_:1})):(l(),T(d(a),le({key:1,modelValue:d(e),"onUpdate:modelValue":k[0]||(k[0]=h=>J(e)?e.value=h:null)},d(o),{class:[s.inputClass,d(m)],disabled:s.disabled}),null,16,["modelValue","class","disabled"]))}}};var uj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_j});const mj={props:{sucess:{type:Boolean,default:!1}},setup(s){return(r,i)=>(l(),_("span",{class:A([s.sucess?"bg-green-100 text-green-700 ":"bg-red-100 text-red-700","px-2 py-1 text-sm font-normal text-center uppercase"])},[F(r.$slots,"default")],2))}};var pj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:mj});const gj={},fj={class:"flex-1 p-4 md:p-8 flex flex-col"};function hj(s,r){return l(),_("div",fj,[F(s.$slots,"default")])}var vj=ee(gj,[["render",hj]]),yj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vj});const bj={class:"flex flex-wrap justify-between"},kj={class:"text-2xl font-bold text-left text-black"},wj={class:"flex items-center"},xj={props:{title:{type:[String],default:"",required:!0}},setup(s){return(r,i)=>(l(),_("div",bj,[c("div",null,[c("h3",kj,w(s.title),1),F(r.$slots,"default")]),c("div",wj,[F(r.$slots,"actions")])]))}};var zj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:xj});const Sj={props:{status:{type:String,required:!1,default:""},defaultClass:{type:String,default:"px-1 py-0.5 text-xs"}},setup(s){return{badgeColorClasses:D(()=>{switch(s.status){case"PAID":return"bg-primary-300 bg-opacity-25 text-primary-800 uppercase font-normal text-center";case"UNPAID":return" bg-yellow-500 bg-opacity-25 text-yellow-900 uppercase font-normal text-center ";case"PARTIALLY_PAID":return"bg-blue-400 bg-opacity-25 text-blue-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 text-gray-900 uppercase font-normal text-center"}})}}};function jj(s,r,i,a,t,n){return l(),_("span",{class:A([[a.badgeColorClasses,i.defaultClass],""])},[F(s.$slots,"default")],2)}var Pj=ee(Sj,[["render",jj]]),Dj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Pj});const Cj=K(" Privacy setting "),Aj={class:"-space-y-px rounded-md"},Ej={class:"relative flex cursor-pointer focus:outline-none"},Nj=c("span",{class:"rounded-full bg-white w-1.5 h-1.5"},null,-1),Tj=[Nj],Ij={class:"flex flex-col ml-3"},$j={props:{id:{type:[String,Number],required:!1,default:()=>`radio_${Math.random().toString(36).substr(2,9)}`},label:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},name:{type:[String,Number],default:""},checkedStateClass:{type:String,default:"bg-primary-600"},unCheckedStateClass:{type:String,default:"bg-white "},optionGroupActiveStateClass:{type:String,default:"ring-2 ring-offset-2 ring-primary-500"},checkedStateLabelClass:{type:String,default:"text-primary-900 "},unCheckedStateLabelClass:{type:String,default:"text-gray-900"},optionGroupClass:{type:String,default:"h-4 w-4 mt-0.5 cursor-pointer rounded-full border flex items-center justify-center"},optionGroupLabelClass:{type:String,default:"block text-sm font-light"}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=D({get:()=>i.modelValue,set:t=>r("update:modelValue",t)});return(t,n)=>(l(),T(d(ma),{modelValue:d(a),"onUpdate:modelValue":n[0]||(n[0]=e=>J(a)?a.value=e:null)},{default:g(()=>[u(d(ct),{class:"sr-only"},{default:g(()=>[Cj]),_:1}),c("div",Aj,[u(d(ua),le({id:s.id,as:"template",value:s.value,name:s.name},t.$attrs),{default:g(({checked:e,active:o})=>[c("div",Ej,[c("span",{class:A([e?s.checkedStateClass:s.unCheckedStateClass,o?s.optionGroupActiveStateClass:"",s.optionGroupClass]),"aria-hidden":"true"},Tj,2),c("div",Ij,[u(d(ct),{as:"span",class:A([e?s.checkedStateLabelClass:s.unCheckedStateLabelClass,s.optionGroupLabelClass])},{default:g(()=>[K(w(s.label),1)]),_:2},1032,["class"])])])]),_:1},16,["id","value","name"])])]),_:1},8,["modelValue"]))}};var Rj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$j});const Fj={name:"StarsRating",components:{},directives:{},props:{config:{type:Object,default:null},rating:{type:[Number],default:0}},data:function(){return{stars:[],emptyStar:0,fullStar:1,totalStars:5,isIndicatorActive:!1,style:{fullStarColor:"#F1C644",emptyStarColor:"#D4D4D4",starWidth:20,starHeight:20}}},computed:{getStarPoints:function(){let s=this.style.starWidth/2,r=this.style.starHeight/2,i=5,a=this.style.starWidth/i,n=a*2.5;return this.calcStarPoints(s,r,i,a,n)}},created(){this.initStars(),this.setStars(),this.setConfigData()},methods:{calcStarPoints(s,r,i,a,t){let n=Math.PI/i,e=60,o=i*2,m="";for(let p=0;p<o;p++){let x=p%2==0?t:a,b=s+Math.cos(p*n+e)*x,h=r+Math.sin(p*n+e)*x;m+=b+","+h+" "}return m},initStars(){for(let s=0;s<this.totalStars;s++)this.stars.push({raw:this.emptyStar,percent:this.emptyStar+"%"})},setStars(){let s=Math.floor(this.rating);for(let r=0;r<this.stars.length;r++)if(s!==0)this.stars[r].raw=this.fullStar,this.stars[r].percent=this.calcStarFullness(this.stars[r]),s--;else{let i=Math.round(this.rating%1*10)/10,a=Math.round(i*10)/10;return this.stars[r].raw=a,this.stars[r].percent=this.calcStarFullness(this.stars[r])}},setConfigData(){this.config&&(this.setBindedProp(this.style,this.config.style,"fullStarColor"),this.setBindedProp(this.style,this.config.style,"emptyStarColor"),this.setBindedProp(this.style,this.config.style,"starWidth"),this.setBindedProp(this.style,this.config.style,"starHeight"),this.config.isIndicatorActive&&(this.isIndicatorActive=this.config.isIndicatorActive),console.log("isIndicatorActive: ",this.isIndicatorActive))},getFullFillColor(s){return s.raw!==this.emptyStar?this.style.fullStarColor:this.style.emptyStarColor},calcStarFullness(s){return s.raw*100+"%"},setBindedProp(s,r,i){r[i]&&(s[i]=r[i])}}},Mj={class:"star-rating"},Vj=["title"],Bj=["points"],Oj=["id"],Lj=["offset","stop-color"],Uj=["offset","stop-color"],Kj=["offset","stop-color"],qj=["stop-color"],Zj={key:0,class:"indicator"};function Wj(s,r,i,a,t,n){return l(),_("div",Mj,[(l(!0),_(Q,null,ae(s.stars,(e,o)=>(l(),_("div",{key:o,title:i.rating,class:"star-container"},[(l(),_("svg",{style:Ce([{fill:`url(#gradient${e.raw})`},{width:s.style.starWidth},{height:s.style.starHeight}]),class:"star-svg"},[c("polygon",{points:n.getStarPoints,style:{"fill-rule":"nonzero"}},null,8,Bj),c("defs",null,[c("linearGradient",{id:`gradient${e.raw}`},[c("stop",{id:"stop1",offset:e.percent,"stop-color":n.getFullFillColor(e),"stop-opacity":"1"},null,8,Lj),c("stop",{id:"stop2",offset:e.percent,"stop-color":n.getFullFillColor(e),"stop-opacity":"0"},null,8,Uj),c("stop",{id:"stop3",offset:e.percent,"stop-color":s.style.emptyStarColor,"stop-opacity":"1"},null,8,Kj),c("stop",{id:"stop4","stop-color":s.style.emptyStarColor,offset:"100%","stop-opacity":"1"},null,8,qj)],8,Oj)])],4))],8,Vj))),128)),s.isIndicatorActive?(l(),_("div",Zj,w(i.rating),1)):S("",!0)])}var Hj=ee(Fj,[["render",Wj],["__scopeId","data-v-52311750"]]),Gj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Hj});const Yj={props:{status:{type:String,required:!1,default:""}},setup(s){return{badgeColorClasses:D(()=>{switch(s.status){case"COMPLETED":return"bg-green-500 bg-opacity-25 px-2  py-1 text-sm  text-green-900 uppercase font-normal text-center";case"ON_HOLD":return"bg-yellow-500 bg-opacity-25 px-2  py-1 text-sm  text-yellow-900 uppercase font-normal text-center";case"ACTIVE":return"bg-blue-400 bg-opacity-25 px-2  py-1 text-sm  text-blue-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 px-2 py-1 text-sm  text-gray-900 uppercase font-normal text-center"}})}}};function Jj(s,r,i,a,t,n){return l(),_("span",{class:A(a.badgeColorClasses)},[F(s.$slots,"default")],2)}var Xj=ee(Yj,[["render",Jj]]),Qj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Xj});const eP={},tP={class:"flex flex-col"},aP={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},sP={class:"py-2 align-middle inline-block min-w-full sm:px-4 lg:px-6"},nP={class:"overflow-hidden sm:px-2 lg:p-2"};function iP(s,r){return l(),_("div",tP,[c("div",aP,[c("div",sP,[c("div",nP,[F(s.$slots,"default")])])])])}var oP=ee(eP,[["render",iP]]),rP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:oP});const dP={},lP={class:"flex items-center justify-center w-full px-6 py-2 text-sm bg-gray-200 cursor-pointer text-primary-400"};function cP(s,r){return l(),_("div",lP,[F(s.$slots,"default")])}var _P=ee(dP,[["render",cP]]),uP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_P});const mP={class:"relative"},pP={key:0,class:"block truncate"},gP={key:1,class:"block text-gray-400 truncate"},fP={key:2,class:"block text-gray-400 truncate"},hP={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},vP={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:""},options:{type:Array,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},labelKey:{type:[String],default:"label"},valueProp:{type:String,default:null},multiple:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s;let a=q(i.modelValue);function t(e){return typeof e=="object"&&e!==null}function n(e){return t(e)?e[i.labelKey]:e}return ge(()=>i.modelValue,()=>{i.valueProp&&i.options.length?a.value=i.options.find(e=>{if(e[i.valueProp])return e[i.valueProp]===i.modelValue}):a.value=i.modelValue}),ge(a,e=>{i.valueProp?r("update:modelValue",e[i.valueProp]):r("update:modelValue",e)}),(e,o)=>{const m=C("BaseContentPlaceholdersBox"),p=C("BaseContentPlaceholders"),k=C("BaseIcon");return s.contentLoading?(l(),T(p,{key:0},{default:g(()=>[u(m,{rounded:!0,class:"w-full h-10"})]),_:1})):(l(),T(d(va),le({key:1,modelValue:d(a),"onUpdate:modelValue":o[0]||(o[0]=x=>J(a)?a.value=x:a=x),as:"div"},R({},e.$attrs)),{default:g(()=>[s.label?(l(),T(d(pa),{key:0,class:"block text-sm not-italic font-medium text-gray-800 mb-0.5"},{default:g(()=>[K(w(s.label),1)]),_:1})):S("",!0),c("div",mP,[u(d(ga),{class:"relative w-full py-2 pl-3 pr-10 text-left bg-white border border-gray-200 rounded-md shadow-sm cursor-default focus:outline-none focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm"},{default:g(()=>[n(d(a))?(l(),_("span",pP,w(n(d(a))),1)):s.placeholder?(l(),_("span",gP,w(s.placeholder),1)):(l(),_("span",fP," Please select an option ")),c("span",hP,[u(k,{name:"SelectorIcon",class:"text-gray-400","aria-hidden":"true"})])]),_:1}),u(Ee,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:g(()=>[u(d(fa),{class:"absolute z-10 w-full py-1 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:g(()=>[(l(!0),_(Q,null,ae(s.options,x=>(l(),T(d(ha),{key:x.id,value:x,as:"template"},{default:g(({active:b,selected:h})=>[c("li",{class:A([b?"text-white bg-primary-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[c("span",{class:A([h?"font-semibold":"font-normal","block truncate"])},w(n(x)),3),h?(l(),_("span",{key:0,class:A([b?"text-white":"text-primary-600","absolute inset-y-0 right-0 flex items-center pr-4"])},[u(k,{name:"CheckIcon","aria-hidden":"true"})],2)):S("",!0)],2)]),_:2},1032,["value"]))),128)),F(e.$slots,"default")]),_:3})]),_:3})])]),_:3},16,["modelValue"]))}}};var yP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vP});const bP={class:"flex flex-wrap justify-between lg:flex-nowrap mb-5"},kP={class:"font-medium text-lg text-left"},wP={class:"mt-2 text-sm leading-snug text-left text-gray-500 max-w-[680px]"},xP={class:"mt-4 lg:mt-0 lg:ml-2"},zP={props:{title:{type:String,required:!0},description:{type:String,required:!0}},setup(s){return(r,i)=>{const a=C("BaseCard");return l(),T(a,null,{default:g(()=>[c("div",bP,[c("div",null,[c("h6",kP,w(s.title),1),c("p",wP,w(s.description),1)]),c("div",xP,[F(r.$slots,"action")])]),F(r.$slots,"default")]),_:3})}}};var SP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zP});const jP={},PP={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},DP=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),CP=c("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),AP=[DP,CP];function EP(s,r){return l(),_("svg",PP,AP)}var NP=ee(jP,[["render",EP]]),TP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NP});const IP={class:"flex flex-row items-start"},$P={props:{labelLeft:{type:String,default:""},labelRight:{type:String,default:""},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=D({get:()=>i.modelValue,set:t=>r("update:modelValue",t)});return(t,n)=>(l(),T(d(ut),null,{default:g(()=>[c("div",IP,[s.labelLeft?(l(),T(d(Oe),{key:0,class:"mr-4 cursor-pointer"},{default:g(()=>[K(w(s.labelLeft),1)]),_:1})):S("",!0),u(d(_t),le({modelValue:d(a),"onUpdate:modelValue":n[0]||(n[0]=e=>J(a)?a.value=e:null),class:[d(a)?"bg-primary-500":"bg-gray-300","relative inline-flex items-center h-6 transition-colors rounded-full w-11 focus:outline-none focus:ring-primary-500"]},t.$attrs),{default:g(()=>[c("span",{class:A([d(a)?"translate-x-6":"translate-x-1","inline-block w-4 h-4 transition-transform bg-white rounded-full"])},null,2)]),_:1},16,["modelValue","class"]),s.labelRight?(l(),T(d(Oe),{key:1,class:"ml-4 cursor-pointer"},{default:g(()=>[K(w(s.labelRight),1)]),_:1})):S("",!0)])]),_:1}))}};var RP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$P});const FP={class:"flex flex-col"},MP={props:{title:{type:String,required:!0},description:{type:String,default:""},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){function i(a){r("update:modelValue",a)}return(a,t)=>(l(),T(d(ut),{as:"li",class:"py-4 flex items-center justify-between"},{default:g(()=>[c("div",FP,[u(d(Oe),{as:"p",class:"p-0 mb-1 text-sm leading-snug text-black font-medium",passive:""},{default:g(()=>[K(w(s.title),1)]),_:1}),u(d(ya),{class:"text-sm text-gray-500"},{default:g(()=>[K(w(s.description),1)]),_:1})]),u(d(_t),{disabled:s.disabled,"model-value":s.modelValue,class:A([s.modelValue?"bg-primary-500":"bg-gray-200","ml-4 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"]),"onUpdate:modelValue":i},{default:g(()=>[c("span",{"aria-hidden":"true",class:A([s.modelValue?"translate-x-5":"translate-x-0","inline-block h-5 w-5 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["disabled","model-value","class"])]),_:1}))}};var VP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:MP});const BP={props:{title:{type:[String,Number],default:"Tab"},count:{type:[String,Number],default:""},countVariant:{type:[String,Number],default:""},tabPanelContainer:{type:String,default:"py-4 mt-px"}},setup(s){return(r,i)=>(l(),T(d(ba),{class:A([s.tabPanelContainer,"focus:outline-none"])},{default:g(()=>[F(r.$slots,"default")]),_:3},8,["class"]))}};var OP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:BP});const LP={props:{defaultIndex:{type:Number,default:0},filter:{type:String,default:null}},emits:["change"],setup(s,{emit:r}){const i=pe(),a=D(()=>i.default().map(n=>n.props));function t(n){r("change",a.value[n])}return(n,e)=>{const o=C("BaseBadge");return l(),_("div",null,[u(d(za),{"default-index":s.defaultIndex,onChange:t},{default:g(()=>[u(d(ka),{class:A(["flex border-b border-grey-light","relative overflow-x-auto overflow-y-hidden","lg:pb-0 lg:ml-0"])},{default:g(()=>[(l(!0),_(Q,null,ae(d(a),(m,p)=>(l(),T(d(wa),{key:p,as:"template"},{default:g(({selected:k})=>[c("button",{class:A(["px-8 py-2 text-sm leading-5 font-medium flex items-center relative border-b-2 mt-4 focus:outline-none whitespace-nowrap",k?" border-primary-400 text-black font-medium":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"])},[K(w(m.title)+" ",1),m.count?(l(),T(o,{key:0,class:"!rounded-full overflow-hidden ml-2",variant:m["count-variant"],"default-class":"flex items-center justify-center w-5 h-5 p-1 rounded-full text-medium"},{default:g(()=>[K(w(m.count),1)]),_:2},1032,["variant"])):S("",!0)],2)]),_:2},1024))),128))]),_:1}),F(n.$slots,"before-tabs"),u(d(xa),null,{default:g(()=>[F(n.$slots,"default")]),_:3})]),_:3},8,["default-index"])])}}};var UP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:LP});const KP={props:{tag:{type:String,default:"div"},text:{type:String,default:""},length:{type:Number,default:0}},setup(s){const r=s,i=D(()=>r.text.length<r.length?r.text:`${r.text.substring(0,r.length)}...`);return(a,t)=>{const n=C("BaseCustomTag");return l(),T(n,{tag:s.tag,title:s.text},{default:g(()=>[K(w(d(i)),1)]),_:1},8,["tag","title"])}}};var qP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:KP});const ZP=["value","disabled"],WP={props:{contentLoading:{type:Boolean,default:!1},row:{type:Number,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:[String,Number],default:""},defaultInputClass:{type:String,default:"box-border w-full px-3 py-2 text-sm not-italic font-normal leading-snug text-left text-black placeholder-gray-400 bg-white border border-gray-200 border-solid rounded outline-none"},autosize:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=q(null),t=D(()=>i.invalid&&!i.borderless?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":i.borderless?"border-none outline-none focus:ring-primary-400 focus:border focus:border-primary-400":"focus:ring-primary-400 focus:border-primary-400"),n=D(()=>{switch(i.row){case 2:return"56";case 4:return"94";default:return"56"}});function e(o){r("update:modelValue",o.target.value),i.autosize&&(o.target.style.height="auto",o.target.style.height=`${o.target.scrollHeight}px`)}return ze(()=>{a.value&&i.autosize&&(a.value.style.height=a.value.scrollHeight+"px",a.value.style.overflow&&a.value.style.overflow.y&&(a.value.style.overflow.y="hidden"),a.value.style.resize="none")}),(o,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return s.contentLoading?(l(),T(k,{key:0},{default:g(()=>[u(p,{rounded:!0,class:"w-full",style:Ce(`height: ${d(n)}px`)},null,8,["style"])]),_:1})):(l(),_("textarea",le({key:1},o.$attrs,{ref:(x,b)=>{b.textarea=x,a.value=x},value:s.modelValue,class:[s.defaultInputClass,d(t)],disabled:s.disabled,onInput:e}),null,16,ZP))}}};var HP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:WP});const GP=c("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"},null,-1),YP=[GP],JP={props:{modelValue:{type:[String,Date],default:()=>moment(new Date)},contentLoading:{type:Boolean,default:!1},placeholder:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},containerClass:{type:String,default:""},clockIcon:{type:Boolean,default:!0},defaultInputClass:{type:String,default:"font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-300 rounded-md text-black"}},emits:["update:modelValue"],setup(s,{emit:r}){const i=s,a=q(null),t=pe();let n=Be({enableTime:!0,noCalendar:!0,dateFormat:"H:i",time_24hr:!0});const e=D({get:()=>i.modelValue,set:b=>r("update:modelValue",b)}),o=D(()=>!!t.icon);function m(b){a.value.fp.open()}const p=D(()=>`${i.containerClass} `),k=D(()=>i.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),x=D(()=>i.disabled?"border border-solid rounded-md outline-none input-field box-border-2 base-date-picker-input placeholder-gray-400 bg-gray-300 text-gray-600 border-gray-300":"");return(b,h)=>{const E=C("BaseContentPlaceholdersBox"),$=C("BaseContentPlaceholders");return s.contentLoading?(l(),T($,{key:0},{default:g(()=>[u(E,{rounded:!0,class:A(`w-full ${d(p)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:A([d(p),"relative flex flex-row"])},[s.clockIcon&&!d(o)?(l(),_("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",class:"absolute top-px w-4 h-4 mx-2 my-2.5 text-sm not-italic font-black text-gray-400 cursor-pointer",viewBox:"0 0 20 20",fill:"currentColor",onClick:m},YP)):S("",!0),s.clockIcon&&d(o)?F(b.$slots,"icon",{key:1}):S("",!0),u(d(st),le({ref:(I,z)=>{z.dpt=I,a.value=I},modelValue:d(e),"onUpdate:modelValue":h[0]||(h[0]=I=>J(e)?e.value=I:null)},b.$attrs,{disabled:s.disabled,config:d(n),class:[s.defaultInputClass,d(k),d(x)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var XP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:JP});const QP={props:{currentStep:{type:Number,default:null},steps:{type:Number,default:null},containerClass:{type:String,default:"flex justify-between w-full my-10 max-w-xl mx-auto"},progress:{type:String,default:"rounded-full float-left w-6 h-6 border-4 cursor-pointer"},currentStepClass:{type:String,default:"bg-white border-primary-500"},nextStepClass:{type:String,default:"border-gray-200 bg-white"},previousStepClass:{type:String,default:"bg-primary-500 border-primary-500 flex justify-center items-center"},iconClass:{type:String,default:"flex items-center justify-center w-full h-full text-sm font-black text-center text-white"}},emits:["click"],setup(s){function r(i){return s.currentStep===i?[s.currentStepClass,s.progress]:s.currentStep>i?[s.previousStepClass,s.progress]:s.currentStep<i?[s.nextStepClass,s.progress]:[s.progress]}return{stepStyle:r}}},eD=["onClick"],tD=["onClick"],aD=c("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1),sD=[aD];function nD(s,r,i,a,t,n){return l(),_("div",{class:A([i.containerClass,"relative after:bg-gray-200 after:absolute after:transform after:top-1/2 after:-translate-y-1/2 after:h-2 after:w-full"])},[(l(!0),_(Q,null,ae(i.steps,(e,o)=>(l(),_("a",{key:o,class:A([a.stepStyle(e),"z-10"]),href:"#",onClick:re(m=>s.$emit("click",o),["prevent"])},[i.currentStep>e?(l(),_("svg",{key:0,class:A(i.iconClass),fill:"currentColor",viewBox:"0 0 20 20",onClick:m=>s.$emit("click",o)},sD,10,tD)):S("",!0)],10,eD))),128))],2)}var At=ee(QP,[["render",nD]]),iD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:At});const oD={class:"w-full"},rD={props:{wizardStepsContainerClass:{type:String,default:"relative flex items-center justify-center"},currentStep:{type:Number,default:0},steps:{type:Number,default:0}},emits:["click"],setup(s,{emit:r}){return(i,a)=>(l(),_("div",oD,[F(i.$slots,"nav",{},()=>[u(At,{"current-step":s.currentStep,steps:s.steps,onClick:a[0]||(a[0]=t=>i.$emit("click",t))},null,8,["current-step","steps"])]),c("div",{class:A(s.wizardStepsContainerClass)},[F(i.$slots,"default")],2)]))}};var dD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:rD});const lD={key:0},cD={props:{title:{type:String,default:null},description:{type:String,default:null},stepContainerClass:{type:String,default:"w-full p-8 mb-8 bg-white border border-gray-200 border-solid rounded"},stepTitleClass:{type:String,default:"text-2xl not-italic font-semibold leading-7 text-black"},stepDescriptionClass:{type:String,default:"w-full mt-2.5 mb-8 text-sm not-italic leading-snug text-gray-500 lg:w-7/12 md:w-7/12 sm:w-7/12"}},setup(s){return(r,i)=>(l(),_("div",{class:A(s.stepContainerClass)},[s.title||s.description?(l(),_("div",lD,[s.title?(l(),_("p",{key:0,class:A(s.stepTitleClass)},w(s.title),3)):S("",!0),s.description?(l(),_("p",{key:1,class:A(s.stepDescriptionClass)},w(s.description),3)):S("",!0)])):S("",!0),F(r.$slots,"default")],2))}};var _D=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:cD});const uD=s=>{Object.entries({"./components/base/BaseBadge.vue":Tb,"./components/base/BaseBreadcrumb.vue":Mb,"./components/base/BaseBreadcrumbItem.vue":Lb,"./components/base/BaseButton.vue":Jb,"./components/base/BaseCard.vue":ak,"./components/base/BaseCheckbox.vue":lk,"./components/base/BaseContentPlaceholders.vue":_k,"./components/base/BaseContentPlaceholdersBox.vue":mk,"./components/base/BaseContentPlaceholdersHeading.vue":vk,"./components/base/BaseContentPlaceholdersText.vue":kk,"./components/base/BaseCustomInput.vue":Ek,"./components/base/BaseCustomTag.vue":Tk,"./components/base/BaseCustomerAddressDisplay.vue":Lk,"./components/base/BaseCustomerSelectInput.vue":nw,"./components/base/BaseCustomerSelectPopup.vue":Uw,"./components/base/BaseDatePicker.vue":Ww,"./components/base/BaseDescriptionList.vue":Xw,"./components/base/BaseDescriptionListItem.vue":ax,"./components/base/BaseDialog.vue":cx,"./components/base/BaseDivider.vue":gx,"./components/base/BaseDropdown.vue":yx,"./components/base/BaseDropdownItem.vue":kx,"./components/base/BaseEmptyPlaceholder.vue":Ax,"./components/base/BaseErrorAlert.vue":Vx,"./components/base/BaseEstimateStatusBadge.vue":Ox,"./components/base/BaseFileUploader.vue":fz,"./components/base/BaseFilterWrapper.vue":yz,"./components/base/BaseFormatMoney.vue":wz,"./components/base/BaseGlobalLoader.vue":sS,"./components/base/BaseHeading.vue":iS,"./components/base/BaseIcon.vue":rS,"./components/base/BaseInfoAlert.vue":bS,"./components/base/BaseInput.vue":RS,"./components/base/BaseInputGrid.vue":MS,"./components/base/BaseInputGroup.vue":US,"./components/base/BaseInvoiceStatusBadge.vue":WS,"./components/base/BaseItemSelect.vue":ej,"./components/base/BaseLabel.vue":ij,"./components/base/BaseModal.vue":cj,"./components/base/BaseMoney.vue":uj,"./components/base/BaseNewBadge.vue":pj,"./components/base/BasePage.vue":yj,"./components/base/BasePageHeader.vue":zj,"./components/base/BasePaidStatusBadge.vue":Dj,"./components/base/BaseRadio.vue":Rj,"./components/base/BaseRating.vue":Gj,"./components/base/BaseRecurringInvoiceStatusBadge.vue":Qj,"./components/base/BaseScrollPane.vue":rP,"./components/base/BaseSelectAction.vue":uP,"./components/base/BaseSelectInput.vue":yP,"./components/base/BaseSettingCard.vue":SP,"./components/base/BaseSpinner.vue":TP,"./components/base/BaseSwitch.vue":RP,"./components/base/BaseSwitchSection.vue":VP,"./components/base/BaseTab.vue":OP,"./components/base/BaseTabGroup.vue":UP,"./components/base/BaseText.vue":qP,"./components/base/BaseTextarea.vue":HP,"./components/base/BaseTimePicker.vue":XP,"./components/base/BaseWizard.vue":dD,"./components/base/BaseWizardNavigation.vue":iD,"./components/base/BaseWizardStep.vue":_D}).forEach(([n,e])=>{const o=n.split("/").pop().replace(/\.\w+$/,"");s.component(o,e.default)});const i=Le(()=>j(()=>import("./BaseTable.6e206ca7.js"),["assets/BaseTable.6e206ca7.js","assets/vendor.01d0adc5.js"])),a=Le(()=>j(()=>import("./BaseMultiselect.b73cc8d6.js"),["assets/BaseMultiselect.b73cc8d6.js","assets/vendor.01d0adc5.js"])),t=Le(()=>j(()=>import("./BaseEditor.d94e3dc1.js"),["assets/BaseEditor.d94e3dc1.js","assets/BaseEditor.bacb9608.css","assets/vendor.01d0adc5.js"]));s.component("BaseTable",i),s.component("BaseMultiselect",a),s.component("BaseEditor",t)},ce=Sa(Ls);class mD{constructor(){this.bootingCallbacks=[],this.messages=Eb}booting(r){this.bootingCallbacks.push(r)}executeCallbacks(){this.bootingCallbacks.forEach(r=>{r(ce,$e)})}addMessages(r=[]){oe.merge(this.messages,r)}start(){this.executeCallbacks(),uD(ce),ce.provide("$utils",Ze);const r=Qe({locale:"en",fallbackLocale:"en",globalInjection:!0,messages:this.messages});window.i18n=r;const{createPinia:i}=window.pinia;ce.use($e),ce.use(ja),ce.use(r),ce.use(i()),ce.provide("utils",Ze),ce.directive("tooltip",Pa),ce.mount("body")}}window.pinia=Da;window.Vuelidate=Ca;window.Vue=Aa;window.router=$e;window.VueRouter=Ea;window.Crater=new mD;export{Ue as L,Gb as S,ie as T,ee as _,Na as a,_e as b,Pe as c,Ie as d,je as e,Xz as f,O as g,v as h,Me as i,sx as j,He as k,be as l,xk as m,Hk as n,j as o,Fe as p,ke as q,Ta as r,Ze as s,Dt as t,M as u,Vs as v,bx as w,vx as x};
import{h as s}from"./auth.4644c288.js";import{a as o}from"./vendor.01d0adc5.js";const{defineStore:i}=window.pinia,d=i({id:"customerPaymentStore",state:()=>({payments:[],selectedViewPayment:[],totalPayments:0}),actions:{fetchPayments(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payments`,{params:e}).then(t=>{this.payments=t.data.data,this.totalPayments=t.data.meta.paymentTotalCount,n(t)}).catch(t=>{s(t),m(t)})})},fetchViewPayment(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payments/${e.id}`).then(t=>{this.selectedViewPayment=t.data.data,n(t)}).catch(t=>{s(t),m(t)})})},searchPayment(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payments`,{params:e}).then(t=>{this.payments=t.data,n(t)}).catch(t=>{s(t),m(t)})})},fetchPaymentModes(e,a){return new Promise((n,m)=>{o.get(`/api/v1/${a}/customer/payment-method`,{params:e}).then(t=>{n(t)}).catch(t=>{s(t),m(t)})})}}});export{d as u};
var f=Object.defineProperty;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var u=(y,o,i)=>o in y?f(y,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[o]=i,p=(y,o)=>{for(var i in o||(o={}))g.call(o,i)&&u(y,i,o[i]);if(r)for(var i of r(o))w.call(o,i)&&u(y,i,o[i]);return y};import{G as v,I as _,a as d,d as N}from"./vendor.01d0adc5.js";import{b as S,h as m,u as h}from"./main.75722495.js";var P={maxPayableAmount:Number.MAX_SAFE_INTEGER,selectedCustomer:"",currency:null,currency_id:"",customer_id:"",payment_number:"",payment_date:"",amount:0,invoice_id:"",notes:"",payment_method_id:"",customFields:[],fields:[]};const I=(y=!1)=>{const o=y?window.pinia.defineStore:N,{global:i}=window.i18n;return o({id:"payment",state:()=>({payments:[],paymentTotalCount:0,selectAllField:!1,selectedPayments:[],selectedNote:null,showExchangeRate:!1,drivers:[],providers:[],paymentProviders:{id:null,name:"",driver:"",active:!1,settings:{key:"",secret:""}},currentPayment:p({},P),paymentModes:[],currentPaymentMode:{id:"",name:null},isFetchingInitialData:!1}),getters:{isEdit:t=>!!t.paymentProviders.id},actions:{fetchPaymentInitialData(t){const n=S(),s=v();this.isFetchingInitialData=!0;let e=[];t&&(e=[this.fetchPayment(s.params.id)]),Promise.all([this.fetchPaymentModes({limit:"all"}),this.getNextNumber(),...e]).then(async([a,l,c])=>{t?c.data.data.invoice&&(this.currentPayment.maxPayableAmount=parseInt(c.data.data.invoice.due_amount)):!t&&l.data&&(this.currentPayment.payment_date=_().format("YYYY-MM-DD"),this.currentPayment.payment_number=l.data.nextNumber,this.currentPayment.currency=n.selectedCompanyCurrency),this.isFetchingInitialData=!1}).catch(a=>{m(a)})},fetchPayments(t){return new Promise((n,s)=>{d.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data.data,this.paymentTotalCount=e.data.meta.payment_total_count,n(e)}).catch(e=>{m(e),s(e)})})},fetchPayment(t){return new Promise((n,s)=>{d.get(`/api/v1/payments/${t}`).then(e=>{Object.assign(this.currentPayment,e.data.data),n(e)}).catch(e=>{m(e),s(e)})})},addPayment(t){return new Promise((n,s)=>{d.post("/api/v1/payments",t).then(e=>{this.payments.push(e.data),h().showNotification({type:"success",message:i.t("payments.created_message")}),n(e)}).catch(e=>{m(e),s(e)})})},updatePayment(t){return new Promise((n,s)=>{d.put(`/api/v1/payments/${t.id}`,t).then(e=>{if(e.data){let a=this.payments.findIndex(c=>c.id===e.data.data.id);this.payments[a]=t.payment,h().showNotification({type:"success",message:i.t("payments.updated_message")})}n(e)}).catch(e=>{m(e),s(e)})})},deletePayment(t){const n=h();return new Promise((s,e)=>{d.post("/api/v1/payments/delete",t).then(a=>{let l=this.payments.findIndex(c=>c.id===t);this.payments.splice(l,1),n.showNotification({type:"success",message:i.t("payments.deleted_message",1)}),s(a)}).catch(a=>{m(a),e(a)})})},deleteMultiplePayments(){const t=h();return new Promise((n,s)=>{d.post("/api/v1/payments/delete",{ids:this.selectedPayments}).then(e=>{this.selectedPayments.forEach(a=>{let l=this.payments.findIndex(c=>c.id===a.id);this.payments.splice(l,1)}),t.showNotification({type:"success",message:i.tc("payments.deleted_message",2)}),n(e)}).catch(e=>{m(e),s(e)})})},setSelectAllState(t){this.selectAllField=t},selectPayment(t){this.selectedPayments=t,this.selectedPayments.length===this.payments.length?this.selectAllField=!0:this.selectAllField=!1},selectAllPayments(){if(this.selectedPayments.length===this.payments.length)this.selectedPayments=[],this.selectAllField=!1;else{let t=this.payments.map(n=>n.id);this.selectedPayments=t,this.selectAllField=!0}},selectNote(t){this.selectedNote=null,this.selectedNote=t},resetSelectedNote(t){this.selectedNote=null},searchPayment(t){return new Promise((n,s)=>{d.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data,n(e)}).catch(e=>{m(e),s(e)})})},previewPayment(t){return new Promise((n,s)=>{d.get(`/api/v1/payments/${t.id}/send/preview`,{params:t}).then(e=>{n(e)}).catch(e=>{m(e),s(e)})})},sendEmail(t){return new Promise((n,s)=>{d.post(`/api/v1/payments/${t.id}/send`,t).then(e=>{n(e)}).catch(e=>{m(e),s(e)})})},getNextNumber(t,n=!1){return new Promise((s,e)=>{d.get("/api/v1/next-number?key=payment",{params:t}).then(a=>{n&&(this.currentPayment.payment_number=a.data.nextNumber),s(a)}).catch(a=>{m(a),e(a)})})},resetCurrentPayment(){this.currentPayment=p({},P)},fetchPaymentModes(t){return new Promise((n,s)=>{d.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,n(e)}).catch(e=>{m(e),s(e)})})},fetchPaymentMode(t){return new Promise((n,s)=>{d.get(`/api/v1/payment-methods/${t}`).then(e=>{this.currentPaymentMode=e.data.data,n(e)}).catch(e=>{m(e),s(e)})})},addPaymentMode(t){const n=h();return new Promise((s,e)=>{d.post("/api/v1/payment-methods",t).then(a=>{this.paymentModes.push(a.data.data),n.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_added")}),s(a)}).catch(a=>{m(a),e(a)})})},updatePaymentMode(t){const n=h();return new Promise((s,e)=>{d.put(`/api/v1/payment-methods/${t.id}`,t).then(a=>{if(a.data){let l=this.paymentModes.findIndex(c=>c.id===a.data.data.id);this.paymentModes[l]=t.paymentModes,n.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_updated")})}s(a)}).catch(a=>{m(a),e(a)})})},deletePaymentMode(t){const n=h();return new Promise((s,e)=>{d.delete(`/api/v1/payment-methods/${t}`).then(a=>{let l=this.paymentModes.findIndex(c=>c.id===t);this.paymentModes.splice(l,1),a.data.success&&n.showNotification({type:"success",message:i.t("settings.payment_modes.deleted_message")}),s(a)}).catch(a=>{m(a),e(a)})})}}})()};export{I as u};
import{a as l,d as p}from"./vendor.01d0adc5.js";import{h as o,u as d}from"./main.75722495.js";const w=(u=!1)=>{const m=u?window.pinia.defineStore:p,{global:n}=window.i18n;return m({id:"users",state:()=>({roles:[],users:[],totalUsers:0,currentUser:null,selectAllField:!1,selectedUsers:[],customerList:[],userList:[],userData:{name:"",email:"",password:null,phone:null,companies:[]}}),actions:{resetUserData(){this.userData={name:"",email:"",password:null,phone:null,role:null,companies:[]}},fetchUsers(s){return new Promise((i,t)=>{l.get("/api/v1/users",{params:s}).then(e=>{this.users=e.data.data,this.totalUsers=e.data.meta.total,i(e)}).catch(e=>{o(e),t(e)})})},fetchUser(s){return new Promise((i,t)=>{l.get(`/api/v1/users/${s}`).then(e=>{var a,r;this.userData=e.data.data,((r=(a=this.userData)==null?void 0:a.companies)==null?void 0:r.length)&&this.userData.companies.forEach((c,f)=>{this.userData.roles.forEach(h=>{h.scope===c.id&&(this.userData.companies[f].role=h.name)})}),i(e)}).catch(e=>{console.log(e),o(e),t(e)})})},fetchRoles(s){return new Promise((i,t)=>{l.get("/api/v1/roles").then(e=>{this.roles=e.data.data,i(e)}).catch(e=>{o(e),t(e)})})},addUser(s){return new Promise((i,t)=>{l.post("/api/v1/users",s).then(e=>{this.users.push(e.data),d().showNotification({type:"success",message:n.t("users.created_message")}),i(e)}).catch(e=>{o(e),t(e)})})},updateUser(s){return new Promise((i,t)=>{l.put(`/api/v1/users/${s.id}`,s).then(e=>{if(e){let r=this.users.findIndex(c=>c.id===e.data.data.id);this.users[r]=e.data.data}d().showNotification({type:"success",message:n.t("users.updated_message")}),i(e)}).catch(e=>{o(e),t(e)})})},deleteUser(s){const i=d();return new Promise((t,e)=>{l.post("/api/v1/users/delete",{users:s.ids}).then(a=>{let r=this.users.findIndex(c=>c.id===s);this.users.splice(r,1),i.showNotification({type:"success",message:n.tc("users.deleted_message",1)}),t(a)}).catch(a=>{o(a),e(a)})})},deleteMultipleUsers(){return new Promise((s,i)=>{l.post("/api/v1/users/delete",{users:this.selectedUsers}).then(t=>{this.selectedUsers.forEach(a=>{let r=this.users.findIndex(c=>c.id===a.id);this.users.splice(r,1)}),d().showNotification({type:"success",message:n.tc("users.deleted_message",2)}),s(t)}).catch(t=>{o(t),i(t)})})},searchUsers(s){return new Promise((i,t)=>{l.get("/api/v1/search",{params:s}).then(e=>{this.userList=e.data.users.data,this.customerList=e.data.customers.data,i(e)}).catch(e=>{o(e),t(e)})})},setSelectAllState(s){this.selectAllField=s},selectUser(s){this.selectedUsers=s,this.selectedUsers.length===this.users.length?this.selectAllField=!0:this.selectAllField=!1},selectAllUsers(){if(this.selectedUsers.length===this.users.length)this.selectedUsers=[],this.selectAllField=!1;else{let s=this.users.map(i=>i.id);this.selectedUsers=s,this.selectAllField=!0}}}})()};export{w as u};
    "file": "assets/main.75722495.js",
    "file": "assets/LayoutInstallation.46a8b6d2.js",
      "_NotificationRoot.a98180ab.js",
  "_NotificationRoot.a98180ab.js": {
    "file": "assets/NotificationRoot.a98180ab.js",
    "file": "assets/Login.9abd1acb.js",
    "file": "assets/LayoutBasic.e1f34a75.js",
      "_exchange-rate.dffa79b6.js",
      "_users.73a3faa4.js",
      "_NotificationRoot.a98180ab.js",
  "_exchange-rate.dffa79b6.js": {
    "file": "assets/exchange-rate.dffa79b6.js",
  "_users.73a3faa4.js": {
    "file": "assets/users.73a3faa4.js",
    "file": "assets/LayoutLogin.d574a04a.js",
      "_NotificationRoot.a98180ab.js",
    "file": "assets/ResetPassword.970ec316.js",
    "file": "assets/ForgotPassword.6a2c79cb.js",
    "file": "assets/Dashboard.bdf9de48.js",
      "_EstimateIcon.1f3b368d.js",
      "_LineChart.a92f3bea.js",
      "_InvoiceIndexDropdown.430bc329.js",
      "_EstimateIndexDropdown.4eab32d4.js"
  "_EstimateIcon.1f3b368d.js": {
    "file": "assets/EstimateIcon.1f3b368d.js",
  "_LineChart.a92f3bea.js": {
    "file": "assets/LineChart.a92f3bea.js",
  "_InvoiceIndexDropdown.430bc329.js": {
    "file": "assets/InvoiceIndexDropdown.430bc329.js",
  "_EstimateIndexDropdown.4eab32d4.js": {
    "file": "assets/EstimateIndexDropdown.4eab32d4.js",
    "file": "assets/Index.83e96e3c.js",
      "_CustomerIndexDropdown.3adf4218.js",
  "_CustomerIndexDropdown.3adf4218.js": {
    "file": "assets/CustomerIndexDropdown.3adf4218.js",
    "file": "assets/Create.3e41e2ab.js",
      "_CreateCustomFields.a3a572c4.js"
  "_CreateCustomFields.a3a572c4.js": {
    "file": "assets/CreateCustomFields.a3a572c4.js",
    "file": "assets/View.958a5524.js",
      "_LoadingIcon.44a6304d.js",
      "_LineChart.a92f3bea.js",
      "_CustomerIndexDropdown.3adf4218.js"
  "_LoadingIcon.44a6304d.js": {
    "file": "assets/LoadingIcon.44a6304d.js",
    "file": "assets/SettingsIndex.7750922b.js",
      "_BaseListItem.4eea691c.js"
  "_BaseListItem.4eea691c.js": {
    "file": "assets/BaseListItem.4eea691c.js",
    "file": "assets/AccountSetting.d3009f2e.js",
    "file": "assets/CompanyInfoSettings.a1bb8458.js",
    "file": "assets/PreferencesSetting.abc39a72.js",
    "file": "assets/CustomizationSetting.5e54e84c.js",
      "_DragIcon.213b1d78.js",
      "_payment.5c57bec3.js",
      "_ItemUnitModal.01494bfb.js"
  "_ItemUnitModal.01494bfb.js": {
    "file": "assets/ItemUnitModal.01494bfb.js",
  "_payment.5c57bec3.js": {
    "file": "assets/payment.5c57bec3.js",
  "_DragIcon.213b1d78.js": {
    "file": "assets/DragIcon.213b1d78.js",
    "file": "assets/NotificationsSetting.90090d1e.js",
    "file": "assets/TaxTypesSetting.332f7c14.js",
      "_TaxTypeModal.bf6662b3.js"
  "_TaxTypeModal.bf6662b3.js": {
    "file": "assets/TaxTypeModal.bf6662b3.js",
    "file": "assets/PaymentsModeSetting.963d7ca9.js",
      "_payment.5c57bec3.js",
      "_PaymentModeModal.9b5fc610.js"
  "_PaymentModeModal.9b5fc610.js": {
    "file": "assets/PaymentModeModal.9b5fc610.js",
      "_payment.5c57bec3.js",
    "file": "assets/CustomFieldsSetting.9f0813a0.js",
    "file": "assets/NotesSetting.2f08acf1.js",
      "_NoteModal.f6d01f84.js",
      "_payment.5c57bec3.js"
  "_NoteModal.f6d01f84.js": {
    "file": "assets/NoteModal.f6d01f84.js",
      "_payment.5c57bec3.js"
    "file": "assets/ExpenseCategorySetting.80e0d8ac.js",
      "_category.4b37f0ed.js",
      "_CategoryModal.9a2e05b9.js"
  "_category.4b37f0ed.js": {
    "file": "assets/category.4b37f0ed.js",
  "_CategoryModal.9a2e05b9.js": {
    "file": "assets/CategoryModal.9a2e05b9.js",
      "_category.4b37f0ed.js",
    "file": "assets/ExchangeRateProviderSetting.57eedd6c.js",
      "_exchange-rate.dffa79b6.js",
    "file": "assets/BaseTable.6e206ca7.js",
    "file": "assets/MailConfigSetting.91f66b99.js",
      "_mail-driver.4ea1af6b.js",
  "_mail-driver.4ea1af6b.js": {
    "file": "assets/mail-driver.4ea1af6b.js",
    "file": "assets/FileDiskSetting.b99dc80a.js",
      "_disk.518ebc4b.js",
  "_disk.518ebc4b.js": {
    "file": "assets/disk.518ebc4b.js",
    "file": "assets/BackupSetting.f5a6fab0.js",
      "_disk.518ebc4b.js"
    "file": "assets/UpdateAppSetting.dcf672e8.js",
      "_LoadingIcon.44a6304d.js",
      "_exchange-rate.dffa79b6.js"
    "file": "assets/RolesSettings.3be3bc63.js",
    "file": "assets/Index.2f43174e.js",
    "file": "assets/Create.bffd06e1.js",
      "_ItemUnitModal.01494bfb.js"
    "file": "assets/Index.9d0bbfbe.js",
      "_expense.e270a61c.js",
      "_category.4b37f0ed.js",
  "_expense.e270a61c.js": {
    "file": "assets/expense.e270a61c.js",
    "file": "assets/Create.a722899f.js",
      "_expense.e270a61c.js",
      "_category.4b37f0ed.js",
      "_CreateCustomFields.a3a572c4.js",
      "_CategoryModal.9a2e05b9.js",
      "_ExchangeRateConverter.7d8c4309.js",
      "_exchange-rate.dffa79b6.js"
  "_ExchangeRateConverter.7d8c4309.js": {
    "file": "assets/ExchangeRateConverter.7d8c4309.js",
      "_exchange-rate.dffa79b6.js",
    "file": "assets/Index.857b8662.js",
      "_users.73a3faa4.js",
    "file": "assets/Create.625aeacb.js",
      "_users.73a3faa4.js"
    "file": "assets/Index.c0a868bd.js",
      "_EstimateIndexDropdown.4eab32d4.js",
      "_SendEstimateModal.a8bc3854.js",
      "_mail-driver.4ea1af6b.js"
  "_SendEstimateModal.a8bc3854.js": {
    "file": "assets/SendEstimateModal.a8bc3854.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/EstimateCreate.4010e1b1.js",
      "_SalesTax.0ff2d954.js",
      "_CreateCustomFields.a3a572c4.js",
      "_ExchangeRateConverter.7d8c4309.js",
      "_TaxTypeModal.bf6662b3.js",
      "_DragIcon.213b1d78.js",
      "_SelectNotePopup.781ad74a.js",
      "_NoteModal.f6d01f84.js",
      "_payment.5c57bec3.js",
      "_exchange-rate.dffa79b6.js"
  "_SalesTax.0ff2d954.js": {
    "file": "assets/SalesTax.0ff2d954.js",
      "_DragIcon.213b1d78.js",
      "_SelectNotePopup.781ad74a.js"
  "_SelectNotePopup.781ad74a.js": {
    "file": "assets/SelectNotePopup.781ad74a.js",
      "_NoteModal.f6d01f84.js",
    "file": "assets/View.1a50dc40.js",
      "_EstimateIndexDropdown.4eab32d4.js",
      "_SendEstimateModal.a8bc3854.js",
      "_LoadingIcon.44a6304d.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/Index.492a896e.js",
      "_payment.5c57bec3.js",
      "_SendPaymentModal.1bb9d371.js",
      "_mail-driver.4ea1af6b.js"
  "_SendPaymentModal.1bb9d371.js": {
    "file": "assets/SendPaymentModal.1bb9d371.js",
      "_payment.5c57bec3.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/Create.be897594.js",
      "_ExchangeRateConverter.7d8c4309.js",
      "_payment.5c57bec3.js",
      "_SelectNotePopup.781ad74a.js",
      "_CreateCustomFields.a3a572c4.js",
      "_PaymentModeModal.9b5fc610.js",
      "_exchange-rate.dffa79b6.js",
      "_NoteModal.f6d01f84.js"
    "file": "assets/View.abc1c107.js",
      "_payment.5c57bec3.js",
      "_SendPaymentModal.1bb9d371.js",
      "_LoadingIcon.44a6304d.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/Index.56add046.js",
      "_InvoiceIndexDropdown.430bc329.js",
      "_SendInvoiceModal.89e6012d.js",
      "_mail-driver.4ea1af6b.js"
  "_SendInvoiceModal.89e6012d.js": {
    "file": "assets/SendInvoiceModal.89e6012d.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/InvoiceCreate.8ae6be7c.js",
      "_SalesTax.0ff2d954.js",
      "_ExchangeRateConverter.7d8c4309.js",
      "_CreateCustomFields.a3a572c4.js",
      "_TaxTypeModal.bf6662b3.js",
      "_DragIcon.213b1d78.js",
      "_SelectNotePopup.781ad74a.js",
      "_NoteModal.f6d01f84.js",
      "_payment.5c57bec3.js",
      "_exchange-rate.dffa79b6.js"
    "file": "assets/View.796e2446.js",
      "_InvoiceIndexDropdown.430bc329.js",
      "_SendInvoiceModal.89e6012d.js",
      "_LoadingIcon.44a6304d.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/Index.f1fe364f.js",
      "_SendInvoiceModal.89e6012d.js",
      "_RecurringInvoiceIndexDropdown.37d4a992.js",
      "_mail-driver.4ea1af6b.js"
  "_RecurringInvoiceIndexDropdown.37d4a992.js": {
    "file": "assets/RecurringInvoiceIndexDropdown.37d4a992.js",
    "file": "assets/RecurringInvoiceCreate.e076e6ab.js",
      "_SalesTax.0ff2d954.js",
      "_ExchangeRateConverter.7d8c4309.js",
      "_CreateCustomFields.a3a572c4.js",
      "_TaxTypeModal.bf6662b3.js",
      "_DragIcon.213b1d78.js",
      "_SelectNotePopup.781ad74a.js",
      "_NoteModal.f6d01f84.js",
      "_payment.5c57bec3.js",
      "_exchange-rate.dffa79b6.js"
    "file": "assets/View.aa6cd8ac.js",
      "_LoadingIcon.44a6304d.js",
      "_InvoiceIndexDropdown.430bc329.js",
      "_RecurringInvoiceIndexDropdown.37d4a992.js"
    "file": "assets/Index.a3eeb117.js",
    "file": "assets/Installation.e5762019.js",
      "_mail-driver.4ea1af6b.js"
    "file": "assets/Index.de1759af.js",
    "file": "assets/View.f7652815.js",
    "file": "assets/LayoutBasic.df06fd51.js",
      "_auth.4644c288.js",
      "_global.08b6a984.js",
      "_NotificationRoot.a98180ab.js"
  "_global.08b6a984.js": {
    "file": "assets/global.08b6a984.js",
      "_auth.4644c288.js",
  "_auth.4644c288.js": {
    "file": "assets/auth.4644c288.js",
    "file": "assets/LayoutLogin.96ca0d8f.js",
      "_NotificationRoot.a98180ab.js",
    "file": "assets/Login.e5a5b4de.js",
      "_auth.4644c288.js",
    "file": "assets/ForgotPassword.51f99d8b.js",
      "_auth.4644c288.js",
    "file": "assets/ResetPassword.485b38b4.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js",
    "file": "assets/Dashboard.4e48457e.js",
      "_EstimateIcon.1f3b368d.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js",
    "file": "assets/Index.a00a8636.js",
      "_invoice.b61ade7d.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js",
  "_invoice.b61ade7d.js": {
    "file": "assets/invoice.b61ade7d.js",
      "_auth.4644c288.js",
    "file": "assets/View.02e08873.js",
      "_invoice.b61ade7d.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js"
    "file": "assets/Index.36ae4778.js",
      "_global.08b6a984.js",
      "_estimate.e6573e64.js",
      "_auth.4644c288.js"
  "_estimate.e6573e64.js": {
    "file": "assets/estimate.e6573e64.js",
      "_auth.4644c288.js"
    "file": "assets/View.00b10884.js",
      "_estimate.e6573e64.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js"
    "file": "assets/Index.97b641ce.js",
      "_payment.037dd620.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js"
  "_payment.037dd620.js": {
    "file": "assets/payment.037dd620.js",
      "_auth.4644c288.js",
    "file": "assets/View.6c9abcf9.js",
      "_payment.037dd620.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js"
    "file": "assets/SettingsIndex.25913381.js",
      "_BaseListItem.4eea691c.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js"
    "file": "assets/CustomerSettings.3e617f27.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js",
    "file": "assets/AddressInformation.908aefd5.js",
      "_global.08b6a984.js",
      "_auth.4644c288.js",
    "file": "assets/BaseMultiselect.b73cc8d6.js",
    "file": "assets/BaseEditor.d94e3dc1.js",
  v$.value.$touch()

  if (v$.value.$invalid && customerStore.currentCustomer.email === '') {
        }, 1500)

              setTimeout(() => {
                location.reload()
              }, 1500)

      setTimeout(() => {
        location.reload()
      }, 1500)