From eea3925fcdafb60099182194b119fc5836cfa6da Mon Sep 17 00:00:00 2001 From: Mohit Panjwani Date: Thu, 3 Mar 2022 17:03:40 +0530 Subject: [PATCH] new build 605 --- ...05a74cc4.js => AccountSetting.6cb82167.js} | 2 +- ...417d.js => AddressInformation.68e7b996.js} | 2 +- ....8d609c24.js => BackupSetting.1fe81432.js} | 2 +- ...tor.3b7c0c02.js => BaseEditor.ead2b9f1.js} | 2 +- ...m.91c21811.js => BaseListItem.ee8337b3.js} | 2 +- ...374ebb2.js => BaseMultiselect.1793a39d.js} | 2 +- ...able.86db669d.js => BaseTable.d75a6388.js} | 2 +- ....b8530d2c.js => CategoryModal.dc91de33.js} | 2 +- ...534.js => CompanyInfoSettings.4883a4d5.js} | 2 +- ...{Create.4724f6a7.js => Create.3743a104.js} | 2 +- ...{Create.a2ae555f.js => Create.849d4041.js} | 2 +- ...{Create.6e564295.js => Create.cd47948b.js} | 2 +- ...{Create.f99b9267.js => Create.d799ac98.js} | 2 +- ...{Create.7bd803d3.js => Create.ee2ce8e0.js} | 2 +- ...f052.js => CreateCustomFields.04aba193.js} | 2 +- ...b52.js => CustomFieldsSetting.ee4f83ef.js} | 2 +- ...7.js => CustomerIndexDropdown.78bcff92.js} | 2 +- ...0fd12d.js => CustomerSettings.1e7b255f.js} | 2 +- ...1c.js => CustomizationSetting.8afa996f.js} | 2 +- ...oard.7d84bed1.js => Dashboard.80c815dd.js} | 2 +- ...oard.85be3397.js => Dashboard.8190d462.js} | 2 +- ...gIcon.e6c221f0.js => DragIcon.d9f643cf.js} | 2 +- ...420fc484.js => EstimateCreate.f2c398e0.js} | 2 +- ...n.89528a95.js => EstimateIcon.86606287.js} | 2 +- ...2.js => EstimateIndexDropdown.c74a1c48.js} | 2 +- ...f.js => ExchangeRateConverter.6e0e36e7.js} | 2 +- ...> ExchangeRateProviderSetting.02eba7ee.js} | 2 +- ....js => ExpenseCategorySetting.4ef6d3ed.js} | 2 +- ...79dff0b.js => FileDiskSetting.ba22e97c.js} | 2 +- ...a2f7d1ee.js => ForgotPassword.06039a0d.js} | 2 +- ...268a530d.js => ForgotPassword.0bff03a9.js} | 2 +- .../{Index.171a9be4.js => Index.0c596f43.js} | 2 +- .../{Index.cd4cebdd.js => Index.1005222f.js} | 2 +- .../{Index.374787d3.js => Index.2f6b2ed6.js} | 2 +- .../{Index.2a5c7bd4.js => Index.38b36d95.js} | 2 +- .../{Index.8db0c2bf.js => Index.4891b5b4.js} | 2 +- .../{Index.d02e663e.js => Index.52aeabf0.js} | 2 +- .../{Index.88d3b048.js => Index.54a7d1be.js} | 2 +- .../{Index.929bd0c6.js => Index.60a6d69a.js} | 2 +- .../{Index.db0325b2.js => Index.8e2973a2.js} | 2 +- .../{Index.d8b72a81.js => Index.a564d566.js} | 2 +- .../{Index.b977b7ef.js => Index.d028f200.js} | 2 +- .../{Index.648f01b0.js => Index.e94df0e9.js} | 2 +- .../{Index.55f33eaf.js => Index.fcc3038d.js} | 2 +- ...n.d8337338.js => Installation.939274ae.js} | 2 +- ....dbeab7eb.js => InvoiceCreate.723d983d.js} | 2 +- ...16.js => InvoiceIndexDropdown.174ed624.js} | 2 +- ....17b8fb30.js => ItemUnitModal.12dfe4f1.js} | 2 +- ...ic.f099ad73.js => LayoutBasic.12dd735a.js} | 2 +- ...ic.e1b3d28d.js => LayoutBasic.5db11c89.js} | 2 +- .../assets/LayoutInstallation.d1075109.js | 1 + .../assets/LayoutInstallation.f025488e.js | 1 - public/build/assets/LayoutLogin.2b25369b.js | 1 + ...in.80459a89.js => LayoutLogin.3c63f158.js} | 2 +- public/build/assets/LayoutLogin.ba38ab08.js | 1 - ...hart.dd592086.js => LineChart.6775a7d1.js} | 2 +- ...on.66b14768.js => LoadingIcon.58a27e40.js} | 2 +- .../{Login.2ff2ebf4.js => Login.02fe20ac.js} | 2 +- .../{Login.09265290.js => Login.5885977a.js} | 2 +- ...76293.js => MailConfigSetting.50d2b38b.js} | 2 +- ...odal.62a64a69.js => NoteModal.c9605dba.js} | 2 +- ...g.eb35e797.js => NotesSetting.06a58218.js} | 2 +- ...4c0db9.js => NotificationRoot.b2aa5501.js} | 2 +- ...e5.js => NotificationsSetting.40dfd6be.js} | 2 +- ...922a6d.js => PaymentModeModal.2e1f1512.js} | 2 +- ...d63.js => PaymentsModeSetting.c12111f3.js} | 2 +- ...081e.js => PreferencesSetting.e050bdf7.js} | 2 +- ....js => RecurringInvoiceCreate.31b71237.js} | 2 +- ...RecurringInvoiceIndexDropdown.b5cf79fe.js} | 2 +- ....8084cc33.js => ResetPassword.609ea369.js} | 2 +- ....93fbba47.js => ResetPassword.6fb90383.js} | 2 +- ....e13e057e.js => RolesSettings.9dd64fa2.js} | 2 +- ...esTax.285fbaa6.js => SalesTax.67357751.js} | 2 +- ...f1463c3.js => SelectNotePopup.ead4330d.js} | 2 +- ...9ff19.js => SendEstimateModal.d6ecf83f.js} | 2 +- ...4b5c76.js => SendInvoiceModal.df7ecbe5.js} | 2 +- ...c4e0ab.js => SendPaymentModal.b203e586.js} | 2 +- ....4f7dc251.js => SettingsIndex.248ca841.js} | 2 +- public/build/assets/SettingsIndex.45695f64.js | 1 + public/build/assets/SettingsIndex.aa723778.js | 1 - ...l.5bc92e5b.js => TaxTypeModal.3db473e9.js} | 2 +- ...bca28e7.js => TaxTypesSetting.68bd06bf.js} | 2 +- ...157d64.js => UpdateAppSetting.746fa480.js} | 2 +- .../{View.d69a3f76.js => View.33722222.js} | 2 +- .../{View.799867ef.js => View.43261a97.js} | 2 +- .../{View.fb7ac918.js => View.65c8e27d.js} | 2 +- .../{View.da31b1a9.js => View.6fb75a2d.js} | 2 +- .../{View.e5b14e68.js => View.70d88bd0.js} | 2 +- .../{View.a8a41f7b.js => View.7a392eb1.js} | 2 +- .../{View.23db8f6f.js => View.db9ebd38.js} | 2 +- .../{View.30540927.js => View.e87ed933.js} | 2 +- .../{View.22824636.js => View.fbd1288c.js} | 2 +- .../{auth.974620c9.js => auth.a07e0850.js} | 2 +- ...egory.1184b061.js => category.970a47d6.js} | 2 +- public/build/assets/disk.40fc971f.js | 1 + public/build/assets/disk.e54e2880.js | 1 - ...imate.b80e2b77.js => estimate.c2ce8e7a.js} | 2 +- ....28527a8e.js => exchange-rate.70a72e5f.js} | 2 +- ...xpense.c4c3f409.js => expense.190eb9e9.js} | 2 +- ...{global.db0572f0.js => global.1ac91de5.js} | 2 +- ...nvoice.90614bc9.js => invoice.fba53e83.js} | 2 +- ...er.c62711d2.js => mail-driver.b57a1b96.js} | 2 +- .../{main.6ceeb72d.js => main.c7bd6c0e.js} | 6 +- ...ayment.7edbe3ce.js => payment.03dd8d5c.js} | 2 +- ...ayment.ef13b90b.js => payment.2b6f850e.js} | 2 +- .../{users.2ff38459.js => users.7c501231.js} | 2 +- public/build/manifest.json | 586 +++++++++--------- 107 files changed, 397 insertions(+), 397 deletions(-) rename public/build/assets/{AccountSetting.05a74cc4.js => AccountSetting.6cb82167.js} (98%) rename public/build/assets/{AddressInformation.f224417d.js => AddressInformation.68e7b996.js} (98%) rename public/build/assets/{BackupSetting.8d609c24.js => BackupSetting.1fe81432.js} (98%) rename public/build/assets/{BaseEditor.3b7c0c02.js => BaseEditor.ead2b9f1.js} (99%) rename public/build/assets/{BaseListItem.91c21811.js => BaseListItem.ee8337b3.js} (93%) rename public/build/assets/{BaseMultiselect.2374ebb2.js => BaseMultiselect.1793a39d.js} (99%) rename public/build/assets/{BaseTable.86db669d.js => BaseTable.d75a6388.js} (99%) rename public/build/assets/{CategoryModal.b8530d2c.js => CategoryModal.dc91de33.js} (91%) rename public/build/assets/{CompanyInfoSettings.1d341534.js => CompanyInfoSettings.4883a4d5.js} (99%) rename public/build/assets/{Create.4724f6a7.js => Create.3743a104.js} (87%) rename public/build/assets/{Create.a2ae555f.js => Create.849d4041.js} (98%) rename public/build/assets/{Create.6e564295.js => Create.cd47948b.js} (98%) rename public/build/assets/{Create.f99b9267.js => Create.d799ac98.js} (99%) rename public/build/assets/{Create.7bd803d3.js => Create.ee2ce8e0.js} (95%) rename public/build/assets/{CreateCustomFields.1cd1f052.js => CreateCustomFields.04aba193.js} (97%) rename public/build/assets/{CustomFieldsSetting.f35a2b52.js => CustomFieldsSetting.ee4f83ef.js} (99%) rename public/build/assets/{CustomerIndexDropdown.49914d07.js => CustomerIndexDropdown.78bcff92.js} (96%) rename public/build/assets/{CustomerSettings.100fd12d.js => CustomerSettings.1e7b255f.js} (97%) rename public/build/assets/{CustomizationSetting.0754031c.js => CustomizationSetting.8afa996f.js} (99%) rename public/build/assets/{Dashboard.7d84bed1.js => Dashboard.80c815dd.js} (90%) rename public/build/assets/{Dashboard.85be3397.js => Dashboard.8190d462.js} (97%) rename public/build/assets/{DragIcon.e6c221f0.js => DragIcon.d9f643cf.js} (99%) rename public/build/assets/{EstimateCreate.420fc484.js => EstimateCreate.f2c398e0.js} (82%) rename public/build/assets/{EstimateIcon.89528a95.js => EstimateIcon.86606287.js} (98%) rename public/build/assets/{EstimateIndexDropdown.1e23ee92.js => EstimateIndexDropdown.c74a1c48.js} (97%) rename public/build/assets/{ExchangeRateConverter.2338e5bf.js => ExchangeRateConverter.6e0e36e7.js} (95%) rename public/build/assets/{ExchangeRateProviderSetting.6143f080.js => ExchangeRateProviderSetting.02eba7ee.js} (98%) rename public/build/assets/{ExpenseCategorySetting.bac23162.js => ExpenseCategorySetting.4ef6d3ed.js} (94%) rename public/build/assets/{FileDiskSetting.e79dff0b.js => FileDiskSetting.ba22e97c.js} (99%) rename public/build/assets/{ForgotPassword.a2f7d1ee.js => ForgotPassword.06039a0d.js} (93%) rename public/build/assets/{ForgotPassword.268a530d.js => ForgotPassword.0bff03a9.js} (96%) rename public/build/assets/{Index.171a9be4.js => Index.0c596f43.js} (97%) rename public/build/assets/{Index.cd4cebdd.js => Index.1005222f.js} (82%) rename public/build/assets/{Index.374787d3.js => Index.2f6b2ed6.js} (95%) rename public/build/assets/{Index.2a5c7bd4.js => Index.38b36d95.js} (99%) rename public/build/assets/{Index.8db0c2bf.js => Index.4891b5b4.js} (95%) rename public/build/assets/{Index.d02e663e.js => Index.52aeabf0.js} (94%) rename public/build/assets/{Index.88d3b048.js => Index.54a7d1be.js} (98%) rename public/build/assets/{Index.929bd0c6.js => Index.60a6d69a.js} (86%) rename public/build/assets/{Index.db0325b2.js => Index.8e2973a2.js} (97%) rename public/build/assets/{Index.d8b72a81.js => Index.a564d566.js} (99%) rename public/build/assets/{Index.b977b7ef.js => Index.d028f200.js} (99%) rename public/build/assets/{Index.648f01b0.js => Index.e94df0e9.js} (87%) rename public/build/assets/{Index.55f33eaf.js => Index.fcc3038d.js} (98%) rename public/build/assets/{Installation.d8337338.js => Installation.939274ae.js} (99%) rename public/build/assets/{InvoiceCreate.dbeab7eb.js => InvoiceCreate.723d983d.js} (68%) rename public/build/assets/{InvoiceIndexDropdown.78aec816.js => InvoiceIndexDropdown.174ed624.js} (98%) rename public/build/assets/{ItemUnitModal.17b8fb30.js => ItemUnitModal.12dfe4f1.js} (71%) rename public/build/assets/{LayoutBasic.f099ad73.js => LayoutBasic.12dd735a.js} (95%) rename public/build/assets/{LayoutBasic.e1b3d28d.js => LayoutBasic.5db11c89.js} (99%) create mode 100644 public/build/assets/LayoutInstallation.d1075109.js delete mode 100644 public/build/assets/LayoutInstallation.f025488e.js create mode 100644 public/build/assets/LayoutLogin.2b25369b.js rename public/build/assets/{LayoutLogin.80459a89.js => LayoutLogin.3c63f158.js} (98%) delete mode 100644 public/build/assets/LayoutLogin.ba38ab08.js rename public/build/assets/{LineChart.dd592086.js => LineChart.6775a7d1.js} (99%) rename public/build/assets/{LoadingIcon.66b14768.js => LoadingIcon.58a27e40.js} (88%) rename public/build/assets/{Login.2ff2ebf4.js => Login.02fe20ac.js} (95%) rename public/build/assets/{Login.09265290.js => Login.5885977a.js} (97%) rename public/build/assets/{MailConfigSetting.d1476293.js => MailConfigSetting.50d2b38b.js} (99%) rename public/build/assets/{NoteModal.62a64a69.js => NoteModal.c9605dba.js} (92%) rename public/build/assets/{NotesSetting.eb35e797.js => NotesSetting.06a58218.js} (96%) rename public/build/assets/{NotificationRoot.9d4c0db9.js => NotificationRoot.b2aa5501.js} (98%) rename public/build/assets/{NotificationsSetting.8d66d8e5.js => NotificationsSetting.40dfd6be.js} (97%) rename public/build/assets/{PaymentModeModal.89922a6d.js => PaymentModeModal.2e1f1512.js} (94%) rename public/build/assets/{PaymentsModeSetting.94f9fd63.js => PaymentsModeSetting.c12111f3.js} (79%) rename public/build/assets/{PreferencesSetting.ef36081e.js => PreferencesSetting.e050bdf7.js} (99%) rename public/build/assets/{RecurringInvoiceCreate.2b74f4d5.js => RecurringInvoiceCreate.31b71237.js} (96%) rename public/build/assets/{RecurringInvoiceIndexDropdown.9324dca1.js => RecurringInvoiceIndexDropdown.b5cf79fe.js} (97%) rename public/build/assets/{ResetPassword.8084cc33.js => ResetPassword.609ea369.js} (73%) rename public/build/assets/{ResetPassword.93fbba47.js => ResetPassword.6fb90383.js} (97%) rename public/build/assets/{RolesSettings.e13e057e.js => RolesSettings.9dd64fa2.js} (99%) rename public/build/assets/{SalesTax.285fbaa6.js => SalesTax.67357751.js} (99%) rename public/build/assets/{SelectNotePopup.9f1463c3.js => SelectNotePopup.ead4330d.js} (83%) rename public/build/assets/{SendEstimateModal.5a99ff19.js => SendEstimateModal.d6ecf83f.js} (97%) rename public/build/assets/{SendInvoiceModal.224b5c76.js => SendInvoiceModal.df7ecbe5.js} (97%) rename public/build/assets/{SendPaymentModal.e1c4e0ab.js => SendPaymentModal.b203e586.js} (96%) rename public/build/assets/{SettingsIndex.4f7dc251.js => SettingsIndex.248ca841.js} (78%) create mode 100644 public/build/assets/SettingsIndex.45695f64.js delete mode 100644 public/build/assets/SettingsIndex.aa723778.js rename public/build/assets/{TaxTypeModal.5bc92e5b.js => TaxTypeModal.3db473e9.js} (98%) rename public/build/assets/{TaxTypesSetting.bbca28e7.js => TaxTypesSetting.68bd06bf.js} (97%) rename public/build/assets/{UpdateAppSetting.e4157d64.js => UpdateAppSetting.746fa480.js} (97%) rename public/build/assets/{View.d69a3f76.js => View.33722222.js} (96%) rename public/build/assets/{View.799867ef.js => View.43261a97.js} (96%) rename public/build/assets/{View.fb7ac918.js => View.65c8e27d.js} (96%) rename public/build/assets/{View.da31b1a9.js => View.6fb75a2d.js} (87%) rename public/build/assets/{View.e5b14e68.js => View.70d88bd0.js} (98%) rename public/build/assets/{View.a8a41f7b.js => View.7a392eb1.js} (96%) rename public/build/assets/{View.23db8f6f.js => View.db9ebd38.js} (96%) rename public/build/assets/{View.30540927.js => View.e87ed933.js} (97%) rename public/build/assets/{View.22824636.js => View.fbd1288c.js} (99%) rename public/build/assets/{auth.974620c9.js => auth.a07e0850.js} (97%) rename public/build/assets/{category.1184b061.js => category.970a47d6.js} (79%) create mode 100644 public/build/assets/disk.40fc971f.js delete mode 100644 public/build/assets/disk.e54e2880.js rename public/build/assets/{estimate.b80e2b77.js => estimate.c2ce8e7a.js} (91%) rename public/build/assets/{exchange-rate.28527a8e.js => exchange-rate.70a72e5f.js} (97%) rename public/build/assets/{expense.c4c3f409.js => expense.190eb9e9.js} (98%) rename public/build/assets/{global.db0572f0.js => global.1ac91de5.js} (97%) rename public/build/assets/{invoice.90614bc9.js => invoice.fba53e83.js} (91%) rename public/build/assets/{mail-driver.c62711d2.js => mail-driver.b57a1b96.js} (96%) rename public/build/assets/{main.6ceeb72d.js => main.c7bd6c0e.js} (94%) rename public/build/assets/{payment.7edbe3ce.js => payment.03dd8d5c.js} (93%) rename public/build/assets/{payment.ef13b90b.js => payment.2b6f850e.js} (97%) rename public/build/assets/{users.2ff38459.js => users.7c501231.js} (97%) diff --git a/public/build/assets/AccountSetting.05a74cc4.js b/public/build/assets/AccountSetting.6cb82167.js similarity index 98% rename from public/build/assets/AccountSetting.05a74cc4.js rename to public/build/assets/AccountSetting.6cb82167.js index 0fe4ee112..764b792b5 100644 --- a/public/build/assets/AccountSetting.05a74cc4.js +++ b/public/build/assets/AccountSetting.6cb82167.js @@ -1 +1 @@ -var L=Object.defineProperty,P=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var U=(u,s,i)=>s in u?L(u,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[s]=i,S=(u,s)=>{for(var i in s||(s={}))z.call(s,i)&&U(u,i,s[i]);if(V)for(var i of V(s))E.call(s,i)&&U(u,i,s[i]);return u},I=(u,s)=>P(u,T(s));import{J,B,k as y,L as _,M as C,Q,N as H,P as K,a0 as O,T as W,r as m,o as M,e as X,f as r,w as d,u as e,x as Y,l as Z,m as x,j as ee,i as ae,t as se,U as te,h as ne}from"./vendor.d12b5734.js";import{e as oe,d as re,b as le}from"./main.6ceeb72d.js";const ie=["onSubmit"],ue=ne("span",null,null,-1),ce={setup(u){const s=oe(),i=re(),F=le(),{t:v}=J();let p=B(!1),c=B(null),f=B([]);const $=B(!1);s.currentUser.avatar&&f.value.push({image:s.currentUser.avatar});const q=y(()=>({name:{required:_.withMessage(v("validation.required"),C)},email:{required:_.withMessage(v("validation.required"),C),email:_.withMessage(v("validation.email_incorrect"),Q)},password:{minLength:_.withMessage(v("validation.password_length",{count:8}),H(8))},confirm_password:{sameAsPassword:_.withMessage(v("validation.password_incorrect"),K(t.password))}})),t=O({name:s.currentUser.name,email:s.currentUser.email,language:s.currentUserSettings.language||F.selectedCompanySettings.language,password:"",confirm_password:""}),o=W(q,y(()=>t));function k(l,a){c.value=a}function N(){c.value=null,$.value=!0}async function A(){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=I(S({},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,c.value||$.value){let w=new FormData;c.value&&w.append("admin_avatar",c.value),w.append("is_admin_avatar_removed",$.value),await s.uploadAvatar(w),c.value=null,$.value=!1}t.password="",t.confirm_password=""}}catch{return p.value=!1,!0}}return(l,a)=>{const w=m("BaseFileUploader"),g=m("BaseInputGroup"),b=m("BaseInput"),G=m("BaseMultiselect"),D=m("BaseInputGrid"),R=m("BaseIcon"),h=m("BaseButton"),j=m("BaseSettingCard");return M(),X("form",{class:"relative",onSubmit:te(A,["prevent"])},[r(j,{title:l.$t("settings.account_settings.account_settings"),description:l.$t("settings.account_settings.section_description")},{default:d(()=>[r(D,null,{default:d(()=>[r(g,{label:l.$tc("settings.account_settings.profile_picture")},{default:d(()=>[r(w,{modelValue:e(f),"onUpdate:modelValue":a[0]||(a[0]=n=>Y(f)?f.value=n:f=n),avatar:!0,accept:"image/*",onChange:k,onRemove:N},null,8,["modelValue"])]),_:1},8,["label"]),ue,r(g,{label:l.$tc("settings.account_settings.name"),error:e(o).name.$error&&e(o).name.$errors[0].$message,required:""},{default:d(()=>[r(b,{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(g,{label:l.$tc("settings.account_settings.email"),error:e(o).email.$error&&e(o).email.$errors[0].$message,required:""},{default:d(()=>[r(b,{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(g,{error:e(o).password.$error&&e(o).password.$errors[0].$message,label:l.$tc("settings.account_settings.password")},{default:d(()=>[r(b,{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(g,{label:l.$tc("settings.account_settings.confirm_password"),error:e(o).confirm_password.$error&&e(o).confirm_password.$errors[0].$message},{default:d(()=>[r(b,{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(g,{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(h,{loading:e(p),disabled:e(p),class:"mt-6"},{left:d(n=>[e(p)?ee("",!0):(M(),Z(R,{key:0,name:"SaveIcon",class:x(n.class)},null,8,["class"]))]),default:d(()=>[ae(" "+se(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])],40,ie)}}};export{ce as default}; +var L=Object.defineProperty,P=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var U=(u,s,i)=>s in u?L(u,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[s]=i,S=(u,s)=>{for(var i in s||(s={}))z.call(s,i)&&U(u,i,s[i]);if(V)for(var i of V(s))E.call(s,i)&&U(u,i,s[i]);return u},I=(u,s)=>P(u,T(s));import{J,B,k as y,L as _,M as C,Q,N as H,P as K,a0 as O,T as W,r as m,o as M,e as X,f as r,w as d,u as e,x as Y,l as Z,m as x,j as ee,i as ae,t as se,U as te,h as ne}from"./vendor.d12b5734.js";import{e as oe,d as re,b as le}from"./main.c7bd6c0e.js";const ie=["onSubmit"],ue=ne("span",null,null,-1),ce={setup(u){const s=oe(),i=re(),F=le(),{t:v}=J();let p=B(!1),c=B(null),f=B([]);const $=B(!1);s.currentUser.avatar&&f.value.push({image:s.currentUser.avatar});const q=y(()=>({name:{required:_.withMessage(v("validation.required"),C)},email:{required:_.withMessage(v("validation.required"),C),email:_.withMessage(v("validation.email_incorrect"),Q)},password:{minLength:_.withMessage(v("validation.password_length",{count:8}),H(8))},confirm_password:{sameAsPassword:_.withMessage(v("validation.password_incorrect"),K(t.password))}})),t=O({name:s.currentUser.name,email:s.currentUser.email,language:s.currentUserSettings.language||F.selectedCompanySettings.language,password:"",confirm_password:""}),o=W(q,y(()=>t));function k(l,a){c.value=a}function N(){c.value=null,$.value=!0}async function A(){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=I(S({},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,c.value||$.value){let w=new FormData;c.value&&w.append("admin_avatar",c.value),w.append("is_admin_avatar_removed",$.value),await s.uploadAvatar(w),c.value=null,$.value=!1}t.password="",t.confirm_password=""}}catch{return p.value=!1,!0}}return(l,a)=>{const w=m("BaseFileUploader"),g=m("BaseInputGroup"),b=m("BaseInput"),G=m("BaseMultiselect"),D=m("BaseInputGrid"),R=m("BaseIcon"),h=m("BaseButton"),j=m("BaseSettingCard");return M(),X("form",{class:"relative",onSubmit:te(A,["prevent"])},[r(j,{title:l.$t("settings.account_settings.account_settings"),description:l.$t("settings.account_settings.section_description")},{default:d(()=>[r(D,null,{default:d(()=>[r(g,{label:l.$tc("settings.account_settings.profile_picture")},{default:d(()=>[r(w,{modelValue:e(f),"onUpdate:modelValue":a[0]||(a[0]=n=>Y(f)?f.value=n:f=n),avatar:!0,accept:"image/*",onChange:k,onRemove:N},null,8,["modelValue"])]),_:1},8,["label"]),ue,r(g,{label:l.$tc("settings.account_settings.name"),error:e(o).name.$error&&e(o).name.$errors[0].$message,required:""},{default:d(()=>[r(b,{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(g,{label:l.$tc("settings.account_settings.email"),error:e(o).email.$error&&e(o).email.$errors[0].$message,required:""},{default:d(()=>[r(b,{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(g,{error:e(o).password.$error&&e(o).password.$errors[0].$message,label:l.$tc("settings.account_settings.password")},{default:d(()=>[r(b,{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(g,{label:l.$tc("settings.account_settings.confirm_password"),error:e(o).confirm_password.$error&&e(o).confirm_password.$errors[0].$message},{default:d(()=>[r(b,{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(g,{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(h,{loading:e(p),disabled:e(p),class:"mt-6"},{left:d(n=>[e(p)?ee("",!0):(M(),Z(R,{key:0,name:"SaveIcon",class:x(n.class)},null,8,["class"]))]),default:d(()=>[ae(" "+se(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title","description"])],40,ie)}}};export{ce as default}; diff --git a/public/build/assets/AddressInformation.f224417d.js b/public/build/assets/AddressInformation.68e7b996.js similarity index 98% rename from public/build/assets/AddressInformation.f224417d.js rename to public/build/assets/AddressInformation.68e7b996.js index e60d97f7f..e864a6d7e 100644 --- a/public/build/assets/AddressInformation.f224417d.js +++ b/public/build/assets/AddressInformation.68e7b996.js @@ -1 +1 @@ -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.d12b5734.js";import{a as k,u as w}from"./global.db0572f0.js";import"./auth.974620c9.js";import"./main.6ceeb72d.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}; +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.d12b5734.js";import{a as k,u as w}from"./global.1ac91de5.js";import"./auth.a07e0850.js";import"./main.c7bd6c0e.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}; diff --git a/public/build/assets/BackupSetting.8d609c24.js b/public/build/assets/BackupSetting.1fe81432.js similarity index 98% rename from public/build/assets/BackupSetting.8d609c24.js rename to public/build/assets/BackupSetting.1fe81432.js index 956ce21d6..c1e9539f9 100644 --- a/public/build/assets/BackupSetting.8d609c24.js +++ b/public/build/assets/BackupSetting.1fe81432.js @@ -1 +1 @@ -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.d12b5734.js";import{h as P,u as X,c as K,j as pe}from"./main.6ceeb72d.js";import{u as Q}from"./disk.e54e2880.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 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.d12b5734.js";import{h as P,u as X,c as K,j as pe}from"./main.c7bd6c0e.js";import{u as Q}from"./disk.40fc971f.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}; diff --git a/public/build/assets/BaseEditor.3b7c0c02.js b/public/build/assets/BaseEditor.ead2b9f1.js similarity index 99% rename from public/build/assets/BaseEditor.3b7c0c02.js rename to public/build/assets/BaseEditor.ead2b9f1.js index a12cf45f5..af9a954e5 100644 --- a/public/build/assets/BaseEditor.3b7c0c02.js +++ b/public/build/assets/BaseEditor.ead2b9f1.js @@ -1,4 +1,4 @@ -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},Tt=(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 xr,D as sn,b1 as Cr,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 gt,e as Mt,h as A,ai as vc,bk as gc,bl as yc,bm as bc,b6 as kc,C as Sc,aS as Mc,r as Q,l as xc,w as an,f as V,m as L,j as Cc}from"./vendor.d12b5734.js";import{_ as At}from"./main.6ceeb72d.js";function ft(e){this.content=e}ft.prototype={constructor:ft,find:function(e){for(var t=0;t>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);lt&&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);it)for(var i=0,s=0;st&&((sr)&&(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;rthis.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;othis.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};P.prototype.removeFromSet=function(t){for(var r=0;r0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t};C.fromJSON=function(t,r){if(!r)return C.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 C(k.fromJSON(t,r.content),n,o)};C.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 C(t,n,o)};Object.defineProperties(C.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))}C.empty=new C(k.empty,0,0);function Oc(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=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;ao&&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 wc(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 $=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}};$.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)};$.prototype.node=function(t){return this.path[this.resolveDepth(t)*3]};$.prototype.index=function(t){return this.path[this.resolveDepth(t)*3+1]};$.prototype.indexAfter=function(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)};$.prototype.start=function(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1};$.prototype.end=function(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size};$.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]};$.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)};$.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;i0;r--)if(this.start(r)<=t&&this.end(r)>=t)return r;return 0};$.prototype.blockRange=function(t,r){if(t===void 0&&(t=this),t.pos=0;n--)if(t.pos<=this.end(n)&&(!r||r(this.node(n))))return new Ge(this,t,n)};$.prototype.sameParent=function(t){return this.pos-this.parentOffset==t.pos-t.parentOffset};$.prototype.max=function(t){return t.pos>this.pos?t:this};$.prototype.min=function(t){return t.pos=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 $(r,n,i)};$.resolveCached=function(t,r){for(var n=0;nt&&this.nodesBetween(t,r,function(i){return n.isInSet(i.marks)&&(o=!0),!o}),o};_t.isBlock.get=function(){return this.type.isBlock};_t.isTextblock.get=function(){return this.type.isTextblock};_t.inlineContent.get=function(){return this.type.inlineContent};_t.isInline.get=function(){return this.type.isInline};_t.isText.get=function(){return this.type.isText};_t.isLeaf.get=function(){return this.type.isLeaf};_t.isAtom.get=function(){return this.type.isAtom};B.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)};B.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};B.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=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=Bc(Pc(o));return zc(i,n),i};pt.prototype.matchType=function(t){for(var r=0;r>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"+t.indexOf(n.next[s+1]);return i}).join(` +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},Tt=(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 xr,D as sn,b1 as Cr,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 gt,e as Mt,h as A,ai as vc,bk as gc,bl as yc,bm as bc,b6 as kc,C as Sc,aS as Mc,r as Q,l as xc,w as an,f as V,m as L,j as Cc}from"./vendor.d12b5734.js";import{_ as At}from"./main.c7bd6c0e.js";function ft(e){this.content=e}ft.prototype={constructor:ft,find:function(e){for(var t=0;t>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);lt&&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);it)for(var i=0,s=0;st&&((sr)&&(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;rthis.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;othis.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};P.prototype.removeFromSet=function(t){for(var r=0;r0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t};C.fromJSON=function(t,r){if(!r)return C.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 C(k.fromJSON(t,r.content),n,o)};C.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 C(t,n,o)};Object.defineProperties(C.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))}C.empty=new C(k.empty,0,0);function Oc(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=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;ao&&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 wc(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 $=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}};$.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)};$.prototype.node=function(t){return this.path[this.resolveDepth(t)*3]};$.prototype.index=function(t){return this.path[this.resolveDepth(t)*3+1]};$.prototype.indexAfter=function(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)};$.prototype.start=function(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1};$.prototype.end=function(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size};$.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]};$.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)};$.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;i0;r--)if(this.start(r)<=t&&this.end(r)>=t)return r;return 0};$.prototype.blockRange=function(t,r){if(t===void 0&&(t=this),t.pos=0;n--)if(t.pos<=this.end(n)&&(!r||r(this.node(n))))return new Ge(this,t,n)};$.prototype.sameParent=function(t){return this.pos-this.parentOffset==t.pos-t.parentOffset};$.prototype.max=function(t){return t.pos>this.pos?t:this};$.prototype.min=function(t){return t.pos=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 $(r,n,i)};$.resolveCached=function(t,r){for(var n=0;nt&&this.nodesBetween(t,r,function(i){return n.isInSet(i.marks)&&(o=!0),!o}),o};_t.isBlock.get=function(){return this.type.isBlock};_t.isTextblock.get=function(){return this.type.isTextblock};_t.inlineContent.get=function(){return this.type.inlineContent};_t.isInline.get=function(){return this.type.isInline};_t.isText.get=function(){return this.type.isText};_t.isLeaf.get=function(){return this.type.isLeaf};_t.isAtom.get=function(){return this.type.isAtom};B.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)};B.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};B.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=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=Bc(Pc(o));return zc(i,n),i};pt.prototype.matchType=function(t){for(var r=0;r>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"+t.indexOf(n.next[s+1]);return i}).join(` `)};Object.defineProperties(pt.prototype,_r);pt.empty=new pt(!0);var Nr=function(t,r){this.string=t,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()},si={next:{configurable:!0}};si.next.get=function(){return this.tokens[this.pos]};Nr.prototype.eat=function(t){return this.next==t&&(this.pos++||!0)};Nr.prototype.err=function(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")};Object.defineProperties(Nr.prototype,si);function ai(e){var t=[];do t.push(Nc(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Nc(e){var t=[];do t.push(Ec(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Ec(e){for(var t=Rc(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Dc(e,t);else break;return t}function ci(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function Dc(e,t){var r=ci(e),n=r;return e.eat(",")&&(e.next!="}"?n=ci(e):n=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function Ic(e,t){var r=e.nodeTypes,n=r[t];if(n)return[n];var o=[];for(var i in r){var s=r[i];s.groups.indexOf(t)>-1&&o.push(s)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function Rc(e){if(e.eat("(")){var t=ai(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{var r=Ic(e,e.next).map(function(n){return e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}});return e.pos++,r.length==1?r[0]:{type:"choice",exprs:r}}}function Pc(e){var t=[[]];return o(i(e,0),r()),t;function r(){return t.push([])-1}function n(s,a,c){var l={term:c,to:a};return t[s].push(l),l}function o(s,a){s.forEach(function(c){return c.to=a})}function i(s,a){if(s.type=="choice")return s.exprs.reduce(function(M,y){return M.concat(i(y,a))},[]);if(s.type=="seq")for(var c=0;;c++){var l=i(s.exprs[c],a);if(c==s.exprs.length-1)return l;o(l,a=r())}else if(s.type=="star"){var u=r();return n(a,u),o(i(s.expr,u),u),[n(u)]}else if(s.type=="plus"){var f=r();return o(i(s.expr,a),f),o(i(s.expr,f),f),[n(f)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){for(var p=a,d=0;d-1&&o[p+1];ui(e,f).forEach(function(h){d||o.push(u,d=[]),d.indexOf(h)==-1&&d.push(h)})}})});for(var i=t[n.join(",")]=new pt(n.indexOf(e.length-1)>-1),s=0;s-1};yt.prototype.allowsMarks=function(t){if(this.markSet==null)return!0;for(var r=0;r-1};var Se=function(t){this.spec={};for(var r in t)this.spec[r]=t[r];this.spec.nodes=Yo.from(t.nodes),this.spec.marks=Yo.from(t.marks),this.nodes=yt.compile(this.spec.nodes,this),this.marks=ie.compile(this.spec.marks,this);var n=Object.create(null);for(var o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");var i=this.nodes[o],s=i.spec.content||"",a=i.spec.marks;i.contentMatch=n[s]||(n[s]=pt.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=a=="_"?null:a?vi(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(var c in this.marks){var l=this.marks[c],u=l.spec.excludes;l.excluded=u==null?[l]:u==""?[]:vi(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};Se.prototype.node=function(t,r,n,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof yt){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(r,n,o)};Se.prototype.text=function(t,r){var n=this.nodes.text;return new _c(n,n.defaultAttrs,t,P.setFrom(r))};Se.prototype.mark=function(t,r){return typeof t=="string"&&(t=this.marks[t]),t.create(r)};Se.prototype.nodeFromJSON=function(t){return B.fromJSON(this,t)};Se.prototype.markFromJSON=function(t){return P.fromJSON(this,t)};Se.prototype.nodeType=function(t){var r=this.nodes[t];if(!r)throw new RangeError("Unknown node type: "+t);return r};function vi(e,t){for(var r=[],n=0;n-1)&&r.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}var Lt=function(t,r){var n=this;this.schema=t,this.rules=r,this.tags=[],this.styles=[],r.forEach(function(o){o.tag?n.tags.push(o):o.style&&n.styles.push(o)}),this.normalizeLists=!this.tags.some(function(o){if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;var i=t.nodes[o.node];return i.contentMatch.matchType(i)})};Lt.prototype.parse=function(t,r){r===void 0&&(r={});var n=new K(this,r,!1);return n.addAll(t,null,r.from,r.to),n.finish()};Lt.prototype.parseSlice=function(t,r){r===void 0&&(r={});var n=new K(this,r,!0);return n.addAll(t,null,r.from,r.to),C.maxOpen(n.finish())};Lt.prototype.matchTag=function(t,r,n){for(var o=n?this.tags.indexOf(n)+1:0;ot.length&&(s.style.charCodeAt(t.length)!=61||s.style.slice(t.length+1)!=r))){if(s.getAttrs){var a=s.getAttrs(r);if(a===!1)continue;s.attrs=a}return s}}};Lt.schemaRules=function(t){var r=[];function n(c){for(var l=c.priority==null?50:c.priority,u=0;u=0;r--)if(t.eq(this.stashMarks[r]))return this.stashMarks.splice(r,1)[0]};Zt.prototype.applyPending=function(t){for(var r=0,n=this.pendingMarks;r=0;o--){var i=this.nodes[o],s=i.findWrapping(t);if(s&&(!r||r.length>s.length)&&(r=s,n=i,!s.length)||i.solid)break}if(!r)return!1;this.sync(n);for(var a=0;athis.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(t));this.nodes.length=this.open+1}};K.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)};K.prototype.sync=function(t){for(var r=this.open;r>=0;r--)if(this.nodes[r]==t){this.open=r;return}};mn.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var r=this.nodes[t].content,n=r.length-1;n>=0;n--)e+=r[n].nodeSize;t&&e++}return e};K.prototype.findAtPoint=function(t,r){if(this.find)for(var n=0;n-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);var n=t.split("/"),o=this.options.context,i=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),s=-(o?o.depth+1:0)+(i?0:1),a=function(c,l){for(;c>=0;c--){var u=n[c];if(u==""){if(c==n.length-1||c==0)continue;for(;l>=s;l--)if(a(c-1,l))return!0;return!1}else{var f=l>0||l==0&&i?r.nodes[l].type:o&&l>=s?o.node(l-s).type:null;if(!f||f.name!=u&&f.groups.indexOf(u)==-1)return!1;l--}}return!0};return a(n.length-1,this.open)};K.prototype.textblockFromContext=function(){var t=this.options.context;if(t)for(var r=t.depth;r>=0;r--){var n=t.node(r).contentMatchAt(t.indexAfter(r)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var o in this.parser.schema.nodes){var i=this.parser.schema.nodes[o];if(i.isTextblock&&i.defaultAttrs)return i}};K.prototype.addPendingMark=function(t){var r=qc(t,this.top.pendingMarks);r&&this.top.stashMarks.push(r),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)};K.prototype.removePendingMark=function(t,r){for(var n=this.open;n>=0;n--){var o=this.nodes[n],i=o.pendingMarks.lastIndexOf(t);if(i>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);var s=o.popFromStashMark(t);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==r)break}};Object.defineProperties(K.prototype,mn);function Fc(e){for(var t=e.firstChild,r=null;t;t=t.nextSibling){var n=t.nodeType==1?t.nodeName.toLowerCase():null;n&&gi.hasOwnProperty(n)&&r?(r.appendChild(t),t=r):n=="li"?r=t:n&&(r=null)}}function Vc(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Hc(e){for(var t=/\s*([\w-]+)\s*:\s*([^;]+)/g,r,n=[];r=t.exec(e);)n.push(r[1],r[2].trim());return n}function bi(e){var t={};for(var r in e)t[r]=e[r];return t}function jc(e,t){var r=t.schema.nodes,n=function(s){var a=r[s];if(!!a.allowsMarkType(e)){var c=[],l=function(u){c.push(u);for(var f=0;f=0;o--){var i=this.serializeMark(t.marks[o],t.isInline,r);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n};ot.prototype.serializeMark=function(t,r,n){n===void 0&&(n={});var o=this.marks[t.type.name];return o&&ot.renderSpec(vn(n),o(t,r))};ot.renderSpec=function(t,r,n){if(n===void 0&&(n=null),typeof r=="string")return{dom:t.createTextNode(r)};if(r.nodeType!=null)return{dom:r};if(r.dom&&r.dom.nodeType!=null)return r;var o=r[0],i=o.indexOf(" ");i>0&&(n=o.slice(0,i),o=o.slice(i+1));var s=null,a=n?t.createElementNS(n,o):t.createElement(o),c=r[1],l=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){l=2;for(var u in c)if(c[u]!=null){var f=u.indexOf(" ");f>0?a.setAttributeNS(u.slice(0,f),u.slice(f+1),c[u]):a.setAttribute(u,c[u])}}for(var p=l;pl)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{var h=ot.renderSpec(t,d,n),v=h.dom,g=h.contentDOM;if(a.appendChild(v),g){if(s)throw new RangeError("Multiple content holes");s=g}}}return{dom:a,contentDOM:s}};ot.fromSchema=function(t){return t.cached.domSerializer||(t.cached.domSerializer=new ot(this.nodesFromSchema(t),this.marksFromSchema(t)))};ot.nodesFromSchema=function(t){var r=ki(t.nodes);return r.text||(r.text=function(n){return n.text}),r};ot.marksFromSchema=function(t){return ki(t.marks)};function ki(e){var t={};for(var r in e){var n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function vn(e){return e.document||window.document}var Si=65535,Mi=Math.pow(2,16);function Jc(e,t){return e+t*Mi}function xi(e){return e&Si}function Wc(e){return(e-(e&Si))/Mi}var gn=function(t,r,n){r===void 0&&(r=!1),n===void 0&&(n=null),this.pos=t,this.deleted=r,this.recover=n},it=function(t,r){r===void 0&&(r=!1),this.ranges=t,this.inverted=r};it.prototype.recover=function(t){var r=0,n=xi(t);if(!this.inverted)for(var o=0;ot)break;var l=this.ranges[a+i],u=this.ranges[a+s],f=c+l;if(t<=f){var p=l?t==c?-1:t==f?1:r:r,d=c+o+(p<0?0:u);if(n)return d;var h=t==(r<0?c:f)?null:Jc(a/3,t-c);return new gn(d,r<0?t!=c:t!=f,h)}o+=u-l}return n?t+o:new gn(t+o)};it.prototype.touches=function(t,r){for(var n=0,o=xi(r),i=this.inverted?2:1,s=this.inverted?1:2,a=0;at)break;var l=this.ranges[a+i],u=c+l;if(t<=u&&a==o*3)return!0;n+=this.ranges[a+s]-l}return!1};it.prototype.forEach=function(t){for(var r=this.inverted?2:1,n=this.inverted?1:2,o=0,i=0;o=0;r--){var o=t.getMirror(r);this.appendMap(t.maps[r].invert(),o!=null&&o>r?n-o-1:null)}};dt.prototype.invert=function(){var t=new dt;return t.appendMappingInverted(this),t};dt.prototype.map=function(t,r){if(r===void 0&&(r=1),this.mirror)return this._map(t,r,!0);for(var n=this.from;ni&&c0};X.prototype.addStep=function(t,r){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=r};Object.defineProperties(X.prototype,yn);function Er(){throw new Error("Override me")}var bn=Object.create(null),ht=function(){};ht.prototype.apply=function(t){return Er()};ht.prototype.getMap=function(){return it.empty};ht.prototype.invert=function(t){return Er()};ht.prototype.map=function(t){return Er()};ht.prototype.merge=function(t){return null};ht.prototype.toJSON=function(){return Er()};ht.fromJSON=function(t,r){if(!r||!r.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=bn[r.stepType];if(!n)throw new RangeError("No step type "+r.stepType+" defined");return n.fromJSON(t,r)};ht.jsonID=function(t,r){if(t in bn)throw new RangeError("Duplicate use of step JSON ID "+t);return bn[t]=r,r.prototype.jsonID=t,r};var bt=function(t,r){this.doc=t,this.failed=r};bt.ok=function(t){return new bt(t,null)};bt.fail=function(t){return new bt(null,t)};bt.fromReplace=function(t,r,n,o){try{return bt.ok(t.replace(r,n,o))}catch(i){if(i instanceof Jt)return bt.fail(i.message);throw i}};var te=function(e){function t(r,n,o,i){e.call(this),this.from=r,this.to=n,this.slice=o,this.structure=!!i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(n){return this.structure&&kn(n,this.from,this.to)?bt.fail("Structure replace would overwrite content"):bt.fromReplace(n,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new it([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(n){return new t(this.from,this.from+this.slice.size,n.slice(this.from,this.to))},t.prototype.map=function(n){var o=n.mapResult(this.from,1),i=n.mapResult(this.to,-1);return o.deleted&&i.deleted?null:new t(o.pos,Math.max(o.pos,i.pos),this.slice)},t.prototype.merge=function(n){if(!(n instanceof t)||n.structure||this.structure)return null;if(this.from+this.slice.size==n.from&&!this.slice.openEnd&&!n.slice.openStart){var o=this.slice.size+n.slice.size==0?C.empty:new C(this.slice.content.append(n.slice.content),this.slice.openStart,n.slice.openEnd);return new t(this.from,this.to+(n.to-n.from),o,this.structure)}else if(n.to==this.from&&!this.slice.openStart&&!n.slice.openEnd){var i=this.slice.size+n.slice.size==0?C.empty:new C(n.slice.content.append(this.slice.content),n.slice.openStart,this.slice.openEnd);return new t(n.from,this.to,i,this.structure)}else return null},t.prototype.toJSON=function(){var n={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(n.slice=this.slice.toJSON()),this.structure&&(n.structure=!0),n},t.fromJSON=function(n,o){if(typeof o.from!="number"||typeof o.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(o.from,o.to,C.fromJSON(n,o.slice),!!o.structure)},t}(ht);ht.jsonID("replace",te);var xt=function(e){function t(r,n,o,i,s,a,c){e.call(this),this.from=r,this.to=n,this.gapFrom=o,this.gapTo=i,this.slice=s,this.insert=a,this.structure=!!c}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(n){if(this.structure&&(kn(n,this.from,this.gapFrom)||kn(n,this.gapTo,this.to)))return bt.fail("Structure gap-replace would overwrite content");var o=n.slice(this.gapFrom,this.gapTo);if(o.openStart||o.openEnd)return bt.fail("Gap is not a flat range");var i=this.slice.insertAt(this.insert,o.content);return i?bt.fromReplace(n,this.from,this.to,i):bt.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new it([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(n){var o=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+o,this.from+this.insert,this.from+this.insert+o,n.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(n){var o=n.mapResult(this.from,1),i=n.mapResult(this.to,-1),s=n.map(this.gapFrom,-1),a=n.map(this.gapTo,1);return o.deleted&&i.deleted||si.pos?null:new t(o.pos,i.pos,s,a,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var n={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(n.slice=this.slice.toJSON()),this.structure&&(n.structure=!0),n},t.fromJSON=function(n,o){if(typeof o.from!="number"||typeof o.to!="number"||typeof o.gapFrom!="number"||typeof o.gapTo!="number"||typeof o.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(o.from,o.to,o.gapFrom,o.gapTo,C.fromJSON(n,o.slice),o.insert,!!o.structure)},t}(ht);ht.jsonID("replaceAround",xt);function kn(e,t,r){for(var n=e.resolve(t),o=r-t,i=n.depth;o>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,o--;if(o>0)for(var s=n.node(i).maybeChild(n.indexAfter(i));o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}return!1}function Kc(e,t,r){return(t==0||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function Pe(e){for(var t=e.parent,r=t.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var o=e.$from.node(n),i=e.$from.index(n),s=e.$to.indexAfter(n);if(nt;f--)p||r.index(f)>0?(p=!0,l=k.from(r.node(f).copy(l)),u++):a--;for(var d=k.empty,h=0,v=o,g=!1;v>t;v--)g||n.after(v+1)=0;n--)r=k.from(t[n].type.create(t[n].attrs,r));var o=e.start,i=e.end;return this.step(new xt(o,i,o,i,new C(r,0,0),t.length,!0))};X.prototype.setBlockType=function(e,t,r,n){var o=this;if(t===void 0&&(t=e),!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var i=this.steps.length;return this.doc.nodesBetween(e,t,function(s,a){if(s.isTextblock&&!s.hasMarkup(r,n)&&Gc(o.doc,o.mapping.slice(i).map(a),r)){o.clearIncompatible(o.mapping.slice(i).map(a,1),r);var c=o.mapping.slice(i),l=c.map(a,1),u=c.map(a+s.nodeSize,1);return o.step(new xt(l,u,l+1,u-1,new C(k.from(r.create(n,null,s.marks)),0,0),1,!0)),!1}}),this};function Gc(e,t,r){var n=e.resolve(t),o=n.index();return n.parent.canReplaceWith(o,o+1,r)}X.prototype.setNodeMarkup=function(e,t,r,n){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var i=t.create(r,null,n||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new xt(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new C(k.from(i),0,0),1,!0))};function ee(e,t,r,n){r===void 0&&(r=1);var o=e.resolve(t),i=o.depth-r,s=n&&n[n.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var a=o.depth-1,c=r-2;a>i;a--,c--){var l=o.node(a),u=o.index(a);if(l.type.spec.isolating)return!1;var f=l.content.cutByIndex(u,l.childCount),p=n&&n[c]||l;if(p!=l&&(f=f.replaceChild(0,p.type.create(p.attrs))),!l.canReplace(u+1,l.childCount)||!p.type.validContent(f))return!1}var d=o.indexAfter(i),h=n&&n[0];return o.node(i).canReplaceWith(d,d,h?h.type:o.node(i+1).type)}X.prototype.split=function(e,t,r){t===void 0&&(t=1);for(var n=this.doc.resolve(e),o=k.empty,i=k.empty,s=n.depth,a=n.depth-t,c=t-1;s>a;s--,c--){o=k.from(n.node(s).copy(o));var l=r&&r[c];i=k.from(l?l.type.create(l.attrs,i):n.node(s).copy(i))}return this.step(new te(e,e,new C(o.append(i),t,t),!0))};function Mn(e,t){var r=e.resolve(t),n=r.index();return Yc(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function Yc(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}X.prototype.join=function(e,t){t===void 0&&(t=1);var r=new te(e-t,e+t,C.empty,!0);return this.step(r)};function Xc(e,t,r){var n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(n.parentOffset==0)for(var o=n.depth-1;o>=0;o--){var i=n.index(o);if(n.node(o).canReplaceWith(i,i,r))return n.before(o+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(var s=n.depth-1;s>=0;s--){var a=n.indexAfter(s);if(n.node(s).canReplaceWith(a,a,r))return n.after(s+1);if(a=0;a--){var c=a==n.depth?0:n.pos<=(n.start(a+1)+n.end(a+1))/2?-1:1,l=n.index(a)+(c>0?1:0),u=n.node(a),f=!1;if(s==1)f=u.canReplace(l,l,o);else{var p=u.contentMatchAt(l).findWrapping(o.firstChild.type);f=p&&u.canReplaceWith(l,l,p[0])}if(f)return c==0?n.pos:c<0?n.before(a+1):n.after(a+1)}return null}function xn(e,t,r){for(var n=[],o=0;o=i.pos?null:new t(o.pos,i.pos,this.mark)},t.prototype.merge=function(n){if(n instanceof t&&n.mark.eq(this.mark)&&this.from<=n.to&&this.to>=n.from)return new t(Math.min(this.from,n.from),Math.max(this.to,n.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(n,o){if(typeof o.from!="number"||typeof o.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(o.from,o.to,n.markFromJSON(o.mark))},t}(ht);ht.jsonID("addMark",Cn);var Qe=function(e){function t(r,n,o){e.call(this),this.from=r,this.to=n,this.mark=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(n){var o=this,i=n.slice(this.from,this.to),s=new C(xn(i.content,function(a){return a.mark(o.mark.removeFromSet(a.marks))}),i.openStart,i.openEnd);return bt.fromReplace(n,this.from,this.to,s)},t.prototype.invert=function(){return new Cn(this.from,this.to,this.mark)},t.prototype.map=function(n){var o=n.mapResult(this.from,1),i=n.mapResult(this.to,-1);return o.deleted&&i.deleted||o.pos>=i.pos?null:new t(o.pos,i.pos,this.mark)},t.prototype.merge=function(n){if(n instanceof t&&n.mark.eq(this.mark)&&this.from<=n.to&&this.to>=n.from)return new t(Math.min(this.from,n.from),Math.max(this.to,n.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(n,o){if(typeof o.from!="number"||typeof o.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(o.from,o.to,n.markFromJSON(o.mark))},t}(ht);ht.jsonID("removeMark",Qe);X.prototype.addMark=function(e,t,r){var n=this,o=[],i=[],s=null,a=null;return this.doc.nodesBetween(e,t,function(c,l,u){if(!!c.isInline){var f=c.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){for(var p=Math.max(l,e),d=Math.min(l+c.nodeSize,t),h=r.addToSet(f),v=0;v=0;p--)this.step(o[p]);return this};function Qc(e,t,r,n){if(r===void 0&&(r=t),n===void 0&&(n=C.empty),t==r&&!n.size)return null;var o=e.resolve(t),i=e.resolve(r);return wi(o,i,n)?new te(t,r,n):new It(o,i,n).fit()}X.prototype.replace=function(e,t,r){t===void 0&&(t=e),r===void 0&&(r=C.empty);var n=Qc(this.doc,e,t,r);return n&&this.step(n),this};X.prototype.replaceWith=function(e,t,r){return this.replace(e,t,new C(k.from(r),0,0))};X.prototype.delete=function(e,t){return this.replace(e,t,C.empty)};X.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};function wi(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}var It=function(t,r,n){this.$to=r,this.$from=t,this.unplaced=n,this.frontier=[];for(var o=0;o<=t.depth;o++){var i=t.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(o))})}this.placed=k.empty;for(var s=t.depth;s>0;s--)this.placed=k.from(t.node(s).copy(this.placed))},Ti={depth:{configurable:!0}};Ti.depth.get=function(){return this.frontier.length-1};It.prototype.fit=function(){for(;this.unplaced.size;){var t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}var r=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,i=this.close(r<0?this.$to:o.doc.resolve(r));if(!i)return null;for(var s=this.placed,a=o.depth,c=i.depth;a&&c&&s.childCount==1;)s=s.firstChild.content,a--,c--;var l=new C(s,a,c);if(r>-1)return new xt(o.pos,r,this.$to.pos,this.$to.end(),l,n);if(l.size||o.pos!=this.$to.pos)return new te(o.pos,i.pos,l)};It.prototype.findFittable=function(){for(var t=1;t<=2;t++)for(var r=this.unplaced.openStart;r>=0;r--){var n=void 0,o=void 0;r?(o=On(this.unplaced.content,r-1).firstChild,n=o.content):n=this.unplaced.content;for(var i=n.firstChild,s=this.depth;s>=0;s--){var a=this.frontier[s],c=a.type,l=a.match,u=void 0,f=void 0;if(t==1&&(i?l.matchType(i.type)||(f=l.fillBefore(k.from(i),!1)):c.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:f};if(t==2&&i&&(u=l.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:u};if(o&&l.matchType(o.type))break}}};It.prototype.openMore=function(){var t=this.unplaced,r=t.content,n=t.openStart,o=t.openEnd,i=On(r,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new C(r,n+1,Math.max(o,i.size+n>=r.size-o?n+1:0)),!0)};It.prototype.dropNode=function(){var t=this.unplaced,r=t.content,n=t.openStart,o=t.openEnd,i=On(r,n);if(i.childCount<=1&&n>0){var s=r.size-n<=n+i.size;this.unplaced=new C(Ze(r,n-1,1),n-1,s?n-1:o)}else this.unplaced=new C(Ze(r,n,1),n,o)};It.prototype.placeNodes=function(t){for(var r=t.sliceDepth,n=t.frontierDepth,o=t.parent,i=t.inject,s=t.wrap;this.depth>n;)this.closeFrontierNode();if(s)for(var a=0;a1||u==0||y.content.size)&&(h=R,p.push(Ai(y.mark(v.allowedMarks(y.marks)),f==1?u:0,f==l.childCount?M:-1)))}var m=f==l.childCount;m||(M=-1),this.placed=tr(this.placed,n,k.from(p)),this.frontier[n].match=h,m&&M<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var I=0,O=l;I1&&i==this.$to.end(--o);)++i;return i};It.prototype.findCloseLevel=function(t){t:for(var r=Math.min(this.depth,t.depth);r>=0;r--){var n=this.frontier[r],o=n.match,i=n.type,s=r=0;c--){var l=this.frontier[c],u=l.match,f=l.type,p=wn(t,c,f,u,!0);if(!p||p.childCount)continue t}return{depth:r,fit:a,move:s?t.doc.resolve(t.after(r+1)):t}}}};It.prototype.close=function(t){var r=this.findCloseLevel(t);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=tr(this.placed,r.depth,r.fit)),t=r.move;for(var n=r.depth+1;n<=t.depth;n++){var o=t.node(n),i=o.type.contentMatch.fillBefore(o.content,!0,t.index(n));this.openFrontierNode(o.type,o.attrs,i)}return t};It.prototype.openFrontierNode=function(t,r,n){var o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=tr(this.placed,this.depth,k.from(t.create(r,n))),this.frontier.push({type:t,match:t.contentMatch})};It.prototype.closeFrontierNode=function(){var t=this.frontier.pop(),r=t.match.fillBefore(k.empty,!0);r.childCount&&(this.placed=tr(this.placed,this.frontier.length,r))};Object.defineProperties(It.prototype,Ti);function Ze(e,t,r){return t==0?e.cutByIndex(r):e.replaceChild(0,e.firstChild.copy(Ze(e.firstChild.content,t-1,r)))}function tr(e,t,r){return t==0?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(tr(e.lastChild.content,t-1,r)))}function On(e,t){for(var r=0;r1&&(n=n.replaceChild(0,Ai(n.firstChild,t-1,n.childCount==1?r-1:0))),t>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(k.empty,!0)))),e.copy(n)}function wn(e,t,r,n,o){var i=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==i.childCount&&!r.compatibleContent(i.type))return null;var a=n.fillBefore(i.content,!0,s);return a&&!Zc(r,i.content,s)?a:null}function Zc(e,t,r){for(var n=r;n0;a--,c--){var l=n.node(a).type.spec;if(l.defining||l.isolating)break;i.indexOf(a)>-1?s=a:n.before(a)==c&&i.splice(1,0,-a)}for(var u=i.indexOf(s),f=[],p=r.openStart,d=r.content,h=0;;h++){var v=d.firstChild;if(f.push(v),h==r.openStart)break;d=v.content}p>0&&f[p-1].type.spec.defining&&n.node(u).type!=f[p-1].type?p-=1:p>=2&&f[p-1].isTextblock&&f[p-2].type.spec.defining&&n.node(u).type!=f[p-2].type&&(p-=2);for(var g=r.openStart;g>=0;g--){var M=(g+p+1)%(r.openStart+1),y=f[M];if(!!y)for(var R=0;R=0&&(this.replace(e,t,r),!(this.steps.length>J));U--){var T=i[U];T<0||(e=n.before(T),t=o.after(T))}return this};function _i(e,t,r,n,o){if(tn){var s=o.contentMatchAt(0),a=s.fillBefore(e).append(e);e=a.append(s.matchFragment(a).fillBefore(k.empty,!0))}return e}X.prototype.replaceRangeWith=function(e,t,r){if(!r.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var n=Xc(this.doc,e,r.type);n!=null&&(e=t=n)}return this.replaceRange(e,t,new C(k.from(r),0,0))};X.prototype.deleteRange=function(e,t){for(var r=this.doc.resolve(e),n=this.doc.resolve(t),o=Ni(r,n),i=0;i0&&(a||r.node(s-1).canReplace(r.index(s-1),n.indexAfter(s-1))))return this.delete(r.before(s),n.after(s))}for(var c=1;c<=r.depth&&c<=n.depth;c++)if(e-r.start(c)==r.depth-c&&t>r.end(c)&&n.end(c)-t!=n.depth-c)return this.delete(r.before(c),t);return this.delete(e,t)};function Ni(e,t){for(var r=[],n=Math.min(e.depth,t.depth),o=n;o>=0;o--){var i=e.start(o);if(it.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;i==t.start(o)&&r.push(o)}return r}var Tn=Object.create(null),D=function(t,r,n){this.ranges=n||[new tl(t.min(r),t.max(r))],this.$anchor=t,this.$head=r},se={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};se.anchor.get=function(){return this.$anchor.pos};se.head.get=function(){return this.$head.pos};se.from.get=function(){return this.$from.pos};se.to.get=function(){return this.$to.pos};se.$from.get=function(){return this.ranges[0].$from};se.$to.get=function(){return this.ranges[0].$to};se.empty.get=function(){for(var e=this.ranges,t=0;t=0;i--){var s=r<0?Be(t.node(0),t.node(i),t.before(i+1),t.index(i),r,n):Be(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,r,n);if(s)return s}};D.near=function(t,r){return r===void 0&&(r=1),this.findFrom(t,r)||this.findFrom(t,-r)||new re(t.node(0))};D.atStart=function(t){return Be(t,t,0,0,1)||new re(t)};D.atEnd=function(t){return Be(t,t,t.content.size,t.childCount,-1)||new re(t)};D.fromJSON=function(t,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Tn[r.type];if(!n)throw new RangeError("No selection type "+r.type+" defined");return n.fromJSON(t,r)};D.jsonID=function(t,r){if(t in Tn)throw new RangeError("Duplicate use of selection JSON ID "+t);return Tn[t]=r,r.prototype.jsonID=t,r};D.prototype.getBookmark=function(){return H.between(this.$anchor,this.$head).getBookmark()};Object.defineProperties(D.prototype,se);D.prototype.visible=!0;var tl=function(t,r){this.$from=t,this.$to=r},H=function(e){function t(n,o){o===void 0&&(o=n),e.call(this,n,o)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={$cursor:{configurable:!0}};return r.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(o,i){var s=o.resolve(i.map(this.head));if(!s.parent.inlineContent)return e.near(s);var a=o.resolve(i.map(this.anchor));return new t(a.parent.inlineContent?a:s,s)},t.prototype.replace=function(o,i){if(i===void 0&&(i=C.empty),e.prototype.replace.call(this,o,i),i==C.empty){var s=this.$from.marksAcross(this.$to);s&&o.ensureMarks(s)}},t.prototype.eq=function(o){return o instanceof t&&o.anchor==this.anchor&&o.head==this.head},t.prototype.getBookmark=function(){return new er(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(o,i){if(typeof i.anchor!="number"||typeof i.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(o.resolve(i.anchor),o.resolve(i.head))},t.create=function(o,i,s){s===void 0&&(s=i);var a=o.resolve(i);return new this(a,s==i?a:o.resolve(s))},t.between=function(o,i,s){var a=o.pos-i.pos;if((!s||a)&&(s=a>=0?1:-1),!i.parent.inlineContent){var c=e.findFrom(i,s,!0)||e.findFrom(i,-s,!0);if(c)i=c.$head;else return e.near(i,s)}return o.parent.inlineContent||(a==0?o=i:(o=(e.findFrom(o,-s,!0)||e.findFrom(o,s,!0)).$anchor,o.pos0?0:1);o>0?s=0;s+=o){var a=t.child(s);if(a.isAtom){if(!i&&E.isSelectable(a))return E.create(e,r-(o<0?a.nodeSize:0))}else{var c=Be(e,a,r+o,o<0?a.childCount:0,o,i);if(c)return c}r+=a.nodeSize*o}}function Ei(e,t,r){var n=e.steps.length-1;if(!(n0},t.prototype.setStoredMarks=function(o){return this.storedMarks=o,this.updated|=Ir,this},t.prototype.ensureMarks=function(o){return P.sameSet(this.storedMarks||this.selection.$from.marks(),o)||this.setStoredMarks(o),this},t.prototype.addStoredMark=function(o){return this.ensureMarks(o.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(o){return this.ensureMarks(o.removeFromSet(this.storedMarks||this.selection.$head.marks()))},r.storedMarksSet.get=function(){return(this.updated&Ir)>0},t.prototype.addStep=function(o,i){e.prototype.addStep.call(this,o,i),this.updated=this.updated&~Ir,this.storedMarks=null},t.prototype.setTime=function(o){return this.time=o,this},t.prototype.replaceSelection=function(o){return this.selection.replace(this,o),this},t.prototype.replaceSelectionWith=function(o,i){var s=this.selection;return i!==!1&&(o=o.mark(this.storedMarks||(s.empty?s.$from.marks():s.$from.marksAcross(s.$to)||P.none))),s.replaceWith(this,o),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(o,i,s){s===void 0&&(s=i);var a=this.doc.type.schema;if(i==null)return o?this.replaceSelectionWith(a.text(o),!0):this.deleteSelection();if(!o)return this.deleteRange(i,s);var c=this.storedMarks;if(!c){var l=this.doc.resolve(i);c=s==i?l.marks():l.marksAcross(this.doc.resolve(s))}return this.replaceRangeWith(i,s,a.text(o,c)),this.selection.empty||this.setSelection(D.near(this.selection.$to)),this},t.prototype.setMeta=function(o,i){return this.meta[typeof o=="string"?o:o.key]=i,this},t.prototype.getMeta=function(o){return this.meta[typeof o=="string"?o:o.key]},r.isGeneric.get=function(){for(var n in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=Ii,this},r.scrolledIntoView.get=function(){return(this.updated&Ii)>0},Object.defineProperties(t.prototype,r),t}(X);function Ri(e,t){return!t||!e?e:e.bind(t)}var rr=function(t,r,n){this.name=t,this.init=Ri(r.init,n),this.apply=Ri(r.apply,n)},nl=[new rr("doc",{init:function(t){return t.doc||t.schema.topNodeType.createAndFill()},apply:function(t){return t.doc}}),new rr("selection",{init:function(t,r){return t.selection||D.atStart(r.doc)},apply:function(t){return t.selection}}),new rr("storedMarks",{init:function(t){return t.storedMarks||null},apply:function(t,r,n,o){return o.selection.$cursor?t.storedMarks:null}}),new rr("scrollToSelection",{init:function(){return 0},apply:function(t,r){return t.scrolledIntoView?r+1:r}})],An=function(t,r){var n=this;this.schema=t,this.fields=nl.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),r&&r.forEach(function(o){if(n.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");n.plugins.push(o),n.pluginsByKey[o.key]=o,o.spec.state&&n.fields.push(new rr(o.key,o.spec.state,o))})},mt=function(t){this.config=t},Rr={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};Rr.schema.get=function(){return this.config.schema};Rr.plugins.get=function(){return this.config.plugins};mt.prototype.apply=function(t){return this.applyTransaction(t).state};mt.prototype.filterTransaction=function(t,r){r===void 0&&(r=-1);for(var n=0;n-1&&nr.splice(r,1)};Object.defineProperties(mt.prototype,Rr);var nr=[];function Pi(e,t,r){for(var n in e){var o=e[n];o instanceof Function?o=o.bind(t):n=="handleDOMEvents"&&(o=Pi(o,t,{})),r[n]=o}return r}var Rt=function(t){this.props={},t.props&&Pi(t.props,this,this.props),this.spec=t,this.key=t.key?t.key.key:Bi("plugin")};Rt.prototype.getState=function(t){return t[this.key]};var _n=Object.create(null);function Bi(e){return e in _n?e+"$"+ ++_n[e]:(_n[e]=0,e+"$")}var Wt=function(t){t===void 0&&(t="key"),this.key=Bi(t)};Wt.prototype.get=function(t){return t.config.pluginsByKey[this.key]};Wt.prototype.getState=function(t){return t[this.key]};var x={};if(typeof navigator!="undefined"&&typeof document!="undefined"){var Nn=/Edge\/(\d+)/.exec(navigator.userAgent),zi=/MSIE \d/.test(navigator.userAgent),En=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);x.mac=/Mac/.test(navigator.platform);var Dn=x.ie=!!(zi||En||Nn);x.ie_version=zi?document.documentMode||6:En?+En[1]:Nn?+Nn[1]:null,x.gecko=!Dn&&/gecko\/(\d+)/i.test(navigator.userAgent),x.gecko_version=x.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var In=!Dn&&/Chrome\/(\d+)/.exec(navigator.userAgent);x.chrome=!!In,x.chrome_version=In&&+In[1],x.safari=!Dn&&/Apple Computer/.test(navigator.vendor),x.ios=x.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),x.android=/Android \d/.test(navigator.userAgent),x.webkit="webkitFontSmoothing"in document.documentElement.style,x.webkit_version=x.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var Pt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Rn=function(e){var t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},Li=null,ne=function(e,t,r){var n=Li||(Li=document.createRange());return n.setEnd(e,r==null?e.nodeValue.length:r),n.setStart(e,t||0),n},Pr=function(e,t,r,n){return r&&(Fi(e,t,r,n,-1)||Fi(e,t,r,n,1))},ol=/^(img|br|input|textarea|hr)$/i;function Fi(e,t,r,n,o){for(;;){if(e==r&&t==n)return!0;if(t==(o<0?0:Kt(e))){var i=e.parentNode;if(i.nodeType!=1||sl(e)||ol.test(e.nodeName)||e.contentEditable=="false")return!1;t=Pt(e)+(o<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(o<0?-1:0)],e.contentEditable=="false")return!1;t=o<0?Kt(e):0}else return!1}}function Kt(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function il(e,t,r){for(var n=t==0,o=t==Kt(e);n||o;){if(e==r)return!0;var i=Pt(e);if(e=e.parentNode,!e)return!1;n=n&&i==0,o=o&&i==Kt(e)}}function sl(e){for(var t,r=e;r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Pn=function(e){var t=e.isCollapsed;return t&&x.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function ze(e,t){var r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}function al(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function ae(e,t){return typeof e=="number"?e:e[t]}function cl(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*n}}function Vi(e,t,r){for(var n=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,s=r||e.dom;s;s=Rn(s))if(s.nodeType==1){var a=s==i.body||s.nodeType!=1,c=a?al(i):cl(s),l=0,u=0;if(t.topc.bottom-ae(n,"bottom")&&(u=t.bottom-c.bottom+ae(o,"bottom")),t.leftc.right-ae(n,"right")&&(l=t.right-c.right+ae(o,"right")),l||u)if(a)i.defaultView.scrollBy(l,u);else{var f=s.scrollLeft,p=s.scrollTop;u&&(s.scrollTop+=u),l&&(s.scrollLeft+=l);var d=s.scrollLeft-f,h=s.scrollTop-p;t={left:t.left-d,top:t.top-h,right:t.right-d,bottom:t.bottom-h}}if(a)break}}function ll(e){for(var t=e.dom.getBoundingClientRect(),r=Math.max(0,t.top),n,o,i=(t.left+t.right)/2,s=r+1;s=r-20){n=a,o=c.top;break}}}return{refDOM:n,refTop:o,stack:Hi(e.dom)}}function Hi(e){for(var t=[],r=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=r);e=Rn(e));return t}function ul(e){var t=e.refDOM,r=e.refTop,n=e.stack,o=t?t.getBoundingClientRect().top:0;ji(n,o==0?0:o-r)}function ji(e,t){for(var r=0;r=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);var d=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}!r&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=l+1)}}return r&&r.nodeType==3?pl(r,o):!r||n&&r.nodeType==1?{node:e,offset:i}:qi(r,o)}function pl(e,t){for(var r=e.nodeValue.length,n=document.createRange(),o=0;o=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}function Bn(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function dl(e,t){var r=e.parentNode;return r&&/^li$/i.test(r.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(o,i,s)}function ml(e,t,r,n){for(var o=-1,i=t;i!=e.dom;){var s=e.docView.nearestDesc(i,!0);if(!s)return null;if(s.node.isBlock&&s.parent){var a=s.dom.getBoundingClientRect();if(a.left>n.left||a.top>n.top)o=s.posBefore;else if(a.right-1?o:e.docView.posFromDOM(t,r)}function Ji(e,t,r){var n=e.childNodes.length;if(n&&r.topt.top&&s++}i==e.dom&&s==i.childNodes.length-1&&i.lastChild.nodeType==1&&t.top>i.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:(s==0||i.nodeType!=1||i.childNodes[s-1].nodeName!="BR")&&(u=ml(e,i,s,t))}u==null&&(u=hl(e,l,t));var v=e.docView.nearestDesc(l,!0);return{pos:u,inside:v?v.posAtStart-v.border:-1}}function ce(e,t){var r=e.getClientRects();return r.length?r[t<0?0:r.length-1]:e.getBoundingClientRect()}var gl=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Wi(e,t,r){var n=e.docView.domFromPos(t,r<0?-1:1),o=n.node,i=n.offset,s=x.webkit||x.gecko;if(o.nodeType==3)if(s&&(gl.test(o.nodeValue)||(r<0?!i:i==o.nodeValue.length))){var a=ce(ne(o,i,i),r);if(x.gecko&&i&&/\s/.test(o.nodeValue[i-1])&&i=0&&i==o.nodeValue.length?(u--,p=1):r<0?u--:f++,or(ce(ne(o,u,f),p),p<0)}if(!e.state.doc.resolve(t).parent.inlineContent){if(i&&(r<0||i==Kt(o))){var d=o.childNodes[i-1];if(d.nodeType==1)return zn(d.getBoundingClientRect(),!1)}if(i=0)}if(i&&(r<0||i==Kt(o))){var v=o.childNodes[i-1],g=v.nodeType==3?ne(v,Kt(v)-(s?0:1)):v.nodeType==1&&(v.nodeName!="BR"||!v.nextSibling)?v:null;if(g)return or(ce(g,1),!1)}if(i=0)}function or(e,t){if(e.width==0)return e;var r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function zn(e,t){if(e.height==0)return e;var r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function Ki(e,t,r){var n=e.state,o=e.root.activeElement;n!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return r()}finally{n!=t&&e.updateState(n),o!=e.dom&&o&&o.focus()}}function yl(e,t,r){var n=t.selection,o=r=="up"?n.$from:n.$to;return Ki(e,t,function(){for(var i=e.docView.domFromPos(o.pos,r=="up"?-1:1),s=i.node;;){var a=e.docView.nearestDesc(s,!0);if(!a)break;if(a.node.isBlock){s=a.dom;break}s=a.dom.parentNode}for(var c=Wi(e,o.pos,1),l=s.firstChild;l;l=l.nextSibling){var u=void 0;if(l.nodeType==1)u=l.getClientRects();else if(l.nodeType==3)u=ne(l,0,l.nodeValue.length).getClientRects();else continue;for(var f=0;fp.top&&(r=="up"?p.bottomc.bottom-1))return!1}}return!0})}var bl=/[\u0590-\u08ac]/;function kl(e,t,r){var n=t.selection,o=n.$head;if(!o.parent.isTextblock)return!1;var i=o.parentOffset,s=!i,a=i==o.parent.content.size,c=e.root.getSelection();return!bl.test(o.parent.textContent)||!c.modify?r=="left"||r=="backward"?s:a:Ki(e,t,function(){var l=c.getRangeAt(0),u=c.focusNode,f=c.focusOffset,p=c.caretBidiLevel;c.modify("move",r,"character");var d=o.depth?e.docView.domAfterPos(o.before()):e.dom,h=!d.contains(c.focusNode.nodeType==1?c.focusNode:c.focusNode.parentNode)||u==c.focusNode&&f==c.focusOffset;return c.removeAllRanges(),c.addRange(l),p!=null&&(c.caretBidiLevel=p),h})}var $i=null,Ui=null,Gi=!1;function Sl(e,t,r){return $i==t&&Ui==r?Gi:($i=t,Ui=r,Gi=r=="up"||r=="down"?yl(e,t,r):kl(e,t,r))}var Ft=0,Yi=1,ir=2,le=3,W=function(t,r,n,o){this.parent=t,this.children=r,this.dom=n,n.pmViewDesc=this,this.contentDOM=o,this.dirty=Ft},$t={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0}};W.prototype.matchesWidget=function(){return!1};W.prototype.matchesMark=function(){return!1};W.prototype.matchesNode=function(){return!1};W.prototype.matchesHack=function(t){return!1};$t.beforePosition.get=function(){return!1};W.prototype.parseRule=function(){return null};W.prototype.stopEvent=function(){return!1};$t.size.get=function(){for(var e=0,t=0;tPt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))c=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(r==0)for(var l=t;;l=l.parentNode){if(l==this.dom){c=!1;break}if(l.parentNode.firstChild!=l)break}if(c==null&&r==t.childNodes.length)for(var u=t;;u=u.parentNode){if(u==this.dom){c=!0;break}if(u.parentNode.lastChild!=u)break}}return(c==null?n>0:c)?this.posAtEnd:this.posAtStart};W.prototype.nearestDesc=function(t,r){for(var n=!0,o=t;o;o=o.parentNode){var i=this.getDesc(o);if(i&&(!r||i.node))if(n&&i.nodeDOM&&!(i.nodeDOM.nodeType==1?i.nodeDOM.contains(t.nodeType==1?t:t.parentNode):i.nodeDOM==t))n=!1;else return i}};W.prototype.getDesc=function(t){for(var r=t.pmViewDesc,n=r;n;n=n.parent)if(n==this)return r};W.prototype.posFromDOM=function(t,r,n){for(var o=t;o;o=o.parentNode){var i=this.getDesc(o);if(i)return i.localPosFromDOM(t,r,n)}return-1};W.prototype.descAt=function(t){for(var r=0,n=0;r=t:a>t)&&(a>t||o+1>=this.children.length||!this.children[o+1].beforePosition))return s.domFromPos(t-n-s.border,r);n=a}};W.prototype.parseRange=function(t,r,n){if(n===void 0&&(n=0),this.children.length==0)return{node:this.contentDOM,from:t,to:r,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var o=-1,i=-1,s=n,a=0;;a++){var c=this.children[a],l=s+c.size;if(o==-1&&t<=l){var u=s+c.border;if(t>=u&&r<=l-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,r,u);t=s;for(var f=a;f>0;f--){var p=this.children[f-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=Pt(p.dom)+1;break}t-=p.size}o==-1&&(o=0)}if(o>-1&&(l>r||a==this.children.length-1)){r=l;for(var d=a+1;dc&&s!!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 L=o(y,[["render",C]]);export{L as B,I as a}; +import{_ as o}from"./main.c7bd6c0e.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.d12b5734.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 I=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 L=o(y,[["render",C]]);export{L as B,I as a}; diff --git a/public/build/assets/BaseMultiselect.2374ebb2.js b/public/build/assets/BaseMultiselect.1793a39d.js similarity index 99% rename from public/build/assets/BaseMultiselect.2374ebb2.js rename to public/build/assets/BaseMultiselect.1793a39d.js index ffc3bf905..54452e02d 100644 --- a/public/build/assets/BaseMultiselect.2374ebb2.js +++ b/public/build/assets/BaseMultiselect.1793a39d.js @@ -1 +1 @@ -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.d12b5734.js";import{_ as nl}from"./main.6ceeb72d.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{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{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}; +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.d12b5734.js";import{_ as nl}from"./main.c7bd6c0e.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{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{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}; diff --git a/public/build/assets/BaseTable.86db669d.js b/public/build/assets/BaseTable.d75a6388.js similarity index 99% rename from public/build/assets/BaseTable.86db669d.js rename to public/build/assets/BaseTable.d75a6388.js index d2bf5e0a2..f447a5896 100644 --- a/public/build/assets/BaseTable.86db669d.js +++ b/public/build/assets/BaseTable.d75a6388.js @@ -1 +1 @@ -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.d12b5734.js";import{_ as Z,S as $}from"./main.6ceeb72d.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{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{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.d12b5734.js";import{_ as Z,S as $}from"./main.c7bd6c0e.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{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}; diff --git a/public/build/assets/CategoryModal.b8530d2c.js b/public/build/assets/CategoryModal.dc91de33.js similarity index 91% rename from public/build/assets/CategoryModal.b8530d2c.js rename to public/build/assets/CategoryModal.dc91de33.js index b4d9e6d79..d28b6fd5b 100644 --- a/public/build/assets/CategoryModal.b8530d2c.js +++ b/public/build/assets/CategoryModal.dc91de33.js @@ -1 +1 @@ -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.d12b5734.js";import{u as z}from"./category.1184b061.js";import{c as E}from"./main.6ceeb72d.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 _}; +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.d12b5734.js";import{u as z}from"./category.970a47d6.js";import{c as E}from"./main.c7bd6c0e.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 _}; diff --git a/public/build/assets/CompanyInfoSettings.1d341534.js b/public/build/assets/CompanyInfoSettings.4883a4d5.js similarity index 99% rename from public/build/assets/CompanyInfoSettings.1d341534.js rename to public/build/assets/CompanyInfoSettings.4883a4d5.js index fc47434c0..ac4889625 100644 --- a/public/build/assets/CompanyInfoSettings.1d341534.js +++ b/public/build/assets/CompanyInfoSettings.4883a4d5.js @@ -1 +1 @@ -var oe=Object.defineProperty;var T=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var R=(f,s,d)=>s in f?oe(f,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):f[s]=d,A=(f,s)=>{for(var d in s||(s={}))se.call(s,d)&&R(f,d,s[d]);if(T)for(var d of T(s))ne.call(s,d)&&R(f,d,s[d]);return f};import{aN as le,J,B as C,a0 as E,k as F,L as h,M as k,P as de,T as O,r as u,o as I,l as q,w as r,h as m,t as b,u as e,f as o,i as j,m as P,j as z,U as H,ah as re,N as ie,e as K,x as ue,F as me}from"./vendor.d12b5734.js";import{b as Q,c as W,d as X}from"./main.6ceeb72d.js";const ce={class:"flex justify-between w-full"},pe={class:"px-6 pt-6"},_e={class:"font-medium text-lg text-left"},fe={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},ye=["onSubmit"],ge={class:"p-4 sm:p-6 space-y-4"},ve={class:"z-0 flex justify-end p-4 bg-gray-50 border-modal-bg"},be={setup(f){const s=Q(),d=W(),S=X(),B=le(),{t:M}=J();let c=C(!1);const a=E({id:s.selectedCompany.id,name:null}),$=F(()=>d.active&&d.componentName==="DeleteCompanyModal"),g={formData:{name:{required:h.withMessage(M("validation.required"),k),sameAsName:h.withMessage(M("validation.company_name_not_same"),de(s.selectedCompany.name))}}},_=O(g,{formData:a},{$scope:!1});async function V(){if(_.value.$touch(),_.value.$invalid)return!0;const v=s.companies[0];c.value=!0;try{const y=await s.deleteCompany(a);console.log(y.data.success),y.data.success&&(p(),await s.setSelectedCompany(v),B.push("/admin/dashboard"),await S.setIsAppLoaded(!1),await S.bootstrap()),c.value=!1}catch{c.value=!1}}function N(){a.id=null,a.name="",_.value.$reset()}function p(){d.closeModal(),setTimeout(()=>{N(),_.value.$reset()},300)}return(v,y)=>{const U=u("BaseInput"),x=u("BaseInputGroup"),l=u("BaseButton"),t=u("BaseIcon"),D=u("BaseModal");return I(),q(D,{show:e($),onClose:p},{default:r(()=>[m("div",ce,[m("div",pe,[m("h6",_e,b(e(d).title),1),m("p",fe,b(v.$t("settings.company_info.delete_company_modal_desc",{company:e(s).selectedCompany.name})),1)])]),m("form",{action:"",onSubmit:H(V,["prevent"])},[m("div",ge,[o(x,{label:v.$t("settings.company_info.delete_company_modal_label",{company:e(s).selectedCompany.name}),error:e(_).formData.name.$error&&e(_).formData.name.$errors[0].$message,required:""},{default:r(()=>[o(U,{modelValue:e(a).name,"onUpdate:modelValue":y[0]||(y[0]=i=>e(a).name=i),invalid:e(_).formData.name.$error,onInput:y[1]||(y[1]=i=>e(_).formData.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),m("div",ve,[o(l,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:p},{default:r(()=>[j(b(v.$t("general.cancel")),1)]),_:1}),o(l,{loading:e(c),disabled:e(c),variant:"danger",type:"submit"},{left:r(i=>[e(c)?z("",!0):(I(),q(t,{key:0,name:"TrashIcon",class:P(i.class)},null,8,["class"]))]),default:r(()=>[j(" "+b(v.$t("general.delete")),1)]),_:1},8,["loading","disabled"])])],40,ye)]),_:1},8,["show"])}}},$e=["onSubmit"],Be={key:0,class:"py-5"},Ve={class:"text-lg leading-6 font-medium text-gray-900"},Ce={class:"mt-2 max-w-xl text-sm text-gray-500"},we={class:"mt-5"},Me={setup(f){const s=Q(),d=X(),S=W(),{t:B}=J(),M=re("utils");let c=C(!1);const a=E({name:null,logo:null,address:{address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:"",phone:"",zip:""}});M.mergeSettings(a,A({},s.selectedCompany));let $=C([]),g=C(null),_=C(null);const V=C(!1);a.logo&&$.value.push({image:a.logo});const N=F(()=>({name:{required:h.withMessage(B("validation.required"),k),minLength:h.withMessage(B("validation.name_min_length"),ie(3))},address:{country_id:{required:h.withMessage(B("validation.required"),k)}}})),p=O(N,F(()=>a));d.fetchCountries();function v(l,t,D,i){_.value=i.name,g.value=t}function y(){g.value=null,V.value=!0}async function U(){if(p.value.$touch(),p.value.$invalid)return!0;if(c.value=!0,(await s.updateCompany(a)).data.data){if(g.value||V.value){let t=new FormData;g.value&&t.append("company_logo",JSON.stringify({name:_.value,data:g.value})),t.append("is_company_logo_removed",V.value),await s.updateCompanyLogo(t),g.value=null,V.value=!1}c.value=!1}c.value=!1}function x(l){S.openModal({title:B("settings.company_info.are_you_absolutely_sure"),componentName:"DeleteCompanyModal",size:"sm"})}return(l,t)=>{const D=u("BaseFileUploader"),i=u("BaseInputGroup"),G=u("BaseInputGrid"),w=u("BaseInput"),Y=u("BaseMultiselect"),L=u("BaseTextarea"),Z=u("BaseIcon"),ee=u("BaseButton"),ae=u("BaseDivider"),te=u("BaseSettingCard");return I(),K(me,null,[m("form",{onSubmit:H(U,["prevent"])},[o(te,{title:l.$t("settings.company_info.company_info"),description:l.$t("settings.company_info.section_description")},{default:r(()=>[o(G,{class:"mt-5"},{default:r(()=>[o(i,{label:l.$tc("settings.company_info.company_logo")},{default:r(()=>[o(D,{modelValue:e($),"onUpdate:modelValue":t[0]||(t[0]=n=>ue($)?$.value=n:$=n),base64:"",onChange:v,onRemove:y},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),o(G,{class:"mt-5"},{default:r(()=>[o(i,{label:l.$tc("settings.company_info.company_name"),error:e(p).name.$error&&e(p).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(p).name.$error,onBlur:t[2]||(t[2]=n=>e(p).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(i,{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(i,{label:l.$tc("settings.company_info.country"),error:e(p).address.country_id.$error&&e(p).address.country_id.$errors[0].$message,required:""},{default:r(()=>[o(Y,{modelValue:e(a).address.country_id,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).address.country_id=n),label:"name",invalid:e(p).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(i,{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(i,{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(i,{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"]),m("div",null,[o(i,{label:l.$tc("settings.company_info.address")},{default:r(()=>[o(L,{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(L,{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(ee,{loading:e(c),disabled:e(c),type:"submit",class:"mt-6"},{left:r(n=>[e(c)?z("",!0):(I(),q(Z,{key:0,class:P(n.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[j(" "+b(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"]),e(s).companies.length!==1?(I(),K("div",Be,[o(ae,{class:"my-4"}),m("h3",Ve,b(l.$tc("settings.company_info.delete_company")),1),m("div",Ce,[m("p",null,b(l.$tc("settings.company_info.delete_company_description")),1)]),m("div",we,[m("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},b(l.$tc("general.delete")),1)])])):z("",!0)]),_:1},8,["title","description"])],40,$e),o(be)],64)}}};export{Me as default}; +var oe=Object.defineProperty;var T=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var R=(f,s,d)=>s in f?oe(f,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):f[s]=d,A=(f,s)=>{for(var d in s||(s={}))se.call(s,d)&&R(f,d,s[d]);if(T)for(var d of T(s))ne.call(s,d)&&R(f,d,s[d]);return f};import{aN as le,J,B as C,a0 as E,k as F,L as h,M as k,P as de,T as O,r as u,o as I,l as q,w as r,h as m,t as b,u as e,f as o,i as j,m as P,j as z,U as H,ah as re,N as ie,e as K,x as ue,F as me}from"./vendor.d12b5734.js";import{b as Q,c as W,d as X}from"./main.c7bd6c0e.js";const ce={class:"flex justify-between w-full"},pe={class:"px-6 pt-6"},_e={class:"font-medium text-lg text-left"},fe={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},ye=["onSubmit"],ge={class:"p-4 sm:p-6 space-y-4"},ve={class:"z-0 flex justify-end p-4 bg-gray-50 border-modal-bg"},be={setup(f){const s=Q(),d=W(),S=X(),B=le(),{t:M}=J();let c=C(!1);const a=E({id:s.selectedCompany.id,name:null}),$=F(()=>d.active&&d.componentName==="DeleteCompanyModal"),g={formData:{name:{required:h.withMessage(M("validation.required"),k),sameAsName:h.withMessage(M("validation.company_name_not_same"),de(s.selectedCompany.name))}}},_=O(g,{formData:a},{$scope:!1});async function V(){if(_.value.$touch(),_.value.$invalid)return!0;const v=s.companies[0];c.value=!0;try{const y=await s.deleteCompany(a);console.log(y.data.success),y.data.success&&(p(),await s.setSelectedCompany(v),B.push("/admin/dashboard"),await S.setIsAppLoaded(!1),await S.bootstrap()),c.value=!1}catch{c.value=!1}}function N(){a.id=null,a.name="",_.value.$reset()}function p(){d.closeModal(),setTimeout(()=>{N(),_.value.$reset()},300)}return(v,y)=>{const U=u("BaseInput"),x=u("BaseInputGroup"),l=u("BaseButton"),t=u("BaseIcon"),D=u("BaseModal");return I(),q(D,{show:e($),onClose:p},{default:r(()=>[m("div",ce,[m("div",pe,[m("h6",_e,b(e(d).title),1),m("p",fe,b(v.$t("settings.company_info.delete_company_modal_desc",{company:e(s).selectedCompany.name})),1)])]),m("form",{action:"",onSubmit:H(V,["prevent"])},[m("div",ge,[o(x,{label:v.$t("settings.company_info.delete_company_modal_label",{company:e(s).selectedCompany.name}),error:e(_).formData.name.$error&&e(_).formData.name.$errors[0].$message,required:""},{default:r(()=>[o(U,{modelValue:e(a).name,"onUpdate:modelValue":y[0]||(y[0]=i=>e(a).name=i),invalid:e(_).formData.name.$error,onInput:y[1]||(y[1]=i=>e(_).formData.name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),m("div",ve,[o(l,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:p},{default:r(()=>[j(b(v.$t("general.cancel")),1)]),_:1}),o(l,{loading:e(c),disabled:e(c),variant:"danger",type:"submit"},{left:r(i=>[e(c)?z("",!0):(I(),q(t,{key:0,name:"TrashIcon",class:P(i.class)},null,8,["class"]))]),default:r(()=>[j(" "+b(v.$t("general.delete")),1)]),_:1},8,["loading","disabled"])])],40,ye)]),_:1},8,["show"])}}},$e=["onSubmit"],Be={key:0,class:"py-5"},Ve={class:"text-lg leading-6 font-medium text-gray-900"},Ce={class:"mt-2 max-w-xl text-sm text-gray-500"},we={class:"mt-5"},Me={setup(f){const s=Q(),d=X(),S=W(),{t:B}=J(),M=re("utils");let c=C(!1);const a=E({name:null,logo:null,address:{address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:"",phone:"",zip:""}});M.mergeSettings(a,A({},s.selectedCompany));let $=C([]),g=C(null),_=C(null);const V=C(!1);a.logo&&$.value.push({image:a.logo});const N=F(()=>({name:{required:h.withMessage(B("validation.required"),k),minLength:h.withMessage(B("validation.name_min_length"),ie(3))},address:{country_id:{required:h.withMessage(B("validation.required"),k)}}})),p=O(N,F(()=>a));d.fetchCountries();function v(l,t,D,i){_.value=i.name,g.value=t}function y(){g.value=null,V.value=!0}async function U(){if(p.value.$touch(),p.value.$invalid)return!0;if(c.value=!0,(await s.updateCompany(a)).data.data){if(g.value||V.value){let t=new FormData;g.value&&t.append("company_logo",JSON.stringify({name:_.value,data:g.value})),t.append("is_company_logo_removed",V.value),await s.updateCompanyLogo(t),g.value=null,V.value=!1}c.value=!1}c.value=!1}function x(l){S.openModal({title:B("settings.company_info.are_you_absolutely_sure"),componentName:"DeleteCompanyModal",size:"sm"})}return(l,t)=>{const D=u("BaseFileUploader"),i=u("BaseInputGroup"),G=u("BaseInputGrid"),w=u("BaseInput"),Y=u("BaseMultiselect"),L=u("BaseTextarea"),Z=u("BaseIcon"),ee=u("BaseButton"),ae=u("BaseDivider"),te=u("BaseSettingCard");return I(),K(me,null,[m("form",{onSubmit:H(U,["prevent"])},[o(te,{title:l.$t("settings.company_info.company_info"),description:l.$t("settings.company_info.section_description")},{default:r(()=>[o(G,{class:"mt-5"},{default:r(()=>[o(i,{label:l.$tc("settings.company_info.company_logo")},{default:r(()=>[o(D,{modelValue:e($),"onUpdate:modelValue":t[0]||(t[0]=n=>ue($)?$.value=n:$=n),base64:"",onChange:v,onRemove:y},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),o(G,{class:"mt-5"},{default:r(()=>[o(i,{label:l.$tc("settings.company_info.company_name"),error:e(p).name.$error&&e(p).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(p).name.$error,onBlur:t[2]||(t[2]=n=>e(p).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),o(i,{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(i,{label:l.$tc("settings.company_info.country"),error:e(p).address.country_id.$error&&e(p).address.country_id.$errors[0].$message,required:""},{default:r(()=>[o(Y,{modelValue:e(a).address.country_id,"onUpdate:modelValue":t[4]||(t[4]=n=>e(a).address.country_id=n),label:"name",invalid:e(p).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(i,{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(i,{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(i,{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"]),m("div",null,[o(i,{label:l.$tc("settings.company_info.address")},{default:r(()=>[o(L,{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(L,{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(ee,{loading:e(c),disabled:e(c),type:"submit",class:"mt-6"},{left:r(n=>[e(c)?z("",!0):(I(),q(Z,{key:0,class:P(n.class),name:"SaveIcon"},null,8,["class"]))]),default:r(()=>[j(" "+b(l.$tc("settings.company_info.save")),1)]),_:1},8,["loading","disabled"]),e(s).companies.length!==1?(I(),K("div",Be,[o(ae,{class:"my-4"}),m("h3",Ve,b(l.$tc("settings.company_info.delete_company")),1),m("div",Ce,[m("p",null,b(l.$tc("settings.company_info.delete_company_description")),1)]),m("div",we,[m("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},b(l.$tc("general.delete")),1)])])):z("",!0)]),_:1},8,["title","description"])],40,$e),o(be)],64)}}};export{Me as default}; diff --git a/public/build/assets/Create.4724f6a7.js b/public/build/assets/Create.3743a104.js similarity index 87% rename from public/build/assets/Create.4724f6a7.js rename to public/build/assets/Create.3743a104.js index f7574b207..09f98ff98 100644 --- a/public/build/assets/Create.4724f6a7.js +++ b/public/build/assets/Create.3743a104.js @@ -1 +1 @@ -import{G as ie,aN as de,J as ue,B as q,k as b,L as m,M as $,b2 as ce,S as N,O as pe,aP as me,T as ge,b1 as xe,r as d,o as v,e as _e,f as r,w as o,h as F,u as e,l as h,m as U,i as w,t as S,j as C,x as fe,U as ye,F as ve}from"./vendor.d12b5734.js";import{u as Ee}from"./expense.c4c3f409.js";import{u as be}from"./category.1184b061.js";import{l as $e,b as he,m as Ce,c as Be,d as Ve}from"./main.6ceeb72d.js";import{_ as we}from"./CreateCustomFields.1cd1f052.js";import{_ as Se}from"./CategoryModal.b8530d2c.js";import{_ as Me}from"./ExchangeRateConverter.2338e5bf.js";import"./exchange-rate.28527a8e.js";const Ie=["onSubmit"],ke={class:"hidden md:block"},qe={class:"block md:hidden"},Ae={setup(Fe){const _=$e(),j=he(),t=Ee(),f=be(),G=Ce(),T=Be(),y=ie(),A=de(),{t:u}=ue(),D=Ve();let g=q(!1),i=q(!1);const R="newExpense",M=q(!1),L=b(()=>({currentExpense:{expense_category_id:{required:m.withMessage(u("validation.required"),$)},expense_date:{required:m.withMessage(u("validation.required"),$)},amount:{required:m.withMessage(u("validation.required"),$),minValue:m.withMessage(u("validation.price_minvalue"),ce(.1)),maxLength:m.withMessage(u("validation.price_maxlength"),N(20))},notes:{maxLength:m.withMessage(u("validation.description_maxlength"),N(65e3))},currency_id:{required:m.withMessage(u("validation.required"),$)},exchange_rate:{required:pe(function(){return m.withMessage(u("validation.required"),$),t.showExchangeRate}),decimal:m.withMessage(u("validation.valid_exchange_rate"),me)}}})),l=ge(L,t,{$scope:R}),I=b({get:()=>t.currentExpense.amount/100,set:a=>{t.currentExpense.amount=Math.round(a*100)}}),c=b(()=>y.name==="expenses.edit"),P=b(()=>c.value?u("expenses.edit_expense"):u("expenses.new_expense")),O=b(()=>c.value?`/reports/expenses/${y.params.id}/download-receipt`:"");t.resetCurrentExpenseData(),G.resetCustomFields(),X();function z(a,n){t.currentExpense.attachment_receipt=n}function H(){t.currentExpense.attachment_receipt=null,M.value=!0}function J(){T.openModal({title:u("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm"})}function K(a){t.currentExpense.selectedCurrency=D.currencies.find(n=>n.id===a)}async function Q(a){let n=await f.fetchCategories({search:a});if(n.data.data.length>0&&f.editCategory&&!n.data.data.find(p=>p.id==f.editCategory.id)){let p=Object.assign({},f.editCategory);n.data.data.unshift(p)}return n.data.data}async function W(a){let n=await _.fetchCustomers({search:a});if(n.data.data.length>0&&_.editCustomer&&!n.data.data.find(p=>p.id==_.editCustomer.id)){let p=Object.assign({},_.editCustomer);n.data.data.unshift(p)}return n.data.data}async function X(){if(c.value||(t.currentExpense.currency_id=j.selectedCompanyCurrency.id,t.currentExpense.selectedCurrency=j.selectedCompanyCurrency),i.value=!0,await t.fetchPaymentModes({limit:"all"}),c.value){const a=await t.fetchExpense(y.params.id);t.currentExpense.currency_id=t.currentExpense.selectedCurrency.id,a.data&&(!f.editCategory&&a.data.data.expense_category&&(f.editCategory=a.data.data.expense_category),!_.editCustomer&&a.data.data.customer&&(_.editCustomer=a.data.data.customer))}else y.query.customer&&(t.currentExpense.customer_id=y.query.customer);i.value=!1}async function Y(){if(l.value.$touch(),l.value.$invalid)return;g.value=!0;let a=t.currentExpense;try{c.value?await t.updateExpense({id:y.params.id,data:a,isAttachmentReceiptRemoved:M.value}):await t.addExpense(a),g.value=!1,t.currentExpense.attachment_receipt=null,M.value=!1,A.push("/admin/expenses")}catch(n){console.error(n),g.value=!1;return}}return xe(()=>{t.resetCurrentExpenseData(),_.editCustomer=null,f.editCategory=null}),(a,n)=>{const E=d("BaseBreadcrumbItem"),p=d("BaseBreadcrumb"),B=d("BaseIcon"),k=d("BaseButton"),Z=d("BasePageHeader"),ee=d("BaseSelectAction"),V=d("BaseMultiselect"),x=d("BaseInputGroup"),te=d("BaseDatePicker"),ne=d("BaseMoney"),ae=d("BaseTextarea"),re=d("BaseFileUploader"),se=d("BaseInputGrid"),oe=d("BaseCard"),le=d("BasePage");return v(),_e(ve,null,[r(Se),r(le,{class:"relative"},{default:o(()=>[F("form",{action:"",onSubmit:ye(Y,["prevent"])},[r(Z,{title:e(P),class:"mb-5"},{actions:o(()=>[e(c)&&e(t).currentExpense.attachment_receipt_url?(v(),h(k,{key:0,href:e(O),tag:"a",variant:"primary-outline",type:"button",class:"mr-2"},{left:o(s=>[r(B,{name:"DownloadIcon",class:U(s.class)},null,8,["class"])]),default:o(()=>[w(" "+S(a.$t("expenses.download_receipt")),1)]),_:1},8,["href"])):C("",!0),F("div",ke,[r(k,{loading:e(g),"content-loading":e(i),disabled:e(g),variant:"primary",type:"submit"},{left:o(s=>[e(g)?C("",!0):(v(),h(B,{key:0,name:"SaveIcon",class:U(s.class)},null,8,["class"]))]),default:o(()=>[w(" "+S(e(c)?a.$t("expenses.update_expense"):a.$t("expenses.save_expense")),1)]),_:1},8,["loading","content-loading","disabled"])])]),default:o(()=>[r(p,null,{default:o(()=>[r(E,{title:a.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(E,{title:a.$tc("expenses.expense",2),to:"/admin/expenses"},null,8,["title"]),r(E,{title:e(P),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(oe,null,{default:o(()=>[r(se,null,{default:o(()=>[r(x,{label:a.$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(()=>[e(i)?C("",!0):(v(),h(V,{key:0,modelValue:e(t).currentExpense.expense_category_id,"onUpdate:modelValue":n[0]||(n[0]=s=>e(t).currentExpense.expense_category_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:Q,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",invalid:e(l).currentExpense.expense_category_id.$error,placeholder:a.$t("expenses.categories.select_a_category"),onInput:n[1]||(n[1]=s=>e(l).currentExpense.expense_category_id.$touch())},{action:o(()=>[r(ee,{onClick:J},{default:o(()=>[r(B,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),w(" "+S(a.$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:a.$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(te,{modelValue:e(t).currentExpense.expense_date,"onUpdate:modelValue":n[2]||(n[2]=s=>e(t).currentExpense.expense_date=s),"content-loading":e(i),"calendar-button":!0,invalid:e(l).currentExpense.expense_date.$error,onInput:n[3]||(n[3]=s=>e(l).currentExpense.expense_date.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),r(x,{label:a.$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(t).currentExpense.selectedCurrency,modelValue:e(I),"onUpdate:modelValue":n[4]||(n[4]=s=>fe(I)?I.value=s:null),class:"focus:border focus:border-solid focus:border-primary-500",invalid:e(l).currentExpense.amount.$error,currency:e(t).currentExpense.selectedCurrency,onInput:n[5]||(n[5]=s=>e(l).currentExpense.amount.$touch())},null,8,["modelValue","invalid","currency"])]),_:1},8,["label","error","content-loading"]),r(x,{label:a.$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(t).currentExpense.currency_id,"onUpdate:modelValue":[n[6]||(n[6]=s=>e(t).currentExpense.currency_id=s),K],"value-prop":"id",label:"name","track-by":"name","content-loading":e(i),options:e(D).currencies,searchable:"","can-deselect":!1,placeholder:a.$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(Me,{store:e(t),"store-prop":"currentExpense",v:e(l).currentExpense,"is-loading":e(i),"is-edit":e(c),"customer-currency":e(t).currentExpense.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"]),r(x,{"content-loading":e(i),label:a.$t("expenses.customer")},{default:o(()=>[e(i)?C("",!0):(v(),h(V,{key:0,modelValue:e(t).currentExpense.customer_id,"onUpdate:modelValue":n[7]||(n[7]=s=>e(t).currentExpense.customer_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:W,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",placeholder:a.$t("customers.select_a_customer")},null,8,["modelValue","content-loading","placeholder"]))]),_:1},8,["content-loading","label"]),r(x,{"content-loading":e(i),label:a.$t("payments.payment_mode")},{default:o(()=>[r(V,{modelValue:e(t).currentExpense.payment_method_id,"onUpdate:modelValue":n[8]||(n[8]=s=>e(t).currentExpense.payment_method_id=s),"content-loading":e(i),label:"name","value-prop":"id","track-by":"name",options:e(t).paymentModes,placeholder:a.$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:a.$t("expenses.note"),error:e(l).currentExpense.notes.$error&&e(l).currentExpense.notes.$errors[0].$message},{default:o(()=>[r(ae,{modelValue:e(t).currentExpense.notes,"onUpdate:modelValue":n[9]||(n[9]=s=>e(t).currentExpense.notes=s),"content-loading":e(i),row:4,rows:"4",onInput:n[10]||(n[10]=s=>e(l).currentExpense.notes.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label","error"]),r(x,{label:a.$t("expenses.receipt")},{default:o(()=>[r(re,{modelValue:e(t).currentExpense.receiptFiles,"onUpdate:modelValue":n[11]||(n[11]=s=>e(t).currentExpense.receiptFiles=s),accept:"image/*,.doc,.docx,.pdf,.csv,.xlsx,.xls",onChange:z,onRemove:H},null,8,["modelValue"])]),_:1},8,["label"]),r(we,{"is-edit":e(c),class:"col-span-2","is-loading":e(i),type:"Expense",store:e(t),"store-prop":"currentExpense","custom-field-scope":R},null,8,["is-edit","is-loading","store"]),F("div",qe,[r(k,{loading:e(g),tabindex:6,variant:"primary",type:"submit",class:"flex justify-center w-full"},{left:o(s=>[e(g)?C("",!0):(v(),h(B,{key:0,name:"SaveIcon",class:U(s.class)},null,8,["class"]))]),default:o(()=>[w(" "+S(e(c)?a.$t("expenses.update_expense"):a.$t("expenses.save_expense")),1)]),_:1},8,["loading"])])]),_:1})]),_:1})],40,Ie)]),_:1})],64)}}};export{Ae as default}; +import{G as ie,aN as de,J as ue,B as q,k as b,L as m,M as $,b2 as ce,S as N,O as pe,aP as me,T as ge,b1 as xe,r as d,o as v,e as _e,f as r,w as o,h as F,u as e,l as h,m as U,i as w,t as S,j as C,x as ye,U as fe,F as ve}from"./vendor.d12b5734.js";import{u as Ee}from"./expense.190eb9e9.js";import{u as be}from"./category.970a47d6.js";import{l as $e,b as he,m as Ce,c as Be,d as Ve}from"./main.c7bd6c0e.js";import{_ as we}from"./CreateCustomFields.04aba193.js";import{_ as Se}from"./CategoryModal.dc91de33.js";import{_ as Me}from"./ExchangeRateConverter.6e0e36e7.js";import"./exchange-rate.70a72e5f.js";const Ie=["onSubmit"],ke={class:"hidden md:block"},qe={class:"block md:hidden"},Ae={setup(Fe){const _=$e(),j=he(),t=Ee(),y=be(),G=Ce(),T=Be(),f=ie(),A=de(),{t:u}=ue(),D=Ve();let g=q(!1),i=q(!1);const R="newExpense",M=q(!1),L=b(()=>({currentExpense:{expense_category_id:{required:m.withMessage(u("validation.required"),$)},expense_date:{required:m.withMessage(u("validation.required"),$)},amount:{required:m.withMessage(u("validation.required"),$),minValue:m.withMessage(u("validation.price_minvalue"),ce(.1)),maxLength:m.withMessage(u("validation.price_maxlength"),N(20))},notes:{maxLength:m.withMessage(u("validation.description_maxlength"),N(65e3))},currency_id:{required:m.withMessage(u("validation.required"),$)},exchange_rate:{required:pe(function(){return m.withMessage(u("validation.required"),$),t.showExchangeRate}),decimal:m.withMessage(u("validation.valid_exchange_rate"),me)}}})),l=ge(L,t,{$scope:R}),I=b({get:()=>t.currentExpense.amount/100,set:a=>{t.currentExpense.amount=Math.round(a*100)}}),c=b(()=>f.name==="expenses.edit"),P=b(()=>c.value?u("expenses.edit_expense"):u("expenses.new_expense")),O=b(()=>c.value?`/reports/expenses/${f.params.id}/download-receipt`:"");t.resetCurrentExpenseData(),G.resetCustomFields(),X();function z(a,n){t.currentExpense.attachment_receipt=n}function H(){t.currentExpense.attachment_receipt=null,M.value=!0}function J(){T.openModal({title:u("settings.expense_category.add_category"),componentName:"CategoryModal",size:"sm"})}function K(a){t.currentExpense.selectedCurrency=D.currencies.find(n=>n.id===a)}async function Q(a){let n=await y.fetchCategories({search:a});if(n.data.data.length>0&&y.editCategory&&!n.data.data.find(p=>p.id==y.editCategory.id)){let p=Object.assign({},y.editCategory);n.data.data.unshift(p)}return n.data.data}async function W(a){let n=await _.fetchCustomers({search:a});if(n.data.data.length>0&&_.editCustomer&&!n.data.data.find(p=>p.id==_.editCustomer.id)){let p=Object.assign({},_.editCustomer);n.data.data.unshift(p)}return n.data.data}async function X(){if(c.value||(t.currentExpense.currency_id=j.selectedCompanyCurrency.id,t.currentExpense.selectedCurrency=j.selectedCompanyCurrency),i.value=!0,await t.fetchPaymentModes({limit:"all"}),c.value){const a=await t.fetchExpense(f.params.id);t.currentExpense.currency_id=t.currentExpense.selectedCurrency.id,a.data&&(!y.editCategory&&a.data.data.expense_category&&(y.editCategory=a.data.data.expense_category),!_.editCustomer&&a.data.data.customer&&(_.editCustomer=a.data.data.customer))}else f.query.customer&&(t.currentExpense.customer_id=f.query.customer);i.value=!1}async function Y(){if(l.value.$touch(),l.value.$invalid)return;g.value=!0;let a=t.currentExpense;try{c.value?await t.updateExpense({id:f.params.id,data:a,isAttachmentReceiptRemoved:M.value}):await t.addExpense(a),g.value=!1,t.currentExpense.attachment_receipt=null,M.value=!1,A.push("/admin/expenses")}catch(n){console.error(n),g.value=!1;return}}return xe(()=>{t.resetCurrentExpenseData(),_.editCustomer=null,y.editCategory=null}),(a,n)=>{const E=d("BaseBreadcrumbItem"),p=d("BaseBreadcrumb"),B=d("BaseIcon"),k=d("BaseButton"),Z=d("BasePageHeader"),ee=d("BaseSelectAction"),V=d("BaseMultiselect"),x=d("BaseInputGroup"),te=d("BaseDatePicker"),ne=d("BaseMoney"),ae=d("BaseTextarea"),re=d("BaseFileUploader"),se=d("BaseInputGrid"),oe=d("BaseCard"),le=d("BasePage");return v(),_e(ve,null,[r(Se),r(le,{class:"relative"},{default:o(()=>[F("form",{action:"",onSubmit:fe(Y,["prevent"])},[r(Z,{title:e(P),class:"mb-5"},{actions:o(()=>[e(c)&&e(t).currentExpense.attachment_receipt_url?(v(),h(k,{key:0,href:e(O),tag:"a",variant:"primary-outline",type:"button",class:"mr-2"},{left:o(s=>[r(B,{name:"DownloadIcon",class:U(s.class)},null,8,["class"])]),default:o(()=>[w(" "+S(a.$t("expenses.download_receipt")),1)]),_:1},8,["href"])):C("",!0),F("div",ke,[r(k,{loading:e(g),"content-loading":e(i),disabled:e(g),variant:"primary",type:"submit"},{left:o(s=>[e(g)?C("",!0):(v(),h(B,{key:0,name:"SaveIcon",class:U(s.class)},null,8,["class"]))]),default:o(()=>[w(" "+S(e(c)?a.$t("expenses.update_expense"):a.$t("expenses.save_expense")),1)]),_:1},8,["loading","content-loading","disabled"])])]),default:o(()=>[r(p,null,{default:o(()=>[r(E,{title:a.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(E,{title:a.$tc("expenses.expense",2),to:"/admin/expenses"},null,8,["title"]),r(E,{title:e(P),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(oe,null,{default:o(()=>[r(se,null,{default:o(()=>[r(x,{label:a.$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(()=>[e(i)?C("",!0):(v(),h(V,{key:0,modelValue:e(t).currentExpense.expense_category_id,"onUpdate:modelValue":n[0]||(n[0]=s=>e(t).currentExpense.expense_category_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:Q,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",invalid:e(l).currentExpense.expense_category_id.$error,placeholder:a.$t("expenses.categories.select_a_category"),onInput:n[1]||(n[1]=s=>e(l).currentExpense.expense_category_id.$touch())},{action:o(()=>[r(ee,{onClick:J},{default:o(()=>[r(B,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),w(" "+S(a.$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:a.$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(te,{modelValue:e(t).currentExpense.expense_date,"onUpdate:modelValue":n[2]||(n[2]=s=>e(t).currentExpense.expense_date=s),"content-loading":e(i),"calendar-button":!0,invalid:e(l).currentExpense.expense_date.$error,onInput:n[3]||(n[3]=s=>e(l).currentExpense.expense_date.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),r(x,{label:a.$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(t).currentExpense.selectedCurrency,modelValue:e(I),"onUpdate:modelValue":n[4]||(n[4]=s=>ye(I)?I.value=s:null),class:"focus:border focus:border-solid focus:border-primary-500",invalid:e(l).currentExpense.amount.$error,currency:e(t).currentExpense.selectedCurrency,onInput:n[5]||(n[5]=s=>e(l).currentExpense.amount.$touch())},null,8,["modelValue","invalid","currency"])]),_:1},8,["label","error","content-loading"]),r(x,{label:a.$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(t).currentExpense.currency_id,"onUpdate:modelValue":[n[6]||(n[6]=s=>e(t).currentExpense.currency_id=s),K],"value-prop":"id",label:"name","track-by":"name","content-loading":e(i),options:e(D).currencies,searchable:"","can-deselect":!1,placeholder:a.$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(Me,{store:e(t),"store-prop":"currentExpense",v:e(l).currentExpense,"is-loading":e(i),"is-edit":e(c),"customer-currency":e(t).currentExpense.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"]),r(x,{"content-loading":e(i),label:a.$t("expenses.customer")},{default:o(()=>[e(i)?C("",!0):(v(),h(V,{key:0,modelValue:e(t).currentExpense.customer_id,"onUpdate:modelValue":n[7]||(n[7]=s=>e(t).currentExpense.customer_id=s),"content-loading":e(i),"value-prop":"id",label:"name","track-by":"id",options:W,"filter-results":!1,"resolve-on-load":"",delay:500,searchable:"",placeholder:a.$t("customers.select_a_customer")},null,8,["modelValue","content-loading","placeholder"]))]),_:1},8,["content-loading","label"]),r(x,{"content-loading":e(i),label:a.$t("payments.payment_mode")},{default:o(()=>[r(V,{modelValue:e(t).currentExpense.payment_method_id,"onUpdate:modelValue":n[8]||(n[8]=s=>e(t).currentExpense.payment_method_id=s),"content-loading":e(i),label:"name","value-prop":"id","track-by":"name",options:e(t).paymentModes,placeholder:a.$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:a.$t("expenses.note"),error:e(l).currentExpense.notes.$error&&e(l).currentExpense.notes.$errors[0].$message},{default:o(()=>[r(ae,{modelValue:e(t).currentExpense.notes,"onUpdate:modelValue":n[9]||(n[9]=s=>e(t).currentExpense.notes=s),"content-loading":e(i),row:4,rows:"4",onInput:n[10]||(n[10]=s=>e(l).currentExpense.notes.$touch())},null,8,["modelValue","content-loading"])]),_:1},8,["content-loading","label","error"]),r(x,{label:a.$t("expenses.receipt")},{default:o(()=>[r(re,{modelValue:e(t).currentExpense.receiptFiles,"onUpdate:modelValue":n[11]||(n[11]=s=>e(t).currentExpense.receiptFiles=s),accept:"image/*,.doc,.docx,.pdf,.csv,.xlsx,.xls",onChange:z,onRemove:H},null,8,["modelValue"])]),_:1},8,["label"]),r(we,{"is-edit":e(c),class:"col-span-2","is-loading":e(i),type:"Expense",store:e(t),"store-prop":"currentExpense","custom-field-scope":R},null,8,["is-edit","is-loading","store"]),F("div",qe,[r(k,{loading:e(g),tabindex:6,variant:"primary",type:"submit",class:"flex justify-center w-full"},{left:o(s=>[e(g)?C("",!0):(v(),h(B,{key:0,name:"SaveIcon",class:U(s.class)},null,8,["class"]))]),default:o(()=>[w(" "+S(e(c)?a.$t("expenses.update_expense"):a.$t("expenses.save_expense")),1)]),_:1},8,["loading"])])]),_:1})]),_:1})],40,Ie)]),_:1})],64)}}};export{Ae as default}; diff --git a/public/build/assets/Create.a2ae555f.js b/public/build/assets/Create.849d4041.js similarity index 98% rename from public/build/assets/Create.a2ae555f.js rename to public/build/assets/Create.849d4041.js index 77a0c11e5..d0f40985b 100644 --- a/public/build/assets/Create.a2ae555f.js +++ b/public/build/assets/Create.849d4041.js @@ -1 +1 @@ -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.d12b5734.js";import{p as ve,q as Be,c as be,b as $e,e as ye,g as Ve}from"./main.6ceeb72d.js";import{_ as Se}from"./ItemUnitModal.17b8fb30.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 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.d12b5734.js";import{p as ve,q as Be,c as be,b as $e,e as ye,g as Ve}from"./main.c7bd6c0e.js";import{_ as Se}from"./ItemUnitModal.12dfe4f1.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}; diff --git a/public/build/assets/Create.6e564295.js b/public/build/assets/Create.cd47948b.js similarity index 98% rename from public/build/assets/Create.6e564295.js rename to public/build/assets/Create.cd47948b.js index 81e79d650..6520df78b 100644 --- a/public/build/assets/Create.6e564295.js +++ b/public/build/assets/Create.cd47948b.js @@ -1 +1 @@ -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 b,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 w,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.d12b5734.js";import{b as ge}from"./main.6ceeb72d.js";import{V as fe}from"./index.esm.85b4999a.js";import{u as ve}from"./users.2ff38459.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=b(!1),l=b(!1);b([]);let I=b([]);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 w(),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"]),(w(!0),re(ie,null,le(e(a).userData.companies,(r,B)=>(w(),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):(w(),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}; +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 b,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 w,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.d12b5734.js";import{b as ge}from"./main.c7bd6c0e.js";import{V as fe}from"./index.esm.85b4999a.js";import{u as ve}from"./users.7c501231.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=b(!1),l=b(!1);b([]);let I=b([]);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 w(),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"]),(w(!0),re(ie,null,le(e(a).userData.companies,(r,B)=>(w(),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):(w(),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}; diff --git a/public/build/assets/Create.f99b9267.js b/public/build/assets/Create.d799ac98.js similarity index 99% rename from public/build/assets/Create.f99b9267.js rename to public/build/assets/Create.d799ac98.js index 4d24bd4b0..2f6113dc7 100644 --- a/public/build/assets/Create.f99b9267.js +++ b/public/build/assets/Create.d799ac98.js @@ -1 +1 @@ -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.d12b5734.js";import{l as _e,m as $e,d as ye,b as ve,n as Ve}from"./main.6ceeb72d.js";import{_ as we}from"./CreateCustomFields.1cd1f052.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 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.d12b5734.js";import{l as _e,m as $e,d as ye,b as ve,n as Ve}from"./main.c7bd6c0e.js";import{_ as we}from"./CreateCustomFields.04aba193.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}; diff --git a/public/build/assets/Create.7bd803d3.js b/public/build/assets/Create.ee2ce8e0.js similarity index 95% rename from public/build/assets/Create.7bd803d3.js rename to public/build/assets/Create.ee2ce8e0.js index 09f6d9a4e..5c3c082fd 100644 --- a/public/build/assets/Create.7bd803d3.js +++ b/public/build/assets/Create.ee2ce8e0.js @@ -1 +1 @@ -var ce=Object.defineProperty;var R=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var L=(_,s,c)=>s in _?ce(_,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):_[s]=c,T=(_,s)=>{for(var c in s||(s={}))de.call(s,c)&&L(_,c,s[c]);if(R)for(var c of R(s))ye.call(s,c)&&L(_,c,s[c]);return _};import{G as pe,aN as _e,ah as ve,J as fe,B as w,a0 as Pe,k as S,L as C,M as q,aX as ge,O as be,aP as Be,T as $e,a7 as he,b1 as Ce,r as m,o as k,e as Ie,f as r,w as l,h as I,u as e,l as j,m as z,j as U,i as N,t as b,x as Se,U as Ve,F as Me}from"./vendor.d12b5734.js";import{_ as we}from"./ExchangeRateConverter.2338e5bf.js";import{u as qe,l as ke,m as Ne,b as je,c as Ue,i as xe,d as De}from"./main.6ceeb72d.js";import{u as Ae}from"./payment.ef13b90b.js";import{_ as Ee}from"./SelectNotePopup.9f1463c3.js";import{_ as Fe}from"./CreateCustomFields.1cd1f052.js";import{_ as Ge}from"./PaymentModeModal.89922a6d.js";import"./exchange-rate.28527a8e.js";import"./NoteModal.62a64a69.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 V=ke();Ne(),je();const H=Ue(),x=xe();De();const D=ve("utils"),{t:p}=fe();let B=w(!1),M=w(!1),v=w([]);const f=w(null),A="newEstimate",J=Pe(["customer","company","customerCustom","payment","paymentCustom"]),$=S({get:()=>t.currentPayment.amount/100,set:a=>{t.currentPayment.amount=Math.round(a*100)}}),u=S(()=>t.isFetchingInitialData),d=S(()=>s.name==="payments.edit"),E=S(()=>d.value?p("payments.edit_payment"):p("payments.new_payment")),O=S(()=>({currentPayment:{customer_id:{required:C.withMessage(p("validation.required"),q)},payment_date:{required:C.withMessage(p("validation.required"),q)},amount:{required:C.withMessage(p("validation.required"),q),between:C.withMessage(p("validation.payment_greater_than_due_amount"),ge(0,t.currentPayment.maxPayableAmount))},exchange_rate:{required:be(function(){return C.withMessage(p("validation.required"),q),t.showExchangeRate}),decimal:C.withMessage(p("validation.valid_exchange_rate"),Be)}}})),i=$e(O,t,{$scope:A});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 x.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=""),M.value=!0,Promise.all([x.fetchInvoices(n),V.fetchCustomer(a)]).then(async([y,P])=>{y&&(v.value=[...y.data.data]),P&&P.data&&(t.currentPayment.selectedCustomer=P.data.data,t.currentPayment.customer=P.data.data,t.currentPayment.currency=P.data.data.currency,d.value&&!V.editCustomer&&t.currentPayment.customer_id&&(V.editCustomer=P.data.data)),t.currentPayment.invoice_id&&(f.value=v.value.find(g=>g.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(g=>g.due_amount>0||g.id==t.currentPayment.invoice_id)),M.value=!1}).catch(y=>{M.value=!1,console.error(y,"error")})}}Ce(()=>{t.resetCurrentPayment(),v.value=[],V.editCustomer=null});async function Z(){if(i.value.$touch(),i.value.$invalid)return!1;B.value=!0;let a=T({},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"),P=m("BaseBreadcrumb"),g=m("BaseIcon"),F=m("BaseButton"),te=m("BasePageHeader"),ae=m("BaseDatePicker"),h=m("BaseInputGroup"),ne=m("BaseInput"),oe=m("BaseCustomerSelectInput"),G=m("BaseMultiselect"),re=m("BaseMoney"),se=m("BaseSelectAction"),le=m("BaseInputGrid"),ue=m("BaseCustomInput"),me=m("BaseCard"),ie=m("BasePage");return k(),Ie(Me,null,[r(Ge),r(ie,{class:"relative payment-create"},{default:l(()=>[I("form",{action:"",onSubmit:Ve(Z,["prevent"])},[r(te,{title:e(E),class:"mb-5"},{actions:l(()=>[r(F,{loading:e(B),disabled:e(B),variant:"primary",type:"submit",class:"hidden sm:flex"},{left:l(o=>[e(B)?U("",!0):(k(),j(g,{key:0,name:"SaveIcon",class:z(o.class)},null,8,["class"]))]),default:l(()=>[N(" "+b(e(d)?a.$t("payments.update_payment"):a.$t("payments.save_payment")),1)]),_:1},8,["loading","disabled"])]),default:l(()=>[r(P,null,{default:l(()=>[r(y,{title:a.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(y,{title:a.$tc("payments.payment",2),to:"/admin/payments"},null,8,["title"]),r(y,{title:e(E),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(me,null,{default:l(()=>[r(le,null,{default:l(()=>[r(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(()=>[r(ae,{modelValue:e(t).currentPayment.payment_date,"onUpdate:modelValue":[n[0]||(n[0]=o=>e(t).currentPayment.payment_date=o),n[1]||(n[1]=o=>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"]),r(h,{label:a.$t("payments.payment_number"),"content-loading":e(u),required:""},{default:l(()=>[r(ne,{modelValue:e(t).currentPayment.payment_number,"onUpdate:modelValue":n[2]||(n[2]=o=>e(t).currentPayment.payment_number=o),"content-loading":e(u)},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(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(()=>[e(u)?U("",!0):(k(),j(oe,{key:0,modelValue:e(t).currentPayment.customer_id,"onUpdate:modelValue":[n[3]||(n[3]=o=>e(t).currentPayment.customer_id=o),n[4]||(n[4]=o=>ee(e(t).currentPayment.customer_id))],"content-loading":e(u),invalid:e(i).currentPayment.customer_id.$error,placeholder:a.$t("customers.select_a_customer"),"show-action":""},null,8,["modelValue","content-loading","invalid","placeholder"]))]),_:1},8,["label","error","content-loading"]),r(h,{"content-loading":e(u),label:a.$t("payments.invoice"),"help-text":f.value?`Due Amount: ${e(t).currentPayment.maxPayableAmount/100}`:""},{default:l(()=>[r(G,{modelValue:e(t).currentPayment.invoice_id,"onUpdate:modelValue":n[5]||(n[5]=o=>e(t).currentPayment.invoice_id=o),"content-loading":e(u),"value-prop":"id","track-by":"invoice_number",label:"invoice_number",options:e(v),loading:e(M),placeholder:a.$t("invoices.select_invoice"),onSelect:W},{singlelabel:l(({value:o})=>[I("div",Le,b(o.invoice_number)+" ("+b(e(D).formatMoney(o.total,o.customer.currency))+") ",1)]),option:l(({option:o})=>[N(b(o.invoice_number)+" ("+b(e(D).formatMoney(o.total,o.customer.currency))+") ",1)]),_:1},8,["modelValue","content-loading","options","loading","placeholder"])]),_:1},8,["content-loading","label","help-text"]),r(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(()=>[I("div",Te,[r(re,{key:e(t).currentPayment.currency,modelValue:e($),"onUpdate:modelValue":[n[6]||(n[6]=o=>Se($)?$.value=o:null),n[7]||(n[7]=o=>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"]),r(h,{"content-loading":e(u),label:a.$t("payments.payment_mode")},{default:l(()=>[r(G,{modelValue:e(t).currentPayment.payment_method_id,"onUpdate:modelValue":n[8]||(n[8]=o=>e(t).currentPayment.payment_method_id=o),"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(()=>[r(se,{onClick:X},{default:l(()=>[r(g,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),N(" "+b(a.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),_:1},8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),r(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}),r(Fe,{type:"Payment","is-edit":e(d),"is-loading":e(u),store:e(t),"store-prop":"currentPayment","custom-field-scope":A,class:"mt-6"},null,8,["is-edit","is-loading","store"]),I("div",ze,[I("div",He,[r(Ee,{type:"Payment",onSelect:K})]),I("label",Je,b(a.$t("estimates.notes")),1),r(ue,{modelValue:e(t).currentPayment.notes,"onUpdate:modelValue":n[9]||(n[9]=o=>e(t).currentPayment.notes=o),"content-loading":e(u),fields:e(J),class:"mt-1"},null,8,["modelValue","content-loading","fields"])]),r(F,{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(o=>[e(B)?U("",!0):(k(),j(g,{key:0,name:"SaveIcon",class:z(o.class)},null,8,["class"]))]),default:l(()=>[N(" "+b(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 ce=Object.defineProperty;var R=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var L=(_,s,c)=>s in _?ce(_,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):_[s]=c,T=(_,s)=>{for(var c in s||(s={}))de.call(s,c)&&L(_,c,s[c]);if(R)for(var c of R(s))ye.call(s,c)&&L(_,c,s[c]);return _};import{G as pe,aN as _e,ah as ve,J as fe,B as w,a0 as Pe,k as S,L as C,M as q,aX as ge,O as be,aP as Be,T as $e,a7 as he,b1 as Ce,r as m,o as k,e as Ie,f as r,w as l,h as I,u as e,l as j,m as z,j as U,i as N,t as b,x as Se,U as Ve,F as Me}from"./vendor.d12b5734.js";import{_ as we}from"./ExchangeRateConverter.6e0e36e7.js";import{u as qe,l as ke,m as Ne,b as je,c as Ue,i as xe,d as De}from"./main.c7bd6c0e.js";import{u as Ae}from"./payment.2b6f850e.js";import{_ as Ee}from"./SelectNotePopup.ead4330d.js";import{_ as Fe}from"./CreateCustomFields.04aba193.js";import{_ as Ge}from"./PaymentModeModal.2e1f1512.js";import"./exchange-rate.70a72e5f.js";import"./NoteModal.c9605dba.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 V=ke();Ne(),je();const H=Ue(),x=xe();De();const D=ve("utils"),{t:p}=fe();let B=w(!1),M=w(!1),v=w([]);const f=w(null),A="newEstimate",J=Pe(["customer","company","customerCustom","payment","paymentCustom"]),$=S({get:()=>t.currentPayment.amount/100,set:a=>{t.currentPayment.amount=Math.round(a*100)}}),u=S(()=>t.isFetchingInitialData),d=S(()=>s.name==="payments.edit"),E=S(()=>d.value?p("payments.edit_payment"):p("payments.new_payment")),O=S(()=>({currentPayment:{customer_id:{required:C.withMessage(p("validation.required"),q)},payment_date:{required:C.withMessage(p("validation.required"),q)},amount:{required:C.withMessage(p("validation.required"),q),between:C.withMessage(p("validation.payment_greater_than_due_amount"),ge(0,t.currentPayment.maxPayableAmount))},exchange_rate:{required:be(function(){return C.withMessage(p("validation.required"),q),t.showExchangeRate}),decimal:C.withMessage(p("validation.valid_exchange_rate"),Be)}}})),i=$e(O,t,{$scope:A});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 x.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=""),M.value=!0,Promise.all([x.fetchInvoices(n),V.fetchCustomer(a)]).then(async([y,P])=>{y&&(v.value=[...y.data.data]),P&&P.data&&(t.currentPayment.selectedCustomer=P.data.data,t.currentPayment.customer=P.data.data,t.currentPayment.currency=P.data.data.currency,d.value&&!V.editCustomer&&t.currentPayment.customer_id&&(V.editCustomer=P.data.data)),t.currentPayment.invoice_id&&(f.value=v.value.find(g=>g.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(g=>g.due_amount>0||g.id==t.currentPayment.invoice_id)),M.value=!1}).catch(y=>{M.value=!1,console.error(y,"error")})}}Ce(()=>{t.resetCurrentPayment(),v.value=[],V.editCustomer=null});async function Z(){if(i.value.$touch(),i.value.$invalid)return!1;B.value=!0;let a=T({},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"),P=m("BaseBreadcrumb"),g=m("BaseIcon"),F=m("BaseButton"),te=m("BasePageHeader"),ae=m("BaseDatePicker"),h=m("BaseInputGroup"),ne=m("BaseInput"),oe=m("BaseCustomerSelectInput"),G=m("BaseMultiselect"),re=m("BaseMoney"),se=m("BaseSelectAction"),le=m("BaseInputGrid"),ue=m("BaseCustomInput"),me=m("BaseCard"),ie=m("BasePage");return k(),Ie(Me,null,[r(Ge),r(ie,{class:"relative payment-create"},{default:l(()=>[I("form",{action:"",onSubmit:Ve(Z,["prevent"])},[r(te,{title:e(E),class:"mb-5"},{actions:l(()=>[r(F,{loading:e(B),disabled:e(B),variant:"primary",type:"submit",class:"hidden sm:flex"},{left:l(o=>[e(B)?U("",!0):(k(),j(g,{key:0,name:"SaveIcon",class:z(o.class)},null,8,["class"]))]),default:l(()=>[N(" "+b(e(d)?a.$t("payments.update_payment"):a.$t("payments.save_payment")),1)]),_:1},8,["loading","disabled"])]),default:l(()=>[r(P,null,{default:l(()=>[r(y,{title:a.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(y,{title:a.$tc("payments.payment",2),to:"/admin/payments"},null,8,["title"]),r(y,{title:e(E),to:"#",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),r(me,null,{default:l(()=>[r(le,null,{default:l(()=>[r(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(()=>[r(ae,{modelValue:e(t).currentPayment.payment_date,"onUpdate:modelValue":[n[0]||(n[0]=o=>e(t).currentPayment.payment_date=o),n[1]||(n[1]=o=>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"]),r(h,{label:a.$t("payments.payment_number"),"content-loading":e(u),required:""},{default:l(()=>[r(ne,{modelValue:e(t).currentPayment.payment_number,"onUpdate:modelValue":n[2]||(n[2]=o=>e(t).currentPayment.payment_number=o),"content-loading":e(u)},null,8,["modelValue","content-loading"])]),_:1},8,["label","content-loading"]),r(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(()=>[e(u)?U("",!0):(k(),j(oe,{key:0,modelValue:e(t).currentPayment.customer_id,"onUpdate:modelValue":[n[3]||(n[3]=o=>e(t).currentPayment.customer_id=o),n[4]||(n[4]=o=>ee(e(t).currentPayment.customer_id))],"content-loading":e(u),invalid:e(i).currentPayment.customer_id.$error,placeholder:a.$t("customers.select_a_customer"),"show-action":""},null,8,["modelValue","content-loading","invalid","placeholder"]))]),_:1},8,["label","error","content-loading"]),r(h,{"content-loading":e(u),label:a.$t("payments.invoice"),"help-text":f.value?`Due Amount: ${e(t).currentPayment.maxPayableAmount/100}`:""},{default:l(()=>[r(G,{modelValue:e(t).currentPayment.invoice_id,"onUpdate:modelValue":n[5]||(n[5]=o=>e(t).currentPayment.invoice_id=o),"content-loading":e(u),"value-prop":"id","track-by":"invoice_number",label:"invoice_number",options:e(v),loading:e(M),placeholder:a.$t("invoices.select_invoice"),onSelect:W},{singlelabel:l(({value:o})=>[I("div",Le,b(o.invoice_number)+" ("+b(e(D).formatMoney(o.total,o.customer.currency))+") ",1)]),option:l(({option:o})=>[N(b(o.invoice_number)+" ("+b(e(D).formatMoney(o.total,o.customer.currency))+") ",1)]),_:1},8,["modelValue","content-loading","options","loading","placeholder"])]),_:1},8,["content-loading","label","help-text"]),r(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(()=>[I("div",Te,[r(re,{key:e(t).currentPayment.currency,modelValue:e($),"onUpdate:modelValue":[n[6]||(n[6]=o=>Se($)?$.value=o:null),n[7]||(n[7]=o=>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"]),r(h,{"content-loading":e(u),label:a.$t("payments.payment_mode")},{default:l(()=>[r(G,{modelValue:e(t).currentPayment.payment_method_id,"onUpdate:modelValue":n[8]||(n[8]=o=>e(t).currentPayment.payment_method_id=o),"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(()=>[r(se,{onClick:X},{default:l(()=>[r(g,{name:"PlusIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),N(" "+b(a.$t("settings.payment_modes.add_payment_mode")),1)]),_:1})]),_:1},8,["modelValue","content-loading","options","placeholder"])]),_:1},8,["content-loading","label"]),r(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}),r(Fe,{type:"Payment","is-edit":e(d),"is-loading":e(u),store:e(t),"store-prop":"currentPayment","custom-field-scope":A,class:"mt-6"},null,8,["is-edit","is-loading","store"]),I("div",ze,[I("div",He,[r(Ee,{type:"Payment",onSelect:K})]),I("label",Je,b(a.$t("estimates.notes")),1),r(ue,{modelValue:e(t).currentPayment.notes,"onUpdate:modelValue":n[9]||(n[9]=o=>e(t).currentPayment.notes=o),"content-loading":e(u),fields:e(J),class:"mt-1"},null,8,["modelValue","content-loading","fields"])]),r(F,{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(o=>[e(B)?U("",!0):(k(),j(g,{key:0,name:"SaveIcon",class:z(o.class)},null,8,["class"]))]),default:l(()=>[N(" "+b(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}; diff --git a/public/build/assets/CreateCustomFields.1cd1f052.js b/public/build/assets/CreateCustomFields.04aba193.js similarity index 97% rename from public/build/assets/CreateCustomFields.1cd1f052.js rename to public/build/assets/CreateCustomFields.04aba193.js index f4da715c4..07af48381 100644 --- a/public/build/assets/CreateCustomFields.1cd1f052.js +++ b/public/build/assets/CreateCustomFields.04aba193.js @@ -1 +1 @@ -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 f=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&f(e,r,t[r]);if(y)for(var r of y(t))h.call(t,r)&&f(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.d12b5734.js";import{o as i,m as Y}from"./main.6ceeb72d.js";function $(e){switch(e){case"./types/DateTimeType.vue":return i(()=>import("./DateTimeType.6886ff98.js"),["assets/DateTimeType.6886ff98.js","assets/vendor.d12b5734.js"]);case"./types/DateType.vue":return i(()=>import("./DateType.12fc8765.js"),["assets/DateType.12fc8765.js","assets/vendor.d12b5734.js"]);case"./types/DropdownType.vue":return i(()=>import("./DropdownType.2d01b840.js"),["assets/DropdownType.2d01b840.js","assets/vendor.d12b5734.js"]);case"./types/InputType.vue":return i(()=>import("./InputType.cf0dfc7c.js"),["assets/InputType.cf0dfc7c.js","assets/vendor.d12b5734.js"]);case"./types/NumberType.vue":return i(()=>import("./NumberType.7b73360f.js"),["assets/NumberType.7b73360f.js","assets/vendor.d12b5734.js"]);case"./types/PhoneType.vue":return i(()=>import("./PhoneType.29ae66c8.js"),["assets/PhoneType.29ae66c8.js","assets/vendor.d12b5734.js"]);case"./types/SwitchType.vue":return i(()=>import("./SwitchType.591a8b07.js"),["assets/SwitchType.591a8b07.js","assets/vendor.d12b5734.js"]);case"./types/TextAreaType.vue":return i(()=>import("./TextAreaType.27565abe.js"),["assets/TextAreaType.27565abe.js","assets/vendor.d12b5734.js"]);case"./types/TimeType.vue":return i(()=>import("./TimeType.8ac8afd1.js"),["assets/TimeType.8ac8afd1.js","assets/vendor.d12b5734.js"]);case"./types/UrlType.vue":return i(()=>import("./UrlType.d123ab64.js"),["assets/UrlType.d123ab64.js","assets/vendor.d12b5734.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(_({},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 I=Object.defineProperty,b=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var f=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&f(e,r,t[r]);if(y)for(var r of y(t))h.call(t,r)&&f(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.d12b5734.js";import{o as i,m as Y}from"./main.c7bd6c0e.js";function $(e){switch(e){case"./types/DateTimeType.vue":return i(()=>import("./DateTimeType.6886ff98.js"),["assets/DateTimeType.6886ff98.js","assets/vendor.d12b5734.js"]);case"./types/DateType.vue":return i(()=>import("./DateType.12fc8765.js"),["assets/DateType.12fc8765.js","assets/vendor.d12b5734.js"]);case"./types/DropdownType.vue":return i(()=>import("./DropdownType.2d01b840.js"),["assets/DropdownType.2d01b840.js","assets/vendor.d12b5734.js"]);case"./types/InputType.vue":return i(()=>import("./InputType.cf0dfc7c.js"),["assets/InputType.cf0dfc7c.js","assets/vendor.d12b5734.js"]);case"./types/NumberType.vue":return i(()=>import("./NumberType.7b73360f.js"),["assets/NumberType.7b73360f.js","assets/vendor.d12b5734.js"]);case"./types/PhoneType.vue":return i(()=>import("./PhoneType.29ae66c8.js"),["assets/PhoneType.29ae66c8.js","assets/vendor.d12b5734.js"]);case"./types/SwitchType.vue":return i(()=>import("./SwitchType.591a8b07.js"),["assets/SwitchType.591a8b07.js","assets/vendor.d12b5734.js"]);case"./types/TextAreaType.vue":return i(()=>import("./TextAreaType.27565abe.js"),["assets/TextAreaType.27565abe.js","assets/vendor.d12b5734.js"]);case"./types/TimeType.vue":return i(()=>import("./TimeType.8ac8afd1.js"),["assets/TimeType.8ac8afd1.js","assets/vendor.d12b5734.js"]);case"./types/UrlType.vue":return i(()=>import("./UrlType.d123ab64.js"),["assets/UrlType.d123ab64.js","assets/vendor.d12b5734.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(_({},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 _}; diff --git a/public/build/assets/CustomFieldsSetting.f35a2b52.js b/public/build/assets/CustomFieldsSetting.ee4f83ef.js similarity index 99% rename from public/build/assets/CustomFieldsSetting.f35a2b52.js rename to public/build/assets/CustomFieldsSetting.ee4f83ef.js index 2c844e946..115980c31 100644 --- a/public/build/assets/CustomFieldsSetting.f35a2b52.js +++ b/public/build/assets/CustomFieldsSetting.ee4f83ef.js @@ -1 +1 @@ -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.d12b5734.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.6ceeb72d.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.6886ff98.js"),["assets/DateTimeType.6886ff98.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/DateType.vue":return T(()=>import("./DateType.12fc8765.js"),["assets/DateType.12fc8765.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/DropdownType.vue":return T(()=>import("./DropdownType.2d01b840.js"),["assets/DropdownType.2d01b840.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/InputType.vue":return T(()=>import("./InputType.cf0dfc7c.js"),["assets/InputType.cf0dfc7c.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/NumberType.vue":return T(()=>import("./NumberType.7b73360f.js"),["assets/NumberType.7b73360f.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/PhoneType.vue":return T(()=>import("./PhoneType.29ae66c8.js"),["assets/PhoneType.29ae66c8.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/SwitchType.vue":return T(()=>import("./SwitchType.591a8b07.js"),["assets/SwitchType.591a8b07.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/TextAreaType.vue":return T(()=>import("./TextAreaType.27565abe.js"),["assets/TextAreaType.27565abe.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/TimeType.vue":return T(()=>import("./TimeType.8ac8afd1.js"),["assets/TimeType.8ac8afd1.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/UrlType.vue":return T(()=>import("./UrlType.d123ab64.js"),["assets/UrlType.d123ab64.js","assets/vendor.d12b5734.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}; +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.d12b5734.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.c7bd6c0e.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.6886ff98.js"),["assets/DateTimeType.6886ff98.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/DateType.vue":return T(()=>import("./DateType.12fc8765.js"),["assets/DateType.12fc8765.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/DropdownType.vue":return T(()=>import("./DropdownType.2d01b840.js"),["assets/DropdownType.2d01b840.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/InputType.vue":return T(()=>import("./InputType.cf0dfc7c.js"),["assets/InputType.cf0dfc7c.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/NumberType.vue":return T(()=>import("./NumberType.7b73360f.js"),["assets/NumberType.7b73360f.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/PhoneType.vue":return T(()=>import("./PhoneType.29ae66c8.js"),["assets/PhoneType.29ae66c8.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/SwitchType.vue":return T(()=>import("./SwitchType.591a8b07.js"),["assets/SwitchType.591a8b07.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/TextAreaType.vue":return T(()=>import("./TextAreaType.27565abe.js"),["assets/TextAreaType.27565abe.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/TimeType.vue":return T(()=>import("./TimeType.8ac8afd1.js"),["assets/TimeType.8ac8afd1.js","assets/vendor.d12b5734.js"]);case"../../custom-fields/types/UrlType.vue":return T(()=>import("./UrlType.d123ab64.js"),["assets/UrlType.d123ab64.js","assets/vendor.d12b5734.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}; diff --git a/public/build/assets/CustomerIndexDropdown.49914d07.js b/public/build/assets/CustomerIndexDropdown.78bcff92.js similarity index 96% rename from public/build/assets/CustomerIndexDropdown.49914d07.js rename to public/build/assets/CustomerIndexDropdown.78bcff92.js index 1b444b370..f70c86ed5 100644 --- a/public/build/assets/CustomerIndexDropdown.49914d07.js +++ b/public/build/assets/CustomerIndexDropdown.78bcff92.js @@ -1 +1 @@ -import{l as k,u as S,j as C,e as x,g}from"./main.6ceeb72d.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.d12b5734.js";const V={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(i){const w=i,_=k();S();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"),b=l("BaseDropdown");return a(),s(b,{"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{l as k,u as S,j as C,e as x,g}from"./main.c7bd6c0e.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.d12b5734.js";const V={props:{row:{type:Object,default:null},table:{type:Object,default:null},loadData:{type:Function,default:()=>{}}},setup(i){const w=i,_=k();S();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"),b=l("BaseDropdown");return a(),s(b,{"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 _}; diff --git a/public/build/assets/CustomerSettings.100fd12d.js b/public/build/assets/CustomerSettings.1e7b255f.js similarity index 97% rename from public/build/assets/CustomerSettings.100fd12d.js rename to public/build/assets/CustomerSettings.1e7b255f.js index dd5f5b3b0..ef8689b01 100644 --- a/public/build/assets/CustomerSettings.100fd12d.js +++ b/public/build/assets/CustomerSettings.1e7b255f.js @@ -1 +1 @@ -import{G as R,J as G,B as p,k as C,L as c,M as k,N as S,Q as L,P,T as A,r as v,o as g,e as D,f as u,w as i,h as _,t as h,u as e,x as b,l as y,m as O,j as T,i as z,U as J}from"./vendor.d12b5734.js";import{a as Q,u as H}from"./global.db0572f0.js";import"./auth.974620c9.js";import"./main.6ceeb72d.js";const K=["onSubmit"],W={class:"font-bold text-left"},X={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},Y={class:"grid gap-6 sm:grid-col-1 md:grid-cols-2 mt-6"},Z=_("span",null,null,-1),te={setup(ee){const r=Q();H(),R();const{t:m,tm:U}=G();let f=p([]),d=p(!1),w=p(null),n=p(!1),l=p(!1);const I=p(!1);r.userForm.avatar&&f.value.push({image:r.userForm.avatar});const x=C(()=>({userForm:{name:{required:c.withMessage(m("validation.required"),k),minLength:c.withMessage(m("validation.name_min_length",{count:3}),S(3))},email:{required:c.withMessage(m("validation.required"),k),email:c.withMessage(m("validation.email_incorrect"),L)},password:{minLength:c.withMessage(m("validation.password_min_length",{count:8}),S(8))},confirm_password:{sameAsPassword:c.withMessage(m("validation.password_incorrect"),P(r.userForm.password))}}})),o=A(x,C(()=>r));function M(t,s){w.value=s}function q(){w.value=null,I.value=!0}function N(){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),w.value&&t.append("customer_avatar",w.value),t.append("is_customer_avatar_removed",I.value),r.updateCurrentUser({data:t,message:U("settings.account_settings.updated_message")}).then(s=>{s.data.data&&(d.value=!1,r.$patch(B=>{B.userForm.password="",B.userForm.confirm_password=""}),w.value=null,I.value=!1)}).catch(s=>{d.value=!1})}return(t,s)=>{const B=v("BaseFileUploader"),F=v("BaseInputGroup"),V=v("BaseInput"),$=v("BaseIcon"),j=v("BaseButton"),E=v("BaseCard");return g(),D("form",{class:"relative h-full mt-4",onSubmit:J(N,["prevent"])},[u(E,null,{default:i(()=>[_("div",null,[_("h6",W,h(t.$t("settings.account_settings.account_settings")),1),_("p",X,h(t.$t("settings.account_settings.section_description")),1)]),_("div",Y,[u(F,{label:t.$tc("settings.account_settings.profile_picture")},{default:i(()=>[u(B,{modelValue:e(f),"onUpdate:modelValue":s[0]||(s[0]=a=>b(f)?f.value=a:f=a),avatar:!0,accept:"image/*",onChange:M,onRemove:q},null,8,["modelValue"])]),_:1},8,["label"]),Z,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(V,{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(V,{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(V,{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($,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[5]||(s[5]=a=>b(n)?n.value=!e(n):n=!e(n))})):(g(),y($,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[6]||(s[6]=a=>b(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(V,{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($,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[9]||(s[9]=a=>b(l)?l.value=!e(l):l=!e(l))})):(g(),y($,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[10]||(s[10]=a=>b(l)?l.value=!e(l):l=!e(l))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["label","error"])]),u(j,{loading:e(d),disabled:e(d),class:"mt-6"},{left:i(a=>[e(d)?T("",!0):(g(),y($,{key:0,name:"SaveIcon",class:O(a.class)},null,8,["class"]))]),default:i(()=>[z(" "+h(t.$t("general.save")),1)]),_:1},8,["loading","disabled"])]),_:1})],40,K)}}};export{te as default}; +import{G as R,J as G,B as p,k as C,L as c,M as k,N as S,Q as L,P,T as A,r as v,o as g,e as D,f as u,w as i,h as _,t as h,u as e,x as b,l as y,m as O,j as T,i as z,U as J}from"./vendor.d12b5734.js";import{a as Q,u as H}from"./global.1ac91de5.js";import"./auth.a07e0850.js";import"./main.c7bd6c0e.js";const K=["onSubmit"],W={class:"font-bold text-left"},X={class:"mt-2 text-sm leading-snug text-left text-gray-500",style:{"max-width":"680px"}},Y={class:"grid gap-6 sm:grid-col-1 md:grid-cols-2 mt-6"},Z=_("span",null,null,-1),te={setup(ee){const r=Q();H(),R();const{t:m,tm:U}=G();let f=p([]),d=p(!1),w=p(null),n=p(!1),l=p(!1);const I=p(!1);r.userForm.avatar&&f.value.push({image:r.userForm.avatar});const x=C(()=>({userForm:{name:{required:c.withMessage(m("validation.required"),k),minLength:c.withMessage(m("validation.name_min_length",{count:3}),S(3))},email:{required:c.withMessage(m("validation.required"),k),email:c.withMessage(m("validation.email_incorrect"),L)},password:{minLength:c.withMessage(m("validation.password_min_length",{count:8}),S(8))},confirm_password:{sameAsPassword:c.withMessage(m("validation.password_incorrect"),P(r.userForm.password))}}})),o=A(x,C(()=>r));function M(t,s){w.value=s}function q(){w.value=null,I.value=!0}function N(){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),w.value&&t.append("customer_avatar",w.value),t.append("is_customer_avatar_removed",I.value),r.updateCurrentUser({data:t,message:U("settings.account_settings.updated_message")}).then(s=>{s.data.data&&(d.value=!1,r.$patch(B=>{B.userForm.password="",B.userForm.confirm_password=""}),w.value=null,I.value=!1)}).catch(s=>{d.value=!1})}return(t,s)=>{const B=v("BaseFileUploader"),F=v("BaseInputGroup"),V=v("BaseInput"),$=v("BaseIcon"),j=v("BaseButton"),E=v("BaseCard");return g(),D("form",{class:"relative h-full mt-4",onSubmit:J(N,["prevent"])},[u(E,null,{default:i(()=>[_("div",null,[_("h6",W,h(t.$t("settings.account_settings.account_settings")),1),_("p",X,h(t.$t("settings.account_settings.section_description")),1)]),_("div",Y,[u(F,{label:t.$tc("settings.account_settings.profile_picture")},{default:i(()=>[u(B,{modelValue:e(f),"onUpdate:modelValue":s[0]||(s[0]=a=>b(f)?f.value=a:f=a),avatar:!0,accept:"image/*",onChange:M,onRemove:q},null,8,["modelValue"])]),_:1},8,["label"]),Z,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(V,{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(V,{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(V,{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($,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[5]||(s[5]=a=>b(n)?n.value=!e(n):n=!e(n))})):(g(),y($,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[6]||(s[6]=a=>b(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(V,{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($,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[9]||(s[9]=a=>b(l)?l.value=!e(l):l=!e(l))})):(g(),y($,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:s[10]||(s[10]=a=>b(l)?l.value=!e(l):l=!e(l))}))]),_:1},8,["modelValue","type","invalid"])]),_:1},8,["label","error"])]),u(j,{loading:e(d),disabled:e(d),class:"mt-6"},{left:i(a=>[e(d)?T("",!0):(g(),y($,{key:0,name:"SaveIcon",class:O(a.class)},null,8,["class"]))]),default:i(()=>[z(" "+h(t.$t("general.save")),1)]),_:1},8,["loading","disabled"])]),_:1})],40,K)}}};export{te as default}; diff --git a/public/build/assets/CustomizationSetting.0754031c.js b/public/build/assets/CustomizationSetting.8afa996f.js similarity index 99% rename from public/build/assets/CustomizationSetting.0754031c.js rename to public/build/assets/CustomizationSetting.8afa996f.js index 7bf883c70..d7ad00535 100644 --- a/public/build/assets/CustomizationSetting.0754031c.js +++ b/public/build/assets/CustomizationSetting.8afa996f.js @@ -1 +1 @@ -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.6ceeb72d.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.d12b5734.js";import{D as Bt,d as ht}from"./DragIcon.e6c221f0.js";import{u as zt}from"./payment.ef13b90b.js";import{_ as Vt}from"./ItemUnitModal.17b8fb30.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}; +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.c7bd6c0e.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.d12b5734.js";import{D as Bt,d as ht}from"./DragIcon.d9f643cf.js";import{u as zt}from"./payment.2b6f850e.js";import{_ as Vt}from"./ItemUnitModal.12dfe4f1.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}; diff --git a/public/build/assets/Dashboard.7d84bed1.js b/public/build/assets/Dashboard.80c815dd.js similarity index 90% rename from public/build/assets/Dashboard.7d84bed1.js rename to public/build/assets/Dashboard.80c815dd.js index 8c1b7a4da..d7f0bb6bd 100644 --- a/public/build/assets/Dashboard.7d84bed1.js +++ b/public/build/assets/Dashboard.80c815dd.js @@ -1 +1 @@ -import{D as I,_ as L,a as M}from"./EstimateIcon.89528a95.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.d12b5734.js";import{u as C}from"./global.db0572f0.js";import{h as Z}from"./auth.974620c9.js";import{_ as k}from"./main.6ceeb72d.js";import S from"./BaseTable.86db669d.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 I,_ as L,a as M}from"./EstimateIcon.86606287.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.d12b5734.js";import{u as C}from"./global.1ac91de5.js";import{h as Z}from"./auth.a07e0850.js";import{_ as k}from"./main.c7bd6c0e.js";import S from"./BaseTable.d75a6388.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"},g={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 f=i("BaseFormatMoney");return m(),v("div",ne,[t(g,{"icon-component":I,loading:!n(a).getDashboardDataLoaded,route:{name:"invoices.dashboard"},large:!0,label:d.$t("dashboard.cards.due_amount")},{default:s(()=>[t(f,{amount:n(o).totalDueAmount,currency:n(a).currency},null,8,["amount","currency"])]),_:1},8,["loading","route","label"]),t(g,{"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(g,{"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(g,{"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 f=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(f),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}; diff --git a/public/build/assets/Dashboard.85be3397.js b/public/build/assets/Dashboard.8190d462.js similarity index 97% rename from public/build/assets/Dashboard.85be3397.js rename to public/build/assets/Dashboard.8190d462.js index 6b0601529..aa30641a0 100644 --- a/public/build/assets/Dashboard.85be3397.js +++ b/public/build/assets/Dashboard.8190d462.js @@ -1 +1 @@ -import{D as L,_ as F,a as R}from"./EstimateIcon.89528a95.js";import{o as c,e as C,m as j,h as t,r,l as p,w as i,f as a,g as W,t as _,aj as z,a as q,d as H,ah as V,u as e,j as v,i as y,B as D,C as U,J as Z,k as M,V as N,G,aN as J,D as Y}from"./vendor.d12b5734.js";import{_ as T,h as K,b as O,e as E,g as h}from"./main.6ceeb72d.js";import{_ as Q}from"./LineChart.dd592086.js";import{_ as X}from"./InvoiceIndexDropdown.78aec816.js";import{_ as tt}from"./EstimateIndexDropdown.1e23ee92.js";const et=t("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),at=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),st=[et,at],ot={props:{colorClass:{type:String,default:"text-primary-500"}},setup(d){return(o,s)=>(c(),C("svg",{width:"50",height:"50",viewBox:"0 0 50 50",class:j(d.colorClass),fill:"none",xmlns:"http://www.w3.org/2000/svg"},st,2))}},lt={},nt={class:"flex items-center"};function ct(d,o){const s=r("BaseContentPlaceholdersText"),n=r("BaseContentPlaceholdersBox"),u=r("BaseContentPlaceholders");return c(),p(u,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-3 xl:p-4"},{default:i(()=>[t("div",null,[a(s,{class:"h-5 -mb-1 w-14 xl:mb-6 xl:h-7",lines:1}),a(s,{class:"h-3 w-28 xl:h-4",lines:1})]),t("div",nt,[a(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var rt=T(lt,[["render",ct]]);const it={},dt={class:"flex items-center"};function ut(d,o){const s=r("BaseContentPlaceholdersText"),n=r("BaseContentPlaceholdersBox"),u=r("BaseContentPlaceholders");return c(),p(u,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-2 xl:p-4"},{default:i(()=>[t("div",null,[a(s,{class:"w-12 h-5 -mb-1 xl:mb-6 xl:h-7",lines:1}),a(s,{class:"w-20 h-3 xl:h-4",lines:1})]),t("div",dt,[a(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var mt=T(it,[["render",ut]]);const _t={class:"text-xl font-semibold leading-tight text-black xl:text-3xl"},ht={class:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},pt={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(d){return(o,s)=>{const n=r("router-link");return d.loading?d.large?(c(),p(rt,{key:1})):(c(),p(mt,{key:2})):(c(),p(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":d.large}]),to:d.route},{default:i(()=>[t("div",null,[t("span",_t,[W(o.$slots,"default")]),t("span",ht,_(d.label),1)]),t("div",pt,[(c(),p(z(d.iconComponent),{class:"w-10 h-10 xl:w-12 xl:h-12"}))])]),_:3},8,["class","to"]))}}},S=(d=!1)=>(d?window.pinia.defineStore:H)({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(s){return new Promise((n,u)=>{q.get("/api/v1/dashboard",{params:s}).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=>{K(l),u(l)})})}}})(),bt={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},xt={setup(d){V("utils");const o=S(),s=O(),n=E();return(u,l)=>{const f=r("BaseFormatMoney");return c(),C("div",bt,[e(n).hasAbilities(e(h).VIEW_INVOICE)?(c(),p(B,{key:0,"icon-component":L,loading:!e(o).isDashboardDataLoaded,route:"/admin/invoices",large:!0,label:u.$t("dashboard.cards.due_amount")},{default:i(()=>[a(f,{amount:e(o).stats.totalAmountDue,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])]),_:1},8,["loading","label"])):v("",!0),e(n).hasAbilities(e(h).VIEW_CUSTOMER)?(c(),p(B,{key:1,"icon-component":ot,loading:!e(o).isDashboardDataLoaded,route:"/admin/customers",label:u.$t("dashboard.cards.customers")},{default:i(()=>[y(_(e(o).stats.totalCustomerCount),1)]),_:1},8,["loading","label"])):v("",!0),e(n).hasAbilities(e(h).VIEW_INVOICE)?(c(),p(B,{key:2,"icon-component":F,loading:!e(o).isDashboardDataLoaded,route:"/admin/invoices",label:u.$t("dashboard.cards.invoices")},{default:i(()=>[y(_(e(o).stats.totalInvoiceCount),1)]),_:1},8,["loading","label"])):v("",!0),e(n).hasAbilities(e(h).VIEW_ESTIMATE)?(c(),p(B,{key:3,"icon-component":R,loading:!e(o).isDashboardDataLoaded,route:"/admin/estimates",label:u.$t("dashboard.cards.estimates")},{default:i(()=>[y(_(e(o).stats.totalEstimateCount),1)]),_:1},8,["loading","label"])):v("",!0)])}}},ft={},gt={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-8"},yt={class:"flex items-center justify-between mb-2 xl:mb-4"},Ct={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"},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 p-6 lg:justify-end lg:items-end"},Dt={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 Et(d,o){const s=r("BaseContentPlaceholdersText"),n=r("BaseContentPlaceholdersBox"),u=r("BaseContentPlaceholders");return c(),p(u,{class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},{default:i(()=>[t("div",gt,[t("div",yt,[a(s,{class:"h-10 w-36",lines:1}),a(s,{class:"h-10 w-36 !mt-0",lines:1})]),a(n,{class:"h-80 xl:h-72 sm:w-full"})]),t("div",Ct,[t("div",vt,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",wt,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",$t,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",Dt,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var Bt=T(ft,[["render",Et]]);const It={key:0,class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},Tt={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-6"},St={class:"flex justify-between mt-1 mb-4 flex-col md:flex-row"},kt={class:"flex items-center sw-section-title h-10"},At={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"},Vt={class:"text-xs leading-5 lg:text-sm"},Mt=t("br",null,null,-1),Nt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl"},Ot={class:"p-6"},Lt={class:"text-xs leading-5 lg:text-sm"},Ft=t("br",null,null,-1),Rt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-green-400"},Wt={class:"p-6"},zt={class:"text-xs leading-5 lg:text-sm"},qt=t("br",null,null,-1),Ht={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-red-400"},Ut={class:"col-span-3 p-6 border-t border-gray-200 border-solid lg:col-span-1"},Zt={class:"text-xs leading-5 lg:text-sm"},Gt=t("br",null,null,-1),Jt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-primary-500"},Yt={setup(d){const o=S(),s=O();V("utils");const n=E(),u=D(["This year","Previous year"]),l=D("This year");U(l,b=>{b==="Previous year"?f({previous_year:!0}):f()},{immediate:!0});async function f(b){n.hasAbilities(h.DASHBOARD)&&await o.loadData(b)}return(b,w)=>{const I=r("BaseIcon"),g=r("BaseMultiselect"),x=r("BaseFormatMoney");return c(),C("div",null,[e(o).isDashboardDataLoaded?(c(),C("div",It,[t("div",Tt,[t("div",St,[t("h6",kt,[a(I,{name:"ChartSquareBarIcon",class:"text-primary-400 mr-1"}),y(" "+_(b.$t("dashboard.monthly_chart.title")),1)]),t("div",At,[a(g,{modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=$=>l.value=$),options:u.value,"allow-empty":!1,"show-labels":!1,placeholder:b.$t("dashboard.select_year"),"can-deselect":!1},null,8,["modelValue","options","placeholder"])])]),a(Q,{invoices:e(o).chartData.invoiceTotals,expenses:e(o).chartData.expenseTotals,receipts:e(o).chartData.receiptTotals,income:e(o).chartData.netIncomeTotals,labels:e(o).chartData.months,class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])]),t("div",Pt,[t("div",jt,[t("span",Vt,_(b.$t("dashboard.chart_info.total_sales")),1),Mt,t("span",Nt,[a(x,{amount:e(o).totalSales,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Ot,[t("span",Lt,_(b.$t("dashboard.chart_info.total_receipts")),1),Ft,t("span",Rt,[a(x,{amount:e(o).totalReceipts,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Wt,[t("span",zt,_(b.$t("dashboard.chart_info.total_expense")),1),qt,t("span",Ht,[a(x,{amount:e(o).totalExpenses,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Ut,[t("span",Zt,_(b.$t("dashboard.chart_info.net_income")),1),Gt,t("span",Jt,[a(x,{amount:e(o).totalNetIncome,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])])])])):(c(),p(Bt,{key:1}))])}}},Kt={class:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},Qt={key:0,class:"due-invoices"},Xt={class:"relative z-10 flex items-center justify-between mb-3"},te={class:"mb-0 text-xl font-semibold leading-normal"},ee={key:1,class:"recent-estimates"},ae={class:"relative z-10 flex items-center justify-between mb-3"},se={class:"mb-0 text-xl font-semibold leading-normal"},oe={setup(d){const o=S(),{t:s}=Z(),n=E(),u=D(null),l=D(null),f=M(()=>[{key:"formattedDueDate",label:s("dashboard.recent_invoices_card.due_on")},{key:"user",label:s("dashboard.recent_invoices_card.customer")},{key:"due_amount",label:s("dashboard.recent_invoices_card.amount_due")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]),b=M(()=>[{key:"formattedEstimateDate",label:s("dashboard.recent_estimate_card.date")},{key:"user",label:s("dashboard.recent_estimate_card.customer")},{key:"total",label:s("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 w(){return n.hasAbilities([h.DELETE_INVOICE,h.EDIT_INVOICE,h.VIEW_INVOICE,h.SEND_INVOICE])}function I(){return n.hasAbilities([h.CREATE_ESTIMATE,h.EDIT_ESTIMATE,h.VIEW_ESTIMATE,h.SEND_ESTIMATE])}return(g,x)=>{const $=r("BaseButton"),k=r("router-link"),A=r("BaseFormatMoney"),P=r("BaseTable");return c(),C("div",null,[t("div",Kt,[e(n).hasAbilities(e(h).VIEW_INVOICE)?(c(),C("div",Qt,[t("div",Xt,[t("h6",te,_(g.$t("dashboard.recent_invoices_card.title")),1),a($,{size:"sm",variant:"primary-outline",onClick:x[0]||(x[0]=m=>g.$router.push("/admin/invoices"))},{default:i(()=>[y(_(g.$t("dashboard.recent_invoices_card.view_all")),1)]),_:1})]),a(P,{data:e(o).recentDueInvoices,columns:e(f),loading:!e(o).isDashboardDataLoaded},N({"cell-user":i(({row:m})=>[a(k,{to:{path:`invoices/${m.data.id}/view`},class:"font-medium text-primary-500"},{default:i(()=>[y(_(m.data.customer.name),1)]),_:2},1032,["to"])]),"cell-due_amount":i(({row:m})=>[a(A,{amount:m.data.due_amount,currency:m.data.customer.currency},null,8,["amount","currency"])]),_:2},[w()?{name:"cell-actions",fn:i(({row:m})=>[a(X,{row:m.data,table:u.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])):v("",!0),e(n).hasAbilities(e(h).VIEW_ESTIMATE)?(c(),C("div",ee,[t("div",ae,[t("h6",se,_(g.$t("dashboard.recent_estimate_card.title")),1),a($,{variant:"primary-outline",size:"sm",onClick:x[1]||(x[1]=m=>g.$router.push("/admin/estimates"))},{default:i(()=>[y(_(g.$t("dashboard.recent_estimate_card.view_all")),1)]),_:1})]),a(P,{data:e(o).recentEstimates,columns:e(b),loading:!e(o).isDashboardDataLoaded},N({"cell-user":i(({row:m})=>[a(k,{to:{path:`estimates/${m.data.id}/view`},class:"font-medium text-primary-500"},{default:i(()=>[y(_(m.data.customer.name),1)]),_:2},1032,["to"])]),"cell-total":i(({row:m})=>[a(A,{amount:m.data.total,currency:m.data.customer.currency},null,8,["amount","currency"])]),_:2},[I()?{name:"cell-actions",fn:i(({row:m})=>[a(tt,{row:m,table:l.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])):v("",!0)])])}}},ue={setup(d){const o=G(),s=E(),n=J();return Y(()=>{o.meta.ability&&!s.hasAbilities(o.meta.ability)?n.push({name:"account.settings"}):o.meta.isOwner&&!s.currentUser.is_owner&&n.push({name:"account.settings"})}),(u,l)=>{const f=r("BasePage");return c(),p(f,null,{default:i(()=>[a(xt),a(Yt),a(oe)]),_:1})}}};export{ue as default}; +import{D as L,_ as F,a as R}from"./EstimateIcon.86606287.js";import{o as c,e as C,m as j,h as t,r,l as p,w as i,f as a,g as W,t as _,aj as z,a as q,d as H,ah as V,u as e,j as v,i as y,B as D,C as U,J as Z,k as M,V as N,G,aN as J,D as Y}from"./vendor.d12b5734.js";import{_ as T,h as K,b as O,e as E,g as h}from"./main.c7bd6c0e.js";import{_ as Q}from"./LineChart.6775a7d1.js";import{_ as X}from"./InvoiceIndexDropdown.174ed624.js";import{_ as tt}from"./EstimateIndexDropdown.c74a1c48.js";const et=t("circle",{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"},null,-1),at=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),st=[et,at],ot={props:{colorClass:{type:String,default:"text-primary-500"}},setup(d){return(o,s)=>(c(),C("svg",{width:"50",height:"50",viewBox:"0 0 50 50",class:j(d.colorClass),fill:"none",xmlns:"http://www.w3.org/2000/svg"},st,2))}},lt={},nt={class:"flex items-center"};function ct(d,o){const s=r("BaseContentPlaceholdersText"),n=r("BaseContentPlaceholdersBox"),u=r("BaseContentPlaceholders");return c(),p(u,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-3 xl:p-4"},{default:i(()=>[t("div",null,[a(s,{class:"h-5 -mb-1 w-14 xl:mb-6 xl:h-7",lines:1}),a(s,{class:"h-3 w-28 xl:h-4",lines:1})]),t("div",nt,[a(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var rt=T(lt,[["render",ct]]);const it={},dt={class:"flex items-center"};function ut(d,o){const s=r("BaseContentPlaceholdersText"),n=r("BaseContentPlaceholdersBox"),u=r("BaseContentPlaceholders");return c(),p(u,{rounded:!0,class:"relative flex justify-between w-full p-3 bg-white rounded shadow lg:col-span-2 xl:p-4"},{default:i(()=>[t("div",null,[a(s,{class:"w-12 h-5 -mb-1 xl:mb-6 xl:h-7",lines:1}),a(s,{class:"w-20 h-3 xl:h-4",lines:1})]),t("div",dt,[a(n,{circle:!0,class:"w-10 h-10 xl:w-12 xl:h-12"})])]),_:1})}var mt=T(it,[["render",ut]]);const _t={class:"text-xl font-semibold leading-tight text-black xl:text-3xl"},ht={class:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},pt={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(d){return(o,s)=>{const n=r("router-link");return d.loading?d.large?(c(),p(rt,{key:1})):(c(),p(mt,{key:2})):(c(),p(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":d.large}]),to:d.route},{default:i(()=>[t("div",null,[t("span",_t,[W(o.$slots,"default")]),t("span",ht,_(d.label),1)]),t("div",pt,[(c(),p(z(d.iconComponent),{class:"w-10 h-10 xl:w-12 xl:h-12"}))])]),_:3},8,["class","to"]))}}},S=(d=!1)=>(d?window.pinia.defineStore:H)({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(s){return new Promise((n,u)=>{q.get("/api/v1/dashboard",{params:s}).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=>{K(l),u(l)})})}}})(),bt={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},xt={setup(d){V("utils");const o=S(),s=O(),n=E();return(u,l)=>{const f=r("BaseFormatMoney");return c(),C("div",bt,[e(n).hasAbilities(e(h).VIEW_INVOICE)?(c(),p(B,{key:0,"icon-component":L,loading:!e(o).isDashboardDataLoaded,route:"/admin/invoices",large:!0,label:u.$t("dashboard.cards.due_amount")},{default:i(()=>[a(f,{amount:e(o).stats.totalAmountDue,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])]),_:1},8,["loading","label"])):v("",!0),e(n).hasAbilities(e(h).VIEW_CUSTOMER)?(c(),p(B,{key:1,"icon-component":ot,loading:!e(o).isDashboardDataLoaded,route:"/admin/customers",label:u.$t("dashboard.cards.customers")},{default:i(()=>[y(_(e(o).stats.totalCustomerCount),1)]),_:1},8,["loading","label"])):v("",!0),e(n).hasAbilities(e(h).VIEW_INVOICE)?(c(),p(B,{key:2,"icon-component":F,loading:!e(o).isDashboardDataLoaded,route:"/admin/invoices",label:u.$t("dashboard.cards.invoices")},{default:i(()=>[y(_(e(o).stats.totalInvoiceCount),1)]),_:1},8,["loading","label"])):v("",!0),e(n).hasAbilities(e(h).VIEW_ESTIMATE)?(c(),p(B,{key:3,"icon-component":R,loading:!e(o).isDashboardDataLoaded,route:"/admin/estimates",label:u.$t("dashboard.cards.estimates")},{default:i(()=>[y(_(e(o).stats.totalEstimateCount),1)]),_:1},8,["loading","label"])):v("",!0)])}}},ft={},gt={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-8"},yt={class:"flex items-center justify-between mb-2 xl:mb-4"},Ct={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"},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 p-6 lg:justify-end lg:items-end"},Dt={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 Et(d,o){const s=r("BaseContentPlaceholdersText"),n=r("BaseContentPlaceholdersBox"),u=r("BaseContentPlaceholders");return c(),p(u,{class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},{default:i(()=>[t("div",gt,[t("div",yt,[a(s,{class:"h-10 w-36",lines:1}),a(s,{class:"h-10 w-36 !mt-0",lines:1})]),a(n,{class:"h-80 xl:h-72 sm:w-full"})]),t("div",Ct,[t("div",vt,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",wt,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",$t,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})]),t("div",Dt,[a(s,{class:"h-3 w-14 xl:h-4",lines:1}),a(s,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var Bt=T(ft,[["render",Et]]);const It={key:0,class:"grid grid-cols-10 mt-8 bg-white rounded shadow"},Tt={class:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-6"},St={class:"flex justify-between mt-1 mb-4 flex-col md:flex-row"},kt={class:"flex items-center sw-section-title h-10"},At={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"},Vt={class:"text-xs leading-5 lg:text-sm"},Mt=t("br",null,null,-1),Nt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl"},Ot={class:"p-6"},Lt={class:"text-xs leading-5 lg:text-sm"},Ft=t("br",null,null,-1),Rt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-green-400"},Wt={class:"p-6"},zt={class:"text-xs leading-5 lg:text-sm"},qt=t("br",null,null,-1),Ht={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-red-400"},Ut={class:"col-span-3 p-6 border-t border-gray-200 border-solid lg:col-span-1"},Zt={class:"text-xs leading-5 lg:text-sm"},Gt=t("br",null,null,-1),Jt={class:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl text-primary-500"},Yt={setup(d){const o=S(),s=O();V("utils");const n=E(),u=D(["This year","Previous year"]),l=D("This year");U(l,b=>{b==="Previous year"?f({previous_year:!0}):f()},{immediate:!0});async function f(b){n.hasAbilities(h.DASHBOARD)&&await o.loadData(b)}return(b,w)=>{const I=r("BaseIcon"),g=r("BaseMultiselect"),x=r("BaseFormatMoney");return c(),C("div",null,[e(o).isDashboardDataLoaded?(c(),C("div",It,[t("div",Tt,[t("div",St,[t("h6",kt,[a(I,{name:"ChartSquareBarIcon",class:"text-primary-400 mr-1"}),y(" "+_(b.$t("dashboard.monthly_chart.title")),1)]),t("div",At,[a(g,{modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=$=>l.value=$),options:u.value,"allow-empty":!1,"show-labels":!1,placeholder:b.$t("dashboard.select_year"),"can-deselect":!1},null,8,["modelValue","options","placeholder"])])]),a(Q,{invoices:e(o).chartData.invoiceTotals,expenses:e(o).chartData.expenseTotals,receipts:e(o).chartData.receiptTotals,income:e(o).chartData.netIncomeTotals,labels:e(o).chartData.months,class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])]),t("div",Pt,[t("div",jt,[t("span",Vt,_(b.$t("dashboard.chart_info.total_sales")),1),Mt,t("span",Nt,[a(x,{amount:e(o).totalSales,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Ot,[t("span",Lt,_(b.$t("dashboard.chart_info.total_receipts")),1),Ft,t("span",Rt,[a(x,{amount:e(o).totalReceipts,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Wt,[t("span",zt,_(b.$t("dashboard.chart_info.total_expense")),1),qt,t("span",Ht,[a(x,{amount:e(o).totalExpenses,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])]),t("div",Ut,[t("span",Zt,_(b.$t("dashboard.chart_info.net_income")),1),Gt,t("span",Jt,[a(x,{amount:e(o).totalNetIncome,currency:e(s).selectedCompanyCurrency},null,8,["amount","currency"])])])])])):(c(),p(Bt,{key:1}))])}}},Kt={class:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},Qt={key:0,class:"due-invoices"},Xt={class:"relative z-10 flex items-center justify-between mb-3"},te={class:"mb-0 text-xl font-semibold leading-normal"},ee={key:1,class:"recent-estimates"},ae={class:"relative z-10 flex items-center justify-between mb-3"},se={class:"mb-0 text-xl font-semibold leading-normal"},oe={setup(d){const o=S(),{t:s}=Z(),n=E(),u=D(null),l=D(null),f=M(()=>[{key:"formattedDueDate",label:s("dashboard.recent_invoices_card.due_on")},{key:"user",label:s("dashboard.recent_invoices_card.customer")},{key:"due_amount",label:s("dashboard.recent_invoices_card.amount_due")},{key:"actions",tdClass:"text-right text-sm font-medium pl-0",thClass:"text-right pl-0",sortable:!1}]),b=M(()=>[{key:"formattedEstimateDate",label:s("dashboard.recent_estimate_card.date")},{key:"user",label:s("dashboard.recent_estimate_card.customer")},{key:"total",label:s("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 w(){return n.hasAbilities([h.DELETE_INVOICE,h.EDIT_INVOICE,h.VIEW_INVOICE,h.SEND_INVOICE])}function I(){return n.hasAbilities([h.CREATE_ESTIMATE,h.EDIT_ESTIMATE,h.VIEW_ESTIMATE,h.SEND_ESTIMATE])}return(g,x)=>{const $=r("BaseButton"),k=r("router-link"),A=r("BaseFormatMoney"),P=r("BaseTable");return c(),C("div",null,[t("div",Kt,[e(n).hasAbilities(e(h).VIEW_INVOICE)?(c(),C("div",Qt,[t("div",Xt,[t("h6",te,_(g.$t("dashboard.recent_invoices_card.title")),1),a($,{size:"sm",variant:"primary-outline",onClick:x[0]||(x[0]=m=>g.$router.push("/admin/invoices"))},{default:i(()=>[y(_(g.$t("dashboard.recent_invoices_card.view_all")),1)]),_:1})]),a(P,{data:e(o).recentDueInvoices,columns:e(f),loading:!e(o).isDashboardDataLoaded},N({"cell-user":i(({row:m})=>[a(k,{to:{path:`invoices/${m.data.id}/view`},class:"font-medium text-primary-500"},{default:i(()=>[y(_(m.data.customer.name),1)]),_:2},1032,["to"])]),"cell-due_amount":i(({row:m})=>[a(A,{amount:m.data.due_amount,currency:m.data.customer.currency},null,8,["amount","currency"])]),_:2},[w()?{name:"cell-actions",fn:i(({row:m})=>[a(X,{row:m.data,table:u.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])):v("",!0),e(n).hasAbilities(e(h).VIEW_ESTIMATE)?(c(),C("div",ee,[t("div",ae,[t("h6",se,_(g.$t("dashboard.recent_estimate_card.title")),1),a($,{variant:"primary-outline",size:"sm",onClick:x[1]||(x[1]=m=>g.$router.push("/admin/estimates"))},{default:i(()=>[y(_(g.$t("dashboard.recent_estimate_card.view_all")),1)]),_:1})]),a(P,{data:e(o).recentEstimates,columns:e(b),loading:!e(o).isDashboardDataLoaded},N({"cell-user":i(({row:m})=>[a(k,{to:{path:`estimates/${m.data.id}/view`},class:"font-medium text-primary-500"},{default:i(()=>[y(_(m.data.customer.name),1)]),_:2},1032,["to"])]),"cell-total":i(({row:m})=>[a(A,{amount:m.data.total,currency:m.data.customer.currency},null,8,["amount","currency"])]),_:2},[I()?{name:"cell-actions",fn:i(({row:m})=>[a(tt,{row:m,table:l.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])):v("",!0)])])}}},ue={setup(d){const o=G(),s=E(),n=J();return Y(()=>{o.meta.ability&&!s.hasAbilities(o.meta.ability)?n.push({name:"account.settings"}):o.meta.isOwner&&!s.currentUser.is_owner&&n.push({name:"account.settings"})}),(u,l)=>{const f=r("BasePage");return c(),p(f,null,{default:i(()=>[a(xt),a(Yt),a(oe)]),_:1})}}};export{ue as default}; diff --git a/public/build/assets/DragIcon.e6c221f0.js b/public/build/assets/DragIcon.d9f643cf.js similarity index 99% rename from public/build/assets/DragIcon.e6c221f0.js rename to public/build/assets/DragIcon.d9f643cf.js index ec4477c36..44a5741c7 100644 --- a/public/build/assets/DragIcon.e6c221f0.js +++ b/public/build/assets/DragIcon.d9f643cf.js @@ -1,4 +1,4 @@ -import{aU as $r,aV as Br,aQ as Kr,aW as Hr,o as Wr,e as Xr,h as Yr}from"./vendor.d12b5734.js";import{_ as Vr}from"./main.6ceeb72d.js";var gr={exports:{}};/**! +import{aU as $r,aV as Br,aQ as Kr,aW as Hr,o as Wr,e as Xr,h as Yr}from"./vendor.d12b5734.js";import{_ as Vr}from"./main.c7bd6c0e.js";var gr={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa * @author owenm diff --git a/public/build/assets/EstimateCreate.420fc484.js b/public/build/assets/EstimateCreate.f2c398e0.js similarity index 82% rename from public/build/assets/EstimateCreate.420fc484.js rename to public/build/assets/EstimateCreate.f2c398e0.js index 0fd999da8..3ae111023 100644 --- a/public/build/assets/EstimateCreate.420fc484.js +++ b/public/build/assets/EstimateCreate.f2c398e0.js @@ -1 +1 @@ -var K=Object.defineProperty,Q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var j=(a,e,n)=>e in a?K(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,q=(a,e)=>{for(var n in e||(e={}))X.call(e,n)&&j(a,n,e[n]);if(V)for(var n of V(e))Z.call(e,n)&&j(a,n,e[n]);return a},L=(a,e)=>Q(a,W(e));import{r as o,o as g,e as T,f as s,u as t,w as l,J as ee,B as h,G as te,aN as ae,k as v,L as b,M as E,S as se,O as ne,aP as ie,T as oe,C as le,l as y,j as C,h as B,t as M,m as re,i as me,U as de,F as ue}from"./vendor.d12b5734.js";import{k as P,r as ce,b as pe,m as ge}from"./main.6ceeb72d.js";import{_ as fe,a as _e,b as be,c as ve,d as ye,e as we,f as Ee}from"./SalesTax.285fbaa6.js";import{_ as Be}from"./CreateCustomFields.1cd1f052.js";import{_ as $e}from"./ExchangeRateConverter.2338e5bf.js";import{_ as Se}from"./TaxTypeModal.5bc92e5b.js";import"./DragIcon.e6c221f0.js";import"./SelectNotePopup.9f1463c3.js";import"./NoteModal.62a64a69.js";import"./payment.ef13b90b.js";import"./exchange-rate.28527a8e.js";const he={class:"md:grid-cols-12 grid-cols-1 md:gap-x-6 mt-6 mb-8 grid gap-y-5"},Ce={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(),T("div",he,[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($e,{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})])}}},ke=["onSubmit"],xe={class:"flex"},Ie={class:"block mt-10 estimate-foot lg:flex lg:justify-between lg:items-start"},Ve={class:"relative w-full lg:w-1/2"},He={setup(a){const e=P(),n=ce(),r=pe(),$=ge(),{t:m}=ee(),c="newEstimate";let p=h(!1);const S=h(!1),d=h(["customer","company","customerCustom","estimate","estimateCustom"]);let k=te(),F=ae(),f=v(()=>e.isFetchingInitialSettings),N=v(()=>_.value?m("estimates.edit_estimate"):m("estimates.new_estimate")),_=v(()=>k.name==="estimates.edit");const U=v(()=>r.selectedCompanySettings.sales_tax_us_enabled==="YES"&&n.salesTaxUSEnabled),D={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"),se(255))},customer_id:{required:b.withMessage(m("validation.required"),E)},exchange_rate:{required:ne(function(){return b.withMessage(m("validation.required"),E),e.showExchangeRate}),decimal:b.withMessage(m("validation.valid_exchange_rate"),ie)}},w=oe(D,v(()=>e.newEstimate),{$scope:c});le(()=>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(_.value);async function G(){if(w.value.$touch(),w.value.$invalid)return!1;p.value=!0;let i=L(q({},e.newEstimate),{sub_total:e.getSubTotal,total:e.getTotal,tax:e.getTotalTax});const x=_.value?e.updateEstimate:e.addEstimate;try{let u=await x(i);u.data.data&&F.push(`/admin/estimates/${u.data.data.id}/view`)}catch(u){console.error(u)}p.value=!1}return(i,x)=>{const u=o("BaseBreadcrumbItem"),R=o("BaseBreadcrumb"),I=o("BaseButton"),H=o("router-link"),O=o("BaseIcon"),z=o("BasePageHeader"),A=o("BaseScrollPane"),J=o("BasePage");return g(),T(ue,null,[s(fe),s(_e),s(Se),t(U)&&(!t(f)||t(k).query.customer)?(g(),y(be,{key:0,store:t(e),"store-prop":"newEstimate","is-edit":t(_),customer:t(e).newEstimate.customer},null,8,["store","is-edit","customer"])):C("",!0),s(J,{class:"relative estimate-create-page"},{default:l(()=>[B("form",{onSubmit:de(G,["prevent"])},[s(z,{title:t(N)},{actions:l(()=>[i.$route.name==="estimates.edit"?(g(),y(H,{key:0,to:`/estimates/pdf/${t(e).newEstimate.unique_hash}`,target:"_blank"},{default:l(()=>[s(I,{class:"mr-3",variant:"primary-outline",type:"button"},{default:l(()=>[B("span",xe,M(i.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):C("",!0),s(I,{loading:t(p),disabled:t(p),"content-loading":t(f),variant:"primary",type:"submit"},{left:l(Y=>[t(p)?C("",!0):(g(),y(O,{key:0,class:re(Y.class),name:"SaveIcon"},null,8,["class"]))]),default:l(()=>[me(" "+M(i.$t("estimates.save_estimate")),1)]),_:1},8,["loading","disabled","content-loading"])]),default:l(()=>[s(R,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(Ce,{v:t(w),"is-loading":t(f),"is-edit":t(_)},null,8,["v","is-loading","is-edit"]),s(A,null,{default:l(()=>[s(ve,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(f),"item-validation-scope":c,store:t(e),"store-prop":"newEstimate"},null,8,["currency","is-loading","store"]),B("div",Ie,[B("div",Ve,[s(ye,{store:t(e),"store-prop":"newEstimate",fields:d.value,type:"Estimate"},null,8,["store","fields"]),s(Be,{type:"Estimate","is-edit":t(_),"is-loading":t(f),store:t(e),"store-prop":"newEstimate","custom-field-scope":c,class:"mb-6"},null,8,["is-edit","is-loading","store"]),s(we,{store:t(e),"component-name":"EstimateTemplate","store-prop":"newEstimate","is-mark-as-default":S.value},null,8,["store","is-mark-as-default"])]),s(Ee,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(f),store:t(e),"store-prop":"newEstimate","tax-popup-type":"estimate"},null,8,["currency","is-loading","store"])])]),_:1})],40,ke)]),_:1})],64)}}};export{He as default}; +var K=Object.defineProperty,Q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var j=(a,e,n)=>e in a?K(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,q=(a,e)=>{for(var n in e||(e={}))X.call(e,n)&&j(a,n,e[n]);if(V)for(var n of V(e))Z.call(e,n)&&j(a,n,e[n]);return a},L=(a,e)=>Q(a,W(e));import{r as o,o as g,e as T,f as s,u as t,w as l,J as ee,B as h,G as te,aN as ae,k as b,L as v,M as E,S as se,O as ne,aP as ie,T as oe,C as le,l as y,j as C,h as B,t as M,m as re,i as me,U as de,F as ue}from"./vendor.d12b5734.js";import{k as P,r as ce,b as pe,m as ge}from"./main.c7bd6c0e.js";import{_ as fe,a as _e,b as ve,c as be,d as ye,e as we,f as Ee}from"./SalesTax.67357751.js";import{_ as Be}from"./CreateCustomFields.04aba193.js";import{_ as $e}from"./ExchangeRateConverter.6e0e36e7.js";import{_ as Se}from"./TaxTypeModal.3db473e9.js";import"./DragIcon.d9f643cf.js";import"./SelectNotePopup.ead4330d.js";import"./NoteModal.c9605dba.js";import"./payment.2b6f850e.js";import"./exchange-rate.70a72e5f.js";const he={class:"md:grid-cols-12 grid-cols-1 md:gap-x-6 mt-6 mb-8 grid gap-y-5"},Ce={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(),T("div",he,[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($e,{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})])}}},ke=["onSubmit"],xe={class:"flex"},Ie={class:"block mt-10 estimate-foot lg:flex lg:justify-between lg:items-start"},Ve={class:"relative w-full lg:w-1/2"},He={setup(a){const e=P(),n=ce(),r=pe(),$=ge(),{t:m}=ee(),c="newEstimate";let p=h(!1);const S=h(!1),d=h(["customer","company","customerCustom","estimate","estimateCustom"]);let k=te(),F=ae(),f=b(()=>e.isFetchingInitialSettings),N=b(()=>_.value?m("estimates.edit_estimate"):m("estimates.new_estimate")),_=b(()=>k.name==="estimates.edit");const U=b(()=>r.selectedCompanySettings.sales_tax_us_enabled==="YES"&&n.salesTaxUSEnabled),D={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"),se(255))},customer_id:{required:v.withMessage(m("validation.required"),E)},exchange_rate:{required:ne(function(){return v.withMessage(m("validation.required"),E),e.showExchangeRate}),decimal:v.withMessage(m("validation.valid_exchange_rate"),ie)}},w=oe(D,b(()=>e.newEstimate),{$scope:c});le(()=>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(_.value);async function G(){if(w.value.$touch(),w.value.$invalid)return!1;p.value=!0;let i=L(q({},e.newEstimate),{sub_total:e.getSubTotal,total:e.getTotal,tax:e.getTotalTax});const x=_.value?e.updateEstimate:e.addEstimate;try{let u=await x(i);u.data.data&&F.push(`/admin/estimates/${u.data.data.id}/view`)}catch(u){console.error(u)}p.value=!1}return(i,x)=>{const u=o("BaseBreadcrumbItem"),R=o("BaseBreadcrumb"),I=o("BaseButton"),H=o("router-link"),O=o("BaseIcon"),z=o("BasePageHeader"),A=o("BaseScrollPane"),J=o("BasePage");return g(),T(ue,null,[s(fe),s(_e),s(Se),t(U)&&(!t(f)||t(k).query.customer)?(g(),y(ve,{key:0,store:t(e),"store-prop":"newEstimate","is-edit":t(_),customer:t(e).newEstimate.customer},null,8,["store","is-edit","customer"])):C("",!0),s(J,{class:"relative estimate-create-page"},{default:l(()=>[B("form",{onSubmit:de(G,["prevent"])},[s(z,{title:t(N)},{actions:l(()=>[i.$route.name==="estimates.edit"?(g(),y(H,{key:0,to:`/estimates/pdf/${t(e).newEstimate.unique_hash}`,target:"_blank"},{default:l(()=>[s(I,{class:"mr-3",variant:"primary-outline",type:"button"},{default:l(()=>[B("span",xe,M(i.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):C("",!0),s(I,{loading:t(p),disabled:t(p),"content-loading":t(f),variant:"primary",type:"submit"},{left:l(Y=>[t(p)?C("",!0):(g(),y(O,{key:0,class:re(Y.class),name:"SaveIcon"},null,8,["class"]))]),default:l(()=>[me(" "+M(i.$t("estimates.save_estimate")),1)]),_:1},8,["loading","disabled","content-loading"])]),default:l(()=>[s(R,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(Ce,{v:t(w),"is-loading":t(f),"is-edit":t(_)},null,8,["v","is-loading","is-edit"]),s(A,null,{default:l(()=>[s(be,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(f),"item-validation-scope":c,store:t(e),"store-prop":"newEstimate"},null,8,["currency","is-loading","store"]),B("div",Ie,[B("div",Ve,[s(ye,{store:t(e),"store-prop":"newEstimate",fields:d.value,type:"Estimate"},null,8,["store","fields"]),s(Be,{type:"Estimate","is-edit":t(_),"is-loading":t(f),store:t(e),"store-prop":"newEstimate","custom-field-scope":c,class:"mb-6"},null,8,["is-edit","is-loading","store"]),s(we,{store:t(e),"component-name":"EstimateTemplate","store-prop":"newEstimate","is-mark-as-default":S.value},null,8,["store","is-mark-as-default"])]),s(Ee,{currency:t(e).newEstimate.selectedCurrency,"is-loading":t(f),store:t(e),"store-prop":"newEstimate","tax-popup-type":"estimate"},null,8,["currency","is-loading","store"])])]),_:1})],40,ke)]),_:1})],64)}}};export{He as default}; diff --git a/public/build/assets/EstimateIcon.89528a95.js b/public/build/assets/EstimateIcon.86606287.js similarity index 98% rename from public/build/assets/EstimateIcon.89528a95.js rename to public/build/assets/EstimateIcon.86606287.js index a7b893d35..dec9702fa 100644 --- a/public/build/assets/EstimateIcon.89528a95.js +++ b/public/build/assets/EstimateIcon.86606287.js @@ -1 +1 @@ -import{_ as r}from"./main.6ceeb72d.js";import{o as s,e as o,h as C,m as l}from"./vendor.d12b5734.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{_ as r}from"./main.c7bd6c0e.js";import{o as s,e as o,h as C,m as l}from"./vendor.d12b5734.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}; diff --git a/public/build/assets/EstimateIndexDropdown.1e23ee92.js b/public/build/assets/EstimateIndexDropdown.c74a1c48.js similarity index 97% rename from public/build/assets/EstimateIndexDropdown.1e23ee92.js rename to public/build/assets/EstimateIndexDropdown.c74a1c48.js index f663ac63a..6b5e1821c 100644 --- a/public/build/assets/EstimateIndexDropdown.1e23ee92.js +++ b/public/build/assets/EstimateIndexDropdown.c74a1c48.js @@ -1 +1 @@ -import{k as R,c as z,u as P,j as V,e as J,g as E}from"./main.6ceeb72d.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.d12b5734.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{k as R,c as z,u as P,j as V,e as J,g as E}from"./main.c7bd6c0e.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.d12b5734.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 _}; diff --git a/public/build/assets/ExchangeRateConverter.2338e5bf.js b/public/build/assets/ExchangeRateConverter.6e0e36e7.js similarity index 95% rename from public/build/assets/ExchangeRateConverter.2338e5bf.js rename to public/build/assets/ExchangeRateConverter.6e0e36e7.js index e4f304bb6..425d75cea 100644 --- a/public/build/assets/ExchangeRateConverter.2338e5bf.js +++ b/public/build/assets/ExchangeRateConverter.6e0e36e7.js @@ -1 +1 @@ -import{d as V,b as _}from"./main.6ceeb72d.js";import{u as D}from"./exchange-rate.28527a8e.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.d12b5734.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 _}; +import{d as V,b as _}from"./main.c7bd6c0e.js";import{u as D}from"./exchange-rate.70a72e5f.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.d12b5734.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 _}; diff --git a/public/build/assets/ExchangeRateProviderSetting.6143f080.js b/public/build/assets/ExchangeRateProviderSetting.02eba7ee.js similarity index 98% rename from public/build/assets/ExchangeRateProviderSetting.6143f080.js rename to public/build/assets/ExchangeRateProviderSetting.02eba7ee.js index 73f240895..5bf2e244e 100644 --- a/public/build/assets/ExchangeRateProviderSetting.6143f080.js +++ b/public/build/assets/ExchangeRateProviderSetting.02eba7ee.js @@ -1 +1 @@ -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.28527a8e.js";import{c as K,b as ge,j as ve}from"./main.6ceeb72d.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.d12b5734.js";import ke from"./BaseTable.86db669d.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}; +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.70a72e5f.js";import{c as K,b as ge,j as ve}from"./main.c7bd6c0e.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.d12b5734.js";import ke from"./BaseTable.d75a6388.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}; diff --git a/public/build/assets/ExpenseCategorySetting.bac23162.js b/public/build/assets/ExpenseCategorySetting.4ef6d3ed.js similarity index 94% rename from public/build/assets/ExpenseCategorySetting.bac23162.js rename to public/build/assets/ExpenseCategorySetting.4ef6d3ed.js index 6ce26215d..76ae20613 100644 --- a/public/build/assets/ExpenseCategorySetting.bac23162.js +++ b/public/build/assets/ExpenseCategorySetting.4ef6d3ed.js @@ -1 +1 @@ -import{j as v,u as $,e as M,c as S,g as k}from"./main.6ceeb72d.js";import{u as E}from"./category.1184b061.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.d12b5734.js";import{_ as H}from"./CategoryModal.b8530d2c.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}; +import{j as v,u as $,e as M,c as S,g as k}from"./main.c7bd6c0e.js";import{u as E}from"./category.970a47d6.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.d12b5734.js";import{_ as H}from"./CategoryModal.dc91de33.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}; diff --git a/public/build/assets/FileDiskSetting.e79dff0b.js b/public/build/assets/FileDiskSetting.ba22e97c.js similarity index 99% rename from public/build/assets/FileDiskSetting.e79dff0b.js rename to public/build/assets/FileDiskSetting.ba22e97c.js index 8793c93a3..b41ec30c5 100644 --- a/public/build/assets/FileDiskSetting.e79dff0b.js +++ b/public/build/assets/FileDiskSetting.ba22e97c.js @@ -1 +1 @@ -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.e54e2880.js";import{_ as F,c as G,b as ne,j as de}from"./main.6ceeb72d.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.d12b5734.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 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.40fc971f.js";import{_ as F,c as G,b as ne,j as de}from"./main.c7bd6c0e.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.d12b5734.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}; diff --git a/public/build/assets/ForgotPassword.a2f7d1ee.js b/public/build/assets/ForgotPassword.06039a0d.js similarity index 93% rename from public/build/assets/ForgotPassword.a2f7d1ee.js rename to public/build/assets/ForgotPassword.06039a0d.js index 900ea7f62..984367969 100644 --- a/public/build/assets/ForgotPassword.a2f7d1ee.js +++ b/public/build/assets/ForgotPassword.06039a0d.js @@ -1 +1 @@ -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,B=(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},$=(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.d12b5734.js";import{u as R}from"./auth.974620c9.js";import"./main.6ceeb72d.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}; +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,B=(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},$=(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.d12b5734.js";import{u as R}from"./auth.a07e0850.js";import"./main.c7bd6c0e.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}; diff --git a/public/build/assets/ForgotPassword.268a530d.js b/public/build/assets/ForgotPassword.0bff03a9.js similarity index 96% rename from public/build/assets/ForgotPassword.268a530d.js rename to public/build/assets/ForgotPassword.0bff03a9.js index 2f8b7d098..2e807d2b9 100644 --- a/public/build/assets/ForgotPassword.268a530d.js +++ b/public/build/assets/ForgotPassword.0bff03a9.js @@ -1 +1 @@ -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.d12b5734.js";import{u as C,h as D}from"./main.6ceeb72d.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 b(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 y=n("BaseInput"),$=n("BaseInputGroup"),B=n("BaseButton"),k=n("router-link");return l(),u("form",{id:"loginForm",onSubmit:q(b,["prevent"])},[r($,{error:t(a).email.$error&&t(a).email.$errors[0].$message,label:s.$t("login.enter_email"),class:"mb-4",required:""},{default:m(()=>[r(y,{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 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.d12b5734.js";import{u as C,h as D}from"./main.c7bd6c0e.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 b(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 y=n("BaseInput"),$=n("BaseInputGroup"),B=n("BaseButton"),k=n("router-link");return l(),u("form",{id:"loginForm",onSubmit:q(b,["prevent"])},[r($,{error:t(a).email.$error&&t(a).email.$errors[0].$message,label:s.$t("login.enter_email"),class:"mb-4",required:""},{default:m(()=>[r(y,{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}; diff --git a/public/build/assets/Index.171a9be4.js b/public/build/assets/Index.0c596f43.js similarity index 97% rename from public/build/assets/Index.171a9be4.js rename to public/build/assets/Index.0c596f43.js index f13cb1b57..1c2473d13 100644 --- a/public/build/assets/Index.171a9be4.js +++ b/public/build/assets/Index.0c596f43.js @@ -1 +1 @@ -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.d12b5734.js";import{b as ye,j as _e,e as fe,g as B}from"./main.6ceeb72d.js";import{u as be}from"./payment.ef13b90b.js";import{_ as Be}from"./CapsuleIcon.37dfa933.js";import{_ as ve,a as he}from"./SendPaymentModal.e1c4e0ab.js";import"./mail-driver.c62711d2.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 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.d12b5734.js";import{b as ye,j as _e,e as fe,g as B}from"./main.c7bd6c0e.js";import{u as be}from"./payment.2b6f850e.js";import{_ as Be}from"./CapsuleIcon.37dfa933.js";import{_ as ve,a as he}from"./SendPaymentModal.b203e586.js";import"./mail-driver.b57a1b96.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}; diff --git a/public/build/assets/Index.cd4cebdd.js b/public/build/assets/Index.1005222f.js similarity index 82% rename from public/build/assets/Index.cd4cebdd.js rename to public/build/assets/Index.1005222f.js index a41d5464a..3a7482a76 100644 --- a/public/build/assets/Index.cd4cebdd.js +++ b/public/build/assets/Index.1005222f.js @@ -1 +1 @@ -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.d12b5734.js";import{k as Be,j as ve,e as he,g as f}from"./main.6ceeb72d.js";import{_ as ye}from"./ObservatoryIcon.528a64ab.js";import{_ as Te}from"./EstimateIndexDropdown.1e23ee92.js";import{_ as ke}from"./SendEstimateModal.5a99ff19.js";import"./mail-driver.c62711d2.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"},Se={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Ae={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Ve={class:"absolute items-center left-6 top-2.5 select-none"},$e={class:"relative block"},Ne={setup(De){const u=Be(),W=ve(),T=he(),k=h(null),{t:i}=ce(),B=h(!1),G=h(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]),S=h(!0),d=h("general.draft");_e();let o=pe({customer_id:"",status:"",from_date:"",to_date:"",estimate_number:""});const M=R(()=>!u.totalEstimateCount&&!S.value),A=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="",V()}function V(){k.value&&k.value.refresh()}async function L({page:t,filter:r,sort:c}){let $={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};S.value=!0;let m=await u.fetchEstimates($);return S.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}),V()}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=>{V(),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"),$=n("BaseBreadcrumb"),m=n("BaseIcon"),D=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"),w=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(D,{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(D,{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($,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(D,{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",Se,[a(le,{class:"-mb-5",onChange:X},{default:s(()=>[a(w,{title:t.$t("general.all"),filter:""},null,8,["title"]),a(w,{title:t.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),a(w,{title:t.$t("general.sent"),filter:"SENT"},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",Ae,[_(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,F)=>{F.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",Ve,[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",$e,[a(U,{id:e.id,modelValue:l(A),"onUpdate:modelValue":r[8]||(r[8]=F=>ge(A)?A.value=F: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{B as h,J as de,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.d12b5734.js";import{k as Be,j as ve,e as he,g as f}from"./main.c7bd6c0e.js";import{_ as ye}from"./ObservatoryIcon.528a64ab.js";import{_ as Te}from"./EstimateIndexDropdown.c74a1c48.js";import{_ as ke}from"./SendEstimateModal.d6ecf83f.js";import"./mail-driver.b57a1b96.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"},Se={class:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},Ae={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Ve={class:"absolute items-center left-6 top-2.5 select-none"},$e={class:"relative block"},Ne={setup(De){const u=Be(),W=ve(),T=he(),k=h(null),{t:i}=de(),B=h(!1),G=h(["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"]),S=h(!0),c=h("general.draft");_e();let o=pe({customer_id:"",status:"",from_date:"",to_date:"",estimate_number:""});const M=R(()=>!u.totalEstimateCount&&!S.value),A=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="",V()}function V(){k.value&&k.value.refresh()}async function L({page:t,filter:r,sort:d}){let $={customer_id:o.customer_id,status:o.status,from_date:o.from_date,to_date:o.to_date,estimate_number:o.estimate_number,orderByField:d.fieldName||"created_at",orderBy:d.order||"desc",page:t};S.value=!0;let m=await u.fetchEstimates($);return S.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(c.value==t.title)return!0;switch(c.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}),V()}function x(){o.customer_id="",o.status="",o.from_date="",o.to_date="",o.estimate_number="",c.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=>{V(),r.data&&u.$patch(d=>{d.selectedEstimates=[],d.selectAllField=!1})})})}function Q(t){switch(t){case"DRAFT":c.value=i("general.draft");break;case"SENT":c.value=i("general.sent");break;case"VIEWED":c.value=i("estimates.viewed");break;case"EXPIRED":c.value=i("estimates.expired");break;case"ACCEPTED":c.value=i("estimates.accepted");break;case"REJECTED":c.value=i("estimates.rejected");break;default:c.value=i("general.all");break}}return(t,r)=>{const d=n("BaseBreadcrumbItem"),$=n("BaseBreadcrumb"),m=n("BaseIcon"),D=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"),w=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"),ce=n("BasePage");return b(),E(ce,null,{default:s(()=>[a(ke),a(Y,{title:t.$t("estimates.title")},{actions:s(()=>[C(a(D,{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(D,{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($,null,{default:s(()=>[a(d,{title:t.$t("general.home"),to:"dashboard"},null,8,["title"]),a(d,{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(D,{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",Se,[a(le,{class:"-mb-5",onChange:X},{default:s(()=>[a(w,{title:t.$t("general.all"),filter:""},null,8,["title"]),a(w,{title:t.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),a(w,{title:t.$t("general.sent"),filter:"SENT"},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",Ae,[_(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,F)=>{F.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",Ve,[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",$e,[a(U,{id:e.id,modelValue:l(A),"onUpdate:modelValue":r[8]||(r[8]=F=>ge(A)?A.value=F: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}; diff --git a/public/build/assets/Index.374787d3.js b/public/build/assets/Index.2f6b2ed6.js similarity index 95% rename from public/build/assets/Index.374787d3.js rename to public/build/assets/Index.2f6b2ed6.js index ffe7b1bce..d97a1c5e7 100644 --- a/public/build/assets/Index.374787d3.js +++ b/public/build/assets/Index.2f6b2ed6.js @@ -1 +1 @@ -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 x,i,t as u,j as te,h as E}from"./vendor.d12b5734.js";import{u as ae}from"./invoice.90614bc9.js";import oe from"./BaseTable.86db669d.js";import{u as se}from"./global.db0572f0.js";import{_ as ne}from"./MoonwalkerIcon.b55d3604.js";import"./auth.974620c9.js";import"./main.6ceeb72d.js";const le=E("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 $=b(null);let g=b(!0),m=b(!1);const P=b(["DRAFT","DUE","SENT","VIEWED","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}]),D=I(()=>!p.totalInvoices&&!g.value);ee(o,()=>{T()},{debounce:500});function N(){$.value.refresh()}function T(){N()}function S(){o.status="",o.from_date="",o.to_date="",o.invoice_number=""}function H(){m.value&&S(),m.value=!m.value}async function U({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"),W=s("BaseSelectInput"),v=s("BaseInputGroup"),z=s("BaseInput"),w=s("BaseDatePicker"),R=s("BaseFilterWrapper"),q=s("BaseEmptyPlaceholder"),C=s("router-link"),A=s("BaseFormatMoney"),F=s("BaseInvoiceStatusBadge"),J=s("BaseDropdownItem"),L=s("BaseDropdown"),O=s("BasePage");return B(),y(O,null,{default:a(()=>[t(M,{title:l.$t("invoices.title")},{actions:a(()=>[k(t(G,{variant:"primary-outline",onClick:H},{right:a(e=>[n(m)?(B(),y(c,{key:1,name:"XIcon",class:x(e.class)},null,8,["class"])):(B(),y(c,{key:0,name:"FilterIcon",class:x(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(R,{onClear:S},{default:a(()=>[t(v,{label:l.$t("invoices.status"),class:"px-3"},{default:a(()=>[t(W,{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(z,{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(D)?(B(),y(q,{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(E("div",re,[t(oe,{ref:(e,X)=>{X.table=e,$.value=e},data:U,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(A,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":a(({row:e})=>[t(F,{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(F,{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(L,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(J,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(D)]])]),_:1})}}};export{ve 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 x,i,t as u,j as te,h as E}from"./vendor.d12b5734.js";import{u as ae}from"./invoice.fba53e83.js";import oe from"./BaseTable.d75a6388.js";import{u as se}from"./global.1ac91de5.js";import{_ as ne}from"./MoonwalkerIcon.b55d3604.js";import"./auth.a07e0850.js";import"./main.c7bd6c0e.js";const le=E("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 $=b(null);let g=b(!0),m=b(!1);const P=b(["DRAFT","DUE","SENT","VIEWED","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}]),D=I(()=>!p.totalInvoices&&!g.value);ee(o,()=>{T()},{debounce:500});function N(){$.value.refresh()}function T(){N()}function S(){o.status="",o.from_date="",o.to_date="",o.invoice_number=""}function H(){m.value&&S(),m.value=!m.value}async function U({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"),W=s("BaseSelectInput"),v=s("BaseInputGroup"),z=s("BaseInput"),w=s("BaseDatePicker"),R=s("BaseFilterWrapper"),q=s("BaseEmptyPlaceholder"),C=s("router-link"),A=s("BaseFormatMoney"),F=s("BaseInvoiceStatusBadge"),J=s("BaseDropdownItem"),L=s("BaseDropdown"),O=s("BasePage");return B(),y(O,null,{default:a(()=>[t(M,{title:l.$t("invoices.title")},{actions:a(()=>[k(t(G,{variant:"primary-outline",onClick:H},{right:a(e=>[n(m)?(B(),y(c,{key:1,name:"XIcon",class:x(e.class)},null,8,["class"])):(B(),y(c,{key:0,name:"FilterIcon",class:x(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(R,{onClear:S},{default:a(()=>[t(v,{label:l.$t("invoices.status"),class:"px-3"},{default:a(()=>[t(W,{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(z,{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(D)?(B(),y(q,{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(E("div",re,[t(oe,{ref:(e,X)=>{X.table=e,$.value=e},data:U,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(A,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":a(({row:e})=>[t(F,{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(F,{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(L,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(J,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(D)]])]),_:1})}}};export{ve as default}; diff --git a/public/build/assets/Index.2a5c7bd4.js b/public/build/assets/Index.38b36d95.js similarity index 99% rename from public/build/assets/Index.2a5c7bd4.js rename to public/build/assets/Index.38b36d95.js index cf1484536..2afe5dc26 100644 --- a/public/build/assets/Index.2a5c7bd4.js +++ b/public/build/assets/Index.38b36d95.js @@ -1 +1 @@ -import{J as j,a0 as C,B as h,I as o,k as $,C as L,D as F,r as i,o as q,e as N,h as c,f as a,w as m,u as p,i as I,t as V,U as H,l as K,m as X}from"./vendor.d12b5734.js";import{d as U,b as z}from"./main.6ceeb72d.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=c("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(Q){const{t:v}=j(),g=U();g.downloadReport=T;const u=C([{label:v("dateRange.today"),key:"Today"},{label:v("dateRange.this_week"),key:"This Week"},{label:v("dateRange.this_month"),key:"This Month"},{label:v("dateRange.this_quarter"),key:"This Quarter"},{label:v("dateRange.this_year"),key:"This Year"},{label:v("dateRange.previous_week"),key:"Previous Week"},{label:v("dateRange.previous_month"),key:"Previous Month"},{label:v("dateRange.previous_quarter"),key:"Previous Quarter"},{label:v("dateRange.previous_year"),key:"Previous Year"},{label:v("dateRange.custom"),key:"Custom"}]),B=h(u[2]),n=h(["By Customer","By Item"]),y=h("By Customer");let w=h(new Date),D=h(null),e=h(null),Y=h(null),s=C({from_date:o().startOf("month").format("YYYY-MM-DD").toString(),to_date:o().endOf("month").format("YYYY-MM-DD").toString()});const R=z(),r=$(()=>D.value),d=$(()=>R.selectedCompany),P=$(()=>`${e.value}?from_date=${o(s.from_date).format("YYYY-MM-DD")}&to_date=${o(s.to_date).format("YYYY-MM-DD")}`),x=$(()=>`${Y.value}?from_date=${o(s.from_date).format("YYYY-MM-DD")}&to_date=${o(s.to_date).format("YYYY-MM-DD")}`);L(w,f=>{s.from_date=o(f).startOf("year").toString(),s.to_date=o(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,k){return o()[f](k).format("YYYY-MM-DD")}function O(f,k){return o().subtract(1,k)[f](k).format("YYYY-MM-DD")}function t(){switch(B.value.key){case"Today":s.from_date=o().format("YYYY-MM-DD"),s.to_date=o().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=O("startOf","isoWeek"),s.to_date=O("endOf","isoWeek");break;case"Previous Month":s.from_date=O("startOf","month"),s.to_date=O("endOf","month");break;case"Previous Quarter":s.from_date=O("startOf","quarter"),s.to_date=O("endOf","quarter");break;case"Previous Year":s.from_date=O("startOf","year"),s.to_date=O("endOf","year");break}}async function l(){return y.value==="By Customer"?(D.value=P.value,!0):(D.value=x.value,!0)}async function S(){let f=await M();return window.open(r.value,"_blank"),f}function M(){return y.value==="By Customer"?(D.value=P.value,!0):(D.value=x.value,!0)}function T(){if(!M())return!1;window.open(r.value+"&download=true"),setTimeout(()=>y.value==="By Customer"?(D.value=P.value,!0):(D.value=x.value,!0),200)}return(f,k)=>{const b=i("BaseMultiselect"),G=i("BaseInputGroup"),E=i("BaseDatePicker"),J=i("BaseButton"),A=i("BaseIcon");return q(),N("div",Z,[c("div",ee,[a(G,{label:f.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(b,{modelValue:B.value,"onUpdate:modelValue":[k[0]||(k[0]=W=>B.value=W),t],options:p(u),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",te,[a(G,{label:f.$t("reports.sales.from_date")},{default:m(()=>[a(E,{modelValue:p(s).from_date,"onUpdate:modelValue":k[1]||(k[1]=W=>p(s).from_date=W)},null,8,["modelValue"])]),_:1},8,["label"]),ae,a(G,{label:f.$t("reports.sales.to_date")},{default:m(()=>[a(E,{modelValue:p(s).to_date,"onUpdate:modelValue":k[2]||(k[2]=W=>p(s).to_date=W)},null,8,["modelValue"])]),_:1},8,["label"])]),a(G,{label:f.$t("reports.sales.report_type"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(b,{modelValue:y.value,"onUpdate:modelValue":[k[3]||(k[3]=W=>y.value=W),l],options:n.value,placeholder:f.$t("reports.sales.report_type"),class:"mt-1"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),a(J,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(M,["prevent"])},{default:m(()=>[I(V(f.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",oe,[c("iframe",{src:p(r),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,re),c("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},[a(A,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(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=c("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"},ce=["src"],me={setup(Q){const v=U(),g=z(),{t:u}=j();v.downloadReport=O;const B=C([{label:u("dateRange.today"),key:"Today"},{label:u("dateRange.this_week"),key:"This Week"},{label:u("dateRange.this_month"),key:"This Month"},{label:u("dateRange.this_quarter"),key:"This Quarter"},{label:u("dateRange.this_year"),key:"This Year"},{label:u("dateRange.previous_week"),key:"Previous Week"},{label:u("dateRange.previous_month"),key:"Previous Month"},{label:u("dateRange.previous_quarter"),key:"Previous Quarter"},{label:u("dateRange.previous_year"),key:"Previous Year"},{label:u("dateRange.custom"),key:"Custom"}]),n=h(B[2]);let y=h(new Date),w=h(null),D=h(null);const e=C({from_date:o().startOf("month").toString(),to_date:o().endOf("month").toString()}),Y=$(()=>w.value),s=$(()=>g.selectedCompany),R=$(()=>`${D.value}?from_date=${o(e.from_date).format("YYYY-MM-DD")}&to_date=${o(e.to_date).format("YYYY-MM-DD")}`);F(()=>{D.value=`/reports/expenses/${s.value.unique_hash}`,w.value=R.value}),L(()=>y,t=>{e.from_date=o(t).startOf("year").toString(),e.to_date=o(t).endOf("year").toString()});function r(t,l){return o()[t](l).format("YYYY-MM-DD")}function d(t,l){return o().subtract(1,l)[t](l).format("YYYY-MM-DD")}function P(){switch(n.value.key){case"Today":e.from_date=o().format("YYYY-MM-DD"),e.to_date=o().format("YYYY-MM-DD");break;case"This Week":e.from_date=r("startOf","isoWeek"),e.to_date=r("endOf","isoWeek");break;case"This Month":e.from_date=r("startOf","month"),e.to_date=r("endOf","month");break;case"This Quarter":e.from_date=r("startOf","quarter"),e.to_date=r("endOf","quarter");break;case"This Year":e.from_date=r("startOf","year"),e.to_date=r("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 x(){let t=await _();return window.open(Y.value,"_blank"),t}function _(){return w.value=R.value,!0}function O(){!_(),window.open(Y.value+"&download=true"),setTimeout(()=>{w.value=R.value},200)}return(t,l)=>{const S=i("BaseMultiselect"),M=i("BaseInputGroup"),T=i("BaseDatePicker"),f=i("BaseButton"),k=i("BaseIcon");return q(),N("div",se,[c("div",le,[a(M,{label:t.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(S,{modelValue:n.value,"onUpdate:modelValue":[l[0]||(l[0]=b=>n.value=b),P],options:p(B),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",de,[a(M,{label:t.$t("reports.expenses.from_date")},{default:m(()=>[a(T,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=b=>p(e).from_date=b)},null,8,["modelValue"])]),_:1},8,["label"]),ue,a(M,{label:t.$t("reports.expenses.to_date")},{default:m(()=>[a(T,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=b=>p(e).to_date=b)},null,8,["modelValue"])]),_:1},8,["label"])]),a(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:m(()=>[I(V(t.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",ie,[c("iframe",{src:p(Y),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,ce),c("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:x},[a(k,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(t.$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"},be=c("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),ye={class:"col-span-8"},ke=["src"],he={setup(Q){const v=U(),g=z(),{t:u}=j();v.downloadReport=O;const B=C([{label:u("dateRange.today"),key:"Today"},{label:u("dateRange.this_week"),key:"This Week"},{label:u("dateRange.this_month"),key:"This Month"},{label:u("dateRange.this_quarter"),key:"This Quarter"},{label:u("dateRange.this_year"),key:"This Year"},{label:u("dateRange.previous_week"),key:"Previous Week"},{label:u("dateRange.previous_month"),key:"Previous Month"},{label:u("dateRange.previous_quarter"),key:"Previous Quarter"},{label:u("dateRange.previous_year"),key:"Previous Year"},{label:u("dateRange.custom"),key:"Custom"}]),n=h(B[2]);let y=h(null),w=h(null),D=h(new Date);const e=C({from_date:o().startOf("month").toString(),to_date:o().endOf("month").toString()}),Y=$(()=>y.value),s=$(()=>g.selectedCompany),R=$(()=>`${w.value}?from_date=${o(e.from_date).format("YYYY-MM-DD")}&to_date=${o(e.to_date).format("YYYY-MM-DD")}`);L(D,t=>{e.from_date=o(t).startOf("year").toString(),e.to_date=o(t).endOf("year").toString()}),F(()=>{w.value=`/reports/profit-loss/${s.value.unique_hash}`,y.value=R.value});function r(t,l){return o()[t](l).format("YYYY-MM-DD")}function d(t,l){return o().subtract(1,l)[t](l).format("YYYY-MM-DD")}function P(){switch(n.value.key){case"Today":e.from_date=o().format("YYYY-MM-DD"),e.to_date=o().format("YYYY-MM-DD");break;case"This Week":e.from_date=r("startOf","isoWeek"),e.to_date=r("endOf","isoWeek");break;case"This Month":e.from_date=r("startOf","month"),e.to_date=r("endOf","month");break;case"This Quarter":e.from_date=r("startOf","quarter"),e.to_date=r("endOf","quarter");break;case"This Year":e.from_date=r("startOf","year"),e.to_date=r("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 x(){let t=await _();return window.open(Y.value,"_blank"),t}function _(){return y.value=R.value,!0}function O(){!_(),window.open(Y.value+"&download=true"),setTimeout(()=>{y.value=R.value},200)}return(t,l)=>{const S=i("BaseMultiselect"),M=i("BaseInputGroup"),T=i("BaseDatePicker"),f=i("BaseButton"),k=i("BaseIcon");return q(),N("div",pe,[c("div",fe,[a(M,{label:t.$t("reports.profit_loss.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(S,{modelValue:n.value,"onUpdate:modelValue":[l[0]||(l[0]=b=>n.value=b),P],options:p(B),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",_e,[a(M,{label:t.$t("reports.profit_loss.from_date")},{default:m(()=>[a(T,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=b=>p(e).from_date=b)},null,8,["modelValue"])]),_:1},8,["label"]),be,a(M,{label:t.$t("reports.profit_loss.to_date")},{default:m(()=>[a(T,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=b=>p(e).to_date=b)},null,8,["modelValue"])]),_:1},8,["label"])]),a(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:m(()=>[I(V(t.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",ye,[c("iframe",{src:p(Y),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,ke),c("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:x},[a(k,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(t.$t("reports.view_pdf")),1)])])])}}},ve={class:"grid gap-8 md:grid-cols-12 pt-10"},ge={class:"col-span-8 md:col-span-4"},Ye={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},De=c("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"},Me=["src"],Be={setup(Q){const v=U();v.downloadReport=O;const{t:g}=j(),u=C([{label:g("dateRange.today"),key:"Today"},{label:g("dateRange.this_week"),key:"This Week"},{label:g("dateRange.this_month"),key:"This Month"},{label:g("dateRange.this_quarter"),key:"This Quarter"},{label:g("dateRange.this_year"),key:"This Year"},{label:g("dateRange.previous_week"),key:"Previous Week"},{label:g("dateRange.previous_month"),key:"Previous Month"},{label:g("dateRange.previous_quarter"),key:"Previous Quarter"},{label:g("dateRange.previous_year"),key:"Previous Year"},{label:g("dateRange.custom"),key:"Custom"}]),B=h(u[2]),n=C({from_date:o().startOf("month").format("YYYY-MM-DD").toString(),to_date:o().endOf("month").format("YYYY-MM-DD").toString()});let y=h(null);const w=$(()=>y.value),D=z(),e=$(()=>D.selectedCompany);let Y=h(null);F(()=>{Y.value=`/reports/tax-summary/${e.value.unique_hash}`,y.value=s.value});const s=$(()=>`${Y.value}?from_date=${o(n.from_date).format("YYYY-MM-DD")}&to_date=${o(n.to_date).format("YYYY-MM-DD")}`);let R=h(new Date);L(R.value,t=>{n.from_date=o(t).startOf("year").toString(),n.to_date=o(t).endOf("year").toString()});function r(t,l){return o()[t](l).format("YYYY-MM-DD")}function d(t,l){return o().subtract(1,l)[t](l).format("YYYY-MM-DD")}function P(){switch(B.value.key){case"Today":n.from_date=o().format("YYYY-MM-DD"),n.to_date=o().format("YYYY-MM-DD");break;case"This Week":n.from_date=r("startOf","isoWeek"),n.to_date=r("endOf","isoWeek");break;case"This Month":n.from_date=r("startOf","month"),n.to_date=r("endOf","month");break;case"This Quarter":n.from_date=r("startOf","quarter"),n.to_date=r("endOf","quarter");break;case"This Year":n.from_date=r("startOf","year"),n.to_date=r("endOf","year");break;case"Previous Week":n.from_date=d("startOf","isoWeek"),n.to_date=d("endOf","isoWeek");break;case"Previous Month":n.from_date=d("startOf","month"),n.to_date=d("endOf","month");break;case"Previous Quarter":n.from_date=d("startOf","quarter"),n.to_date=d("endOf","quarter");break;case"Previous Year":n.from_date=d("startOf","year"),n.to_date=d("endOf","year");break}}async function x(){let t=await _();return window.open(w.value,"_blank"),t}function _(){return y.value=s.value,!0}function O(){!_(),window.open(w.value+"&download=true"),setTimeout(()=>{y.value=s.value},200)}return(t,l)=>{const S=i("BaseMultiselect"),M=i("BaseInputGroup"),T=i("BaseDatePicker"),f=i("BaseButton"),k=i("BaseIcon");return q(),N("div",ve,[c("div",ge,[a(M,{label:t.$t("reports.taxes.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(S,{modelValue:B.value,"onUpdate:modelValue":[l[0]||(l[0]=b=>B.value=b),P],options:p(u),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",Ye,[a(M,{label:t.$t("reports.taxes.from_date")},{default:m(()=>[a(T,{modelValue:p(n).from_date,"onUpdate:modelValue":l[1]||(l[1]=b=>p(n).from_date=b)},null,8,["modelValue"])]),_:1},8,["label"]),De,a(M,{label:t.$t("reports.taxes.to_date")},{default:m(()=>[a(T,{modelValue:p(n).to_date,"onUpdate:modelValue":l[2]||(l[2]=b=>p(n).to_date=b)},null,8,["modelValue"])]),_:1},8,["label"])]),a(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:m(()=>[I(V(t.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",we,[c("iframe",{src:p(w),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,Me),c("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:x},[a(k,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(t.$t("reports.view_pdf")),1)])])])}}},$e={setup(Q){const v=U();function g(){v.downloadReport()}return(u,B)=>{const n=i("BaseBreadcrumbItem"),y=i("BaseBreadcrumb"),w=i("BaseIcon"),D=i("BaseButton"),e=i("BasePageHeader"),Y=i("BaseTab"),s=i("BaseTabGroup"),R=i("BasePage");return q(),K(R,null,{default:m(()=>[a(e,{title:u.$tc("reports.report",2)},{actions:m(()=>[a(D,{variant:"primary",class:"ml-4",onClick:g},{left:m(r=>[a(w,{name:"DownloadIcon",class:X(r.class)},null,8,["class"])]),default:m(()=>[I(" "+V(u.$t("reports.download_pdf")),1)]),_:1})]),default:m(()=>[a(y,null,{default:m(()=>[a(n,{title:u.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),a(n,{title:u.$tc("reports.report",2),to:"/admin/reports",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(s,{class:"p-2"},{default:m(()=>[a(Y,{title:u.$t("reports.sales.sales"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(ne,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"]),a(Y,{title:u.$t("reports.profit_loss.profit_loss"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(he,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"]),a(Y,{title:u.$t("reports.expenses.expenses"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(me,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"]),a(Y,{title:u.$t("reports.taxes.taxes"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(Be,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"])]),_:1})]),_:1})}}};export{$e as default}; +import{J as j,a0 as C,B as h,I as o,k as $,C as L,D as F,r as i,o as q,e as N,h as c,f as a,w as m,u as p,i as I,t as V,U as H,l as K,m as X}from"./vendor.d12b5734.js";import{d as U,b as z}from"./main.c7bd6c0e.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=c("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(Q){const{t:v}=j(),g=U();g.downloadReport=T;const u=C([{label:v("dateRange.today"),key:"Today"},{label:v("dateRange.this_week"),key:"This Week"},{label:v("dateRange.this_month"),key:"This Month"},{label:v("dateRange.this_quarter"),key:"This Quarter"},{label:v("dateRange.this_year"),key:"This Year"},{label:v("dateRange.previous_week"),key:"Previous Week"},{label:v("dateRange.previous_month"),key:"Previous Month"},{label:v("dateRange.previous_quarter"),key:"Previous Quarter"},{label:v("dateRange.previous_year"),key:"Previous Year"},{label:v("dateRange.custom"),key:"Custom"}]),B=h(u[2]),n=h(["By Customer","By Item"]),y=h("By Customer");let w=h(new Date),D=h(null),e=h(null),Y=h(null),s=C({from_date:o().startOf("month").format("YYYY-MM-DD").toString(),to_date:o().endOf("month").format("YYYY-MM-DD").toString()});const R=z(),r=$(()=>D.value),d=$(()=>R.selectedCompany),P=$(()=>`${e.value}?from_date=${o(s.from_date).format("YYYY-MM-DD")}&to_date=${o(s.to_date).format("YYYY-MM-DD")}`),x=$(()=>`${Y.value}?from_date=${o(s.from_date).format("YYYY-MM-DD")}&to_date=${o(s.to_date).format("YYYY-MM-DD")}`);L(w,f=>{s.from_date=o(f).startOf("year").toString(),s.to_date=o(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,k){return o()[f](k).format("YYYY-MM-DD")}function O(f,k){return o().subtract(1,k)[f](k).format("YYYY-MM-DD")}function t(){switch(B.value.key){case"Today":s.from_date=o().format("YYYY-MM-DD"),s.to_date=o().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=O("startOf","isoWeek"),s.to_date=O("endOf","isoWeek");break;case"Previous Month":s.from_date=O("startOf","month"),s.to_date=O("endOf","month");break;case"Previous Quarter":s.from_date=O("startOf","quarter"),s.to_date=O("endOf","quarter");break;case"Previous Year":s.from_date=O("startOf","year"),s.to_date=O("endOf","year");break}}async function l(){return y.value==="By Customer"?(D.value=P.value,!0):(D.value=x.value,!0)}async function S(){let f=await M();return window.open(r.value,"_blank"),f}function M(){return y.value==="By Customer"?(D.value=P.value,!0):(D.value=x.value,!0)}function T(){if(!M())return!1;window.open(r.value+"&download=true"),setTimeout(()=>y.value==="By Customer"?(D.value=P.value,!0):(D.value=x.value,!0),200)}return(f,k)=>{const b=i("BaseMultiselect"),G=i("BaseInputGroup"),E=i("BaseDatePicker"),J=i("BaseButton"),A=i("BaseIcon");return q(),N("div",Z,[c("div",ee,[a(G,{label:f.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(b,{modelValue:B.value,"onUpdate:modelValue":[k[0]||(k[0]=W=>B.value=W),t],options:p(u),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",te,[a(G,{label:f.$t("reports.sales.from_date")},{default:m(()=>[a(E,{modelValue:p(s).from_date,"onUpdate:modelValue":k[1]||(k[1]=W=>p(s).from_date=W)},null,8,["modelValue"])]),_:1},8,["label"]),ae,a(G,{label:f.$t("reports.sales.to_date")},{default:m(()=>[a(E,{modelValue:p(s).to_date,"onUpdate:modelValue":k[2]||(k[2]=W=>p(s).to_date=W)},null,8,["modelValue"])]),_:1},8,["label"])]),a(G,{label:f.$t("reports.sales.report_type"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(b,{modelValue:y.value,"onUpdate:modelValue":[k[3]||(k[3]=W=>y.value=W),l],options:n.value,placeholder:f.$t("reports.sales.report_type"),class:"mt-1"},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),a(J,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(M,["prevent"])},{default:m(()=>[I(V(f.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",oe,[c("iframe",{src:p(r),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,re),c("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},[a(A,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(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=c("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"},ce=["src"],me={setup(Q){const v=U(),g=z(),{t:u}=j();v.downloadReport=O;const B=C([{label:u("dateRange.today"),key:"Today"},{label:u("dateRange.this_week"),key:"This Week"},{label:u("dateRange.this_month"),key:"This Month"},{label:u("dateRange.this_quarter"),key:"This Quarter"},{label:u("dateRange.this_year"),key:"This Year"},{label:u("dateRange.previous_week"),key:"Previous Week"},{label:u("dateRange.previous_month"),key:"Previous Month"},{label:u("dateRange.previous_quarter"),key:"Previous Quarter"},{label:u("dateRange.previous_year"),key:"Previous Year"},{label:u("dateRange.custom"),key:"Custom"}]),n=h(B[2]);let y=h(new Date),w=h(null),D=h(null);const e=C({from_date:o().startOf("month").toString(),to_date:o().endOf("month").toString()}),Y=$(()=>w.value),s=$(()=>g.selectedCompany),R=$(()=>`${D.value}?from_date=${o(e.from_date).format("YYYY-MM-DD")}&to_date=${o(e.to_date).format("YYYY-MM-DD")}`);F(()=>{D.value=`/reports/expenses/${s.value.unique_hash}`,w.value=R.value}),L(()=>y,t=>{e.from_date=o(t).startOf("year").toString(),e.to_date=o(t).endOf("year").toString()});function r(t,l){return o()[t](l).format("YYYY-MM-DD")}function d(t,l){return o().subtract(1,l)[t](l).format("YYYY-MM-DD")}function P(){switch(n.value.key){case"Today":e.from_date=o().format("YYYY-MM-DD"),e.to_date=o().format("YYYY-MM-DD");break;case"This Week":e.from_date=r("startOf","isoWeek"),e.to_date=r("endOf","isoWeek");break;case"This Month":e.from_date=r("startOf","month"),e.to_date=r("endOf","month");break;case"This Quarter":e.from_date=r("startOf","quarter"),e.to_date=r("endOf","quarter");break;case"This Year":e.from_date=r("startOf","year"),e.to_date=r("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 x(){let t=await _();return window.open(Y.value,"_blank"),t}function _(){return w.value=R.value,!0}function O(){!_(),window.open(Y.value+"&download=true"),setTimeout(()=>{w.value=R.value},200)}return(t,l)=>{const S=i("BaseMultiselect"),M=i("BaseInputGroup"),T=i("BaseDatePicker"),f=i("BaseButton"),k=i("BaseIcon");return q(),N("div",se,[c("div",le,[a(M,{label:t.$t("reports.sales.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(S,{modelValue:n.value,"onUpdate:modelValue":[l[0]||(l[0]=b=>n.value=b),P],options:p(B),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",de,[a(M,{label:t.$t("reports.expenses.from_date")},{default:m(()=>[a(T,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=b=>p(e).from_date=b)},null,8,["modelValue"])]),_:1},8,["label"]),ue,a(M,{label:t.$t("reports.expenses.to_date")},{default:m(()=>[a(T,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=b=>p(e).to_date=b)},null,8,["modelValue"])]),_:1},8,["label"])]),a(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:m(()=>[I(V(t.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",ie,[c("iframe",{src:p(Y),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,ce),c("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:x},[a(k,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(t.$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"},be=c("div",{class:"hidden w-5 h-0 mx-4 border border-gray-400 border-solid xl:block",style:{"margin-top":"2.5rem"}},null,-1),ye={class:"col-span-8"},ke=["src"],he={setup(Q){const v=U(),g=z(),{t:u}=j();v.downloadReport=O;const B=C([{label:u("dateRange.today"),key:"Today"},{label:u("dateRange.this_week"),key:"This Week"},{label:u("dateRange.this_month"),key:"This Month"},{label:u("dateRange.this_quarter"),key:"This Quarter"},{label:u("dateRange.this_year"),key:"This Year"},{label:u("dateRange.previous_week"),key:"Previous Week"},{label:u("dateRange.previous_month"),key:"Previous Month"},{label:u("dateRange.previous_quarter"),key:"Previous Quarter"},{label:u("dateRange.previous_year"),key:"Previous Year"},{label:u("dateRange.custom"),key:"Custom"}]),n=h(B[2]);let y=h(null),w=h(null),D=h(new Date);const e=C({from_date:o().startOf("month").toString(),to_date:o().endOf("month").toString()}),Y=$(()=>y.value),s=$(()=>g.selectedCompany),R=$(()=>`${w.value}?from_date=${o(e.from_date).format("YYYY-MM-DD")}&to_date=${o(e.to_date).format("YYYY-MM-DD")}`);L(D,t=>{e.from_date=o(t).startOf("year").toString(),e.to_date=o(t).endOf("year").toString()}),F(()=>{w.value=`/reports/profit-loss/${s.value.unique_hash}`,y.value=R.value});function r(t,l){return o()[t](l).format("YYYY-MM-DD")}function d(t,l){return o().subtract(1,l)[t](l).format("YYYY-MM-DD")}function P(){switch(n.value.key){case"Today":e.from_date=o().format("YYYY-MM-DD"),e.to_date=o().format("YYYY-MM-DD");break;case"This Week":e.from_date=r("startOf","isoWeek"),e.to_date=r("endOf","isoWeek");break;case"This Month":e.from_date=r("startOf","month"),e.to_date=r("endOf","month");break;case"This Quarter":e.from_date=r("startOf","quarter"),e.to_date=r("endOf","quarter");break;case"This Year":e.from_date=r("startOf","year"),e.to_date=r("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 x(){let t=await _();return window.open(Y.value,"_blank"),t}function _(){return y.value=R.value,!0}function O(){!_(),window.open(Y.value+"&download=true"),setTimeout(()=>{y.value=R.value},200)}return(t,l)=>{const S=i("BaseMultiselect"),M=i("BaseInputGroup"),T=i("BaseDatePicker"),f=i("BaseButton"),k=i("BaseIcon");return q(),N("div",pe,[c("div",fe,[a(M,{label:t.$t("reports.profit_loss.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(S,{modelValue:n.value,"onUpdate:modelValue":[l[0]||(l[0]=b=>n.value=b),P],options:p(B),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",_e,[a(M,{label:t.$t("reports.profit_loss.from_date")},{default:m(()=>[a(T,{modelValue:p(e).from_date,"onUpdate:modelValue":l[1]||(l[1]=b=>p(e).from_date=b)},null,8,["modelValue"])]),_:1},8,["label"]),be,a(M,{label:t.$t("reports.profit_loss.to_date")},{default:m(()=>[a(T,{modelValue:p(e).to_date,"onUpdate:modelValue":l[2]||(l[2]=b=>p(e).to_date=b)},null,8,["modelValue"])]),_:1},8,["label"])]),a(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:m(()=>[I(V(t.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",ye,[c("iframe",{src:p(Y),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,ke),c("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:x},[a(k,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(t.$t("reports.view_pdf")),1)])])])}}},ve={class:"grid gap-8 md:grid-cols-12 pt-10"},ge={class:"col-span-8 md:col-span-4"},Ye={class:"flex flex-col mt-6 lg:space-x-3 lg:flex-row"},De=c("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"},Me=["src"],Be={setup(Q){const v=U();v.downloadReport=O;const{t:g}=j(),u=C([{label:g("dateRange.today"),key:"Today"},{label:g("dateRange.this_week"),key:"This Week"},{label:g("dateRange.this_month"),key:"This Month"},{label:g("dateRange.this_quarter"),key:"This Quarter"},{label:g("dateRange.this_year"),key:"This Year"},{label:g("dateRange.previous_week"),key:"Previous Week"},{label:g("dateRange.previous_month"),key:"Previous Month"},{label:g("dateRange.previous_quarter"),key:"Previous Quarter"},{label:g("dateRange.previous_year"),key:"Previous Year"},{label:g("dateRange.custom"),key:"Custom"}]),B=h(u[2]),n=C({from_date:o().startOf("month").format("YYYY-MM-DD").toString(),to_date:o().endOf("month").format("YYYY-MM-DD").toString()});let y=h(null);const w=$(()=>y.value),D=z(),e=$(()=>D.selectedCompany);let Y=h(null);F(()=>{Y.value=`/reports/tax-summary/${e.value.unique_hash}`,y.value=s.value});const s=$(()=>`${Y.value}?from_date=${o(n.from_date).format("YYYY-MM-DD")}&to_date=${o(n.to_date).format("YYYY-MM-DD")}`);let R=h(new Date);L(R.value,t=>{n.from_date=o(t).startOf("year").toString(),n.to_date=o(t).endOf("year").toString()});function r(t,l){return o()[t](l).format("YYYY-MM-DD")}function d(t,l){return o().subtract(1,l)[t](l).format("YYYY-MM-DD")}function P(){switch(B.value.key){case"Today":n.from_date=o().format("YYYY-MM-DD"),n.to_date=o().format("YYYY-MM-DD");break;case"This Week":n.from_date=r("startOf","isoWeek"),n.to_date=r("endOf","isoWeek");break;case"This Month":n.from_date=r("startOf","month"),n.to_date=r("endOf","month");break;case"This Quarter":n.from_date=r("startOf","quarter"),n.to_date=r("endOf","quarter");break;case"This Year":n.from_date=r("startOf","year"),n.to_date=r("endOf","year");break;case"Previous Week":n.from_date=d("startOf","isoWeek"),n.to_date=d("endOf","isoWeek");break;case"Previous Month":n.from_date=d("startOf","month"),n.to_date=d("endOf","month");break;case"Previous Quarter":n.from_date=d("startOf","quarter"),n.to_date=d("endOf","quarter");break;case"Previous Year":n.from_date=d("startOf","year"),n.to_date=d("endOf","year");break}}async function x(){let t=await _();return window.open(w.value,"_blank"),t}function _(){return y.value=s.value,!0}function O(){!_(),window.open(w.value+"&download=true"),setTimeout(()=>{y.value=s.value},200)}return(t,l)=>{const S=i("BaseMultiselect"),M=i("BaseInputGroup"),T=i("BaseDatePicker"),f=i("BaseButton"),k=i("BaseIcon");return q(),N("div",ve,[c("div",ge,[a(M,{label:t.$t("reports.taxes.date_range"),class:"col-span-12 md:col-span-8"},{default:m(()=>[a(S,{modelValue:B.value,"onUpdate:modelValue":[l[0]||(l[0]=b=>B.value=b),P],options:p(u),"value-prop":"key","track-by":"key",label:"label",object:""},null,8,["modelValue","options"])]),_:1},8,["label"]),c("div",Ye,[a(M,{label:t.$t("reports.taxes.from_date")},{default:m(()=>[a(T,{modelValue:p(n).from_date,"onUpdate:modelValue":l[1]||(l[1]=b=>p(n).from_date=b)},null,8,["modelValue"])]),_:1},8,["label"]),De,a(M,{label:t.$t("reports.taxes.to_date")},{default:m(()=>[a(T,{modelValue:p(n).to_date,"onUpdate:modelValue":l[2]||(l[2]=b=>p(n).to_date=b)},null,8,["modelValue"])]),_:1},8,["label"])]),a(f,{variant:"primary-outline",class:"content-center hidden mt-0 w-md md:flex md:mt-8",type:"submit",onClick:H(_,["prevent"])},{default:m(()=>[I(V(t.$t("reports.update_report")),1)]),_:1},8,["onClick"])]),c("div",we,[c("iframe",{src:p(w),class:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex"},null,8,Me),c("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:x},[a(k,{name:"DocumentTextIcon",class:"h-5 mr-2"}),c("span",null,V(t.$t("reports.view_pdf")),1)])])])}}},$e={setup(Q){const v=U();function g(){v.downloadReport()}return(u,B)=>{const n=i("BaseBreadcrumbItem"),y=i("BaseBreadcrumb"),w=i("BaseIcon"),D=i("BaseButton"),e=i("BasePageHeader"),Y=i("BaseTab"),s=i("BaseTabGroup"),R=i("BasePage");return q(),K(R,null,{default:m(()=>[a(e,{title:u.$tc("reports.report",2)},{actions:m(()=>[a(D,{variant:"primary",class:"ml-4",onClick:g},{left:m(r=>[a(w,{name:"DownloadIcon",class:X(r.class)},null,8,["class"])]),default:m(()=>[I(" "+V(u.$t("reports.download_pdf")),1)]),_:1})]),default:m(()=>[a(y,null,{default:m(()=>[a(n,{title:u.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),a(n,{title:u.$tc("reports.report",2),to:"/admin/reports",active:""},null,8,["title"])]),_:1})]),_:1},8,["title"]),a(s,{class:"p-2"},{default:m(()=>[a(Y,{title:u.$t("reports.sales.sales"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(ne,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"]),a(Y,{title:u.$t("reports.profit_loss.profit_loss"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(he,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"]),a(Y,{title:u.$t("reports.expenses.expenses"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(me,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"]),a(Y,{title:u.$t("reports.taxes.taxes"),"tab-panel-container":"px-0 py-0"},{default:m(()=>[a(Be,{ref:(r,d)=>{d.report=r}},null,512)]),_:1},8,["title"])]),_:1})]),_:1})}}};export{$e as default}; diff --git a/public/build/assets/Index.8db0c2bf.js b/public/build/assets/Index.4891b5b4.js similarity index 95% rename from public/build/assets/Index.8db0c2bf.js rename to public/build/assets/Index.4891b5b4.js index b5c7a3ba7..022cc5c1c 100644 --- a/public/build/assets/Index.8db0c2bf.js +++ b/public/build/assets/Index.4891b5b4.js @@ -1 +1 @@ -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.d12b5734.js";import ae from"./BaseTable.86db669d.js";import{u as se}from"./global.db0572f0.js";import{u as le}from"./estimate.b80e2b77.js";import{_ as oe}from"./ObservatoryIcon.528a64ab.js";import"./main.6ceeb72d.js";import"./auth.974620c9.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 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.d12b5734.js";import ae from"./BaseTable.d75a6388.js";import{u as se}from"./global.1ac91de5.js";import{u as le}from"./estimate.c2ce8e7a.js";import{_ as oe}from"./ObservatoryIcon.528a64ab.js";import"./main.c7bd6c0e.js";import"./auth.a07e0850.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}; diff --git a/public/build/assets/Index.d02e663e.js b/public/build/assets/Index.52aeabf0.js similarity index 94% rename from public/build/assets/Index.d02e663e.js rename to public/build/assets/Index.52aeabf0.js index dad83d4cf..f8af311de 100644 --- a/public/build/assets/Index.d02e663e.js +++ b/public/build/assets/Index.52aeabf0.js @@ -1 +1 @@ -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.d12b5734.js";import te from"./BaseTable.86db669d.js";import{_ as ae}from"./CapsuleIcon.37dfa933.js";import{x as ne,w as le}from"./main.6ceeb72d.js";import{u as oe}from"./payment.7edbe3ce.js";import{u as se}from"./global.db0572f0.js";import"./auth.974620c9.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}; +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.d12b5734.js";import te from"./BaseTable.d75a6388.js";import{_ as ae}from"./CapsuleIcon.37dfa933.js";import{x as ne,w as le}from"./main.c7bd6c0e.js";import{u as oe}from"./payment.03dd8d5c.js";import{u as se}from"./global.1ac91de5.js";import"./auth.a07e0850.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}; diff --git a/public/build/assets/Index.88d3b048.js b/public/build/assets/Index.54a7d1be.js similarity index 98% rename from public/build/assets/Index.88d3b048.js rename to public/build/assets/Index.54a7d1be.js index 01c0aabc4..50b35a1f4 100644 --- a/public/build/assets/Index.88d3b048.js +++ b/public/build/assets/Index.54a7d1be.js @@ -1 +1 @@ -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.d12b5734.js";import{u as Q}from"./expense.c4c3f409.js";import{u as $e}from"./category.1184b061.js";import{j as Y,u as Fe,e as ee,g as v,b as Ve}from"./main.6ceeb72d.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}; +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.d12b5734.js";import{u as Q}from"./expense.190eb9e9.js";import{u as $e}from"./category.970a47d6.js";import{j as Y,u as Fe,e as ee,g as v,b as Ve}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/Index.929bd0c6.js b/public/build/assets/Index.60a6d69a.js similarity index 86% rename from public/build/assets/Index.929bd0c6.js rename to public/build/assets/Index.60a6d69a.js index 44d7004a9..59107c3f2 100644 --- a/public/build/assets/Index.929bd0c6.js +++ b/public/build/assets/Index.60a6d69a.js @@ -1 +1 @@ -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 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.d12b5734.js";import{b as me,j as ie,l as de,e as pe,g as C}from"./main.6ceeb72d.js";import{_ as _e}from"./CustomerIndexDropdown.49914d07.js";import{_ as fe}from"./AstronautIcon.82b952e2.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=ie(),u=de(),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(()=>[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",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})=>[i("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})=>[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{B as C,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 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.d12b5734.js";import{b as me,j as ie,l as de,e as pe,g as b}from"./main.c7bd6c0e.js";import{_ as _e}from"./CustomerIndexDropdown.78bcff92.js";import{_ as fe}from"./AstronautIcon.82b952e2.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"},be={class:"flex text-sm font-medium cursor-pointer select-none text-primary-400"},Ce={class:"absolute z-10 items-center left-6 top-2.5 select-none"},ge={class:"relative block"},Se={setup(ve){me();const W=ie(),u=de(),k=pe();let f=C(null),h=C(!1),x=C(!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([b.DELETE_CUSTOMER,b.EDIT_CUSTOMER,b.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=C(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(b).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(b).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",be,[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",Ce,[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",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})=>[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}; diff --git a/public/build/assets/Index.db0325b2.js b/public/build/assets/Index.8e2973a2.js similarity index 97% rename from public/build/assets/Index.db0325b2.js rename to public/build/assets/Index.8e2973a2.js index d9d136155..100ecc449 100644 --- a/public/build/assets/Index.db0325b2.js +++ b/public/build/assets/Index.8e2973a2.js @@ -1 +1 @@ -import{J as ve,ah as pe,B as h,aN as fe,a0 as be,k as w,aR as ge,aS as Be,r as i,o as b,l as g,w as l,f as t,q as V,ag as D,u as o,m as y,i as m,t as _,j as F,V as W,h as p,x as Ie}from"./vendor.d12b5734.js";import{i as he,j as ye,u as ke,e as Ee,g as f}from"./main.6ceeb72d.js";import{_ as Ce}from"./MoonwalkerIcon.b55d3604.js";import{_ as Ve}from"./InvoiceIndexDropdown.78aec816.js";import{_ as De}from"./SendInvoiceModal.224b5c76.js";import"./mail-driver.c62711d2.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),$e={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"},Pe={class:"absolute items-center left-6 top-2.5 select-none"},Ne={class:"relative block"},we={class:"flex justify-between"},Me={setup(Fe){const c=he(),G=ye();ke();const{t:n}=ve();pe("$utils");const k=h(null),B=h(!1),H=h([{label:"Status",options:["DRAFT","DUE","SENT","VIEWED","COMPLETED"]},{label:"Paid Status",options:["UNPAID","PAID","PARTIALLY_PAID"]},,]),T=h(!0),u=h("general.draft");fe();const E=Ee();let s=be({customer_id:"",status:"",from_date:"",to_date:"",invoice_number:""});const U=w(()=>!c.invoiceTotalCount&&!T.value),$=w({get:()=>c.selectedInvoices,set:a=>c.selectInvoice(a)}),q=w(()=>[{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,()=>{K()},{debounce:500}),Be(()=>{c.selectAllField&&c.selectAllInvoices()});function z(){return E.hasAbilities([f.DELETE_INVOICE,f.EDIT_INVOICE,f.VIEW_INVOICE,f.SEND_INVOICE])}async function Y(a,r){s.status="",A()}function A(){k.value&&k.value.refresh()}async function J({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 X(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 K(){c.$patch(a=>{a.selectedInvoices=[],a.selectAllField=!1}),A()}function R(){s.customer_id="",s.status="",s.from_date="",s.to_date="",s.invoice_number="",u.value=n("general.all")}async function Q(){G.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&&(A(),c.$patch(v=>{v.selectedInvoices=[],v.selectAllField=!1}))})})}function Z(){B.value&&R(),B.value=!B.value}function ee(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;default:u.value=n("general.all");break}}return(a,r)=>{const v=i("BaseBreadcrumbItem"),S=i("BaseBreadcrumb"),d=i("BaseIcon"),P=i("BaseButton"),O=i("router-link"),te=i("BasePageHeader"),ae=i("BaseCustomerSelectInput"),I=i("BaseInputGroup"),le=i("BaseMultiselect"),j=i("BaseDatePicker"),se=i("BaseInput"),oe=i("BaseFilterWrapper"),ne=i("BaseEmptyPlaceholder"),C=i("BaseTab"),ie=i("BaseTabGroup"),re=i("BaseDropdownItem"),ce=i("BaseDropdown"),x=i("BaseCheckbox"),ue=i("BaseText"),L=i("BaseFormatMoney"),de=i("BaseInvoiceStatusBadge"),M=i("BasePaidStatusBadge"),me=i("BaseTable"),_e=i("BasePage");return b(),g(_e,null,{default:l(()=>[t(De),t(te,{title:a.$t("invoices.title")},{actions:l(()=>[V(t(P,{variant:"primary-outline",onClick:Z},{right:l(e=>[B.value?(b(),g(d,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(b(),g(d,{key:0,name:"FilterIcon",class:y(e.class)},null,8,["class"]))]),default:l(()=>[m(_(a.$t("general.filter"))+" ",1)]),_:1},512),[[D,o(c).invoiceTotalCount]]),o(E).hasAbilities(o(f).CREATE_INVOICE)?(b(),g(O,{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})):F("",!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"]),V(t(oe,{"row-on-xl":!0,onClear:R},{default:l(()=>[t(I,{label:a.$tc("customers.customer",1)},{default:l(()=>[t(ae,{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(I,{label:a.$t("invoices.status")},{default:l(()=>[t(le,{modelValue:o(s).status,"onUpdate:modelValue":[r[1]||(r[1]=e=>o(s).status=e),ee],groups:!0,options:H.value,searchable:"",placeholder:a.$t("general.select_a_status"),onRemove:r[2]||(r[2]=e=>Y())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(I,{label:a.$t("general.from")},{default:l(()=>[t(j,{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(I,{label:a.$t("general.to"),class:"mt-2"},{default:l(()=>[t(j,{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(I,{label:a.$t("invoices.invoice_number")},{default:l(()=>[t(se,{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),[[D,B.value]]),V(t(ne,{title:a.$t("invoices.no_invoices"),description:a.$t("invoices.list_of_invoices")},W({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"]),[[D,o(U)]]),V(p("div",$e,[p("div",Ae,[t(ie,{class:"-mb-5",onChange:X},{default:l(()=>[t(C,{title:a.$t("general.all"),filter:""},null,8,["title"]),t(C,{title:a.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),t(C,{title:a.$t("general.sent"),filter:"SENT"},null,8,["title"]),t(C,{title:a.$t("general.due"),filter:"DUE"},null,8,["title"])]),_:1}),o(c).selectedInvoices.length&&o(E).hasAbilities(o(f).DELETE_INVOICE)?(b(),g(ce,{key:0,class:"absolute float-right"},{activator:l(()=>[p("span",Se,[m(_(a.$t("general.actions"))+" ",1),t(d,{name:"ChevronDownIcon"})])]),default:l(()=>[t(re,{onClick:Q},{default:l(()=>[t(d,{name:"TrashIcon",class:"mr-3 text-gray-600"}),m(" "+_(a.$t("general.delete")),1)]),_:1})]),_:1})):F("",!0)]),t(me,{ref:(e,N)=>{N.table=e,k.value=e},data:J,columns:o(q),"placeholder-count":o(c).invoiceTotalCount>=20?10:5,class:"mt-10"},W({header:l(()=>[p("div",Pe,[t(x,{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",Ne,[t(x,{id:e.id,modelValue:o($),"onUpdate:modelValue":r[8]||(r[8]=N=>Ie($)?$.value=N:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-name":l(({row:e})=>[t(ue,{text:e.data.customer.name,length:30},null,8,["text"])]),"cell-invoice_number":l(({row:e})=>[t(O,{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(L,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":l(({row:e})=>[t(de,{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",we,[t(L,{amount:e.data.due_amount,currency:e.data.currency},null,8,["amount","currency"]),e.data.overdue?(b(),g(M,{key:0,status:"OVERDUE",class:"px-1 py-0.5 ml-2"},{default:l(()=>[m(_(a.$t("invoices.overdue")),1)]),_:1})):F("",!0),t(M,{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},[z()?{name:"cell-actions",fn:l(({row:e})=>[t(Ve,{row:e.data,table:k.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[D,!o(U)]])]),_:1})}}};export{Me as default}; +import{J as ve,ah as pe,B as h,aN as fe,a0 as be,k as w,aR as ge,aS as Be,r as i,o as b,l as g,w as l,f as t,q as V,ag as D,u as o,m as y,i as m,t as _,j as F,V as W,h as p,x as Ie}from"./vendor.d12b5734.js";import{i as he,j as ye,u as ke,e as Ee,g as f}from"./main.c7bd6c0e.js";import{_ as Ce}from"./MoonwalkerIcon.b55d3604.js";import{_ as Ve}from"./InvoiceIndexDropdown.174ed624.js";import{_ as De}from"./SendInvoiceModal.df7ecbe5.js";import"./mail-driver.b57a1b96.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),$e={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"},Pe={class:"absolute items-center left-6 top-2.5 select-none"},Ne={class:"relative block"},we={class:"flex justify-between"},Me={setup(Fe){const c=he(),G=ye();ke();const{t:n}=ve();pe("$utils");const k=h(null),B=h(!1),H=h([{label:"Status",options:["DRAFT","DUE","SENT","VIEWED","COMPLETED"]},{label:"Paid Status",options:["UNPAID","PAID","PARTIALLY_PAID"]},,]),T=h(!0),u=h("general.draft");fe();const E=Ee();let s=be({customer_id:"",status:"",from_date:"",to_date:"",invoice_number:""});const U=w(()=>!c.invoiceTotalCount&&!T.value),$=w({get:()=>c.selectedInvoices,set:a=>c.selectInvoice(a)}),q=w(()=>[{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,()=>{K()},{debounce:500}),Be(()=>{c.selectAllField&&c.selectAllInvoices()});function z(){return E.hasAbilities([f.DELETE_INVOICE,f.EDIT_INVOICE,f.VIEW_INVOICE,f.SEND_INVOICE])}async function Y(a,r){s.status="",A()}function A(){k.value&&k.value.refresh()}async function J({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 X(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 K(){c.$patch(a=>{a.selectedInvoices=[],a.selectAllField=!1}),A()}function R(){s.customer_id="",s.status="",s.from_date="",s.to_date="",s.invoice_number="",u.value=n("general.all")}async function Q(){G.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&&(A(),c.$patch(v=>{v.selectedInvoices=[],v.selectAllField=!1}))})})}function Z(){B.value&&R(),B.value=!B.value}function ee(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;default:u.value=n("general.all");break}}return(a,r)=>{const v=i("BaseBreadcrumbItem"),S=i("BaseBreadcrumb"),d=i("BaseIcon"),P=i("BaseButton"),O=i("router-link"),te=i("BasePageHeader"),ae=i("BaseCustomerSelectInput"),I=i("BaseInputGroup"),le=i("BaseMultiselect"),j=i("BaseDatePicker"),se=i("BaseInput"),oe=i("BaseFilterWrapper"),ne=i("BaseEmptyPlaceholder"),C=i("BaseTab"),ie=i("BaseTabGroup"),re=i("BaseDropdownItem"),ce=i("BaseDropdown"),x=i("BaseCheckbox"),ue=i("BaseText"),L=i("BaseFormatMoney"),de=i("BaseInvoiceStatusBadge"),M=i("BasePaidStatusBadge"),me=i("BaseTable"),_e=i("BasePage");return b(),g(_e,null,{default:l(()=>[t(De),t(te,{title:a.$t("invoices.title")},{actions:l(()=>[V(t(P,{variant:"primary-outline",onClick:Z},{right:l(e=>[B.value?(b(),g(d,{key:1,name:"XIcon",class:y(e.class)},null,8,["class"])):(b(),g(d,{key:0,name:"FilterIcon",class:y(e.class)},null,8,["class"]))]),default:l(()=>[m(_(a.$t("general.filter"))+" ",1)]),_:1},512),[[D,o(c).invoiceTotalCount]]),o(E).hasAbilities(o(f).CREATE_INVOICE)?(b(),g(O,{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})):F("",!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"]),V(t(oe,{"row-on-xl":!0,onClear:R},{default:l(()=>[t(I,{label:a.$tc("customers.customer",1)},{default:l(()=>[t(ae,{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(I,{label:a.$t("invoices.status")},{default:l(()=>[t(le,{modelValue:o(s).status,"onUpdate:modelValue":[r[1]||(r[1]=e=>o(s).status=e),ee],groups:!0,options:H.value,searchable:"",placeholder:a.$t("general.select_a_status"),onRemove:r[2]||(r[2]=e=>Y())},null,8,["modelValue","options","placeholder"])]),_:1},8,["label"]),t(I,{label:a.$t("general.from")},{default:l(()=>[t(j,{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(I,{label:a.$t("general.to"),class:"mt-2"},{default:l(()=>[t(j,{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(I,{label:a.$t("invoices.invoice_number")},{default:l(()=>[t(se,{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),[[D,B.value]]),V(t(ne,{title:a.$t("invoices.no_invoices"),description:a.$t("invoices.list_of_invoices")},W({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"]),[[D,o(U)]]),V(p("div",$e,[p("div",Ae,[t(ie,{class:"-mb-5",onChange:X},{default:l(()=>[t(C,{title:a.$t("general.all"),filter:""},null,8,["title"]),t(C,{title:a.$t("general.draft"),filter:"DRAFT"},null,8,["title"]),t(C,{title:a.$t("general.sent"),filter:"SENT"},null,8,["title"]),t(C,{title:a.$t("general.due"),filter:"DUE"},null,8,["title"])]),_:1}),o(c).selectedInvoices.length&&o(E).hasAbilities(o(f).DELETE_INVOICE)?(b(),g(ce,{key:0,class:"absolute float-right"},{activator:l(()=>[p("span",Se,[m(_(a.$t("general.actions"))+" ",1),t(d,{name:"ChevronDownIcon"})])]),default:l(()=>[t(re,{onClick:Q},{default:l(()=>[t(d,{name:"TrashIcon",class:"mr-3 text-gray-600"}),m(" "+_(a.$t("general.delete")),1)]),_:1})]),_:1})):F("",!0)]),t(me,{ref:(e,N)=>{N.table=e,k.value=e},data:J,columns:o(q),"placeholder-count":o(c).invoiceTotalCount>=20?10:5,class:"mt-10"},W({header:l(()=>[p("div",Pe,[t(x,{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",Ne,[t(x,{id:e.id,modelValue:o($),"onUpdate:modelValue":r[8]||(r[8]=N=>Ie($)?$.value=N:null),value:e.data.id},null,8,["id","modelValue","value"])])]),"cell-name":l(({row:e})=>[t(ue,{text:e.data.customer.name,length:30},null,8,["text"])]),"cell-invoice_number":l(({row:e})=>[t(O,{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(L,{amount:e.data.total,currency:e.data.customer.currency},null,8,["amount","currency"])]),"cell-status":l(({row:e})=>[t(de,{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",we,[t(L,{amount:e.data.due_amount,currency:e.data.currency},null,8,["amount","currency"]),e.data.overdue?(b(),g(M,{key:0,status:"OVERDUE",class:"px-1 py-0.5 ml-2"},{default:l(()=>[m(_(a.$t("invoices.overdue")),1)]),_:1})):F("",!0),t(M,{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},[z()?{name:"cell-actions",fn:l(({row:e})=>[t(Ve,{row:e.data,table:k.value},null,8,["row","table"])])}:void 0]),1032,["columns","placeholder-count"])],512),[[D,!o(U)]])]),_:1})}}};export{Me as default}; diff --git a/public/build/assets/Index.d8b72a81.js b/public/build/assets/Index.a564d566.js similarity index 99% rename from public/build/assets/Index.d8b72a81.js rename to public/build/assets/Index.a564d566.js index b9d7e85ce..bc11fa3fd 100644 --- a/public/build/assets/Index.d8b72a81.js +++ b/public/build/assets/Index.a564d566.js @@ -1 +1 @@ -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.d12b5734.js";import{j as G,u as W,p as O,e as q,g as L,b as _e}from"./main.6ceeb72d.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 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.d12b5734.js";import{j as G,u as W,p as O,e as q,g as L,b as _e}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/Index.b977b7ef.js b/public/build/assets/Index.d028f200.js similarity index 99% rename from public/build/assets/Index.b977b7ef.js rename to public/build/assets/Index.d028f200.js index 2d3493c15..df54fa578 100644 --- a/public/build/assets/Index.b977b7ef.js +++ b/public/build/assets/Index.d028f200.js @@ -1 +1 @@ -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.d12b5734.js";import{_ as Z,r as ee,d as te}from"./main.6ceeb72d.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{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.d12b5734.js";import{_ as Z,r as ee,d as te}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/Index.648f01b0.js b/public/build/assets/Index.e94df0e9.js similarity index 87% rename from public/build/assets/Index.648f01b0.js rename to public/build/assets/Index.e94df0e9.js index df34d02ec..7be8699e2 100644 --- a/public/build/assets/Index.648f01b0.js +++ b/public/build/assets/Index.e94df0e9.js @@ -1 +1 @@ -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.d12b5734.js";import{t as he,l as ye,j as Ce,u as Re,e as ke,g as h}from"./main.6ceeb72d.js";import{_ as Ve}from"./SendInvoiceModal.224b5c76.js";import{_ as $e}from"./RecurringInvoiceIndexDropdown.9324dca1.js";import{_ as Ee}from"./MoonwalkerIcon.b55d3604.js";import"./mail-driver.c62711d2.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:"",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.all"),filter:"ALL"},null,8,["title"]),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"])]),_: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}; +import{B as b,J as ve,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.d12b5734.js";import{t as he,l as ye,j as Ce,u as Re,e as ke,g as h}from"./main.c7bd6c0e.js";import{_ as Ve}from"./SendInvoiceModal.df7ecbe5.js";import{_ as $e}from"./RecurringInvoiceIndexDropdown.b5cf79fe.js";import{_ as Ee}from"./MoonwalkerIcon.b55d3604.js";import"./mail-driver.b57a1b96.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}=ve(),g=b(!1),F=b(["ACTIVE","ON_HOLD","ALL"]),N=b(!0),f=b("recurring-invoices.all");pe();let l=ge({customer_id:"",status:"",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 v={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(v);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(f.value==e.title)return!0;switch(f.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="",f.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(v=>{v.selectedRecurringInvoices=[],v.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":f.value=i("recurring_invoices.active");break;case"ON_HOLD":f.value=i("recurring_invoices.on_hold");break;case"ALL":f.value=i("recurring_invoices.all");break}}return(e,n)=>{const u=r("BaseBreadcrumbItem"),v=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"),fe=r("BasePage");return I(),B(fe,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(v,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.all"),filter:"ALL"},null,8,["title"]),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"])]),_: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}; diff --git a/public/build/assets/Index.55f33eaf.js b/public/build/assets/Index.fcc3038d.js similarity index 98% rename from public/build/assets/Index.55f33eaf.js rename to public/build/assets/Index.fcc3038d.js index 4d27034cc..a60c59546 100644 --- a/public/build/assets/Index.55f33eaf.js +++ b/public/build/assets/Index.fcc3038d.js @@ -1 +1 @@ -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.d12b5734.js";import{u as O}from"./users.2ff38459.js";import{j as W,u as q,e as J}from"./main.6ceeb72d.js";import{_ as pe}from"./AstronautIcon.82b952e2.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 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.d12b5734.js";import{u as O}from"./users.7c501231.js";import{j as W,u as q,e as J}from"./main.c7bd6c0e.js";import{_ as pe}from"./AstronautIcon.82b952e2.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}; diff --git a/public/build/assets/Installation.d8337338.js b/public/build/assets/Installation.939274ae.js similarity index 99% rename from public/build/assets/Installation.d8337338.js rename to public/build/assets/Installation.939274ae.js index e59f2a5c9..dfbeeff7a 100644 --- a/public/build/assets/Installation.d8337338.js +++ b/public/build/assets/Installation.939274ae.js @@ -1 +1 @@ -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.d12b5734.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.6ceeb72d.js";import{u as X}from"./mail-driver.c62711d2.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(g=>{r(g)}).catch(g=>{R(g),i(g)})})},fetchInstallationStep(){return new Promise((r,i)=>{L.get("/api/v1/installation/wizard-step").then(g=>{r(g)}).catch(g=>{R(g),i(g)})})},addInstallationStep(r){return new Promise((i,g)=>{L.post("/api/v1/installation/wizard-step",r).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},fetchInstallationPermissions(){return new Promise((r,i)=>{L.get("/api/v1/installation/permissions").then(g=>{r(g)}).catch(g=>{R(g),i(g)})})},fetchInstallationDatabase(r){return new Promise((i,g)=>{L.get("/api/v1/installation/database/config",{params:r}).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},addInstallationDatabase(r){return new Promise((i,g)=>{L.post("/api/v1/installation/database/config",r).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},addInstallationFinish(){return new Promise((r,i)=>{L.post("/api/v1/installation/finish").then(g=>{r(g)}).catch(g=>{R(g),i(g)})})},setInstallationDomain(r){return new Promise((i,g)=>{L.put("/api/v1/installation/set-domain",r).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},installationLogin(){return new Promise((r,i)=>{L.get("/sanctum/csrf-cookie").then(g=>{g&&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(g=>{r(g)}).catch(g=>{i(g)})})}}})()},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 g=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,p;i.value=!0;const m=await g.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=(p=m==null?void 0:m.data)==null?void 0:p.phpSupportInfo)}function l(){i.value=!0,q("next"),i.value=!1}return(m,s)=>{const h=b("BaseIcon"),a=b("BaseButton"),p=b("BaseWizardStep");return B(),F(p,{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:g,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:g("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 p=b("BaseContentPlaceholdersText"),$=b("BaseContentPlaceholdersBox"),C=b("BaseContentPlaceholders"),c=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(p,{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(c,{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(),g=ee("utils"),o=A();Q(()=>{for(const p in f.value)d.configData.hasOwnProperty(p)&&(f.value[p]=d.configData[p])});const f=z(()=>o.currentDataBaseData),l=p=>g.checkValidUrl(p),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(p,$)=>{const C=b("BaseInput"),c=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Je,[t(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(p.$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(),g=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const p in f.value)d.configData.hasOwnProperty(p)&&(f.value[p]=d.configData[p])});const l=p=>g.checkValidUrl(p),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(p,$)=>{const C=b("BaseInput"),c=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Qe,[t(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{"content-loading":n.isFetchingInitialData,label:p.$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(c,{label:p.$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(p.$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(),g=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const p in f.value)d.configData.hasOwnProperty(p)&&(f.value[p]=d.configData[p])});const l=p=>g.checkValidUrl(p),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(p,$)=>{const C=b("BaseInput"),c=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",ea,[t(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(p.$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(),g=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),g.showNotification({type:"success",message:i("wizard.success."+h.data.success)});return}else if(h.data.error){if(h.data.requirement){g.showNotification({type:"error",message:i("wizard.errors."+h.data.error,{version:h.data.requirement.minimum,name:s.value.database_connection})});return}g.showNotification({type:"error",message:i("wizard.errors."+h.data.error)})}else h.data.errors?g.showNotification({type:"error",message:h.data.errors[0]}):h.data.error_message&&g.showNotification({type:"error",message:h.data.error_message})}catch{g.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,g){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(),g=ee("utils"),o=a=>g.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,p)=>{const $=b("BaseInput"),C=b("BaseInputGroup"),c=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":p[0]||(p[0]=v=>e(d).app_domain=v),invalid:e(s).app_domain.$error,type:"text",onInput:p[1]||(p[1]=v=>e(s).app_domain.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),ra,la,t(c,{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(),g=X(),o=z(()=>g.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(()=>g));async function s(){return m.value.$touch(),m.value.$invalid||q("submit-data",g.smtpConfig),!1}function h(){m.value.smtpConfig.mail_driver.$touch(),q("on-change-driver",g.smtpConfig.mail_driver)}return(a,p)=>{const $=b("BaseMultiselect"),C=b("BaseInputGroup"),c=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":[p[0]||(p[0]=w=>e(o).mail_driver=w),h],options:e(g).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(c,{modelValue:e(o).mail_host,"onUpdate:modelValue":p[1]||(p[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:p[2]||(p[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(c,{modelValue:e(o).mail_username,"onUpdate:modelValue":p[3]||(p[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(c,{modelValue:e(o).mail_password,"onUpdate:modelValue":p[6]||(p[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:p[4]||(p[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:p[5]||(p[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(c,{modelValue:e(o).mail_port,"onUpdate:modelValue":p[7]||(p[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:p[8]||(p[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":p[9]||(p[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:p[10]||(p[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(c,{modelValue:e(o).from_mail,"onUpdate:modelValue":p[11]||(p[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:p[12]||(p[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(c,{modelValue:e(o).from_name,"onUpdate:modelValue":p[13]||(p[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:p[14]||(p[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(),g=z(()=>r.mailgunConfig),o=z(()=>d.value?"text":"password");g.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 p=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),c=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(p,{modelValue:e(g).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(g).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(g).mail_mailgun_domain,"onUpdate:modelValue":a[1]||(a[1]=v=>e(g).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(g).mail_mailgun_secret,"onUpdate:modelValue":a[5]||(a[5]=v=>e(g).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(c,{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(c,{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(g).mail_mailgun_endpoint,"onUpdate:modelValue":a[7]||(a[7]=v=>e(g).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(g).from_mail,"onUpdate:modelValue":a[9]||(a[9]=v=>e(g).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(g).from_name,"onUpdate:modelValue":a[11]||(a[11]=v=>e(g).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(c,{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 g=X(),o=z(()=>g.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(()=>g));async function m(){return l.value.$touch(),l.value.$invalid||q("submit-data",g.sesConfig),!1}function s(){l.value.sesConfig.mail_driver.$touch(),q("on-change-driver",g.sesConfig.mail_driver)}return(h,a)=>{const p=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),c=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(p,{modelValue:e(o).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(o).mail_driver=v),s],options:e(g).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(p,{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(c,{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(c,{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(c,{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 g=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(g,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"),p=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]=c=>e(i).mail_driver=c),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(p,{modelValue:e(i).from_name,"onUpdate:modelValue":s[1]||(s[1]=c=>e(i).from_name=c),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"name",onInput:s[2]||(s[2]=c=>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(p,{modelValue:e(i).from_mail,"onUpdate:modelValue":s[3]||(s[3]=c=>e(i).from_mail=c),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",onInput:s[4]||(s[4]=c=>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(c=>[n.isSaving?E("",!0):(B(),F($,{key:0,name:"SaveIcon",class:O(c.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 g(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:g,next:f}}};function Fa(n,q,d,r,i,g){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 g=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 p(c,_){o.value=_}function $(){o.value=null}async function C(){if(a.value.userForm.$touch(),a.value.userForm.$invalid)return!0;d.value=!0;let c=await f.updateCurrentUser(s.value);if(d.value=!1,c.data.data){if(o.value){let v=new FormData;v.append("admin_avatar",o.value),await f.uploadAvatar(v)}const _=c.data.data.companies[0];await l.setSelectedCompany(_),q("next",6)}}return(c,_)=>{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:c.$t("wizard.account_info"),description:c.$t("wizard.account_info_desc")},{default:u(()=>[V("form",{action:"",onSubmit:T(C,["prevent"])},[V("div",ka,[t(w,{label:c.$tc("settings.account_settings.profile_picture")},{default:u(()=>[t(v,{avatar:!0,"preview-image":e(g),onChange:p,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Ua,[t(w,{label:c.$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:c.$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:c.$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:c.$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(c.$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 g=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()=>{var c;d.value=!0,await s.fetchCountries(),d.value=!1,l.address.country_id=(c=s.countries.find(_=>_.code=="US"))==null?void 0:c.id});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 p(c,_,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(c,_)=>{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:c.$t("wizard.company_info"),description:c.$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:c.$tc("settings.company_info.company_logo")},{default:u(()=>[t(v,{base64:"","preview-image":e(g),onChange:p,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Oa,[t(w,{label:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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(c.$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:g,t:o}=G(),f=pe();r.value=!0,j([{title:g("settings.customization.invoices.allow"),value:"allow"},{title:g("settings.customization.invoices.disable_on_invoice_partial_paid"),value:"disable_on_invoice_partial_paid"},{title:g("settings.customization.invoices.disable_on_invoice_paid"),value:"disable_on_invoice_paid"},{title:g("settings.customization.invoices.disable_on_invoice_sent"),value:"disable_on_invoice_sent"}]);const l=fe(),m=_e(),s=te(),h=ve(),a=de();let p={key:"fiscal_years"},$={key:"languages"};r.value=!0,Promise.all([m.fetchCurrencies(),m.fetchDateFormats(),m.fetchTimeZones(),m.fetchCountries(),m.fetchConfig(p),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)}}})),c=W(C,{currentPreferences:i});async function _(){if(c.value.currentPreferences.$touch(),c.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(c).currentPreferences.currency.$error&&e(c).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(c).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(c).currentPreferences.language.$error&&e(c).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(c).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(c).currentPreferences.carbon_date_format.$error&&e(c).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(c).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(c).currentPreferences.time_zone.$error&&e(c).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(c).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(c).currentPreferences.fiscal_year.$error&&e(c).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(c).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 g(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 g(l))return!1;q.value++,q.value<=8&&(n.value="step_"+q.value)}function f(l){}return{stepComponent:n,currentStepNumber:q,onStepChange:o,saveStepProgress:g,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,g){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 $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.d12b5734.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.c7bd6c0e.js";import{u as X}from"./mail-driver.b57a1b96.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(g=>{r(g)}).catch(g=>{R(g),i(g)})})},fetchInstallationStep(){return new Promise((r,i)=>{L.get("/api/v1/installation/wizard-step").then(g=>{r(g)}).catch(g=>{R(g),i(g)})})},addInstallationStep(r){return new Promise((i,g)=>{L.post("/api/v1/installation/wizard-step",r).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},fetchInstallationPermissions(){return new Promise((r,i)=>{L.get("/api/v1/installation/permissions").then(g=>{r(g)}).catch(g=>{R(g),i(g)})})},fetchInstallationDatabase(r){return new Promise((i,g)=>{L.get("/api/v1/installation/database/config",{params:r}).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},addInstallationDatabase(r){return new Promise((i,g)=>{L.post("/api/v1/installation/database/config",r).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},addInstallationFinish(){return new Promise((r,i)=>{L.post("/api/v1/installation/finish").then(g=>{r(g)}).catch(g=>{R(g),i(g)})})},setInstallationDomain(r){return new Promise((i,g)=>{L.put("/api/v1/installation/set-domain",r).then(o=>{i(o)}).catch(o=>{R(o),g(o)})})},installationLogin(){return new Promise((r,i)=>{L.get("/sanctum/csrf-cookie").then(g=>{g&&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(g=>{r(g)}).catch(g=>{i(g)})})}}})()},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 g=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,p;i.value=!0;const m=await g.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=(p=m==null?void 0:m.data)==null?void 0:p.phpSupportInfo)}function l(){i.value=!0,q("next"),i.value=!1}return(m,s)=>{const h=b("BaseIcon"),a=b("BaseButton"),p=b("BaseWizardStep");return B(),F(p,{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:g,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:g("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 p=b("BaseContentPlaceholdersText"),$=b("BaseContentPlaceholdersBox"),C=b("BaseContentPlaceholders"),c=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(p,{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(c,{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(),g=ee("utils"),o=A();Q(()=>{for(const p in f.value)d.configData.hasOwnProperty(p)&&(f.value[p]=d.configData[p])});const f=z(()=>o.currentDataBaseData),l=p=>g.checkValidUrl(p),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(p,$)=>{const C=b("BaseInput"),c=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Je,[t(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(p.$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(),g=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const p in f.value)d.configData.hasOwnProperty(p)&&(f.value[p]=d.configData[p])});const l=p=>g.checkValidUrl(p),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(p,$)=>{const C=b("BaseInput"),c=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",Qe,[t(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(c,{"content-loading":n.isFetchingInitialData,label:p.$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(c,{label:p.$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(p.$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(),g=ee("utils"),o=A(),f=z(()=>o.currentDataBaseData);Q(()=>{for(const p in f.value)d.configData.hasOwnProperty(p)&&(f.value[p]=d.configData[p])});const l=p=>g.checkValidUrl(p),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(p,$)=>{const C=b("BaseInput"),c=b("BaseInputGroup"),_=b("BaseMultiselect"),v=b("BaseIcon"),w=b("BaseButton");return B(),k("form",{action:"",onSubmit:T(h,["prevent"])},[V("div",ea,[t(c,{label:p.$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(c,{label:p.$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(c,{label:p.$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(p.$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(),g=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),g.showNotification({type:"success",message:i("wizard.success."+h.data.success)});return}else if(h.data.error){if(h.data.requirement){g.showNotification({type:"error",message:i("wizard.errors."+h.data.error,{version:h.data.requirement.minimum,name:s.value.database_connection})});return}g.showNotification({type:"error",message:i("wizard.errors."+h.data.error)})}else h.data.errors?g.showNotification({type:"error",message:h.data.errors[0]}):h.data.error_message&&g.showNotification({type:"error",message:h.data.error_message})}catch{g.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,g){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(),g=ee("utils"),o=a=>g.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,p)=>{const $=b("BaseInput"),C=b("BaseInputGroup"),c=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":p[0]||(p[0]=v=>e(d).app_domain=v),invalid:e(s).app_domain.$error,type:"text",onInput:p[1]||(p[1]=v=>e(s).app_domain.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),ra,la,t(c,{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(),g=X(),o=z(()=>g.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(()=>g));async function s(){return m.value.$touch(),m.value.$invalid||q("submit-data",g.smtpConfig),!1}function h(){m.value.smtpConfig.mail_driver.$touch(),q("on-change-driver",g.smtpConfig.mail_driver)}return(a,p)=>{const $=b("BaseMultiselect"),C=b("BaseInputGroup"),c=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":[p[0]||(p[0]=w=>e(o).mail_driver=w),h],options:e(g).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(c,{modelValue:e(o).mail_host,"onUpdate:modelValue":p[1]||(p[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:p[2]||(p[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(c,{modelValue:e(o).mail_username,"onUpdate:modelValue":p[3]||(p[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(c,{modelValue:e(o).mail_password,"onUpdate:modelValue":p[6]||(p[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:p[4]||(p[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:p[5]||(p[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(c,{modelValue:e(o).mail_port,"onUpdate:modelValue":p[7]||(p[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:p[8]||(p[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":p[9]||(p[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:p[10]||(p[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(c,{modelValue:e(o).from_mail,"onUpdate:modelValue":p[11]||(p[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:p[12]||(p[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(c,{modelValue:e(o).from_name,"onUpdate:modelValue":p[13]||(p[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:p[14]||(p[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(),g=z(()=>r.mailgunConfig),o=z(()=>d.value?"text":"password");g.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 p=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),c=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(p,{modelValue:e(g).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(g).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(g).mail_mailgun_domain,"onUpdate:modelValue":a[1]||(a[1]=v=>e(g).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(g).mail_mailgun_secret,"onUpdate:modelValue":a[5]||(a[5]=v=>e(g).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(c,{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(c,{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(g).mail_mailgun_endpoint,"onUpdate:modelValue":a[7]||(a[7]=v=>e(g).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(g).from_mail,"onUpdate:modelValue":a[9]||(a[9]=v=>e(g).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(g).from_name,"onUpdate:modelValue":a[11]||(a[11]=v=>e(g).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(c,{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 g=X(),o=z(()=>g.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(()=>g));async function m(){return l.value.$touch(),l.value.$invalid||q("submit-data",g.sesConfig),!1}function s(){l.value.sesConfig.mail_driver.$touch(),q("on-change-driver",g.sesConfig.mail_driver)}return(h,a)=>{const p=b("BaseMultiselect"),$=b("BaseInputGroup"),C=b("BaseInput"),c=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(p,{modelValue:e(o).mail_driver,"onUpdate:modelValue":[a[0]||(a[0]=v=>e(o).mail_driver=v),s],options:e(g).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(p,{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(c,{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(c,{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(c,{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 g=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(g,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"),p=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]=c=>e(i).mail_driver=c),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(p,{modelValue:e(i).from_name,"onUpdate:modelValue":s[1]||(s[1]=c=>e(i).from_name=c),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_name.$error,"content-loading":n.isFetchingInitialData,type:"text",name:"name",onInput:s[2]||(s[2]=c=>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(p,{modelValue:e(i).from_mail,"onUpdate:modelValue":s[3]||(s[3]=c=>e(i).from_mail=c),modelModifiers:{trim:!0},invalid:e(o).basicMailConfig.from_mail.$error,"content-loading":n.isFetchingInitialData,type:"text",onInput:s[4]||(s[4]=c=>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(c=>[n.isSaving?E("",!0):(B(),F($,{key:0,name:"SaveIcon",class:O(c.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 g(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:g,next:f}}};function Fa(n,q,d,r,i,g){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 g=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 p(c,_){o.value=_}function $(){o.value=null}async function C(){if(a.value.userForm.$touch(),a.value.userForm.$invalid)return!0;d.value=!0;let c=await f.updateCurrentUser(s.value);if(d.value=!1,c.data.data){if(o.value){let v=new FormData;v.append("admin_avatar",o.value),await f.uploadAvatar(v)}const _=c.data.data.companies[0];await l.setSelectedCompany(_),q("next",6)}}return(c,_)=>{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:c.$t("wizard.account_info"),description:c.$t("wizard.account_info_desc")},{default:u(()=>[V("form",{action:"",onSubmit:T(C,["prevent"])},[V("div",ka,[t(w,{label:c.$tc("settings.account_settings.profile_picture")},{default:u(()=>[t(v,{avatar:!0,"preview-image":e(g),onChange:p,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Ua,[t(w,{label:c.$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:c.$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:c.$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:c.$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(c.$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 g=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()=>{var c;d.value=!0,await s.fetchCountries(),d.value=!1,l.address.country_id=(c=s.countries.find(_=>_.code=="US"))==null?void 0:c.id});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 p(c,_,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(c,_)=>{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:c.$t("wizard.company_info"),description:c.$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:c.$tc("settings.company_info.company_logo")},{default:u(()=>[t(v,{base64:"","preview-image":e(g),onChange:p,onRemove:$},null,8,["preview-image"])]),_:1},8,["label"])]),V("div",Oa,[t(w,{label:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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:c.$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(c.$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:g,t:o}=G(),f=pe();r.value=!0,j([{title:g("settings.customization.invoices.allow"),value:"allow"},{title:g("settings.customization.invoices.disable_on_invoice_partial_paid"),value:"disable_on_invoice_partial_paid"},{title:g("settings.customization.invoices.disable_on_invoice_paid"),value:"disable_on_invoice_paid"},{title:g("settings.customization.invoices.disable_on_invoice_sent"),value:"disable_on_invoice_sent"}]);const l=fe(),m=_e(),s=te(),h=ve(),a=de();let p={key:"fiscal_years"},$={key:"languages"};r.value=!0,Promise.all([m.fetchCurrencies(),m.fetchDateFormats(),m.fetchTimeZones(),m.fetchCountries(),m.fetchConfig(p),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)}}})),c=W(C,{currentPreferences:i});async function _(){if(c.value.currentPreferences.$touch(),c.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(c).currentPreferences.currency.$error&&e(c).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(c).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(c).currentPreferences.language.$error&&e(c).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(c).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(c).currentPreferences.carbon_date_format.$error&&e(c).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(c).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(c).currentPreferences.time_zone.$error&&e(c).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(c).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(c).currentPreferences.fiscal_year.$error&&e(c).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(c).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 g(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 g(l))return!1;q.value++,q.value<=8&&(n.value="step_"+q.value)}function f(l){}return{stepComponent:n,currentStepNumber:q,onStepChange:o,saveStepProgress:g,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,g){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}; diff --git a/public/build/assets/InvoiceCreate.dbeab7eb.js b/public/build/assets/InvoiceCreate.723d983d.js similarity index 68% rename from public/build/assets/InvoiceCreate.dbeab7eb.js rename to public/build/assets/InvoiceCreate.723d983d.js index 771ae5cb2..7058940da 100644 --- a/public/build/assets/InvoiceCreate.dbeab7eb.js +++ b/public/build/assets/InvoiceCreate.723d983d.js @@ -1 +1 @@ -var K=Object.defineProperty,Q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var q=(t,e,i)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,L=(t,e)=>{for(var i in e||(e={}))X.call(e,i)&&q(t,i,e[i]);if(j)for(var i of j(e))Z.call(e,i)&&q(t,i,e[i]);return t},T=(t,e)=>Q(t,W(e));import{r as l,o as d,e as x,f as o,u as n,w as c,J as ee,G as ne,aN as te,B as C,k as b,L as p,M as y,S as oe,O as ie,aP as ae,T as se,C as le,l as I,j as k,h as $,t as M,m as ce,i as re,U as ue,F as de}from"./vendor.d12b5734.js";import{i as P,b as me,m as ve,r as ge}from"./main.6ceeb72d.js";import{_ as pe,a as fe,b as _e,c as be,d as Ie,e as we,f as ye}from"./SalesTax.285fbaa6.js";import{_ as $e}from"./ExchangeRateConverter.2338e5bf.js";import{_ as Be}from"./CreateCustomFields.1cd1f052.js";import{_ as Se}from"./TaxTypeModal.5bc92e5b.js";import"./DragIcon.e6c221f0.js";import"./SelectNotePopup.9f1463c3.js";import"./NoteModal.62a64a69.js";import"./payment.ef13b90b.js";import"./exchange-rate.28527a8e.js";const he={class:"grid grid-cols-12 gap-8 mt-6 mb-8"},Ce={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(t){const e=P();return(i,r)=>{const B=l("BaseCustomerSelectPopup"),u=l("BaseDatePicker"),m=l("BaseInputGroup"),S=l("BaseInput"),f=l("BaseInputGrid");return d(),x("div",he,[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(u,{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(u,{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($e,{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})])}}},ke=["onSubmit"],Ve={class:"flex"},je={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},qe={class:"relative w-full lg:w-1/2 lg:mr-4"},He={setup(t){const e=P(),i=me(),r=ve(),B=ge(),{t:u}=ee();let m=ne(),S=te();const f="newInvoice";let a=C(!1);const F=C(!1),E=C(["customer","company","customerCustom","invoice","invoiceCustom"]);let _=b(()=>e.isFetchingInvoice||e.isFetchingInitialSettings),N=b(()=>v.value?u("invoices.edit_invoice"):u("invoices.new_invoice"));const U=b(()=>i.selectedCompanySettings.sales_tax_us_enabled==="YES"&&B.salesTaxUSEnabled);let v=b(()=>m.name==="invoices.edit");const D={invoice_date:{required:p.withMessage(u("validation.required"),y)},reference_number:{maxLength:p.withMessage(u("validation.price_maxlength"),oe(255))},customer_id:{required:p.withMessage(u("validation.required"),y)},invoice_number:{required:p.withMessage(u("validation.required"),y)},exchange_rate:{required:ie(function(){return p.withMessage(u("validation.required"),y),e.showExchangeRate}),decimal:p.withMessage(u("validation.valid_exchange_rate"),ae)}},w=se(D,b(()=>e.newInvoice),{$scope:f});r.resetCustomFields(),w.value.$reset,e.resetCurrentInvoice(),e.fetchInvoiceInitialSettings(v.value),le(()=>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=T(L({},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"),R=l("BaseBreadcrumb"),V=l("BaseButton"),H=l("router-link"),O=l("BaseIcon"),z=l("BasePageHeader"),A=l("BaseScrollPane"),J=l("BasePage");return d(),x(de,null,[o(pe),o(fe),o(Se),n(U)&&(!n(_)||n(m).query.customer)?(d(),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"])):k("",!0),o(J,{class:"relative invoice-create-page"},{default:c(()=>[$("form",{onSubmit:ue(G,["prevent"])},[o(z,{title:n(N)},{actions:c(()=>[s.$route.name==="invoices.edit"?(d(),I(H,{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,M(s.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):k("",!0),o(V,{loading:n(a),disabled:n(a),variant:"primary",type:"submit"},{left:c(Y=>[n(a)?k("",!0):(d(),I(O,{key:0,name:"SaveIcon",class:ce(Y.class)},null,8,["class"]))]),default:c(()=>[re(" "+M(s.$t("invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:c(()=>[o(R,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"?(d(),I(g,{key:0,title:s.$t("invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(d(),I(g,{key:1,title:s.$t("invoices.new_invoice"),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),o(Ce,{v:n(w),"is-loading":n(_),"is-edit":n(v)},null,8,["v","is-loading","is-edit"]),o(A,null,{default:c(()=>[o(be,{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",je,[$("div",qe,[o(Ie,{store:n(e),"store-prop":"newInvoice",fields:E.value,type:"Invoice"},null,8,["store","fields"]),o(Be,{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(we,{store:n(e),"store-prop":"newInvoice","component-name":"InvoiceTemplate","is-mark-as-default":F.value},null,8,["store","is-mark-as-default"])]),o(ye,{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,ke)]),_:1})],64)}}};export{He as default}; +var K=Object.defineProperty,Q=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var q=(t,e,i)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,L=(t,e)=>{for(var i in e||(e={}))X.call(e,i)&&q(t,i,e[i]);if(j)for(var i of j(e))Z.call(e,i)&&q(t,i,e[i]);return t},T=(t,e)=>Q(t,W(e));import{r as l,o as u,e as x,f as o,u as n,w as c,J as ee,G as ne,aN as te,B as C,k as I,L as p,M as y,S as oe,O as ie,aP as ae,T as se,C as le,l as b,j as k,h as $,t as M,m as ce,i as re,U as de,F as ue}from"./vendor.d12b5734.js";import{i as P,b as me,m as ve,r as ge}from"./main.c7bd6c0e.js";import{_ as pe,a as fe,b as _e,c as Ie,d as be,e as we,f as ye}from"./SalesTax.67357751.js";import{_ as $e}from"./ExchangeRateConverter.6e0e36e7.js";import{_ as Be}from"./CreateCustomFields.04aba193.js";import{_ as Se}from"./TaxTypeModal.3db473e9.js";import"./DragIcon.d9f643cf.js";import"./SelectNotePopup.ead4330d.js";import"./NoteModal.c9605dba.js";import"./payment.2b6f850e.js";import"./exchange-rate.70a72e5f.js";const he={class:"grid grid-cols-12 gap-8 mt-6 mb-8"},Ce={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(t){const e=P();return(i,r)=>{const B=l("BaseCustomerSelectPopup"),d=l("BaseDatePicker"),m=l("BaseInputGroup"),S=l("BaseInput"),f=l("BaseInputGrid");return u(),x("div",he,[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($e,{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})])}}},ke=["onSubmit"],Ve={class:"flex"},je={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},qe={class:"relative w-full lg:w-1/2 lg:mr-4"},He={setup(t){const e=P(),i=me(),r=ve(),B=ge(),{t:d}=ee();let m=ne(),S=te();const f="newInvoice";let a=C(!1);const F=C(!1),E=C(["customer","company","customerCustom","invoice","invoiceCustom"]);let _=I(()=>e.isFetchingInvoice||e.isFetchingInitialSettings),N=I(()=>v.value?d("invoices.edit_invoice"):d("invoices.new_invoice"));const U=I(()=>i.selectedCompanySettings.sales_tax_us_enabled==="YES"&&B.salesTaxUSEnabled);let v=I(()=>m.name==="invoices.edit");const D={invoice_date:{required:p.withMessage(d("validation.required"),y)},reference_number:{maxLength:p.withMessage(d("validation.price_maxlength"),oe(255))},customer_id:{required:p.withMessage(d("validation.required"),y)},invoice_number:{required:p.withMessage(d("validation.required"),y)},exchange_rate:{required:ie(function(){return p.withMessage(d("validation.required"),y),e.showExchangeRate}),decimal:p.withMessage(d("validation.valid_exchange_rate"),ae)}},w=se(D,I(()=>e.newInvoice),{$scope:f});r.resetCustomFields(),w.value.$reset,e.resetCurrentInvoice(),e.fetchInvoiceInitialSettings(v.value),le(()=>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=T(L({},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"),R=l("BaseBreadcrumb"),V=l("BaseButton"),H=l("router-link"),O=l("BaseIcon"),z=l("BasePageHeader"),A=l("BaseScrollPane"),J=l("BasePage");return u(),x(ue,null,[o(pe),o(fe),o(Se),n(U)&&(!n(_)||n(m).query.customer)?(u(),b(_e,{key:0,store:n(e),"is-edit":n(v),"store-prop":"newInvoice",customer:n(e).newInvoice.customer},null,8,["store","is-edit","customer"])):k("",!0),o(J,{class:"relative invoice-create-page"},{default:c(()=>[$("form",{onSubmit:de(G,["prevent"])},[o(z,{title:n(N)},{actions:c(()=>[s.$route.name==="invoices.edit"?(u(),b(H,{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,M(s.$t("general.view_pdf")),1)]),_:1})]),_:1},8,["to"])):k("",!0),o(V,{loading:n(a),disabled:n(a),variant:"primary",type:"submit"},{left:c(Y=>[n(a)?k("",!0):(u(),b(O,{key:0,name:"SaveIcon",class:ce(Y.class)},null,8,["class"]))]),default:c(()=>[re(" "+M(s.$t("invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:c(()=>[o(R,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(Ce,{v:n(w),"is-loading":n(_),"is-edit":n(v)},null,8,["v","is-loading","is-edit"]),o(A,null,{default:c(()=>[o(Ie,{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",je,[$("div",qe,[o(be,{store:n(e),"store-prop":"newInvoice",fields:E.value,type:"Invoice"},null,8,["store","fields"]),o(Be,{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(we,{store:n(e),"store-prop":"newInvoice","component-name":"InvoiceTemplate","is-mark-as-default":F.value},null,8,["store","is-mark-as-default"])]),o(ye,{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,ke)]),_:1})],64)}}};export{He as default}; diff --git a/public/build/assets/InvoiceIndexDropdown.78aec816.js b/public/build/assets/InvoiceIndexDropdown.174ed624.js similarity index 98% rename from public/build/assets/InvoiceIndexDropdown.78aec816.js rename to public/build/assets/InvoiceIndexDropdown.174ed624.js index 0448a75db..bcb1243ff 100644 --- a/public/build/assets/InvoiceIndexDropdown.78aec816.js +++ b/public/build/assets/InvoiceIndexDropdown.174ed624.js @@ -1 +1 @@ -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.d12b5734.js";import{i as F,c as U,u as q,j as H,e as W,g as y}from"./main.6ceeb72d.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 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.d12b5734.js";import{i as F,c as U,u as q,j as H,e as W,g as y}from"./main.c7bd6c0e.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 _}; diff --git a/public/build/assets/ItemUnitModal.17b8fb30.js b/public/build/assets/ItemUnitModal.12dfe4f1.js similarity index 71% rename from public/build/assets/ItemUnitModal.17b8fb30.js rename to public/build/assets/ItemUnitModal.12dfe4f1.js index 77dd96732..5652b9fd5 100644 --- a/public/build/assets/ItemUnitModal.17b8fb30.js +++ b/public/build/assets/ItemUnitModal.12dfe4f1.js @@ -1 +1 @@ -import{J as S,B as V,k as h,L as b,M as C,N as k,T as N,r as i,o as g,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.d12b5734.js";import{p as z,c as D}from"./main.6ceeb72d.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:b.withMessage(v("validation.required"),C),minLength:b.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 g(),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):(g(),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{J as S,B as V,k as h,L as b,M as C,N as k,T as N,r as i,o as g,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.d12b5734.js";import{p as z,c as D}from"./main.c7bd6c0e.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:b.withMessage(v("validation.required"),C),minLength:b.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 g(),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):(g(),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 _}; diff --git a/public/build/assets/LayoutBasic.f099ad73.js b/public/build/assets/LayoutBasic.12dd735a.js similarity index 95% rename from public/build/assets/LayoutBasic.f099ad73.js rename to public/build/assets/LayoutBasic.12dd735a.js index 066e3f976..146000e29 100644 --- a/public/build/assets/LayoutBasic.f099ad73.js +++ b/public/build/assets/LayoutBasic.12dd735a.js @@ -1 +1 @@ -import{u as M}from"./auth.974620c9.js";import{J as V,G as j,aN as I,B as z,k as b,C as F,r as h,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 G,b4 as O,b5 as E,ab as J,b6 as P,b7 as T,b8 as q,b9 as H,ba as K,j as Q}from"./vendor.d12b5734.js";import{u as N}from"./global.db0572f0.js";import{f as W}from"./main.6ceeb72d.js";import{N as X}from"./NotificationRoot.9d4c0db9.js";const Y={class:"mx-auto px-8"},Z={class:"flex justify-between h-16 w-full"},tt={class:"flex"},et={class:"shrink-0 flex items-center"},st=["href"],ot=["src"],rt={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},at={class:"hidden sm:ml-6 sm:flex sm:items-center"},nt=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),it=["src"],lt={class:"-mr-2 flex items-center sm:hidden"},ct=t("span",{class:"sr-only"},"Open main menu",-1),ut={class:"pt-2 pb-3 space-y-1"},dt={class:"pt-4 pb-3 border-t border-gray-200"},mt={class:"flex items-center px-4"},ft={class:"shrink-0"},pt=["src"],ht={class:"ml-3"},_t={class:"text-base font-medium text-gray-800"},gt={class:"text-sm font-medium text-gray-500"},yt=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),bt={class:"mt-3 space-y-1"},vt={setup(U){const{t:m}=V(),f=j(),o=N(),_=[{title:m("navigation.logout"),link:`/${o.companySlug}/customer/login`}],k=M(),$=I(),g=z(""),B=b(()=>o.currentUser&&o.currentUser.avatar!==0?o.currentUser.avatar:A());function A(){return new URL("/build/img/default-avatar.jpg",self.location)}F(f,i=>{g.value=i.path},{immediate:!0});const S=b(()=>window.customer_logo?window.customer_logo:!1);function y(i){return f.path.indexOf(i)>-1}function C(){k.logout(o.companySlug).then(i=>{i&&$.push({name:"customer.login"})})}return(i,kt)=>{const p=h("router-link"),D=h("BaseDropdownItem"),R=h("BaseDropdown");return n(),c(e(K),{as:"nav",class:"bg-white shadow-sm fixed top-0 left-0 z-20 w-full"},{default:a(({open:L})=>[t("div",Y,[t("div",Z,[t("div",tt,[t("div",et,[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,ot)):(n(),c(W,{key:0,class:"h-6"}))],8,st)]),t("div",rt,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(p,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([y(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",at,[nt,r(e(J),{as:"div",class:"ml-3 relative"},{default:a(()=>[r(R,{"width-class":"w-48"},{activator:a(()=>[r(e(G),{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,it)]),_:1})]),default:a(()=>[r(p,{to:{name:"customer.profile"}},{default:a(()=>[r(D,null,{default:a(()=>[r(e(O),{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})]),_:1},8,["to"]),r(D,{onClick:C},{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.logout")),1)]),_:1})]),_:1})]),_:1})]),t("div",lt,[r(e(q),{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(()=>[ct,L?(n(),c(e(T),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(n(),c(e(P),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),r(e(H),{class:"sm:hidden"},{default:a(()=>[t("div",ut,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(p,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([y(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",dt,[t("div",mt,[t("div",ft,[t("img",{class:"h-10 w-10 rounded-full",src:e(B),alt:""},null,8,pt)]),t("div",ht,[t("div",_t,l(e(o).currentUser.title),1),t("div",gt,l(e(o).currentUser.email),1)]),yt]),t("div",bt,[(n(),u(w,null,v(_,s=>r(p,{key:s.title,to:s.link,class:x([y(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})}}},xt={key:0,class:"h-full"},wt={class:"mt-16 pb-16 h-screen overflow-y-auto min-h-0"},Nt={setup(U){const m=N(),f=j(),o=b(()=>m.isAppLoaded);_();async function _(){await m.bootstrap(f.params.company)}return(k,$)=>{const g=h("router-view");return e(o)?(n(),u("div",xt,[r(X),r(vt),t("main",wt,[r(g)])])):Q("",!0)}}};export{Nt as default}; +import{u as M}from"./auth.a07e0850.js";import{J as V,G as j,aN as I,B as z,k as b,C as F,r as h,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 G,b4 as O,b5 as E,ab as J,b6 as P,b7 as T,b8 as q,b9 as H,ba as K,j as Q}from"./vendor.d12b5734.js";import{u as N}from"./global.1ac91de5.js";import{f as W}from"./main.c7bd6c0e.js";import{N as X}from"./NotificationRoot.b2aa5501.js";const Y={class:"mx-auto px-8"},Z={class:"flex justify-between h-16 w-full"},tt={class:"flex"},et={class:"shrink-0 flex items-center"},st=["href"],ot=["src"],rt={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},at={class:"hidden sm:ml-6 sm:flex sm:items-center"},nt=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),it=["src"],lt={class:"-mr-2 flex items-center sm:hidden"},ct=t("span",{class:"sr-only"},"Open main menu",-1),ut={class:"pt-2 pb-3 space-y-1"},dt={class:"pt-4 pb-3 border-t border-gray-200"},mt={class:"flex items-center px-4"},ft={class:"shrink-0"},pt=["src"],ht={class:"ml-3"},_t={class:"text-base font-medium text-gray-800"},gt={class:"text-sm font-medium text-gray-500"},yt=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),bt={class:"mt-3 space-y-1"},vt={setup(U){const{t:m}=V(),f=j(),o=N(),_=[{title:m("navigation.logout"),link:`/${o.companySlug}/customer/login`}],k=M(),$=I(),g=z(""),B=b(()=>o.currentUser&&o.currentUser.avatar!==0?o.currentUser.avatar:A());function A(){return new URL("/build/img/default-avatar.jpg",self.location)}F(f,i=>{g.value=i.path},{immediate:!0});const S=b(()=>window.customer_logo?window.customer_logo:!1);function y(i){return f.path.indexOf(i)>-1}function C(){k.logout(o.companySlug).then(i=>{i&&$.push({name:"customer.login"})})}return(i,kt)=>{const p=h("router-link"),D=h("BaseDropdownItem"),R=h("BaseDropdown");return n(),c(e(K),{as:"nav",class:"bg-white shadow-sm fixed top-0 left-0 z-20 w-full"},{default:a(({open:L})=>[t("div",Y,[t("div",Z,[t("div",tt,[t("div",et,[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,ot)):(n(),c(W,{key:0,class:"h-6"}))],8,st)]),t("div",rt,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(p,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([y(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",at,[nt,r(e(J),{as:"div",class:"ml-3 relative"},{default:a(()=>[r(R,{"width-class":"w-48"},{activator:a(()=>[r(e(G),{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,it)]),_:1})]),default:a(()=>[r(p,{to:{name:"customer.profile"}},{default:a(()=>[r(D,null,{default:a(()=>[r(e(O),{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})]),_:1},8,["to"]),r(D,{onClick:C},{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.logout")),1)]),_:1})]),_:1})]),_:1})]),t("div",lt,[r(e(q),{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(()=>[ct,L?(n(),c(e(T),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(n(),c(e(P),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),r(e(H),{class:"sm:hidden"},{default:a(()=>[t("div",ut,[(n(!0),u(w,null,v(e(o).mainMenu,s=>(n(),c(p,{key:s.title,to:`/${e(o).companySlug}${s.link}`,class:x([y(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",dt,[t("div",mt,[t("div",ft,[t("img",{class:"h-10 w-10 rounded-full",src:e(B),alt:""},null,8,pt)]),t("div",ht,[t("div",_t,l(e(o).currentUser.title),1),t("div",gt,l(e(o).currentUser.email),1)]),yt]),t("div",bt,[(n(),u(w,null,v(_,s=>r(p,{key:s.title,to:s.link,class:x([y(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})}}},xt={key:0,class:"h-full"},wt={class:"mt-16 pb-16 h-screen overflow-y-auto min-h-0"},Nt={setup(U){const m=N(),f=j(),o=b(()=>m.isAppLoaded);_();async function _(){await m.bootstrap(f.params.company)}return(k,$)=>{const g=h("router-view");return e(o)?(n(),u("div",xt,[r(X),r(vt),t("main",wt,[r(g)])])):Q("",!0)}}};export{Nt as default}; diff --git a/public/build/assets/LayoutBasic.e1b3d28d.js b/public/build/assets/LayoutBasic.5db11c89.js similarity index 99% rename from public/build/assets/LayoutBasic.e1b3d28d.js rename to public/build/assets/LayoutBasic.5db11c89.js index 89e943ea5..075570e05 100644 --- a/public/build/assets/LayoutBasic.e1b3d28d.js +++ b/public/build/assets/LayoutBasic.5db11c89.js @@ -1 +1 @@ -import{aN as z,J as P,B as C,a0 as _e,k as D,L as N,M as J,N as he,T as ae,r as h,o as a,l as w,w as n,h as s,i as U,t as m,u as e,f as t,e as i,m as F,j as S,U as H,G as X,C as oe,aO as se,F as V,y as L,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.d12b5734.js";import{b as Y,c as W,d as O,e as Q,S as we,a as $e,f as re,g as j,u as ke}from"./main.6ceeb72d.js";import{u as le}from"./exchange-rate.28527a8e.js";import{u as Ce}from"./users.2ff38459.js";import{N as Se}from"./NotificationRoot.9d4c0db9.js";import{V as Be}from"./index.esm.85b4999a.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(R){const p=z(),r=Y(),c=W(),y=O(),{t:_}=P();let f=C(!1),b=C(null),d=C(!1),l=C(null),g=C(null);const u=_e({name:null,currency:"",address:{country_id:null}}),B=D(()=>c.active&&c.componentName==="CompanyModal"),$={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($,{newCompanyForm:u});async function v(){d.value=!0,await y.fetchCurrencies(),await y.fetchCountries(),u.currency=r.selectedCompanyCurrency.id,u.address.country_id=r.selectedCompany.address.country_id,d.value=!1}function x(I,M){g.value=I,l.value=M}function k(){g.value=null,l.value=null}async function E(){if(o.value.newCompanyForm.$touch(),o.value.$invalid)return!0;f.value=!0;try{const I=await r.addNewCompany(u);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:g.value,data:l.value})),await r.updateCompanyLogo(M),p.push("/admin/dashboard")}await y.setIsAppLoaded(!1),await y.bootstrap(),G()}f.value=!1}catch{f.value=!1}}function T(){u.name="",u.currency="",u.address.country_id="",o.value.$reset()}function G(){c.closeModal(),setTimeout(()=>{T(),o.value.$reset()},300)}return(I,M)=>{const Z=h("BaseIcon"),ie=h("BaseContentPlaceholdersBox"),ce=h("BaseContentPlaceholders"),de=h("BaseFileUploader"),q=h("BaseInputGroup"),ue=h("BaseInput"),ee=h("BaseMultiselect"),me=h("BaseInputGrid"),te=h("BaseButton"),pe=h("BaseModal");return a(),w(pe,{show:e(B),onClose:G,onOpen:v},{header:n(()=>[s("div",Ie,[U(m(e(c).title)+" ",1),t(Z,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:G})])]),default:n(()=>[s("form",{action:"",onSubmit:H(E,["prevent"])},[s("div",Ue,[t(me,{layout:"one-column"},{default:n(()=>[t(q,{"content-loading":e(d),label:I.$tc("settings.company_info.company_logo")},{default:n(()=>[e(d)?(a(),w(ce,{key:0},{default:n(()=>[t(ie,{rounded:!0,class:"w-full h-24"})]),_:1})):(a(),i("div",Ee,[t(de,{"preview-image":e(b),base64:"",onRemove:k,onChange:x},null,8,["preview-image"])]))]),_:1},8,["content-loading","label"]),t(q,{label:I.$tc("settings.company_info.company_name"),error:e(o).newCompanyForm.name.$error&&e(o).newCompanyForm.name.$errors[0].$message,"content-loading":e(d),required:""},{default:n(()=>[t(ue,{modelValue:e(u).name,"onUpdate:modelValue":M[0]||(M[0]=A=>e(u).name=A),invalid:e(o).newCompanyForm.name.$error,"content-loading":e(d),onInput:M[1]||(M[1]=A=>e(o).newCompanyForm.name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(q,{"content-loading":e(d),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:n(()=>[t(ee,{modelValue:e(u).address.country_id,"onUpdate:modelValue":M[2]||(M[2]=A=>e(u).address.country_id=A),"content-loading":e(d),label:"name",invalid:e(o).newCompanyForm.address.country_id.$error,options:e(y).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(q,{label:I.$t("wizard.currency"),error:e(o).newCompanyForm.currency.$error&&e(o).newCompanyForm.currency.$errors[0].$message,"content-loading":e(d),"help-text":I.$t("wizard.currency_set_alert"),required:""},{default:n(()=>[t(ee,{modelValue:e(u).currency,"onUpdate:modelValue":M[3]||(M[3]=A=>e(u).currency=A),"content-loading":e(d),options:e(y).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})]),s("div",Ve,[t(te,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:G},{default:n(()=>[U(m(I.$t("general.cancel")),1)]),_:1}),t(te,{loading:e(f),disabled:e(f),variant:"primary",type:"submit"},{left:n(A=>[e(f)?S("",!0):(a(),w(Z,{key:0,name:"SaveIcon",class:F(A.class)},null,8,["class"]))]),default:n(()=>[U(" "+m(I.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Me)]),_:1},8,["show"])}}},Le={key:0,class:"w-16 text-sm font-medium truncate sm:w-auto"},Re={key:0,class:"absolute right-0 mt-2 bg-white rounded-md shadow-lg"},Fe={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(R){const p=Y(),r=W(),c=X(),y=z(),_=O(),{t:f}=P(),b=Q(),d=C(!1),l=C(""),g=C(null);oe(c,()=>{d.value=!1,l.value=""}),se(g,()=>{d.value=!1});function u(o){if(o)return o.split(" ")[0].charAt(0).toUpperCase()}function B(){r.openModal({title:f("company_switcher.new_company"),componentName:"CompanyModal",size:"sm"})}async function $(o){await p.setSelectedCompany(o),y.push("/admin/dashboard"),await _.setIsAppLoaded(!1),await _.bootstrap()}return(o,v)=>{const x=h("BaseIcon");return a(),i("div",{ref:(k,E)=>{E.companySwitchBar=k,g.value=k},class:"relative rounded"},[t(Ae),s("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:v[0]||(v[0]=k=>d.value=!d.value)},[e(p).selectedCompany?(a(),i("span",Le,m(e(p).selectedCompany.name),1)):S("",!0),t(x,{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:n(()=>[d.value?(a(),i("div",Re,[s("div",Fe,[s("label",je,m(o.$t("company_switcher.label")),1),e(p).companies.length<1?(a(),i("div",Ne,[t(x,{name:"ExclamationCircleIcon",class:"h-5 text-gray-400"}),U(" "+m(o.$t("company_switcher.no_results_found")),1)])):(a(),i("div",Te,[e(p).companies.length>0?(a(),i("div",De,[(a(!0),i(V,null,L(e(p).companies,(k,E)=>(a(),i("div",{key:E,class:F(["p-2 px-3 rounded-md cursor-pointer hover:bg-gray-100 hover:text-primary-500",{"bg-gray-100 text-primary-500":e(p).selectedCompany.id===k.id}]),onClick:T=>$(k)},[s("div",Ge,[s("span",qe,[k.logo?(a(),i("img",{key:1,src:k.logo,alt:"Company logo",class:"w-full h-full object-contain"},null,8,Pe)):(a(),i("span",ze,m(u(k.name)),1))]),s("div",Je,[s("span",Xe,m(k.name),1)])])],10,Oe))),128))])):S("",!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:B},[t(x,{name:"PlusIcon",class:"h-5 mr-2"}),s("span",Ye,m(o.$t("company_switcher.add_new_company")),1)])):S("",!0)])):S("",!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(R){const p=Ce(),r=C(!1),c=C(""),y=C(null),_=C(!1),f=X();oe(f,()=>{r.value=!1,c.value=""}),b=ye.exports.debounce(b,500),se(y,()=>{r.value=!1,c.value=""});function b(){let l={search:c.value};c.value&&(_.value=!0,p.searchUsers(l).then(()=>{r.value=!0}),_.value=!1),c.value===""&&(r.value=!1)}function d(l){if(l)return l.split(" ")[0].charAt(0).toUpperCase()}return(l,g)=>{const u=h("BaseIcon"),B=h("BaseInput"),$=h("router-link");return a(),i("div",{ref:(o,v)=>{v.searchBar=o,y.value=o},class:"hidden rounded md:block relative"},[s("div",null,[t(B,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=o=>c.value=o),placeholder:"Search...","container-class":"!rounded",class:"h-8 md:h-9 !rounded",onInput:b},{left:n(()=>[t(u,{name:"SearchIcon",class:"text-gray-400"})]),right:n(()=>[_.value?(a(),w(we,{key:0,class:"h-5 text-primary-500"})):S("",!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:n(()=>[r.value?(a(),i("div",He,[e(p).userList.length<1&&e(p).customerList.length<1?(a(),i("div",Ke,[t(u,{name:"ExclamationCircleIcon",class:"text-gray-400"}),U(" "+m(l.$t("global_search.no_results_found")),1)])):(a(),i("div",Qe,[e(p).customerList.length>0?(a(),i("div",Ze,[s("label",et,m(l.$t("global_search.customers")),1),(a(!0),i(V,null,L(e(p).customerList,(o,v)=>(a(),i("div",{key:v,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t($,{to:{path:`/admin/customers/${o.id}/view`},class:"flex items-center"},{default:n(()=>[s("span",tt,m(d(o.name)),1),s("div",at,[s("span",ot,m(o.name),1),o.contact_name?(a(),i("span",st,m(o.contact_name),1)):(a(),i("span",nt,m(o.email),1))])]),_:2},1032,["to"])]))),128))])):S("",!0),e(p).userList.length>0?(a(),i("div",rt,[s("label",lt,m(l.$t("global_search.users")),1),(a(!0),i(V,null,L(e(p).userList,(o,v)=>(a(),i("div",{key:v,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t($,{to:{path:`/admin/users/${o.id}/edit`},class:"flex items-center"},{default:n(()=>[s("span",it,m(d(o.name)),1),s("div",ct,[s("span",dt,m(o.name),1),s("span",ut,m(o.email),1)])]),_:2},1032,["to"])]))),128))])):S("",!0)]))])):S("",!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=["src"],ht=["onClick"],yt={class:"flex float-right h-8 m-0 list-none md:h-9"},ft={key:0,class:"relative hidden float-left m-0 md:block"},gt={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"},vt={class:"ml-2"},bt={class:"relative block float-left ml-2"},xt=["src"],wt={setup(R){const p=$e(),r=Q(),c=O(),y=z(),_=D(()=>r.currentUser&&r.currentUser.avatar!==0?r.currentUser.avatar:b()),f=D(()=>c.globalSettings.admin_portal_logo?"/storage/"+c.globalSettings.admin_portal_logo:!1);function b(){return new URL("/build/img/default-avatar.jpg",self.location)}function d(){return r.hasAbilities([j.CREATE_INVOICE,j.CREATE_ESTIMATE,j.CREATE_CUSTOMER])}async function l(){await p.logout(),y.push("/login")}function g(){c.setSidebarVisibility(!0)}return(u,B)=>{const $=h("router-link"),o=h("BaseIcon"),v=h("BaseDropdownItem"),x=h("BaseDropdown");return a(),i("header",pt,[t($,{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:n(()=>[e(f)?(a(),i("img",{key:0,src:e(f),class:"h-6"},null,8,_t)):(a(),w(re,{key:1,class:"h-6","light-color":"white","dark-color":"white"}))]),_:1}),s("div",{class:F([{"is-active":e(c).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(g,["prevent"])},[t(o,{name:"MenuIcon",class:"!w-6 !h-6 text-gray-500"})],10,ht),s("ul",yt,[d?(a(),i("li",ft,[t(x,{"width-class":"w-48"},{activator:n(()=>[s("div",gt,[t(o,{name:"PlusIcon",class:"w-5 h-5 text-gray-600"})])]),default:n(()=>[t($,{to:"/admin/invoices/create"},{default:n(()=>[e(r).hasAbilities(e(j).CREATE_INVOICE)?(a(),w(v,{key:0},{default:n(()=>[t(o,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("invoices.new_invoice")),1)]),_:1})):S("",!0)]),_:1}),t($,{to:"/admin/estimates/create"},{default:n(()=>[e(r).hasAbilities(e(j).CREATE_ESTIMATE)?(a(),w(v,{key:0},{default:n(()=>[t(o,{name:"DocumentIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("estimates.new_estimate")),1)]),_:1})):S("",!0)]),_:1}),t($,{to:"/admin/customers/create"},{default:n(()=>[e(r).hasAbilities(e(j).CREATE_CUSTOMER)?(a(),w(v,{key:0},{default:n(()=>[t(o,{name:"UserIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("customers.new_customer")),1)]),_:1})):S("",!0)]),_:1})]),_:1})])):S("",!0),s("li",vt,[e(r).currentUser.is_owner||e(r).hasAbilities(e(j).VIEW_CUSTOMER)?(a(),w(mt,{key:0})):S("",!0)]),s("li",null,[t(We)]),s("li",bt,[t(x,{"width-class":"w-48"},{activator:n(()=>[s("img",{src:e(_),class:"block w-8 h-8 rounded md:h-9 md:w-9"},null,8,xt)]),default:n(()=>[t($,{to:"/admin/settings/account-settings"},{default:n(()=>[t(v,null,{default:n(()=>[t(o,{name:"CogIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("navigation.settings")),1)]),_:1})]),_:1}),t(v,{onClick:l},{default:n(()=>[t(o,{name:"LogoutIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("navigation.logout")),1)]),_:1})]),_:1})])])])}}},$t={class:"relative flex flex-col flex-1 w-full max-w-xs bg-white"},kt={class:"absolute top-0 right-0 pt-2 -mr-12"},Ct=s("span",{class:"sr-only"},"Close sidebar",-1),St={class:"flex-1 h-0 pt-5 pb-4 overflow-y-auto"},Bt={class:"flex items-center shrink-0 px-4 mb-10"},It=s("div",{class:"shrink-0 w-14"},null,-1),Mt={class:"hidden w-56 h-screen 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"},Ut={setup(R){const p=X(),r=O();function c(y){return p.path.indexOf(y)>-1}return(y,_)=>{const f=h("BaseIcon"),b=h("router-link");return a(),i(V,null,[t(e(ve),{as:"template",show:e(r).isSidebarOpen},{default:n(()=>[t(e(fe),{as:"div",class:"fixed inset-0 z-40 flex md:hidden",onClose:_[3]||(_[3]=d=>e(r).setSidebarVisibility(!1))},{default:n(()=>[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:n(()=>[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:n(()=>[s("div",$t,[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:n(()=>[s("div",kt,[s("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]=d=>e(r).setSidebarVisibility(!1))},[Ct,t(f,{name:"XIcon",class:"w-6 h-6 text-white","aria-hidden":"true"})])])]),_:1}),s("div",St,[s("div",Bt,[t(re,{class:"block h-auto max-w-full w-36 text-primary-400",alt:"Crater Logo"})]),(a(!0),i(V,null,L(e(r).menuGroups,d=>(a(),i("nav",{key:d,class:"mt-5 space-y-1"},[(a(!0),i(V,null,L(d,l=>(a(),w(b,{key:l.name,to:l.link,class:F([c(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]=g=>e(r).setSidebarVisibility(!1))},{default:n(()=>[t(f,{name:l.icon,class:F([c(l.link)?"text-primary-500 ":"text-gray-400","mr-4 shrink-0 h-5 w-5"]),onClick:_[1]||(_[1]=g=>e(r).setSidebarVisibility(!1))},null,8,["name","class"]),U(" "+m(y.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])])]),_:1}),It]),_:1})]),_:1},8,["show"]),s("div",Mt,[(a(!0),i(V,null,L(e(r).menuGroups,d=>(a(),i("div",{key:d,class:"p-0 m-0 mt-6 list-none"},[(a(!0),i(V,null,L(d,l=>(a(),w(b,{key:l,to:l.link,class:F([c(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:n(()=>[t(f,{name:l.icon,class:F([c(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(" "+m(y.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])],64)}}},Et={class:"font-medium text-lg text-left"},Vt={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},At=["onSubmit"],Lt={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"},jt={emits:["update"],setup(R,{emit:p}){const r=le();ke();const c=Y(),{t:y,tm:_}=P();let f=C(!1);C(!1);const b={exchange_rate:{required:N.withMessage(y("validation.required"),J),decimal:N.withMessage(y("validation.valid_exchange_rate"),be)}},d=ae();async function l(){if(d.value.$touch(),d.value.$invalid)return!0;f.value=!0;let g=r.bulkCurrencies.map(B=>({id:B.id,exchange_rate:B.exchange_rate})),u=await r.updateBulkExchangeRate({currencies:g});u.data.success&&p("update",u.data.success),f.value=!1}return(g,u)=>{const B=h("BaseInput"),$=h("BaseInputGroup"),o=h("BaseButton"),v=h("BaseCard");return a(),w(v,null,{default:n(()=>[s("h6",Et,m(g.$t("settings.exchange_rate.title")),1),s("p",Vt,m(g.$t("settings.exchange_rate.description",{currency:e(c).selectedCompanyCurrency.name})),1),s("form",{action:"",onSubmit:H(l,["prevent"])},[(a(!0),i(V,null,L(e(r).bulkCurrencies,(x,k)=>(a(),w(e(Be),{key:k,state:x,rules:b},{default:n(({v:E})=>[t($,{class:"my-5",label:`${x.code} to ${e(c).selectedCompanyCurrency.code}`,error:E.exchange_rate.$error&&E.exchange_rate.$errors[0].$message,required:""},{default:n(()=>[t(B,{modelValue:x.exchange_rate,"onUpdate:modelValue":T=>x.exchange_rate=T,addon:`1 ${x.code} =`,invalid:E.exchange_rate.$error,onInput:T=>E.exchange_rate.$touch()},{right:n(()=>[s("span",Lt,m(e(c).selectedCompanyCurrency.code),1)]),_:2},1032,["modelValue","onUpdate:modelValue","addon","invalid","onInput"]),s("span",Rt,m(g.$t("settings.exchange_rate.exchange_help_text",{currency:x.code,baseCurrency:e(c).selectedCompanyCurrency.code})),1)]),_:2},1032,["label","error"])]),_:2},1032,["state"]))),128)),s("div",Ft,[t(o,{loading:e(f),variant:"primary",type:"submit"},{default:n(()=>[U(m(g.$t("general.save")),1)]),_:1},8,["loading"])])],40,At)]),_:1})}}},Nt={setup(R){const p=W(),r=D(()=>p.active&&p.componentName==="ExchangeRateBulkUpdateModal");function c(){p.closeModal()}return(y,_)=>{const f=h("BaseModal");return a(),w(f,{show:e(r)},{default:n(()=>[t(jt,{onUpdate:_[0]||(_[0]=b=>c())})]),_:1},8,["show"])}}},Tt={key:0,class:"h-full"},Dt={class:"h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0"},Ot={class:"pt-16 pb-16"},Yt={setup(R){const p=O(),r=X(),c=Q(),y=z(),_=W();P();const f=le(),b=Y(),d=D(()=>p.isAppLoaded);return xe(()=>{p.bootstrap().then(l=>{r.meta.ability&&!c.hasAbilities(r.meta.ability)?y.push({name:"account.settings"}):r.meta.isOwner&&!c.currentUser.is_owner&&y.push({name:"account.settings"}),l.data.current_company_settings.bulk_exchange_rate_configured==="NO"&&f.fetchBulkCurrencies().then(g=>{if(g.data.currencies.length)_.openModal({componentName:"ExchangeRateBulkUpdateModal",size:"sm"});else{let u={settings:{bulk_exchange_rate_configured:"YES"}};b.updateCompanySettings({data:u})}})})}),(l,g)=>{const u=h("router-view"),B=h("BaseGlobalLoader");return e(d)?(a(),i("div",Tt,[t(Se),t(wt),t(Ut),t(Nt),s("main",Dt,[s("div",Ot,[t(u)])])])):(a(),w(B,{key:1}))}}};export{Yt as default}; +import{aN as z,J as P,B as C,a0 as _e,k as D,L as N,M as J,N as he,T as ae,r as h,o as a,l as w,w as n,h as s,i as U,t as m,u as e,f as t,e as i,m as F,j as S,U as H,G as X,C as oe,aO as se,F as V,y as L,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.d12b5734.js";import{b as Y,c as W,d as O,e as Q,S as we,a as $e,f as re,g as j,u as ke}from"./main.c7bd6c0e.js";import{u as le}from"./exchange-rate.70a72e5f.js";import{u as Ce}from"./users.7c501231.js";import{N as Se}from"./NotificationRoot.b2aa5501.js";import{V as Be}from"./index.esm.85b4999a.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(R){const p=z(),r=Y(),c=W(),y=O(),{t:_}=P();let f=C(!1),b=C(null),d=C(!1),l=C(null),g=C(null);const u=_e({name:null,currency:"",address:{country_id:null}}),B=D(()=>c.active&&c.componentName==="CompanyModal"),$={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($,{newCompanyForm:u});async function v(){d.value=!0,await y.fetchCurrencies(),await y.fetchCountries(),u.currency=r.selectedCompanyCurrency.id,u.address.country_id=r.selectedCompany.address.country_id,d.value=!1}function x(I,M){g.value=I,l.value=M}function k(){g.value=null,l.value=null}async function E(){if(o.value.newCompanyForm.$touch(),o.value.$invalid)return!0;f.value=!0;try{const I=await r.addNewCompany(u);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:g.value,data:l.value})),await r.updateCompanyLogo(M),p.push("/admin/dashboard")}await y.setIsAppLoaded(!1),await y.bootstrap(),G()}f.value=!1}catch{f.value=!1}}function T(){u.name="",u.currency="",u.address.country_id="",o.value.$reset()}function G(){c.closeModal(),setTimeout(()=>{T(),o.value.$reset()},300)}return(I,M)=>{const Z=h("BaseIcon"),ie=h("BaseContentPlaceholdersBox"),ce=h("BaseContentPlaceholders"),de=h("BaseFileUploader"),q=h("BaseInputGroup"),ue=h("BaseInput"),ee=h("BaseMultiselect"),me=h("BaseInputGrid"),te=h("BaseButton"),pe=h("BaseModal");return a(),w(pe,{show:e(B),onClose:G,onOpen:v},{header:n(()=>[s("div",Ie,[U(m(e(c).title)+" ",1),t(Z,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:G})])]),default:n(()=>[s("form",{action:"",onSubmit:H(E,["prevent"])},[s("div",Ue,[t(me,{layout:"one-column"},{default:n(()=>[t(q,{"content-loading":e(d),label:I.$tc("settings.company_info.company_logo")},{default:n(()=>[e(d)?(a(),w(ce,{key:0},{default:n(()=>[t(ie,{rounded:!0,class:"w-full h-24"})]),_:1})):(a(),i("div",Ee,[t(de,{"preview-image":e(b),base64:"",onRemove:k,onChange:x},null,8,["preview-image"])]))]),_:1},8,["content-loading","label"]),t(q,{label:I.$tc("settings.company_info.company_name"),error:e(o).newCompanyForm.name.$error&&e(o).newCompanyForm.name.$errors[0].$message,"content-loading":e(d),required:""},{default:n(()=>[t(ue,{modelValue:e(u).name,"onUpdate:modelValue":M[0]||(M[0]=A=>e(u).name=A),invalid:e(o).newCompanyForm.name.$error,"content-loading":e(d),onInput:M[1]||(M[1]=A=>e(o).newCompanyForm.name.$touch())},null,8,["modelValue","invalid","content-loading"])]),_:1},8,["label","error","content-loading"]),t(q,{"content-loading":e(d),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:n(()=>[t(ee,{modelValue:e(u).address.country_id,"onUpdate:modelValue":M[2]||(M[2]=A=>e(u).address.country_id=A),"content-loading":e(d),label:"name",invalid:e(o).newCompanyForm.address.country_id.$error,options:e(y).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(q,{label:I.$t("wizard.currency"),error:e(o).newCompanyForm.currency.$error&&e(o).newCompanyForm.currency.$errors[0].$message,"content-loading":e(d),"help-text":I.$t("wizard.currency_set_alert"),required:""},{default:n(()=>[t(ee,{modelValue:e(u).currency,"onUpdate:modelValue":M[3]||(M[3]=A=>e(u).currency=A),"content-loading":e(d),options:e(y).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})]),s("div",Ve,[t(te,{class:"mr-3 text-sm",variant:"primary-outline",outline:"",type:"button",onClick:G},{default:n(()=>[U(m(I.$t("general.cancel")),1)]),_:1}),t(te,{loading:e(f),disabled:e(f),variant:"primary",type:"submit"},{left:n(A=>[e(f)?S("",!0):(a(),w(Z,{key:0,name:"SaveIcon",class:F(A.class)},null,8,["class"]))]),default:n(()=>[U(" "+m(I.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Me)]),_:1},8,["show"])}}},Le={key:0,class:"w-16 text-sm font-medium truncate sm:w-auto"},Re={key:0,class:"absolute right-0 mt-2 bg-white rounded-md shadow-lg"},Fe={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(R){const p=Y(),r=W(),c=X(),y=z(),_=O(),{t:f}=P(),b=Q(),d=C(!1),l=C(""),g=C(null);oe(c,()=>{d.value=!1,l.value=""}),se(g,()=>{d.value=!1});function u(o){if(o)return o.split(" ")[0].charAt(0).toUpperCase()}function B(){r.openModal({title:f("company_switcher.new_company"),componentName:"CompanyModal",size:"sm"})}async function $(o){await p.setSelectedCompany(o),y.push("/admin/dashboard"),await _.setIsAppLoaded(!1),await _.bootstrap()}return(o,v)=>{const x=h("BaseIcon");return a(),i("div",{ref:(k,E)=>{E.companySwitchBar=k,g.value=k},class:"relative rounded"},[t(Ae),s("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:v[0]||(v[0]=k=>d.value=!d.value)},[e(p).selectedCompany?(a(),i("span",Le,m(e(p).selectedCompany.name),1)):S("",!0),t(x,{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:n(()=>[d.value?(a(),i("div",Re,[s("div",Fe,[s("label",je,m(o.$t("company_switcher.label")),1),e(p).companies.length<1?(a(),i("div",Ne,[t(x,{name:"ExclamationCircleIcon",class:"h-5 text-gray-400"}),U(" "+m(o.$t("company_switcher.no_results_found")),1)])):(a(),i("div",Te,[e(p).companies.length>0?(a(),i("div",De,[(a(!0),i(V,null,L(e(p).companies,(k,E)=>(a(),i("div",{key:E,class:F(["p-2 px-3 rounded-md cursor-pointer hover:bg-gray-100 hover:text-primary-500",{"bg-gray-100 text-primary-500":e(p).selectedCompany.id===k.id}]),onClick:T=>$(k)},[s("div",Ge,[s("span",qe,[k.logo?(a(),i("img",{key:1,src:k.logo,alt:"Company logo",class:"w-full h-full object-contain"},null,8,Pe)):(a(),i("span",ze,m(u(k.name)),1))]),s("div",Je,[s("span",Xe,m(k.name),1)])])],10,Oe))),128))])):S("",!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:B},[t(x,{name:"PlusIcon",class:"h-5 mr-2"}),s("span",Ye,m(o.$t("company_switcher.add_new_company")),1)])):S("",!0)])):S("",!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(R){const p=Ce(),r=C(!1),c=C(""),y=C(null),_=C(!1),f=X();oe(f,()=>{r.value=!1,c.value=""}),b=ye.exports.debounce(b,500),se(y,()=>{r.value=!1,c.value=""});function b(){let l={search:c.value};c.value&&(_.value=!0,p.searchUsers(l).then(()=>{r.value=!0}),_.value=!1),c.value===""&&(r.value=!1)}function d(l){if(l)return l.split(" ")[0].charAt(0).toUpperCase()}return(l,g)=>{const u=h("BaseIcon"),B=h("BaseInput"),$=h("router-link");return a(),i("div",{ref:(o,v)=>{v.searchBar=o,y.value=o},class:"hidden rounded md:block relative"},[s("div",null,[t(B,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=o=>c.value=o),placeholder:"Search...","container-class":"!rounded",class:"h-8 md:h-9 !rounded",onInput:b},{left:n(()=>[t(u,{name:"SearchIcon",class:"text-gray-400"})]),right:n(()=>[_.value?(a(),w(we,{key:0,class:"h-5 text-primary-500"})):S("",!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:n(()=>[r.value?(a(),i("div",He,[e(p).userList.length<1&&e(p).customerList.length<1?(a(),i("div",Ke,[t(u,{name:"ExclamationCircleIcon",class:"text-gray-400"}),U(" "+m(l.$t("global_search.no_results_found")),1)])):(a(),i("div",Qe,[e(p).customerList.length>0?(a(),i("div",Ze,[s("label",et,m(l.$t("global_search.customers")),1),(a(!0),i(V,null,L(e(p).customerList,(o,v)=>(a(),i("div",{key:v,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t($,{to:{path:`/admin/customers/${o.id}/view`},class:"flex items-center"},{default:n(()=>[s("span",tt,m(d(o.name)),1),s("div",at,[s("span",ot,m(o.name),1),o.contact_name?(a(),i("span",st,m(o.contact_name),1)):(a(),i("span",nt,m(o.email),1))])]),_:2},1032,["to"])]))),128))])):S("",!0),e(p).userList.length>0?(a(),i("div",rt,[s("label",lt,m(l.$t("global_search.users")),1),(a(!0),i(V,null,L(e(p).userList,(o,v)=>(a(),i("div",{key:v,class:"p-2 hover:bg-gray-100 cursor-pointer rounded-md"},[t($,{to:{path:`/admin/users/${o.id}/edit`},class:"flex items-center"},{default:n(()=>[s("span",it,m(d(o.name)),1),s("div",ct,[s("span",dt,m(o.name),1),s("span",ut,m(o.email),1)])]),_:2},1032,["to"])]))),128))])):S("",!0)]))])):S("",!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=["src"],ht=["onClick"],yt={class:"flex float-right h-8 m-0 list-none md:h-9"},ft={key:0,class:"relative hidden float-left m-0 md:block"},gt={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"},vt={class:"ml-2"},bt={class:"relative block float-left ml-2"},xt=["src"],wt={setup(R){const p=$e(),r=Q(),c=O(),y=z(),_=D(()=>r.currentUser&&r.currentUser.avatar!==0?r.currentUser.avatar:b()),f=D(()=>c.globalSettings.admin_portal_logo?"/storage/"+c.globalSettings.admin_portal_logo:!1);function b(){return new URL("/build/img/default-avatar.jpg",self.location)}function d(){return r.hasAbilities([j.CREATE_INVOICE,j.CREATE_ESTIMATE,j.CREATE_CUSTOMER])}async function l(){await p.logout(),y.push("/login")}function g(){c.setSidebarVisibility(!0)}return(u,B)=>{const $=h("router-link"),o=h("BaseIcon"),v=h("BaseDropdownItem"),x=h("BaseDropdown");return a(),i("header",pt,[t($,{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:n(()=>[e(f)?(a(),i("img",{key:0,src:e(f),class:"h-6"},null,8,_t)):(a(),w(re,{key:1,class:"h-6","light-color":"white","dark-color":"white"}))]),_:1}),s("div",{class:F([{"is-active":e(c).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(g,["prevent"])},[t(o,{name:"MenuIcon",class:"!w-6 !h-6 text-gray-500"})],10,ht),s("ul",yt,[d?(a(),i("li",ft,[t(x,{"width-class":"w-48"},{activator:n(()=>[s("div",gt,[t(o,{name:"PlusIcon",class:"w-5 h-5 text-gray-600"})])]),default:n(()=>[t($,{to:"/admin/invoices/create"},{default:n(()=>[e(r).hasAbilities(e(j).CREATE_INVOICE)?(a(),w(v,{key:0},{default:n(()=>[t(o,{name:"DocumentTextIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("invoices.new_invoice")),1)]),_:1})):S("",!0)]),_:1}),t($,{to:"/admin/estimates/create"},{default:n(()=>[e(r).hasAbilities(e(j).CREATE_ESTIMATE)?(a(),w(v,{key:0},{default:n(()=>[t(o,{name:"DocumentIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("estimates.new_estimate")),1)]),_:1})):S("",!0)]),_:1}),t($,{to:"/admin/customers/create"},{default:n(()=>[e(r).hasAbilities(e(j).CREATE_CUSTOMER)?(a(),w(v,{key:0},{default:n(()=>[t(o,{name:"UserIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("customers.new_customer")),1)]),_:1})):S("",!0)]),_:1})]),_:1})])):S("",!0),s("li",vt,[e(r).currentUser.is_owner||e(r).hasAbilities(e(j).VIEW_CUSTOMER)?(a(),w(mt,{key:0})):S("",!0)]),s("li",null,[t(We)]),s("li",bt,[t(x,{"width-class":"w-48"},{activator:n(()=>[s("img",{src:e(_),class:"block w-8 h-8 rounded md:h-9 md:w-9"},null,8,xt)]),default:n(()=>[t($,{to:"/admin/settings/account-settings"},{default:n(()=>[t(v,null,{default:n(()=>[t(o,{name:"CogIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("navigation.settings")),1)]),_:1})]),_:1}),t(v,{onClick:l},{default:n(()=>[t(o,{name:"LogoutIcon",class:"w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"}),U(" "+m(u.$t("navigation.logout")),1)]),_:1})]),_:1})])])])}}},$t={class:"relative flex flex-col flex-1 w-full max-w-xs bg-white"},kt={class:"absolute top-0 right-0 pt-2 -mr-12"},Ct=s("span",{class:"sr-only"},"Close sidebar",-1),St={class:"flex-1 h-0 pt-5 pb-4 overflow-y-auto"},Bt={class:"flex items-center shrink-0 px-4 mb-10"},It=s("div",{class:"shrink-0 w-14"},null,-1),Mt={class:"hidden w-56 h-screen 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"},Ut={setup(R){const p=X(),r=O();function c(y){return p.path.indexOf(y)>-1}return(y,_)=>{const f=h("BaseIcon"),b=h("router-link");return a(),i(V,null,[t(e(ve),{as:"template",show:e(r).isSidebarOpen},{default:n(()=>[t(e(fe),{as:"div",class:"fixed inset-0 z-40 flex md:hidden",onClose:_[3]||(_[3]=d=>e(r).setSidebarVisibility(!1))},{default:n(()=>[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:n(()=>[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:n(()=>[s("div",$t,[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:n(()=>[s("div",kt,[s("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]=d=>e(r).setSidebarVisibility(!1))},[Ct,t(f,{name:"XIcon",class:"w-6 h-6 text-white","aria-hidden":"true"})])])]),_:1}),s("div",St,[s("div",Bt,[t(re,{class:"block h-auto max-w-full w-36 text-primary-400",alt:"Crater Logo"})]),(a(!0),i(V,null,L(e(r).menuGroups,d=>(a(),i("nav",{key:d,class:"mt-5 space-y-1"},[(a(!0),i(V,null,L(d,l=>(a(),w(b,{key:l.name,to:l.link,class:F([c(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]=g=>e(r).setSidebarVisibility(!1))},{default:n(()=>[t(f,{name:l.icon,class:F([c(l.link)?"text-primary-500 ":"text-gray-400","mr-4 shrink-0 h-5 w-5"]),onClick:_[1]||(_[1]=g=>e(r).setSidebarVisibility(!1))},null,8,["name","class"]),U(" "+m(y.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])])]),_:1}),It]),_:1})]),_:1},8,["show"]),s("div",Mt,[(a(!0),i(V,null,L(e(r).menuGroups,d=>(a(),i("div",{key:d,class:"p-0 m-0 mt-6 list-none"},[(a(!0),i(V,null,L(d,l=>(a(),w(b,{key:l,to:l.link,class:F([c(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:n(()=>[t(f,{name:l.icon,class:F([c(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(" "+m(y.$t(l.title)),1)]),_:2},1032,["to","class"]))),128))]))),128))])],64)}}},Et={class:"font-medium text-lg text-left"},Vt={class:"mt-2 text-sm leading-snug text-gray-500",style:{"max-width":"680px"}},At=["onSubmit"],Lt={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"},jt={emits:["update"],setup(R,{emit:p}){const r=le();ke();const c=Y(),{t:y,tm:_}=P();let f=C(!1);C(!1);const b={exchange_rate:{required:N.withMessage(y("validation.required"),J),decimal:N.withMessage(y("validation.valid_exchange_rate"),be)}},d=ae();async function l(){if(d.value.$touch(),d.value.$invalid)return!0;f.value=!0;let g=r.bulkCurrencies.map(B=>({id:B.id,exchange_rate:B.exchange_rate})),u=await r.updateBulkExchangeRate({currencies:g});u.data.success&&p("update",u.data.success),f.value=!1}return(g,u)=>{const B=h("BaseInput"),$=h("BaseInputGroup"),o=h("BaseButton"),v=h("BaseCard");return a(),w(v,null,{default:n(()=>[s("h6",Et,m(g.$t("settings.exchange_rate.title")),1),s("p",Vt,m(g.$t("settings.exchange_rate.description",{currency:e(c).selectedCompanyCurrency.name})),1),s("form",{action:"",onSubmit:H(l,["prevent"])},[(a(!0),i(V,null,L(e(r).bulkCurrencies,(x,k)=>(a(),w(e(Be),{key:k,state:x,rules:b},{default:n(({v:E})=>[t($,{class:"my-5",label:`${x.code} to ${e(c).selectedCompanyCurrency.code}`,error:E.exchange_rate.$error&&E.exchange_rate.$errors[0].$message,required:""},{default:n(()=>[t(B,{modelValue:x.exchange_rate,"onUpdate:modelValue":T=>x.exchange_rate=T,addon:`1 ${x.code} =`,invalid:E.exchange_rate.$error,onInput:T=>E.exchange_rate.$touch()},{right:n(()=>[s("span",Lt,m(e(c).selectedCompanyCurrency.code),1)]),_:2},1032,["modelValue","onUpdate:modelValue","addon","invalid","onInput"]),s("span",Rt,m(g.$t("settings.exchange_rate.exchange_help_text",{currency:x.code,baseCurrency:e(c).selectedCompanyCurrency.code})),1)]),_:2},1032,["label","error"])]),_:2},1032,["state"]))),128)),s("div",Ft,[t(o,{loading:e(f),variant:"primary",type:"submit"},{default:n(()=>[U(m(g.$t("general.save")),1)]),_:1},8,["loading"])])],40,At)]),_:1})}}},Nt={setup(R){const p=W(),r=D(()=>p.active&&p.componentName==="ExchangeRateBulkUpdateModal");function c(){p.closeModal()}return(y,_)=>{const f=h("BaseModal");return a(),w(f,{show:e(r)},{default:n(()=>[t(jt,{onUpdate:_[0]||(_[0]=b=>c())})]),_:1},8,["show"])}}},Tt={key:0,class:"h-full"},Dt={class:"h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0"},Ot={class:"pt-16 pb-16"},Yt={setup(R){const p=O(),r=X(),c=Q(),y=z(),_=W();P();const f=le(),b=Y(),d=D(()=>p.isAppLoaded);return xe(()=>{p.bootstrap().then(l=>{r.meta.ability&&!c.hasAbilities(r.meta.ability)?y.push({name:"account.settings"}):r.meta.isOwner&&!c.currentUser.is_owner&&y.push({name:"account.settings"}),l.data.current_company_settings.bulk_exchange_rate_configured==="NO"&&f.fetchBulkCurrencies().then(g=>{if(g.data.currencies.length)_.openModal({componentName:"ExchangeRateBulkUpdateModal",size:"sm"});else{let u={settings:{bulk_exchange_rate_configured:"YES"}};b.updateCompanySettings({data:u})}})})}),(l,g)=>{const u=h("router-view"),B=h("BaseGlobalLoader");return e(d)?(a(),i("div",Tt,[t(Se),t(wt),t(Ut),t(Nt),s("main",Dt,[s("div",Ot,[t(u)])])])):(a(),w(B,{key:1}))}}};export{Yt as default}; diff --git a/public/build/assets/LayoutInstallation.d1075109.js b/public/build/assets/LayoutInstallation.d1075109.js new file mode 100644 index 000000000..dfaa065d6 --- /dev/null +++ b/public/build/assets/LayoutInstallation.d1075109.js @@ -0,0 +1 @@ +import{N as t}from"./NotificationRoot.b2aa5501.js";import{r as s,o as a,e as r,f as o,h as c}from"./vendor.d12b5734.js";import"./main.c7bd6c0e.js";const n={class:"h-screen 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}; diff --git a/public/build/assets/LayoutInstallation.f025488e.js b/public/build/assets/LayoutInstallation.f025488e.js deleted file mode 100644 index 123cda81e..000000000 --- a/public/build/assets/LayoutInstallation.f025488e.js +++ /dev/null @@ -1 +0,0 @@ -import{N as t}from"./NotificationRoot.9d4c0db9.js";import{r as s,o as r,e as a,f as o,h as c}from"./vendor.d12b5734.js";import"./main.6ceeb72d.js";const n={class:"h-screen overflow-y-auto text-base"},i={class:"container mx-auto px-4"},u={setup(_){return(d,m)=>{const e=s("router-view");return r(),a("div",n,[o(t),c("div",i,[o(e)])])}}};export{u as default}; diff --git a/public/build/assets/LayoutLogin.2b25369b.js b/public/build/assets/LayoutLogin.2b25369b.js new file mode 100644 index 000000000..bc3f5a20b --- /dev/null +++ b/public/build/assets/LayoutLogin.2b25369b.js @@ -0,0 +1 @@ +import{N as r}from"./NotificationRoot.b2aa5501.js";import{f as l}from"./main.c7bd6c0e.js";import{k as i,r as n,o,e,f as a,h as s,u as c,l as u}from"./vendor.d12b5734.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}; diff --git a/public/build/assets/LayoutLogin.80459a89.js b/public/build/assets/LayoutLogin.3c63f158.js similarity index 98% rename from public/build/assets/LayoutLogin.80459a89.js rename to public/build/assets/LayoutLogin.3c63f158.js index 84da3e541..58a4aaa0a 100644 --- a/public/build/assets/LayoutLogin.80459a89.js +++ b/public/build/assets/LayoutLogin.3c63f158.js @@ -1 +1 @@ -import{N as f}from"./NotificationRoot.9d4c0db9.js";import{_ as r,f as _}from"./main.6ceeb72d.js";import{o as e,e as i,h as t,ai as g,k as n,r as m,f as l,u as o,l as w,t as c}from"./vendor.d12b5734.js";const u={},y={viewBox:"0 0 1012 1023",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",class:"text-primary-500"},x=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),v=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),b=[x,v];function $(s,a){return e(),i("svg",y,b)}var M=r(u,[["render",$]]);const Z={},k={width:"422",height:"290",viewBox:"0 0 422 290",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L=g('',2),B=[L];function N(s,a){return e(),i("svg",k,B)}var S=r(Z,[["render",N]]);const V={},j={viewBox:"0 0 1170 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=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),P=[I];function R(s,a){return e(),i("svg",j,P)}var U=r(V,[["render",R]]);const z={},D={width:"1122",height:"1017",viewBox:"0 0 1122 1017",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=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),O=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),A=[H,O];function G(s,a){return e(),i("svg",D,A)}var E=r(z,[["render",G]]);const F={class:"grid h-screen grid-cols-12 overflow-y-hidden bg-gray-100"},T={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"},Y={class:"w-full"},q=["src"],J={class:"pt-24 mt-0 text-sm not-italic font-medium leading-relaxed text-left text-gray-400 md:pt-40"},K={class:"mb-3"},Q={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"},W={class:"md:pl-10 xl:pl-0 relative z-50 w-7/12 xl:w-5/12 xl:w-5/12"},X={class:"hidden mb-3 text-3xl leading-normal text-left text-white xl:text-5xl xl:leading-tight md:none lg:block"},t1={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"},s1={setup(s){const a=n(()=>window.login_page_heading?window.login_page_heading:"Simple Invoicing for Individuals Small Businesses"),d=n(()=>window.login_page_description?window.login_page_description:"Crater helps you track expenses, record payments & generate beautiful invoices & estimates."),h=n(()=>window.copyright_text?window.copyright_text:"Copyright @ Crater Invoice, Inc."),p=n(()=>window.login_page_logo?window.login_page_logo:!1);return(e1,i1)=>{const C=m("router-view");return e(),i("div",F,[l(f),t("div",T,[t("div",Y,[o(p)?(e(),i("img",{key:1,src:o(p),class:"block w-48 h-auto max-w-full mb-32 text-primary-500"},null,8,q)):(e(),w(_,{key:0,class:"block w-48 h-auto max-w-full mb-32 text-primary-500"})),l(C),t("div",J,[t("p",K,c(o(h))+" "+c(new Date().getFullYear()),1)])])]),t("div",Q,[l(M,{class:"absolute h-full w-full"}),l(S,{class:"absolute z-10 top-0 right-0 h-[300px] w-[420px]"}),l(E,{class:"absolute h-full w-full right-[7.5%]"}),t("div",W,[t("h1",X,c(o(a)),1),t("p",t1,c(o(d)),1)]),l(U,{class:"absolute z-50 w-full bg-no-repeat content-bottom h-[15vw] lg:h-[22vw] right-[32%] bottom-0"})])])}}};export{s1 as default}; +import{N as f}from"./NotificationRoot.b2aa5501.js";import{_ as r,f as _}from"./main.c7bd6c0e.js";import{o as e,e as i,h as t,ai as g,k as n,r as m,f as l,u as o,l as w,t as c}from"./vendor.d12b5734.js";const u={},y={viewBox:"0 0 1012 1023",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",class:"text-primary-500"},x=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),v=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),b=[x,v];function $(s,a){return e(),i("svg",y,b)}var M=r(u,[["render",$]]);const Z={},k={width:"422",height:"290",viewBox:"0 0 422 290",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L=g('',2),B=[L];function N(s,a){return e(),i("svg",k,B)}var S=r(Z,[["render",N]]);const V={},j={viewBox:"0 0 1170 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=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),P=[I];function R(s,a){return e(),i("svg",j,P)}var U=r(V,[["render",R]]);const z={},D={width:"1122",height:"1017",viewBox:"0 0 1122 1017",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=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),O=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),A=[H,O];function G(s,a){return e(),i("svg",D,A)}var E=r(z,[["render",G]]);const F={class:"grid h-screen grid-cols-12 overflow-y-hidden bg-gray-100"},T={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"},Y={class:"w-full"},q=["src"],J={class:"pt-24 mt-0 text-sm not-italic font-medium leading-relaxed text-left text-gray-400 md:pt-40"},K={class:"mb-3"},Q={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"},W={class:"md:pl-10 xl:pl-0 relative z-50 w-7/12 xl:w-5/12 xl:w-5/12"},X={class:"hidden mb-3 text-3xl leading-normal text-left text-white xl:text-5xl xl:leading-tight md:none lg:block"},t1={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"},s1={setup(s){const a=n(()=>window.login_page_heading?window.login_page_heading:"Simple Invoicing for Individuals Small Businesses"),d=n(()=>window.login_page_description?window.login_page_description:"Crater helps you track expenses, record payments & generate beautiful invoices & estimates."),h=n(()=>window.copyright_text?window.copyright_text:"Copyright @ Crater Invoice, Inc."),p=n(()=>window.login_page_logo?window.login_page_logo:!1);return(e1,i1)=>{const C=m("router-view");return e(),i("div",F,[l(f),t("div",T,[t("div",Y,[o(p)?(e(),i("img",{key:1,src:o(p),class:"block w-48 h-auto max-w-full mb-32 text-primary-500"},null,8,q)):(e(),w(_,{key:0,class:"block w-48 h-auto max-w-full mb-32 text-primary-500"})),l(C),t("div",J,[t("p",K,c(o(h))+" "+c(new Date().getFullYear()),1)])])]),t("div",Q,[l(M,{class:"absolute h-full w-full"}),l(S,{class:"absolute z-10 top-0 right-0 h-[300px] w-[420px]"}),l(E,{class:"absolute h-full w-full right-[7.5%]"}),t("div",W,[t("h1",X,c(o(a)),1),t("p",t1,c(o(d)),1)]),l(U,{class:"absolute z-50 w-full bg-no-repeat content-bottom h-[15vw] lg:h-[22vw] right-[32%] bottom-0"})])])}}};export{s1 as default}; diff --git a/public/build/assets/LayoutLogin.ba38ab08.js b/public/build/assets/LayoutLogin.ba38ab08.js deleted file mode 100644 index 4a2d0bef9..000000000 --- a/public/build/assets/LayoutLogin.ba38ab08.js +++ /dev/null @@ -1 +0,0 @@ -import{N as r}from"./NotificationRoot.9d4c0db9.js";import{f as l}from"./main.6ceeb72d.js";import{k as i,r as n,o,e as t,f as a,h as s,u as c,l as u}from"./vendor.d12b5734.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 e=i(()=>window.customer_logo?window.customer_logo:!1);return(h,g)=>{const m=n("router-view");return o(),t("div",d,[a(r),s("div",p,[c(e)?(o(),t("img",{key:1,src:c(e),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}; diff --git a/public/build/assets/LineChart.dd592086.js b/public/build/assets/LineChart.6775a7d1.js similarity index 99% rename from public/build/assets/LineChart.dd592086.js rename to public/build/assets/LineChart.6775a7d1.js index a4a8ce8ad..419e2928a 100644 --- a/public/build/assets/LineChart.dd592086.js +++ b/public/build/assets/LineChart.6775a7d1.js @@ -1,4 +1,4 @@ -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.d12b5734.js";import{b as oo}from"./main.6ceeb72d.js";var ta={exports:{}};/*! +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.d12b5734.js";import{b as oo}from"./main.c7bd6c0e.js";var ta={exports:{}};/*! * Chart.js v2.9.4 * https://www.chartjs.org * (c) 2020 Chart.js Contributors diff --git a/public/build/assets/LoadingIcon.66b14768.js b/public/build/assets/LoadingIcon.58a27e40.js similarity index 88% rename from public/build/assets/LoadingIcon.66b14768.js rename to public/build/assets/LoadingIcon.58a27e40.js index 46ed569a2..25e0c10cd 100644 --- a/public/build/assets/LoadingIcon.66b14768.js +++ b/public/build/assets/LoadingIcon.58a27e40.js @@ -1 +1 @@ -import{_ as e}from"./main.6ceeb72d.js";import{o as c,e as s,h as o}from"./vendor.d12b5734.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{_ as e}from"./main.c7bd6c0e.js";import{o as c,e as s,h as o}from"./vendor.d12b5734.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}; diff --git a/public/build/assets/Login.2ff2ebf4.js b/public/build/assets/Login.02fe20ac.js similarity index 95% rename from public/build/assets/Login.2ff2ebf4.js rename to public/build/assets/Login.02fe20ac.js index 8bc7ef5e9..4d2a466f1 100644 --- a/public/build/assets/Login.2ff2ebf4.js +++ b/public/build/assets/Login.02fe20ac.js @@ -1 +1 @@ -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.d12b5734.js";import{u as K}from"./auth.974620c9.js";import"./main.6ceeb72d.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}; +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.d12b5734.js";import{u as K}from"./auth.a07e0850.js";import"./main.c7bd6c0e.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}; diff --git a/public/build/assets/Login.09265290.js b/public/build/assets/Login.5885977a.js similarity index 97% rename from public/build/assets/Login.09265290.js rename to public/build/assets/Login.5885977a.js index 42990fabc..d06e75bb4 100644 --- a/public/build/assets/Login.09265290.js +++ b/public/build/assets/Login.5885977a.js @@ -1 +1 @@ -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 B,h as _,i as h,t as I,U,a as j}from"./vendor.d12b5734.js";import{u as G,a as R}from"./main.6ceeb72d.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"),$)}},a=L(x,y(()=>s.loginData)),S=y(()=>o.value?"text":"password");async function q(){if(j.defaults.withCredentials=!0,a.value.$touch(),a.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,t)=>{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(a).email.$error&&e(a).email.$errors[0].$message,label:i.$t("login.email"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.email,"onUpdate:modelValue":t[0]||(t[0]=r=>e(s).loginData.email=r),invalid:e(a).email.$error,focus:"",type:"email",name:"email",onInput:t[1]||(t[1]=r=>e(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(f,{error:e(a).password.$error&&e(a).password.$errors[0].$message,label:i.$t("login.password"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.password,"onUpdate:modelValue":t[4]||(t[4]=r=>e(s).loginData.password=r),invalid:e(a).password.$error,type:e(S),name:"password",onInput:t[5]||(t[5]=r=>e(a).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:t[2]||(t[2]=r=>B(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:t[3]||(t[3]=r=>B(o)?o.value=!e(o):o=!e(o))}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["error","label"]),_("div",F,[_("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}; +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 B,h as _,i as h,t as I,U,a as j}from"./vendor.d12b5734.js";import{u as G,a as R}from"./main.c7bd6c0e.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"),$)}},a=L(x,y(()=>s.loginData)),S=y(()=>o.value?"text":"password");async function q(){if(j.defaults.withCredentials=!0,a.value.$touch(),a.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,t)=>{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(a).email.$error&&e(a).email.$errors[0].$message,label:i.$t("login.email"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.email,"onUpdate:modelValue":t[0]||(t[0]=r=>e(s).loginData.email=r),invalid:e(a).email.$error,focus:"",type:"email",name:"email",onInput:t[1]||(t[1]=r=>e(a).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["error","label"]),n(f,{error:e(a).password.$error&&e(a).password.$errors[0].$message,label:i.$t("login.password"),class:"mb-4",required:""},{default:u(()=>[n(g,{modelValue:e(s).loginData.password,"onUpdate:modelValue":t[4]||(t[4]=r=>e(s).loginData.password=r),invalid:e(a).password.$error,type:e(S),name:"password",onInput:t[5]||(t[5]=r=>e(a).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:t[2]||(t[2]=r=>B(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:t[3]||(t[3]=r=>B(o)?o.value=!e(o):o=!e(o))}))]),_:1},8,["modelValue","invalid","type"])]),_:1},8,["error","label"]),_("div",F,[_("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}; diff --git a/public/build/assets/MailConfigSetting.d1476293.js b/public/build/assets/MailConfigSetting.50d2b38b.js similarity index 99% rename from public/build/assets/MailConfigSetting.d1476293.js rename to public/build/assets/MailConfigSetting.50d2b38b.js index fb709a48a..dc5ca3add 100644 --- a/public/build/assets/MailConfigSetting.d1476293.js +++ b/public/build/assets/MailConfigSetting.50d2b38b.js @@ -1 +1 @@ -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.d12b5734.js";import{u as x}from"./mail-driver.c62711d2.js";import{c as H}from"./main.6ceeb72d.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}; +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.d12b5734.js";import{u as x}from"./mail-driver.b57a1b96.js";import{c as H}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/NoteModal.62a64a69.js b/public/build/assets/NoteModal.c9605dba.js similarity index 92% rename from public/build/assets/NoteModal.62a64a69.js rename to public/build/assets/NoteModal.c9605dba.js index e42e053c4..3ecaff48f 100644 --- a/public/build/assets/NoteModal.62a64a69.js +++ b/public/build/assets/NoteModal.c9605dba.js @@ -1 +1 @@ -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 b,L as w,M as S,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.d12b5734.js";import{h as $,c as re,u as ie,i as ue,k as le}from"./main.6ceeb72d.js";import{u as ce}from"./payment.ef13b90b.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=b(()=>s.active&&s.componentName==="NoteModal"),G=b(()=>({currentNote:{name:{required:w.withMessage(N("validation.required"),S),minLength:w.withMessage(N("validation.name_min_length",{count:3}),Y(3))},notes:{required:w.withMessage(N("validation.required"),S)},type:{required:w.withMessage(N("validation.required"),S)}}})),r=Z(G,b(()=>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}; +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.d12b5734.js";import{h as $,c as re,u as ie,i as ue,k as le}from"./main.c7bd6c0e.js";import{u as ce}from"./payment.2b6f850e.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}; diff --git a/public/build/assets/NotesSetting.eb35e797.js b/public/build/assets/NotesSetting.06a58218.js similarity index 96% rename from public/build/assets/NotesSetting.eb35e797.js rename to public/build/assets/NotesSetting.06a58218.js index aa705f12e..e83199382 100644 --- a/public/build/assets/NotesSetting.eb35e797.js +++ b/public/build/assets/NotesSetting.06a58218.js @@ -1 +1 @@ -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.d12b5734.js";import{j as x,u as I,e as M,c as j,g as D}from"./main.6ceeb72d.js";import{u as A,_ as H}from"./NoteModal.62a64a69.js";import"./payment.ef13b90b.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{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.d12b5734.js";import{j as x,u as I,e as M,c as j,g as D}from"./main.c7bd6c0e.js";import{u as A,_ as H}from"./NoteModal.c9605dba.js";import"./payment.2b6f850e.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}; diff --git a/public/build/assets/NotificationRoot.9d4c0db9.js b/public/build/assets/NotificationRoot.b2aa5501.js similarity index 98% rename from public/build/assets/NotificationRoot.9d4c0db9.js rename to public/build/assets/NotificationRoot.b2aa5501.js index 88f1b2ec0..08d6002cf 100644 --- a/public/build/assets/NotificationRoot.9d4c0db9.js +++ b/public/build/assets/NotificationRoot.b2aa5501.js @@ -1 +1 @@ -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.d12b5734.js";import{u as v,_ as b}from"./main.6ceeb72d.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 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.d12b5734.js";import{u as v,_ as b}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/NotificationsSetting.8d66d8e5.js b/public/build/assets/NotificationsSetting.40dfd6be.js similarity index 97% rename from public/build/assets/NotificationsSetting.8d66d8e5.js rename to public/build/assets/NotificationsSetting.40dfd6be.js index 17467b043..ca4521245 100644 --- a/public/build/assets/NotificationsSetting.8d66d8e5.js +++ b/public/build/assets/NotificationsSetting.40dfd6be.js @@ -1 +1 @@ -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.d12b5734.js";import{b as T}from"./main.6ceeb72d.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{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.d12b5734.js";import{b as T}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/PaymentModeModal.89922a6d.js b/public/build/assets/PaymentModeModal.2e1f1512.js similarity index 94% rename from public/build/assets/PaymentModeModal.89922a6d.js rename to public/build/assets/PaymentModeModal.2e1f1512.js index 2c6db1fc3..731d0ca05 100644 --- a/public/build/assets/PaymentModeModal.89922a6d.js +++ b/public/build/assets/PaymentModeModal.2e1f1512.js @@ -1 +1 @@ -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.d12b5734.js";import{u as D}from"./payment.ef13b90b.js";import{c as L}from"./main.6ceeb72d.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)),b=p(()=>o.active&&o.componentName==="PaymentModeModal");async function g(){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(b),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(g,["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 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.d12b5734.js";import{u as D}from"./payment.2b6f850e.js";import{c as L}from"./main.c7bd6c0e.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)),b=p(()=>o.active&&o.componentName==="PaymentModeModal");async function g(){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(b),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(g,["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 _}; diff --git a/public/build/assets/PaymentsModeSetting.94f9fd63.js b/public/build/assets/PaymentsModeSetting.c12111f3.js similarity index 79% rename from public/build/assets/PaymentsModeSetting.94f9fd63.js rename to public/build/assets/PaymentsModeSetting.c12111f3.js index ee8e2d16e..8b1bbca5a 100644 --- a/public/build/assets/PaymentsModeSetting.94f9fd63.js +++ b/public/build/assets/PaymentsModeSetting.c12111f3.js @@ -1 +1 @@ -import{J as D,G as I,ah as x,r as d,o as p,l as h,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.d12b5734.js";import{u as P}from"./payment.ef13b90b.js";import{j as C,u as F,e as H,c as S}from"./main.6ceeb72d.js";import{_ as L}from"./PaymentModeModal.89922a6d.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"),b=d("BaseDropdown");return p(),h(b,null,{activator:a(()=>[M(f).name==="paymentModes.view"?(p(),h(i,{key:0,variant:"primary"},{default:a(()=>[t(n,{name:"DotsHorizontalIcon",class:"h-5 text-white"})]),_:1})):(p(),h(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"),b=d("BaseSettingCard");return p(),N(T,null,[t(L),t(b,{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}; +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.d12b5734.js";import{u as P}from"./payment.2b6f850e.js";import{j as C,u as F,e as H,c as S}from"./main.c7bd6c0e.js";import{_ as L}from"./PaymentModeModal.2e1f1512.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}; diff --git a/public/build/assets/PreferencesSetting.ef36081e.js b/public/build/assets/PreferencesSetting.e050bdf7.js similarity index 99% rename from public/build/assets/PreferencesSetting.ef36081e.js rename to public/build/assets/PreferencesSetting.e050bdf7.js index a0d2b1476..5be8c2184 100644 --- a/public/build/assets/PreferencesSetting.ef36081e.js +++ b/public/build/assets/PreferencesSetting.e050bdf7.js @@ -1 +1 @@ -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.d12b5734.js";import{b as te,d as ae}from"./main.6ceeb72d.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 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.d12b5734.js";import{b as te,d as ae}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/RecurringInvoiceCreate.2b74f4d5.js b/public/build/assets/RecurringInvoiceCreate.31b71237.js similarity index 96% rename from public/build/assets/RecurringInvoiceCreate.2b74f4d5.js rename to public/build/assets/RecurringInvoiceCreate.31b71237.js index 201f204a4..506196527 100644 --- a/public/build/assets/RecurringInvoiceCreate.2b74f4d5.js +++ b/public/build/assets/RecurringInvoiceCreate.31b71237.js @@ -1 +1 @@ -var ie=Object.defineProperty,re=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var E=(e,t,d)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[t]=d,P=(e,t)=>{for(var d in t||(t={}))ae.call(t,d)&&E(e,d,t[d]);if(D)for(var d of D(t))le.call(t,d)&&E(e,d,t[d]);return e},O=(e,t)=>re(e,oe(t));import{G as A,B as U,a0 as se,k as q,C as G,D as ce,r as g,o as y,e as H,h as v,f as r,u as n,t as T,w as u,l as _,j as C,F as z,$ as ue,J as de,aN as ge,L as b,M as S,O as x,aP as ve,T as me,m as fe,i as ye,U as be}from"./vendor.d12b5734.js";import{t as J,d as Ie,b as we,m as $e,r as _e,c as Re,l as pe,u as qe}from"./main.6ceeb72d.js";import{_ as Se,a as he,b as Be,c as Ce,d as Ve,e as Fe,f as Le}from"./SalesTax.285fbaa6.js";import{_ as Me}from"./ExchangeRateConverter.2338e5bf.js";import{_ as Te}from"./CreateCustomFields.1cd1f052.js";import{_ as Ne}from"./TaxTypeModal.5bc92e5b.js";import"./DragIcon.e6c221f0.js";import"./SelectNotePopup.9f1463c3.js";import"./NoteModal.62a64a69.js";import"./payment.ef13b90b.js";import"./exchange-rate.28527a8e.js";const ke={class:"col-span-5 pr-0"},Ue={class:"flex mt-7"},xe={class:"relative w-20 mt-8"},je={class:"ml-2"},De={class:"p-0 mb-1 leading-snug text-left text-black"},Ee={class:"p-0 m-0 text-xs leading-tight text-left text-gray-500",style:{"max-width":"480px"}},Pe={class:"grid grid-cols-1 col-span-7 gap-4 mt-8 lg:gap-6 lg:mt-0 lg:grid-cols-2"},Oe={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(e){const t=e,d=A(),i=J(),F=Ie(),R=U(!1),N=se([{label:"None",value:"NONE"},{label:"Date",value:"DATE"},{label:"Count",value:"COUNT"}]),h=q(()=>i.newRecurringInvoice.selectedFrequency&&i.newRecurringInvoice.selectedFrequency.value==="CUSTOM"),k=q(()=>t.isEdit?F.config.recurring_invoice_status.update_status:F.config.recurring_invoice_status.create_status);G(()=>i.newRecurringInvoice.selectedFrequency,a=>{i.isFetchingInitialSettings||(a&&a.value!=="CUSTOM"?i.newRecurringInvoice.frequency=a.value:i.newRecurringInvoice.frequency=null)}),ce(()=>{d.params.id||B()});function c(a){return i.newRecurringInvoice.limit_by===a}const m=ue(()=>{B()},500);async function B(){const a=i.newRecurringInvoice.frequency;if(!a)return;R.value=!0;let o={starts_at:i.newRecurringInvoice.starts_at,frequency:a};try{await i.fetchRecurringInvoiceFrequencyDate(o)}catch(I){console.error(I),R.value=!1}R.value=!1}return(a,o)=>{const I=g("BaseCustomerSelectPopup"),L=g("BaseSwitch"),w=g("BaseDatePicker"),f=g("BaseInputGroup"),V=g("BaseMultiselect"),p=g("BaseInput");return y(),H(z,null,[v("div",ke,[r(I,{modelValue:n(i).newRecurringInvoice.customer,"onUpdate:modelValue":o[0]||(o[0]=l=>n(i).newRecurringInvoice.customer=l),valid:e.v.customer_id,"content-loading":e.isLoading,type:"recurring-invoice"},null,8,["modelValue","valid","content-loading"]),v("div",Ue,[v("div",xe,[r(L,{modelValue:n(i).newRecurringInvoice.send_automatically,"onUpdate:modelValue":o[1]||(o[1]=l=>n(i).newRecurringInvoice.send_automatically=l),class:"absolute -top-4"},null,8,["modelValue"])]),v("div",je,[v("p",De,T(a.$t("recurring_invoices.send_automatically")),1),v("p",Ee,T(a.$t("recurring_invoices.send_automatically_desc")),1)])])]),v("div",Pe,[r(f,{label:a.$t("recurring_invoices.starts_at"),"content-loading":e.isLoading,required:"",error:e.v.starts_at.$error&&e.v.starts_at.$errors[0].$message},{default:u(()=>[r(w,{modelValue:n(i).newRecurringInvoice.starts_at,"onUpdate:modelValue":o[2]||(o[2]=l=>n(i).newRecurringInvoice.starts_at=l),"content-loading":e.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar",invalid:e.v.starts_at.$error,onChange:o[3]||(o[3]=l=>B())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),r(f,{label:a.$t("recurring_invoices.next_invoice_date"),"content-loading":e.isLoading,required:""},{default:u(()=>[r(w,{modelValue:n(i).newRecurringInvoice.next_invoice_at,"onUpdate:modelValue":o[4]||(o[4]=l=>n(i).newRecurringInvoice.next_invoice_at=l),"content-loading":e.isLoading,"calendar-button":!0,disabled:!0,loading:R.value,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading","loading"])]),_:1},8,["label","content-loading"]),r(f,{label:a.$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:u(()=>[r(V,{modelValue:n(i).newRecurringInvoice.limit_by,"onUpdate:modelValue":o[5]||(o[5]=l=>n(i).newRecurringInvoice.limit_by=l),"content-loading":e.isLoading,options:n(N),label:"label",invalid:e.v.limit_by.$error,"value-prop":"value"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),c("DATE")?(y(),_(f,{key:0,label:a.$t("recurring_invoices.limit_date"),"content-loading":e.isLoading,required:c("DATE"),error:e.v.limit_date.$error&&e.v.limit_date.$errors[0].$message},{default:u(()=>[r(w,{modelValue:n(i).newRecurringInvoice.limit_date,"onUpdate:modelValue":o[6]||(o[6]=l=>n(i).newRecurringInvoice.limit_date=l),"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"])):C("",!0),c("COUNT")?(y(),_(f,{key:1,label:a.$t("recurring_invoices.count"),"content-loading":e.isLoading,required:c("COUNT"),error:e.v.limit_count.$error&&e.v.limit_count.$errors[0].$message},{default:u(()=>[r(p,{modelValue:n(i).newRecurringInvoice.limit_count,"onUpdate:modelValue":o[7]||(o[7]=l=>n(i).newRecurringInvoice.limit_count=l),"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"])):C("",!0),r(f,{label:a.$t("recurring_invoices.status"),required:"","content-loading":e.isLoading,error:e.v.status.$error&&e.v.status.$errors[0].$message},{default:u(()=>[r(V,{modelValue:n(i).newRecurringInvoice.status,"onUpdate:modelValue":o[8]||(o[8]=l=>n(i).newRecurringInvoice.status=l),options:n(k),"content-loading":e.isLoading,invalid:e.v.status.$error,placeholder:a.$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(f,{label:a.$t("recurring_invoices.frequency.select_frequency"),required:"","content-loading":e.isLoading,error:e.v.selectedFrequency.$error&&e.v.selectedFrequency.$errors[0].$message},{default:u(()=>[r(V,{modelValue:n(i).newRecurringInvoice.selectedFrequency,"onUpdate:modelValue":o[9]||(o[9]=l=>n(i).newRecurringInvoice.selectedFrequency=l),"content-loading":e.isLoading,options:n(i).frequencies,label:"label",invalid:e.v.selectedFrequency.$error,object:"",onChange:B},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),n(h)?(y(),_(f,{key:2,label:a.$t("recurring_invoices.frequency.title"),"content-loading":e.isLoading,required:"",error:e.v.frequency.$error&&e.v.frequency.$errors[0].$message},{default:u(()=>[r(p,{modelValue:n(i).newRecurringInvoice.frequency,"onUpdate:modelValue":[o[10]||(o[10]=l=>n(i).newRecurringInvoice.frequency=l),n(m)],"content-loading":e.isLoading,disabled:!n(h),invalid:e.v.frequency.$error,loading:R.value},null,8,["modelValue","content-loading","disabled","invalid","loading","onUpdate:modelValue"])]),_:1},8,["label","content-loading","error"])):C("",!0),r(Me,{store:n(i),"store-prop":"newRecurringInvoice",v:e.v,"is-loading":e.isLoading,"is-edit":e.isEdit,"customer-currency":n(i).newRecurringInvoice.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])])],64)}}},Ae=["onSubmit"],Ge={class:"flex"},He={class:"grid-cols-12 gap-8 mt-6 mb-8 lg:grid"},ze={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},Je={class:"w-full relative lg:w-1/2"},ln={setup(e){const t=J(),d=we(),i=$e(),F=_e(),R=Re(),N=pe(),h="newRecurringInvoice",k=qe(),{t:c}=de();let m=U(!1);const B=U(["customer","company","customerCustom","invoice","invoiceCustom"]);let a=A(),o=ge(),I=q(()=>t.isFetchingInvoice||t.isFetchingInitialSettings),L=q(()=>w.value?c("recurring_invoices.edit_invoice"):c("recurring_invoices.new_invoice")),w=q(()=>a.name==="recurring-invoices.edit");const f=q(()=>d.selectedCompanySettings.sales_tax_us_enabled==="YES"&&F.salesTaxUSEnabled),V={starts_at:{required:b.withMessage(c("validation.required"),S)},status:{required:b.withMessage(c("validation.required"),S)},frequency:{required:b.withMessage(c("validation.required"),S)},limit_by:{required:b.withMessage(c("validation.required"),S)},limit_date:{required:b.withMessage(c("validation.required"),x(function(){return t.newRecurringInvoice.limit_by==="DATE"}))},limit_count:{required:b.withMessage(c("validation.required"),x(function(){return t.newRecurringInvoice.limit_by==="COUNT"}))},selectedFrequency:{required:b.withMessage(c("validation.required"),S)},customer_id:{required:b.withMessage(c("validation.required"),S)},exchange_rate:{required:x(function(){return b.withMessage(c("validation.required"),S),t.showExchangeRate}),decimal:b.withMessage(c("validation.valid_exchange_rate"),ve)}},p=me(V,q(()=>t.newRecurringInvoice),{$scope:h});t.resetCurrentRecurringInvoice(),t.fetchRecurringInvoiceInitialSettings(w.value),i.resetCustomFields(),p.value.$reset,G(()=>t.newRecurringInvoice.customer,s=>{s&&s.currency?t.newRecurringInvoice.currency=s.currency:t.newRecurringInvoice.currency=d.selectedCompanyCurrency});async function l(){if(p.value.$touch(),p.value.$invalid)return!1;m.value=!0;let s=O(P({},t.newRecurringInvoice),{sub_total:t.getSubTotal,total:t.getTotal,tax:t.getTotalTax});if(s.customer&&!s.customer.email&&s.send_automatically){k.showNotification({type:"error",message:c("recurring_invoices.add_customer_email")}),Y(),m.value=!1;return}a.params.id?t.updateRecurringInvoice(s).then($=>{$.data.data&&o.push(`/admin/recurring-invoices/${$.data.data.id}/view`),m.value=!1}).catch($=>{m.value=!1}):K(s)}async function Y(){let s=t.newRecurringInvoice.customer.id;await N.fetchCustomer(s),R.openModal({title:c("customers.edit_customer"),componentName:"CustomerModal"})}function K(s){t.addRecurringInvoice(s).then($=>{$.data.data&&o.push(`/admin/recurring-invoices/${$.data.data.id}/view`),m.value=!1}).catch($=>{m.value=!1})}return(s,$)=>{const M=g("BaseBreadcrumbItem"),Q=g("BaseBreadcrumb"),j=g("BaseButton"),W=g("router-link"),X=g("BaseIcon"),Z=g("BasePageHeader"),ee=g("BaseScrollPane"),ne=g("BasePage");return y(),H(z,null,[r(Se),r(he),r(Ne),n(f)&&!n(I)?(y(),_(Be,{key:0,store:n(t),"store-prop":"newRecurringInvoice","is-edit":n(w),customer:n(t).newRecurringInvoice.customer},null,8,["store","is-edit","customer"])):C("",!0),r(ne,{class:"relative invoice-create-page"},{default:u(()=>[v("form",{onSubmit:be(l,["prevent"])},[r(Z,{title:n(L)},{actions:u(()=>[r(W,{to:`/invoices/pdf/${n(t).newRecurringInvoice.unique_hash}`},{default:u(()=>[s.$route.name==="invoices.edit"?(y(),_(j,{key:0,target:"_blank",class:"mr-3",variant:"primary-outline",type:"button"},{default:u(()=>[v("span",Ge,T(s.$t("general.view_pdf")),1)]),_:1})):C("",!0)]),_:1},8,["to"]),r(j,{loading:n(m),disabled:n(m),variant:"primary",type:"submit"},{left:u(te=>[n(m)?C("",!0):(y(),_(X,{key:0,name:"SaveIcon",class:fe(te.class)},null,8,["class"]))]),default:u(()=>[ye(" "+T(s.$t("recurring_invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:u(()=>[r(Q,null,{default:u(()=>[r(M,{title:s.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(M,{title:s.$t("recurring_invoices.title",2),to:"/admin/recurring-invoices"},null,8,["title"]),s.$route.name==="invoices.edit"?(y(),_(M,{key:0,title:s.$t("recurring_invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(y(),_(M,{key:1,title:n(L),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),v("div",He,[r(Oe,{v:n(p),"is-loading":n(I),"is-edit":n(w)},null,8,["v","is-loading","is-edit"])]),r(ee,null,{default:u(()=>[r(Ce,{currency:n(t).newRecurringInvoice.currency,"is-loading":n(I),"item-validation-scope":h,store:n(t),"store-prop":"newRecurringInvoice"},null,8,["currency","is-loading","store"]),v("div",ze,[v("div",Je,[r(Ve,{store:n(t),"store-prop":"newRecurringInvoice",fields:B.value,type:"Invoice"},null,8,["store","fields"]),r(Te,{type:"Invoice","is-edit":n(w),"is-loading":n(I),store:n(t),"store-prop":"newRecurringInvoice","custom-field-scope":h,class:"mb-6"},null,8,["is-edit","is-loading","store"]),r(Fe,{store:n(t),"store-prop":"newRecurringInvoice"},null,8,["store"])]),r(Le,{currency:n(t).newRecurringInvoice.currency,"is-loading":n(I),store:n(t),"store-prop":"newRecurringInvoice","tax-popup-type":"invoice"},null,8,["currency","is-loading","store"])])]),_:1})],40,Ae)]),_:1})],64)}}};export{ln as default}; +var ie=Object.defineProperty,re=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var E=(e,t,d)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[t]=d,P=(e,t)=>{for(var d in t||(t={}))ae.call(t,d)&&E(e,d,t[d]);if(D)for(var d of D(t))le.call(t,d)&&E(e,d,t[d]);return e},O=(e,t)=>re(e,oe(t));import{G as A,B as U,a0 as se,k as q,C as G,D as ce,r as g,o as y,e as H,h as v,f as r,u as n,t as T,w as u,l as _,j as C,F as z,$ as ue,J as de,aN as ge,L as b,M as S,O as x,aP as ve,T as me,m as fe,i as ye,U as be}from"./vendor.d12b5734.js";import{t as J,d as Ie,b as we,m as $e,r as _e,c as Re,l as pe,u as qe}from"./main.c7bd6c0e.js";import{_ as Se,a as he,b as Be,c as Ce,d as Ve,e as Fe,f as Le}from"./SalesTax.67357751.js";import{_ as Me}from"./ExchangeRateConverter.6e0e36e7.js";import{_ as Te}from"./CreateCustomFields.04aba193.js";import{_ as Ne}from"./TaxTypeModal.3db473e9.js";import"./DragIcon.d9f643cf.js";import"./SelectNotePopup.ead4330d.js";import"./NoteModal.c9605dba.js";import"./payment.2b6f850e.js";import"./exchange-rate.70a72e5f.js";const ke={class:"col-span-5 pr-0"},Ue={class:"flex mt-7"},xe={class:"relative w-20 mt-8"},je={class:"ml-2"},De={class:"p-0 mb-1 leading-snug text-left text-black"},Ee={class:"p-0 m-0 text-xs leading-tight text-left text-gray-500",style:{"max-width":"480px"}},Pe={class:"grid grid-cols-1 col-span-7 gap-4 mt-8 lg:gap-6 lg:mt-0 lg:grid-cols-2"},Oe={props:{v:{type:Object,default:null},isLoading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},setup(e){const t=e,d=A(),i=J(),F=Ie(),R=U(!1),N=se([{label:"None",value:"NONE"},{label:"Date",value:"DATE"},{label:"Count",value:"COUNT"}]),h=q(()=>i.newRecurringInvoice.selectedFrequency&&i.newRecurringInvoice.selectedFrequency.value==="CUSTOM"),k=q(()=>t.isEdit?F.config.recurring_invoice_status.update_status:F.config.recurring_invoice_status.create_status);G(()=>i.newRecurringInvoice.selectedFrequency,a=>{i.isFetchingInitialSettings||(a&&a.value!=="CUSTOM"?i.newRecurringInvoice.frequency=a.value:i.newRecurringInvoice.frequency=null)}),ce(()=>{d.params.id||B()});function c(a){return i.newRecurringInvoice.limit_by===a}const m=ue(()=>{B()},500);async function B(){const a=i.newRecurringInvoice.frequency;if(!a)return;R.value=!0;let o={starts_at:i.newRecurringInvoice.starts_at,frequency:a};try{await i.fetchRecurringInvoiceFrequencyDate(o)}catch(I){console.error(I),R.value=!1}R.value=!1}return(a,o)=>{const I=g("BaseCustomerSelectPopup"),L=g("BaseSwitch"),w=g("BaseDatePicker"),f=g("BaseInputGroup"),V=g("BaseMultiselect"),p=g("BaseInput");return y(),H(z,null,[v("div",ke,[r(I,{modelValue:n(i).newRecurringInvoice.customer,"onUpdate:modelValue":o[0]||(o[0]=l=>n(i).newRecurringInvoice.customer=l),valid:e.v.customer_id,"content-loading":e.isLoading,type:"recurring-invoice"},null,8,["modelValue","valid","content-loading"]),v("div",Ue,[v("div",xe,[r(L,{modelValue:n(i).newRecurringInvoice.send_automatically,"onUpdate:modelValue":o[1]||(o[1]=l=>n(i).newRecurringInvoice.send_automatically=l),class:"absolute -top-4"},null,8,["modelValue"])]),v("div",je,[v("p",De,T(a.$t("recurring_invoices.send_automatically")),1),v("p",Ee,T(a.$t("recurring_invoices.send_automatically_desc")),1)])])]),v("div",Pe,[r(f,{label:a.$t("recurring_invoices.starts_at"),"content-loading":e.isLoading,required:"",error:e.v.starts_at.$error&&e.v.starts_at.$errors[0].$message},{default:u(()=>[r(w,{modelValue:n(i).newRecurringInvoice.starts_at,"onUpdate:modelValue":o[2]||(o[2]=l=>n(i).newRecurringInvoice.starts_at=l),"content-loading":e.isLoading,"calendar-button":!0,"calendar-button-icon":"calendar",invalid:e.v.starts_at.$error,onChange:o[3]||(o[3]=l=>B())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","content-loading","error"]),r(f,{label:a.$t("recurring_invoices.next_invoice_date"),"content-loading":e.isLoading,required:""},{default:u(()=>[r(w,{modelValue:n(i).newRecurringInvoice.next_invoice_at,"onUpdate:modelValue":o[4]||(o[4]=l=>n(i).newRecurringInvoice.next_invoice_at=l),"content-loading":e.isLoading,"calendar-button":!0,disabled:!0,loading:R.value,"calendar-button-icon":"calendar"},null,8,["modelValue","content-loading","loading"])]),_:1},8,["label","content-loading"]),r(f,{label:a.$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:u(()=>[r(V,{modelValue:n(i).newRecurringInvoice.limit_by,"onUpdate:modelValue":o[5]||(o[5]=l=>n(i).newRecurringInvoice.limit_by=l),"content-loading":e.isLoading,options:n(N),label:"label",invalid:e.v.limit_by.$error,"value-prop":"value"},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),c("DATE")?(y(),_(f,{key:0,label:a.$t("recurring_invoices.limit_date"),"content-loading":e.isLoading,required:c("DATE"),error:e.v.limit_date.$error&&e.v.limit_date.$errors[0].$message},{default:u(()=>[r(w,{modelValue:n(i).newRecurringInvoice.limit_date,"onUpdate:modelValue":o[6]||(o[6]=l=>n(i).newRecurringInvoice.limit_date=l),"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"])):C("",!0),c("COUNT")?(y(),_(f,{key:1,label:a.$t("recurring_invoices.count"),"content-loading":e.isLoading,required:c("COUNT"),error:e.v.limit_count.$error&&e.v.limit_count.$errors[0].$message},{default:u(()=>[r(p,{modelValue:n(i).newRecurringInvoice.limit_count,"onUpdate:modelValue":o[7]||(o[7]=l=>n(i).newRecurringInvoice.limit_count=l),"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"])):C("",!0),r(f,{label:a.$t("recurring_invoices.status"),required:"","content-loading":e.isLoading,error:e.v.status.$error&&e.v.status.$errors[0].$message},{default:u(()=>[r(V,{modelValue:n(i).newRecurringInvoice.status,"onUpdate:modelValue":o[8]||(o[8]=l=>n(i).newRecurringInvoice.status=l),options:n(k),"content-loading":e.isLoading,invalid:e.v.status.$error,placeholder:a.$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(f,{label:a.$t("recurring_invoices.frequency.select_frequency"),required:"","content-loading":e.isLoading,error:e.v.selectedFrequency.$error&&e.v.selectedFrequency.$errors[0].$message},{default:u(()=>[r(V,{modelValue:n(i).newRecurringInvoice.selectedFrequency,"onUpdate:modelValue":o[9]||(o[9]=l=>n(i).newRecurringInvoice.selectedFrequency=l),"content-loading":e.isLoading,options:n(i).frequencies,label:"label",invalid:e.v.selectedFrequency.$error,object:"",onChange:B},null,8,["modelValue","content-loading","options","invalid"])]),_:1},8,["label","content-loading","error"]),n(h)?(y(),_(f,{key:2,label:a.$t("recurring_invoices.frequency.title"),"content-loading":e.isLoading,required:"",error:e.v.frequency.$error&&e.v.frequency.$errors[0].$message},{default:u(()=>[r(p,{modelValue:n(i).newRecurringInvoice.frequency,"onUpdate:modelValue":[o[10]||(o[10]=l=>n(i).newRecurringInvoice.frequency=l),n(m)],"content-loading":e.isLoading,disabled:!n(h),invalid:e.v.frequency.$error,loading:R.value},null,8,["modelValue","content-loading","disabled","invalid","loading","onUpdate:modelValue"])]),_:1},8,["label","content-loading","error"])):C("",!0),r(Me,{store:n(i),"store-prop":"newRecurringInvoice",v:e.v,"is-loading":e.isLoading,"is-edit":e.isEdit,"customer-currency":n(i).newRecurringInvoice.currency_id},null,8,["store","v","is-loading","is-edit","customer-currency"])])],64)}}},Ae=["onSubmit"],Ge={class:"flex"},He={class:"grid-cols-12 gap-8 mt-6 mb-8 lg:grid"},ze={class:"block mt-10 invoice-foot lg:flex lg:justify-between lg:items-start"},Je={class:"w-full relative lg:w-1/2"},ln={setup(e){const t=J(),d=we(),i=$e(),F=_e(),R=Re(),N=pe(),h="newRecurringInvoice",k=qe(),{t:c}=de();let m=U(!1);const B=U(["customer","company","customerCustom","invoice","invoiceCustom"]);let a=A(),o=ge(),I=q(()=>t.isFetchingInvoice||t.isFetchingInitialSettings),L=q(()=>w.value?c("recurring_invoices.edit_invoice"):c("recurring_invoices.new_invoice")),w=q(()=>a.name==="recurring-invoices.edit");const f=q(()=>d.selectedCompanySettings.sales_tax_us_enabled==="YES"&&F.salesTaxUSEnabled),V={starts_at:{required:b.withMessage(c("validation.required"),S)},status:{required:b.withMessage(c("validation.required"),S)},frequency:{required:b.withMessage(c("validation.required"),S)},limit_by:{required:b.withMessage(c("validation.required"),S)},limit_date:{required:b.withMessage(c("validation.required"),x(function(){return t.newRecurringInvoice.limit_by==="DATE"}))},limit_count:{required:b.withMessage(c("validation.required"),x(function(){return t.newRecurringInvoice.limit_by==="COUNT"}))},selectedFrequency:{required:b.withMessage(c("validation.required"),S)},customer_id:{required:b.withMessage(c("validation.required"),S)},exchange_rate:{required:x(function(){return b.withMessage(c("validation.required"),S),t.showExchangeRate}),decimal:b.withMessage(c("validation.valid_exchange_rate"),ve)}},p=me(V,q(()=>t.newRecurringInvoice),{$scope:h});t.resetCurrentRecurringInvoice(),t.fetchRecurringInvoiceInitialSettings(w.value),i.resetCustomFields(),p.value.$reset,G(()=>t.newRecurringInvoice.customer,s=>{s&&s.currency?t.newRecurringInvoice.currency=s.currency:t.newRecurringInvoice.currency=d.selectedCompanyCurrency});async function l(){if(p.value.$touch(),p.value.$invalid)return!1;m.value=!0;let s=O(P({},t.newRecurringInvoice),{sub_total:t.getSubTotal,total:t.getTotal,tax:t.getTotalTax});if(s.customer&&!s.customer.email&&s.send_automatically){k.showNotification({type:"error",message:c("recurring_invoices.add_customer_email")}),Y(),m.value=!1;return}a.params.id?t.updateRecurringInvoice(s).then($=>{$.data.data&&o.push(`/admin/recurring-invoices/${$.data.data.id}/view`),m.value=!1}).catch($=>{m.value=!1}):K(s)}async function Y(){let s=t.newRecurringInvoice.customer.id;await N.fetchCustomer(s),R.openModal({title:c("customers.edit_customer"),componentName:"CustomerModal"})}function K(s){t.addRecurringInvoice(s).then($=>{$.data.data&&o.push(`/admin/recurring-invoices/${$.data.data.id}/view`),m.value=!1}).catch($=>{m.value=!1})}return(s,$)=>{const M=g("BaseBreadcrumbItem"),Q=g("BaseBreadcrumb"),j=g("BaseButton"),W=g("router-link"),X=g("BaseIcon"),Z=g("BasePageHeader"),ee=g("BaseScrollPane"),ne=g("BasePage");return y(),H(z,null,[r(Se),r(he),r(Ne),n(f)&&!n(I)?(y(),_(Be,{key:0,store:n(t),"store-prop":"newRecurringInvoice","is-edit":n(w),customer:n(t).newRecurringInvoice.customer},null,8,["store","is-edit","customer"])):C("",!0),r(ne,{class:"relative invoice-create-page"},{default:u(()=>[v("form",{onSubmit:be(l,["prevent"])},[r(Z,{title:n(L)},{actions:u(()=>[r(W,{to:`/invoices/pdf/${n(t).newRecurringInvoice.unique_hash}`},{default:u(()=>[s.$route.name==="invoices.edit"?(y(),_(j,{key:0,target:"_blank",class:"mr-3",variant:"primary-outline",type:"button"},{default:u(()=>[v("span",Ge,T(s.$t("general.view_pdf")),1)]),_:1})):C("",!0)]),_:1},8,["to"]),r(j,{loading:n(m),disabled:n(m),variant:"primary",type:"submit"},{left:u(te=>[n(m)?C("",!0):(y(),_(X,{key:0,name:"SaveIcon",class:fe(te.class)},null,8,["class"]))]),default:u(()=>[ye(" "+T(s.$t("recurring_invoices.save_invoice")),1)]),_:1},8,["loading","disabled"])]),default:u(()=>[r(Q,null,{default:u(()=>[r(M,{title:s.$t("general.home"),to:"/admin/dashboard"},null,8,["title"]),r(M,{title:s.$t("recurring_invoices.title",2),to:"/admin/recurring-invoices"},null,8,["title"]),s.$route.name==="invoices.edit"?(y(),_(M,{key:0,title:s.$t("recurring_invoices.edit_invoice"),to:"#",active:""},null,8,["title"])):(y(),_(M,{key:1,title:n(L),to:"#",active:""},null,8,["title"]))]),_:1})]),_:1},8,["title"]),v("div",He,[r(Oe,{v:n(p),"is-loading":n(I),"is-edit":n(w)},null,8,["v","is-loading","is-edit"])]),r(ee,null,{default:u(()=>[r(Ce,{currency:n(t).newRecurringInvoice.currency,"is-loading":n(I),"item-validation-scope":h,store:n(t),"store-prop":"newRecurringInvoice"},null,8,["currency","is-loading","store"]),v("div",ze,[v("div",Je,[r(Ve,{store:n(t),"store-prop":"newRecurringInvoice",fields:B.value,type:"Invoice"},null,8,["store","fields"]),r(Te,{type:"Invoice","is-edit":n(w),"is-loading":n(I),store:n(t),"store-prop":"newRecurringInvoice","custom-field-scope":h,class:"mb-6"},null,8,["is-edit","is-loading","store"]),r(Fe,{store:n(t),"store-prop":"newRecurringInvoice"},null,8,["store"])]),r(Le,{currency:n(t).newRecurringInvoice.currency,"is-loading":n(I),store:n(t),"store-prop":"newRecurringInvoice","tax-popup-type":"invoice"},null,8,["currency","is-loading","store"])])]),_:1})],40,Ae)]),_:1})],64)}}};export{ln as default}; diff --git a/public/build/assets/RecurringInvoiceIndexDropdown.9324dca1.js b/public/build/assets/RecurringInvoiceIndexDropdown.b5cf79fe.js similarity index 97% rename from public/build/assets/RecurringInvoiceIndexDropdown.9324dca1.js rename to public/build/assets/RecurringInvoiceIndexDropdown.b5cf79fe.js index d7ad24d52..ef4ec0f29 100644 --- a/public/build/assets/RecurringInvoiceIndexDropdown.9324dca1.js +++ b/public/build/assets/RecurringInvoiceIndexDropdown.b5cf79fe.js @@ -1 +1 @@ -import{J as D,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.d12b5734.js";import{t as x,u as S,j as V,e as j,g as y}from"./main.6ceeb72d.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}=D(),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"),B=c("BaseDropdown");return a(),n(B,{"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{J as D,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.d12b5734.js";import{t as x,u as S,j as V,e as j,g as y}from"./main.c7bd6c0e.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}=D(),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"),B=c("BaseDropdown");return a(),n(B,{"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 _}; diff --git a/public/build/assets/ResetPassword.8084cc33.js b/public/build/assets/ResetPassword.609ea369.js similarity index 73% rename from public/build/assets/ResetPassword.8084cc33.js rename to public/build/assets/ResetPassword.609ea369.js index 10e798e43..99c91e226 100644 --- a/public/build/assets/ResetPassword.8084cc33.js +++ b/public/build/assets/ResetPassword.609ea369.js @@ -1 +1 @@ -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 f,e as P,f as n,w as p,u as e,l as _,x as b,i as U,t as A,U as R}from"./vendor.d12b5734.js";import{u as D}from"./global.db0572f0.js";import{u as O}from"./auth.974620c9.js";import"./main.6ceeb72d.js";const T=["onSubmit"],K={setup(F){const c=S(),y=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:c.params.token};v.value=!0;let d=B.resetPassword(o,c.params.company);v.value=!1,d.data&&y.push({name:"customer.login"})}}return(l,o)=>{const d=u("BaseInput"),w=u("BaseInputGroup"),k=u("EyeOffIcon"),h=u("EyeIcon"),q=u("BaseButton");return f(),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)?(f(),_(k,{key:0,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[2]||(o[2]=t=>b(a)?a.value=!e(a):a=!e(a))})):(f(),_(h,{key:1,class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:o[3]||(o[3]=t=>b(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{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.d12b5734.js";import{u as D}from"./global.1ac91de5.js";import{u as O}from"./auth.a07e0850.js";import"./main.c7bd6c0e.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}; diff --git a/public/build/assets/ResetPassword.93fbba47.js b/public/build/assets/ResetPassword.6fb90383.js similarity index 97% rename from public/build/assets/ResetPassword.93fbba47.js rename to public/build/assets/ResetPassword.6fb90383.js index a2ce2fde7..f69b61c37 100644 --- a/public/build/assets/ResetPassword.93fbba47.js +++ b/public/build/assets/ResetPassword.6fb90383.js @@ -1 +1 @@ -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.d12b5734.js";import{u as M,h as R}from"./main.6ceeb72d.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}; +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.d12b5734.js";import{u as M,h as R}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/RolesSettings.e13e057e.js b/public/build/assets/RolesSettings.9dd64fa2.js similarity index 99% rename from public/build/assets/RolesSettings.e13e057e.js rename to public/build/assets/RolesSettings.9dd64fa2.js index 08d5e73e2..2c5c79f93 100644 --- a/public/build/assets/RolesSettings.e13e057e.js +++ b/public/build/assets/RolesSettings.9dd64fa2.js @@ -1 +1 @@ -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.6ceeb72d.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.d12b5734.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 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.c7bd6c0e.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.d12b5734.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}; diff --git a/public/build/assets/SalesTax.285fbaa6.js b/public/build/assets/SalesTax.67357751.js similarity index 99% rename from public/build/assets/SalesTax.285fbaa6.js rename to public/build/assets/SalesTax.67357751.js index 4892a7c69..7b45b0187 100644 --- a/public/build/assets/SalesTax.285fbaa6.js +++ b/public/build/assets/SalesTax.67357751.js @@ -1 +1 @@ -var Se=Object.defineProperty,Ie=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var ke=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var ye=(s,t,e)=>t in s?Se(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,N=(s,t)=>{for(var e in t||(t={}))ke.call(t,e)&&ye(s,e,t[e]);if(pe)for(var e of pe(t))Te.call(t,e)&&ye(s,e,t[e]);return s},G=(s,t)=>Ie(s,Pe(t));import{q as ee,c as H,e as ae,b as te,p as fe,g as ne,T as Ce,k as Me,u as De,d as Ve}from"./main.6ceeb72d.js";import{D as je,d as qe}from"./DragIcon.e6c221f0.js";import{B as W,a0 as xe,ah as re,J,k as B,C as le,r as y,o as l,e as $,h as n,t as h,f as a,V as Ae,u as o,w as c,i as E,l as q,j as L,G as Ee,A as Z,L as O,M as R,b2 as _e,S as oe,aX as Le,T as ie,x as K,F as Q,y as se,H as ge,a7 as Ue,W as Oe,m as X,Y as ze,X as Ne,Z as Fe,N as Ye,D as he,U as be}from"./vendor.d12b5734.js";import{_ as Ge}from"./SelectNotePopup.9f1463c3.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=n("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(s,{emit:t}){const e=s,r=ee(),w=H(),b=ae(),S=W(null),f=xe(N({},e.taxData));re("utils");const{t:D}=J(),p=B(()=>r.taxTypes.map(u=>N({},u)).map(u=>(e.taxes.find(x=>x.tax_type_id===u.id)?u.disabled=!0:u.disabled=!1,u))),j=B(()=>f.compound_tax&&e.total?(e.total+e.totalTax)*f.percent/100:e.total&&f.percent?e.total*f.percent/100:0);le(()=>e.total,()=>{T()}),le(()=>e.totalTax,()=>{T()}),e.taxData.tax_type_id>0&&(S.value=r.taxTypes.find(m=>m.id===e.taxData.tax_type_id)),T();function V(m){f.percent=m.percent,f.tax_type_id=m.id,f.compound_tax=m.compound_tax,f.name=m.name,T()}function T(){f.tax_type_id!==0&&t("update",{index:e.index,item:G(N({},f),{amount:j.value})})}function d(){let m={itemIndex:e.itemIndex,taxIndex:e.index};w.openModal({title:D("settings.tax_types.add_tax"),componentName:"TaxTypeModal",data:m,size:"sm"})}function i(m){e.store.$patch(u=>{u[e.storeProp].items[e.itemIndex].taxes.splice(m,1)})}return(m,u)=>{const k=y("BaseIcon"),x=y("BaseMultiselect"),M=y("BaseFormatMoney");return l(),$("div",We,[n("div",Re,[n("label",Xe,h(m.$t("invoices.item.tax")),1),a(x,{modelValue:S.value,"onUpdate:modelValue":[u[0]||(u[0]=C=>S.value=C),u[1]||(u[1]=C=>V(C))],"value-prop":"id",options:o(p),placeholder:m.$t("general.select_a_tax"),"open-direction":"top","track-by":"name",searchable:"",object:"",label:"name"},Ae({singlelabel:c(({value:C})=>[n("div",He,h(C.name)+" - "+h(C.percent)+" % ",1)]),option:c(({option:C})=>[E(h(C.name)+" - "+h(C.percent)+" % ",1)]),_:2},[o(b).hasAbilities(s.ability)?{name:"action",fn:c(()=>[n("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:d},[a(k,{name:"CheckCircleIcon",class:"h-5 text-primary-400"}),n("label",Je,h(m.$t("invoices.add_new_tax")),1)])])}:void 0]),1032,["modelValue","options","placeholder"]),Ze]),n("div",Ke,[a(M,{amount:o(j),currency:s.currency},null,8,["amount","currency"])]),n("div",Qe,[s.taxes.length&&s.index!==s.taxes.length-1?(l(),q(k,{key:0,name:"TrashIcon",class:"h-5 text-gray-700 cursor-pointer",onClick:u[2]||(u[2]=C=>i(s.index))})):L("",!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"},at=n("col",{style:{width:"40%","min-width":"280px"}},null,-1),nt=n("col",{style:{width:"10%","min-width":"120px"}},null,-1),rt=n("col",{style:{width:"15%","min-width":"120px"}},null,-1),lt={key:0,style:{width:"15%","min-width":"160px"}},it=n("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"},ft={class:"flex-auto flex-fill bd-highlight"},xt={class:"relative w-full"},_t={key:0,class:"px-5 py-4 text-left align-top"},gt={class:"flex flex-col"},ht={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},St=n("td",{class:"px-5 py-4 text-left align-top"},null,-1),It={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(s,{emit:t}){const e=s,r=te(),w=fe();Ee();const{t:b}=J(),S=B({get:()=>e.itemData.quantity,set:g=>{A("quantity",parseFloat(g))}}),f=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);A("price",P)}else A("price",g)}}),D=B(()=>e.itemData.price*e.itemData.quantity),p=B({get:()=>e.itemData.discount,set:g=>{e.itemData.discount_type==="percentage"?A("discount_val",D.value*g/100):A("discount_val",Math.round(g*100)),A("discount",g)}}),j=B(()=>D.value-e.itemData.discount_val),V=B(()=>e.currency?e.currency:r.selectedCompanyCurrency),T=B(()=>e.store[e.storeProp].items.length!=1),d=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?0:g.amount}))),i=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?g.amount:0}))),m=B(()=>d.value+i.value),u={name:{required:O.withMessage(b("validation.required"),R)},quantity:{required:O.withMessage(b("validation.required"),R),minValue:O.withMessage(b("validation.qty_must_greater_than_zero"),_e(0)),maxLength:O.withMessage(b("validation.amount_maxlength"),oe(20))},price:{required:O.withMessage(b("validation.required"),R),minValue:O.withMessage(b("validation.number_length_minvalue"),_e(1)),maxLength:O.withMessage(b("validation.price_maxlength"),oe(20))},discount_val:{between:O.withMessage(b("validation.discount_maxlength"),Le(0,B(()=>D.value)))},description:{maxLength:O.withMessage(b("validation.notes_maxlength"),oe(65e3))}},k=ie(u,B(()=>e.store[e.storeProp].items[e.index]),{$scope:e.itemValidationScope});function x(g){e.store.$patch(U=>{U[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(U=>{U[e.storeProp].items[e.index].taxes.push(G(N({},Ce),{id:ge.raw()}))}),I()}function M(g){A("name",g)}function C(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 U=0;g.taxes.forEach(Y=>{x({index:U,item:N({},Y)}),U++})}P[e.storeProp].exchange_rate&&(P[e.storeProp].items[e.index].price/=P[e.storeProp].exchange_rate)}),w.fetchItems(),I()}function _(){e.itemData.discount_type!=="fixed"&&(A("discount_val",Math.round(e.itemData.discount*100)),A("discount_type","fixed"))}function v(){e.itemData.discount_type!=="percentage"&&(A("discount_val",D.value*e.itemData.discount/100),A("discount_type","percentage"))}function I(){var U,Y;let g=(Y=(U=e.store[e.storeProp])==null?void 0:U.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:j.value,sub_total:D.value,totalSimpleTax:d.value,totalCompoundTax:i.value,totalTax:m.value,tax:m.value,taxes:[...g]});e.store.updateItem(P)}function A(g,P){e.store.$patch(U=>{U[e.storeProp].items[e.index][g]=P}),I()}return(g,P)=>{const U=y("BaseItemSelect"),Y=y("BaseInput"),z=y("BaseMoney"),de=y("BaseIcon"),ve=y("BaseButton"),ce=y("BaseDropdownItem"),$e=y("BaseDropdown"),ue=y("BaseContentPlaceholdersText"),me=y("BaseContentPlaceholders"),we=y("BaseFormatMoney");return l(),$("tr",tt,[n("td",st,[n("table",ot,[n("colgroup",null,[at,nt,rt,s.store[s.storeProp].discount_per_item==="YES"?(l(),$("col",lt)):L("",!0),it]),n("tbody",null,[n("tr",null,[n("td",dt,[n("div",ct,[n("div",ut,[a(je)]),a(U,{type:"Invoice",item:s.itemData,invalid:o(k).name.$error,"invalid-description":o(k).description.$error,taxes:s.itemData.taxes,index:s.index,"store-prop":s.storeProp,store:s.store,onSearch:M,onSelect:C},null,8,["item","invalid","invalid-description","taxes","index","store-prop","store"])])]),n("td",mt,[a(Y,{modelValue:o(S),"onUpdate:modelValue":P[0]||(P[0]=F=>K(S)?S.value=F:null),invalid:o(k).quantity.$error,"content-loading":s.loading,type:"number",small:"",min:"0",step:"any",onChange:P[1]||(P[1]=F=>I()),onInput:P[2]||(P[2]=F=>o(k).quantity.$touch())},null,8,["modelValue","invalid","content-loading"])]),n("td",pt,[n("div",yt,[n("div",ft,[n("div",xt,[a(z,{key:o(V),modelValue:o(f),"onUpdate:modelValue":P[3]||(P[3]=F=>K(f)?f.value=F:null),invalid:o(k).price.$error,"content-loading":s.loading,currency:o(V)},null,8,["modelValue","invalid","content-loading","currency"])])])])]),s.store[s.storeProp].discount_per_item==="YES"?(l(),$("td",_t,[n("div",gt,[n("div",ht,[a(Y,{modelValue:o(p),"onUpdate:modelValue":P[4]||(P[4]=F=>K(p)?p.value=F:null),invalid:o(k).discount_val.$error,"content-loading":s.loading,class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue","invalid","content-loading"]),a($e,{position:"bottom-end"},{activator:c(()=>[a(ve,{"content-loading":s.loading,class:"rounded-tr-md rounded-br-md !p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[n("span",bt,[E(h(s.itemData.discount_type=="fixed"?s.currency.symbol:"%")+" ",1),a(de,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1},8,["content-loading"])]),default:c(()=>[a(ce,{onClick:_},{default:c(()=>[E(h(g.$t("general.fixed")),1)]),_:1}),a(ce,{onClick:v},{default:c(()=>[E(h(g.$t("general.percentage")),1)]),_:1})]),_:1})])])])):L("",!0),n("td",vt,[n("div",$t,[n("span",null,[s.loading?(l(),q(me,{key:0},{default:c(()=>[a(ue,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),q(we,{key:1,amount:o(j),currency:o(V)},null,8,["amount","currency"]))]),n("div",wt,[o(T)?(l(),q(de,{key:0,class:"h-5 text-gray-700 cursor-pointer",name:"TrashIcon",onClick:P[5]||(P[5]=F=>s.store.removeItem(s.index))})):L("",!0)])])])]),s.store[s.storeProp].tax_per_item==="YES"?(l(),$("tr",Bt,[St,n("td",It,[s.loading?(l(),q(me,{key:0},{default:c(()=>[a(ue,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(!0),$(Q,{key:1},se(s.itemData.taxes,(F,Be)=>(l(),q(et,{key:F.id,index:Be,"item-index":s.index,"tax-data":F,taxes:s.itemData.taxes,"discounted-total":o(j),"total-tax":o(d),total:o(D),currency:s.currency,"update-items":I,ability:o(ne).CREATE_INVOICE,store:s.store,"store-prop":s.storeProp,onUpdate:x},null,8,["index","item-index","tax-data","taxes","discounted-total","total-tax","total","currency","ability","store","store-prop"]))),128))])])):L("",!0)])])])])}}},kt={class:"text-center item-table min-w-full"},Tt=n("col",{style:{width:"40%","min-width":"280px"}},null,-1),Ct=n("col",{style:{width:"10%","min-width":"120px"}},null,-1),Mt=n("col",{style:{width:"15%","min-width":"120px"}},null,-1),Dt={key:0,style:{width:"15%","min-width":"160px"}},Vt=n("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"},At={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"},Lt={key:1},Ut={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"},Ot={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"},Qs={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(s){const t=s,e=te(),r=B(()=>t.currency?t.currency:e.selectedCompanyCurrency);return(w,b)=>{const S=y("BaseContentPlaceholdersText"),f=y("BaseContentPlaceholders"),D=y("BaseIcon");return l(),$(Q,null,[n("table",kt,[n("colgroup",null,[Tt,Ct,Mt,s.store[s.storeProp].discount_per_item==="YES"?(l(),$("col",Dt)):L("",!0),Vt]),n("thead",jt,[n("tr",null,[n("th",qt,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",At,h(w.$tc("items.item",2)),1))]),n("th",Et,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Lt,h(w.$t("invoices.item.quantity")),1))]),n("th",Ut,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Ot,h(w.$t("invoices.item.price")),1))]),s.store[s.storeProp].discount_per_item==="YES"?(l(),$("th",zt,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Nt,h(w.$t("invoices.item.discount")),1))])):L("",!0),n("th",Ft,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Yt,h(w.$t("invoices.item.amount")),1))])])]),a(o(qe),{modelValue:s.store[s.storeProp].items,"onUpdate:modelValue":b[0]||(b[0]=p=>s.store[s.storeProp].items=p),"item-key":"id",tag:"tbody",handle:".handle"},{item:c(({element:p,index:j})=>[a(Pt,{key:p.id,index:j,"item-data":p,loading:s.isLoading,currency:o(r),"item-validation-scope":s.itemValidationScope,"invoice-items":s.store[s.storeProp].items,store:s.store,"store-prop":s.storeProp},null,8,["index","item-data","loading","currency","item-validation-scope","invoice-items","store","store-prop"])]),_:1},8,["modelValue"])]),n("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:b[1]||(b[1]=(...p)=>s.store.addItem&&s.store.addItem(...p))},[a(D,{name:"PlusCircleIcon",class:"mr-2"}),E(" "+h(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(s,{emit:t}){const e=s;re("$utils");const r=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);Ue(()=>{e.store.getSubtotalWithDiscount&&w(),e.store.getTotalSimpleTax&&w()});function w(){t("update",G(N({},e.tax),{amount:r.value}))}return(b,S)=>{const f=y("BaseFormatMoney"),D=y("BaseIcon");return l(),$("div",Gt,[n("label",Wt,h(s.tax.name)+" ("+h(s.tax.percent)+" %) ",1),n("label",Rt,[a(f,{amount:s.tax.amount,currency:s.currency},null,8,["amount","currency"]),a(D,{name:"TrashIcon",class:"h-5 ml-2 cursor-pointer",onClick:S[0]||(S[0]=p=>b.$emit("remove",s.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"},as={class:"m-0 text-base font-semibold text-gray-700 cursor-pointer"},ns={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(s,{emit:t}){const e=s,r=H(),w=ee(),b=ae(),{t:S}=J(),f=W(null),D=B(()=>f.value?w.taxTypes.filter(function(T){return T.name.toLowerCase().indexOf(f.value.toLowerCase())!==-1}):w.taxTypes),p=B(()=>e.store[e.storeProp].taxes);function j(T,d){t("select:taxType",N({},T)),d()}function V(){r.openModal({title:S("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:T=>t("select:taxType",T)})}return(T,d)=>{const i=y("BaseIcon"),m=y("BaseInput");return l(),$("div",Ht,[a(o(Fe),{class:"relative"},{default:c(({isOpen:u})=>[a(o(Oe),{class:X([u?"":"text-opacity-90","flex items-center text-sm font-medium text-primary-400 focus:outline-none focus:border-none"])},{default:c(()=>[a(i,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),E(" "+h(T.$t("settings.tax_types.add_tax")),1)]),_:2},1032,["class"]),n("div",Jt,[a(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(()=>[a(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:k})=>[n("div",Zt,[n("div",Kt,[n("div",Qt,[a(m,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=x=>f.value=x),placeholder:T.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(D).length>0?(l(),$("div",es,[(l(!0),$(Q,null,se(o(D),(x,M)=>(l(),$("div",{key:M,class:X([{"bg-gray-100 cursor-not-allowed opacity-50 pointer-events-none":o(p).find(C=>C.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:C=>j(x,k)},[n("div",ss,[n("label",os,h(x.name),1),n("label",as,h(x.percent)+" % ",1)])],10,ts))),128))])):(l(),$("div",ns,[n("label",rs,h(T.$t("general.no_tax_found")),1)]))]),o(b).hasAbilities(o(ne).CREATE_TAX_TYPE)?(l(),$("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},[a(i,{name:"CheckCircleIcon",class:"text-primary-400"}),n("label",ls,h(T.$t("estimates.add_new_tax")),1)])):L("",!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"},fs={key:0,class:"flex items-center justify-between w-full mt-2"},xs={key:1,class:"text-sm font-semibold leading-5 text-gray-400 uppercase"},_s={key:3,class:"flex",style:{width:"140px"},role:"group"},gs={class:"flex items-center"},hs={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"},eo={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(s){const t=s,e=W(null);re("$utils");const r=te(),w=B({get:()=>t.store[t.storeProp].discount,set:d=>{t.store[t.storeProp].discount_type==="percentage"?t.store[t.storeProp].discount_val=Math.round(t.store.getSubTotal*d/100):t.store[t.storeProp].discount_val=Math.round(d*100),t.store[t.storeProp].discount=d}}),b=B({get:()=>t.store[t.storeProp].taxes,set:d=>{t.store.$patch(i=>{i[t.storeProp].taxes=d})}}),S=B(()=>{let d=[];return t.store[t.storeProp].items.forEach(i=>{i.taxes&&i.taxes.forEach(m=>{let u=d.find(k=>k.tax_type_id===m.tax_type_id);u?u.amount+=m.amount:m.tax_type_id&&d.push({tax_type_id:m.tax_type_id,amount:m.amount,percent:m.percent,name:m.name})})}),d}),f=B(()=>t.currency?t.currency:r.selectedCompanyCurrency);function D(){t.store[t.storeProp].discount_type!=="fixed"&&(t.store[t.storeProp].discount_val=Math.round(t.store[t.storeProp].discount*100),t.store[t.storeProp].discount_type="fixed")}function p(){t.store[t.storeProp].discount_type!=="percentage"&&(t.store[t.storeProp].discount_val=t.store.getSubTotal*t.store[t.storeProp].discount/100,t.store[t.storeProp].discount_type="percentage")}function j(d){let i=0;d.compound_tax&&t.store.getSubtotalWithDiscount?i=Math.round((t.store.getSubtotalWithDiscount+t.store.getTotalSimpleTax)*d.percent/100):t.store.getSubtotalWithDiscount&&d.percent&&(i=Math.round(t.store.getSubtotalWithDiscount*d.percent/100));let m=G(N({},ne),{id:ge.raw(),name:d.name,percent:d.percent,compound_tax:d.compound_tax,tax_type_id:d.id,amount:i});t.store.$patch(u=>{u[t.storeProp].taxes.push(N({},m))})}function V(d){const i=t.store[t.storeProp].taxes.find(m=>m.id===d.id);i&&Object.assign(i,N({},d))}function T(d){const i=t.store[t.storeProp].taxes.findIndex(m=>m.id===d);t.store.$patch(m=>{m[t.storeProp].taxes.splice(i,1)})}return(d,i)=>{const m=y("BaseContentPlaceholdersText"),u=y("BaseContentPlaceholders"),k=y("BaseFormatMoney"),x=y("BaseInput"),M=y("BaseIcon"),C=y("BaseButton"),_=y("BaseDropdownItem"),v=y("BaseDropdown");return l(),$("div",ds,[n("div",cs,[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",us,h(d.$t("estimates.sub_total")),1)),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",ms,[a(k,{amount:s.store.getSubTotal,currency:o(f)},null,8,["amount","currency"])]))]),(l(!0),$(Q,null,se(o(S),I=>(l(),$("div",{key:I.tax_type_id,class:"flex items-center justify-between w-full"},[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):s.store[s.storeProp].tax_per_item==="YES"?(l(),$("label",ps,h(I.name)+" - "+h(I.percent)+"% ",1)):L("",!0),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):s.store[s.storeProp].tax_per_item==="YES"?(l(),$("label",ys,[a(k,{amount:I.amount,currency:o(f)},null,8,["amount","currency"])])):L("",!0)]))),128)),s.store[s.storeProp].discount_per_item==="NO"||s.store[s.storeProp].discount_per_item===null?(l(),$("div",fs,[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",xs,h(d.$t("estimates.discount")),1)),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(),$("div",_s,[a(x,{modelValue:o(w),"onUpdate:modelValue":i[0]||(i[0]=I=>K(w)?w.value=I:null),class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue"]),a(v,{position:"bottom-end"},{activator:c(()=>[a(C,{class:"rounded-tr-md rounded-br-md p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[n("span",gs,[E(h(s.store[s.storeProp].discount_type=="fixed"?o(f).symbol:"%")+" ",1),a(M,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1})]),default:c(()=>[a(_,{onClick:D},{default:c(()=>[E(h(d.$t("general.fixed")),1)]),_:1}),a(_,{onClick:p},{default:c(()=>[E(h(d.$t("general.percentage")),1)]),_:1})]),_:1})]))])):L("",!0),s.store[s.storeProp].tax_per_item==="NO"||s.store[s.storeProp].tax_per_item===null?(l(),$("div",hs,[(l(!0),$(Q,null,se(o(b),(I,A)=>(l(),q(Xt,{key:I.id,index:A,tax:I,taxes:o(b),currency:s.currency,store:s.store,onRemove:T,onUpdate:V},null,8,["index","tax","taxes","currency","store"]))),128))])):L("",!0),s.store[s.storeProp].tax_per_item==="NO"||s.store[s.storeProp].tax_per_item===null?(l(),$("div",{key:2,ref:(I,A)=>{A.taxModal=I,e.value=I},class:"float-right pt-2 pb-4"},[a(is,{"store-prop":s.storeProp,store:s.store,type:s.taxPopupType,"onSelect:taxType":j},null,8,["store-prop","store","type"])],512)):L("",!0),n("div",bs,[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",vs,h(d.$t("estimates.total"))+" "+h(d.$t("estimates.amount"))+":",1)),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",$s,[a(k,{amount:s.store.getTotal,currency:o(f)},null,8,["amount","currency"])]))])])}}},ws={class:"flex text-gray-800 font-medium text-sm mb-2"},Bs=n("span",{class:"text-sm text-red-500"}," *",-1),to={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},isMarkAsDefault:{type:Boolean,default:!1}},setup(s){const t=s,e=H(),{t:r}=J();function w(){let b="";t.storeProp=="newEstimate"?b=r("estimates.mark_as_default_estimate_template_description"):t.storeProp=="newInvoice"&&(b=r("invoices.mark_as_default_invoice_template_description")),e.openModal({title:r("general.choose_template"),componentName:"SelectTemplate",data:{templates:t.store.templates,store:t.store,storeProp:t.storeProp,isMarkAsDefault:t.isMarkAsDefault,markAsDefaultDescription:b}})}return(b,S)=>{const f=y("BaseIcon"),D=y("BaseButton");return l(),$("div",null,[n("label",ws,[E(h(b.$t("general.select_template"))+" ",1),Bs]),a(D,{type:"button",class:"flex justify-center w-full text-sm lg:w-auto hover:bg-gray-200",variant:"gray",onClick:w},{right:c(p=>[a(f,{name:"PencilIcon",class:X(p.class)},null,8,["class"])]),default:c(()=>[E(" "+h(s.store[s.storeProp].template_name),1)]),_:1})])}}},Ss={class:"mb-6"},Is={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"},so={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},fields:{type:Object,default:null},type:{type:String,default:null}},setup(s){const t=s;function e(r){t.store[t.storeProp].notes=""+r.notes}return(r,w)=>{const b=y("BaseCustomInput");return l(),$("div",Ss,[n("div",Is,[a(Ge,{type:s.type,onSelect:e},null,8,["type"])]),n("label",Ps,h(r.$t("invoices.notes")),1),a(b,{modelValue:s.store[s.storeProp].notes,"onUpdate:modelValue":w[0]||(w[0]=S=>s.store[s.storeProp].notes=S),"content-loading":s.store.isFetchingInitialSettings,fields:s.fields,class:"mt-1"},null,8,["modelValue","content-loading","fields"])])}}},ks={class:"flex justify-between w-full"},Ts={class:"px-8 py-8 sm:p-6"},Cs={key:0,class:"grid grid-cols-3 gap-2 p-1 overflow-x-auto"},Ms=["onClick"],Ds=["src","alt"],Vs=["alt","src"],js={key:1,class:"z-0 flex ml-3 pt-5"},qs={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},oo={setup(s){const t=H(),e=ae(),r=W(""),w=B(()=>t.active&&t.componentName==="SelectTemplate"),b=B(()=>t.title);function S(){t.data.store[t.data.storeProp].template_name?r.value=t.data.store[t.data.storeProp].template_name:r.value=t.data.templates[0]}async function f(){await t.data.store.setTemplate(r.value),!t.data.store.isEdit&&t.data.isMarkAsDefault&&(t.data.storeProp=="newEstimate"?await e.updateUserSettings({settings:{default_estimate_template:r.value}}):t.data.storeProp=="newInvoice"&&await e.updateUserSettings({settings:{default_invoice_template:r.value}})),p()}function D(){return new URL("/build/img/tick.png",self.location)}function p(){t.closeModal(),setTimeout(()=>{t.$reset()},300)}return(j,V)=>{const T=y("BaseIcon"),d=y("BaseCheckbox"),i=y("BaseButton"),m=y("BaseModal");return l(),q(m,{show:o(w),onClose:p,onOpen:S},{header:c(()=>[n("div",ks,[E(h(o(b))+" ",1),a(T,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:p})])]),default:c(()=>[n("div",Ts,[o(t).data?(l(),$("div",Cs,[(l(!0),$(Q,null,se(o(t).data.templates,(u,k)=>(l(),$("div",{key:k,class:X([{"border border-solid border-primary-500":r.value===u.name},"relative flex flex-col m-2 border border-gray-200 border-solid cursor-pointer hover:border-primary-300"]),onClick:x=>r.value=u.name},[n("img",{src:u.path,alt:u.name,class:"w-full min-h-[100px]"},null,8,Ds),r.value===u.name?(l(),$("img",{key:0,alt:u.name,class:"absolute z-10 w-5 h-5 text-primary-500",style:{top:"-6px",right:"-5px"},src:D()},null,8,Vs)):L("",!0),n("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":r.value===u.name,"text-gray-600":r.value!=u.name}])},h(u.name),3)],10,Ms))),128))])):L("",!0),o(t).data.store.isEdit?L("",!0):(l(),$("div",js,[a(d,{modelValue:o(t).data.isMarkAsDefault,"onUpdate:modelValue":V[0]||(V[0]=u=>o(t).data.isMarkAsDefault=u),"set-initial-value":!1,variant:"primary",label:j.$t("general.mark_as_default"),description:o(t).data.markAsDefaultDescription},null,8,["modelValue","label","description"])]))]),n("div",qs,[a(i,{class:"mr-3",variant:"primary-outline",onClick:p},{default:c(()=>[E(h(j.$t("general.cancel")),1)]),_:1}),a(i,{variant:"primary",onClick:V[1]||(V[1]=u=>f())},{left:c(u=>[a(T,{name:"SaveIcon",class:X(u.class)},null,8,["class"])]),default:c(()=>[E(" "+h(j.$t("general.choose")),1)]),_:1})])]),_:1},8,["show"])}}},As={class:"flex justify-between w-full"},Es={class:"item-modal"},Ls=["onSubmit"],Us={class:"px-8 py-8 sm:p-6"},Os={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ao={emits:["newItem"],setup(s,{emit:t}){const e=H(),r=fe(),w=te(),b=ee();Me(),De();const{t:S}=J(),f=W(!1),D=W(w.selectedCompanySettings.tax_per_item),p=B(()=>e.active&&e.componentName==="ItemModal"),j=B({get:()=>r.currentItem.price/100,set:x=>{r.currentItem.price=Math.round(x*100)}}),V=B({get:()=>r.currentItem.taxes.map(x=>{if(x)return G(N({},x),{tax_type_id:x.id,tax_name:x.name+" ("+x.percent+"%)"})}),set:x=>{r.$patch(M=>{M.currentItem.taxes=x})}}),T=B(()=>D.value==="YES"),d={name:{required:O.withMessage(S("validation.required"),R),minLength:O.withMessage(S("validation.name_min_length",{count:3}),Ye(3))},description:{maxLength:O.withMessage(S("validation.description_maxlength",{count:255}),oe(255))}},i=ie(d,B(()=>r.currentItem)),m=B(()=>b.taxTypes.map(x=>G(N({},x),{tax_name:x.name+" ("+x.percent+"%)"})));he(()=>{i.value.$reset(),r.fetchItemUnits({limit:"all"})});async function u(){if(i.value.$touch(),i.value.$invalid)return!0;let x=G(N({},r.currentItem),{taxes:r.currentItem.taxes.map(C=>({tax_type_id:C.id,amount:j.value*C.percent/100,percent:C.percent,name:C.name,collective_tax:0}))});f.value=!0,await(r.isEdit?r.updateItem:r.addItem)(x).then(C=>{f.value=!1,C.data.data&&e.data&&e.refreshData(C.data.data),k()})}function k(){e.closeModal(),setTimeout(()=>{r.resetCurrentItem(),e.$reset(),i.value.$reset()},300)}return(x,M)=>{const C=y("BaseIcon"),_=y("BaseInput"),v=y("BaseInputGroup"),I=y("BaseMoney"),A=y("BaseMultiselect"),g=y("BaseTextarea"),P=y("BaseInputGrid"),U=y("BaseButton"),Y=y("BaseModal");return l(),q(Y,{show:o(p),onClose:k},{header:c(()=>[n("div",As,[E(h(o(e).title)+" ",1),a(C,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:k})])]),default:c(()=>[n("div",Es,[n("form",{action:"",onSubmit:be(u,["prevent"])},[n("div",Us,[a(P,{layout:"one-column"},{default:c(()=>[a(v,{label:x.$t("items.name"),required:"",error:o(i).name.$error&&o(i).name.$errors[0].$message},{default:c(()=>[a(_,{modelValue:o(r).currentItem.name,"onUpdate:modelValue":M[0]||(M[0]=z=>o(r).currentItem.name=z),type:"text",invalid:o(i).name.$error,onInput:M[1]||(M[1]=z=>o(i).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(v,{label:x.$t("items.price")},{default:c(()=>[a(I,{key:o(w).selectedCompanyCurrency,modelValue:o(j),"onUpdate:modelValue":M[2]||(M[2]=z=>K(j)?j.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"]),a(v,{label:x.$t("items.unit")},{default:c(()=>[a(A,{modelValue:o(r).currentItem.unit_id,"onUpdate:modelValue":M[3]||(M[3]=z=>o(r).currentItem.unit_id=z),label:"name",options:o(r).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(),q(v,{key:0,label:x.$t("items.taxes")},{default:c(()=>[a(A,{modelValue:o(V),"onUpdate:modelValue":M[4]||(M[4]=z=>K(V)?V.value=z:null),options:o(m),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"])):L("",!0),a(v,{label:x.$t("items.description"),error:o(i).description.$error&&o(i).description.$errors[0].$message},{default:c(()=>[a(g,{modelValue:o(r).currentItem.description,"onUpdate:modelValue":M[5]||(M[5]=z=>o(r).currentItem.description=z),rows:"4",cols:"50",invalid:o(i).description.$error,onInput:M[6]||(M[6]=z=>o(i).description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),n("div",Os,[a(U,{class:"mr-3",variant:"primary-outline",type:"button",onClick:k},{default:c(()=>[E(h(x.$t("general.cancel")),1)]),_:1}),a(U,{loading:f.value,disabled:f.value,variant:"primary",type:"submit"},{left:c(z=>[a(C,{name:"SaveIcon",class:X(z.class)},null,8,["class"])]),default:c(()=>[E(" "+h(o(r).isEdit?x.$t("general.update"):x.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Ls)])]),_:1},8,["show"])}}},zs={class:"flex justify-between w-full"},Ns={class:"flex flex-col"},Fs={class:"text-sm text-gray-500 mt-1"},Ys=["onSubmit"],Gs={class:"p-4 sm:p-6"},Ws={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Rs={emits:["addTax"],setup(s,{emit:t}){const e=H();Ve();const r=xe({state:"",city:"",address_street_1:"",zip:""}),w=W(!1),b=ee(),{t:S}=J(),f=B(()=>e.active&&e.componentName==="TaxationAddressModal"),D=B(()=>({state:{required:O.withMessage(S("validation.required"),R)},city:{required:O.withMessage(S("validation.required"),R)},address_street_1:{required:O.withMessage(S("validation.required"),R)},zip:{required:O.withMessage(S("validation.required"),R)}})),p=ie(D,B(()=>r));async function j(){if(p.value.$touch(),p.value.$invalid)return!0;let d={address:r};e.id&&(d.customer_id=e.id),r.address_street_1=r.address_street_1.replace(/(\r\n|\n|\r)/gm,""),w.value=!0,await b.fetchSalesTax(d).then(i=>{w.value=!1,t("addTax",i.data.data),T()}).catch(i=>{w.value=!1})}function V(){var d,i,m,u;r.state=(d=e==null?void 0:e.data)==null?void 0:d.state,r.city=(i=e==null?void 0:e.data)==null?void 0:i.city,r.address_street_1=(m=e==null?void 0:e.data)==null?void 0:m.address_street_1,r.zip=(u=e==null?void 0:e.data)==null?void 0:u.zip}function T(){e.closeModal()}return(d,i)=>{const m=y("BaseIcon"),u=y("BaseInput"),k=y("BaseInputGroup"),x=y("BaseTextarea"),M=y("BaseInputGrid"),C=y("BaseButton"),_=y("BaseModal");return l(),q(_,{show:o(f),onClose:T,onOpen:V},{header:c(()=>[n("div",zs,[n("div",Ns,[E(h(o(e).title)+" ",1),n("p",Fs,h(o(e).content),1)]),a(m,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:T})])]),default:c(()=>[n("form",{onSubmit:be(j,["prevent"])},[n("div",Gs,[a(M,{layout:"one-column"},{default:c(()=>[a(k,{required:"",error:o(p).state.$error&&o(p).state.$errors[0].$message,label:d.$t("customers.state")},{default:c(()=>[a(u,{modelValue:o(r).state,"onUpdate:modelValue":i[0]||(i[0]=v=>o(r).state=v),type:"text",name:"shippingState",class:"mt-1 md:mt-0",invalid:o(p).state.$error,onInput:i[1]||(i[1]=v=>o(p).state.$touch()),placeholder:d.$t("settings.taxations.state_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),a(k,{required:"",error:o(p).city.$error&&o(p).city.$errors[0].$message,label:d.$t("customers.city")},{default:c(()=>[a(u,{modelValue:o(r).city,"onUpdate:modelValue":i[2]||(i[2]=v=>o(r).city=v),type:"text",name:"shippingCity",class:"mt-1 md:mt-0",invalid:o(p).city.$error,onInput:i[3]||(i[3]=v=>o(p).city.$touch()),placeholder:d.$t("settings.taxations.city_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),a(k,{required:"",error:o(p).address_street_1.$error&&o(p).address_street_1.$errors[0].$message,label:d.$t("customers.address")},{default:c(()=>[a(x,{modelValue:o(r).address_street_1,"onUpdate:modelValue":i[4]||(i[4]=v=>o(r).address_street_1=v),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:o(p).address_street_1.$error,onInput:i[5]||(i[5]=v=>o(p).address_street_1.$touch()),placeholder:d.$t("settings.taxations.address_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),a(k,{required:"",error:o(p).zip.$error&&o(p).zip.$errors[0].$message,label:d.$t("customers.zip_code")},{default:c(()=>[a(u,{modelValue:o(r).zip,"onUpdate:modelValue":i[6]||(i[6]=v=>o(r).zip=v),invalid:o(p).zip.$error,onInput:i[7]||(i[7]=v=>o(p).zip.$touch()),type:"text",class:"mt-1 md:mt-0",placeholder:d.$t("settings.taxations.zip_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"])]),_:1})]),n("div",Ws,[a(C,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:T},{default:c(()=>[E(h(d.$t("general.cancel")),1)]),_:1}),a(C,{loading:w.value,variant:"primary",type:"submit"},{left:c(v=>[w.value?L("",!0):(l(),q(m,{key:0,name:"SaveIcon",class:X(v.class)},null,8,["class"]))]),default:c(()=>[E(" "+h(d.$t("general.save")),1)]),_:1},8,["loading"])])],40,Ys)]),_:1},8,["show"])}}},no={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(s){const t=s,e="Sales Tax",r="MODULE",w=H(),b=te(),S=ee(),{t:f}=J(),D=W(!1),p=B(()=>t.isEdit?t.store[t.storeProp].sales_tax_address_type==="billing":b.selectedCompanySettings.sales_tax_address_type==="billing"),j=B(()=>b.selectedCompanySettings.sales_tax_us_enabled==="YES"),V=B(()=>t.isEdit?t.store[t.storeProp].sales_tax_type==="customer_level":b.selectedCompanySettings.sales_tax_type==="customer_level"),T=B(()=>t.isEdit?t.store[t.storeProp].sales_tax_type==="company_level":b.selectedCompanySettings.sales_tax_type==="company_level"),d=B(()=>{if(V.value&&i.value){let _=p.value?t.customer.billing:t.customer.shipping;return{address:Z.exports.pick(_,["address_street_1","city","state","zip"]),customer_id:t.customer.id}}else if(T.value&&i.value)return{address:Z.exports.pick(address,["address_street_1","city","state","zip"])}}),i=B(()=>{var _,v;if(V.value){let I=p.value?(_=t.customer)==null?void 0:_.billing:(v=t.customer)==null?void 0:v.shipping;return m(I)}else if(T.value)return m(b.selectedCompany.address);return!1});le(()=>t.customer,(_,v)=>{if(_&&v&&V.value){u(_,v);return}!i.value&&V.value&&_?setTimeout(()=>{k()},500):V.value&&_?x():V.value&&!_&&C()}),he(()=>{T.value&&(i.value?x():k())});function m(_){return _?_.address_street_1&&_.city&&_.state&&_.zip:!1}function u(_,v){const I=p.value?_.billing:_.shipping,A=p.value?v.billing:v.shipping,g=Z.exports.pick(I,["address_street_1","city","state","zip"]),P=Z.exports.pick(A,["address_street_1","city","state","zip"]);Z.exports.isEqual(g,P)||x()}function k(){var I,A;if(!j.value)return;let _=null,v="";V.value?p.value?(_=(I=t.customer)==null?void 0:I.billing,v=f("settings.taxations.add_billing_address")):(_=(A=t.customer)==null?void 0:A.shipping,v=f("settings.taxations.add_shipping_address")):(_=b.selectedCompany.address,v=f("settings.taxations.add_company_address")),w.openModal({title:v,content:f("settings.taxations.modal_description"),componentName:"TaxationAddressModal",data:_,id:V.value?t.customer.id:""})}async function x(){!j.value||(D.value=!0,await S.fetchSalesTax(d.value).then(_=>{M(_.data.data),D.value=!1}).catch(_=>{_.response.data.error&&setTimeout(()=>{k()},500),D.value=!1}))}function M(_){_.tax_type_id=_.id;const v=t.store[t.storeProp].taxes.findIndex(I=>I.name===e&&I.type===r);v>-1?Object.assign(t.store[t.storeProp].taxes[v],_):t.store[t.storeProp].taxes.push(_)}function C(){const _=t.store[t.storeProp].taxes.findIndex(I=>I.name===e&&I.type===r);_>-1&&t.store[t.storeProp].taxes.splice(_,1);let v=S.taxTypes.findIndex(I=>I.name===e&&I.type===r);v>-1&&S.taxTypes.splice(v,1)}return(_,v)=>(l(),q(Rs,{onAddTax:M}))}};export{oo as _,ao as a,no as b,Qs as c,so as d,to as e,eo as f}; +var Se=Object.defineProperty,Ie=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var ke=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var ye=(s,t,e)=>t in s?Se(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,N=(s,t)=>{for(var e in t||(t={}))ke.call(t,e)&&ye(s,e,t[e]);if(pe)for(var e of pe(t))Te.call(t,e)&&ye(s,e,t[e]);return s},G=(s,t)=>Ie(s,Pe(t));import{q as ee,c as H,e as ae,b as te,p as fe,g as ne,T as Ce,k as Me,u as De,d as Ve}from"./main.c7bd6c0e.js";import{D as je,d as qe}from"./DragIcon.d9f643cf.js";import{B as W,a0 as xe,ah as re,J,k as B,C as le,r as y,o as l,e as $,h as n,t as h,f as a,V as Ae,u as o,w as c,i as E,l as q,j as L,G as Ee,A as Z,L as O,M as R,b2 as _e,S as oe,aX as Le,T as ie,x as K,F as Q,y as se,H as ge,a7 as Ue,W as Oe,m as X,Y as ze,X as Ne,Z as Fe,N as Ye,D as he,U as be}from"./vendor.d12b5734.js";import{_ as Ge}from"./SelectNotePopup.ead4330d.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=n("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(s,{emit:t}){const e=s,r=ee(),w=H(),b=ae(),S=W(null),f=xe(N({},e.taxData));re("utils");const{t:D}=J(),p=B(()=>r.taxTypes.map(u=>N({},u)).map(u=>(e.taxes.find(x=>x.tax_type_id===u.id)?u.disabled=!0:u.disabled=!1,u))),j=B(()=>f.compound_tax&&e.total?(e.total+e.totalTax)*f.percent/100:e.total&&f.percent?e.total*f.percent/100:0);le(()=>e.total,()=>{T()}),le(()=>e.totalTax,()=>{T()}),e.taxData.tax_type_id>0&&(S.value=r.taxTypes.find(m=>m.id===e.taxData.tax_type_id)),T();function V(m){f.percent=m.percent,f.tax_type_id=m.id,f.compound_tax=m.compound_tax,f.name=m.name,T()}function T(){f.tax_type_id!==0&&t("update",{index:e.index,item:G(N({},f),{amount:j.value})})}function d(){let m={itemIndex:e.itemIndex,taxIndex:e.index};w.openModal({title:D("settings.tax_types.add_tax"),componentName:"TaxTypeModal",data:m,size:"sm"})}function i(m){e.store.$patch(u=>{u[e.storeProp].items[e.itemIndex].taxes.splice(m,1)})}return(m,u)=>{const k=y("BaseIcon"),x=y("BaseMultiselect"),M=y("BaseFormatMoney");return l(),$("div",We,[n("div",Re,[n("label",Xe,h(m.$t("invoices.item.tax")),1),a(x,{modelValue:S.value,"onUpdate:modelValue":[u[0]||(u[0]=C=>S.value=C),u[1]||(u[1]=C=>V(C))],"value-prop":"id",options:o(p),placeholder:m.$t("general.select_a_tax"),"open-direction":"top","track-by":"name",searchable:"",object:"",label:"name"},Ae({singlelabel:c(({value:C})=>[n("div",He,h(C.name)+" - "+h(C.percent)+" % ",1)]),option:c(({option:C})=>[E(h(C.name)+" - "+h(C.percent)+" % ",1)]),_:2},[o(b).hasAbilities(s.ability)?{name:"action",fn:c(()=>[n("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:d},[a(k,{name:"CheckCircleIcon",class:"h-5 text-primary-400"}),n("label",Je,h(m.$t("invoices.add_new_tax")),1)])])}:void 0]),1032,["modelValue","options","placeholder"]),Ze]),n("div",Ke,[a(M,{amount:o(j),currency:s.currency},null,8,["amount","currency"])]),n("div",Qe,[s.taxes.length&&s.index!==s.taxes.length-1?(l(),q(k,{key:0,name:"TrashIcon",class:"h-5 text-gray-700 cursor-pointer",onClick:u[2]||(u[2]=C=>i(s.index))})):L("",!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"},at=n("col",{style:{width:"40%","min-width":"280px"}},null,-1),nt=n("col",{style:{width:"10%","min-width":"120px"}},null,-1),rt=n("col",{style:{width:"15%","min-width":"120px"}},null,-1),lt={key:0,style:{width:"15%","min-width":"160px"}},it=n("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"},ft={class:"flex-auto flex-fill bd-highlight"},xt={class:"relative w-full"},_t={key:0,class:"px-5 py-4 text-left align-top"},gt={class:"flex flex-col"},ht={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},St=n("td",{class:"px-5 py-4 text-left align-top"},null,-1),It={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(s,{emit:t}){const e=s,r=te(),w=fe();Ee();const{t:b}=J(),S=B({get:()=>e.itemData.quantity,set:g=>{A("quantity",parseFloat(g))}}),f=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);A("price",P)}else A("price",g)}}),D=B(()=>e.itemData.price*e.itemData.quantity),p=B({get:()=>e.itemData.discount,set:g=>{e.itemData.discount_type==="percentage"?A("discount_val",D.value*g/100):A("discount_val",Math.round(g*100)),A("discount",g)}}),j=B(()=>D.value-e.itemData.discount_val),V=B(()=>e.currency?e.currency:r.selectedCompanyCurrency),T=B(()=>e.store[e.storeProp].items.length!=1),d=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?0:g.amount}))),i=B(()=>Math.round(Z.exports.sumBy(e.itemData.taxes,function(g){return g.compound_tax?g.amount:0}))),m=B(()=>d.value+i.value),u={name:{required:O.withMessage(b("validation.required"),R)},quantity:{required:O.withMessage(b("validation.required"),R),minValue:O.withMessage(b("validation.qty_must_greater_than_zero"),_e(0)),maxLength:O.withMessage(b("validation.amount_maxlength"),oe(20))},price:{required:O.withMessage(b("validation.required"),R),minValue:O.withMessage(b("validation.number_length_minvalue"),_e(1)),maxLength:O.withMessage(b("validation.price_maxlength"),oe(20))},discount_val:{between:O.withMessage(b("validation.discount_maxlength"),Le(0,B(()=>D.value)))},description:{maxLength:O.withMessage(b("validation.notes_maxlength"),oe(65e3))}},k=ie(u,B(()=>e.store[e.storeProp].items[e.index]),{$scope:e.itemValidationScope});function x(g){e.store.$patch(U=>{U[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(U=>{U[e.storeProp].items[e.index].taxes.push(G(N({},Ce),{id:ge.raw()}))}),I()}function M(g){A("name",g)}function C(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 U=0;g.taxes.forEach(Y=>{x({index:U,item:N({},Y)}),U++})}P[e.storeProp].exchange_rate&&(P[e.storeProp].items[e.index].price/=P[e.storeProp].exchange_rate)}),w.fetchItems(),I()}function _(){e.itemData.discount_type!=="fixed"&&(A("discount_val",Math.round(e.itemData.discount*100)),A("discount_type","fixed"))}function v(){e.itemData.discount_type!=="percentage"&&(A("discount_val",D.value*e.itemData.discount/100),A("discount_type","percentage"))}function I(){var U,Y;let g=(Y=(U=e.store[e.storeProp])==null?void 0:U.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:j.value,sub_total:D.value,totalSimpleTax:d.value,totalCompoundTax:i.value,totalTax:m.value,tax:m.value,taxes:[...g]});e.store.updateItem(P)}function A(g,P){e.store.$patch(U=>{U[e.storeProp].items[e.index][g]=P}),I()}return(g,P)=>{const U=y("BaseItemSelect"),Y=y("BaseInput"),z=y("BaseMoney"),de=y("BaseIcon"),ve=y("BaseButton"),ce=y("BaseDropdownItem"),$e=y("BaseDropdown"),ue=y("BaseContentPlaceholdersText"),me=y("BaseContentPlaceholders"),we=y("BaseFormatMoney");return l(),$("tr",tt,[n("td",st,[n("table",ot,[n("colgroup",null,[at,nt,rt,s.store[s.storeProp].discount_per_item==="YES"?(l(),$("col",lt)):L("",!0),it]),n("tbody",null,[n("tr",null,[n("td",dt,[n("div",ct,[n("div",ut,[a(je)]),a(U,{type:"Invoice",item:s.itemData,invalid:o(k).name.$error,"invalid-description":o(k).description.$error,taxes:s.itemData.taxes,index:s.index,"store-prop":s.storeProp,store:s.store,onSearch:M,onSelect:C},null,8,["item","invalid","invalid-description","taxes","index","store-prop","store"])])]),n("td",mt,[a(Y,{modelValue:o(S),"onUpdate:modelValue":P[0]||(P[0]=F=>K(S)?S.value=F:null),invalid:o(k).quantity.$error,"content-loading":s.loading,type:"number",small:"",min:"0",step:"any",onChange:P[1]||(P[1]=F=>I()),onInput:P[2]||(P[2]=F=>o(k).quantity.$touch())},null,8,["modelValue","invalid","content-loading"])]),n("td",pt,[n("div",yt,[n("div",ft,[n("div",xt,[a(z,{key:o(V),modelValue:o(f),"onUpdate:modelValue":P[3]||(P[3]=F=>K(f)?f.value=F:null),invalid:o(k).price.$error,"content-loading":s.loading,currency:o(V)},null,8,["modelValue","invalid","content-loading","currency"])])])])]),s.store[s.storeProp].discount_per_item==="YES"?(l(),$("td",_t,[n("div",gt,[n("div",ht,[a(Y,{modelValue:o(p),"onUpdate:modelValue":P[4]||(P[4]=F=>K(p)?p.value=F:null),invalid:o(k).discount_val.$error,"content-loading":s.loading,class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue","invalid","content-loading"]),a($e,{position:"bottom-end"},{activator:c(()=>[a(ve,{"content-loading":s.loading,class:"rounded-tr-md rounded-br-md !p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[n("span",bt,[E(h(s.itemData.discount_type=="fixed"?s.currency.symbol:"%")+" ",1),a(de,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1},8,["content-loading"])]),default:c(()=>[a(ce,{onClick:_},{default:c(()=>[E(h(g.$t("general.fixed")),1)]),_:1}),a(ce,{onClick:v},{default:c(()=>[E(h(g.$t("general.percentage")),1)]),_:1})]),_:1})])])])):L("",!0),n("td",vt,[n("div",$t,[n("span",null,[s.loading?(l(),q(me,{key:0},{default:c(()=>[a(ue,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),q(we,{key:1,amount:o(j),currency:o(V)},null,8,["amount","currency"]))]),n("div",wt,[o(T)?(l(),q(de,{key:0,class:"h-5 text-gray-700 cursor-pointer",name:"TrashIcon",onClick:P[5]||(P[5]=F=>s.store.removeItem(s.index))})):L("",!0)])])])]),s.store[s.storeProp].tax_per_item==="YES"?(l(),$("tr",Bt,[St,n("td",It,[s.loading?(l(),q(me,{key:0},{default:c(()=>[a(ue,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(!0),$(Q,{key:1},se(s.itemData.taxes,(F,Be)=>(l(),q(et,{key:F.id,index:Be,"item-index":s.index,"tax-data":F,taxes:s.itemData.taxes,"discounted-total":o(j),"total-tax":o(d),total:o(D),currency:s.currency,"update-items":I,ability:o(ne).CREATE_INVOICE,store:s.store,"store-prop":s.storeProp,onUpdate:x},null,8,["index","item-index","tax-data","taxes","discounted-total","total-tax","total","currency","ability","store","store-prop"]))),128))])])):L("",!0)])])])])}}},kt={class:"text-center item-table min-w-full"},Tt=n("col",{style:{width:"40%","min-width":"280px"}},null,-1),Ct=n("col",{style:{width:"10%","min-width":"120px"}},null,-1),Mt=n("col",{style:{width:"15%","min-width":"120px"}},null,-1),Dt={key:0,style:{width:"15%","min-width":"160px"}},Vt=n("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"},At={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"},Lt={key:1},Ut={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"},Ot={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"},Qs={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(s){const t=s,e=te(),r=B(()=>t.currency?t.currency:e.selectedCompanyCurrency);return(w,b)=>{const S=y("BaseContentPlaceholdersText"),f=y("BaseContentPlaceholders"),D=y("BaseIcon");return l(),$(Q,null,[n("table",kt,[n("colgroup",null,[Tt,Ct,Mt,s.store[s.storeProp].discount_per_item==="YES"?(l(),$("col",Dt)):L("",!0),Vt]),n("thead",jt,[n("tr",null,[n("th",qt,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",At,h(w.$tc("items.item",2)),1))]),n("th",Et,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Lt,h(w.$t("invoices.item.quantity")),1))]),n("th",Ut,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Ot,h(w.$t("invoices.item.price")),1))]),s.store[s.storeProp].discount_per_item==="YES"?(l(),$("th",zt,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Nt,h(w.$t("invoices.item.discount")),1))])):L("",!0),n("th",Ft,[s.isLoading?(l(),q(f,{key:0},{default:c(()=>[a(S,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("span",Yt,h(w.$t("invoices.item.amount")),1))])])]),a(o(qe),{modelValue:s.store[s.storeProp].items,"onUpdate:modelValue":b[0]||(b[0]=p=>s.store[s.storeProp].items=p),"item-key":"id",tag:"tbody",handle:".handle"},{item:c(({element:p,index:j})=>[a(Pt,{key:p.id,index:j,"item-data":p,loading:s.isLoading,currency:o(r),"item-validation-scope":s.itemValidationScope,"invoice-items":s.store[s.storeProp].items,store:s.store,"store-prop":s.storeProp},null,8,["index","item-data","loading","currency","item-validation-scope","invoice-items","store","store-prop"])]),_:1},8,["modelValue"])]),n("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:b[1]||(b[1]=(...p)=>s.store.addItem&&s.store.addItem(...p))},[a(D,{name:"PlusCircleIcon",class:"mr-2"}),E(" "+h(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(s,{emit:t}){const e=s;re("$utils");const r=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);Ue(()=>{e.store.getSubtotalWithDiscount&&w(),e.store.getTotalSimpleTax&&w()});function w(){t("update",G(N({},e.tax),{amount:r.value}))}return(b,S)=>{const f=y("BaseFormatMoney"),D=y("BaseIcon");return l(),$("div",Gt,[n("label",Wt,h(s.tax.name)+" ("+h(s.tax.percent)+" %) ",1),n("label",Rt,[a(f,{amount:s.tax.amount,currency:s.currency},null,8,["amount","currency"]),a(D,{name:"TrashIcon",class:"h-5 ml-2 cursor-pointer",onClick:S[0]||(S[0]=p=>b.$emit("remove",s.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"},as={class:"m-0 text-base font-semibold text-gray-700 cursor-pointer"},ns={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(s,{emit:t}){const e=s,r=H(),w=ee(),b=ae(),{t:S}=J(),f=W(null),D=B(()=>f.value?w.taxTypes.filter(function(T){return T.name.toLowerCase().indexOf(f.value.toLowerCase())!==-1}):w.taxTypes),p=B(()=>e.store[e.storeProp].taxes);function j(T,d){t("select:taxType",N({},T)),d()}function V(){r.openModal({title:S("settings.tax_types.add_tax"),componentName:"TaxTypeModal",size:"sm",refreshData:T=>t("select:taxType",T)})}return(T,d)=>{const i=y("BaseIcon"),m=y("BaseInput");return l(),$("div",Ht,[a(o(Fe),{class:"relative"},{default:c(({isOpen:u})=>[a(o(Oe),{class:X([u?"":"text-opacity-90","flex items-center text-sm font-medium text-primary-400 focus:outline-none focus:border-none"])},{default:c(()=>[a(i,{name:"PlusIcon",class:"w-4 h-4 font-medium text-primary-400"}),E(" "+h(T.$t("settings.tax_types.add_tax")),1)]),_:2},1032,["class"]),n("div",Jt,[a(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(()=>[a(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:k})=>[n("div",Zt,[n("div",Kt,[n("div",Qt,[a(m,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=x=>f.value=x),placeholder:T.$t("general.search"),type:"text",class:"text-black"},null,8,["modelValue","placeholder"])]),o(D).length>0?(l(),$("div",es,[(l(!0),$(Q,null,se(o(D),(x,M)=>(l(),$("div",{key:M,class:X([{"bg-gray-100 cursor-not-allowed opacity-50 pointer-events-none":o(p).find(C=>C.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:C=>j(x,k)},[n("div",ss,[n("label",os,h(x.name),1),n("label",as,h(x.percent)+" % ",1)])],10,ts))),128))])):(l(),$("div",ns,[n("label",rs,h(T.$t("general.no_tax_found")),1)]))]),o(b).hasAbilities(o(ne).CREATE_TAX_TYPE)?(l(),$("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},[a(i,{name:"CheckCircleIcon",class:"text-primary-400"}),n("label",ls,h(T.$t("estimates.add_new_tax")),1)])):L("",!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"},fs={key:0,class:"flex items-center justify-between w-full mt-2"},xs={key:1,class:"text-sm font-semibold leading-5 text-gray-400 uppercase"},_s={key:3,class:"flex",style:{width:"140px"},role:"group"},gs={class:"flex items-center"},hs={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"},eo={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(s){const t=s,e=W(null);re("$utils");const r=te(),w=B({get:()=>t.store[t.storeProp].discount,set:d=>{t.store[t.storeProp].discount_type==="percentage"?t.store[t.storeProp].discount_val=Math.round(t.store.getSubTotal*d/100):t.store[t.storeProp].discount_val=Math.round(d*100),t.store[t.storeProp].discount=d}}),b=B({get:()=>t.store[t.storeProp].taxes,set:d=>{t.store.$patch(i=>{i[t.storeProp].taxes=d})}}),S=B(()=>{let d=[];return t.store[t.storeProp].items.forEach(i=>{i.taxes&&i.taxes.forEach(m=>{let u=d.find(k=>k.tax_type_id===m.tax_type_id);u?u.amount+=m.amount:m.tax_type_id&&d.push({tax_type_id:m.tax_type_id,amount:m.amount,percent:m.percent,name:m.name})})}),d}),f=B(()=>t.currency?t.currency:r.selectedCompanyCurrency);function D(){t.store[t.storeProp].discount_type!=="fixed"&&(t.store[t.storeProp].discount_val=Math.round(t.store[t.storeProp].discount*100),t.store[t.storeProp].discount_type="fixed")}function p(){t.store[t.storeProp].discount_type!=="percentage"&&(t.store[t.storeProp].discount_val=t.store.getSubTotal*t.store[t.storeProp].discount/100,t.store[t.storeProp].discount_type="percentage")}function j(d){let i=0;d.compound_tax&&t.store.getSubtotalWithDiscount?i=Math.round((t.store.getSubtotalWithDiscount+t.store.getTotalSimpleTax)*d.percent/100):t.store.getSubtotalWithDiscount&&d.percent&&(i=Math.round(t.store.getSubtotalWithDiscount*d.percent/100));let m=G(N({},ne),{id:ge.raw(),name:d.name,percent:d.percent,compound_tax:d.compound_tax,tax_type_id:d.id,amount:i});t.store.$patch(u=>{u[t.storeProp].taxes.push(N({},m))})}function V(d){const i=t.store[t.storeProp].taxes.find(m=>m.id===d.id);i&&Object.assign(i,N({},d))}function T(d){const i=t.store[t.storeProp].taxes.findIndex(m=>m.id===d);t.store.$patch(m=>{m[t.storeProp].taxes.splice(i,1)})}return(d,i)=>{const m=y("BaseContentPlaceholdersText"),u=y("BaseContentPlaceholders"),k=y("BaseFormatMoney"),x=y("BaseInput"),M=y("BaseIcon"),C=y("BaseButton"),_=y("BaseDropdownItem"),v=y("BaseDropdown");return l(),$("div",ds,[n("div",cs,[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",us,h(d.$t("estimates.sub_total")),1)),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",ms,[a(k,{amount:s.store.getSubTotal,currency:o(f)},null,8,["amount","currency"])]))]),(l(!0),$(Q,null,se(o(S),I=>(l(),$("div",{key:I.tax_type_id,class:"flex items-center justify-between w-full"},[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):s.store[s.storeProp].tax_per_item==="YES"?(l(),$("label",ps,h(I.name)+" - "+h(I.percent)+"% ",1)):L("",!0),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):s.store[s.storeProp].tax_per_item==="YES"?(l(),$("label",ys,[a(k,{amount:I.amount,currency:o(f)},null,8,["amount","currency"])])):L("",!0)]))),128)),s.store[s.storeProp].discount_per_item==="NO"||s.store[s.storeProp].discount_per_item===null?(l(),$("div",fs,[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",xs,h(d.$t("estimates.discount")),1)),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-24 h-8 rounded-md border"})]),_:1})):(l(),$("div",_s,[a(x,{modelValue:o(w),"onUpdate:modelValue":i[0]||(i[0]=I=>K(w)?w.value=I:null),class:"border-r-0 focus:border-r-2 rounded-tr-sm rounded-br-sm h-[38px]"},null,8,["modelValue"]),a(v,{position:"bottom-end"},{activator:c(()=>[a(C,{class:"rounded-tr-md rounded-br-md p-2 rounded-none",type:"button",variant:"white"},{default:c(()=>[n("span",gs,[E(h(s.store[s.storeProp].discount_type=="fixed"?o(f).symbol:"%")+" ",1),a(M,{name:"ChevronDownIcon",class:"w-4 h-4 text-gray-500 ml-1"})])]),_:1})]),default:c(()=>[a(_,{onClick:D},{default:c(()=>[E(h(d.$t("general.fixed")),1)]),_:1}),a(_,{onClick:p},{default:c(()=>[E(h(d.$t("general.percentage")),1)]),_:1})]),_:1})]))])):L("",!0),s.store[s.storeProp].tax_per_item==="NO"||s.store[s.storeProp].tax_per_item===null?(l(),$("div",hs,[(l(!0),$(Q,null,se(o(b),(I,A)=>(l(),q(Xt,{key:I.id,index:A,tax:I,taxes:o(b),currency:s.currency,store:s.store,onRemove:T,onUpdate:V},null,8,["index","tax","taxes","currency","store"]))),128))])):L("",!0),s.store[s.storeProp].tax_per_item==="NO"||s.store[s.storeProp].tax_per_item===null?(l(),$("div",{key:2,ref:(I,A)=>{A.taxModal=I,e.value=I},class:"float-right pt-2 pb-4"},[a(is,{"store-prop":s.storeProp,store:s.store,type:s.taxPopupType,"onSelect:taxType":j},null,8,["store-prop","store","type"])],512)):L("",!0),n("div",bs,[s.isLoading?(l(),q(u,{key:0},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",vs,h(d.$t("estimates.total"))+" "+h(d.$t("estimates.amount"))+":",1)),s.isLoading?(l(),q(u,{key:2},{default:c(()=>[a(m,{lines:1,class:"w-16 h-5"})]),_:1})):(l(),$("label",$s,[a(k,{amount:s.store.getTotal,currency:o(f)},null,8,["amount","currency"])]))])])}}},ws={class:"flex text-gray-800 font-medium text-sm mb-2"},Bs=n("span",{class:"text-sm text-red-500"}," *",-1),to={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},isMarkAsDefault:{type:Boolean,default:!1}},setup(s){const t=s,e=H(),{t:r}=J();function w(){let b="";t.storeProp=="newEstimate"?b=r("estimates.mark_as_default_estimate_template_description"):t.storeProp=="newInvoice"&&(b=r("invoices.mark_as_default_invoice_template_description")),e.openModal({title:r("general.choose_template"),componentName:"SelectTemplate",data:{templates:t.store.templates,store:t.store,storeProp:t.storeProp,isMarkAsDefault:t.isMarkAsDefault,markAsDefaultDescription:b}})}return(b,S)=>{const f=y("BaseIcon"),D=y("BaseButton");return l(),$("div",null,[n("label",ws,[E(h(b.$t("general.select_template"))+" ",1),Bs]),a(D,{type:"button",class:"flex justify-center w-full text-sm lg:w-auto hover:bg-gray-200",variant:"gray",onClick:w},{right:c(p=>[a(f,{name:"PencilIcon",class:X(p.class)},null,8,["class"])]),default:c(()=>[E(" "+h(s.store[s.storeProp].template_name),1)]),_:1})])}}},Ss={class:"mb-6"},Is={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"},so={props:{store:{type:Object,default:null},storeProp:{type:String,default:""},fields:{type:Object,default:null},type:{type:String,default:null}},setup(s){const t=s;function e(r){t.store[t.storeProp].notes=""+r.notes}return(r,w)=>{const b=y("BaseCustomInput");return l(),$("div",Ss,[n("div",Is,[a(Ge,{type:s.type,onSelect:e},null,8,["type"])]),n("label",Ps,h(r.$t("invoices.notes")),1),a(b,{modelValue:s.store[s.storeProp].notes,"onUpdate:modelValue":w[0]||(w[0]=S=>s.store[s.storeProp].notes=S),"content-loading":s.store.isFetchingInitialSettings,fields:s.fields,class:"mt-1"},null,8,["modelValue","content-loading","fields"])])}}},ks={class:"flex justify-between w-full"},Ts={class:"px-8 py-8 sm:p-6"},Cs={key:0,class:"grid grid-cols-3 gap-2 p-1 overflow-x-auto"},Ms=["onClick"],Ds=["src","alt"],Vs=["alt","src"],js={key:1,class:"z-0 flex ml-3 pt-5"},qs={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},oo={setup(s){const t=H(),e=ae(),r=W(""),w=B(()=>t.active&&t.componentName==="SelectTemplate"),b=B(()=>t.title);function S(){t.data.store[t.data.storeProp].template_name?r.value=t.data.store[t.data.storeProp].template_name:r.value=t.data.templates[0]}async function f(){await t.data.store.setTemplate(r.value),!t.data.store.isEdit&&t.data.isMarkAsDefault&&(t.data.storeProp=="newEstimate"?await e.updateUserSettings({settings:{default_estimate_template:r.value}}):t.data.storeProp=="newInvoice"&&await e.updateUserSettings({settings:{default_invoice_template:r.value}})),p()}function D(){return new URL("/build/img/tick.png",self.location)}function p(){t.closeModal(),setTimeout(()=>{t.$reset()},300)}return(j,V)=>{const T=y("BaseIcon"),d=y("BaseCheckbox"),i=y("BaseButton"),m=y("BaseModal");return l(),q(m,{show:o(w),onClose:p,onOpen:S},{header:c(()=>[n("div",ks,[E(h(o(b))+" ",1),a(T,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:p})])]),default:c(()=>[n("div",Ts,[o(t).data?(l(),$("div",Cs,[(l(!0),$(Q,null,se(o(t).data.templates,(u,k)=>(l(),$("div",{key:k,class:X([{"border border-solid border-primary-500":r.value===u.name},"relative flex flex-col m-2 border border-gray-200 border-solid cursor-pointer hover:border-primary-300"]),onClick:x=>r.value=u.name},[n("img",{src:u.path,alt:u.name,class:"w-full min-h-[100px]"},null,8,Ds),r.value===u.name?(l(),$("img",{key:0,alt:u.name,class:"absolute z-10 w-5 h-5 text-primary-500",style:{top:"-6px",right:"-5px"},src:D()},null,8,Vs)):L("",!0),n("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":r.value===u.name,"text-gray-600":r.value!=u.name}])},h(u.name),3)],10,Ms))),128))])):L("",!0),o(t).data.store.isEdit?L("",!0):(l(),$("div",js,[a(d,{modelValue:o(t).data.isMarkAsDefault,"onUpdate:modelValue":V[0]||(V[0]=u=>o(t).data.isMarkAsDefault=u),"set-initial-value":!1,variant:"primary",label:j.$t("general.mark_as_default"),description:o(t).data.markAsDefaultDescription},null,8,["modelValue","label","description"])]))]),n("div",qs,[a(i,{class:"mr-3",variant:"primary-outline",onClick:p},{default:c(()=>[E(h(j.$t("general.cancel")),1)]),_:1}),a(i,{variant:"primary",onClick:V[1]||(V[1]=u=>f())},{left:c(u=>[a(T,{name:"SaveIcon",class:X(u.class)},null,8,["class"])]),default:c(()=>[E(" "+h(j.$t("general.choose")),1)]),_:1})])]),_:1},8,["show"])}}},As={class:"flex justify-between w-full"},Es={class:"item-modal"},Ls=["onSubmit"],Us={class:"px-8 py-8 sm:p-6"},Os={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ao={emits:["newItem"],setup(s,{emit:t}){const e=H(),r=fe(),w=te(),b=ee();Me(),De();const{t:S}=J(),f=W(!1),D=W(w.selectedCompanySettings.tax_per_item),p=B(()=>e.active&&e.componentName==="ItemModal"),j=B({get:()=>r.currentItem.price/100,set:x=>{r.currentItem.price=Math.round(x*100)}}),V=B({get:()=>r.currentItem.taxes.map(x=>{if(x)return G(N({},x),{tax_type_id:x.id,tax_name:x.name+" ("+x.percent+"%)"})}),set:x=>{r.$patch(M=>{M.currentItem.taxes=x})}}),T=B(()=>D.value==="YES"),d={name:{required:O.withMessage(S("validation.required"),R),minLength:O.withMessage(S("validation.name_min_length",{count:3}),Ye(3))},description:{maxLength:O.withMessage(S("validation.description_maxlength",{count:255}),oe(255))}},i=ie(d,B(()=>r.currentItem)),m=B(()=>b.taxTypes.map(x=>G(N({},x),{tax_name:x.name+" ("+x.percent+"%)"})));he(()=>{i.value.$reset(),r.fetchItemUnits({limit:"all"})});async function u(){if(i.value.$touch(),i.value.$invalid)return!0;let x=G(N({},r.currentItem),{taxes:r.currentItem.taxes.map(C=>({tax_type_id:C.id,amount:j.value*C.percent/100,percent:C.percent,name:C.name,collective_tax:0}))});f.value=!0,await(r.isEdit?r.updateItem:r.addItem)(x).then(C=>{f.value=!1,C.data.data&&e.data&&e.refreshData(C.data.data),k()})}function k(){e.closeModal(),setTimeout(()=>{r.resetCurrentItem(),e.$reset(),i.value.$reset()},300)}return(x,M)=>{const C=y("BaseIcon"),_=y("BaseInput"),v=y("BaseInputGroup"),I=y("BaseMoney"),A=y("BaseMultiselect"),g=y("BaseTextarea"),P=y("BaseInputGrid"),U=y("BaseButton"),Y=y("BaseModal");return l(),q(Y,{show:o(p),onClose:k},{header:c(()=>[n("div",As,[E(h(o(e).title)+" ",1),a(C,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:k})])]),default:c(()=>[n("div",Es,[n("form",{action:"",onSubmit:be(u,["prevent"])},[n("div",Us,[a(P,{layout:"one-column"},{default:c(()=>[a(v,{label:x.$t("items.name"),required:"",error:o(i).name.$error&&o(i).name.$errors[0].$message},{default:c(()=>[a(_,{modelValue:o(r).currentItem.name,"onUpdate:modelValue":M[0]||(M[0]=z=>o(r).currentItem.name=z),type:"text",invalid:o(i).name.$error,onInput:M[1]||(M[1]=z=>o(i).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),a(v,{label:x.$t("items.price")},{default:c(()=>[a(I,{key:o(w).selectedCompanyCurrency,modelValue:o(j),"onUpdate:modelValue":M[2]||(M[2]=z=>K(j)?j.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"]),a(v,{label:x.$t("items.unit")},{default:c(()=>[a(A,{modelValue:o(r).currentItem.unit_id,"onUpdate:modelValue":M[3]||(M[3]=z=>o(r).currentItem.unit_id=z),label:"name",options:o(r).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(),q(v,{key:0,label:x.$t("items.taxes")},{default:c(()=>[a(A,{modelValue:o(V),"onUpdate:modelValue":M[4]||(M[4]=z=>K(V)?V.value=z:null),options:o(m),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"])):L("",!0),a(v,{label:x.$t("items.description"),error:o(i).description.$error&&o(i).description.$errors[0].$message},{default:c(()=>[a(g,{modelValue:o(r).currentItem.description,"onUpdate:modelValue":M[5]||(M[5]=z=>o(r).currentItem.description=z),rows:"4",cols:"50",invalid:o(i).description.$error,onInput:M[6]||(M[6]=z=>o(i).description.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),n("div",Os,[a(U,{class:"mr-3",variant:"primary-outline",type:"button",onClick:k},{default:c(()=>[E(h(x.$t("general.cancel")),1)]),_:1}),a(U,{loading:f.value,disabled:f.value,variant:"primary",type:"submit"},{left:c(z=>[a(C,{name:"SaveIcon",class:X(z.class)},null,8,["class"])]),default:c(()=>[E(" "+h(o(r).isEdit?x.$t("general.update"):x.$t("general.save")),1)]),_:1},8,["loading","disabled"])])],40,Ls)])]),_:1},8,["show"])}}},zs={class:"flex justify-between w-full"},Ns={class:"flex flex-col"},Fs={class:"text-sm text-gray-500 mt-1"},Ys=["onSubmit"],Gs={class:"p-4 sm:p-6"},Ws={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Rs={emits:["addTax"],setup(s,{emit:t}){const e=H();Ve();const r=xe({state:"",city:"",address_street_1:"",zip:""}),w=W(!1),b=ee(),{t:S}=J(),f=B(()=>e.active&&e.componentName==="TaxationAddressModal"),D=B(()=>({state:{required:O.withMessage(S("validation.required"),R)},city:{required:O.withMessage(S("validation.required"),R)},address_street_1:{required:O.withMessage(S("validation.required"),R)},zip:{required:O.withMessage(S("validation.required"),R)}})),p=ie(D,B(()=>r));async function j(){if(p.value.$touch(),p.value.$invalid)return!0;let d={address:r};e.id&&(d.customer_id=e.id),r.address_street_1=r.address_street_1.replace(/(\r\n|\n|\r)/gm,""),w.value=!0,await b.fetchSalesTax(d).then(i=>{w.value=!1,t("addTax",i.data.data),T()}).catch(i=>{w.value=!1})}function V(){var d,i,m,u;r.state=(d=e==null?void 0:e.data)==null?void 0:d.state,r.city=(i=e==null?void 0:e.data)==null?void 0:i.city,r.address_street_1=(m=e==null?void 0:e.data)==null?void 0:m.address_street_1,r.zip=(u=e==null?void 0:e.data)==null?void 0:u.zip}function T(){e.closeModal()}return(d,i)=>{const m=y("BaseIcon"),u=y("BaseInput"),k=y("BaseInputGroup"),x=y("BaseTextarea"),M=y("BaseInputGrid"),C=y("BaseButton"),_=y("BaseModal");return l(),q(_,{show:o(f),onClose:T,onOpen:V},{header:c(()=>[n("div",zs,[n("div",Ns,[E(h(o(e).title)+" ",1),n("p",Fs,h(o(e).content),1)]),a(m,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:T})])]),default:c(()=>[n("form",{onSubmit:be(j,["prevent"])},[n("div",Gs,[a(M,{layout:"one-column"},{default:c(()=>[a(k,{required:"",error:o(p).state.$error&&o(p).state.$errors[0].$message,label:d.$t("customers.state")},{default:c(()=>[a(u,{modelValue:o(r).state,"onUpdate:modelValue":i[0]||(i[0]=v=>o(r).state=v),type:"text",name:"shippingState",class:"mt-1 md:mt-0",invalid:o(p).state.$error,onInput:i[1]||(i[1]=v=>o(p).state.$touch()),placeholder:d.$t("settings.taxations.state_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),a(k,{required:"",error:o(p).city.$error&&o(p).city.$errors[0].$message,label:d.$t("customers.city")},{default:c(()=>[a(u,{modelValue:o(r).city,"onUpdate:modelValue":i[2]||(i[2]=v=>o(r).city=v),type:"text",name:"shippingCity",class:"mt-1 md:mt-0",invalid:o(p).city.$error,onInput:i[3]||(i[3]=v=>o(p).city.$touch()),placeholder:d.$t("settings.taxations.city_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),a(k,{required:"",error:o(p).address_street_1.$error&&o(p).address_street_1.$errors[0].$message,label:d.$t("customers.address")},{default:c(()=>[a(x,{modelValue:o(r).address_street_1,"onUpdate:modelValue":i[4]||(i[4]=v=>o(r).address_street_1=v),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:o(p).address_street_1.$error,onInput:i[5]||(i[5]=v=>o(p).address_street_1.$touch()),placeholder:d.$t("settings.taxations.address_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"]),a(k,{required:"",error:o(p).zip.$error&&o(p).zip.$errors[0].$message,label:d.$t("customers.zip_code")},{default:c(()=>[a(u,{modelValue:o(r).zip,"onUpdate:modelValue":i[6]||(i[6]=v=>o(r).zip=v),invalid:o(p).zip.$error,onInput:i[7]||(i[7]=v=>o(p).zip.$touch()),type:"text",class:"mt-1 md:mt-0",placeholder:d.$t("settings.taxations.zip_placeholder")},null,8,["modelValue","invalid","placeholder"])]),_:1},8,["error","label"])]),_:1})]),n("div",Ws,[a(C,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:T},{default:c(()=>[E(h(d.$t("general.cancel")),1)]),_:1}),a(C,{loading:w.value,variant:"primary",type:"submit"},{left:c(v=>[w.value?L("",!0):(l(),q(m,{key:0,name:"SaveIcon",class:X(v.class)},null,8,["class"]))]),default:c(()=>[E(" "+h(d.$t("general.save")),1)]),_:1},8,["loading"])])],40,Ys)]),_:1},8,["show"])}}},no={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(s){const t=s,e="Sales Tax",r="MODULE",w=H(),b=te(),S=ee(),{t:f}=J(),D=W(!1),p=B(()=>t.isEdit?t.store[t.storeProp].sales_tax_address_type==="billing":b.selectedCompanySettings.sales_tax_address_type==="billing"),j=B(()=>b.selectedCompanySettings.sales_tax_us_enabled==="YES"),V=B(()=>t.isEdit?t.store[t.storeProp].sales_tax_type==="customer_level":b.selectedCompanySettings.sales_tax_type==="customer_level"),T=B(()=>t.isEdit?t.store[t.storeProp].sales_tax_type==="company_level":b.selectedCompanySettings.sales_tax_type==="company_level"),d=B(()=>{if(V.value&&i.value){let _=p.value?t.customer.billing:t.customer.shipping;return{address:Z.exports.pick(_,["address_street_1","city","state","zip"]),customer_id:t.customer.id}}else if(T.value&&i.value)return{address:Z.exports.pick(address,["address_street_1","city","state","zip"])}}),i=B(()=>{var _,v;if(V.value){let I=p.value?(_=t.customer)==null?void 0:_.billing:(v=t.customer)==null?void 0:v.shipping;return m(I)}else if(T.value)return m(b.selectedCompany.address);return!1});le(()=>t.customer,(_,v)=>{if(_&&v&&V.value){u(_,v);return}!i.value&&V.value&&_?setTimeout(()=>{k()},500):V.value&&_?x():V.value&&!_&&C()}),he(()=>{T.value&&(i.value?x():k())});function m(_){return _?_.address_street_1&&_.city&&_.state&&_.zip:!1}function u(_,v){const I=p.value?_.billing:_.shipping,A=p.value?v.billing:v.shipping,g=Z.exports.pick(I,["address_street_1","city","state","zip"]),P=Z.exports.pick(A,["address_street_1","city","state","zip"]);Z.exports.isEqual(g,P)||x()}function k(){var I,A;if(!j.value)return;let _=null,v="";V.value?p.value?(_=(I=t.customer)==null?void 0:I.billing,v=f("settings.taxations.add_billing_address")):(_=(A=t.customer)==null?void 0:A.shipping,v=f("settings.taxations.add_shipping_address")):(_=b.selectedCompany.address,v=f("settings.taxations.add_company_address")),w.openModal({title:v,content:f("settings.taxations.modal_description"),componentName:"TaxationAddressModal",data:_,id:V.value?t.customer.id:""})}async function x(){!j.value||(D.value=!0,await S.fetchSalesTax(d.value).then(_=>{M(_.data.data),D.value=!1}).catch(_=>{_.response.data.error&&setTimeout(()=>{k()},500),D.value=!1}))}function M(_){_.tax_type_id=_.id;const v=t.store[t.storeProp].taxes.findIndex(I=>I.name===e&&I.type===r);v>-1?Object.assign(t.store[t.storeProp].taxes[v],_):t.store[t.storeProp].taxes.push(_)}function C(){const _=t.store[t.storeProp].taxes.findIndex(I=>I.name===e&&I.type===r);_>-1&&t.store[t.storeProp].taxes.splice(_,1);let v=S.taxTypes.findIndex(I=>I.name===e&&I.type===r);v>-1&&S.taxTypes.splice(v,1)}return(_,v)=>(l(),q(Rs,{onAddTax:M}))}};export{oo as _,ao as a,no as b,Qs as c,so as d,to as e,eo as f}; diff --git a/public/build/assets/SelectNotePopup.9f1463c3.js b/public/build/assets/SelectNotePopup.ead4330d.js similarity index 83% rename from public/build/assets/SelectNotePopup.9f1463c3.js rename to public/build/assets/SelectNotePopup.ead4330d.js index b7445875c..fd3ac85d1 100644 --- a/public/build/assets/SelectNotePopup.9f1463c3.js +++ b/public/build/assets/SelectNotePopup.ead4330d.js @@ -1 +1 @@ -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.d12b5734.js";import{u as Z,_ as q}from"./NoteModal.62a64a69.js";import{c as H,e as K,g as C}from"./main.6ceeb72d.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 _}; +var P=Object.defineProperty;var v=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(v)for(var e of v(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.d12b5734.js";import{u as Z,_ as q}from"./NoteModal.c9605dba.js";import{c as H,e as K,g as C}from"./main.c7bd6c0e.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 b=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(b,{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,h)=>(l(),i("div",{key:h,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(h,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(b,{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 _}; diff --git a/public/build/assets/SendEstimateModal.5a99ff19.js b/public/build/assets/SendEstimateModal.d6ecf83f.js similarity index 97% rename from public/build/assets/SendEstimateModal.5a99ff19.js rename to public/build/assets/SendEstimateModal.d6ecf83f.js index fdc42668e..2f33678d6 100644 --- a/public/build/assets/SendEstimateModal.5a99ff19.js +++ b/public/build/assets/SendEstimateModal.d6ecf83f.js @@ -1 +1 @@ -import{J as O,B as h,a0 as J,k as C,L as p,M as B,Q as E,T as Q,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.d12b5734.js";import{c as X,k as H,u as K,b as W}from"./main.6ceeb72d.js";import{u as Y}from"./mail-driver.c62711d2.js";const Z={class:"flex justify-between w-full"},ee={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"},oe={key:1},re={class:"my-6 mx-4 border border-gray-200 relative"},se=f(" Edit "),le=["src"],ne={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ce={emits:["update"],setup(ie,{emit:U}){const m=X(),V=H(),P=K(),k=W();Y();const{t:u}=O(),n=h(!1),I=h(""),b=h(!1),D=h(["customer","customerCustom","estimate","estimateCustom","company"]);let o=J({id:null,from:null,to:null,subject:"New Estimate",body:null});const G=C(()=>m.active&&m.componentName==="SendEstimateModal"),q=C(()=>m.data),L={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=Q(L,C(()=>o));function F(){b.value=!1}async function R(){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 U("update"),y(),!0}catch(t){console.error(t),n.value=!1,P.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"),T=d("BaseCustomInput"),z=d("BaseInputGrid"),_=d("BaseButton"),A=d("BaseModal");return g(),M(A,{show:e(G),onClose:y,onOpen:R},{header:l(()=>[v("div",Z,[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",oe,[v("div",re,[a(_,{class:"absolute top-4 right-4",disabled:n.value,variant:"primary-outline",onClick:F},{default:l(()=>[a(c,{name:"PencilIcon",class:"h-5 mr-2"}),se]),_:1},8,["disabled"]),v("iframe",{src:I.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,le)]),v("div",ne,[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",ee,[v("div",te,[a(z,{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(T,{modelValue:e(o).body,"onUpdate:modelValue":t[6]||(t[6]=i=>e(o).body=i),fields:D.value},null,8,["modelValue","fields"])]),_:1},8,["label"])]),_:1})]),v("div",ae,[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{ce as _}; +import{J as O,B as h,a0 as J,k as C,L as p,M as B,Q as E,T as Q,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.d12b5734.js";import{c as X,k as H,u as K,b as W}from"./main.c7bd6c0e.js";import{u as Y}from"./mail-driver.b57a1b96.js";const Z={class:"flex justify-between w-full"},ee={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"},oe={key:1},re={class:"my-6 mx-4 border border-gray-200 relative"},se=f(" Edit "),le=["src"],ne={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ce={emits:["update"],setup(ie,{emit:U}){const m=X(),V=H(),P=K(),k=W();Y();const{t:u}=O(),n=h(!1),I=h(""),b=h(!1),D=h(["customer","customerCustom","estimate","estimateCustom","company"]);let o=J({id:null,from:null,to:null,subject:"New Estimate",body:null});const G=C(()=>m.active&&m.componentName==="SendEstimateModal"),q=C(()=>m.data),L={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=Q(L,C(()=>o));function F(){b.value=!1}async function R(){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 U("update"),y(),!0}catch(t){console.error(t),n.value=!1,P.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"),T=d("BaseCustomInput"),z=d("BaseInputGrid"),_=d("BaseButton"),A=d("BaseModal");return g(),M(A,{show:e(G),onClose:y,onOpen:R},{header:l(()=>[v("div",Z,[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",oe,[v("div",re,[a(_,{class:"absolute top-4 right-4",disabled:n.value,variant:"primary-outline",onClick:F},{default:l(()=>[a(c,{name:"PencilIcon",class:"h-5 mr-2"}),se]),_:1},8,["disabled"]),v("iframe",{src:I.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,le)]),v("div",ne,[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",ee,[v("div",te,[a(z,{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(T,{modelValue:e(o).body,"onUpdate:modelValue":t[6]||(t[6]=i=>e(o).body=i),fields:D.value},null,8,["modelValue","fields"])]),_:1},8,["label"])]),_:1})]),v("div",ae,[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{ce as _}; diff --git a/public/build/assets/SendInvoiceModal.224b5c76.js b/public/build/assets/SendInvoiceModal.df7ecbe5.js similarity index 97% rename from public/build/assets/SendInvoiceModal.224b5c76.js rename to public/build/assets/SendInvoiceModal.df7ecbe5.js index 49f9fe483..2b235c15d 100644 --- a/public/build/assets/SendInvoiceModal.224b5c76.js +++ b/public/build/assets/SendInvoiceModal.df7ecbe5.js @@ -1 +1 @@ -import{c as J,b as Q,u as X,i as H}from"./main.6ceeb72d.js";import{J as K,B as I,a0 as W,k as B,L as p,M as h,Q as N,T as Y,r as c,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 Z,j as U}from"./vendor.d12b5734.js";import{u as ee}from"./mail-driver.c62711d2.js";const oe={class:"flex justify-between w-full"},te={key:0,action:""},ae={class:"px-8 py-8 sm:p-6"},re={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},se={key:1},le={class:"my-6 mx-4 border border-gray-200 relative"},ne=f(" Edit "),ie=["src"],ue={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ve={emits:["update"],setup(de,{emit:P}){const u=J(),V=Q(),D=X(),k=H();ee();const{t:d}=K();let i=I(!1);const C=I(""),b=I(!1),G=I(["customer","customerCustom","invoice","invoiceCustom","company"]),r=W({id:null,from:null,to:null,subject:"New Invoice",body:null}),L=B(()=>u.active&&u.componentName==="SendInvoiceModal"),T=B(()=>u.title),q=B(()=>u.data),z={from:{required:p.withMessage(d("validation.required"),h),email:p.withMessage(d("validation.email_incorrect"),N)},to:{required:p.withMessage(d("validation.required"),h),email:p.withMessage(d("validation.email_incorrect"),N)},subject:{required:p.withMessage(d("validation.required"),h)},body:{required:p.withMessage(d("validation.required"),h)}},t=Y(z,B(()=>r));function F(){b.value=!1}async function R(){let s=await V.fetchBasicMailConfig();r.id=u.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}const o=await k.sendInvoice(r);if(i.value=!1,o.data.success)return P("update",u.id),y(),!0}catch(o){console.error(o),i.value=!1,D.showNotification({type:"error",message:d("invoices.something_went_wrong")})}}function y(){u.closeModal(),setTimeout(()=>{t.value.$reset(),b.value=!1,C.value=null},300)}return(s,o)=>{const m=c("BaseIcon"),j=c("BaseInput"),w=c("BaseInputGroup"),A=c("BaseCustomInput"),E=c("BaseInputGrid"),g=c("BaseButton"),O=c("BaseModal");return _(),M(O,{show:e(L),onClose:y,onOpen:R},{header:n(()=>[v("div",oe,[f($(e(T))+" ",1),a(m,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:y})])]),default:n(()=>[b.value?(_(),x("div",se,[v("div",le,[a(g,{class:"absolute top-4 right-4",disabled:e(i),variant:"primary-outline",onClick:F},{default:n(()=>[a(m,{name:"PencilIcon",class:"h-5 mr-2"}),ne]),_:1},8,["disabled"]),v("iframe",{src:C.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,ie)]),v("div",ue,[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",te,[v("div",ae,[a(E,{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(A,{modelValue:e(r).body,"onUpdate:modelValue":o[6]||(o[6]=l=>e(r).body=l),fields:G.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),v("div",re,[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:Z(l.class),name:"PhotographIcon"},null,8,["class"]))]),default:n(()=>[f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{ve as _}; +import{c as J,b as Q,u as X,i as H}from"./main.c7bd6c0e.js";import{J as K,B as I,a0 as W,k as B,L as p,M as h,Q as N,T as Y,r as c,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 Z,j as U}from"./vendor.d12b5734.js";import{u as ee}from"./mail-driver.b57a1b96.js";const oe={class:"flex justify-between w-full"},te={key:0,action:""},ae={class:"px-8 py-8 sm:p-6"},re={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},se={key:1},le={class:"my-6 mx-4 border border-gray-200 relative"},ne=f(" Edit "),ie=["src"],ue={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},ve={emits:["update"],setup(de,{emit:P}){const u=J(),V=Q(),D=X(),k=H();ee();const{t:d}=K();let i=I(!1);const C=I(""),b=I(!1),G=I(["customer","customerCustom","invoice","invoiceCustom","company"]),r=W({id:null,from:null,to:null,subject:"New Invoice",body:null}),L=B(()=>u.active&&u.componentName==="SendInvoiceModal"),T=B(()=>u.title),q=B(()=>u.data),z={from:{required:p.withMessage(d("validation.required"),h),email:p.withMessage(d("validation.email_incorrect"),N)},to:{required:p.withMessage(d("validation.required"),h),email:p.withMessage(d("validation.email_incorrect"),N)},subject:{required:p.withMessage(d("validation.required"),h)},body:{required:p.withMessage(d("validation.required"),h)}},t=Y(z,B(()=>r));function F(){b.value=!1}async function R(){let s=await V.fetchBasicMailConfig();r.id=u.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}const o=await k.sendInvoice(r);if(i.value=!1,o.data.success)return P("update",u.id),y(),!0}catch(o){console.error(o),i.value=!1,D.showNotification({type:"error",message:d("invoices.something_went_wrong")})}}function y(){u.closeModal(),setTimeout(()=>{t.value.$reset(),b.value=!1,C.value=null},300)}return(s,o)=>{const m=c("BaseIcon"),j=c("BaseInput"),w=c("BaseInputGroup"),A=c("BaseCustomInput"),E=c("BaseInputGrid"),g=c("BaseButton"),O=c("BaseModal");return _(),M(O,{show:e(L),onClose:y,onOpen:R},{header:n(()=>[v("div",oe,[f($(e(T))+" ",1),a(m,{name:"XIcon",class:"w-6 h-6 text-gray-500 cursor-pointer",onClick:y})])]),default:n(()=>[b.value?(_(),x("div",se,[v("div",le,[a(g,{class:"absolute top-4 right-4",disabled:e(i),variant:"primary-outline",onClick:F},{default:n(()=>[a(m,{name:"PencilIcon",class:"h-5 mr-2"}),ne]),_:1},8,["disabled"]),v("iframe",{src:C.value,frameborder:"0",class:"w-full",style:{"min-height":"500px"}},null,8,ie)]),v("div",ue,[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",te,[v("div",ae,[a(E,{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(A,{modelValue:e(r).body,"onUpdate:modelValue":o[6]||(o[6]=l=>e(r).body=l),fields:G.value},null,8,["modelValue","fields"])]),_:1},8,["label","error"])]),_:1})]),v("div",re,[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:Z(l.class),name:"PhotographIcon"},null,8,["class"]))]),default:n(()=>[f(" "+$(s.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{ve as _}; diff --git a/public/build/assets/SendPaymentModal.e1c4e0ab.js b/public/build/assets/SendPaymentModal.b203e586.js similarity index 96% rename from public/build/assets/SendPaymentModal.e1c4e0ab.js rename to public/build/assets/SendPaymentModal.b203e586.js index dd6bfec38..e18515ef1 100644 --- a/public/build/assets/SendPaymentModal.e1c4e0ab.js +++ b/public/build/assets/SendPaymentModal.b203e586.js @@ -1 +1 @@ -import{j as G,u as R,e as K,c as Y,g as j,b as Z}from"./main.6ceeb72d.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.d12b5734.js";import{u as W}from"./payment.ef13b90b.js";import{u as se}from"./mail-driver.c62711d2.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(),s=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"),l=d("router-link"),n=d("BaseDropdown");return m(),p(n,{"content-loading":w.contentLoading},{activator:o(()=>[e(s).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(s).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(l,{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(s).name!=="payments.view"&&e(c).hasAbilities(e(j).VIEW_PAYMENT)?(m(),p(l,{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(s).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 s=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 l=await C.fetchBasicMailConfig();r.id=_.id,l.data&&(r.from=l.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(s.value=!0,!c.value){const h=await I.previewPayment(r);s.value=!1,c.value=!0;var l=new Blob([h.data],{type:"text/html"});P.value=URL.createObjectURL(l);return}const n=await I.sendEmail(r);if(s.value=!1,n.data.success)return f(),!0}catch{s.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(l,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(s),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(l.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(s),disabled:e(s),variant:"primary",type:"button",onClick:n[7]||(n[7]=u=>N())},{default:o(()=>[e(s)?B("",!0):(m(),p(h,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),y(" "+v(l.$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:l.$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:l.$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:l.$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:l.$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(l.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(s),disabled:e(s),variant:"primary",type:"button",class:"mr-3",onClick:N},{left:o(u=>[e(s)?B("",!0):(m(),p(h,{key:0,class:re(u.class),name:"PhotographIcon"},null,8,["class"]))]),default:o(()=>[y(" "+v(l.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{$e as _,_e as a}; +import{j as G,u as R,e as K,c as Y,g as j,b as Z}from"./main.c7bd6c0e.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.d12b5734.js";import{u as W}from"./payment.2b6f850e.js";import{u as se}from"./mail-driver.b57a1b96.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(),s=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"),l=d("router-link"),n=d("BaseDropdown");return m(),p(n,{"content-loading":w.contentLoading},{activator:o(()=>[e(s).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(s).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(l,{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(s).name!=="payments.view"&&e(c).hasAbilities(e(j).VIEW_PAYMENT)?(m(),p(l,{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(s).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 s=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 l=await C.fetchBasicMailConfig();r.id=_.id,l.data&&(r.from=l.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(s.value=!0,!c.value){const h=await I.previewPayment(r);s.value=!1,c.value=!0;var l=new Blob([h.data],{type:"text/html"});P.value=URL.createObjectURL(l);return}const n=await I.sendEmail(r);if(s.value=!1,n.data.success)return f(),!0}catch{s.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(l,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(s),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(l.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(s),disabled:e(s),variant:"primary",type:"button",onClick:n[7]||(n[7]=u=>N())},{default:o(()=>[e(s)?B("",!0):(m(),p(h,{key:0,name:"PaperAirplaneIcon",class:"h-5 mr-2"})),y(" "+v(l.$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:l.$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:l.$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:l.$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:l.$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(l.$t("general.cancel")),1)]),_:1}),a(S,{loading:e(s),disabled:e(s),variant:"primary",type:"button",class:"mr-3",onClick:N},{left:o(u=>[e(s)?B("",!0):(m(),p(h,{key:0,class:re(u.class),name:"PhotographIcon"},null,8,["class"]))]),default:o(()=>[y(" "+v(l.$t("general.preview")),1)]),_:1},8,["loading","disabled"])])]))]),_:1},8,["show"])}}};export{$e as _,_e as a}; diff --git a/public/build/assets/SettingsIndex.4f7dc251.js b/public/build/assets/SettingsIndex.248ca841.js similarity index 78% rename from public/build/assets/SettingsIndex.4f7dc251.js rename to public/build/assets/SettingsIndex.248ca841.js index bf5fa757b..0f122a1bc 100644 --- a/public/build/assets/SettingsIndex.4f7dc251.js +++ b/public/build/assets/SettingsIndex.248ca841.js @@ -1 +1 @@ -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.d12b5734.js";import{d as E}from"./main.6ceeb72d.js";import{B as F,a as G}from"./BaseListItem.91c21811.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 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.d12b5734.js";import{d as E}from"./main.c7bd6c0e.js";import{B as F,a as G}from"./BaseListItem.ee8337b3.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 b(e){return c.path.indexOf(e)>-1}function h(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),h],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:b(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}; diff --git a/public/build/assets/SettingsIndex.45695f64.js b/public/build/assets/SettingsIndex.45695f64.js new file mode 100644 index 000000000..fb9e65e74 --- /dev/null +++ b/public/build/assets/SettingsIndex.45695f64.js @@ -0,0 +1 @@ +var D=Object.defineProperty;var v=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?D(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,w=(o,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(o,t,e[t]);if(v)for(var t of v(e))J.call(e,t)&&k(o,t,e[t]);return o};import{B as y,a as $}from"./BaseListItem.ee8337b3.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.d12b5734.js";import{u as K}from"./global.1ac91de5.js";import"./main.c7bd6c0e.js";import"./auth.a07e0850.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"},ne={setup(o){const{t:e}=O(),{useRoute:t,useRouter:P}=window.VueRouter,f=t(),C=P(),m=K(),g=S(()=>m.companySlug);let E=x({});x();const p=U([{link:`/${m.companySlug}/customer/settings/customer-profile`,title:e("settings.account_settings.account_settings"),icon:q},{link:`/${m.companySlug}/customer/settings/address-info`,title:e("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{ne as default}; diff --git a/public/build/assets/SettingsIndex.aa723778.js b/public/build/assets/SettingsIndex.aa723778.js deleted file mode 100644 index 74270405e..000000000 --- a/public/build/assets/SettingsIndex.aa723778.js +++ /dev/null @@ -1 +0,0 @@ -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.91c21811.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 a,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.d12b5734.js";import{u as K}from"./global.db0572f0.js";import"./main.6ceeb72d.js";import"./auth.974620c9.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"},at={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 n=p.find(B=>B.link===f.path);E.value=w({},n)}),S(()=>p);function h(n){return f.path.indexOf(n)>-1}return(n,B)=>{const b=u("BaseBreadcrumbItem"),F=u("BaseBreadcrumb"),H=u("BasePageHeader"),N=u("RouterView"),A=u("BasePage");return a(),d(A,null,{default:c(()=>[l(H,{title:n.$tc("settings.setting",2),class:"pb-6"},{default:c(()=>[l(F,null,{default:c(()=>[l(b,{title:n.$t("general.home"),to:`/${_(g)}/customer/dashboard`},null,8,["title","to"]),l(b,{title:n.$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(()=>[(a(!0),j(L,null,R(_(p),(s,r)=>(a(),d(y,{key:r,title:s.title,to:s.link,active:h(s.link),index:r,class:"py-3"},{icon:c(()=>[(a(),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(()=>[(a(!0),j(L,null,R(_(p),(s,r)=>(a(),d(y,{key:r,title:s.title,to:s.link,active:h(s.link),index:r,class:"py-3"},{icon:c(()=>[(a(),d(V(s.icon),{class:"h-5 w-6"}))]),_:2},1032,["title","to","active","index"]))),128))]),_:1})]),i("div",Y,[l(N)])])]),_:1})}}};export{at as default}; diff --git a/public/build/assets/TaxTypeModal.5bc92e5b.js b/public/build/assets/TaxTypeModal.3db473e9.js similarity index 98% rename from public/build/assets/TaxTypeModal.5bc92e5b.js rename to public/build/assets/TaxTypeModal.3db473e9.js index 11f81883f..0c9ea3c38 100644 --- a/public/build/assets/TaxTypeModal.5bc92e5b.js +++ b/public/build/assets/TaxTypeModal.3db473e9.js @@ -1 +1 @@ -import{J as C,B as N,k as b,L as p,M as $,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.d12b5734.js";import{q as X,c as J,u as A,k as F}from"./main.6ceeb72d.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=b(()=>({currentTaxType:{name:{required:p.withMessage(c("validation.required"),$),minLength:p.withMessage(c("validation.name_min_length",{count:3}),z(3))},percent:{required:p.withMessage(c("validation.required"),$),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,b(()=>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 C,B as N,k as b,L as p,M as $,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.d12b5734.js";import{q as X,c as J,u as A,k as F}from"./main.c7bd6c0e.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=b(()=>({currentTaxType:{name:{required:p.withMessage(c("validation.required"),$),minLength:p.withMessage(c("validation.name_min_length",{count:3}),z(3))},percent:{required:p.withMessage(c("validation.required"),$),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,b(()=>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 _}; diff --git a/public/build/assets/TaxTypesSetting.bbca28e7.js b/public/build/assets/TaxTypesSetting.68bd06bf.js similarity index 97% rename from public/build/assets/TaxTypesSetting.bbca28e7.js rename to public/build/assets/TaxTypesSetting.68bd06bf.js index ec58efee2..1db60f526 100644 --- a/public/build/assets/TaxTypesSetting.bbca28e7.js +++ b/public/build/assets/TaxTypesSetting.68bd06bf.js @@ -1 +1 @@ -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.6ceeb72d.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.d12b5734.js";import{_ as ee}from"./TaxTypeModal.5bc92e5b.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 H,u as q,q as Y,e as $,c as j,g as f,b as G,r as J}from"./main.c7bd6c0e.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.d12b5734.js";import{_ as ee}from"./TaxTypeModal.3db473e9.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}; diff --git a/public/build/assets/UpdateAppSetting.e4157d64.js b/public/build/assets/UpdateAppSetting.746fa480.js similarity index 97% rename from public/build/assets/UpdateAppSetting.e4157d64.js rename to public/build/assets/UpdateAppSetting.746fa480.js index 19f9c0217..aca118ac2 100644 --- a/public/build/assets/UpdateAppSetting.e4157d64.js +++ b/public/build/assets/UpdateAppSetting.746fa480.js @@ -1 +1 @@ -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.d12b5734.js";import{u as Q,j as W,b as X,h as T}from"./main.6ceeb72d.js";import{L as Z}from"./LoadingIcon.66b14768.js";import{u as ee}from"./exchange-rate.28527a8e.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{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{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.d12b5734.js";import{u as Q,j as W,b as X,h as T}from"./main.c7bd6c0e.js";import{L as Z}from"./LoadingIcon.58a27e40.js";import{u as ee}from"./exchange-rate.70a72e5f.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{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}; diff --git a/public/build/assets/View.d69a3f76.js b/public/build/assets/View.33722222.js similarity index 96% rename from public/build/assets/View.d69a3f76.js rename to public/build/assets/View.33722222.js index b38bbc60e..2c81a5c86 100644 --- a/public/build/assets/View.d69a3f76.js +++ b/public/build/assets/View.33722222.js @@ -1 +1 @@ -var le=Object.defineProperty;var H=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var G=(p,n,l)=>n in p?le(p,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[n]=l,O=(p,n)=>{for(var l in n||(n={}))de.call(n,l)&&G(p,l,n[l]);if(H)for(var l of H(n))ie.call(n,l)&&G(p,l,n[l]);return p};import{G as ce,J as ue,a0 as R,B as g,k as w,I as me,C as fe,A as pe,r as i,o as u,e as h,f as o,w as r,u as s,l as S,i as _e,t as v,j as F,h as d,F as q,y as ye,m as be}from"./vendor.d12b5734.js";import{c as ge,e as he,j as ve,g as Be}from"./main.6ceeb72d.js";import{u as xe}from"./payment.ef13b90b.js";import{_ as ke,a as we}from"./SendPaymentModal.e1c4e0ab.js";import{L as Fe}from"./LoadingIcon.66b14768.js";import"./mail-driver.c62711d2.js";const Ie={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},Pe={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"},Se={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},Te={class:"px-2"},je={class:"px-2"},De={class:"px-2"},$e={class:"flex-2"},Le={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},Me={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},ze={class:"flex-1 whitespace-nowrap right"},Ce={class:"text-sm text-right text-gray-500 non-italic"},Ne={key:0,class:"flex justify-center p-4 items-center"},Ue={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Ae={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Ee=["src"],Ke={setup(p){const n=ce(),{t:l}=ue();let y=R({}),a=R({orderBy:null,orderByField:null,searchText:null}),B=g(!1),I=g(!1);const x=xe(),J=ge(),K=he(),m=g(null),k=g(1),T=g(1),z=g(null),Q=w(()=>y.payment_number||""),C=w(()=>a.orderBy==="asc"||a.orderBy==null);w(()=>C.value?l("general.ascending"):l("general.descending"));const N=w(()=>y.unique_hash?`/payments/pdf/${y.unique_hash}`:!1);w(()=>{var t;return me((t=x==null?void 0:x.selectedPayment)==null?void 0:t.payment_date).format("YYYY/MM/DD")}),fe(n,()=>{U()}),P(),U(),_=pe.exports.debounce(_,500);function W(t){return n.params.id==t}ve();async function P(t,c=!1){if(B.value)return;let f={};a.searchText!==""&&a.searchText!==null&&a.searchText!==void 0&&(f.search=a.searchText),a.orderBy!==null&&a.orderBy!==void 0&&(f.orderBy=a.orderBy),a.orderByField!==null&&a.orderByField!==void 0&&(f.orderByField=a.orderByField),B.value=!0;let V=await x.fetchPayments(O({page:t},f));B.value=!1,m.value=m.value?m.value:[],m.value=[...m.value,...V.data.data],k.value=t||1,T.value=V.data.meta.last_page;let b=m.value.find(j=>j.id==n.params.id);c==!1&&!b&&k.value{c==!1&&X()},500)}async function U(){if(!n.params.id)return;I.value=!0;let t=await x.fetchPayment(n.params.id);t.data&&(I.value=!1,Object.assign(y,t.data.data))}function X(){const t=document.getElementById(`payment-${n.params.id}`);t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("shake"),Z())}function Z(){z.value.addEventListener("scroll",t=>{t.target.scrollTop>0&&t.target.scrollTop+t.target.clientHeight>t.target.scrollHeight-200&&k.value{const f=i("BaseButton"),V=i("BasePageHeader"),b=i("BaseIcon"),j=i("BaseInput"),D=i("BaseRadio"),$=i("BaseInputGroup"),L=i("BaseDropdownItem"),ae=i("BaseDropdown"),oe=i("BaseText"),se=i("BaseFormatMoney"),ne=i("router-link"),re=i("BasePage");return u(),h(q,null,[o(ke),o(re,{class:"xl:pl-96"},{default:r(()=>{var A;return[o(V,{title:s(Q)},{actions:r(()=>[s(K).hasAbilities(s(Be).SEND_PAYMENT)?(u(),S(f,{key:0,"content-loading":s(I),variant:"primary",onClick:te},{default:r(()=>[_e(v(t.$t("payments.send_payment_receipt")),1)]),_:1},8,["content-loading"])):F("",!0),o(we,{"content-loading":s(I),class:"ml-3",row:s(y)},null,8,["content-loading","row"])]),_:1},8,["title"]),d("div",Ie,[d("div",Pe,[o(j,{modelValue:s(a).searchText,"onUpdate:modelValue":c[0]||(c[0]=e=>s(a).searchText=e),placeholder:t.$t("general.search"),type:"text",onInput:_},{default:r(()=>[o(b,{name:"SearchIcon",class:"h-5"})]),_:1},8,["modelValue","placeholder"]),d("div",Ve,[o(ae,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:r(()=>[o(f,{variant:"gray"},{default:r(()=>[o(b,{name:"FilterIcon"})]),_:1})]),default:r(()=>[d("div",Se,v(t.$t("general.sort_by")),1),d("div",Te,[o(L,{class:"pt-3 rounded-md hover:rounded-md"},{default:r(()=>[o($,{class:"-mt-3 font-normal"},{default:r(()=>[o(D,{id:"filter_invoice_number",modelValue:s(a).orderByField,"onUpdate:modelValue":[c[1]||(c[1]=e=>s(a).orderByField=e),_],label:t.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})]),d("div",je,[o(L,{class:"pt-3 rounded-md hover:rounded-md"},{default:r(()=>[o($,{class:"-mt-3 font-normal"},{default:r(()=>[o(D,{modelValue:s(a).orderByField,"onUpdate:modelValue":[c[2]||(c[2]=e=>s(a).orderByField=e),_],label:t.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),d("div",De,[o(L,{class:"pt-3 rounded-md hover:rounded-md"},{default:r(()=>[o($,{class:"-mt-3 font-normal"},{default:r(()=>[o(D,{id:"filter_payment_number",modelValue:s(a).orderByField,"onUpdate:modelValue":[c[3]||(c[3]=e=>s(a).orderByField=e),_],label:t.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),o(f,{class:"ml-1",size:"md",variant:"gray",onClick:ee},{default:r(()=>[s(C)?(u(),S(b,{key:0,name:"SortAscendingIcon"})):(u(),S(b,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),d("div",{ref:(e,M)=>{M.paymentListSection=e,z.value=e},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid"},[(u(!0),h(q,null,ye(m.value,(e,M)=>(u(),h("div",{key:M},[e?(u(),S(ne,{key:0,id:"payment-"+e.id,to:`/admin/payments/${e.id}/view`,class:be(["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":W(e.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:r(()=>{var E,Y;return[d("div",$e,[o(oe,{text:(E=e==null?void 0:e.customer)==null?void 0:E.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),d("div",Le,v(e==null?void 0:e.payment_number),1),d("div",Me,v(e==null?void 0:e.invoice_number),1)]),d("div",ze,[o(se,{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:(Y=e.customer)==null?void 0:Y.currency},null,8,["amount","currency"]),d("div",Ce,v(e.formatted_payment_date),1)])]}),_:2},1032,["id","to","class"])):F("",!0)]))),128)),s(B)?(u(),h("div",Ne,[o(Fe,{class:"h-6 m-1 animate-spin text-primary-400"})])):F("",!0),!((A=m.value)==null?void 0:A.length)&&!s(B)?(u(),h("p",Ue,v(t.$t("payments.no_matching_payments")),1)):F("",!0)],512)]),d("div",Ae,[s(N)?(u(),h("iframe",{key:0,src:s(N),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,Ee)):F("",!0)])]}),_:1})],64)}}};export{Ke as default}; +var le=Object.defineProperty;var H=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var G=(p,n,l)=>n in p?le(p,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[n]=l,O=(p,n)=>{for(var l in n||(n={}))de.call(n,l)&&G(p,l,n[l]);if(H)for(var l of H(n))ie.call(n,l)&&G(p,l,n[l]);return p};import{G as ce,J as ue,a0 as R,B as g,k as w,I as me,C as fe,A as pe,r as i,o as u,e as h,f as o,w as r,u as s,l as S,i as _e,t as v,j as F,h as d,F as q,y as ye,m as be}from"./vendor.d12b5734.js";import{c as ge,e as he,j as ve,g as Be}from"./main.c7bd6c0e.js";import{u as xe}from"./payment.2b6f850e.js";import{_ as ke,a as we}from"./SendPaymentModal.b203e586.js";import{L as Fe}from"./LoadingIcon.58a27e40.js";import"./mail-driver.b57a1b96.js";const Ie={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},Pe={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"},Se={class:"px-4 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},Te={class:"px-2"},je={class:"px-2"},De={class:"px-2"},$e={class:"flex-2"},Le={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},Me={class:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},ze={class:"flex-1 whitespace-nowrap right"},Ce={class:"text-sm text-right text-gray-500 non-italic"},Ne={key:0,class:"flex justify-center p-4 items-center"},Ue={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Ae={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Ee=["src"],Ke={setup(p){const n=ce(),{t:l}=ue();let y=R({}),a=R({orderBy:null,orderByField:null,searchText:null}),B=g(!1),I=g(!1);const x=xe(),J=ge(),K=he(),m=g(null),k=g(1),T=g(1),z=g(null),Q=w(()=>y.payment_number||""),C=w(()=>a.orderBy==="asc"||a.orderBy==null);w(()=>C.value?l("general.ascending"):l("general.descending"));const N=w(()=>y.unique_hash?`/payments/pdf/${y.unique_hash}`:!1);w(()=>{var t;return me((t=x==null?void 0:x.selectedPayment)==null?void 0:t.payment_date).format("YYYY/MM/DD")}),fe(n,()=>{U()}),P(),U(),_=pe.exports.debounce(_,500);function W(t){return n.params.id==t}ve();async function P(t,c=!1){if(B.value)return;let f={};a.searchText!==""&&a.searchText!==null&&a.searchText!==void 0&&(f.search=a.searchText),a.orderBy!==null&&a.orderBy!==void 0&&(f.orderBy=a.orderBy),a.orderByField!==null&&a.orderByField!==void 0&&(f.orderByField=a.orderByField),B.value=!0;let V=await x.fetchPayments(O({page:t},f));B.value=!1,m.value=m.value?m.value:[],m.value=[...m.value,...V.data.data],k.value=t||1,T.value=V.data.meta.last_page;let b=m.value.find(j=>j.id==n.params.id);c==!1&&!b&&k.value{c==!1&&X()},500)}async function U(){if(!n.params.id)return;I.value=!0;let t=await x.fetchPayment(n.params.id);t.data&&(I.value=!1,Object.assign(y,t.data.data))}function X(){const t=document.getElementById(`payment-${n.params.id}`);t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("shake"),Z())}function Z(){z.value.addEventListener("scroll",t=>{t.target.scrollTop>0&&t.target.scrollTop+t.target.clientHeight>t.target.scrollHeight-200&&k.value{const f=i("BaseButton"),V=i("BasePageHeader"),b=i("BaseIcon"),j=i("BaseInput"),D=i("BaseRadio"),$=i("BaseInputGroup"),L=i("BaseDropdownItem"),ae=i("BaseDropdown"),oe=i("BaseText"),se=i("BaseFormatMoney"),ne=i("router-link"),re=i("BasePage");return u(),h(q,null,[o(ke),o(re,{class:"xl:pl-96"},{default:r(()=>{var A;return[o(V,{title:s(Q)},{actions:r(()=>[s(K).hasAbilities(s(Be).SEND_PAYMENT)?(u(),S(f,{key:0,"content-loading":s(I),variant:"primary",onClick:te},{default:r(()=>[_e(v(t.$t("payments.send_payment_receipt")),1)]),_:1},8,["content-loading"])):F("",!0),o(we,{"content-loading":s(I),class:"ml-3",row:s(y)},null,8,["content-loading","row"])]),_:1},8,["title"]),d("div",Ie,[d("div",Pe,[o(j,{modelValue:s(a).searchText,"onUpdate:modelValue":c[0]||(c[0]=e=>s(a).searchText=e),placeholder:t.$t("general.search"),type:"text",onInput:_},{default:r(()=>[o(b,{name:"SearchIcon",class:"h-5"})]),_:1},8,["modelValue","placeholder"]),d("div",Ve,[o(ae,{position:"bottom-start","width-class":"w-50","position-class":"left-0"},{activator:r(()=>[o(f,{variant:"gray"},{default:r(()=>[o(b,{name:"FilterIcon"})]),_:1})]),default:r(()=>[d("div",Se,v(t.$t("general.sort_by")),1),d("div",Te,[o(L,{class:"pt-3 rounded-md hover:rounded-md"},{default:r(()=>[o($,{class:"-mt-3 font-normal"},{default:r(()=>[o(D,{id:"filter_invoice_number",modelValue:s(a).orderByField,"onUpdate:modelValue":[c[1]||(c[1]=e=>s(a).orderByField=e),_],label:t.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},null,8,["modelValue","label"])]),_:1})]),_:1})]),d("div",je,[o(L,{class:"pt-3 rounded-md hover:rounded-md"},{default:r(()=>[o($,{class:"-mt-3 font-normal"},{default:r(()=>[o(D,{modelValue:s(a).orderByField,"onUpdate:modelValue":[c[2]||(c[2]=e=>s(a).orderByField=e),_],label:t.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},null,8,["modelValue","label"])]),_:1})]),_:1})]),d("div",De,[o(L,{class:"pt-3 rounded-md hover:rounded-md"},{default:r(()=>[o($,{class:"-mt-3 font-normal"},{default:r(()=>[o(D,{id:"filter_payment_number",modelValue:s(a).orderByField,"onUpdate:modelValue":[c[3]||(c[3]=e=>s(a).orderByField=e),_],label:t.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),o(f,{class:"ml-1",size:"md",variant:"gray",onClick:ee},{default:r(()=>[s(C)?(u(),S(b,{key:0,name:"SortAscendingIcon"})):(u(),S(b,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),d("div",{ref:(e,M)=>{M.paymentListSection=e,z.value=e},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid"},[(u(!0),h(q,null,ye(m.value,(e,M)=>(u(),h("div",{key:M},[e?(u(),S(ne,{key:0,id:"payment-"+e.id,to:`/admin/payments/${e.id}/view`,class:be(["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":W(e.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:r(()=>{var E,Y;return[d("div",$e,[o(oe,{text:(E=e==null?void 0:e.customer)==null?void 0:E.name,length:30,class:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),d("div",Le,v(e==null?void 0:e.payment_number),1),d("div",Me,v(e==null?void 0:e.invoice_number),1)]),d("div",ze,[o(se,{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:(Y=e.customer)==null?void 0:Y.currency},null,8,["amount","currency"]),d("div",Ce,v(e.formatted_payment_date),1)])]}),_:2},1032,["id","to","class"])):F("",!0)]))),128)),s(B)?(u(),h("div",Ne,[o(Fe,{class:"h-6 m-1 animate-spin text-primary-400"})])):F("",!0),!((A=m.value)==null?void 0:A.length)&&!s(B)?(u(),h("p",Ue,v(t.$t("payments.no_matching_payments")),1)):F("",!0)],512)]),d("div",Ae,[s(N)?(u(),h("iframe",{key:0,src:s(N),class:"flex-1 border border-gray-400 border-solid rounded-md"},null,8,Ee)):F("",!0)])]}),_:1})],64)}}};export{Ke as default}; diff --git a/public/build/assets/View.799867ef.js b/public/build/assets/View.43261a97.js similarity index 96% rename from public/build/assets/View.799867ef.js rename to public/build/assets/View.43261a97.js index 2ebfc7fdd..5a9f7fe3f 100644 --- a/public/build/assets/View.799867ef.js +++ b/public/build/assets/View.43261a97.js @@ -1 +1 @@ -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.d12b5734.js";import{u as Z,w as F,x as ee}from"./main.6ceeb72d.js";import{u as te}from"./payment.7edbe3ce.js";import{u as ae}from"./global.db0572f0.js";import"./auth.974620c9.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}; +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.d12b5734.js";import{u as Z,w as F,x as ee}from"./main.c7bd6c0e.js";import{u as te}from"./payment.03dd8d5c.js";import{u as ae}from"./global.1ac91de5.js";import"./auth.a07e0850.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}; diff --git a/public/build/assets/View.fb7ac918.js b/public/build/assets/View.65c8e27d.js similarity index 96% rename from public/build/assets/View.fb7ac918.js rename to public/build/assets/View.65c8e27d.js index 463cff748..031ddd743 100644 --- a/public/build/assets/View.fb7ac918.js +++ b/public/build/assets/View.65c8e27d.js @@ -1 +1 @@ -var te=Object.defineProperty;var P=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var G=(p,e,o)=>e in p?te(p,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[e]=o,M=(p,e)=>{for(var o in e||(e={}))ne.call(e,o)&&G(p,o,e[o]);if(P)for(var o of P(e))ae.call(e,o)&&G(p,o,e[o]);return p};import{J as z,G as q,B as w,a0 as oe,k as O,A as re,r as u,o as m,e as T,h as b,f as n,w as i,u as a,t as h,l as y,F as J,y as se,i as j,m as ie,j as R,ah as le,aN as W,V as ce,C as ue}from"./vendor.d12b5734.js";import{t as A,e as K,g as C,j as de}from"./main.6ceeb72d.js";import{L as me}from"./LoadingIcon.66b14768.js";import{_ as _e}from"./InvoiceIndexDropdown.78aec816.js";import{_ as ve}from"./SendInvoiceModal.224b5c76.js";import{_ as ge}from"./RecurringInvoiceIndexDropdown.9324dca1.js";import"./mail-driver.c62711d2.js";const pe={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.4rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},fe={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},be={class:"mb-6"},ye={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},Ie={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Be={class:"flex-2"},he={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},xe={class:"flex-1 whitespace-nowrap right"},we={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Re={key:0,class:"flex justify-center p-4 items-center"},ke={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Se={setup(p){const e=A();z();const o=q(),l=w(!1),_=w(null),d=w(1),f=w(1),I=w(null),t=oe({orderBy:null,orderByField:null,searchText:null}),k=O(()=>t.orderBy==="asc"||t.orderBy==null);function S(s){return o.params.id==s}async function B(s,v=!1){if(l.value)return;let g={};t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(g.search=t.searchText),t.orderBy!==null&&t.orderBy!==void 0&&(g.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(g.orderByField=t.orderByField),l.value=!0;let $=await e.fetchRecurringInvoices(M({page:s},g));l.value=!1,_.value=_.value?_.value:[],_.value=[..._.value,...$.data.data],d.value=s||1,f.value=$.data.meta.last_page;let x=_.value.find(E=>E.id==o.params.id);v==!1&&!x&&d.value{v==!1&&V()},500)}function V(){const s=document.getElementById(`recurring-invoice-${o.params.id}`);s&&(s.scrollIntoView({behavior:"smooth"}),s.classList.add("shake"),D())}function D(){I.value.addEventListener("scroll",s=>{s.target.scrollTop>0&&s.target.scrollTop+s.target.clientHeight>s.target.scrollHeight-200&&d.value{var H;const g=u("BaseIcon"),$=u("BaseInput"),x=u("BaseButton"),E=u("BaseRadio"),N=u("BaseInputGroup"),L=u("BaseDropdownItem"),Q=u("BaseDropdown"),X=u("BaseText"),Y=u("BaseRecurringInvoiceStatusBadge"),Z=u("BaseFormatMoney"),ee=u("router-link");return m(),T("div",pe,[b("div",fe,[b("div",be,[n($,{modelValue:a(t).searchText,"onUpdate:modelValue":v[0]||(v[0]=c=>a(t).searchText=c),placeholder:s.$t("general.search"),type:"text",variant:"gray",onInput:v[1]||(v[1]=c=>r())},{right:i(()=>[n(g,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),b("div",ye,[n(Q,{class:"ml-3",position:"bottom-start"},{activator:i(()=>[n(x,{size:"md",variant:"gray"},{default:i(()=>[n(g,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:i(()=>[b("div",Ie,h(s.$t("general.sort_by")),1),n(L,{class:"flex px-1 py-2 cursor-pointer"},{default:i(()=>[n(N,{class:"-mt-3 font-normal"},{default:i(()=>[n(E,{id:"filter_next_invoice_date",modelValue:a(t).orderByField,"onUpdate:modelValue":[v[2]||(v[2]=c=>a(t).orderByField=c),r],label:s.$t("recurring_invoices.next_invoice_date"),size:"sm",name:"filter",value:"next_invoice_at"},null,8,["modelValue","label"])]),_:1})]),_:1}),n(L,{class:"flex px-1 py-2 cursor-pointer"},{default:i(()=>[n(N,{class:"-mt-3 font-normal"},{default:i(()=>[n(E,{id:"filter_start_date",modelValue:a(t).orderByField,"onUpdate:modelValue":[v[3]||(v[3]=c=>a(t).orderByField=c),r],label:s.$t("recurring_invoices.starts_at"),value:"starts_at",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),n(x,{class:"ml-1",size:"md",variant:"gray",onClick:F},{default:i(()=>[a(k)?(m(),y(g,{key:0,name:"SortAscendingIcon",class:"h-5"})):(m(),y(g,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),b("div",{ref:(c,U)=>{U.invoiceListSection=c,I.value=c},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},[(m(!0),T(J,null,se(_.value,(c,U)=>(m(),T("div",{key:U},[c?(m(),y(ee,{key:0,id:"recurring-invoice-"+c.id,to:`/admin/recurring-invoices/${c.id}/view`,class:ie(["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":S(c.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:i(()=>[b("div",Be,[n(X,{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"]),b("div",he,h(c.invoice_number),1),n(Y,{status:c.status,class:"px-1 text-xs"},{default:i(()=>[j(h(c.status),1)]),_:2},1032,["status"])]),b("div",xe,[n(Z,{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"]),b("div",we,h(c.formatted_starts_at),1)])]),_:2},1032,["id","to","class"])):R("",!0)]))),128)),l.value?(m(),T("div",Re,[n(me,{class:"h-6 m-1 animate-spin text-primary-400"})])):R("",!0),!((H=_.value)==null?void 0:H.length)&&!l.value?(m(),T("p",ke,h(s.$t("invoices.no_matching_invoices")),1)):R("",!0)],512)])}}},$e={class:"relative table-container"},Ee={setup(p){const e=A(),o=w(null);w(null),le("$utils");const{t:l}=z();w(null),W();const _=K(),d=O(()=>[{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 f(){return _.hasAbilities([C.DELETE_INVOICE,C.EDIT_INVOICE,C.VIEW_INVOICE,C.SEND_INVOICE])}function I(t){let k=e.newRecurringInvoice.invoices.findIndex(S=>S.id===t);e.newRecurringInvoice.invoices[k]&&(e.newRecurringInvoice.invoices[k].status="SENT")}return(t,k)=>{const S=u("router-link"),B=u("BaseFormatMoney"),V=u("BaseInvoiceStatusBadge"),D=u("BaseTable");return m(),T(J,null,[n(ve,{onUpdate:I}),b("div",$e,[n(D,{ref:(r,F)=>{F.table=r,o.value=r},data:a(e).newRecurringInvoice.invoices,columns:a(d),loading:a(e).isFetchingViewData,"placeholder-count":5,class:"mt-5"},ce({"cell-invoice_number":i(({row:r})=>[n(S,{to:{path:`/admin/invoices/${r.data.id}/view`},class:"font-medium text-primary-500"},{default:i(()=>[j(h(r.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-total":i(({row:r})=>[n(B,{amount:r.data.due_amount,currency:r.data.currency},null,8,["amount","currency"])]),"cell-status":i(({row:r})=>[n(V,{status:r.data.status,class:"px-3 py-1"},{default:i(()=>[j(h(r.data.status),1)]),_:2},1032,["status"])]),_:2},[f()?{name:"cell-actions",fn:i(({row:r})=>[n(_e,{row:r.data,table:o.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])],64)}}},Ve={setup(p){const e=A(),o=q();let l=O(()=>e.isFetchingViewData);ue(o,()=>{o.params.id&&o.name==="recurring-invoices.view"&&_()},{immediate:!0});async function _(){await e.fetchRecurringInvoice(o.params.id)}return(d,f)=>{const I=u("BaseHeading"),t=u("BaseDescriptionListItem"),k=u("BaseDescriptionList"),S=u("BaseCard");return m(),y(S,{class:"mt-10"},{default:i(()=>[n(I,null,{default:i(()=>[j(h(d.$t("customers.basic_info")),1)]),_:1}),n(k,{class:"mt-5"},{default:i(()=>{var B,V,D,r,F,s,v,g,$,x,E,N,L;return[n(t,{label:d.$t("recurring_invoices.starts_at"),"content-loading":a(l),value:(B=a(e).newRecurringInvoice)==null?void 0:B.formatted_starts_at},null,8,["label","content-loading","value"]),n(t,{label:d.$t("recurring_invoices.next_invoice_date"),"content-loading":a(l),value:(V=a(e).newRecurringInvoice)==null?void 0:V.formatted_next_invoice_at},null,8,["label","content-loading","value"]),((D=a(e).newRecurringInvoice)==null?void 0:D.limit_date)&&((r=a(e).newRecurringInvoice)==null?void 0:r.limit_by)!=="NONE"?(m(),y(t,{key:0,label:d.$t("recurring_invoices.limit_date"),"content-loading":a(l),value:(F=a(e).newRecurringInvoice)==null?void 0:F.limit_date},null,8,["label","content-loading","value"])):R("",!0),((s=a(e).newRecurringInvoice)==null?void 0:s.limit_date)&&((v=a(e).newRecurringInvoice)==null?void 0:v.limit_by)!=="NONE"?(m(),y(t,{key:1,label:d.$t("recurring_invoices.limit_by"),"content-loading":a(l),value:(g=a(e).newRecurringInvoice)==null?void 0:g.limit_by},null,8,["label","content-loading","value"])):R("",!0),(($=a(e).newRecurringInvoice)==null?void 0:$.limit_count)?(m(),y(t,{key:2,label:d.$t("recurring_invoices.limit_count"),value:(x=a(e).newRecurringInvoice)==null?void 0:x.limit_count,"content-loading":a(l)},null,8,["label","value","content-loading"])):R("",!0),((E=a(e).newRecurringInvoice)==null?void 0:E.selectedFrequency)?(m(),y(t,{key:3,label:d.$t("recurring_invoices.frequency.title"),value:(L=(N=a(e).newRecurringInvoice)==null?void 0:N.selectedFrequency)==null?void 0:L.label,"content-loading":a(l)},null,8,["label","value","content-loading"])):R("",!0)]}),_:1}),n(I,{class:"mt-8"},{default:i(()=>[j(h(d.$t("invoices.title",2)),1)]),_:1}),n(Ee)]),_:1})}}},Ae={setup(p){de();const e=A(),o=K();z(),W();const l=O(()=>{var d,f;return e.newRecurringInvoice?(f=(d=e.newRecurringInvoice)==null?void 0:d.customer)==null?void 0:f.name:""});function _(){return o.hasAbilities([C.DELETE_RECURRING_INVOICE,C.EDIT_RECURRING_INVOICE])}return(d,f)=>{const I=u("BasePageHeader"),t=u("BasePage");return m(),y(t,{class:"xl:pl-96"},{default:i(()=>[n(I,{title:a(l)},{actions:i(()=>[_()?(m(),y(ge,{key:0,row:a(e).newRecurringInvoice},null,8,["row"])):R("",!0)]),_:1},8,["title"]),n(Se),n(Ve)]),_:1})}}};export{Ae as default}; +var te=Object.defineProperty;var P=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var G=(p,e,o)=>e in p?te(p,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[e]=o,M=(p,e)=>{for(var o in e||(e={}))ne.call(e,o)&&G(p,o,e[o]);if(P)for(var o of P(e))ae.call(e,o)&&G(p,o,e[o]);return p};import{J as z,G as q,B as w,a0 as oe,k as O,A as re,r as u,o as m,e as T,h as b,f as n,w as i,u as a,t as h,l as y,F as J,y as se,i as j,m as ie,j as R,ah as le,aN as W,V as ce,C as ue}from"./vendor.d12b5734.js";import{t as A,e as K,g as C,j as de}from"./main.c7bd6c0e.js";import{L as me}from"./LoadingIcon.58a27e40.js";import{_ as _e}from"./InvoiceIndexDropdown.174ed624.js";import{_ as ve}from"./SendInvoiceModal.df7ecbe5.js";import{_ as ge}from"./RecurringInvoiceIndexDropdown.b5cf79fe.js";import"./mail-driver.b57a1b96.js";const pe={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.4rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},fe={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},be={class:"mb-6"},ye={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},Ie={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Be={class:"flex-2"},he={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},xe={class:"flex-1 whitespace-nowrap right"},we={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Re={key:0,class:"flex justify-center p-4 items-center"},ke={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Se={setup(p){const e=A();z();const o=q(),l=w(!1),_=w(null),d=w(1),f=w(1),I=w(null),t=oe({orderBy:null,orderByField:null,searchText:null}),k=O(()=>t.orderBy==="asc"||t.orderBy==null);function S(s){return o.params.id==s}async function B(s,v=!1){if(l.value)return;let g={};t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(g.search=t.searchText),t.orderBy!==null&&t.orderBy!==void 0&&(g.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(g.orderByField=t.orderByField),l.value=!0;let $=await e.fetchRecurringInvoices(M({page:s},g));l.value=!1,_.value=_.value?_.value:[],_.value=[..._.value,...$.data.data],d.value=s||1,f.value=$.data.meta.last_page;let x=_.value.find(E=>E.id==o.params.id);v==!1&&!x&&d.value{v==!1&&V()},500)}function V(){const s=document.getElementById(`recurring-invoice-${o.params.id}`);s&&(s.scrollIntoView({behavior:"smooth"}),s.classList.add("shake"),D())}function D(){I.value.addEventListener("scroll",s=>{s.target.scrollTop>0&&s.target.scrollTop+s.target.clientHeight>s.target.scrollHeight-200&&d.value{var H;const g=u("BaseIcon"),$=u("BaseInput"),x=u("BaseButton"),E=u("BaseRadio"),N=u("BaseInputGroup"),L=u("BaseDropdownItem"),Q=u("BaseDropdown"),X=u("BaseText"),Y=u("BaseRecurringInvoiceStatusBadge"),Z=u("BaseFormatMoney"),ee=u("router-link");return m(),T("div",pe,[b("div",fe,[b("div",be,[n($,{modelValue:a(t).searchText,"onUpdate:modelValue":v[0]||(v[0]=c=>a(t).searchText=c),placeholder:s.$t("general.search"),type:"text",variant:"gray",onInput:v[1]||(v[1]=c=>r())},{right:i(()=>[n(g,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),b("div",ye,[n(Q,{class:"ml-3",position:"bottom-start"},{activator:i(()=>[n(x,{size:"md",variant:"gray"},{default:i(()=>[n(g,{name:"FilterIcon",class:"h-5"})]),_:1})]),default:i(()=>[b("div",Ie,h(s.$t("general.sort_by")),1),n(L,{class:"flex px-1 py-2 cursor-pointer"},{default:i(()=>[n(N,{class:"-mt-3 font-normal"},{default:i(()=>[n(E,{id:"filter_next_invoice_date",modelValue:a(t).orderByField,"onUpdate:modelValue":[v[2]||(v[2]=c=>a(t).orderByField=c),r],label:s.$t("recurring_invoices.next_invoice_date"),size:"sm",name:"filter",value:"next_invoice_at"},null,8,["modelValue","label"])]),_:1})]),_:1}),n(L,{class:"flex px-1 py-2 cursor-pointer"},{default:i(()=>[n(N,{class:"-mt-3 font-normal"},{default:i(()=>[n(E,{id:"filter_start_date",modelValue:a(t).orderByField,"onUpdate:modelValue":[v[3]||(v[3]=c=>a(t).orderByField=c),r],label:s.$t("recurring_invoices.starts_at"),value:"starts_at",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),n(x,{class:"ml-1",size:"md",variant:"gray",onClick:F},{default:i(()=>[a(k)?(m(),y(g,{key:0,name:"SortAscendingIcon",class:"h-5"})):(m(),y(g,{key:1,name:"SortDescendingIcon",class:"h-5"}))]),_:1})])]),b("div",{ref:(c,U)=>{U.invoiceListSection=c,I.value=c},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},[(m(!0),T(J,null,se(_.value,(c,U)=>(m(),T("div",{key:U},[c?(m(),y(ee,{key:0,id:"recurring-invoice-"+c.id,to:`/admin/recurring-invoices/${c.id}/view`,class:ie(["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":S(c.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:i(()=>[b("div",Be,[n(X,{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"]),b("div",he,h(c.invoice_number),1),n(Y,{status:c.status,class:"px-1 text-xs"},{default:i(()=>[j(h(c.status),1)]),_:2},1032,["status"])]),b("div",xe,[n(Z,{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"]),b("div",we,h(c.formatted_starts_at),1)])]),_:2},1032,["id","to","class"])):R("",!0)]))),128)),l.value?(m(),T("div",Re,[n(me,{class:"h-6 m-1 animate-spin text-primary-400"})])):R("",!0),!((H=_.value)==null?void 0:H.length)&&!l.value?(m(),T("p",ke,h(s.$t("invoices.no_matching_invoices")),1)):R("",!0)],512)])}}},$e={class:"relative table-container"},Ee={setup(p){const e=A(),o=w(null);w(null),le("$utils");const{t:l}=z();w(null),W();const _=K(),d=O(()=>[{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 f(){return _.hasAbilities([C.DELETE_INVOICE,C.EDIT_INVOICE,C.VIEW_INVOICE,C.SEND_INVOICE])}function I(t){let k=e.newRecurringInvoice.invoices.findIndex(S=>S.id===t);e.newRecurringInvoice.invoices[k]&&(e.newRecurringInvoice.invoices[k].status="SENT")}return(t,k)=>{const S=u("router-link"),B=u("BaseFormatMoney"),V=u("BaseInvoiceStatusBadge"),D=u("BaseTable");return m(),T(J,null,[n(ve,{onUpdate:I}),b("div",$e,[n(D,{ref:(r,F)=>{F.table=r,o.value=r},data:a(e).newRecurringInvoice.invoices,columns:a(d),loading:a(e).isFetchingViewData,"placeholder-count":5,class:"mt-5"},ce({"cell-invoice_number":i(({row:r})=>[n(S,{to:{path:`/admin/invoices/${r.data.id}/view`},class:"font-medium text-primary-500"},{default:i(()=>[j(h(r.data.invoice_number),1)]),_:2},1032,["to"])]),"cell-total":i(({row:r})=>[n(B,{amount:r.data.due_amount,currency:r.data.currency},null,8,["amount","currency"])]),"cell-status":i(({row:r})=>[n(V,{status:r.data.status,class:"px-3 py-1"},{default:i(()=>[j(h(r.data.status),1)]),_:2},1032,["status"])]),_:2},[f()?{name:"cell-actions",fn:i(({row:r})=>[n(_e,{row:r.data,table:o.value},null,8,["row","table"])])}:void 0]),1032,["data","columns","loading"])])],64)}}},Ve={setup(p){const e=A(),o=q();let l=O(()=>e.isFetchingViewData);ue(o,()=>{o.params.id&&o.name==="recurring-invoices.view"&&_()},{immediate:!0});async function _(){await e.fetchRecurringInvoice(o.params.id)}return(d,f)=>{const I=u("BaseHeading"),t=u("BaseDescriptionListItem"),k=u("BaseDescriptionList"),S=u("BaseCard");return m(),y(S,{class:"mt-10"},{default:i(()=>[n(I,null,{default:i(()=>[j(h(d.$t("customers.basic_info")),1)]),_:1}),n(k,{class:"mt-5"},{default:i(()=>{var B,V,D,r,F,s,v,g,$,x,E,N,L;return[n(t,{label:d.$t("recurring_invoices.starts_at"),"content-loading":a(l),value:(B=a(e).newRecurringInvoice)==null?void 0:B.formatted_starts_at},null,8,["label","content-loading","value"]),n(t,{label:d.$t("recurring_invoices.next_invoice_date"),"content-loading":a(l),value:(V=a(e).newRecurringInvoice)==null?void 0:V.formatted_next_invoice_at},null,8,["label","content-loading","value"]),((D=a(e).newRecurringInvoice)==null?void 0:D.limit_date)&&((r=a(e).newRecurringInvoice)==null?void 0:r.limit_by)!=="NONE"?(m(),y(t,{key:0,label:d.$t("recurring_invoices.limit_date"),"content-loading":a(l),value:(F=a(e).newRecurringInvoice)==null?void 0:F.limit_date},null,8,["label","content-loading","value"])):R("",!0),((s=a(e).newRecurringInvoice)==null?void 0:s.limit_date)&&((v=a(e).newRecurringInvoice)==null?void 0:v.limit_by)!=="NONE"?(m(),y(t,{key:1,label:d.$t("recurring_invoices.limit_by"),"content-loading":a(l),value:(g=a(e).newRecurringInvoice)==null?void 0:g.limit_by},null,8,["label","content-loading","value"])):R("",!0),(($=a(e).newRecurringInvoice)==null?void 0:$.limit_count)?(m(),y(t,{key:2,label:d.$t("recurring_invoices.limit_count"),value:(x=a(e).newRecurringInvoice)==null?void 0:x.limit_count,"content-loading":a(l)},null,8,["label","value","content-loading"])):R("",!0),((E=a(e).newRecurringInvoice)==null?void 0:E.selectedFrequency)?(m(),y(t,{key:3,label:d.$t("recurring_invoices.frequency.title"),value:(L=(N=a(e).newRecurringInvoice)==null?void 0:N.selectedFrequency)==null?void 0:L.label,"content-loading":a(l)},null,8,["label","value","content-loading"])):R("",!0)]}),_:1}),n(I,{class:"mt-8"},{default:i(()=>[j(h(d.$t("invoices.title",2)),1)]),_:1}),n(Ee)]),_:1})}}},Ae={setup(p){de();const e=A(),o=K();z(),W();const l=O(()=>{var d,f;return e.newRecurringInvoice?(f=(d=e.newRecurringInvoice)==null?void 0:d.customer)==null?void 0:f.name:""});function _(){return o.hasAbilities([C.DELETE_RECURRING_INVOICE,C.EDIT_RECURRING_INVOICE])}return(d,f)=>{const I=u("BasePageHeader"),t=u("BasePage");return m(),y(t,{class:"xl:pl-96"},{default:i(()=>[n(I,{title:a(l)},{actions:i(()=>[_()?(m(),y(ge,{key:0,row:a(e).newRecurringInvoice},null,8,["row"])):R("",!0)]),_:1},8,["title"]),n(Se),n(Ve)]),_:1})}}};export{Ae as default}; diff --git a/public/build/assets/View.da31b1a9.js b/public/build/assets/View.6fb75a2d.js similarity index 87% rename from public/build/assets/View.da31b1a9.js rename to public/build/assets/View.6fb75a2d.js index b92f7a189..1957eafcb 100644 --- a/public/build/assets/View.da31b1a9.js +++ b/public/build/assets/View.6fb75a2d.js @@ -1 +1 @@ -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.d12b5734.js";import{j as re,u as le,w as V,x as ne}from"./main.6ceeb72d.js";import{u as ie}from"./estimate.b80e2b77.js";import{u as de}from"./global.db0572f0.js";import"./auth.974620c9.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,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.d12b5734.js";import{j as re,u as le,w as V,x as ne}from"./main.c7bd6c0e.js";import{u as ie}from"./estimate.c2ce8e7a.js";import{u as de}from"./global.1ac91de5.js";import"./auth.a07e0850.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}; diff --git a/public/build/assets/View.e5b14e68.js b/public/build/assets/View.70d88bd0.js similarity index 98% rename from public/build/assets/View.e5b14e68.js rename to public/build/assets/View.70d88bd0.js index 9a28e230d..7e517a8bf 100644 --- a/public/build/assets/View.e5b14e68.js +++ b/public/build/assets/View.70d88bd0.js @@ -1 +1 @@ -var ne=Object.defineProperty,oe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var X=(k,u,t)=>u in k?ne(k,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):k[u]=t,q=(k,u)=>{for(var t in u||(u={}))re.call(u,t)&&X(k,t,u[t]);if(G)for(var t of G(u))ce.call(u,t)&&X(k,t,u[t]);return k},J=(k,u)=>oe(k,le(u));import{G as O,J as K,B as F,a0 as R,A as ie,k as I,r as d,o as n,e as B,h as l,f as s,w as o,u as e,t as v,l as _,F as Q,y as W,j as h,m as Z,i as S,ah as ee,C as de,x as ue,aN as me}from"./vendor.d12b5734.js";import{l as M,_ as _e,b as pe,j as fe,e as he,g as A}from"./main.6ceeb72d.js";import{L as ye}from"./LoadingIcon.66b14768.js";import{_ as ge}from"./LineChart.dd592086.js";import{_ as xe}from"./CustomerIndexDropdown.49914d07.js";const be={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.6rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},ve={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},Be={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},$e={class:"px-4 py-3 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},we={class:"px-2"},Ce={class:"px-2"},Te={class:"flex-1 font-bold text-right whitespace-nowrap"},ke={key:0,class:"flex justify-center p-4 items-center"},Ee={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Ie={setup(k){const u=M(),t=O(),{t:m}=K();let r=F(!1),a=R({orderBy:null,orderByField:null,searchText:null});const p=F(null),g=F(1),x=F(1),D=F(null);i=ie.exports.debounce(i,500);const y=I(()=>a.orderBy==="asc"||a.orderBy==null);I(()=>y.value?m("general.ascending"):m("general.descending"));function $(c){return t.params.id==c}async function b(c,C=!1){if(r.value)return;let T={};a.searchText!==""&&a.searchText!==null&&a.searchText!==void 0&&(T.display_name=a.searchText),a.orderBy!==null&&a.orderBy!==void 0&&(T.orderBy=a.orderBy),a.orderByField!==null&&a.orderByField!==void 0&&(T.orderByField=a.orderByField),r.value=!0;let P=await u.fetchCustomers(J(q({page:c},T),{limit:15}));r.value=!1,p.value=p.value?p.value:[],p.value=[...p.value,...P.data.data],g.value=c||1,x.value=P.data.meta.last_page;let V=p.value.find(L=>L.id==t.params.id);C==!1&&!V&&g.value{C==!1&&w()},500)}function w(){const c=document.getElementById(`customer-${t.params.id}`);c&&(c.scrollIntoView({behavior:"smooth"}),c.classList.add("shake"),j())}function j(){D.value.addEventListener("scroll",c=>{c.target.scrollTop>0&&c.target.scrollTop+c.target.clientHeight>c.target.scrollHeight-200&&g.value{var Y;const T=d("BaseIcon"),P=d("BaseInput"),V=d("BaseButton"),L=d("BaseRadio"),U=d("BaseInputGroup"),z=d("BaseDropdownItem"),te=d("BaseDropdown"),H=d("BaseText"),se=d("BaseFormatMoney"),ae=d("router-link");return n(),B("div",be,[l("div",ve,[s(P,{modelValue:e(a).searchText,"onUpdate:modelValue":C[0]||(C[0]=f=>e(a).searchText=f),placeholder:c.$t("general.search"),"container-class":"mb-6",type:"text",variant:"gray",onInput:C[1]||(C[1]=f=>i())},{default:o(()=>[s(T,{name:"SearchIcon",class:"text-gray-500"})]),_:1},8,["modelValue","placeholder"]),l("div",Be,[s(te,{"close-on-select":!1,position:"bottom-start","width-class":"w-40","position-class":"left-0"},{activator:o(()=>[s(V,{variant:"gray"},{default:o(()=>[s(T,{name:"FilterIcon"})]),_:1})]),default:o(()=>[l("div",$e,v(c.$t("general.sort_by")),1),l("div",we,[s(z,{class:"flex px-1 py-2 mt-1 cursor-pointer hover:rounded-md"},{default:o(()=>[s(U,{class:"pt-2 -mt-4"},{default:o(()=>[s(L,{id:"filter_create_date",modelValue:e(a).orderByField,"onUpdate:modelValue":[C[2]||(C[2]=f=>e(a).orderByField=f),i],label:c.$t("customers.create_date"),size:"sm",name:"filter",value:"invoices.created_at"},null,8,["modelValue","label"])]),_:1})]),_:1})]),l("div",Ce,[s(z,{class:"flex px-1 cursor-pointer hover:rounded-md"},{default:o(()=>[s(U,{class:"pt-2 -mt-4"},{default:o(()=>[s(L,{id:"filter_display_name",modelValue:e(a).orderByField,"onUpdate:modelValue":[C[3]||(C[3]=f=>e(a).orderByField=f),i],label:c.$t("customers.display_name"),size:"sm",name:"filter",value:"name"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),s(V,{class:"ml-1",size:"md",variant:"gray",onClick:E},{default:o(()=>[e(y)?(n(),_(T,{key:0,name:"SortAscendingIcon"})):(n(),_(T,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),l("div",{ref:(f,N)=>{N.customerListSection=f,D.value=f},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid sidebar base-scroll"},[(n(!0),B(Q,null,W(p.value,(f,N)=>(n(),B("div",{key:N},[f?(n(),_(ae,{key:0,id:"customer-"+f.id,to:`/admin/customers/${f.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":$(f.id)}]),style:{"border-top":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[l("div",null,[s(H,{text:f.name,length:30,class:"pr-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),f.contact_name?(n(),_(H,{key:0,text:f.contact_name,length:30,class:"mt-1 text-xs not-italic font-medium leading-5 text-gray-600"},null,8,["text"])):h("",!0)]),l("div",Te,[s(se,{amount:f.due_amount!==null?f.due_amount:0,currency:f.currency},null,8,["amount","currency"])])]),_:2},1032,["id","to","class"])):h("",!0)]))),128)),e(r)?(n(),B("div",ke,[s(ye,{class:"h-6 m-1 animate-spin text-primary-400"})])):h("",!0),!((Y=p.value)==null?void 0:Y.length)&&!e(r)?(n(),B("p",Ee,v(c.$t("customers.no_matching_customers")),1)):h("",!0)],512)])}}},De={class:"pt-6 mt-5 border-t border-solid lg:pt-8 md:pt-4 border-gray-200"},je={key:0,class:"text-sm font-bold leading-5 text-black non-italic"},Ae={key:0},Se={key:1},Ve={key:1,class:"text-sm font-bold leading-5 text-black non-italic"},Fe={setup(k){const u=M(),t=I(()=>u.selectedViewCustomer),m=I(()=>u.isFetchingViewData),r=I(()=>{var a,p;return((a=t==null?void 0:t.value)==null?void 0:a.fields)?(p=t==null?void 0:t.value)==null?void 0:p.fields:[]});return(a,p)=>{const g=d("BaseHeading"),x=d("BaseDescriptionListItem"),D=d("BaseDescriptionList"),y=d("BaseCustomerAddressDisplay");return n(),B("div",De,[s(g,null,{default:o(()=>[S(v(a.$t("customers.basic_info")),1)]),_:1}),s(D,null,{default:o(()=>{var $,b,w;return[s(x,{"content-loading":e(m),label:a.$t("customers.display_name"),value:($=e(t))==null?void 0:$.name},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.primary_contact_name"),value:(b=e(t))==null?void 0:b.contact_name},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.email"),value:(w=e(t))==null?void 0:w.email},null,8,["content-loading","label","value"])]}),_:1}),s(D,{class:"mt-5"},{default:o(()=>{var $,b,w,j,i,E,c;return[s(x,{"content-loading":e(m),label:a.$t("wizard.currency"),value:(($=e(t))==null?void 0:$.currency)?`${(w=(b=e(t))==null?void 0:b.currency)==null?void 0:w.code} (${(i=(j=e(t))==null?void 0:j.currency)==null?void 0:i.symbol})`:""},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.phone_number"),value:(E=e(t))==null?void 0:E.phone},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.website"),value:(c=e(t))==null?void 0:c.website},null,8,["content-loading","label","value"])]}),_:1}),e(t).billing||e(t).shipping?(n(),_(g,{key:0,class:"mt-8"},{default:o(()=>[S(v(a.$t("customers.address")),1)]),_:1})):h("",!0),s(D,{class:"mt-5"},{default:o(()=>[e(t).billing?(n(),_(x,{key:0,"content-loading":e(m),label:a.$t("customers.billing_address")},{default:o(()=>[s(y,{address:e(t).billing},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0),e(t).shipping?(n(),_(x,{key:1,"content-loading":e(m),label:a.$t("customers.shipping_address")},{default:o(()=>[s(y,{address:e(t).shipping},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0)]),_:1}),e(r).length>0?(n(),_(g,{key:1,class:"mt-8"},{default:o(()=>[S(v(a.$t("settings.custom_fields.title")),1)]),_:1})):h("",!0),s(D,{class:"mt-5"},{default:o(()=>[(n(!0),B(Q,null,W(e(r),($,b)=>(n(),_(x,{key:b,"content-loading":e(m),label:$.custom_field.label},{default:o(()=>[$.type==="Switch"?(n(),B("p",je,[$.default_answer===1?(n(),B("span",Ae," Yes ")):(n(),B("span",Se," No "))])):(n(),B("p",Ve,v($.default_answer),1))]),_:2},1032,["content-loading","label"]))),128))]),_:1})])}}},Pe={},Le={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},Re={class:"flex justify-between mt-1 mb-6"},Me={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"},Ne={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Oe={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Ue={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},ze={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"};function He(k,u){const t=d("BaseContentPlaceholdersText"),m=d("BaseContentPlaceholdersBox"),r=d("BaseContentPlaceholders");return n(),_(r,{class:"grid grid-cols-12"},{default:o(()=>[l("div",Le,[l("div",Re,[s(t,{class:"h-10 w-36",lines:1}),s(t,{class:"h-10 w-40 !mt-0",lines:1})]),s(m,{class:"h-80 xl:h-72 sm:w-full"})]),l("div",Me,[l("div",Ne,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})]),l("div",Oe,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})]),l("div",Ue,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})]),l("div",ze,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var Ye=_e(Pe,[["render",He]]);const Ge={key:1,class:"grid grid-cols-12"},Xe={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},qe={class:"flex justify-between mt-1 mb-6"},Je={class:"flex items-center"},Ke={class:"w-40 h-10"},Qe={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"},We={class:"px-6 py-2"},Ze={class:"text-xs leading-5 lg:text-sm"},et=l("br",null,null,-1),tt={key:0,class:"block mt-1 text-xl font-semibold leading-8"},st={class:"px-6 py-2"},at={class:"text-xs leading-5 lg:text-sm"},nt=l("br",null,null,-1),ot={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#00c99c"}},lt={class:"px-6 py-2"},rt={class:"text-xs leading-5 lg:text-sm"},ct=l("br",null,null,-1),it={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#fb7178"}},dt={class:"px-6 py-2"},ut={class:"text-xs leading-5 lg:text-sm"},mt=l("br",null,null,-1),_t={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#5851d8"}},pt={setup(k){pe();const u=M();ee("utils");const t=O();let m=F(!1),r=R({}),a=R({}),p=R(["This year","Previous year"]),g=F("This year");const x=I(()=>r.expenseTotals?r.expenseTotals:[]),D=I(()=>r.netProfits?r.netProfits:[]),y=I(()=>r&&r.months?r.months:[]),$=I(()=>r.receiptTotals?r.receiptTotals:[]),b=I(()=>r.invoiceTotals?r.invoiceTotals:[]);de(t,()=>{t.params.id&&w(),g.value="This year"},{immediate:!0});async function w(){m.value=!1;let i=await u.fetchViewCustomer({id:t.params.id});i.data&&(Object.assign(r,i.data.meta.chartData),Object.assign(a,i.data.data)),m.value=!0}async function j(i){let E={id:t.params.id};i==="Previous year"?E.previous_year=!0:E.this_year=!0;let c=await u.fetchViewCustomer(E);return c.data.meta.chartData&&Object.assign(r,c.data.meta.chartData),!0}return(i,E)=>{const c=d("BaseIcon"),C=d("BaseMultiselect"),T=d("BaseFormatMoney"),P=d("BaseCard");return n(),_(P,{class:"flex flex-col mt-6"},{default:o(()=>[e(u).isFetchingViewData?(n(),_(Ye,{key:0})):(n(),B("div",Ge,[l("div",Xe,[l("div",qe,[l("h6",Je,[s(c,{name:"ChartSquareBarIcon",class:"h-5 text-primary-400"}),S(" "+v(i.$t("dashboard.monthly_chart.title")),1)]),l("div",Ke,[s(C,{modelValue:e(g),"onUpdate:modelValue":E[0]||(E[0]=V=>ue(g)?g.value=V:g=V),options:e(p),"allow-empty":!1,"show-labels":!1,placeholder:i.$t("dashboard.select_year"),"can-deselect":!1,onSelect:j},null,8,["modelValue","options","placeholder"])])]),e(m)?(n(),_(ge,{key:0,invoices:e(b),expenses:e(x),receipts:e($),income:e(D),labels:e(y),class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])):h("",!0)]),l("div",Qe,[l("div",We,[l("span",Ze,v(i.$t("dashboard.chart_info.total_sales")),1),et,e(m)?(n(),B("span",tt,[s(T,{amount:e(r).salesTotal,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)]),l("div",st,[l("span",at,v(i.$t("dashboard.chart_info.total_receipts")),1),nt,e(m)?(n(),B("span",ot,[s(T,{amount:e(r).totalExpenses,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)]),l("div",lt,[l("span",rt,v(i.$t("dashboard.chart_info.total_expense")),1),ct,e(m)?(n(),B("span",it,[s(T,{amount:e(r).totalExpenses,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)]),l("div",dt,[l("span",ut,v(i.$t("dashboard.chart_info.net_income")),1),mt,e(m)?(n(),B("span",_t,[s(T,{amount:e(r).netProfit,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)])])])),s(Fe)]),_:1})}}},vt={setup(k){ee("utils"),fe();const u=M(),t=he();K();const m=me(),r=O();F(null);const a=I(()=>u.selectedViewCustomer.customer?u.selectedViewCustomer.customer.name:"");let p=I(()=>u.isFetchingViewData);function g(){return t.hasAbilities([A.CREATE_ESTIMATE,A.CREATE_INVOICE,A.CREATE_PAYMENT,A.CREATE_EXPENSE])}function x(){return t.hasAbilities([A.DELETE_CUSTOMER,A.EDIT_CUSTOMER])}function D(){m.push("/admin/customers")}return(y,$)=>{const b=d("BaseButton"),w=d("router-link"),j=d("BaseIcon"),i=d("BaseDropdownItem"),E=d("BaseDropdown"),c=d("BasePageHeader"),C=d("BasePage");return n(),_(C,{class:"xl:pl-96"},{default:o(()=>[s(c,{title:e(a)},{actions:o(()=>[e(t).hasAbilities(e(A).EDIT_CUSTOMER)?(n(),_(w,{key:0,to:`/admin/customers/${e(r).params.id}/edit`},{default:o(()=>[s(b,{class:"mr-3",variant:"primary-outline","content-loading":e(p)},{default:o(()=>[S(v(y.$t("general.edit")),1)]),_:1},8,["content-loading"])]),_:1},8,["to"])):h("",!0),g()?(n(),_(E,{key:1,position:"bottom-end","content-loading":e(p)},{activator:o(()=>[s(b,{class:"mr-3",variant:"primary","content-loading":e(p)},{default:o(()=>[S(v(y.$t("customers.new_transaction")),1)]),_:1},8,["content-loading"])]),default:o(()=>[e(t).hasAbilities(e(A).CREATE_ESTIMATE)?(n(),_(w,{key:0,to:`/admin/estimates/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,{class:""},{default:o(()=>[s(j,{name:"DocumentIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("estimates.new_estimate")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(t).hasAbilities(e(A).CREATE_INVOICE)?(n(),_(w,{key:1,to:`/admin/invoices/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,null,{default:o(()=>[s(j,{name:"DocumentTextIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("invoices.new_invoice")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(t).hasAbilities(e(A).CREATE_PAYMENT)?(n(),_(w,{key:2,to:`/admin/payments/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,null,{default:o(()=>[s(j,{name:"CreditCardIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("payments.new_payment")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(t).hasAbilities(e(A).CREATE_EXPENSE)?(n(),_(w,{key:3,to:`/admin/expenses/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,null,{default:o(()=>[s(j,{name:"CalculatorIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("expenses.new_expense")),1)]),_:1})]),_:1},8,["to"])):h("",!0)]),_:1},8,["content-loading"])):h("",!0),x()?(n(),_(xe,{key:2,class:Z({"ml-3":e(p)}),row:e(u).selectedViewCustomer,"load-data":D},null,8,["class","row"])):h("",!0)]),_:1},8,["title"]),s(Ie),s(pt)]),_:1})}}};export{vt as default}; +var ne=Object.defineProperty,oe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var X=(k,u,t)=>u in k?ne(k,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):k[u]=t,q=(k,u)=>{for(var t in u||(u={}))re.call(u,t)&&X(k,t,u[t]);if(G)for(var t of G(u))ce.call(u,t)&&X(k,t,u[t]);return k},J=(k,u)=>oe(k,le(u));import{G as O,J as K,B as F,a0 as R,A as ie,k as I,r as d,o as n,e as B,h as l,f as s,w as o,u as e,t as v,l as _,F as Q,y as W,j as h,m as Z,i as S,ah as ee,C as de,x as ue,aN as me}from"./vendor.d12b5734.js";import{l as M,_ as _e,b as pe,j as fe,e as he,g as A}from"./main.c7bd6c0e.js";import{L as ye}from"./LoadingIcon.58a27e40.js";import{_ as ge}from"./LineChart.6775a7d1.js";import{_ as xe}from"./CustomerIndexDropdown.78bcff92.js";const be={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.6rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},ve={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},Be={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},$e={class:"px-4 py-3 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},we={class:"px-2"},Ce={class:"px-2"},Te={class:"flex-1 font-bold text-right whitespace-nowrap"},ke={key:0,class:"flex justify-center p-4 items-center"},Ee={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Ie={setup(k){const u=M(),t=O(),{t:m}=K();let r=F(!1),a=R({orderBy:null,orderByField:null,searchText:null});const p=F(null),g=F(1),x=F(1),D=F(null);i=ie.exports.debounce(i,500);const y=I(()=>a.orderBy==="asc"||a.orderBy==null);I(()=>y.value?m("general.ascending"):m("general.descending"));function $(c){return t.params.id==c}async function b(c,C=!1){if(r.value)return;let T={};a.searchText!==""&&a.searchText!==null&&a.searchText!==void 0&&(T.display_name=a.searchText),a.orderBy!==null&&a.orderBy!==void 0&&(T.orderBy=a.orderBy),a.orderByField!==null&&a.orderByField!==void 0&&(T.orderByField=a.orderByField),r.value=!0;let P=await u.fetchCustomers(J(q({page:c},T),{limit:15}));r.value=!1,p.value=p.value?p.value:[],p.value=[...p.value,...P.data.data],g.value=c||1,x.value=P.data.meta.last_page;let V=p.value.find(L=>L.id==t.params.id);C==!1&&!V&&g.value{C==!1&&w()},500)}function w(){const c=document.getElementById(`customer-${t.params.id}`);c&&(c.scrollIntoView({behavior:"smooth"}),c.classList.add("shake"),j())}function j(){D.value.addEventListener("scroll",c=>{c.target.scrollTop>0&&c.target.scrollTop+c.target.clientHeight>c.target.scrollHeight-200&&g.value{var Y;const T=d("BaseIcon"),P=d("BaseInput"),V=d("BaseButton"),L=d("BaseRadio"),U=d("BaseInputGroup"),z=d("BaseDropdownItem"),te=d("BaseDropdown"),H=d("BaseText"),se=d("BaseFormatMoney"),ae=d("router-link");return n(),B("div",be,[l("div",ve,[s(P,{modelValue:e(a).searchText,"onUpdate:modelValue":C[0]||(C[0]=f=>e(a).searchText=f),placeholder:c.$t("general.search"),"container-class":"mb-6",type:"text",variant:"gray",onInput:C[1]||(C[1]=f=>i())},{default:o(()=>[s(T,{name:"SearchIcon",class:"text-gray-500"})]),_:1},8,["modelValue","placeholder"]),l("div",Be,[s(te,{"close-on-select":!1,position:"bottom-start","width-class":"w-40","position-class":"left-0"},{activator:o(()=>[s(V,{variant:"gray"},{default:o(()=>[s(T,{name:"FilterIcon"})]),_:1})]),default:o(()=>[l("div",$e,v(c.$t("general.sort_by")),1),l("div",we,[s(z,{class:"flex px-1 py-2 mt-1 cursor-pointer hover:rounded-md"},{default:o(()=>[s(U,{class:"pt-2 -mt-4"},{default:o(()=>[s(L,{id:"filter_create_date",modelValue:e(a).orderByField,"onUpdate:modelValue":[C[2]||(C[2]=f=>e(a).orderByField=f),i],label:c.$t("customers.create_date"),size:"sm",name:"filter",value:"invoices.created_at"},null,8,["modelValue","label"])]),_:1})]),_:1})]),l("div",Ce,[s(z,{class:"flex px-1 cursor-pointer hover:rounded-md"},{default:o(()=>[s(U,{class:"pt-2 -mt-4"},{default:o(()=>[s(L,{id:"filter_display_name",modelValue:e(a).orderByField,"onUpdate:modelValue":[C[3]||(C[3]=f=>e(a).orderByField=f),i],label:c.$t("customers.display_name"),size:"sm",name:"filter",value:"name"},null,8,["modelValue","label"])]),_:1})]),_:1})])]),_:1}),s(V,{class:"ml-1",size:"md",variant:"gray",onClick:E},{default:o(()=>[e(y)?(n(),_(T,{key:0,name:"SortAscendingIcon"})):(n(),_(T,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),l("div",{ref:(f,N)=>{N.customerListSection=f,D.value=f},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid sidebar base-scroll"},[(n(!0),B(Q,null,W(p.value,(f,N)=>(n(),B("div",{key:N},[f?(n(),_(ae,{key:0,id:"customer-"+f.id,to:`/admin/customers/${f.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":$(f.id)}]),style:{"border-top":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[l("div",null,[s(H,{text:f.name,length:30,class:"pr-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},null,8,["text"]),f.contact_name?(n(),_(H,{key:0,text:f.contact_name,length:30,class:"mt-1 text-xs not-italic font-medium leading-5 text-gray-600"},null,8,["text"])):h("",!0)]),l("div",Te,[s(se,{amount:f.due_amount!==null?f.due_amount:0,currency:f.currency},null,8,["amount","currency"])])]),_:2},1032,["id","to","class"])):h("",!0)]))),128)),e(r)?(n(),B("div",ke,[s(ye,{class:"h-6 m-1 animate-spin text-primary-400"})])):h("",!0),!((Y=p.value)==null?void 0:Y.length)&&!e(r)?(n(),B("p",Ee,v(c.$t("customers.no_matching_customers")),1)):h("",!0)],512)])}}},De={class:"pt-6 mt-5 border-t border-solid lg:pt-8 md:pt-4 border-gray-200"},je={key:0,class:"text-sm font-bold leading-5 text-black non-italic"},Ae={key:0},Se={key:1},Ve={key:1,class:"text-sm font-bold leading-5 text-black non-italic"},Fe={setup(k){const u=M(),t=I(()=>u.selectedViewCustomer),m=I(()=>u.isFetchingViewData),r=I(()=>{var a,p;return((a=t==null?void 0:t.value)==null?void 0:a.fields)?(p=t==null?void 0:t.value)==null?void 0:p.fields:[]});return(a,p)=>{const g=d("BaseHeading"),x=d("BaseDescriptionListItem"),D=d("BaseDescriptionList"),y=d("BaseCustomerAddressDisplay");return n(),B("div",De,[s(g,null,{default:o(()=>[S(v(a.$t("customers.basic_info")),1)]),_:1}),s(D,null,{default:o(()=>{var $,b,w;return[s(x,{"content-loading":e(m),label:a.$t("customers.display_name"),value:($=e(t))==null?void 0:$.name},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.primary_contact_name"),value:(b=e(t))==null?void 0:b.contact_name},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.email"),value:(w=e(t))==null?void 0:w.email},null,8,["content-loading","label","value"])]}),_:1}),s(D,{class:"mt-5"},{default:o(()=>{var $,b,w,j,i,E,c;return[s(x,{"content-loading":e(m),label:a.$t("wizard.currency"),value:(($=e(t))==null?void 0:$.currency)?`${(w=(b=e(t))==null?void 0:b.currency)==null?void 0:w.code} (${(i=(j=e(t))==null?void 0:j.currency)==null?void 0:i.symbol})`:""},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.phone_number"),value:(E=e(t))==null?void 0:E.phone},null,8,["content-loading","label","value"]),s(x,{"content-loading":e(m),label:a.$t("customers.website"),value:(c=e(t))==null?void 0:c.website},null,8,["content-loading","label","value"])]}),_:1}),e(t).billing||e(t).shipping?(n(),_(g,{key:0,class:"mt-8"},{default:o(()=>[S(v(a.$t("customers.address")),1)]),_:1})):h("",!0),s(D,{class:"mt-5"},{default:o(()=>[e(t).billing?(n(),_(x,{key:0,"content-loading":e(m),label:a.$t("customers.billing_address")},{default:o(()=>[s(y,{address:e(t).billing},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0),e(t).shipping?(n(),_(x,{key:1,"content-loading":e(m),label:a.$t("customers.shipping_address")},{default:o(()=>[s(y,{address:e(t).shipping},null,8,["address"])]),_:1},8,["content-loading","label"])):h("",!0)]),_:1}),e(r).length>0?(n(),_(g,{key:1,class:"mt-8"},{default:o(()=>[S(v(a.$t("settings.custom_fields.title")),1)]),_:1})):h("",!0),s(D,{class:"mt-5"},{default:o(()=>[(n(!0),B(Q,null,W(e(r),($,b)=>(n(),_(x,{key:b,"content-loading":e(m),label:$.custom_field.label},{default:o(()=>[$.type==="Switch"?(n(),B("p",je,[$.default_answer===1?(n(),B("span",Ae," Yes ")):(n(),B("span",Se," No "))])):(n(),B("p",Ve,v($.default_answer),1))]),_:2},1032,["content-loading","label"]))),128))]),_:1})])}}},Pe={},Le={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},Re={class:"flex justify-between mt-1 mb-6"},Me={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"},Ne={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Oe={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},Ue={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"},ze={class:"flex flex-col items-center justify-center px-6 py-2 lg:justify-end lg:items-end"};function He(k,u){const t=d("BaseContentPlaceholdersText"),m=d("BaseContentPlaceholdersBox"),r=d("BaseContentPlaceholders");return n(),_(r,{class:"grid grid-cols-12"},{default:o(()=>[l("div",Le,[l("div",Re,[s(t,{class:"h-10 w-36",lines:1}),s(t,{class:"h-10 w-40 !mt-0",lines:1})]),s(m,{class:"h-80 xl:h-72 sm:w-full"})]),l("div",Me,[l("div",Ne,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})]),l("div",Oe,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})]),l("div",Ue,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})]),l("div",ze,[s(t,{class:"h-3 w-14 xl:h-4",lines:1}),s(t,{class:"w-20 h-5 xl:h-6",lines:1})])])]),_:1})}var Ye=_e(Pe,[["render",He]]);const Ge={key:1,class:"grid grid-cols-12"},Xe={class:"col-span-12 xl:col-span-9 xxl:col-span-10"},qe={class:"flex justify-between mt-1 mb-6"},Je={class:"flex items-center"},Ke={class:"w-40 h-10"},Qe={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"},We={class:"px-6 py-2"},Ze={class:"text-xs leading-5 lg:text-sm"},et=l("br",null,null,-1),tt={key:0,class:"block mt-1 text-xl font-semibold leading-8"},st={class:"px-6 py-2"},at={class:"text-xs leading-5 lg:text-sm"},nt=l("br",null,null,-1),ot={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#00c99c"}},lt={class:"px-6 py-2"},rt={class:"text-xs leading-5 lg:text-sm"},ct=l("br",null,null,-1),it={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#fb7178"}},dt={class:"px-6 py-2"},ut={class:"text-xs leading-5 lg:text-sm"},mt=l("br",null,null,-1),_t={key:0,class:"block mt-1 text-xl font-semibold leading-8",style:{color:"#5851d8"}},pt={setup(k){pe();const u=M();ee("utils");const t=O();let m=F(!1),r=R({}),a=R({}),p=R(["This year","Previous year"]),g=F("This year");const x=I(()=>r.expenseTotals?r.expenseTotals:[]),D=I(()=>r.netProfits?r.netProfits:[]),y=I(()=>r&&r.months?r.months:[]),$=I(()=>r.receiptTotals?r.receiptTotals:[]),b=I(()=>r.invoiceTotals?r.invoiceTotals:[]);de(t,()=>{t.params.id&&w(),g.value="This year"},{immediate:!0});async function w(){m.value=!1;let i=await u.fetchViewCustomer({id:t.params.id});i.data&&(Object.assign(r,i.data.meta.chartData),Object.assign(a,i.data.data)),m.value=!0}async function j(i){let E={id:t.params.id};i==="Previous year"?E.previous_year=!0:E.this_year=!0;let c=await u.fetchViewCustomer(E);return c.data.meta.chartData&&Object.assign(r,c.data.meta.chartData),!0}return(i,E)=>{const c=d("BaseIcon"),C=d("BaseMultiselect"),T=d("BaseFormatMoney"),P=d("BaseCard");return n(),_(P,{class:"flex flex-col mt-6"},{default:o(()=>[e(u).isFetchingViewData?(n(),_(Ye,{key:0})):(n(),B("div",Ge,[l("div",Xe,[l("div",qe,[l("h6",Je,[s(c,{name:"ChartSquareBarIcon",class:"h-5 text-primary-400"}),S(" "+v(i.$t("dashboard.monthly_chart.title")),1)]),l("div",Ke,[s(C,{modelValue:e(g),"onUpdate:modelValue":E[0]||(E[0]=V=>ue(g)?g.value=V:g=V),options:e(p),"allow-empty":!1,"show-labels":!1,placeholder:i.$t("dashboard.select_year"),"can-deselect":!1,onSelect:j},null,8,["modelValue","options","placeholder"])])]),e(m)?(n(),_(ge,{key:0,invoices:e(b),expenses:e(x),receipts:e($),income:e(D),labels:e(y),class:"sm:w-full"},null,8,["invoices","expenses","receipts","income","labels"])):h("",!0)]),l("div",Qe,[l("div",We,[l("span",Ze,v(i.$t("dashboard.chart_info.total_sales")),1),et,e(m)?(n(),B("span",tt,[s(T,{amount:e(r).salesTotal,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)]),l("div",st,[l("span",at,v(i.$t("dashboard.chart_info.total_receipts")),1),nt,e(m)?(n(),B("span",ot,[s(T,{amount:e(r).totalExpenses,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)]),l("div",lt,[l("span",rt,v(i.$t("dashboard.chart_info.total_expense")),1),ct,e(m)?(n(),B("span",it,[s(T,{amount:e(r).totalExpenses,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)]),l("div",dt,[l("span",ut,v(i.$t("dashboard.chart_info.net_income")),1),mt,e(m)?(n(),B("span",_t,[s(T,{amount:e(r).netProfit,currency:e(a).currency},null,8,["amount","currency"])])):h("",!0)])])])),s(Fe)]),_:1})}}},vt={setup(k){ee("utils"),fe();const u=M(),t=he();K();const m=me(),r=O();F(null);const a=I(()=>u.selectedViewCustomer.customer?u.selectedViewCustomer.customer.name:"");let p=I(()=>u.isFetchingViewData);function g(){return t.hasAbilities([A.CREATE_ESTIMATE,A.CREATE_INVOICE,A.CREATE_PAYMENT,A.CREATE_EXPENSE])}function x(){return t.hasAbilities([A.DELETE_CUSTOMER,A.EDIT_CUSTOMER])}function D(){m.push("/admin/customers")}return(y,$)=>{const b=d("BaseButton"),w=d("router-link"),j=d("BaseIcon"),i=d("BaseDropdownItem"),E=d("BaseDropdown"),c=d("BasePageHeader"),C=d("BasePage");return n(),_(C,{class:"xl:pl-96"},{default:o(()=>[s(c,{title:e(a)},{actions:o(()=>[e(t).hasAbilities(e(A).EDIT_CUSTOMER)?(n(),_(w,{key:0,to:`/admin/customers/${e(r).params.id}/edit`},{default:o(()=>[s(b,{class:"mr-3",variant:"primary-outline","content-loading":e(p)},{default:o(()=>[S(v(y.$t("general.edit")),1)]),_:1},8,["content-loading"])]),_:1},8,["to"])):h("",!0),g()?(n(),_(E,{key:1,position:"bottom-end","content-loading":e(p)},{activator:o(()=>[s(b,{class:"mr-3",variant:"primary","content-loading":e(p)},{default:o(()=>[S(v(y.$t("customers.new_transaction")),1)]),_:1},8,["content-loading"])]),default:o(()=>[e(t).hasAbilities(e(A).CREATE_ESTIMATE)?(n(),_(w,{key:0,to:`/admin/estimates/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,{class:""},{default:o(()=>[s(j,{name:"DocumentIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("estimates.new_estimate")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(t).hasAbilities(e(A).CREATE_INVOICE)?(n(),_(w,{key:1,to:`/admin/invoices/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,null,{default:o(()=>[s(j,{name:"DocumentTextIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("invoices.new_invoice")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(t).hasAbilities(e(A).CREATE_PAYMENT)?(n(),_(w,{key:2,to:`/admin/payments/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,null,{default:o(()=>[s(j,{name:"CreditCardIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("payments.new_payment")),1)]),_:1})]),_:1},8,["to"])):h("",!0),e(t).hasAbilities(e(A).CREATE_EXPENSE)?(n(),_(w,{key:3,to:`/admin/expenses/create?customer=${y.$route.params.id}`},{default:o(()=>[s(i,null,{default:o(()=>[s(j,{name:"CalculatorIcon",class:"mr-3 text-gray-600"}),S(" "+v(y.$t("expenses.new_expense")),1)]),_:1})]),_:1},8,["to"])):h("",!0)]),_:1},8,["content-loading"])):h("",!0),x()?(n(),_(xe,{key:2,class:Z({"ml-3":e(p)}),row:e(u).selectedViewCustomer,"load-data":D},null,8,["class","row"])):h("",!0)]),_:1},8,["title"]),s(Ie),s(pt)]),_:1})}}};export{vt as default}; diff --git a/public/build/assets/View.a8a41f7b.js b/public/build/assets/View.7a392eb1.js similarity index 96% rename from public/build/assets/View.a8a41f7b.js rename to public/build/assets/View.7a392eb1.js index 9f8c3839c..cd079523a 100644 --- a/public/build/assets/View.a8a41f7b.js +++ b/public/build/assets/View.7a392eb1.js @@ -1 +1 @@ -var ce=Object.defineProperty;var O=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable;var q=(_,c,i)=>c in _?ce(_,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):_[c]=i,z=(_,c)=>{for(var i in c||(c={}))me.call(c,i)&&q(_,i,c[i]);if(O)for(var i of O(c))fe.call(c,i)&&q(_,i,c[i]);return _};import{J as pe,B as y,G as _e,aN as ve,a0 as ye,k as w,C as ge,A as be,r as d,o as f,e as T,f as s,l as x,w as l,h as u,u as n,i as C,t as h,j as B,F as J,y as he,m as xe}from"./vendor.d12b5734.js";import{c as Be,k as ke,j as Se,e as Ee,g as K}from"./main.6ceeb72d.js";import{_ as we}from"./EstimateIndexDropdown.1e23ee92.js";import{_ as Te}from"./SendEstimateModal.5a99ff19.js";import{L as Ie}from"./LoadingIcon.66b14768.js";import"./mail-driver.c62711d2.js";const Fe={class:"mr-3 text-sm"},Ve={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.4rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},De={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},$e={class:"mb-6"},Le={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},je={class:"px-4 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Ae={class:"flex-2"},Ne={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Me={class:"flex-1 whitespace-nowrap right"},ze={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Ce={key:0,class:"flex justify-center p-4 items-center"},Ue={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Pe={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Re=["src"],We={setup(_){const c=Be(),i=ke(),Q=Se(),U=Ee(),{t:g}=pe(),r=y(null),k=_e();ve();const I=y(!1),S=y(!1),F=y(!1),m=y(null),E=y(1),$=y(1),P=y(null),t=ye({orderBy:null,orderByField:null,searchText:null}),W=w(()=>r.value.estimate_number),R=w(()=>t.orderBy==="asc"||t.orderBy==null);w(()=>R.value?g("general.ascending"):g("general.descending"));const X=w(()=>`/estimates/pdf/${r.value.unique_hash}`);w(()=>r.value&&r.value.id?estimate.value.id:null),ge(k,(e,o)=>{e.name==="estimates.view"&&H()}),V(),H(),v=be.exports.debounce(v,500);function Y(e){return k.params.id==e}async function V(e,o=!1){if(S.value)return;let p={};t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(p.search=t.searchText),t.orderBy!==null&&t.orderBy!==void 0&&(p.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(p.orderByField=t.orderByField),S.value=!0;let D=await i.fetchEstimates(z({page:e},p));S.value=!1,m.value=m.value?m.value:[],m.value=[...m.value,...D.data.data],E.value=e||1,$.value=D.data.meta.last_page;let b=m.value.find(L=>L.id==k.params.id);o==!1&&!b&&E.value<$.value&&Object.keys(p).length===0&&V(++E.value),b&&setTimeout(()=>{o==!1&&Z()},500)}function Z(){const e=document.getElementById(`estimate-${k.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"),ee())}function ee(){P.value.addEventListener("scroll",e=>{e.target.scrollTop>0&&e.target.scrollTop+e.target.clientHeight>e.target.scrollHeight-200&&E.value<$.value&&V(++E.value,!0)})}async function H(){F.value=!0;let e=await i.fetchEstimate(k.params.id);e.data&&(F.value=!1,r.value=z({},e.data.data))}async function v(){m.value=[],V()}function te(){return t.orderBy==="asc"?(t.orderBy="desc",v(),!0):(t.orderBy="asc",v(),!0)}async function ae(){Q.openDialog({title:g("general.are_you_sure"),message:g("estimates.confirm_mark_as_sent"),yesLabel:g("general.ok"),noLabel:g("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(e=>{I.value=!1,e&&(i.markAsSent({id:r.value.id,status:"SENT"}),r.value.status="SENT",I.value=!0),I.value=!1})}async function se(e){c.openModal({title:g("estimates.send_estimate"),componentName:"SendEstimateModal",id:r.value.id,data:r.value})}function le(){let e=m.value.findIndex(o=>o.id===r.value.id);m.value[e]&&(m.value[e].status="SENT",r.value.status="SENT")}return(e,o)=>{const p=d("BaseButton"),D=d("BasePageHeader"),b=d("BaseIcon"),L=d("BaseInput"),j=d("BaseRadio"),A=d("BaseInputGroup"),N=d("BaseDropdownItem"),oe=d("BaseDropdown"),re=d("BaseText"),ne=d("BaseEstimateStatusBadge"),ie=d("BaseFormatMoney"),de=d("router-link"),ue=d("BasePage");return f(),T(J,null,[s(Te,{onUpdate:le}),r.value?(f(),x(ue,{key:0,class:"xl:pl-96 xl:ml-8"},{default:l(()=>{var G;return[s(D,{title:n(W)},{actions:l(()=>[u("div",Fe,[r.value.status==="DRAFT"&&n(U).hasAbilities(n(K).EDIT_ESTIMATE)?(f(),x(p,{key:0,disabled:I.value,"content-loading":F.value,variant:"primary-outline",onClick:ae},{default:l(()=>[C(h(e.$t("estimates.mark_as_sent")),1)]),_:1},8,["disabled","content-loading"])):B("",!0)]),r.value.status==="DRAFT"&&n(U).hasAbilities(n(K).SEND_ESTIMATE)?(f(),x(p,{key:0,"content-loading":F.value,variant:"primary",class:"text-sm",onClick:se},{default:l(()=>[C(h(e.$t("estimates.send_estimate")),1)]),_:1},8,["content-loading"])):B("",!0),s(we,{class:"ml-3",row:r.value},null,8,["row"])]),_:1},8,["title"]),u("div",Ve,[u("div",De,[u("div",$e,[s(L,{modelValue:n(t).searchText,"onUpdate:modelValue":o[0]||(o[0]=a=>n(t).searchText=a),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:o[1]||(o[1]=a=>v())},{right:l(()=>[s(b,{name:"SearchIcon",class:"text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",Le,[s(oe,{class:"ml-3",position:"bottom-start","width-class":"w-45","position-class":"left-0"},{activator:l(()=>[s(p,{size:"md",variant:"gray"},{default:l(()=>[s(b,{name:"FilterIcon"})]),_:1})]),default:l(()=>[u("div",je,h(e.$t("general.sort_by")),1),s(N,{class:"flex px-4 py-2 cursor-pointer"},{default:l(()=>[s(A,{class:"-mt-3 font-normal"},{default:l(()=>[s(j,{id:"filter_estimate_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[o[2]||(o[2]=a=>n(t).orderByField=a),v],label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(N,{class:"flex px-4 py-2 cursor-pointer"},{default:l(()=>[s(A,{class:"-mt-3 font-normal"},{default:l(()=>[s(j,{id:"filter_due_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[o[3]||(o[3]=a=>n(t).orderByField=a),v],label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(N,{class:"flex px-4 py-2 cursor-pointer"},{default:l(()=>[s(A,{class:"-mt-3 font-normal"},{default:l(()=>[s(j,{id:"filter_estimate_number",modelValue:n(t).orderByField,"onUpdate:modelValue":[o[4]||(o[4]=a=>n(t).orderByField=a),v],label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),s(p,{class:"ml-1",size:"md",variant:"gray",onClick:te},{default:l(()=>[n(R)?(f(),x(b,{key:0,name:"SortAscendingIcon"})):(f(),x(b,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),u("div",{ref:(a,M)=>{M.estimateListSection=a,P.value=a},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},[(f(!0),T(J,null,he(m.value,(a,M)=>(f(),T("div",{key:M},[a?(f(),x(de,{key:0,id:"estimate-"+a.id,to:`/admin/estimates/${a.id}/view`,class:xe(["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":Y(a.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:l(()=>[u("div",Ae,[s(re,{text:a.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,h(a.estimate_number),1),s(ne,{status:a.status,class:"px-1 text-xs"},{default:l(()=>[C(h(a.status),1)]),_:2},1032,["status"])]),u("div",Me,[s(ie,{amount:a.total,currency:a.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",ze,h(a.formatted_estimate_date),1)])]),_:2},1032,["id","to","class"])):B("",!0)]))),128)),S.value?(f(),T("div",Ce,[s(Ie,{class:"h-6 m-1 animate-spin text-primary-400"})])):B("",!0),!((G=m.value)==null?void 0:G.length)&&!S.value?(f(),T("p",Ue,h(e.$t("estimates.no_matching_estimates")),1)):B("",!0)],512)]),u("div",Pe,[u("iframe",{src:`${n(X)}`,class:"flex-1 border border-gray-400 border-solid rounded-md bg-white frame-style"},null,8,Re)])]}),_:1})):B("",!0)],64)}}};export{We as default}; +var ce=Object.defineProperty;var O=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable;var q=(_,c,i)=>c in _?ce(_,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):_[c]=i,z=(_,c)=>{for(var i in c||(c={}))me.call(c,i)&&q(_,i,c[i]);if(O)for(var i of O(c))fe.call(c,i)&&q(_,i,c[i]);return _};import{J as pe,B as y,G as _e,aN as ve,a0 as ye,k as w,C as ge,A as be,r as d,o as f,e as T,f as s,l as x,w as l,h as u,u as n,i as C,t as h,j as B,F as J,y as he,m as xe}from"./vendor.d12b5734.js";import{c as Be,k as ke,j as Se,e as Ee,g as K}from"./main.c7bd6c0e.js";import{_ as we}from"./EstimateIndexDropdown.c74a1c48.js";import{_ as Te}from"./SendEstimateModal.d6ecf83f.js";import{L as Ie}from"./LoadingIcon.58a27e40.js";import"./mail-driver.b57a1b96.js";const Fe={class:"mr-3 text-sm"},Ve={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.4rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},De={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},$e={class:"mb-6"},Le={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},je={class:"px-4 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Ae={class:"flex-2"},Ne={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Me={class:"flex-1 whitespace-nowrap right"},ze={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Ce={key:0,class:"flex justify-center p-4 items-center"},Ue={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},Pe={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Re=["src"],We={setup(_){const c=Be(),i=ke(),Q=Se(),U=Ee(),{t:g}=pe(),r=y(null),k=_e();ve();const I=y(!1),S=y(!1),F=y(!1),m=y(null),E=y(1),$=y(1),P=y(null),t=ye({orderBy:null,orderByField:null,searchText:null}),W=w(()=>r.value.estimate_number),R=w(()=>t.orderBy==="asc"||t.orderBy==null);w(()=>R.value?g("general.ascending"):g("general.descending"));const X=w(()=>`/estimates/pdf/${r.value.unique_hash}`);w(()=>r.value&&r.value.id?estimate.value.id:null),ge(k,(e,o)=>{e.name==="estimates.view"&&H()}),V(),H(),v=be.exports.debounce(v,500);function Y(e){return k.params.id==e}async function V(e,o=!1){if(S.value)return;let p={};t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(p.search=t.searchText),t.orderBy!==null&&t.orderBy!==void 0&&(p.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(p.orderByField=t.orderByField),S.value=!0;let D=await i.fetchEstimates(z({page:e},p));S.value=!1,m.value=m.value?m.value:[],m.value=[...m.value,...D.data.data],E.value=e||1,$.value=D.data.meta.last_page;let b=m.value.find(L=>L.id==k.params.id);o==!1&&!b&&E.value<$.value&&Object.keys(p).length===0&&V(++E.value),b&&setTimeout(()=>{o==!1&&Z()},500)}function Z(){const e=document.getElementById(`estimate-${k.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"),ee())}function ee(){P.value.addEventListener("scroll",e=>{e.target.scrollTop>0&&e.target.scrollTop+e.target.clientHeight>e.target.scrollHeight-200&&E.value<$.value&&V(++E.value,!0)})}async function H(){F.value=!0;let e=await i.fetchEstimate(k.params.id);e.data&&(F.value=!1,r.value=z({},e.data.data))}async function v(){m.value=[],V()}function te(){return t.orderBy==="asc"?(t.orderBy="desc",v(),!0):(t.orderBy="asc",v(),!0)}async function ae(){Q.openDialog({title:g("general.are_you_sure"),message:g("estimates.confirm_mark_as_sent"),yesLabel:g("general.ok"),noLabel:g("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(e=>{I.value=!1,e&&(i.markAsSent({id:r.value.id,status:"SENT"}),r.value.status="SENT",I.value=!0),I.value=!1})}async function se(e){c.openModal({title:g("estimates.send_estimate"),componentName:"SendEstimateModal",id:r.value.id,data:r.value})}function le(){let e=m.value.findIndex(o=>o.id===r.value.id);m.value[e]&&(m.value[e].status="SENT",r.value.status="SENT")}return(e,o)=>{const p=d("BaseButton"),D=d("BasePageHeader"),b=d("BaseIcon"),L=d("BaseInput"),j=d("BaseRadio"),A=d("BaseInputGroup"),N=d("BaseDropdownItem"),oe=d("BaseDropdown"),re=d("BaseText"),ne=d("BaseEstimateStatusBadge"),ie=d("BaseFormatMoney"),de=d("router-link"),ue=d("BasePage");return f(),T(J,null,[s(Te,{onUpdate:le}),r.value?(f(),x(ue,{key:0,class:"xl:pl-96 xl:ml-8"},{default:l(()=>{var G;return[s(D,{title:n(W)},{actions:l(()=>[u("div",Fe,[r.value.status==="DRAFT"&&n(U).hasAbilities(n(K).EDIT_ESTIMATE)?(f(),x(p,{key:0,disabled:I.value,"content-loading":F.value,variant:"primary-outline",onClick:ae},{default:l(()=>[C(h(e.$t("estimates.mark_as_sent")),1)]),_:1},8,["disabled","content-loading"])):B("",!0)]),r.value.status==="DRAFT"&&n(U).hasAbilities(n(K).SEND_ESTIMATE)?(f(),x(p,{key:0,"content-loading":F.value,variant:"primary",class:"text-sm",onClick:se},{default:l(()=>[C(h(e.$t("estimates.send_estimate")),1)]),_:1},8,["content-loading"])):B("",!0),s(we,{class:"ml-3",row:r.value},null,8,["row"])]),_:1},8,["title"]),u("div",Ve,[u("div",De,[u("div",$e,[s(L,{modelValue:n(t).searchText,"onUpdate:modelValue":o[0]||(o[0]=a=>n(t).searchText=a),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:o[1]||(o[1]=a=>v())},{right:l(()=>[s(b,{name:"SearchIcon",class:"text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",Le,[s(oe,{class:"ml-3",position:"bottom-start","width-class":"w-45","position-class":"left-0"},{activator:l(()=>[s(p,{size:"md",variant:"gray"},{default:l(()=>[s(b,{name:"FilterIcon"})]),_:1})]),default:l(()=>[u("div",je,h(e.$t("general.sort_by")),1),s(N,{class:"flex px-4 py-2 cursor-pointer"},{default:l(()=>[s(A,{class:"-mt-3 font-normal"},{default:l(()=>[s(j,{id:"filter_estimate_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[o[2]||(o[2]=a=>n(t).orderByField=a),v],label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(N,{class:"flex px-4 py-2 cursor-pointer"},{default:l(()=>[s(A,{class:"-mt-3 font-normal"},{default:l(()=>[s(j,{id:"filter_due_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[o[3]||(o[3]=a=>n(t).orderByField=a),v],label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(N,{class:"flex px-4 py-2 cursor-pointer"},{default:l(()=>[s(A,{class:"-mt-3 font-normal"},{default:l(()=>[s(j,{id:"filter_estimate_number",modelValue:n(t).orderByField,"onUpdate:modelValue":[o[4]||(o[4]=a=>n(t).orderByField=a),v],label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),s(p,{class:"ml-1",size:"md",variant:"gray",onClick:te},{default:l(()=>[n(R)?(f(),x(b,{key:0,name:"SortAscendingIcon"})):(f(),x(b,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),u("div",{ref:(a,M)=>{M.estimateListSection=a,P.value=a},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},[(f(!0),T(J,null,he(m.value,(a,M)=>(f(),T("div",{key:M},[a?(f(),x(de,{key:0,id:"estimate-"+a.id,to:`/admin/estimates/${a.id}/view`,class:xe(["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":Y(a.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:l(()=>[u("div",Ae,[s(re,{text:a.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,h(a.estimate_number),1),s(ne,{status:a.status,class:"px-1 text-xs"},{default:l(()=>[C(h(a.status),1)]),_:2},1032,["status"])]),u("div",Me,[s(ie,{amount:a.total,currency:a.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",ze,h(a.formatted_estimate_date),1)])]),_:2},1032,["id","to","class"])):B("",!0)]))),128)),S.value?(f(),T("div",Ce,[s(Ie,{class:"h-6 m-1 animate-spin text-primary-400"})])):B("",!0),!((G=m.value)==null?void 0:G.length)&&!S.value?(f(),T("p",Ue,h(e.$t("estimates.no_matching_estimates")),1)):B("",!0)],512)]),u("div",Pe,[u("iframe",{src:`${n(X)}`,class:"flex-1 border border-gray-400 border-solid rounded-md bg-white frame-style"},null,8,Re)])]}),_:1})):B("",!0)],64)}}};export{We as default}; diff --git a/public/build/assets/View.23db8f6f.js b/public/build/assets/View.db9ebd38.js similarity index 96% rename from public/build/assets/View.23db8f6f.js rename to public/build/assets/View.db9ebd38.js index 69c922cf4..18b4e26ab 100644 --- a/public/build/assets/View.23db8f6f.js +++ b/public/build/assets/View.db9ebd38.js @@ -1 +1 @@ -var ce=Object.defineProperty;var G=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var q=(p,m,i)=>m in p?ce(p,m,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[m]=i,z=(p,m)=>{for(var i in m||(m={}))ue.call(m,i)&&q(p,i,m[i]);if(G)for(var i of G(m))me.call(m,i)&&q(p,i,m[i]);return p};import{J as ve,B,G as fe,a0 as pe,k as F,C as _e,A as ye,r as d,o as c,e as V,f as s,l as y,w as o,h as u,u as n,i as D,t as g,j as b,F as J,y as ge,m as be}from"./vendor.d12b5734.js";import{c as he,i as Be,e as xe,j as Ie,g as P}from"./main.6ceeb72d.js";import{_ as ke}from"./SendInvoiceModal.224b5c76.js";import{_ as Se}from"./InvoiceIndexDropdown.78aec816.js";import{L as we}from"./LoadingIcon.66b14768.js";import"./mail-driver.c62711d2.js";const Te={class:"text-sm mr-3"},Fe={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.4rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},Ve={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},Ee={class:"mb-6"},$e={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},De={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Ne={class:"flex-2"},je={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Ae={class:"flex-1 whitespace-nowrap right"},Le={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Ce={key:0,class:"flex justify-center p-4 items-center"},Me={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},ze={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Pe=["src"],We={setup(p){const m=he(),i=Be(),N=xe(),W=Ie(),{t:h}=ve(),l=B(null),I=fe(),E=B(!1),k=B(!1),v=B(null),S=B(1),j=B(1),U=B(null),t=pe({orderBy:null,orderByField:null,searchText:null}),Y=F(()=>l.value.invoice_number),R=F(()=>t.orderBy==="asc"||t.orderBy==null);F(()=>R.value?h("general.ascending"):h("general.descending"));const K=F(()=>`/invoices/pdf/${l.value.unique_hash}`);F(()=>l.value&&l.value.id?invoice.value.id:null),_e(I,(e,r)=>{e.name==="invoices.view"&&H()});async function Q(){W.openDialog({title:h("general.are_you_sure"),message:h("invoices.invoice_mark_as_sent"),yesLabel:h("general.ok"),noLabel:h("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(async e=>{E.value=!1,e&&(await i.markAsSent({id:l.value.id,status:"SENT"}),l.value.status="SENT",E.value=!0),E.value=!1})}async function X(e){m.openModal({title:h("invoices.send_invoice"),componentName:"SendInvoiceModal",id:l.value.id,data:l.value})}function Z(e){return I.params.id==e}async function w(e,r=!1){if(k.value)return;let f={};t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(f.search=t.searchText),t.orderBy!==null&&t.orderBy!==void 0&&(f.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(f.orderByField=t.orderByField),k.value=!0;let T=await i.fetchInvoices(z({page:e},f));k.value=!1,v.value=v.value?v.value:[],v.value=[...v.value,...T.data.data],S.value=e||1,j.value=T.data.meta.last_page;let $=v.value.find(x=>x.id==I.params.id);r==!1&&!$&&S.value{r==!1&&ee()},500)}function ee(){const e=document.getElementById(`invoice-${I.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"),te())}function te(){U.value.addEventListener("scroll",e=>{e.target.scrollTop>0&&e.target.scrollTop+e.target.clientHeight>e.target.scrollHeight-200&&S.valuer.id===l.value.id);v.value[e]&&(v.value[e].status="SENT",l.value.status="SENT")}return w(),H(),_=ye.exports.debounce(_,500),(e,r)=>{const f=d("BaseButton"),T=d("router-link"),$=d("BasePageHeader"),x=d("BaseIcon"),oe=d("BaseInput"),A=d("BaseRadio"),L=d("BaseInputGroup"),C=d("BaseDropdownItem"),le=d("BaseDropdown"),ne=d("BaseText"),re=d("BaseEstimateStatusBadge"),ie=d("BaseFormatMoney"),de=d("BasePage");return c(),V(J,null,[s(ke,{onUpdate:se}),l.value?(c(),y(de,{key:0,class:"xl:pl-96 xl:ml-8"},{default:o(()=>{var O;return[s($,{title:n(Y)},{actions:o(()=>[u("div",Te,[l.value.status==="DRAFT"&&n(N).hasAbilities(n(P).EDIT_INVOICE)?(c(),y(f,{key:0,disabled:E.value,variant:"primary-outline",onClick:Q},{default:o(()=>[D(g(e.$t("invoices.mark_as_sent")),1)]),_:1},8,["disabled"])):b("",!0)]),l.value.status==="DRAFT"&&n(N).hasAbilities(n(P).SEND_INVOICE)?(c(),y(f,{key:0,variant:"primary",class:"text-sm",onClick:X},{default:o(()=>[D(g(e.$t("invoices.send_invoice")),1)]),_:1})):b("",!0),n(N).hasAbilities(n(P).CREATE_PAYMENT)?(c(),y(T,{key:1,to:`/admin/payments/${e.$route.params.id}/create`},{default:o(()=>[l.value.status==="SENT"||l.value.status==="VIEWED"?(c(),y(f,{key:0,variant:"primary"},{default:o(()=>[D(g(e.$t("invoices.record_payment")),1)]),_:1})):b("",!0)]),_:1},8,["to"])):b("",!0),s(Se,{class:"ml-3",row:l.value,"load-data":w},null,8,["row"])]),_:1},8,["title"]),u("div",Fe,[u("div",Ve,[u("div",Ee,[s(oe,{modelValue:n(t).searchText,"onUpdate:modelValue":r[0]||(r[0]=a=>n(t).searchText=a),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:r[1]||(r[1]=a=>_())},{right:o(()=>[s(x,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",$e,[s(le,{class:"ml-3",position:"bottom-start"},{activator:o(()=>[s(f,{size:"md",variant:"gray"},{default:o(()=>[s(x,{name:"FilterIcon"})]),_:1})]),default:o(()=>[u("div",De,g(e.$t("general.sort_by")),1),s(C,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[s(L,{class:"-mt-3 font-normal"},{default:o(()=>[s(A,{id:"filter_invoice_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[r[2]||(r[2]=a=>n(t).orderByField=a),_],label:e.$t("reports.invoices.invoice_date"),size:"sm",name:"filter",value:"invoice_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(C,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[s(L,{class:"-mt-3 font-normal"},{default:o(()=>[s(A,{id:"filter_due_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[r[3]||(r[3]=a=>n(t).orderByField=a),_],label:e.$t("invoices.due_date"),value:"due_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(C,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[s(L,{class:"-mt-3 font-normal"},{default:o(()=>[s(A,{id:"filter_invoice_number",modelValue:n(t).orderByField,"onUpdate:modelValue":[r[4]||(r[4]=a=>n(t).orderByField=a),_],label:e.$t("invoices.invoice_number"),value:"invoice_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),s(f,{class:"ml-1",size:"md",variant:"gray",onClick:ae},{default:o(()=>[n(R)?(c(),y(x,{key:0,name:"SortAscendingIcon"})):(c(),y(x,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),u("div",{ref:(a,M)=>{M.invoiceListSection=a,U.value=a},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},[(c(!0),V(J,null,ge(v.value,(a,M)=>(c(),V("div",{key:M},[a?(c(),y(T,{key:0,id:"invoice-"+a.id,to:`/admin/invoices/${a.id}/view`,class:be(["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":Z(a.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[u("div",Ne,[s(ne,{text:a.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(a.invoice_number),1),s(re,{status:a.status,class:"px-1 text-xs"},{default:o(()=>[D(g(a.status),1)]),_:2},1032,["status"])]),u("div",Ae,[s(ie,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:a.total,currency:a.customer.currency},null,8,["amount","currency"]),u("div",Le,g(a.formatted_invoice_date),1)])]),_:2},1032,["id","to","class"])):b("",!0)]))),128)),k.value?(c(),V("div",Ce,[s(we,{class:"h-6 m-1 animate-spin text-primary-400"})])):b("",!0),!((O=v.value)==null?void 0:O.length)&&!k.value?(c(),V("p",Me,g(e.$t("invoices.no_matching_invoices")),1)):b("",!0)],512)]),u("div",ze,[u("iframe",{src:`${n(K)}`,class:"flex-1 border border-gray-400 border-solid bg-white rounded-md frame-style"},null,8,Pe)])]}),_:1})):b("",!0)],64)}}};export{We as default}; +var ce=Object.defineProperty;var G=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var q=(p,m,i)=>m in p?ce(p,m,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[m]=i,z=(p,m)=>{for(var i in m||(m={}))ue.call(m,i)&&q(p,i,m[i]);if(G)for(var i of G(m))me.call(m,i)&&q(p,i,m[i]);return p};import{J as ve,B,G as fe,a0 as pe,k as F,C as _e,A as ye,r as d,o as c,e as V,f as s,l as y,w as o,h as u,u as n,i as D,t as g,j as b,F as J,y as ge,m as be}from"./vendor.d12b5734.js";import{c as he,i as Be,e as xe,j as Ie,g as P}from"./main.c7bd6c0e.js";import{_ as ke}from"./SendInvoiceModal.df7ecbe5.js";import{_ as Se}from"./InvoiceIndexDropdown.174ed624.js";import{L as we}from"./LoadingIcon.58a27e40.js";import"./mail-driver.b57a1b96.js";const Te={class:"text-sm mr-3"},Fe={class:"fixed top-0 left-0 hidden h-full pt-16 pb-[6.4rem] ml-56 bg-white xl:ml-64 w-88 xl:block"},Ve={class:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},Ee={class:"mb-6"},$e={class:"flex mb-6 ml-3",role:"group","aria-label":"First group"},De={class:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},Ne={class:"flex-2"},je={class:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},Ae={class:"flex-1 whitespace-nowrap right"},Le={class:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},Ce={key:0,class:"flex justify-center p-4 items-center"},Me={key:1,class:"flex justify-center px-4 mt-5 text-sm text-gray-600"},ze={class:"flex flex-col min-h-0 mt-8 overflow-hidden",style:{height:"75vh"}},Pe=["src"],We={setup(p){const m=he(),i=Be(),N=xe(),W=Ie(),{t:h}=ve(),l=B(null),I=fe(),E=B(!1),k=B(!1),v=B(null),S=B(1),j=B(1),U=B(null),t=pe({orderBy:null,orderByField:null,searchText:null}),Y=F(()=>l.value.invoice_number),R=F(()=>t.orderBy==="asc"||t.orderBy==null);F(()=>R.value?h("general.ascending"):h("general.descending"));const K=F(()=>`/invoices/pdf/${l.value.unique_hash}`);F(()=>l.value&&l.value.id?invoice.value.id:null),_e(I,(e,r)=>{e.name==="invoices.view"&&H()});async function Q(){W.openDialog({title:h("general.are_you_sure"),message:h("invoices.invoice_mark_as_sent"),yesLabel:h("general.ok"),noLabel:h("general.cancel"),variant:"primary",hideNoButton:!1,size:"lg"}).then(async e=>{E.value=!1,e&&(await i.markAsSent({id:l.value.id,status:"SENT"}),l.value.status="SENT",E.value=!0),E.value=!1})}async function X(e){m.openModal({title:h("invoices.send_invoice"),componentName:"SendInvoiceModal",id:l.value.id,data:l.value})}function Z(e){return I.params.id==e}async function w(e,r=!1){if(k.value)return;let f={};t.searchText!==""&&t.searchText!==null&&t.searchText!==void 0&&(f.search=t.searchText),t.orderBy!==null&&t.orderBy!==void 0&&(f.orderBy=t.orderBy),t.orderByField!==null&&t.orderByField!==void 0&&(f.orderByField=t.orderByField),k.value=!0;let T=await i.fetchInvoices(z({page:e},f));k.value=!1,v.value=v.value?v.value:[],v.value=[...v.value,...T.data.data],S.value=e||1,j.value=T.data.meta.last_page;let $=v.value.find(x=>x.id==I.params.id);r==!1&&!$&&S.value{r==!1&&ee()},500)}function ee(){const e=document.getElementById(`invoice-${I.params.id}`);e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"),te())}function te(){U.value.addEventListener("scroll",e=>{e.target.scrollTop>0&&e.target.scrollTop+e.target.clientHeight>e.target.scrollHeight-200&&S.valuer.id===l.value.id);v.value[e]&&(v.value[e].status="SENT",l.value.status="SENT")}return w(),H(),_=ye.exports.debounce(_,500),(e,r)=>{const f=d("BaseButton"),T=d("router-link"),$=d("BasePageHeader"),x=d("BaseIcon"),oe=d("BaseInput"),A=d("BaseRadio"),L=d("BaseInputGroup"),C=d("BaseDropdownItem"),le=d("BaseDropdown"),ne=d("BaseText"),re=d("BaseEstimateStatusBadge"),ie=d("BaseFormatMoney"),de=d("BasePage");return c(),V(J,null,[s(ke,{onUpdate:se}),l.value?(c(),y(de,{key:0,class:"xl:pl-96 xl:ml-8"},{default:o(()=>{var O;return[s($,{title:n(Y)},{actions:o(()=>[u("div",Te,[l.value.status==="DRAFT"&&n(N).hasAbilities(n(P).EDIT_INVOICE)?(c(),y(f,{key:0,disabled:E.value,variant:"primary-outline",onClick:Q},{default:o(()=>[D(g(e.$t("invoices.mark_as_sent")),1)]),_:1},8,["disabled"])):b("",!0)]),l.value.status==="DRAFT"&&n(N).hasAbilities(n(P).SEND_INVOICE)?(c(),y(f,{key:0,variant:"primary",class:"text-sm",onClick:X},{default:o(()=>[D(g(e.$t("invoices.send_invoice")),1)]),_:1})):b("",!0),n(N).hasAbilities(n(P).CREATE_PAYMENT)?(c(),y(T,{key:1,to:`/admin/payments/${e.$route.params.id}/create`},{default:o(()=>[l.value.status==="SENT"||l.value.status==="VIEWED"?(c(),y(f,{key:0,variant:"primary"},{default:o(()=>[D(g(e.$t("invoices.record_payment")),1)]),_:1})):b("",!0)]),_:1},8,["to"])):b("",!0),s(Se,{class:"ml-3",row:l.value,"load-data":w},null,8,["row"])]),_:1},8,["title"]),u("div",Fe,[u("div",Ve,[u("div",Ee,[s(oe,{modelValue:n(t).searchText,"onUpdate:modelValue":r[0]||(r[0]=a=>n(t).searchText=a),placeholder:e.$t("general.search"),type:"text",variant:"gray",onInput:r[1]||(r[1]=a=>_())},{right:o(()=>[s(x,{name:"SearchIcon",class:"h-5 text-gray-400"})]),_:1},8,["modelValue","placeholder"])]),u("div",$e,[s(le,{class:"ml-3",position:"bottom-start"},{activator:o(()=>[s(f,{size:"md",variant:"gray"},{default:o(()=>[s(x,{name:"FilterIcon"})]),_:1})]),default:o(()=>[u("div",De,g(e.$t("general.sort_by")),1),s(C,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[s(L,{class:"-mt-3 font-normal"},{default:o(()=>[s(A,{id:"filter_invoice_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[r[2]||(r[2]=a=>n(t).orderByField=a),_],label:e.$t("reports.invoices.invoice_date"),size:"sm",name:"filter",value:"invoice_date"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(C,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[s(L,{class:"-mt-3 font-normal"},{default:o(()=>[s(A,{id:"filter_due_date",modelValue:n(t).orderByField,"onUpdate:modelValue":[r[3]||(r[3]=a=>n(t).orderByField=a),_],label:e.$t("invoices.due_date"),value:"due_date",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1}),s(C,{class:"flex px-1 py-2 cursor-pointer"},{default:o(()=>[s(L,{class:"-mt-3 font-normal"},{default:o(()=>[s(A,{id:"filter_invoice_number",modelValue:n(t).orderByField,"onUpdate:modelValue":[r[4]||(r[4]=a=>n(t).orderByField=a),_],label:e.$t("invoices.invoice_number"),value:"invoice_number",size:"sm",name:"filter"},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1}),s(f,{class:"ml-1",size:"md",variant:"gray",onClick:ae},{default:o(()=>[n(R)?(c(),y(x,{key:0,name:"SortAscendingIcon"})):(c(),y(x,{key:1,name:"SortDescendingIcon"}))]),_:1})])]),u("div",{ref:(a,M)=>{M.invoiceListSection=a,U.value=a},class:"h-full overflow-y-scroll border-l border-gray-200 border-solid base-scroll"},[(c(!0),V(J,null,ge(v.value,(a,M)=>(c(),V("div",{key:M},[a?(c(),y(T,{key:0,id:"invoice-"+a.id,to:`/admin/invoices/${a.id}/view`,class:be(["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":Z(a.id)}]),style:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"}},{default:o(()=>[u("div",Ne,[s(ne,{text:a.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(a.invoice_number),1),s(re,{status:a.status,class:"px-1 text-xs"},{default:o(()=>[D(g(a.status),1)]),_:2},1032,["status"])]),u("div",Ae,[s(ie,{class:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900 block",amount:a.total,currency:a.customer.currency},null,8,["amount","currency"]),u("div",Le,g(a.formatted_invoice_date),1)])]),_:2},1032,["id","to","class"])):b("",!0)]))),128)),k.value?(c(),V("div",Ce,[s(we,{class:"h-6 m-1 animate-spin text-primary-400"})])):b("",!0),!((O=v.value)==null?void 0:O.length)&&!k.value?(c(),V("p",Me,g(e.$t("invoices.no_matching_invoices")),1)):b("",!0)],512)]),u("div",ze,[u("iframe",{src:`${n(K)}`,class:"flex-1 border border-gray-400 border-solid bg-white rounded-md frame-style"},null,8,Pe)])]}),_:1})):b("",!0)],64)}}};export{We as default}; diff --git a/public/build/assets/View.30540927.js b/public/build/assets/View.e87ed933.js similarity index 97% rename from public/build/assets/View.30540927.js rename to public/build/assets/View.e87ed933.js index 819dff41a..8e11e2c22 100644 --- a/public/build/assets/View.30540927.js +++ b/public/build/assets/View.e87ed933.js @@ -1 +1 @@ -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.d12b5734.js";import{u as oe,w as S,x as ae}from"./main.6ceeb72d.js";import{u as se}from"./invoice.90614bc9.js";import{u as ne}from"./global.db0572f0.js";import"./auth.974620c9.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}; +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.d12b5734.js";import{u as oe,w as S,x as ae}from"./main.c7bd6c0e.js";import{u as se}from"./invoice.fba53e83.js";import{u as ne}from"./global.1ac91de5.js";import"./auth.a07e0850.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}; diff --git a/public/build/assets/View.22824636.js b/public/build/assets/View.fbd1288c.js similarity index 99% rename from public/build/assets/View.22824636.js rename to public/build/assets/View.fbd1288c.js index c02707e07..3cfbd85f3 100644 --- a/public/build/assets/View.22824636.js +++ b/public/build/assets/View.fbd1288c.js @@ -1,2 +1,2 @@ -import{_ as fe,d as ve,r as ye,u as be,j as xe}from"./main.6ceeb72d.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 w,a0 as D,I as te,u as t,e as d,m as b,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 O,aC as Ce,az as J,aD as Pe,a as Te}from"./vendor.d12b5734.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,V){const m=p("BaseContentPlaceholdersText"),B=p("BaseContentPlaceholdersBox"),K=p("BasePage"),I=p("BaseContentPlaceholders");return o(),g(I,{rounded:""},{default:u(()=>[n(K,{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(),(V,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(V.$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 V=ve(),m=ye(),B=be(),K=xe(),I=we(),{t:f}=ee();let x=_(!1),z=_(!0),S=_(""),P=_(!1),T=_(!1);_(!1),W(),ke(()=>I.params.slug,async s=>{W()});const l=w(()=>m.currentModule.data),N=w(()=>{var M,v;let s=[],i=D({name:f("modules.monthly"),price:((M=l==null?void 0:l.value)==null?void 0:M.monthly_price)/100}),c=D({name:f("modules.yearly"),price:((v=l==null?void 0:l.value)==null?void 0:v.yearly_price)/100});return le.value?s.push(c):ae.value?s.push(i):(s.push(i),s.push(c)),s}),le=w(()=>l.value?l.value.type==="YEARLY":!1),ae=w(()=>l.value?l.value.type==="MONTHLY":!1),oe=w(()=>!!(l.value.installed&&l.value.latest_module_version)),q=w(()=>m.currentModule.meta.modules);let ne=w(()=>{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=w(()=>{let s=_(l.value.latest_module_version),i=_(l.value.installed_module_version);return i.value?i.value:s.value}),ie=w(()=>parseInt(l.value.average_rating));const de=w(()=>{let s=D([]),i=D({id:null,url:l.value.cover});return s.push(i),l.value.screenshots&&l.value.screenshots.forEach(c=>{s.push(c)}),s}),U=_(!1),E=_(null),G=_(null),A=_(N.value[0]),F=D([{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 Q(){let s=null;for(let i=0;i{location.reload()},1500))}catch{return x.value=!1,c.started=!1,c.completed=!0,!1}}}function ue(s){let i=_("");switch(s){case"module_not_found":i=f("modules.module_not_found");break;case"module_not_purchased":i=f("modules.module_not_purchased");break;case"version_not_supported":i=f("modules.version_not_supported");break;default:i=s;break}return i}async function W(){!I.params.slug||(z.value=!0,await m.fetchModule(I.params.slug).then(s=>{if(A.value=N.value[0],G.value=l.value.video_link,E.value=l.value.video_thumbnail,G.value){Z(),z.value=!1;return}S.value=l.value.cover,z.value=!1}))}function ce(s){switch(X(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(){K.openDialog({title:f("general.are_you_sure"),message:f("modules.disable_warning"),yesLabel:f("general.ok"),noLabel:f("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 X(s){return s.started&&s.completed?"finished":s.started&&!s.completed?"running":!s.started&&!s.completed?"pending":"error"}function pe(s){U.value=!1,S.value=s}function Z(){U.value=!0,S.value=null}return(s,i)=>{const c=p("BaseBreadcrumbItem"),M=p("BaseBreadcrumb"),v=p("BasePageHeader"),L=p("BaseRating"),R=p("BaseIcon"),Y=p("BaseButton"),ge=p("BasePage");return t(z)?(o(),g(Ee,{key:0})):(o(),g(ge,{key:1,class:"bg-white"},{default:u(()=>[n(v,{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,[E.value&&G.value?(o(),d("button",{key:0,class:b(["relative md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":U.value}]),type:"button",onClick:Z},[e("span",rt,[e("img",{src:E.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,y)=>(o(),d("button",{id:"tabs-1-tab-1",key:y,class:b(["relative md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":t(S)===a.url}]),type:"button",onClick:H=>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))])]),U.value?(o(),d("div",pt,[e("iframe",{src:G.value,class:"sm:rounded-lg",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},` +import{_ as fe,d as ve,r as ye,u as be,j as xe}from"./main.c7bd6c0e.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 w,a0 as D,I as te,u as t,e as d,m as b,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 O,aC as Ce,az as J,aD as Pe,a as Te}from"./vendor.d12b5734.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,V){const m=p("BaseContentPlaceholdersText"),B=p("BaseContentPlaceholdersBox"),K=p("BasePage"),I=p("BaseContentPlaceholders");return o(),g(I,{rounded:""},{default:u(()=>[n(K,{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(),(V,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(V.$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 V=ve(),m=ye(),B=be(),K=xe(),I=we(),{t:f}=ee();let x=_(!1),z=_(!0),S=_(""),P=_(!1),T=_(!1);_(!1),W(),ke(()=>I.params.slug,async s=>{W()});const l=w(()=>m.currentModule.data),N=w(()=>{var M,v;let s=[],i=D({name:f("modules.monthly"),price:((M=l==null?void 0:l.value)==null?void 0:M.monthly_price)/100}),c=D({name:f("modules.yearly"),price:((v=l==null?void 0:l.value)==null?void 0:v.yearly_price)/100});return le.value?s.push(c):ae.value?s.push(i):(s.push(i),s.push(c)),s}),le=w(()=>l.value?l.value.type==="YEARLY":!1),ae=w(()=>l.value?l.value.type==="MONTHLY":!1),oe=w(()=>!!(l.value.installed&&l.value.latest_module_version)),q=w(()=>m.currentModule.meta.modules);let ne=w(()=>{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=w(()=>{let s=_(l.value.latest_module_version),i=_(l.value.installed_module_version);return i.value?i.value:s.value}),ie=w(()=>parseInt(l.value.average_rating));const de=w(()=>{let s=D([]),i=D({id:null,url:l.value.cover});return s.push(i),l.value.screenshots&&l.value.screenshots.forEach(c=>{s.push(c)}),s}),U=_(!1),E=_(null),G=_(null),A=_(N.value[0]),F=D([{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 Q(){let s=null;for(let i=0;i{location.reload()},1500))}catch{return x.value=!1,c.started=!1,c.completed=!0,!1}}}function ue(s){let i=_("");switch(s){case"module_not_found":i=f("modules.module_not_found");break;case"module_not_purchased":i=f("modules.module_not_purchased");break;case"version_not_supported":i=f("modules.version_not_supported");break;default:i=s;break}return i}async function W(){!I.params.slug||(z.value=!0,await m.fetchModule(I.params.slug).then(s=>{if(A.value=N.value[0],G.value=l.value.video_link,E.value=l.value.video_thumbnail,G.value){Z(),z.value=!1;return}S.value=l.value.cover,z.value=!1}))}function ce(s){switch(X(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(){K.openDialog({title:f("general.are_you_sure"),message:f("modules.disable_warning"),yesLabel:f("general.ok"),noLabel:f("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 X(s){return s.started&&s.completed?"finished":s.started&&!s.completed?"running":!s.started&&!s.completed?"pending":"error"}function pe(s){U.value=!1,S.value=s}function Z(){U.value=!0,S.value=null}return(s,i)=>{const c=p("BaseBreadcrumbItem"),M=p("BaseBreadcrumb"),v=p("BasePageHeader"),L=p("BaseRating"),R=p("BaseIcon"),Y=p("BaseButton"),ge=p("BasePage");return t(z)?(o(),g(Ee,{key:0})):(o(),g(ge,{key:1,class:"bg-white"},{default:u(()=>[n(v,{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,[E.value&&G.value?(o(),d("button",{key:0,class:b(["relative md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":U.value}]),type:"button",onClick:Z},[e("span",rt,[e("img",{src:E.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,y)=>(o(),d("button",{id:"tabs-1-tab-1",key:y,class:b(["relative md:h-24 lg:h-36 rounded hover:bg-gray-50",{"outline-none ring ring-offset-1 ring-primary-500":t(S)===a.url}]),type:"button",onClick:H=>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))])]),U.value?(o(),d("div",pt,[e("iframe",{src:G.value,class:"sm:rounded-lg",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},` `,8,gt)])):(o(),d("div",ht,[e("img",{src:t(S),alt:"Module Images",class:"w-full h-full object-center object-cover sm:rounded-lg"},null,8,ft)]))])]),e("div",vt,[yt,e("div",bt,[n(L,{rating:t(ie)},null,8,["rating"])]),xt,e("div",wt,[e("div",kt,[e("h1",$t,r(t(l).name),1),Bt,t(l).latest_module_version?(o(),d("p",Mt,r(s.$t("modules.version"))+" "+r(t(re))+" ("+r(s.$t("modules.last_updated"))+" "+r(t(ne))+") ",1)):h("",!0)])]),e("div",{class:"prose prose-sm max-w-none text-gray-500 text-sm my-10",innerHTML:t(l).long_description},null,8,jt),t(l).purchased?h("",!0):(o(),d("div",Ct,[n(t(Me),{modelValue:A.value,"onUpdate:modelValue":i[0]||(i[0]=a=>A.value=a)},{default:u(()=>[n(t(se),{class:"sr-only"},{default:u(()=>[Pt]),_:1}),e("div",Tt,[(o(!0),d($,null,j(t(N),(a,y)=>(o(),g(t($e),{key:a.name,as:"template",value:a},{default:u(({checked:H,active:he})=>[e("div",{class:b([y===0?"rounded-tl-md rounded-tr-md":"",y===t(N).length-1?"rounded-bl-md rounded-br-md":"",H?"bg-primary-50 border-primary-200 z-10":"border-gray-200","relative border p-4 flex flex-col cursor-pointer md:pl-4 md:pr-6 md:grid md:grid-cols-2 focus:outline-none"])},[e("div",Lt,[e("span",{class:b([H?"bg-primary-600 border-transparent":"bg-white border-gray-300",he?"ring-2 ring-offset-2 ring-primary-500":"","h-4 w-4 rounded-full border flex items-center justify-center"]),"aria-hidden":"true"},St,2),n(t(se),{as:"span",class:b([H?"text-primary-900":"text-gray-900","ml-3 font-medium"])},{default:u(()=>[k(r(a.name),1)]),_:2},1032,["class"])]),n(t(Be),{class:"ml-6 pl-1 text-base md:ml-0 md:pl-0 md:text-center"},{default:u(()=>[e("span",{class:b([H?"text-primary-900":"text-gray-900","font-medium"])}," $ "+r(a.price),3)]),_:2},1024)],2)]),_:2},1032,["value"]))),128))])]),_:1},8,["modelValue"])])),t(l).purchased?(o(),d("div",Yt,[t(l).installed?t(oe)?(o(),d("div",Dt,[e("div",Vt,[t(l).update_available?(o(),g(Y,{key:0,variant:"primary",size:"xl",loading:t(x),disabled:t(x),class:"mr-4 flex items-center justify-center text-base",onClick:i[2]||(i[2]=a=>Q())},{default:u(()=>[k(r(s.$t("modules.update_to"))+" ",1),e("span",zt,r(t(l).latest_module_version),1)]),_:1},8,["loading","disabled"])):h("",!0),t(l).enabled?(o(),g(Y,{key:1,variant:"danger",size:"xl",loading:t(T),disabled:t(T),class:"mr-4 flex items-center justify-center text-base",onClick:me},{default:u(()=>[t(T)?h("",!0):(o(),g(R,{key:0,name:"BanIcon",class:"mr-2"})),k(" "+r(s.$t("modules.disable")),1)]),_:1},8,["loading","disabled"])):(o(),g(Y,{key:2,variant:"primary-outline",size:"xl",loading:t(P),disabled:t(P),class:"mr-4 flex items-center justify-center text-base",onClick:_e},{default:u(()=>[t(P)?h("",!0):(o(),g(R,{key:0,name:"CheckIcon",class:"mr-2"})),k(" "+r(s.$t("modules.enable")),1)]),_:1},8,["loading","disabled"]))])])):h("",!0):(o(),d("div",Ht,[t(l).latest_module_version?(o(),g(Y,{key:0,size:"xl",variant:"primary-outline",outline:"",loading:t(x),disabled:t(x),class:"mr-4 flex items-center justify-center text-base",onClick:i[1]||(i[1]=a=>Q())},{default:u(()=>[t(x)?h("",!0):(o(),g(R,{key:0,name:"DownloadIcon",class:"mr-2"})),k(" "+r(s.$t("modules.install")),1)]),_:1},8,["loading","disabled"])):h("",!0)]))])):(o(),d("a",{key:1,href:`${t(V).config.base_url}/modules/${t(l).slug}`,target:"_blank",class:"grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2"},[n(Y,{size:"xl",class:"items-center flex justify-center text-base mt-10"},{default:u(()=>[n(R,{name:"ShoppingCartIcon",class:"mr-2"}),k(" "+r(s.$t("modules.buy_now")),1)]),_:1})],8,Rt)),Nt,e("div",Ut,[e("h3",Gt,r(s.$t("modules.what_you_get")),1),e("div",Kt,[e("div",{class:"prose prose-sm max-w-none text-gray-500 text-sm",innerHTML:t(l).highlights},null,8,qt)])]),e("div",Et,[(o(!0),d($,null,j(t(l).links,(a,y)=>(o(),d("div",{key:y,class:"mb-4 last:mb-0 flex"},[n(R,{name:a.icon,class:"mr-4"},null,8,["name"]),e("a",{href:a.link,class:"text-primary-500",target:"_blank"},r(a.label),9,At)]))),128))]),t(x)?(o(),d("div",Ft,[e("ul",Ot,[(o(!0),d($,null,j(t(F),a=>(o(),d("li",{key:a.stepUrl,class:"flex justify-between w-full py-3 border-b border-gray-200 border-solid last:border-b-0"},[e("p",Jt,r(s.$t(a.translationKey)),1),e("div",Qt,[a.time?(o(),d("span",Wt,r(a.time),1)):h("",!0),e("span",{class:b([ce(a),"block py-1 text-sm text-center uppercase rounded-full"]),style:{width:"88px"}},r(X(a)),3)])]))),128))])])):h("",!0)]),e("div",Xt,[n(t(Pe),{as:"div"},{default:u(()=>[n(t(je),{class:"-mb-px flex space-x-8 border-b border-gray-200"},{default:u(()=>[n(t(O),{as:"template"},{default:u(({selected:a})=>[e("button",{class:b([a?"border-primary-600 text-primary-600":"border-transparent text-gray-700 hover:text-gray-800 hover:border-gray-300","whitespace-nowrap py-6 border-b-2 font-medium text-sm"])},r(s.$t("modules.customer_reviews")),3)]),_:1}),n(t(O),{as:"template"},{default:u(({selected:a})=>[e("button",{class:b([a?"border-primary-600 text-primary-600":"border-transparent text-gray-700 hover:text-gray-800 hover:border-gray-300","whitespace-nowrap py-6 border-b-2 font-medium text-sm"])},r(s.$t("modules.faq")),3)]),_:1}),n(t(O),{as:"template"},{default:u(({selected:a})=>[e("button",{class:b([a?"border-primary-600 text-primary-600":"border-transparent text-gray-700 hover:text-gray-800 hover:border-gray-300","whitespace-nowrap py-6 border-b-2 font-medium text-sm"])},r(s.$t("modules.license")),3)]),_:1})]),_:1}),n(t(Ce),{as:"template"},{default:u(()=>[n(t(J),{class:"-mb-10"},{default:u(()=>[Zt,t(l).reviews.length?(o(),d("div",es,[(o(!0),d($,null,j(t(l).reviews,(a,y)=>(o(),d("div",{key:y,class:"flex text-sm text-gray-500 space-x-4"},[e("div",ts,[e("span",ss,[e("span",ls,r(a.customer.name[0]),1)])]),e("div",{class:b([y===0?"":"border-t border-gray-200","py-10"])},[e("h3",as,r(a.customer.name),1),e("p",null,r(t(te)(a.created_at).format("MMMM Do YYYY")),1),e("div",os,[n(L,{rating:a.rating},null,8,["rating"])]),e("div",{class:"mt-4 prose prose-sm max-w-none text-gray-500",innerHTML:a.feedback},null,8,ns)],2)]))),128))])):(o(),d("div",rs,[e("p",is,r(s.$t("modules.no_reviews_found")),1)]))]),_:1}),n(t(J),{as:"dl",class:"text-sm text-gray-500"},{default:u(()=>[ds,(o(!0),d($,null,j(t(l).faq,a=>(o(),d($,{key:a.question},[e("dt",us,r(a.question),1),e("dd",cs,[e("p",null,r(a.answer),1)])],64))),128))]),_:1}),n(t(J),{class:"pt-10"},{default:u(()=>[ms,e("div",{class:"prose prose-sm max-w-none text-gray-500",innerHTML:t(l).license},null,8,_s)]),_:1})]),_:1})]),_:1})])]),t(q)&&t(q).length?(o(),d("div",ps,[e("div",gs,[e("h2",hs,r(s.$t("modules.other_modules")),1),e("a",fs,[k(r(s.$t("modules.view_all")),1),vs])]),e("div",ys,[(o(!0),d($,null,j(t(q),(a,y)=>(o(),d("div",{key:y},[n(tt,{data:a},null,8,["data"])]))),128))])])):h("",!0),bs]),_:1}))}}};export{ks as default}; diff --git a/public/build/assets/auth.974620c9.js b/public/build/assets/auth.a07e0850.js similarity index 97% rename from public/build/assets/auth.974620c9.js rename to public/build/assets/auth.a07e0850.js index a3601f89e..6de8272ec 100644 --- a/public/build/assets/auth.974620c9.js +++ b/public/build/assets/auth.a07e0850.js @@ -1 +1 @@ -import{a as l}from"./vendor.d12b5734.js";import{u as n,v as m}from"./main.6ceeb72d.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&¬ificationStore.showNotification({type:"error",message:r.tm("validation.email_incorrect")}),s(o)})})},logout(e){return new Promise((t,a)=>{l.post(`/${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 l}from"./vendor.d12b5734.js";import{u as n,v as m}from"./main.c7bd6c0e.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&¬ificationStore.showNotification({type:"error",message:r.tm("validation.email_incorrect")}),s(o)})})},logout(e){return new Promise((t,a)=>{l.post(`/${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}; diff --git a/public/build/assets/category.1184b061.js b/public/build/assets/category.970a47d6.js similarity index 79% rename from public/build/assets/category.1184b061.js rename to public/build/assets/category.970a47d6.js index 96e9d85cf..1d3474dda 100644 --- a/public/build/assets/category.1184b061.js +++ b/public/build/assets/category.970a47d6.js @@ -1 +1 @@ -import{a as o,d as f}from"./vendor.d12b5734.js";import{h as s,u as c}from"./main.6ceeb72d.js";const l=(g=!1)=>{const h=g?window.pinia.defineStore:f,{global:n}=window.i18n;return h({id:"category",state:()=>({categories:[],currentCategory:{id:null,name:"",description:""},editCategory:null}),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),c().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 r=this.categories.findIndex(u=>u.id===e.data.data.id);this.categories[r]=t.categories,c().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),c().showNotification({type:"success",message:n.t("settings.expense_category.deleted_message")}),a(i)}).catch(i=>{s(i),console.error(i)})})}}})()};export{l as u}; +import{a as o,d as f}from"./vendor.d12b5734.js";import{h as s,u as r}from"./main.c7bd6c0e.js";const l=(g=!1)=>{const h=g?window.pinia.defineStore:f,{global:n}=window.i18n;return h({id:"category",state:()=>({categories:[],currentCategory:{id:null,name:"",description:""},editCategory:null}),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{l as u}; diff --git a/public/build/assets/disk.40fc971f.js b/public/build/assets/disk.40fc971f.js new file mode 100644 index 000000000..43e16d20c --- /dev/null +++ b/public/build/assets/disk.40fc971f.js @@ -0,0 +1 @@ +import{a as o,d as l}from"./vendor.d12b5734.js";import{h as a,u as r}from"./main.c7bd6c0e.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)=>{o.get(`/api/v1/disks/${t.disk}`).then(i=>{s(i)}).catch(i=>{a(i),e(i)})})},fetchDisks(t){return new Promise((s,e)=>{o.get("/api/v1/disks",{params:t}).then(i=>{this.disks=i.data.data,s(i)}).catch(i=>{a(i),e(i)})})},fetchDiskDrivers(){return new Promise((t,s)=>{o.get("/api/v1/disk/drivers").then(e=>{this.diskConfigData=e.data,this.diskDrivers=e.data.drivers,t(e)}).catch(e=>{a(e),s(e)})})},deleteFileDisk(t){return new Promise((s,e)=>{o.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=>{a(i),e(i)})})},updateDisk(t){return new Promise((s,e)=>{o.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=>{a(i),e(i)})})},createDisk(t){return new Promise((s,e)=>{o.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=>{a(i),e(i)})})}}})()};export{v as u}; diff --git a/public/build/assets/disk.e54e2880.js b/public/build/assets/disk.e54e2880.js deleted file mode 100644 index 5b613788b..000000000 --- a/public/build/assets/disk.e54e2880.js +++ /dev/null @@ -1 +0,0 @@ -import{a as o,d as l}from"./vendor.d12b5734.js";import{h as a,u as r}from"./main.6ceeb72d.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:e=>e.diskDrivers},actions:{fetchDiskEnv(e){return new Promise((s,t)=>{o.get(`/api/v1/disks/${e.disk}`).then(i=>{s(i)}).catch(i=>{a(i),t(i)})})},fetchDisks(e){return new Promise((s,t)=>{o.get("/api/v1/disks",{params:e}).then(i=>{this.disks=i.data.data,s(i)}).catch(i=>{a(i),t(i)})})},fetchDiskDrivers(){return new Promise((e,s)=>{o.get("/api/v1/disk/drivers").then(t=>{this.diskConfigData=t.data,this.diskDrivers=t.data.drivers,e(t)}).catch(t=>{a(t),s(t)})})},deleteFileDisk(e){return new Promise((s,t)=>{o.delete(`/api/v1/disks/${e}`).then(i=>{if(i.data.success){let d=this.disks.findIndex(c=>c.id===e);this.disks.splice(d,1),r().showNotification({type:"success",message:n.t("settings.disk.deleted_message")})}s(i)}).catch(i=>{a(i),t(i)})})},updateDisk(e){return new Promise((s,t)=>{o.put(`/api/v1/disks/${e.id}`,e).then(i=>{if(i.data){let d=this.disks.findIndex(c=>c.id===i.data.data);this.disks[d]=e.disks,r().showNotification({type:"success",message:n.t("settings.disk.success_set_default_disk")})}s(i)}).catch(i=>{a(i),t(i)})})},createDisk(e){return new Promise((s,t)=>{o.post("/api/v1/disks",e).then(i=>{i.data&&r().showNotification({type:"success",message:n.t("settings.disk.success_create")}),this.disks.push(i.data),s(i)}).catch(i=>{a(i),t(i)})})}}})()};export{v as u}; diff --git a/public/build/assets/estimate.b80e2b77.js b/public/build/assets/estimate.c2ce8e7a.js similarity index 91% rename from public/build/assets/estimate.b80e2b77.js rename to public/build/assets/estimate.c2ce8e7a.js index 7ebed4643..3e74d3cd5 100644 --- a/public/build/assets/estimate.b80e2b77.js +++ b/public/build/assets/estimate.c2ce8e7a.js @@ -1 +1 @@ -import{u as h}from"./main.6ceeb72d.js";import{a as n}from"./vendor.d12b5734.js";import{h as r}from"./auth.974620c9.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{u as h}from"./main.c7bd6c0e.js";import{a as n}from"./vendor.d12b5734.js";import{h as r}from"./auth.a07e0850.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}; diff --git a/public/build/assets/exchange-rate.28527a8e.js b/public/build/assets/exchange-rate.70a72e5f.js similarity index 97% rename from public/build/assets/exchange-rate.28527a8e.js rename to public/build/assets/exchange-rate.70a72e5f.js index 2b6e1179b..fdc9e82be 100644 --- a/public/build/assets/exchange-rate.28527a8e.js +++ b/public/build/assets/exchange-rate.70a72e5f.js @@ -1 +1 @@ -import{a as i,d as g}from"./vendor.d12b5734.js";import{h as c,u as v}from"./main.6ceeb72d.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}; +import{a as i,d as g}from"./vendor.d12b5734.js";import{h as c,u as v}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/expense.c4c3f409.js b/public/build/assets/expense.190eb9e9.js similarity index 98% rename from public/build/assets/expense.c4c3f409.js rename to public/build/assets/expense.190eb9e9.js index 4c48f2c90..b67d49569 100644 --- a/public/build/assets/expense.c4c3f409.js +++ b/public/build/assets/expense.190eb9e9.js @@ -1 +1 @@ -var w=Object.defineProperty;var u=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var f=(p,c,a)=>c in p?w(p,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[c]=a,x=(p,c)=>{for(var a in c||(c={}))y.call(c,a)&&f(p,a,c[a]);if(u)for(var a of u(c))F.call(c,a)&&f(p,a,c[a]);return p};import{I as S,a as d,d as v}from"./vendor.d12b5734.js";import{h as o,s as m,u as h}from"./main.6ceeb72d.js";var E={expense_category_id:null,expense_date:S().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 I=(p=!1)=>{const c=p?window.pinia.defineStore:v,{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((s,i)=>{d.get("/api/v1/expenses",{params:t}).then(e=>{this.expenses=e.data.data,this.totalExpenses=e.data.meta.expense_total_count,s(e)}).catch(e=>{o(e),i(e)})})},fetchExpense(t){return new Promise((s,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,this.currentExpense.attachment_receipt=null,e.data.data.attachment_receipt_url?m.isImageFile(e.data.data.attachment_receipt_meta.mime_type)?this.currentExpense.receiptFiles=[{image:`/reports/expenses/${t}/receipt?${e.data.data.attachment_receipt_meta.uuid}`}]:this.currentExpense.receiptFiles=[{type:"document",name:e.data.data.attachment_receipt_meta.file_name}]:this.currentExpense.receiptFiles=[]),s(e)}).catch(e=>{o(e),i(e)})})},addExpense(t){const s=m.toFormData(t);return new Promise((i,e)=>{d.post("/api/v1/expenses",s).then(n=>{this.expenses.push(n.data),h().showNotification({type:"success",message:a.t("expenses.created_message")}),i(n)}).catch(n=>{o(n),e(n)})})},updateExpense({id:t,data:s,isAttachmentReceiptRemoved:i}){const e=h(),n=m.toFormData(s);return n.append("_method","PUT"),n.append("is_attachment_receipt_removed",i),new Promise(l=>{d.post(`/api/v1/expenses/${t}`,n).then(r=>{let _=this.expenses.findIndex(g=>g.id===r.data.id);this.expenses[_]=s.expense,e.showNotification({type:"success",message:a.t("expenses.updated_message")}),l(r)})}).catch(l=>{o(l),reject(l)})},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 s=this.expenses.map(i=>i.id);this.selectedExpenses=s,this.selectAllField=!0}},deleteExpense(t){const s=h();return new Promise((i,e)=>{d.post("/api/v1/expenses/delete",t).then(n=>{let l=this.expenses.findIndex(r=>r.id===t);this.expenses.splice(l,1),s.showNotification({type:"success",message:a.tc("expenses.deleted_message",1)}),i(n)}).catch(n=>{o(n),e(n)})})},deleteMultipleExpenses(){const t=h();return new Promise((s,i)=>{d.post("/api/v1/expenses/delete",{ids:this.selectedExpenses}).then(e=>{this.selectedExpenses.forEach(n=>{let l=this.expenses.findIndex(r=>r.id===n.id);this.expenses.splice(l,1)}),t.showNotification({type:"success",message:a.tc("expenses.deleted_message",2)}),s(e)}).catch(e=>{o(e),i(e)})})},fetchPaymentModes(t){return new Promise((s,i)=>{d.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,s(e)}).catch(e=>{o(e),i(e)})})}}})()};export{I as u}; +var w=Object.defineProperty;var u=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var f=(p,c,a)=>c in p?w(p,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[c]=a,x=(p,c)=>{for(var a in c||(c={}))y.call(c,a)&&f(p,a,c[a]);if(u)for(var a of u(c))F.call(c,a)&&f(p,a,c[a]);return p};import{I as S,a as d,d as v}from"./vendor.d12b5734.js";import{h as o,s as m,u as h}from"./main.c7bd6c0e.js";var E={expense_category_id:null,expense_date:S().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 I=(p=!1)=>{const c=p?window.pinia.defineStore:v,{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((s,i)=>{d.get("/api/v1/expenses",{params:t}).then(e=>{this.expenses=e.data.data,this.totalExpenses=e.data.meta.expense_total_count,s(e)}).catch(e=>{o(e),i(e)})})},fetchExpense(t){return new Promise((s,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,this.currentExpense.attachment_receipt=null,e.data.data.attachment_receipt_url?m.isImageFile(e.data.data.attachment_receipt_meta.mime_type)?this.currentExpense.receiptFiles=[{image:`/reports/expenses/${t}/receipt?${e.data.data.attachment_receipt_meta.uuid}`}]:this.currentExpense.receiptFiles=[{type:"document",name:e.data.data.attachment_receipt_meta.file_name}]:this.currentExpense.receiptFiles=[]),s(e)}).catch(e=>{o(e),i(e)})})},addExpense(t){const s=m.toFormData(t);return new Promise((i,e)=>{d.post("/api/v1/expenses",s).then(n=>{this.expenses.push(n.data),h().showNotification({type:"success",message:a.t("expenses.created_message")}),i(n)}).catch(n=>{o(n),e(n)})})},updateExpense({id:t,data:s,isAttachmentReceiptRemoved:i}){const e=h(),n=m.toFormData(s);return n.append("_method","PUT"),n.append("is_attachment_receipt_removed",i),new Promise(l=>{d.post(`/api/v1/expenses/${t}`,n).then(r=>{let _=this.expenses.findIndex(g=>g.id===r.data.id);this.expenses[_]=s.expense,e.showNotification({type:"success",message:a.t("expenses.updated_message")}),l(r)})}).catch(l=>{o(l),reject(l)})},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 s=this.expenses.map(i=>i.id);this.selectedExpenses=s,this.selectAllField=!0}},deleteExpense(t){const s=h();return new Promise((i,e)=>{d.post("/api/v1/expenses/delete",t).then(n=>{let l=this.expenses.findIndex(r=>r.id===t);this.expenses.splice(l,1),s.showNotification({type:"success",message:a.tc("expenses.deleted_message",1)}),i(n)}).catch(n=>{o(n),e(n)})})},deleteMultipleExpenses(){const t=h();return new Promise((s,i)=>{d.post("/api/v1/expenses/delete",{ids:this.selectedExpenses}).then(e=>{this.selectedExpenses.forEach(n=>{let l=this.expenses.findIndex(r=>r.id===n.id);this.expenses.splice(l,1)}),t.showNotification({type:"success",message:a.tc("expenses.deleted_message",2)}),s(e)}).catch(e=>{o(e),i(e)})})},fetchPaymentModes(t){return new Promise((s,i)=>{d.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,s(e)}).catch(e=>{o(e),i(e)})})}}})()};export{I as u}; diff --git a/public/build/assets/global.db0572f0.js b/public/build/assets/global.1ac91de5.js similarity index 97% rename from public/build/assets/global.db0572f0.js rename to public/build/assets/global.1ac91de5.js index bb3ccb778..229e3e29b 100644 --- a/public/build/assets/global.db0572f0.js +++ b/public/build/assets/global.1ac91de5.js @@ -1 +1 @@ -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.974620c9.js";import{u as y}from"./main.6ceeb72d.js";import{a as u}from"./vendor.d12b5734.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}; +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.a07e0850.js";import{u as y}from"./main.c7bd6c0e.js";import{a as u}from"./vendor.d12b5734.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}; diff --git a/public/build/assets/invoice.90614bc9.js b/public/build/assets/invoice.fba53e83.js similarity index 91% rename from public/build/assets/invoice.90614bc9.js rename to public/build/assets/invoice.fba53e83.js index 2727a876f..700d3fb01 100644 --- a/public/build/assets/invoice.90614bc9.js +++ b/public/build/assets/invoice.fba53e83.js @@ -1 +1 @@ -import{h as a}from"./auth.974620c9.js";import{a as n}from"./vendor.d12b5734.js";const{defineStore:s}=window.pinia,d=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{d as u}; +import{h as a}from"./auth.a07e0850.js";import{a as n}from"./vendor.d12b5734.js";const{defineStore:s}=window.pinia,d=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{d as u}; diff --git a/public/build/assets/mail-driver.c62711d2.js b/public/build/assets/mail-driver.b57a1b96.js similarity index 96% rename from public/build/assets/mail-driver.c62711d2.js rename to public/build/assets/mail-driver.b57a1b96.js index 093c8f63b..d131c5418 100644 --- a/public/build/assets/mail-driver.c62711d2.js +++ b/public/build/assets/mail-driver.b57a1b96.js @@ -1 +1 @@ -import{a as r,d}from"./vendor.d12b5734.js";import{h as m,u as n}from"./main.6ceeb72d.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}; +import{a as r,d}from"./vendor.d12b5734.js";import{h as m,u as n}from"./main.c7bd6c0e.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}; diff --git a/public/build/assets/main.6ceeb72d.js b/public/build/assets/main.c7bd6c0e.js similarity index 94% rename from public/build/assets/main.6ceeb72d.js rename to public/build/assets/main.c7bd6c0e.js index a9203d491..3fb0536d9 100644 --- a/public/build/assets/main.6ceeb72d.js +++ b/public/build/assets/main.c7bd6c0e.js @@ -1,7 +1,7 @@ -var It=Object.defineProperty,Tt=Object.defineProperties;var Rt=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var Qe=(n,r,o)=>r in n?It(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,M=(n,r)=>{for(var o in r||(r={}))Mt.call(r,o)&&Qe(n,o,r[o]);if(Je)for(var o of Je(r))Ft.call(r,o)&&Qe(n,o,r[o]);return n},W=(n,r)=>Tt(n,Rt(r));import{a as v,d as Q,_ as oe,c as $t,b as Ut,r as C,o as l,e as _,f as u,F as X,g as F,n as De,h as c,w as f,i as B,t as w,j as P,k as A,l as T,u as d,m as N,p as pe,q as xe,v as Vt,s as le,x as J,y as ae,z as Xe,A as Ot,B as K,C as fe,D as Pe,E as Lt,G as ge,H as G,I as be,J as Se,K as et,L as te,M as tt,N as Ue,O as at,P as qt,Q as Bt,R as Kt,S as Ce,T as Zt,U as se,V as Wt,W as Ht,X as Yt,Y as Ne,Z as Gt,$ as Jt,a0 as Ve,a1 as nt,a2 as Ee,a3 as it,a4 as Qt,a5 as ot,a6 as st,a7 as rt,a8 as Xt,a9 as ea,aa as ta,ab as aa,ac as na,ad as ia,ae as oa,af as sa,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 fa,as as ga,at as va,au as ya,av as Oe,aw as _t,ax as ut,ay as ha,az as ba,aA as ka,aB as wa,aC as za,aD as xa,aE as Le,aF as Pa,aG as Sa,aH as ja,aI as Aa,aJ as Da,aK as Ca,aL as Na}from"./vendor.d12b5734.js";var qe={get(n){return localStorage.getItem(n)?localStorage.getItem(n):null},set(n,r){localStorage.setItem(n,r)},remove(n){localStorage.removeItem(n)}};window.Ls=qe;window.axios=v;v.defaults.withCredentials=!0;v.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"};v.interceptors.request.use(function(n){const r=qe.get("selectedCompany"),o=qe.get("auth.token");return o&&(n.headers.common.Authorization=o),r&&(n.headers.common.company=r),n});const $=(n=!1)=>(n?window.pinia.defineStore:Q)({id:"notification",state:()=>({active:!1,autoHide:!0,notifications:[]}),actions:{showNotification(o){this.notifications.push(W(M({},o),{id:(Math.random().toString(36)+Date.now().toString(36)).substr(2)}))},hideNotification(o){this.notifications=this.notifications.filter(a=>a.id!=o.id)}}})(),Ea=(n=!1)=>(n?window.pinia.defineStore:Q)({id:"auth",state:()=>({status:"",loginData:{email:"",password:"",remember:""}}),actions:{login(o){return new Promise((a,t)=>{v.get("/sanctum/csrf-cookie").then(i=>{i&&v.post("/login",o).then(e=>{a(e),setTimeout(()=>{this.loginData.email="",this.loginData.password=""},1e3)}).catch(e=>{y(e),t(e)})})})},logout(){return new Promise((o,a)=>{v.post("/auth/logout").then(t=>{$().showNotification({type:"success",message:"Logged out successfully."}),window.router.push("/login"),o(t)}).catch(t=>{y(t),window.router.push("/"),a(t)})})}}})(),y=n=>{var a;const r=Ea(),o=$();if(!n.response)o.showNotification({type:"error",message:"Please check your internet connection or wait until servers are back online."});else if(n.response.data&&(n.response.statusText==="Unauthorized"||n.response.data===" Unauthorized.")){const t=n.response.data.message?n.response.data.message:"Unauthorized";V(t),r.logout()}else if(n.response.data.errors){const t=JSON.parse(JSON.stringify(n.response.data.errors));for(const i in t)Ie(t[i][0])}else n.response.data.error?typeof n.response.data.error=="boolean"?Ie((a=n.response.data)==null?void 0:a.message):Ie(n.response.data.error):Ie(n.response.data.message)},Ie=n=>{switch(n){case"These credentials do not match our records.":V("errors.login_invalid_credentials");break;case"invalid_key":V("errors.invalid_provider_key");break;case"This feature is available on Starter plan and onwards!":V("errors.starter_plan");break;case"taxes_attached":V("settings.tax_types.already_in_use");break;case"expense_attached":V("settings.expense_category.already_in_use");break;case"payments_attached":V("settings.payment_modes.payments_attached");break;case"expenses_attached":V("settings.payment_modes.expenses_attached");break;case"role_attached_to_users":V("settings.roles.already_in_use");break;case"items_attached":V("settings.customization.items.already_in_use");break;case"payment_attached_message":V("invoices.payment_attached_message");break;case"The email has already been taken.":V("validation.email_already_taken");break;case"Relation estimateItems exists.":V("items.item_attached_message");break;case"Relation invoiceItems exists.":V("items.item_attached_message");break;case"Relation taxes exists.":V("settings.tax_types.already_in_use");break;case"Relation taxes exists.":V("settings.tax_types.already_in_use");break;case"Relation payments exists.":V("errors.payment_attached");break;case"The estimate number has already been taken.":V("errors.estimate_number_used");break;case"The payment number has already been taken.":V("errors.estimate_number_used");break;case"The invoice number has already been taken.":V("errors.invoice_number_used");break;case"The name has already been taken.":V("errors.name_already_taken");break;case"total_invoice_amount_must_be_more_than_paid_amount":V("invoices.invalid_due_amount_message");break;case"you_cannot_edit_currency":V("customers.edit_currency_not_allowed");break;case"receipt_does_not_exist":V("errors.receipt_does_not_exist");break;case"customer_cannot_be_changed_after_payment_is_added":V("errors.customer_cannot_be_changed_after_payment_is_added");break;case"invalid_credentials":V("errors.invalid_credentials");break;case"not_allowed":V("errors.not_allowed");break;case"invalid_key":V("errors.invalid_key");break;case"invalid_state":V("errors.invalid_state");break;case"invalid_city":V("errors.invalid_city");break;case"invalid_postal_code":V("errors.invalid_postal_code");break;case"invalid_format":V("errors.invalid_format");break;case"api_error":V("errors.api_error");break;case"feature_not_enabled":V("errors.feature_not_enabled");break;case"request_limit_met":V("errors.request_limit_met");break;case"address_incomplete":V("errors.address_incomplete");break;case"invalid_address":V("errors.invalid_address");break;case"Email could not be sent to this email address.":V("errors.email_could_not_be_sent");break;default:V(n,!1);break}},V=(n,r=!0)=>{const{global:o}=window.i18n;$().showNotification({type:"error",message:r?o.t(n):n})},ve=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.put("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,Object.assign(this.userForm,e.data.data),$().showNotification({type:"success",message:o.t("settings.account_settings.updated_message")}),t(e)}).catch(e=>{y(e),i(e)})})},fetchCurrentUser(a){return new Promise((t,i)=>{v.get("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,this.userForm=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},uploadAvatar(a){return new Promise((t,i)=>{v.post("/api/v1/me/upload-avatar",a).then(e=>{this.currentUser.avatar=e.data.data.avatar,t(e)}).catch(e=>{y(e),i(e)})})},fetchUserSettings(a){return new Promise((t,i)=>{v.get("/api/v1/me/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},updateUserSettings(a){return new Promise((t,i)=>{v.put("/api/v1/me/settings",a).then(e=>{a.settings.language&&(this.currentUserSettings.language=a.settings.language,o.locale=a.settings.language),a.settings.default_estimate_template&&(this.currentUserSettings.default_estimate_template=a.settings.default_estimate_template),a.settings.default_invoice_template&&(this.currentUserSettings.default_invoice_template=a.settings.default_invoice_template),t(e)}).catch(e=>{y(e),i(e)})})},hasAbilities(a){return!!this.currentAbilities.find(t=>t.name==="*"?!0:typeof a=="string"?t.name===a:!!a.find(i=>t.name===i))},hasAllAbilities(a){let t=!0;return this.currentAbilities.filter(i=>{!!a.find(s=>i.name===s)||(t=!1)}),t}}})()},_e=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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)=>{v.get("/api/v1/company/mail/config").then(i=>{a(i)}).catch(i=>{y(i),t(i)})})},updateCompany(a){return new Promise((t,i)=>{v.put("/api/v1/company",a).then(e=>{$().showNotification({type:"success",message:o.t("settings.company_info.updated_message")}),this.selectedCompany=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},updateCompanyLogo(a){return new Promise((t,i)=>{v.post("/api/v1/company/upload-logo",a).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},addNewCompany(a){return new Promise((t,i)=>{v.post("/api/v1/companies",a).then(e=>{$().showNotification({type:"success",message:o.t("company_switcher.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},fetchCompany(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},fetchUserCompanies(){return new Promise((a,t)=>{v.get("/api/v1/companies").then(i=>{a(i)}).catch(i=>{y(i),t(i)})})},fetchCompanySettings(a){return new Promise((t,i)=>{v.get("/api/v1/company/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},updateCompanySettings({data:a,message:t}){return new Promise((i,e)=>{v.post("/api/v1/company/settings",a).then(s=>{Object.assign(this.selectedCompanySettings,a.settings),t&&$().showNotification({type:"success",message:o.t(t)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteCompany(a){return new Promise((t,i)=>{v.post("/api/v1/companies/delete",a).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},setDefaultCurrency(a){this.defaultCurrency=a.currency}}})()},Ia=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.get("/api/v1/modules").then(e=>{this.modules=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchModule(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},checkApiToken(a){return new Promise((t,i)=>{v.get(`/api/v1/modules/check?api_token=${a}`).then(e=>{const s=$();e.data.error==="invalid_token"&&s.showNotification({type:"error",message:o.t("modules.invalid_api_token")}),t(e)}).catch(e=>{y(e),i(e)})})},disableModule(a){return new Promise((t,i)=>{v.post(`/api/v1/modules/${a}/disable`).then(e=>{const s=$();e.data.success&&s.showNotification({type:"success",message:o.t("modules.module_disabled")}),t(e)}).catch(e=>{y(e),i(e)})})},enableModule(a){return new Promise((t,i)=>{v.post(`/api/v1/modules/${a}/enable`).then(e=>{const s=$();e.data.success&&s.showNotification({type:"success",message:o.t("modules.module_enabled")}),t(e)}).catch(e=>{y(e),i(e)})})}}})()},Te=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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)=>{v.get("/api/v1/bootstrap").then(i=>{const e=_e(),s=ve(),m=Ia();this.mainMenu=i.data.main_menu,this.settingMenu=i.data.setting_menu,this.config=i.data.config,this.globalSettings=i.data.global_settings,s.currentUser=i.data.current_user,s.currentUserSettings=i.data.current_user_settings,s.currentAbilities=i.data.current_user_abilities,m.apiToken=i.data.global_settings.api_token,m.enableModules=i.data.modules,e.companies=i.data.companies,e.selectedCompany=i.data.current_company,e.setSelectedCompany(i.data.current_company),e.selectedCompanySettings=i.data.current_company_settings,e.selectedCompanyCurrency=i.data.current_company_currency,o.locale=i.data.current_user_settings.language||"en",this.isAppLoaded=!0,a(i)}).catch(i=>{y(i),t(i)})})},fetchCurrencies(){return new Promise((a,t)=>{this.currencies.length||this.areCurrenciesLoading?a(this.currencies):(this.areCurrenciesLoading=!0,v.get("/api/v1/currencies").then(i=>{this.currencies=i.data.data.filter(e=>e.name=`${e.code} - ${e.name}`),this.areCurrenciesLoading=!1,a(i)}).catch(i=>{y(i),this.areCurrenciesLoading=!1,t(i)}))})},fetchConfig(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},fetchDateFormats(){return new Promise((a,t)=>{this.dateFormats.length?a(this.dateFormats):v.get("/api/v1/date/formats").then(i=>{this.dateFormats=i.data.date_formats,a(i)}).catch(i=>{y(i),t(i)})})},fetchTimeZones(){return new Promise((a,t)=>{this.timeZones.length?a(this.timeZones):v.get("/api/v1/timezones").then(i=>{this.timeZones=i.data.time_zones,a(i)}).catch(i=>{y(i),t(i)})})},fetchCountries(){return new Promise((a,t)=>{this.countries.length?a(this.countries):v.get("/api/v1/countries").then(i=>{this.countries=i.data.data,a(i)}).catch(i=>{y(i),t(i)})})},fetchPlaceholders(a){return new Promise((t,i)=>{v.get("/api/v1/number-placeholders",{params:a}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},setSidebarVisibility(a){this.isSidebarOpen=a},setIsAppLoaded(a){this.isAppLoaded=a},updateGlobalSettings({data:a,message:t}){return new Promise((i,e)=>{v.post("/api/v1/settings",a).then(s=>{Object.assign(this.globalSettings,a.settings),t&&$().showNotification({type:"success",message:o.t(t)}),i(s)}).catch(s=>{y(s),e(s)})})}}})()},Ta="modulepreload",mt={},Ra="/build/",S=function(r,o){return!o||o.length===0?r():Promise.all(o.map(a=>{if(a=`${Ra}${a}`,a in mt)return;mt[a]=!0;const t=a.endsWith(".css"),i=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${i}`))return;const e=document.createElement("link");if(e.rel=t?"stylesheet":Ta,t||(e.as="script",e.crossOrigin=""),e.href=a,document.head.appendChild(e),t)return new Promise((s,m)=>{e.addEventListener("load",s),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 Ma=()=>S(()=>import("./LayoutInstallation.f025488e.js"),["assets/LayoutInstallation.f025488e.js","assets/NotificationRoot.9d4c0db9.js","assets/vendor.d12b5734.js"]),pt=()=>S(()=>import("./Login.09265290.js"),["assets/Login.09265290.js","assets/vendor.d12b5734.js"]),Fa=()=>S(()=>import("./LayoutBasic.e1b3d28d.js"),["assets/LayoutBasic.e1b3d28d.js","assets/vendor.d12b5734.js","assets/exchange-rate.28527a8e.js","assets/users.2ff38459.js","assets/NotificationRoot.9d4c0db9.js","assets/index.esm.85b4999a.js"]),$a=()=>S(()=>import("./LayoutLogin.80459a89.js"),["assets/LayoutLogin.80459a89.js","assets/NotificationRoot.9d4c0db9.js","assets/vendor.d12b5734.js"]),Ua=()=>S(()=>import("./ResetPassword.93fbba47.js"),["assets/ResetPassword.93fbba47.js","assets/vendor.d12b5734.js"]),Va=()=>S(()=>import("./ForgotPassword.268a530d.js"),["assets/ForgotPassword.268a530d.js","assets/vendor.d12b5734.js"]),Oa=()=>S(()=>import("./Dashboard.85be3397.js"),["assets/Dashboard.85be3397.js","assets/EstimateIcon.89528a95.js","assets/vendor.d12b5734.js","assets/LineChart.dd592086.js","assets/InvoiceIndexDropdown.78aec816.js","assets/EstimateIndexDropdown.1e23ee92.js"]),La=()=>S(()=>import("./Index.929bd0c6.js"),["assets/Index.929bd0c6.js","assets/vendor.d12b5734.js","assets/CustomerIndexDropdown.49914d07.js","assets/AstronautIcon.82b952e2.js"]),ft=()=>S(()=>import("./Create.f99b9267.js"),["assets/Create.f99b9267.js","assets/vendor.d12b5734.js","assets/CreateCustomFields.1cd1f052.js"]),qa=()=>S(()=>import("./View.e5b14e68.js"),["assets/View.e5b14e68.js","assets/vendor.d12b5734.js","assets/LoadingIcon.66b14768.js","assets/LineChart.dd592086.js","assets/CustomerIndexDropdown.49914d07.js"]),Ba=()=>S(()=>import("./SettingsIndex.4f7dc251.js"),["assets/SettingsIndex.4f7dc251.js","assets/vendor.d12b5734.js","assets/BaseListItem.91c21811.js"]),Ka=()=>S(()=>import("./AccountSetting.05a74cc4.js"),["assets/AccountSetting.05a74cc4.js","assets/vendor.d12b5734.js"]),Za=()=>S(()=>import("./CompanyInfoSettings.1d341534.js"),["assets/CompanyInfoSettings.1d341534.js","assets/vendor.d12b5734.js"]),Wa=()=>S(()=>import("./PreferencesSetting.ef36081e.js"),["assets/PreferencesSetting.ef36081e.js","assets/vendor.d12b5734.js"]),Ha=()=>S(()=>import("./CustomizationSetting.0754031c.js"),["assets/CustomizationSetting.0754031c.js","assets/vendor.d12b5734.js","assets/DragIcon.e6c221f0.js","assets/payment.ef13b90b.js","assets/ItemUnitModal.17b8fb30.js"]),Ya=()=>S(()=>import("./NotificationsSetting.8d66d8e5.js"),["assets/NotificationsSetting.8d66d8e5.js","assets/vendor.d12b5734.js"]),Ga=()=>S(()=>import("./TaxTypesSetting.bbca28e7.js"),["assets/TaxTypesSetting.bbca28e7.js","assets/vendor.d12b5734.js","assets/TaxTypeModal.5bc92e5b.js"]),Ja=()=>S(()=>import("./PaymentsModeSetting.94f9fd63.js"),["assets/PaymentsModeSetting.94f9fd63.js","assets/vendor.d12b5734.js","assets/payment.ef13b90b.js","assets/PaymentModeModal.89922a6d.js"]),Qa=()=>S(()=>import("./CustomFieldsSetting.f35a2b52.js"),["assets/CustomFieldsSetting.f35a2b52.js","assets/vendor.d12b5734.js"]),Xa=()=>S(()=>import("./NotesSetting.eb35e797.js"),["assets/NotesSetting.eb35e797.js","assets/vendor.d12b5734.js","assets/NoteModal.62a64a69.js","assets/NoteModal.3245b7d3.css","assets/payment.ef13b90b.js"]),en=()=>S(()=>import("./ExpenseCategorySetting.bac23162.js"),["assets/ExpenseCategorySetting.bac23162.js","assets/category.1184b061.js","assets/vendor.d12b5734.js","assets/CategoryModal.b8530d2c.js"]),tn=()=>S(()=>import("./ExchangeRateProviderSetting.6143f080.js"),["assets/ExchangeRateProviderSetting.6143f080.js","assets/exchange-rate.28527a8e.js","assets/vendor.d12b5734.js","assets/BaseTable.86db669d.js"]),an=()=>S(()=>import("./MailConfigSetting.d1476293.js"),["assets/MailConfigSetting.d1476293.js","assets/vendor.d12b5734.js","assets/mail-driver.c62711d2.js"]),nn=()=>S(()=>import("./FileDiskSetting.e79dff0b.js"),["assets/FileDiskSetting.e79dff0b.js","assets/disk.e54e2880.js","assets/vendor.d12b5734.js"]),on=()=>S(()=>import("./BackupSetting.8d609c24.js"),["assets/BackupSetting.8d609c24.js","assets/vendor.d12b5734.js","assets/disk.e54e2880.js"]),sn=()=>S(()=>import("./UpdateAppSetting.e4157d64.js"),["assets/UpdateAppSetting.e4157d64.js","assets/UpdateAppSetting.7d8b987a.css","assets/vendor.d12b5734.js","assets/LoadingIcon.66b14768.js","assets/exchange-rate.28527a8e.js"]),rn=()=>S(()=>import("./RolesSettings.e13e057e.js"),["assets/RolesSettings.e13e057e.js","assets/vendor.d12b5734.js"]),dn=()=>S(()=>import("./Index.d8b72a81.js"),["assets/Index.d8b72a81.js","assets/vendor.d12b5734.js"]),gt=()=>S(()=>import("./Create.a2ae555f.js"),["assets/Create.a2ae555f.js","assets/vendor.d12b5734.js","assets/ItemUnitModal.17b8fb30.js"]),ln=()=>S(()=>import("./Index.88d3b048.js"),["assets/Index.88d3b048.js","assets/vendor.d12b5734.js","assets/expense.c4c3f409.js","assets/category.1184b061.js"]),vt=()=>S(()=>import("./Create.4724f6a7.js"),["assets/Create.4724f6a7.js","assets/vendor.d12b5734.js","assets/expense.c4c3f409.js","assets/category.1184b061.js","assets/CreateCustomFields.1cd1f052.js","assets/CategoryModal.b8530d2c.js","assets/ExchangeRateConverter.2338e5bf.js","assets/exchange-rate.28527a8e.js"]),cn=()=>S(()=>import("./Index.55f33eaf.js"),["assets/Index.55f33eaf.js","assets/vendor.d12b5734.js","assets/users.2ff38459.js","assets/AstronautIcon.82b952e2.js"]),yt=()=>S(()=>import("./Create.6e564295.js"),["assets/Create.6e564295.js","assets/vendor.d12b5734.js","assets/index.esm.85b4999a.js","assets/users.2ff38459.js"]),_n=()=>S(()=>import("./Index.cd4cebdd.js"),["assets/Index.cd4cebdd.js","assets/vendor.d12b5734.js","assets/ObservatoryIcon.528a64ab.js","assets/EstimateIndexDropdown.1e23ee92.js","assets/SendEstimateModal.5a99ff19.js","assets/mail-driver.c62711d2.js"]),ht=()=>S(()=>import("./EstimateCreate.420fc484.js"),["assets/EstimateCreate.420fc484.js","assets/vendor.d12b5734.js","assets/SalesTax.285fbaa6.js","assets/DragIcon.e6c221f0.js","assets/SelectNotePopup.9f1463c3.js","assets/NoteModal.62a64a69.js","assets/NoteModal.3245b7d3.css","assets/payment.ef13b90b.js","assets/CreateCustomFields.1cd1f052.js","assets/ExchangeRateConverter.2338e5bf.js","assets/exchange-rate.28527a8e.js","assets/TaxTypeModal.5bc92e5b.js"]),un=()=>S(()=>import("./View.a8a41f7b.js"),["assets/View.a8a41f7b.js","assets/vendor.d12b5734.js","assets/EstimateIndexDropdown.1e23ee92.js","assets/SendEstimateModal.5a99ff19.js","assets/mail-driver.c62711d2.js","assets/LoadingIcon.66b14768.js"]),mn=()=>S(()=>import("./Index.171a9be4.js"),["assets/Index.171a9be4.js","assets/vendor.d12b5734.js","assets/payment.ef13b90b.js","assets/CapsuleIcon.37dfa933.js","assets/SendPaymentModal.e1c4e0ab.js","assets/mail-driver.c62711d2.js"]),Be=()=>S(()=>import("./Create.7bd803d3.js"),["assets/Create.7bd803d3.js","assets/vendor.d12b5734.js","assets/ExchangeRateConverter.2338e5bf.js","assets/exchange-rate.28527a8e.js","assets/payment.ef13b90b.js","assets/SelectNotePopup.9f1463c3.js","assets/NoteModal.62a64a69.js","assets/NoteModal.3245b7d3.css","assets/CreateCustomFields.1cd1f052.js","assets/PaymentModeModal.89922a6d.js"]),pn=()=>S(()=>import("./View.d69a3f76.js"),["assets/View.d69a3f76.js","assets/vendor.d12b5734.js","assets/payment.ef13b90b.js","assets/SendPaymentModal.e1c4e0ab.js","assets/mail-driver.c62711d2.js","assets/LoadingIcon.66b14768.js"]),fn=()=>S(()=>import("./404.e81599b7.js"),["assets/404.e81599b7.js","assets/vendor.d12b5734.js"]),gn=()=>S(()=>import("./Index.db0325b2.js"),["assets/Index.db0325b2.js","assets/vendor.d12b5734.js","assets/MoonwalkerIcon.b55d3604.js","assets/InvoiceIndexDropdown.78aec816.js","assets/SendInvoiceModal.224b5c76.js","assets/mail-driver.c62711d2.js"]),bt=()=>S(()=>import("./InvoiceCreate.dbeab7eb.js"),["assets/InvoiceCreate.dbeab7eb.js","assets/vendor.d12b5734.js","assets/SalesTax.285fbaa6.js","assets/DragIcon.e6c221f0.js","assets/SelectNotePopup.9f1463c3.js","assets/NoteModal.62a64a69.js","assets/NoteModal.3245b7d3.css","assets/payment.ef13b90b.js","assets/ExchangeRateConverter.2338e5bf.js","assets/exchange-rate.28527a8e.js","assets/CreateCustomFields.1cd1f052.js","assets/TaxTypeModal.5bc92e5b.js"]),vn=()=>S(()=>import("./View.23db8f6f.js"),["assets/View.23db8f6f.js","assets/vendor.d12b5734.js","assets/SendInvoiceModal.224b5c76.js","assets/mail-driver.c62711d2.js","assets/InvoiceIndexDropdown.78aec816.js","assets/LoadingIcon.66b14768.js"]),yn=()=>S(()=>import("./Index.648f01b0.js"),["assets/Index.648f01b0.js","assets/vendor.d12b5734.js","assets/SendInvoiceModal.224b5c76.js","assets/mail-driver.c62711d2.js","assets/RecurringInvoiceIndexDropdown.9324dca1.js","assets/MoonwalkerIcon.b55d3604.js"]),kt=()=>S(()=>import("./RecurringInvoiceCreate.2b74f4d5.js"),["assets/RecurringInvoiceCreate.2b74f4d5.js","assets/vendor.d12b5734.js","assets/SalesTax.285fbaa6.js","assets/DragIcon.e6c221f0.js","assets/SelectNotePopup.9f1463c3.js","assets/NoteModal.62a64a69.js","assets/NoteModal.3245b7d3.css","assets/payment.ef13b90b.js","assets/ExchangeRateConverter.2338e5bf.js","assets/exchange-rate.28527a8e.js","assets/CreateCustomFields.1cd1f052.js","assets/TaxTypeModal.5bc92e5b.js"]),hn=()=>S(()=>import("./View.fb7ac918.js"),["assets/View.fb7ac918.js","assets/vendor.d12b5734.js","assets/LoadingIcon.66b14768.js","assets/InvoiceIndexDropdown.78aec816.js","assets/SendInvoiceModal.224b5c76.js","assets/mail-driver.c62711d2.js","assets/RecurringInvoiceIndexDropdown.9324dca1.js"]),bn=()=>S(()=>import("./Index.2a5c7bd4.js"),["assets/Index.2a5c7bd4.js","assets/vendor.d12b5734.js"]),kn=()=>S(()=>import("./Installation.d8337338.js"),["assets/Installation.d8337338.js","assets/vendor.d12b5734.js","assets/mail-driver.c62711d2.js"]),wn=()=>S(()=>import("./Index.b977b7ef.js"),["assets/Index.b977b7ef.js","assets/vendor.d12b5734.js"]),zn=()=>S(()=>import("./View.22824636.js"),["assets/View.22824636.js","assets/vendor.d12b5734.js"]),xn=()=>S(()=>import("./InvoicePublicPage.57c1fc66.js"),["assets/InvoicePublicPage.57c1fc66.js","assets/vendor.d12b5734.js"]);var Pn=[{path:"/installation",component:Ma,meta:{requiresAuth:!1},children:[{path:"/installation",component:kn,name:"installation"}]},{path:"/customer/invoices/view/:hash",component:xn,name:"invoice.public"},{path:"/",component:$a,meta:{requiresAuth:!1,redirectIfAuthenticated:!0},children:[{path:"",component:pt},{path:"login",name:"login",component:pt},{path:"forgot-password",component:Va,name:"forgot-password"},{path:"/reset-password/:token",component:Ua,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:ft},{path:"customers/:id/edit",name:"customers.edit",meta:{ability:O.EDIT_CUSTOMER},component:ft},{path:"customers/:id/view",name:"customers.view",meta:{ability:O.VIEW_CUSTOMER},component:qa},{path:"payments",meta:{ability:O.VIEW_PAYMENT},component:mn},{path:"payments/create",name:"payments.create",meta:{ability:O.CREATE_PAYMENT},component:Be},{path:"payments/:id/create",name:"invoice.payments.create",meta:{ability:O.CREATE_PAYMENT},component:Be},{path:"payments/:id/edit",name:"payments.edit",meta:{ability:O.EDIT_PAYMENT},component:Be},{path:"payments/:id/view",name:"payments.view",meta:{ability:O.VIEW_PAYMENT},component:pn},{path:"settings",name:"settings",component:Ba,children:[{path:"account-settings",name:"account.settings",component:Ka},{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:Ya},{path:"roles-settings",name:"roles.settings",meta:{isOwner:!0},component:rn},{path:"exchange-rate-provider",name:"exchange.rate.provider",meta:{ability:O.VIEW_EXCHANGE_RATE},component:tn},{path:"tax-types",name:"tax.types",meta:{ability:O.VIEW_TAX_TYPE},component:Ga},{path:"notes",name:"notes",meta:{ability:O.VIEW_ALL_NOTES},component:Xa},{path:"payment-mode",name:"payment.mode",component:Ja},{path:"custom-fields",name:"custom.fields",meta:{ability:O.VIEW_CUSTOM_FIELDS},component:Qa},{path:"expense-category",name:"expense.category",meta:{ability:O.VIEW_EXPENSE},component:en},{path:"mail-configuration",name:"mailconfig",meta:{isOwner:!0},component:an},{path:"file-disk",name:"file-disk",meta:{isOwner:!0},component:nn},{path:"backup",name:"backup",meta:{isOwner:!0},component:on},{path:"update-app",name:"updateapp",meta:{isOwner:!0},component:sn}]},{path:"items",meta:{ability:O.VIEW_ITEM},component:dn},{path:"items/create",name:"items.create",meta:{ability:O.CREATE_ITEM},component:gt},{path:"items/:id/edit",name:"items.edit",meta:{ability:O.EDIT_ITEM},component:gt},{path:"expenses",meta:{ability:O.VIEW_EXPENSE},component:ln},{path:"expenses/create",name:"expenses.create",meta:{ability:O.CREATE_EXPENSE},component:vt},{path:"expenses/:id/edit",name:"expenses.edit",meta:{ability:O.EDIT_EXPENSE},component:vt},{path:"users",name:"users.index",meta:{isOwner:!0},component:cn},{path:"users/create",meta:{isOwner:!0},name:"users.create",component:yt},{path:"users/:id/edit",name:"users.edit",meta:{isOwner:!0},component:yt},{path:"estimates",name:"estimates.index",meta:{ability:O.VIEW_ESTIMATE},component:_n},{path:"estimates/create",name:"estimates.create",meta:{ability:O.CREATE_ESTIMATE},component:ht},{path:"estimates/:id/view",name:"estimates.view",meta:{ability:O.VIEW_ESTIMATE},component:un},{path:"estimates/:id/edit",name:"estimates.edit",meta:{ability:O.EDIT_ESTIMATE},component:ht},{path:"invoices",name:"invoices.index",meta:{ability:O.VIEW_INVOICE},component:gn},{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:vn},{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:yn},{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:hn},{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:wn},{path:"modules/:slug",name:"modules.view",meta:{isOwner:!0},component:zn},{path:"reports",meta:{ability:O.VIEW_FINANCIAL_REPORT},component:bn}]},{path:"/:catchAll(.*)",component:fn}];const Sn=()=>S(()=>import("./LayoutBasic.f099ad73.js"),["assets/LayoutBasic.f099ad73.js","assets/auth.974620c9.js","assets/vendor.d12b5734.js","assets/global.db0572f0.js","assets/NotificationRoot.9d4c0db9.js"]),jn=()=>S(()=>import("./LayoutLogin.ba38ab08.js"),["assets/LayoutLogin.ba38ab08.js","assets/NotificationRoot.9d4c0db9.js","assets/vendor.d12b5734.js"]),wt=()=>S(()=>import("./Login.2ff2ebf4.js"),["assets/Login.2ff2ebf4.js","assets/vendor.d12b5734.js","assets/auth.974620c9.js"]),An=()=>S(()=>import("./ForgotPassword.a2f7d1ee.js"),["assets/ForgotPassword.a2f7d1ee.js","assets/vendor.d12b5734.js","assets/auth.974620c9.js"]),Dn=()=>S(()=>import("./ResetPassword.8084cc33.js"),["assets/ResetPassword.8084cc33.js","assets/vendor.d12b5734.js","assets/global.db0572f0.js","assets/auth.974620c9.js"]),Cn=()=>S(()=>import("./Dashboard.7d84bed1.js"),["assets/Dashboard.7d84bed1.js","assets/EstimateIcon.89528a95.js","assets/vendor.d12b5734.js","assets/global.db0572f0.js","assets/auth.974620c9.js","assets/BaseTable.86db669d.js"]),Nn=()=>S(()=>import("./Index.374787d3.js"),["assets/Index.374787d3.js","assets/vendor.d12b5734.js","assets/invoice.90614bc9.js","assets/auth.974620c9.js","assets/BaseTable.86db669d.js","assets/global.db0572f0.js","assets/MoonwalkerIcon.b55d3604.js"]),En=()=>S(()=>import("./View.30540927.js"),["assets/View.30540927.js","assets/vendor.d12b5734.js","assets/invoice.90614bc9.js","assets/auth.974620c9.js","assets/global.db0572f0.js"]),In=()=>S(()=>import("./Index.8db0c2bf.js"),["assets/Index.8db0c2bf.js","assets/vendor.d12b5734.js","assets/BaseTable.86db669d.js","assets/global.db0572f0.js","assets/auth.974620c9.js","assets/estimate.b80e2b77.js","assets/ObservatoryIcon.528a64ab.js"]),Tn=()=>S(()=>import("./View.da31b1a9.js"),["assets/View.da31b1a9.js","assets/vendor.d12b5734.js","assets/estimate.b80e2b77.js","assets/auth.974620c9.js","assets/global.db0572f0.js"]),Rn=()=>S(()=>import("./Index.d02e663e.js"),["assets/Index.d02e663e.js","assets/vendor.d12b5734.js","assets/BaseTable.86db669d.js","assets/CapsuleIcon.37dfa933.js","assets/payment.7edbe3ce.js","assets/auth.974620c9.js","assets/global.db0572f0.js"]),Mn=()=>S(()=>import("./View.799867ef.js"),["assets/View.799867ef.js","assets/vendor.d12b5734.js","assets/payment.7edbe3ce.js","assets/auth.974620c9.js","assets/global.db0572f0.js"]),Fn=()=>S(()=>import("./SettingsIndex.aa723778.js"),["assets/SettingsIndex.aa723778.js","assets/BaseListItem.91c21811.js","assets/vendor.d12b5734.js","assets/global.db0572f0.js","assets/auth.974620c9.js"]),$n=()=>S(()=>import("./CustomerSettings.100fd12d.js"),["assets/CustomerSettings.100fd12d.js","assets/vendor.d12b5734.js","assets/global.db0572f0.js","assets/auth.974620c9.js"]),Un=()=>S(()=>import("./AddressInformation.f224417d.js"),["assets/AddressInformation.f224417d.js","assets/vendor.d12b5734.js","assets/global.db0572f0.js","assets/auth.974620c9.js"]);var Vn=[{path:"/:company/customer",component:jn,meta:{redirectIfAuthenticated:!0},children:[{path:"",component:wt},{path:"login",component:wt,name:"customer.login"},{path:"forgot-password",component:An,name:"customer.forgot-password"},{path:"reset/password/:token",component:Dn,name:"customer.reset-password"}]},{path:"/:company/customer",component:Sn,meta:{requiresAuth:!0},children:[{path:"dashboard",component:Cn,name:"customer.dashboard"},{path:"invoices",component:Nn,name:"invoices.dashboard"},{path:"invoices/:id/view",component:En,name:"customer.invoices.view"},{path:"estimates",component:In,name:"estimates.dashboard"},{path:"estimates/:id/view",component:Tn,name:"customer.estimates.view"},{path:"payments",component:Rn,name:"payments.dashboard"},{path:"payments/:id/view",component:Mn,name:"customer.payments.view"},{path:"settings",component:Fn,name:"customer",children:[{path:"customer-profile",component:$n,name:"customer.profile"},{path:"address-info",component:Un,name:"customer.address.info"}]}]}];let Ke=[];Ke=Ke.concat(Pn,Vn);const Re=$t({history:Ut(),linkActiveClass:"active",routes:Ke});Re.beforeEach((n,r,o)=>{const a=ve(),t=Te();let i=n.meta.ability;const{isAppLoaded:e}=t;i&&e&&n.meta.requiresAuth?a.hasAbilities(i)?o():o({name:"account.settings"}):n.meta.isOwner&&e?a.currentUser.is_owner?o():o({name:"dashboard"}):o()});var ee=(n,r)=>{const o=n.__vccOpts||n;for(const[a,t]of r)o[a]=t;return o};const On={};function Ln(n,r){const o=C("router-view"),a=C("BaseDialog");return l(),_(X,null,[u(o),u(a)],64)}var qn=ee(On,[["render",Ln]]);const Bn={dashboard:"N\xE1st\u011Bnka",customers:"Z\xE1kazn\xEDci",items:"Polo\u017Eky",invoices:"Faktury","recurring-invoices":"Opakuj\xEDc\xED se faktury",expenses:"V\xFDdaje",estimates:"Nab\xEDdky",payments:"Platby",reports:"Hl\xE1\u0161en\xED",settings:"Nastaven\xED",logout:"Odhl\xE1sit se",users:"U\u017Eivatel\xE9",modules:"Modules"},Kn={add_company:"P\u0159idat firmu",view_pdf:"Zobrazit PDF",copy_pdf_url:"Kop\xEDrovat adresu PDF",download_pdf:"St\xE1hnout PDF",save:"Ulo\u017Eit",create:"Vytvo\u0159it",cancel:"Zru\u0161it",update:"Aktualizovat",deselect:"Odzna\u010Dit",download:"St\xE1hnout",from_date:"Od data",to_date:"Do data",from:"Od",to:"Do",ok:"OK",yes:"Ano",no:"Ne",sort_by:"Se\u0159adit podle",ascending:"Vzestupn\u011B",descending:"Sestupn\u011B",subject:"P\u0159edm\u011Bt",body:"T\u011Blo",message:"Zpr\xE1va",send:"Odeslat",preview:"N\xE1hled",go_back:"Vr\xE1tit se",back_to_login:"Zp\u011Bt na p\u0159ihl\xE1\u0161en\xED?",home:"Dom\u016F",filter:"Filtr",delete:"Smazat",edit:"Upravit",view:"Zobrazit",add_new_item:"P\u0159idat novou polo\u017Eku",clear_all:"Vymazat v\u0161e",showing:"Zobrazuji",of:"z",actions:"Akce",subtotal:"MEZISOU\u010CET",discount:"SLEVA",fixed:"Fixn\xED",percentage:"Procentu\xE1ln\u011B",tax:"DAN\u011A",total_amount:"CELKOV\xC9 MNO\u017DSTV\xCD",bill_to:"P\u0159\xEDjemce faktury",ship_to:"Doru\u010Dovac\xED adresa",due:"Datum platnosti",draft:"Koncept",sent:"Odesl\xE1no",all:"V\u0161e",select_all:"Vybrat v\u0161e",select_template:"Vybrat \u0161ablonu",choose_file:"Klikn\u011Bte zde pro v\xFDb\u011Br souboru",choose_template:"Zvolit \u0161ablonu",choose:"Vybrat",remove:"Odebrat",select_a_status:"Vybrat stav",select_a_tax:"Vybrat da\u0148",search:"Hledat",are_you_sure:"Opravdu?",list_is_empty:"Seznam je pr\xE1zdn\xFD.",no_tax_found:"\u017D\xE1dn\xE1 da\u0148 nebyla nalezena!",four_zero_four:"404",you_got_lost:"Jejda! Ztratili jste se!",go_home:"N\xE1vrat dom\u016F",test_mail_conf:"Otestovat konfiguraci mail\u016F",send_mail_successfully:"Mail byl \xFAsp\u011B\u0161n\u011B odesl\xE1n",setting_updated:"Nastaven\xED \xFAsp\u011B\u0161n\u011B aktualizov\xE1no",select_state:"Zvolte st\xE1t",select_country:"Zvolte zemi",select_city:"Zvolte m\u011Bsto",street_1:"Ulice 1",street_2:"Ulice 2",action_failed:"Akce se nezda\u0159ila",retry:"Zkusit znovu",choose_note:"Zvolit pozn\xE1mku",no_note_found:"Nebyly nalezeny \u017E\xE1dn\xE9 pozn\xE1mky",insert_note:"Vlo\u017Eit pozn\xE1mku",copied_pdf_url_clipboard:"Adresa PDF zkop\xEDrov\xE1na do schr\xE1nky!",copied_url_clipboard:"Copied url to clipboard!",docs:"Dokumentace",do_you_wish_to_continue:"P\u0159ejete si pokra\u010Dovat?",note:"Pozn\xE1mka",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},Zn={select_year:"Vybrat rok",cards:{due_amount:"\u010C\xE1stka k zaplacen\xED",customers:"Z\xE1kazn\xEDci",invoices:"Faktury",estimates:"Odhady",payments:"Payments"},chart_info:{total_sales:"Slevy",total_receipts:"Doklady",total_expense:"V\xFDdaje",net_income:"\u010Cist\xFD p\u0159\xEDjem",year:"Vybrat rok"},monthly_chart:{title:"Prodeje a v\xFDdaje"},recent_invoices_card:{title:"Splatn\xE9 faktury",due_on:"Splatnost",customer:"Z\xE1kazn\xEDk",amount_due:"Splatn\xE1 \u010D\xE1stka",actions:"Akce",view_all:"Zobrazit v\u0161e"},recent_estimate_card:{title:"Ned\xE1vn\xE9 nab\xEDdky",date:"Datum",customer:"Z\xE1kazn\xEDk",amount_due:"\u010C\xE1stka k zaplacen\xED",actions:"Akce",view_all:"Zobrazit v\u0161e"}},Wn={name:"Jm\xE9no",description:"Popis",percent:"Procento",compound_tax:"Kombinovan\xE1 da\u0148"},Hn={search:"Hledat...",customers:"Z\xE1kazn\xEDci",users:"U\u017Eivatel\xE9",no_results_found:"Nebyly nalezeny \u017E\xE1dn\xE9 v\xFDsledky"},Yn={label:"P\u0159epnout firmy",no_results_found:"Nebyly nalezeny \u017E\xE1dn\xE9 v\xFDsledky",add_new_company:"P\u0159idat firmu",new_company:"Nov\xE1 firma",created_message:"Firma \xFAsp\u011B\u0161n\u011B vytvo\u0159ena"},Gn={today:"Dnes",this_week:"Tento t\xFDden",this_month:"Tento m\u011Bs\xEDc",this_quarter:"Toto \u010Dtvrtlet\xED",this_year:"Tento rok",previous_week:"P\u0159edchoz\xED t\xFDden",previous_month:"P\u0159edchoz\xED m\u011Bs\xEDc",previous_quarter:"P\u0159edchoz\xED \u010Dtvrtlet\xED",previous_year:"P\u0159edchoz\xED rok",custom:"Vlastn\xED"},Jn={title:"Z\xE1kazn\xEDci",prefix:"Prefix",add_customer:"P\u0159idat z\xE1kazn\xEDka",contacts_list:"Seznam z\xE1kazn\xEDk\u016F",name:"Jm\xE9no",mail:"E-mail | E-maily",statement:"V\xFDpis",display_name:"Zobrazen\xE9 jm\xE9no",primary_contact_name:"Jm\xE9no prim\xE1rn\xEDho kontaktu",contact_name:"Jm\xE9no kontaktu",amount_due:"\u010C\xE1stka k zaplacen\xED",email:"Email",address:"Adresa",phone:"Telefon",website:"Webov\xE1 str\xE1nka",overview:"P\u0159ehled",invoice_prefix:"Prefix pro faktury",estimate_prefix:"Prefix pro odhady",payment_prefix:"Prefix pro platby",enable_portal:"Povolit port\xE1l",country:"Zem\u011B",state:"St\xE1t",city:"M\u011Bsto",zip_code:"PS\u010C",added_on:"P\u0159id\xE1no dne",action:"Akce",password:"Heslo",confirm_password:"Potvrdit heslo",street_number:"\u010C\xEDslo ulice",primary_currency:"Prim\xE1rn\xED m\u011Bna",description:"Popis",add_new_customer:"P\u0159idat nov\xE9ho z\xE1kazn\xEDka",save_customer:"Ulo\u017Eit z\xE1kazn\xEDka",update_customer:"Aktualizovat z\xE1kazn\xEDka",customer:"Z\xE1kazn\xEDk | Z\xE1kazn\xEDci",new_customer:"Nov\xFD z\xE1kazn\xEDk",edit_customer:"Upravit z\xE1kazn\xEDka",basic_info:"Z\xE1kladn\xED informace",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:"Faktura\u010Dn\xED adresa",shipping_address:"Doru\u010Dovac\xED adresa",copy_billing_address:"Zkop\xEDrovat z fakturace",no_customers:"Dosud \u017E\xE1dn\xED z\xE1kazn\xEDci!",no_customers_found:"Nebyli nalezeni \u017E\xE1dn\xED z\xE1kazn\xEDci!",no_contact:"\u017D\xE1dn\xFD kontakt",no_contact_name:"Bez jm\xE9na kontaktu",list_of_customers:"Tato sekce bude obsahovat seznam z\xE1kazn\xEDk\u016F.",primary_display_name:"Prim\xE1rn\xED zobrazovan\xE9 jm\xE9no",select_currency:"Vybrat m\u011Bnu",select_a_customer:"Vybrat z\xE1kazn\xEDka",type_or_click:"Zadejte nebo klikn\u011Bte pro v\xFDb\u011Br",new_transaction:"Nov\xE1 transakce",no_matching_customers:"Neexistuj\xED \u017E\xE1dn\xED odpov\xEDdaj\xEDc\xED z\xE1kazn\xEDci!",phone_number:"Telefonn\xED \u010D\xEDslo",create_date:"Datum vytvo\u0159en\xED",confirm_delete:"Nebudete moci obnovit tohoto z\xE1kazn\xEDka a v\u0161echny jeho faktury, odhady a platby. | Nebudete moci obnovit tyto z\xE1kazn\xEDky a v\u0161echny jejich faktury, odhady a platby.",created_message:"Z\xE1kazn\xEDk \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Z\xE1kazn\xEDk \xFAsp\u011B\u0161n\u011B upraven",address_updated_message:"Address Information Updated succesfully",deleted_message:"Z\xE1kazn\xEDk \xFAsp\u011B\u0161n\u011B smaz\xE1n | Z\xE1kazn\xEDci \xFAsp\u011B\u0161n\u011B smaz\xE1ni",edit_currency_not_allowed:"Po vytvo\u0159en\xED transakce nelze zm\u011Bnit m\u011Bnu."},Qn={title:"Polo\u017Eky",items_list:"Seznam polo\u017Eek",name:"N\xE1zev",unit:"Jednotka",description:"Popis",added_on:"P\u0159id\xE1no",price:"Cena",date_of_creation:"Datum vytvo\u0159en\xED",not_selected:"Nen\xED vybr\xE1na \u017E\xE1dn\xE1 polo\u017Eka",action:"Akce",add_item:"P\u0159idat polo\u017Eku",save_item:"Ulo\u017Eit polo\u017Eku",update_item:"Aktualizovat polo\u017Eku",item:"Polo\u017Eka | Polo\u017Eky",add_new_item:"P\u0159idat novou polo\u017Eku",new_item:"Nov\xE1 polo\u017Eka",edit_item:"Upravit polo\u017Eku",no_items:"Zat\xEDm \u017E\xE1dn\xE9 polo\u017Eky!",list_of_items:"Tato sekce bude obsahovat seznam polo\u017Eek.",select_a_unit:"vyberte jednotku",taxes:"Dan\u011B",item_attached_message:"Nelze odstranit polo\u017Eku, kter\xE1 se ji\u017E pou\u017E\xEDv\xE1",confirm_delete:"Nebudete moci obnovit tuto polo\u017Eku | Nebudete moci obnovit tyto polo\u017Eky",created_message:"Polo\u017Eka byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Polo\u017Eka \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Polo\u017Eka byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna | Polo\u017Eky byly \xFAsp\u011B\u0161n\u011B odstran\u011Bny"},Xn={title:"Odhady",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"Odhad | Odhady",estimates_list:"Seznam odhad\u016F",days:"{days} dn\xED",months:"{months} m\u011Bs\xEDc",years:"{years} rok",all:"V\u0161e",paid:"Zaplacen\xE9",unpaid:"Neplacen\xE9",customer:"Z\xC1KAZN\xCDK",ref_no:"REFEREN\u010CN\xCD \u010C\xCDSLO",number:"\u010C\xCDSLO",amount_due:"\u010C\xC1STKA K ZAPLACEN\xCD",partially_paid:"\u010C\xE1ste\u010Dn\u011B zaplaceno",total:"Celkem",discount:"Sleva",sub_total:"Mezisou\u010Det",estimate_number:"Odhadovan\xE9 \u010D\xEDslo",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",contact:"Kontakt",add_item:"P\u0159idat polo\u017Eku",date:"Datum",due_date:"Datum splatnosti",expiry_date:"Datum expirace",status:"Stav",add_tax:"P\u0159idat da\u0148",amount:"\u010C\xE1stka",action:"Akce",notes:"Pozn\xE1mky",tax:"Da\u0148",estimate_template:"\u0160ablona",convert_to_invoice:"P\u0159ev\xE9st na fakturu",mark_as_sent:"Ozna\u010Dit jako odeslan\xE9",send_estimate:"Odeslat odhad",resend_estimate:"Znovu odeslat odhad",record_payment:"Zaznamenat platbu",add_estimate:"P\u0159idat odhad",save_estimate:"Ulo\u017Eit odhad",confirm_conversion:"Tento odhad bude pou\u017Eit k vytvo\u0159en\xED nov\xE9 faktury.",conversion_message:"Faktura byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",confirm_send_estimate:"Tento odhad bude zasl\xE1n e-mailem z\xE1kazn\xEDkovi",confirm_mark_as_sent:"Tento odhad bude ozna\u010Den jako odeslan\xFD",confirm_mark_as_accepted:"Tento odhad bude ozna\u010Den jako P\u0159ijat\xFD",confirm_mark_as_rejected:"Tento odhad bude ozna\u010Den jako Odm\xEDtnut\xFD",no_matching_estimates:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED odhady!",mark_as_sent_successfully:"Odhad byl ozna\u010Den jako \xFAsp\u011B\u0161n\u011B odesl\xE1n",send_estimate_successfully:"Odhad byl \xFAsp\u011B\u0161n\u011B odesl\xE1n",errors:{required:"Pole je povinn\xE9"},accepted:"P\u0159ijato",rejected:"Odm\xEDtnuto",expired:"Expired",sent:"Odesl\xE1no",draft:"Koncept",viewed:"Viewed",declined:"Odm\xEDtnuto",new_estimate:"Nov\xFD odhad",add_new_estimate:"P\u0159idat nov\xFD odhad",update_Estimate:"Aktualizovat odhad",edit_estimate:"Upravit odhad",items:"polo\u017Eky",Estimate:"Odhad | Odhady",add_new_tax:"P\u0159idat novou da\u0148",no_estimates:"Zat\xEDm \u017E\xE1dn\xE9 odhady!",list_of_estimates:"Tato sekce bude obsahovat seznam odhad\u016F.",mark_as_rejected:"Ozna\u010Dit jako odm\xEDtnut\xE9",mark_as_accepted:"Ozna\u010Dit jako p\u0159ijat\xE9",marked_as_accepted_message:"Odhad ozna\u010Den jako p\u0159ijat\xFD",marked_as_rejected_message:"Odhad ozna\u010Den jako odm\xEDtnut\xFD",confirm_delete:"Nebudete moci obnovit tento odhad | Nebudete moci obnovit tyto odhady",created_message:"Odhad \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Odhad \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"Odhad \xFAsp\u011B\u0161n\u011B odstran\u011Bn | Odhady \xFAsp\u011B\u0161n\u011B odstran\u011Bny",something_went_wrong:"n\u011Bco se nezda\u0159ilo",item:{title:"N\xE1zev polo\u017Eky",description:"Popis",quantity:"Mno\u017Estv\xED",price:"Cena",discount:"Sleva",total:"Celkem",total_discount:"Celkov\xE1 sleva",sub_total:"Mezisou\u010Det",tax:"Da\u0148",amount:"Mno\u017Estv\xED",select_an_item:"Pi\u0161te nebo klikn\u011Bte pro v\xFDb\u011Br polo\u017Eky",type_item_description:"Zadejte popis polo\u017Eky (voliteln\xE9)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},ei={title:"Faktury",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Seznam faktur",invoice_information:"Invoice Information",days:"{days} dn\xED",months:"{months} m\u011Bs\xEDc",years:"{years} rok",all:"V\u0161e",paid:"Zaplacen\xE9",unpaid:"Neplacen\xE9",viewed:"Zobrazen\xE9",overdue:"Po splatnosti",completed:"Dokon\u010Den\xE9",customer:"Z\xC1KAZN\xCDK",paid_status:"STAV PLATBY",ref_no:"REFEREN\u010CN\xCD \u010C\xCDSLO",number:"\u010C\xCDSLO",amount_due:"\u010C\xC1STKA K ZAPLACEN\xCD",partially_paid:"\u010C\xE1ste\u010Dn\u011B zaplaceno",total:"Celkem",discount:"Sleva",sub_total:"Mezisou\u010Det",invoice:"Faktura | Faktury",invoice_number:"\u010C\xEDslo faktury",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",contact:"Kontakt",add_item:"P\u0159idat polo\u017Eku",date:"Datum",due_date:"Datum splatnosti",status:"Stav",add_tax:"P\u0159idat da\u0148",amount:"\u010C\xE1stka",action:"Akce",notes:"Pozn\xE1mky",view:"Zobrazit",send_invoice:"Odeslat fakturu",resend_invoice:"Znovu odeslat fakturu",invoice_template:"\u0160ablona faktury",conversion_message:"Faktura byla \xFAsp\u011B\u0161n\u011B naklonov\xE1na",template:"Vybrat \u0161ablonu",mark_as_sent:"Ozna\u010Dit jako odeslan\xE9",confirm_send_invoice:"Tato faktura bude zasl\xE1na e-mailem z\xE1kazn\xEDkovi",invoice_mark_as_sent:"Tato faktura bude ozna\u010Dena jako odeslan\xE1",confirm_mark_as_accepted:"Tato faktura bude ozna\u010Dena jako p\u0159ijat\xE1",confirm_mark_as_rejected:"Tato faktura bude ozna\u010Dena jako odm\xEDtnut\xE1",confirm_send:"Tato faktura bude zasl\xE1na e-mailem z\xE1kazn\xEDkovi",invoice_date:"Datum fakturace",record_payment:"Zaznamenat platbu",add_new_invoice:"P\u0159idat novou fakturu",update_expense:"Aktualizovat v\xFDdaj",edit_invoice:"Upravit fakturu",new_invoice:"Nov\xE1 faktura",save_invoice:"Ulo\u017Eit fakturu",update_invoice:"Upravit fakturu",add_new_tax:"P\u0159idat novou da\u0148",no_invoices:"Zat\xEDm \u017E\xE1dn\xE9 faktury!",mark_as_rejected:"Ozna\u010Dit jako odm\xEDtnut\xE9",mark_as_accepted:"Ozna\u010Dit jako p\u0159ijat\xE9",list_of_invoices:"Tato sekce bude obsahovat seznam faktur.",select_invoice:"Vybrat fakturu",no_matching_invoices:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED faktury!",mark_as_sent_successfully:"Faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odeslan\xE1",invoice_sent_successfully:"Faktura byla \xFAsp\u011B\u0161n\u011B odesl\xE1na",cloned_successfully:"Faktura \xFAsp\u011B\u0161n\u011B naklonov\xE1na",clone_invoice:"Naklonovat fakturu",confirm_clone:"Tato faktura bude naklonov\xE1na do nov\xE9 faktury",item:{title:"N\xE1zev polo\u017Eky",description:"Popis",quantity:"Mno\u017Estv\xED",price:"Cena",discount:"Sleva",total:"Celkem",total_discount:"Celkov\xE1 sleva",sub_total:"Mezisou\u010Det",tax:"Da\u0148",amount:"Mno\u017Estv\xED",select_an_item:"Pi\u0161te nebo klikn\u011Bte pro v\xFDb\u011Br polo\u017Eky",type_item_description:"Zadejte popis polo\u017Eky (voliteln\xE9)"},payment_attached_message:"Na jedn\xE9 z vybran\xFDch faktur je ji\u017E p\u0159ilo\u017Eena platba. Nezapome\u0148te nejprve odstranit p\u0159ipojen\xE9 platby, abyste mohli pokra\u010Dovat s odstran\u011Bn\xEDm",confirm_delete:"Nebudete moci obnovit tuto fakturu | Nebudete moci obnovit tyto faktury",created_message:"Faktura byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Faktura byla \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Faktura byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna | Faktury byly \xFAsp\u011B\u0161n\u011B odstran\u011Bny",marked_as_sent_message:"Faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odeslan\xE1",something_went_wrong:"n\u011Bco se nezda\u0159ilo",invalid_due_amount_message:"Celkov\xE1 \u010D\xE1stka faktury nem\u016F\u017Ee b\xFDt ni\u017E\u0161\xED ne\u017E celkov\xE1 \u010D\xE1stka zaplacen\xE1 za tuto fakturu. Chcete-li pokra\u010Dovat, upravte fakturu nebo sma\u017Ete souvisej\xEDc\xED platby.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},ti={title:"Opakuj\xEDc\xED se faktury",invoices_list:"Seznam opakuj\xEDc\xEDch se faktur",days:"{days} dn\xED",months:"{months} m\u011Bs\xEDc",years:"{years} rok",all:"V\u0161echny",paid:"Zaplacen\xE9",unpaid:"Neplacen\xE9",viewed:"Zobrazen\xE9",overdue:"Po splatnosti",active:"Aktivn\xED",completed:"Dokon\u010Den\xE9",customer:"Z\xC1KAZN\xCDK",paid_status:"STAV PLATBY",ref_no:"REFEREN\u010CN\xCD \u010C\xCDSLO",number:"\u010C\xCDSLO",amount_due:"\u010C\xC1STKA K ZAPLACEN\xCD",partially_paid:"\u010C\xE1ste\u010Dn\u011B zaplaceno",total:"Celkem",discount:"Sleva",sub_total:"Mezisou\u010Det",invoice:"Opakuj\xEDc\xED se faktura | Opakuj\xEDc\xED se faktury",invoice_number:"\u010C\xEDslo opakuj\xEDc\xED se faktury",next_invoice_date:"Datum dal\u0161\xED fakturace",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",contact:"Kontakt",add_item:"P\u0159idat polo\u017Eku",date:"Datum",limit_by:"Omezit podle",limit_date:"Omezit datum",limit_count:"Omezit po\u010Det",count:"Po\u010Det",status:"Stav",select_a_status:"Vyberte stav",working:"Pracuje",on_hold:"\u010Cekaj\xEDc\xED",complete:"Dokon\u010Deno",add_tax:"P\u0159idat da\u0148",amount:"Mno\u017Estv\xED",action:"Akce",notes:"Pozn\xE1mky",view:"Zobrazit",basic_info:"Z\xE1kladn\xED informace",send_invoice:"Odeslat opakuj\xEDc\xED se fakturu",auto_send:"Automaticky odeslat",resend_invoice:"Znovu odeslat opakuj\xEDc\xED se fakturu",invoice_template:"\u0160ablona opakuj\xEDc\xED se faktury",conversion_message:"Opakuj\xEDc\xED se faktura byla \xFAsp\u011B\u0161n\u011B naklonov\xE1na",template:"\u0160ablona",mark_as_sent:"Ozna\u010Dit jako odeslan\xE9",confirm_send_invoice:"Tato opakuj\xEDc\xED se faktura bude odesl\xE1na e-mailem z\xE1kazn\xEDkovi",invoice_mark_as_sent:"Tato opakuj\xEDc\xED se faktura bude ozna\u010Dena jako odeslan\xE1",confirm_send:"Tato opakuj\xEDc\xED se faktura bude odesl\xE1na e-mailem z\xE1kazn\xEDkovi",starts_at:"Po\u010D\xE1te\u010Dn\xED datum",due_date:"Splatnost faktury",record_payment:"Zaznamenat platbu",add_new_invoice:"P\u0159idat novou opakuj\xEDc\xED se fakturu",update_expense:"Aktualizovat v\xFDdaje",edit_invoice:"Upravit opakuj\xEDc\xED se fakturu",new_invoice:"P\u0159idat novou opakuj\xEDc\xED se fakturu",send_automatically:"Odeslat automaticky",send_automatically_desc:"Povolte, pokud chcete automaticky odeslat fakturu z\xE1kazn\xEDkovi po jej\xEDm vytvo\u0159en\xED.",save_invoice:"Ulo\u017Eit opakuj\xEDc\xED se fakturu",update_invoice:"Upravit opakuj\xEDc\xED se fakturu",add_new_tax:"P\u0159idat novou da\u0148",no_invoices:"Zat\xEDm \u017E\xE1dn\xE9 opakuj\xEDc\xED se faktury!",mark_as_rejected:"Ozna\u010Dit jako odm\xEDtnut\xE9",mark_as_accepted:"Ozna\u010Dit jako p\u0159ijat\xE9",list_of_invoices:"Tato sekce bude obsahovat seznam opakuj\xEDc\xEDch se faktur.",select_invoice:"Vybrat fakturu",no_matching_invoices:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED opakuj\xEDc\xED se faktury!",mark_as_sent_successfully:"Opakuj\xEDc\xED se faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odeslan\xE1",invoice_sent_successfully:"Opakuj\xEDc\xED se faktura byla \xFAsp\u011B\u0161n\u011B odesl\xE1na",cloned_successfully:"Opakuj\xEDc\xED se faktura \xFAsp\u011B\u0161n\u011B naklonov\xE1na",clone_invoice:"Naklonovat opakuj\xEDc\xED se fakturu",confirm_clone:"Tato opakuj\xEDc\xED se faktura bude naklonov\xE1na do nov\xE9 opakuj\xEDc\xED se faktury",item:{title:"N\xE1zev polo\u017Eky",description:"Popis",quantity:"Mno\u017Estv\xED",price:"Cena",discount:"Sleva",total:"Celkem",total_discount:"Celkov\xE1 sleva",sub_total:"Mezisou\u010Det",tax:"Da\u0148",amount:"Mno\u017Estv\xED",select_an_item:"Pi\u0161te nebo klikn\u011Bte pro v\xFDb\u011Br polo\u017Eky",type_item_description:"Zadejte popis polo\u017Eky (voliteln\xE9)"},frequency:{title:"\u010Cetnost",select_frequency:"Vybrat \u010Detnost",minute:"Minuta",hour:"Hodina",day_month:"Den v m\u011Bs\xEDci",month:"M\u011Bs\xEDc",day_week:"Den v t\xFDdnu"},confirm_delete:"Nebudete moci obnovit tuto fakturu | Nebudete moci obnovit tyto faktury",created_message:"Opakuj\xEDc\xED se faktura byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Opakuj\xEDc\xED se faktura \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Opakuj\xEDc\xED se faktura \xFAsp\u011B\u0161n\u011B smaz\xE1na | Opakuj\xEDc\xED se faktury \xFAsp\u011B\u0161n\u011B odstran\u011Bny",marked_as_sent_message:"Opakuj\xEDc\xED se faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odesl\xE1na",user_email_does_not_exist:"E-mail u\u017Eivatele neexistuje",something_went_wrong:"n\u011Bco se nezda\u0159ilo",invalid_due_amount_message:"Celkov\xE1 \u010D\xE1stka opakovan\xE9 faktury nem\u016F\u017Ee b\xFDt ni\u017E\u0161\xED ne\u017E celkov\xE1 \u010D\xE1stka zaplacen\xE1 za tuto opakuj\xEDc\xED se fakturu. Pro pokra\u010Dov\xE1n\xED aktualizujte fakturu nebo odstra\u0148te souvisej\xEDc\xED platby."},ai={title:"Platby",payments_list:"Seznam plateb",record_payment:"Zaznamenat platbu",customer:"Z\xE1kazn\xEDk",date:"Datum",amount:"Mno\u017Estv\xED",action:"Akce",payment_number:"\u010C\xEDslo platby",payment_mode:"Platebn\xED metoda",invoice:"Faktura",note:"Pozn\xE1mka",add_payment:"P\u0159idat platbu",new_payment:"Nov\xE1 platba",edit_payment:"Upravit platbu",view_payment:"Zobrazit platbu",add_new_payment:"P\u0159idat novou platbu",send_payment_receipt:"Odeslat potvrzen\xED o platb\u011B",send_payment:"Odeslat platbu",save_payment:"Ulo\u017Eit platbu",update_payment:"Upravit platbu",payment:"Platba | Platby",no_payments:"Zat\xEDm \u017E\xE1dn\xE9 platby!",not_selected:"Nevybr\xE1no",no_invoice:"\u017D\xE1dn\xE1 faktura",no_matching_payments:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED platby!",list_of_payments:"Tato sekce bude obsahovat seznam plateb.",select_payment_mode:"Vyberte platebn\xED metodu",confirm_mark_as_sent:"Tento odhad bude ozna\u010Den jako odeslan\xFD",confirm_send_payment:"Tato platba bude odesl\xE1na e-mailem z\xE1kazn\xEDkovi",send_payment_successfully:"Platba byla \xFAsp\u011B\u0161n\u011B odesl\xE1na",something_went_wrong:"n\u011Bco se nezda\u0159ilo",confirm_delete:"Tuto platbu nebudete moci obnovit | Tyto platby nebudete moci obnovit",created_message:"Platba \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Platba \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Platba \xFAsp\u011B\u0161n\u011B odstran\u011Bna | Platby \xFAsp\u011B\u0161n\u011B odstran\u011Bny",invalid_amount_message:"\u010C\xE1stka platby je neplatn\xE1"},ni={title:"V\xFDdaje",expenses_list:"Seznam v\xFDdaj\u016F",select_a_customer:"Vyberte z\xE1kazn\xEDka",expense_title:"Nadpis",customer:"Z\xE1kazn\xEDk",currency:"M\u011Bna",contact:"Kontakt",category:"Kategorie",from_date:"Od data",to_date:"Do data",expense_date:"Datum",description:"Popis",receipt:"Doklad",amount:"\u010C\xE1stka",action:"Akce",not_selected:"Nevybr\xE1no",note:"Pozn\xE1mka",category_id:"ID kategorie",date:"Datum",add_expense:"P\u0159idat v\xFDdaj",add_new_expense:"P\u0159idat nov\xFD v\xFDdaj",save_expense:"Ulo\u017Eit v\xFDdaj",update_expense:"Upravit v\xFDdaj",download_receipt:"St\xE1hnout doklad",edit_expense:"Upravit v\xFDdaj",new_expense:"Nov\xFD v\xFDdaj",expense:"V\xFDdaj | V\xFDdaje",no_expenses:"Zat\xEDm \u017E\xE1dn\xE9 v\xFDdaje!",list_of_expenses:"Tato sekce bude obsahovat seznam v\xFDdaj\u016F.",confirm_delete:"Nebudete moci obnovit tento v\xFDdaj | Nebudete moci obnovit tyto v\xFDdaje",created_message:"V\xFDdaj \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"V\xFDdaj \xFAsp\u011B\u0161n\u011B aktualizov\xE1n",deleted_message:"V\xFDdaj byl \xFAsp\u011B\u0161n\u011B odstran\u011Bn | V\xFDdaje byly \xFAsp\u011B\u0161n\u011B odstran\u011Bny",categories:{categories_list:"Seznam kategori\xED",title:"Nadpis",name:"N\xE1zev",description:"Popis",amount:"Mno\u017Estv\xED",actions:"Akce",add_category:"P\u0159idat kategorii",new_category:"Nov\xE1 kategorie",category:"Kategorie | Kategorie",select_a_category:"Vyberte kategorii"}},ii={email:"E-mail",password:"Heslo",forgot_password:"Zapomn\u011Bli jste heslo?",or_signIn_with:"nebo se p\u0159ihla\u0161te pomoc\xED",login:"P\u0159ihl\xE1\u0161en\xED",register:"Registrace",reset_password:"Obnovit heslo",password_reset_successfully:"Obnoven\xED hesla prob\u011Bhlo \xFAsp\u011B\u0161n\u011B",enter_email:"Zadejte e-mail",enter_password:"Zadejte heslo",retype_password:"Zadejte heslo znovu"},oi={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"},si={title:"U\u017Eivatel\xE9",users_list:"Seznam u\u017Eivatel\u016F",name:"Jm\xE9no",description:"Popis",added_on:"P\u0159id\xE1no dne",date_of_creation:"Datum vytvo\u0159en\xED",action:"Akce",add_user:"P\u0159idat u\u017Eivatele",save_user:"Ulo\u017Eit u\u017Eivatele",update_user:"Upravit u\u017Eivatele",user:"U\u017Eivatel | U\u017Eivatel\xE9",add_new_user:"P\u0159idat nov\xE9ho u\u017Eivatele",new_user:"Nov\xFD u\u017Eivatel",edit_user:"Upravit u\u017Eivatele",no_users:"Zat\xEDm \u017E\xE1dn\xED u\u017Eivatel\xE9!",list_of_users:"Tato sekce bude obsahovat seznam u\u017Eivatel\u016F.",email:"E-mail",phone:"Telefon",password:"Heslo",user_attached_message:"Nelze odstranit polo\u017Eku, kter\xE1 se ji\u017E pou\u017E\xEDv\xE1",confirm_delete:"Nebudete moci obnovit tohoto u\u017Eivatele | Nebudete schopni obnovit tyto u\u017Eivatele",created_message:"U\u017Eivatel byl \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"U\u017Eivatel byl \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"U\u017Eivatel byl \xFAsp\u011B\u0161n\u011B odstran\u011Bn | U\u017Eivatel\xE9 byli \xFAsp\u011B\u0161n\u011B odstran\u011Bni",select_company_role:"Vyberte roli pro {company}",companies:"Spole\u010Dnosti"},ri={title:"Report",from_date:"Datum od",to_date:"Do data",status:"Stav",paid:"Zaplaceno",unpaid:"Nezaplaceno",download_pdf:"St\xE1hnout PDF",view_pdf:"Zobrazit PDF",update_report:"Upravit report",report:"Report | Reporty",profit_loss:{profit_loss:"Zisk a ztr\xE1ta",to_date:"Do data",from_date:"Od data",date_range:"Vybrat \u010Dasov\xFD rozsah"},sales:{sales:"Prodeje",date_range:"Vybrat \u010Dasov\xFD rozsah",to_date:"Do data",from_date:"Od data",report_type:"Typ reportu"},taxes:{taxes:"Dan\u011B",to_date:"Do data",from_date:"Od data",date_range:"Vybrat \u010Dasov\xFD rozsah"},errors:{required:"Pole je povinn\xE9"},invoices:{invoice:"Faktura",invoice_date:"Datum fakturace",due_date:"Datum splatnosti",amount:"Mno\u017Estv\xED",contact_name:"Jm\xE9no kontaktu",status:"Stav"},estimates:{estimate:"Odhad",estimate_date:"Datum odhadu",due_date:"Datum splatnosti",estimate_number:"\u010C\xEDslo odhadu",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",amount:"Mno\u017Estv\xED",contact_name:"Jm\xE9no kontaktu",status:"Stav"},expenses:{expenses:"V\xFDdaje",category:"Kategorie",date:"Datum",amount:"Mno\u017Estv\xED",to_date:"Do data",from_date:"Od data",date_range:"Vyberte rozsah data"}},di={menu_title:{account_settings:"Nastaven\xED \xFA\u010Dtu",company_information:"Informace o spole\u010Dnosti",customization:"P\u0159izp\u016Fsoben\xED",preferences:"Preference",notifications:"Ozn\xE1men\xED",tax_types:"Typy dan\xED",expense_category:"Kategorie v\xFDdaj\u016F",update_app:"Aktualizace aplikace",backup:"Z\xE1lohov\xE1n\xED",file_disk:"Souborov\xFD disk",custom_fields:"Vlastn\xED pole",payment_modes:"Zp\u016Fsoby plateb",notes:"Pozn\xE1mky",exchange_rate:"Sm\u011Bnn\xFD kurz",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},title:"Nastaven\xED",setting:"Nastaven\xED | Nastaven\xED",general:"Obecn\xE9",language:"Jazyk",primary_currency:"Prim\xE1rn\xED m\u011Bna",timezone:"\u010Casov\xE1 z\xF3na",date_format:"Form\xE1t data",currencies:{title:"M\u011Bny",currency:"M\u011Bna | M\u011Bny",currencies_list:"Seznam m\u011Bn",select_currency:"Vyberte m\u011Bnu",name:"N\xE1zev",code:"K\xF3d",symbol:"Symbol",precision:"P\u0159esnost",thousand_separator:"Odd\u011Blova\u010D tis\xEDc\u016F",decimal_separator:"Odd\u011Blova\u010D desetinn\xFDch m\xEDst",position:"Um\xEDst\u011Bn\xED",position_of_symbol:"Um\xEDst\u011Bn\xED symbolu",right:"Vpravo",left:"Vlevo",action:"Akce",add_currency:"P\u0159idat m\u011Bnu"},mail:{host:"Hostitel e-mailu",port:"Port e-mailu",driver:"Ovlada\u010D e-mail\u016F",secret:"Tajn\xFD kl\xED\u010D",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\xE9na",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"E-mailov\xE9 heslo",username:"U\u017Eivatelsk\xE9 jm\xE9no pro e-mail",mail_config:"Konfigurace e-mailu",from_name:"Jm\xE9no odes\xEDlatele",from_mail:"Z e-mailov\xE9 adresy",encryption:"\u0160ifrov\xE1n\xED e-mailu",mail_config_desc:"N\xED\u017Ee je uveden formul\xE1\u0159 pro konfiguraci e-mailov\xE9ho ovlada\u010De pro odes\xEDl\xE1n\xED e-mail\u016F z aplikace. M\u016F\u017Eete tak\xE9 nakonfigurovat poskytovatele t\u0159et\xEDch stran, jako je Sendgrid, SES atd."},pdf:{title:"Nastaven\xED PDF",footer_text:"Text z\xE1pat\xED",pdf_layout:"Rozvr\u017Een\xED PDF"},company_info:{company_info:"\xDAdaje o spole\u010Dnosti",company_name:"N\xE1zev spole\u010Dnosti",company_logo:"Logo spole\u010Dnosti",section_description:"Informace o va\u0161\xED spole\u010Dnosti, kter\xE1 bude zobrazena na faktur\xE1ch, odhadech a dal\u0161\xEDch dokladech vytvo\u0159en\xFDch v Crateru.",phone:"Telefon",country:"Zem\u011B",state:"St\xE1t",city:"M\u011Bsto",address:"Adresa",zip:"PS\u010C",save:"Ulo\u017Eit",delete:"Smazat",updated_message:"Informace o spole\u010Dnosti byly \xFAsp\u011B\u0161n\u011B aktualizov\xE1ny",delete_company:"Odstranit spole\u010Dnost",delete_company_description:"Jakmile svou spole\u010Dnost odstran\xEDte, trvale p\u0159ijdete o v\u0161echna data a soubory s n\xED spojen\xE9.",are_you_absolutely_sure:"Jste si opravdu jisti?",delete_company_modal_desc:"Tuto akci nelze vr\xE1tit zp\u011Bt. Tato akce trvale odstran\xED {company} a v\u0161echna souvisej\xEDc\xED data.",delete_company_modal_label:"Zadejte pros\xEDm {company} pro potvrzen\xED"},custom_fields:{title:"Vlastn\xED pole",section_description:"P\u0159izp\u016Fsobte si sv\xE9 faktury, odhady a potvrzen\xED o platb\u011B podle vlastn\xEDch pol\xED. Ujist\u011Bte se, \u017Ee pou\u017E\xEDv\xE1te n\xED\u017Ee p\u0159idan\xE1 pole ve form\xE1tu adresy na str\xE1nce pro p\u0159izp\u016Fsoben\xED.",add_custom_field:"P\u0159idat vlastn\xED pole",edit_custom_field:"Upravit vlastn\xED pole",field_name:"N\xE1zev pole",label:"Popis",type:"Typ",name:"Jm\xE9no",slug:"Pah\xFDl",required:"Povinn\xE9",placeholder:"Z\xE1stupn\xFD text",help_text:"Text n\xE1pov\u011Bdy",default_value:"V\xFDchoz\xED hodnota",prefix:"Prefix",starting_number:"Po\u010D\xE1te\u010Dn\xED \u010D\xEDslo",model:"Model",help_text_description:"Zadejte n\u011Bjak\xFD text, kter\xFD pom\u016F\u017Ee u\u017Eivatel\u016Fm pochopit \xFA\u010Del tohoto vlastn\xEDho pole.",suffix:"Sufix",yes:"Ano",no:"Ne",order:"Po\u0159ad\xED",custom_field_confirm_delete:"Nebudete moci obnovit toto vlastn\xED pole",already_in_use:"Vlastn\xED pole je ji\u017E pou\u017E\xEDv\xE1no",deleted_message:"Vlastn\xED pole bylo \xFAsp\u011B\u0161n\u011B odstran\u011Bno",options:"mo\u017Enosti",add_option:"P\u0159idat mo\u017Enosti",add_another_option:"P\u0159idat dal\u0161\xED mo\u017Enost",sort_in_alphabetical_order:"\u0158adit v abecedn\xEDm po\u0159ad\xED",add_options_in_bulk:"P\u0159idat mo\u017Enosti hromadn\u011B",use_predefined_options:"Pou\u017E\xEDt p\u0159eddefinovan\xE9 mo\u017Enosti",select_custom_date:"Vyberte vlastn\xED datum",select_relative_date:"Vyberte relativn\xED datum",ticked_by_default:"Ve v\xFDchoz\xEDm nastaven\xED za\u0161krtnuto",updated_message:"Vlastn\xED pole bylo \xFAsp\u011B\u0161n\u011B upraveno",added_message:"Vlastn\xED pole bylo \xFAsp\u011B\u0161n\u011B p\u0159id\xE1no",press_enter_to_add:"Stiskn\u011Bte Enter pro p\u0159id\xE1n\xED nov\xE9 mo\u017Enosti",model_in_use:"Nelze aktualizovat model pro pole, kter\xE1 jsou ji\u017E pou\u017E\xEDv\xE1na.",type_in_use:"Nelze aktualizovat typ pro pole, kter\xE1 jsou ji\u017E pou\u017E\xEDv\xE1na."},customization:{customization:"p\u0159izp\u016Fsoben\xED",updated_message:"Informace o spole\u010Dnosti byly \xFAsp\u011B\u0161n\u011B aktualizov\xE1ny",save:"Ulo\u017Eit",insert_fields:"Vlo\u017Eit pole",learn_custom_format:"Zjist\u011Bte, jak pou\u017E\xEDvat vlastn\xED form\xE1t",add_new_component:"P\u0159idat novou komponentu",component:"Komponenty",Parameter:"Parametr",series:"\u0158ada",series_description:"Pro nastaven\xED statick\xE9ho prefixu/postfixu jako 'INV' nap\u0159\xED\u010D va\u0161\xED spole\u010Dnost\xED. Podporuje d\xE9lku a\u017E 4 znaky.",series_param_label:"Hodnota \u0159ady",delimiter:"Odd\u011Blova\u010D",delimiter_description:"Jeden znak pro ur\u010Den\xED hranice mezi 2 samostatn\xFDmi komponentami. Ve v\xFDchoz\xEDm nastaven\xED je nastaveno na -",delimiter_param_label:"Hodnota odd\u011Blova\u010De",date_format:"Form\xE1t data",date_format_description:"Pole pro form\xE1t m\xEDstn\xED data a \u010Dasu. V\xFDchoz\xED form\xE1t: 'Y' vykresluje aktu\xE1ln\xED rok.",date_format_param_label:"Form\xE1t",sequence:"Sekvence",sequence_description:"Po sob\u011B jdouc\xED posloupnost \u010D\xEDsel ve va\u0161\xED spole\u010Dnosti. M\u016F\u017Eete ur\u010Dit d\xE9lku dan\xE9ho parametru.",sequence_param_label:"D\xE9lka sekvence",customer_series:"\u0158ada z\xE1kazn\xEDk\u016F",customer_series_description:"Mo\u017Enost nastavit jin\xFD prefix/postfix pro ka\u017Ed\xE9ho z\xE1kazn\xEDka.",customer_sequence:"Sekvence z\xE1kazn\xEDk\u016F",customer_sequence_description:"Po sob\u011B jdouc\xED posloupnost \u010D\xEDsel pro ka\u017Ed\xE9ho z\xE1kazn\xEDka.",customer_sequence_param_label:"D\xE9lka sekvence",random_sequence:"N\xE1hodn\xE1 sekvence",random_sequence_description:"N\xE1hodn\xFD alfanumerick\xFD \u0159et\u011Bzec. M\u016F\u017Eete ur\u010Dit d\xE9lku dan\xE9ho parametru.",random_sequence_param_label:"D\xE9lka sekvence",invoices:{title:"Faktury",invoice_number_format:"Form\xE1t \u010D\xEDsla faktury",invoice_number_format_description:"P\u0159izp\u016Fsobte si, jak bude va\u0161e \u010D\xEDslo faktury automaticky generov\xE1no p\u0159i vytv\xE1\u0159en\xED nov\xE9 faktury.",preview_invoice_number:"N\xE1hled \u010D\xEDsla faktury",due_date:"Datum splatnosti",due_date_description:"Ur\u010Dete, jak se automaticky nastavuje datum splatnosti vytv\xE1\u0159en\xED faktury.",due_date_days:"Splatnost faktury po dnech",set_due_date_automatically:"Automaticky nastavit datum splatnosti",set_due_date_automatically_description:"Povolte, pokud chcete nastavit datum splatnosti automaticky p\u0159i vytvo\u0159en\xED nov\xE9 faktury.",default_formats:"V\xFDchoz\xED form\xE1ty",default_formats_description:"N\xED\u017Ee uveden\xE9 form\xE1ty se pou\u017E\xEDvaj\xED k automatick\xE9mu vypln\u011Bn\xED pol\xED p\u0159i vytv\xE1\u0159en\xED faktury.",default_invoice_email_body:"V\xFDchoz\xED text e-mailu pro faktury",company_address_format:"Form\xE1t adresy spole\u010Dnosti",shipping_address_format:"Form\xE1t doru\u010Dovac\xED adresy",billing_address_format:"Form\xE1t faktura\u010Dn\xED adresy",invoice_email_attachment:"Odes\xEDlat faktury jako p\u0159\xEDlohy",invoice_email_attachment_setting_description:"Povolte, pokud chcete odes\xEDlat faktury jako p\u0159\xEDlohy e-mailu. Vezm\u011Bte pros\xEDm na v\u011Bdom\xED, \u017Ee tla\u010D\xEDtko 'Zobrazit fakturu' v e-mailech se ji\u017E nezobraz\xED, pokud je povoleno.",invoice_settings_updated:"Nastaven\xED faktur bylo \xFAsp\u011B\u0161n\u011B upraveno",retrospective_edits:"Zp\u011Btn\xE9 \xFApravy",allow:"Povolit",disable_on_invoice_partial_paid:"Zak\xE1zat po zaznamen\xE1n\xED \u010D\xE1ste\u010Dn\xE9 platby",disable_on_invoice_paid:"Vypnout po zaplacen\xED pln\xE9 platby",disable_on_invoice_sent:"Vypnout po odesl\xE1n\xED faktury",retrospective_edits_description:" Na z\xE1klad\u011B z\xE1kon\u016F va\u0161\xED zem\u011B nebo va\u0161ich preferenc\xED m\u016F\u017Eete u\u017Eivatel\u016Fm br\xE1nit v \xFAprav\u011B dokon\u010Den\xFDch faktur."},estimates:{title:"Odhady",estimate_number_format:"Form\xE1t \u010D\xEDsla odhadu",estimate_number_format_description:"P\u0159izp\u016Fsobte si, jak bude va\u0161e \u010D\xEDslo odhadu automaticky generov\xE1no, p\u0159i vytv\xE1\u0159en\xED nov\xE9ho odhadu.",preview_estimate_number:"N\xE1hled \u010D\xEDsla odhadu",expiry_date:"Datum expirace",expiry_date_description:"Ur\u010Dete, jak se automaticky nastavuje datum expirace p\u0159i vytv\xE1\u0159en\xED odhadu.",expiry_date_days:"Platnost odhadu vypr\u0161\xED za dny",set_expiry_date_automatically:"Automaticky nastavit datum expirace",set_expiry_date_automatically_description:"Povolte, pokud chcete nastavit datum expirace automaticky p\u0159i vytvo\u0159en\xED nov\xE9ho odhadu.",default_formats:"V\xFDchoz\xED form\xE1ty",default_formats_description:"N\xED\u017Ee uveden\xE9 form\xE1ty se pou\u017E\xEDvaj\xED k automatick\xE9mu vypln\u011Bn\xED pol\xED p\u0159i vytv\xE1\u0159en\xED odhadu.",default_estimate_email_body:"V\xFDchoz\xED text e-mailu pro odhady",company_address_format:"Form\xE1t adresy spole\u010Dnosti",shipping_address_format:"Form\xE1t doru\u010Dovac\xED adresy",billing_address_format:"Form\xE1t faktura\u010Dn\xED adresy",estimate_email_attachment:"Odeslat odhady jako p\u0159\xEDlohy",estimate_email_attachment_setting_description:"Povolte, pokud chcete odes\xEDlat odhady jako p\u0159\xEDlohy e-mailu. Vezm\u011Bte pros\xEDm na v\u011Bdom\xED, \u017Ee tla\u010D\xEDtko 'Zobrazit odhad' v e-mailech se ji\u017E nezobraz\xED, pokud je povoleno.",estimate_settings_updated:"Nastaven\xED odhad\u016F \xFAsp\u011B\u0161n\u011B upraveno",convert_estimate_options:"Akce konverze odhadu",convert_estimate_description:"Ur\u010Dete, co se stane s odhadem pot\xE9, co se p\u0159evede na fakturu.",no_action:"\u017D\xE1dn\xE1 akce",delete_estimate:"Odstranit odhad",mark_estimate_as_accepted:"Ozna\u010Dit odhad za p\u0159ijat\xFD"},payments:{title:"Platby",payment_number_format:"Form\xE1t \u010D\xEDsel plateb",payment_number_format_description:"P\u0159izp\u016Fsobte si, jak se bude \u010D\xEDslo platby automaticky generovat, kdy\u017E vytvo\u0159\xEDte novou platbu.",preview_payment_number:"N\xE1hled \u010D\xEDsla platby",default_formats:"V\xFDchoz\xED form\xE1ty",default_formats_description:"N\xED\u017Ee uveden\xE9 form\xE1ty se pou\u017E\xEDvaj\xED k automatick\xE9mu vypln\u011Bn\xED pol\xED p\u0159i vytv\xE1\u0159en\xED plateb.",default_payment_email_body:"V\xFDchoz\xED text e-mailu platby",company_address_format:"Form\xE1t adresy spole\u010Dnosti",from_customer_address_format:"Z form\xE1tu adresy z\xE1kazn\xEDka",payment_email_attachment:"Odes\xEDlat platby jako p\u0159\xEDlohy",payment_email_attachment_setting_description:"Povolte, pokud chcete odeslat potvrzen\xED o platb\u011B jako p\u0159\xEDlohu e-mailu. Vezm\u011Bte pros\xEDm na v\u011Bdom\xED, \u017Ee tla\u010D\xEDtko 'Zobrazit platbu' v e-mailech se ji\u017E nebude zobrazovat, pokud je povoleno.",payment_settings_updated:"Nastaven\xED plateb bylo \xFAsp\u011B\u0161n\u011B upraveno"},items:{title:"Polo\u017Eky",units:"Jednotky",add_item_unit:"P\u0159idat jednotku polo\u017Eky",edit_item_unit:"Upravit jednotku polo\u017Eky",unit_name:"N\xE1zev jednotky",item_unit_added:"Jednotka polo\u017Eky p\u0159id\xE1na",item_unit_updated:"Jednotka polo\u017Eky upravena",item_unit_confirm_delete:"Nebudete moci obnovit tuto jednotku polo\u017Eky",already_in_use:"Jednotka polo\u017Eky se ji\u017E pou\u017E\xEDv\xE1",deleted_message:"Jednotka polo\u017Eky byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna"},notes:{title:"Pozn\xE1mky",description:"U\u0161et\u0159ete \u010Das vytvo\u0159en\xEDm pozn\xE1mek a jejich op\u011Btovn\xFDm pou\u017Eit\xEDm na faktur\xE1ch, odhadech a platb\xE1ch.",notes:"Pozn\xE1mky",type:"Typ",add_note:"P\u0159idat pozn\xE1mku",add_new_note:"P\u0159idat novou pozn\xE1mku",name:"Jm\xE9no",edit_note:"Upravit pozn\xE1mku",note_added:"Pozn\xE1mka \xFAsp\u011B\u0161n\u011B p\u0159id\xE1na",note_updated:"Pozn\xE1mka \xFAsp\u011B\u0161n\u011B upravena",note_confirm_delete:"Nebudete moci obnovit tuto pozn\xE1mku",already_in_use:"Pozn\xE1mka je ji\u017E pou\u017E\xEDv\xE1na",deleted_message:"Pozn\xE1mka byla \xFAsp\u011B\u0161n\u011B smaz\xE1na"}},account_settings:{profile_picture:"Profilov\xFD obr\xE1zek",name:"Jm\xE9no",email:"E-mail",password:"Heslo",confirm_password:"Potvrdit heslo",account_settings:"Nastaven\xED \xFA\u010Dtu",save:"Ulo\u017Eit",section_description:"Sv\xE9 jm\xE9no, e-mail a heslo m\u016F\u017Eete aktualizovat pomoc\xED formul\xE1\u0159e n\xED\u017Ee.",updated_message:"Nastaven\xED \xFA\u010Dtu bylo \xFAsp\u011B\u0161n\u011B aktualizov\xE1no"},user_profile:{name:"Jm\xE9no",email:"E-mail",password:"Heslo",confirm_password:"Potvrzen\xED hesla"},notification:{title:"Ozn\xE1men\xED",email:"Pos\xEDlat ozn\xE1men\xED na",description:"Kter\xE1 e-mailov\xE1 ozn\xE1men\xED chcete dost\xE1vat, kdy\u017E se n\u011Bco zm\u011Bn\xED?",invoice_viewed:"Faktura zobrazena",invoice_viewed_desc:"Kdy\u017E si v\xE1\u0161 z\xE1kazn\xEDk zobraz\xED fakturu odesl\xE1nou p\u0159es hlavn\xED panel Crateru.",estimate_viewed:"Odhad zobrazen",estimate_viewed_desc:"Kdy\u017E si v\xE1\u0161 z\xE1kazn\xEDk zobraz\xED odhad odeslan\xFD p\u0159es hlavn\xED panel Crateru.",save:"Ulo\u017Eit",email_save_message:"E-mail \xFAsp\u011B\u0161n\u011B ulo\u017Een",please_enter_email:"Pros\xEDm, zadejte e-mail"},roles:{title:"Role",description:"Spr\xE1va rol\xED a opr\xE1vn\u011Bn\xED t\xE9to spole\u010Dnosti",save:"Ulo\u017Eit",add_new_role:"P\u0159idat novou roli",role_name:"N\xE1zev role",added_on:"P\u0159id\xE1no dne",add_role:"P\u0159idat roli",edit_role:"Upravit roli",name:"N\xE1zev",permission:"Opr\xE1vn\u011Bn\xED | Opr\xE1vn\u011Bn\xED",select_all:"Vybrat v\u0161e",none:"\u017D\xE1dn\xE9",confirm_delete:"Nebudete moci obnovit tuto roli",created_message:"Role byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Role \xFAsp\u011B\u0161n\u011B zm\u011Bn\u011Bna",deleted_message:"Role \xFAsp\u011B\u0161n\u011B odstran\u011Bna",already_in_use:"Role je ji\u017E pou\u017E\xEDv\xE1na"},exchange_rate:{exchange_rate:"Sm\u011Bnn\xFD kurz",title:"Opravit probl\xE9my se sm\u011Bnn\xFDm kurzem",description:"Zadejte pros\xEDm sm\u011Bnn\xFD kurz v\u0161ech n\xED\u017Ee uveden\xFDch m\u011Bn, abyste pomohli Crateru spr\xE1vn\u011B vypo\u010D\xEDtat \u010D\xE1stky v {currency}.",drivers:"Ovlada\u010De",new_driver:"P\u0159idat nov\xE9ho poskytovatele",edit_driver:"Upravit poskytovatele",select_driver:"Vybrat ovlada\u010D",update:"vybrat sm\u011Bnn\xFD kurz ",providers_description:"Nakonfigurujte zde poskytovatele sm\u011Bnn\xFDch kurz\u016F, aby automaticky na\u010D\xEDtali nejnov\u011Bj\u0161\xED sm\u011Bnn\xFD kurz u transakc\xED.",key:"API kl\xED\u010D",name:"N\xE1zev",driver:"Ovlada\u010D",is_default:"JE V\xDDCHOZ\xCD",currency:"M\u011Bny",exchange_rate_confirm_delete:"Nebudete moci obnovit tento ovlada\u010D",created_message:"Poskytovatel \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Poskytovatel \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"Poskytovatel \xFAsp\u011B\u0161n\u011B odstran\u011Bn",error:" Aktivn\xED ovlada\u010D nelze odstranit",default_currency_error:"Tato m\u011Bna je ji\u017E pou\u017E\xEDv\xE1na v jednom z aktivn\xEDch poskytovatel\u016F",exchange_help_text:"Zadejte sm\u011Bnn\xFD kurz pro p\u0159evod z {currency} do {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"P\u0159evodn\xEDk m\u011Bn",server:"Server",url:"URL",active:"Aktivn\xED",currency_help_text:"Tento poskytovatel bude pou\u017Eit pouze na v\xFD\u0161e vybran\xFDch m\u011Bn\xE1ch",currency_in_used:"N\xE1sleduj\xEDc\xED m\u011Bny jsou ji\u017E aktivn\xED u jin\xE9ho poskytovatele. Odstra\u0148te tyto m\u011Bny z v\xFDb\u011Bru a znovu aktivujte tohoto poskytovatele."},tax_types:{title:"Typy dan\xED",add_tax:"P\u0159idat da\u0148",edit_tax:"Upravit da\u0148",description:"M\u016F\u017Eete p\u0159idat nebo odebrat dan\u011B, jak chcete. Crater podporuje dan\u011B z jednotliv\xFDch polo\u017Eek i z cel\xE9 faktury.",add_new_tax:"P\u0159idat novou da\u0148",tax_settings:"Nastaven\xED dan\u011B",tax_per_item:"Da\u0148 za polo\u017Eku",tax_name:"N\xE1zev dan\u011B",compound_tax:"Slo\u017Een\xE1 da\u0148",percent:"Procento",action:"Akce",tax_setting_description:"Povolte, pokud chcete p\u0159idat dan\u011B k jednotliv\xFDm polo\u017Ek\xE1m faktury. Ve v\xFDchoz\xEDm nastaven\xED jsou dan\u011B p\u0159id\xE1ny p\u0159\xEDmo na fakturu.",created_message:"Typ dan\u011B \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Typ dan\u011B \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"Typ dan\u011B \xFAsp\u011B\u0161n\u011B odstran\u011Bn",confirm_delete:"Tento typ dan\u011B nebudete moci obnovit",already_in_use:"Da\u0148 se ji\u017E pou\u017E\xEDv\xE1"},payment_modes:{title:"Platebn\xED metody",description:"Platebn\xED metody transakc\xED pro platby",add_payment_mode:"P\u0159idat platebn\xED metodu",edit_payment_mode:"Upravit platebn\xED metodu",mode_name:"N\xE1zev metody",payment_mode_added:"Platebn\xED metoda p\u0159id\xE1na",payment_mode_updated:"Platebn\xED metoda upravena",payment_mode_confirm_delete:"Nebudete moci obnovit tuto platebn\xED metodu",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Platebn\xED metoda byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna"},expense_category:{title:"Kategorie v\xFDdaj\u016F",action:"Akce",description:"Kategorie jsou vy\u017Eadov\xE1ny pro p\u0159id\xE1n\xED v\xFDdajov\xFDch polo\u017Eek. M\u016F\u017Eete p\u0159idat nebo odebrat tyto kategorie podle va\u0161ich preferenc\xED.",add_new_category:"P\u0159idat novou kategorii",add_category:"P\u0159idat kategorii",edit_category:"Upravit Kategorii",category_name:"N\xE1zev kategorie",category_description:"Popis",created_message:"Kategorie v\xFDdaj\u016F \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",deleted_message:"Kategorie v\xFDdaj\u016F \xFAsp\u011B\u0161n\u011B odstran\u011Bna",updated_message:"Kategorie v\xFDdaj\u016F \xFAsp\u011B\u0161n\u011B upravena",confirm_delete:"Nebudete moci obnovit tuto kategorii v\xFDdaj\u016F",already_in_use:"Kategorie se ji\u017E pou\u017E\xEDv\xE1"},preferences:{currency:"M\u011Bna",default_language:"V\xFDchoz\xED jazyk",time_zone:"\u010Casov\xE9 p\xE1smo",fiscal_year:"Fisk\xE1ln\xED rok",date_format:"Form\xE1t data",discount_setting:"Nastaven\xED slev",discount_per_item:"Sleva za polo\u017Eku ",discount_setting_description:"Povolte tuto mo\u017Enost, pokud chcete p\u0159idat slevu do jednotliv\xFDch polo\u017Eek faktury. Ve v\xFDchoz\xEDm nastaven\xED je sleva p\u0159id\xE1na p\u0159\xEDmo na fakturu.",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:"Ulo\u017Eit",preference:"P\u0159edvolba | P\u0159edvolby",general_settings:"V\xFDchoz\xED p\u0159edvolby syst\xE9mu.",updated_message:"P\u0159edvolby \xFAsp\u011B\u0161n\u011B upraveny",select_language:"Vyberte jazyk",select_time_zone:"Vyberte \u010Dasov\xE9 p\xE1smo",select_date_format:"Vyberte form\xE1t data",select_financial_year:"Vyberte fisk\xE1ln\xED rok",recurring_invoice_status:"Stav opakuj\xEDc\xED se faktury",create_status:"Vytvo\u0159it stav",active:"Aktivn\xED",on_hold:"\u010Cekaj\xEDc\xED",update_status:"Upravit stav",completed:"Dokon\u010Deno",company_currency_unchangeable:"M\u011Bnu spole\u010Dnosti nelze m\u011Bnit"},update_app:{title:"Aktualizace aplikace",description:"Kliknut\xEDm na tla\u010D\xEDtko n\xED\u017Ee m\u016F\u017Eete jednodu\u0161e aktualizovat Crater",check_update:"Zkontrolovat aktualizace",avail_update:"K dispozici je nov\xE1 aktualizace",next_version:"Dal\u0161\xED verze",requirements:"Po\u017Eadavky",update:"Aktualizovat te\u010F",update_progress:"Prob\xEDh\xE1 aktualizace...",progress_text:"Bude to trvat jen n\u011Bkolik minut. Neobnovujte obrazovku ani nezav\xEDrejte okno p\u0159ed dokon\u010Den\xEDm aktualizace",update_success:"Aplikace byla aktualizov\xE1na! Po\u010Dkejte pros\xEDm, ne\u017E se okno prohl\xED\u017Ee\u010De automaticky znovu na\u010Dte.",latest_message:"\u017D\xE1dn\xE1 aktualizace nen\xED k dispozici! Jste na nejnov\u011Bj\u0161\xED verzi.",current_version:"Aktu\xE1ln\xED verze",download_zip_file:"St\xE1hnout soubor ZIP",unzipping_package:"Rozbalov\xE1n\xED bal\xEDku",copying_files:"Kop\xEDrov\xE1n\xED soubor\u016F",deleting_files:"Odstra\u0148ov\xE1n\xED nepou\u017Eit\xFDch soubor\u016F",running_migrations:"Spou\u0161t\u011Bn\xED migrac\xED",finishing_update:"Dokon\u010Dov\xE1n\xED aktualizace",update_failed:"Aktualizace se nezda\u0159ila",update_failed_text:"Omlouv\xE1me se! Aktualizace se nezda\u0159ila v {step}. kroku",update_warning:"V\u0161echny soubory aplikace a v\xFDchoz\xED soubory \u0161ablon budou p\u0159eps\xE1ny p\u0159i aktualizaci aplikace pomoc\xED tohoto n\xE1stroje. P\u0159ed aktualizac\xED si pros\xEDm z\xE1lohujte \u0161ablony a datab\xE1zi."},backup:{title:"Z\xE1loha | Z\xE1lohy",description:"Z\xE1loha je soubor ZIP, kter\xFD obsahuje v\u0161echny soubory ve slo\u017Ek\xE1ch, kter\xE9 zad\xE1te spolu s kopi\xED va\u0161\xED datab\xE1ze",new_backup:"P\u0159idat novou z\xE1lohu",create_backup:"Vytvo\u0159it z\xE1lohu",select_backup_type:"Vyberte typ z\xE1lohy",backup_confirm_delete:"Tuto z\xE1lohu nebudete moci obnovit",path:"cesta",new_disk:"Nov\xFD disk",created_at:"vytvo\u0159eno v",size:"velikost",dropbox:"dropbox",local:"m\xEDstn\xED",healthy:"zdrav\xFD",amount_of_backups:"po\u010Det z\xE1loh",newest_backups:"nejnov\u011Bj\u0161\xED z\xE1lohy",used_storage:"vyu\u017Eit\xE9 \xFAlo\u017Ei\u0161t\u011B",select_disk:"Vyberte disk",action:"Akce",deleted_message:"Z\xE1loha \xFAsp\u011B\u0161n\u011B odstran\u011Bna",created_message:"Z\xE1loha byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",invalid_disk_credentials:"Nespr\xE1vn\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje pro vybran\xFD disk"},disk:{title:"Souborov\xFD disk | Souborov\xE9 disky",description:"Ve v\xFDchoz\xEDm nastaven\xED bude Crater pou\u017E\xEDvat v\xE1\u0161 lok\xE1ln\xED disk pro ukl\xE1d\xE1n\xED z\xE1loh, avataru a dal\u0161\xEDch obr\xE1zk\u016F. Podle va\u0161ich preferenc\xED m\u016F\u017Eete nakonfigurovat v\xEDce ne\u017E jeden ovlada\u010D disku, jako je DigitalOcean, S3 nebo Dropbox.",created_at:"vytvo\u0159eno v",dropbox:"dropbox",name:"N\xE1zev",driver:"Ovlada\u010D",disk_type:"Typ",disk_name:"N\xE1zev disku",new_disk:"P\u0159idat nov\xFD disk",filesystem_driver:"Ovlada\u010D souborov\xE9ho syst\xE9mu",local_driver:"m\xEDstn\xED ovlada\u010D",local_root:"m\xEDstn\xED ko\u0159enov\xFD adres\xE1\u0159",public_driver:"Ve\u0159ejn\xFD ovlada\u010D",public_root:"Ve\u0159ejn\xFD ko\u0159enov\xFD adres\xE1\u0159",public_url:"Ve\u0159ejn\xE1 adresa URL",public_visibility:"Ve\u0159ejn\xE1 viditelnost",media_driver:"Ovlada\u010D m\xE9di\xED",media_root:"Ko\u0159enov\xFD adres\xE1\u0159 medi\xED",aws_driver:"AWS ovlada\u010D",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:"V\xFDchoz\xED ovlada\u010D",is_default:"JE V\xDDCHOZ\xCD",set_default_disk:"Nastavit v\xFDchoz\xED disk",set_default_disk_confirm:"Tento disk bude nastaven jako v\xFDchoz\xED a v\u0161echny nov\xE9 PDF budou ulo\u017Eeny na tomto disku",success_set_default_disk:"Disk \xFAsp\u011B\u0161n\u011B nastaven jako v\xFDchoz\xED",save_pdf_to_disk:"Ukl\xE1dat PDF na disk",disk_setting_description:" Povolte, pokud chcete automaticky ulo\u017Eit kopii PDF ka\u017Ed\xE9 faktury, odhadu a potvrzen\xED o platb\u011B. Zapnut\xED t\xE9to mo\u017Enosti sn\xED\u017E\xED dobu na\u010D\xEDt\xE1n\xED p\u0159i prohl\xED\u017Een\xED PDF.",select_disk:"Vyberte disk",disk_settings:"Nastaven\xED disku",confirm_delete:"Va\u0161e existuj\xEDc\xED soubory a slo\u017Eky na ur\u010Den\xE9m disku nebudou ovlivn\u011Bny, ale konfigurace disku bude odstran\u011Bna z Crateru",action:"Akce",edit_file_disk:"Upravit souborov\xFD disk",success_create:"Disk byl \xFAsp\u011B\u0161n\u011B p\u0159id\xE1n",success_update:"Disk \xFAsp\u011B\u0161n\u011B upraven",error:"P\u0159id\xE1n\xED disku se nezda\u0159ilo",deleted_message:"Souborov\xFD disk \xFAsp\u011B\u0161n\u011B smaz\xE1n",disk_variables_save_successfully:"Disk \xFAsp\u011B\u0161n\u011B nakonfigurov\xE1n",disk_variables_save_error:"Konfigurace disku selhala.",invalid_disk_credentials:"Nespr\xE1vn\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje pro vybran\xFD 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."}},li={account_info:"Informace o \xFA\u010Dtu",account_info_desc:"N\xED\u017Ee uveden\xE9 \xFAdaje budou pou\u017Eity k vytvo\u0159en\xED hlavn\xEDho \xFA\u010Dtu spr\xE1vce. Tak\xE9 m\u016F\u017Eete zm\u011Bnit podrobnosti kdykoliv po p\u0159ihl\xE1\u0161en\xED.",name:"Jm\xE9no",email:"E-mail",password:"Heslo",confirm_password:"Potvrdit heslo",save_cont:"Ulo\u017Eit a pokra\u010Dovat",company_info:"Informace o spole\u010Dnosti",company_info_desc:"Tyto informace budou zobrazeny na faktur\xE1ch. Pozd\u011Bji je m\u016F\u017Eete upravit na str\xE1nce s nastaven\xEDm.",company_name:"N\xE1zev spole\u010Dnosti",company_logo:"Logo spole\u010Dnosti",logo_preview:"N\xE1hled loga",preferences:"P\u0159edvolby spole\u010Dnosti",preferences_desc:"Zadejte v\xFDchoz\xED p\u0159edvolby pro tuto spole\u010Dnost.",currency_set_alert:"M\u011Bnu spole\u010Dnosti nelze pozd\u011Bji zm\u011Bnit.",country:"Zem\u011B",state:"St\xE1t",city:"M\u011Bsto",address:"Adresa",street:"Ulice1 | Ulice2",phone:"Telefon",zip_code:"PS\u010C",go_back:"J\xEDt zp\u011Bt",currency:"M\u011Bna",language:"Jazyk",time_zone:"\u010Casov\xE9 p\xE1smo",fiscal_year:"Fisk\xE1ln\xED rok",date_format:"Form\xE1t data",from_address:"Z adresy",username:"U\u017Eivatelsk\xE9 jm\xE9no",next:"Dal\u0161\xED",continue:"Pokra\u010Dovat",skip:"P\u0159esko\u010Dit",database:{database:"URL webu a datab\xE1ze",connection:"P\u0159ipojen\xED k datab\xE1zi",host:"Host datab\xE1ze",port:"Port datab\xE1ze",password:"Heslo do datab\xE1ze",app_url:"URL aplikace",app_domain:"Dom\xE9na aplikace",username:"U\u017Eivatelsk\xE9 jm\xE9no k datab\xE1zi",db_name:"N\xE1zev datab\xE1ze",db_path:"Cesta k datab\xE1zi",desc:"Vytvo\u0159te datab\xE1zi na sv\xE9m serveru a nastavte p\u0159ihla\u0161ovac\xED \xFAdaje pomoc\xED n\xED\u017Ee uveden\xE9ho formul\xE1\u0159e."},permissions:{permissions:"Opr\xE1vn\u011Bn\xED",permission_confirm_title:"Opravdu chcete pokra\u010Dovat?",permission_confirm_desc:"Kontrola opr\xE1vn\u011Bn\xED slo\u017Eky selhala",permission_desc:"N\xED\u017Ee je seznam opr\xE1vn\u011Bn\xED slo\u017Eek, kter\xE1 jsou vy\u017Eadov\xE1na, aby aplikace pracovala. Pokud kontrola opr\xE1vn\u011Bn\xED sel\u017Ee, aktualizujte opr\xE1vn\u011Bn\xED dan\xFDch slo\u017Eek."},verify_domain:{title:"Ov\u011B\u0159en\xED dom\xE9ny",desc:"Crater pou\u017E\xEDv\xE1 ov\u011B\u0159en\xED na z\xE1klad\u011B relace, kter\xE9 vy\u017Eaduje ov\u011B\u0159en\xED dom\xE9ny pro \xFA\u010Dely zabezpe\u010Den\xED. Zadejte pros\xEDm dom\xE9nu, na kter\xE9 budete p\u0159istupovat ke sv\xE9 webov\xE9 aplikaci.",app_domain:"Dom\xE9na aplikace",verify_now:"Ov\u011B\u0159it te\u010F",success:"Ov\u011B\u0159en\xED dom\xE9ny bylo \xFAsp\u011B\u0161n\xE9.",failed:"Ov\u011B\u0159en\xED dom\xE9ny se nezda\u0159ilo. Zadejte pros\xEDm platn\xFD n\xE1zev dom\xE9ny.",verify_and_continue:"Ov\u011B\u0159it a pokra\u010Dovat"},mail:{host:"Hostitel e-mailu",port:"Port e-mailu",driver:"Ovlada\u010D e-mail\u016F",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\xE9na",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"E-mailov\xE9 heslo",username:"U\u017Eivatelsk\xE9 jm\xE9no e-mailu",mail_config:"Konfigurace e-mailu",from_name:"Jm\xE9no odes\xEDlatele",from_mail:"Z e-mailov\xE9 adresy",encryption:"\u0160ifrov\xE1n\xED e-mailu",mail_config_desc:"N\xED\u017Ee je uveden formul\xE1\u0159 pro konfiguraci e-mailov\xE9ho ovlada\u010De pro odes\xEDl\xE1n\xED e-mail\u016F z aplikace. M\u016F\u017Eete tak\xE9 nakonfigurovat poskytovatele t\u0159et\xEDch stran, jako je Sendgrid, SES atd."},req:{system_req:"Syst\xE9mov\xE9 po\u017Eadavky",php_req_version:"Php (po\u017Eadovan\xE1 verze {version})",check_req:"Zkontrolujte po\u017Eadavky",system_req_desc:"Crater m\xE1 n\u011Bkolik po\u017Eadavk\u016F na server. Ujist\u011Bte se, \u017Ee v\xE1\u0161 server m\xE1 po\u017Eadovanou php verzi a v\u0161echna n\xED\u017Ee uveden\xE1 roz\u0161\xED\u0159en\xED."},errors:{migrate_failed:"Migrace se nezda\u0159ila",database_variables_save_error:"Nelze zapsat konfiguraci do souboru .env. Zkontrolujte pros\xEDm jeho opr\xE1vn\u011Bn\xED",mail_variables_save_error:"Nastaven\xED e-mailu se nezda\u0159ilo.",connection_failed:"Spojen\xED s datab\xE1z\xED se nezda\u0159ilo",database_should_be_empty:"Datab\xE1ze by m\u011Bla b\xFDt pr\xE1zdn\xE1"},success:{mail_variables_save_successfully:"E-mail byl \xFAsp\u011B\u0161n\u011B nastaven",database_variables_save_successfully:"Datab\xE1ze byla \xFAsp\u011B\u0161n\u011B nastavena."}},ci={invalid_phone:"Neplatn\xE9 telefonn\xED \u010D\xEDslo",invalid_url:"Neplatn\xE1 URL (nap\u0159. http://www.craterapp.com)",invalid_domain_url:"Neplatn\xE1 URL (nap\u0159. craterapp.com)",required:"Pole je povinn\xE9",email_incorrect:"Nespr\xE1vn\xFD e-mail.",email_already_taken:"Tento e-mail ji\u017E byl pou\u017Eit.",email_does_not_exist:"U\u017Eivatel s dan\xFDm e-mailem neexistuje",item_unit_already_taken:"Tento n\xE1zev jednotky je ji\u017E obsazen",payment_mode_already_taken:"Tento n\xE1zev platebn\xED metody ji\u017E byl pou\u017Eit",send_reset_link:"Zaslat odkaz na obnoven\xED hesla",not_yet:"Je\u0161t\u011B ne? Poslat znovu",password_min_length:"Heslo mus\xED obsahovat {count} znak\u016F",name_min_length:"Jm\xE9no mus\xED m\xEDt alespo\u0148 {count} p\xEDsmen.",prefix_min_length:"Prefix mus\xED m\xEDt alespo\u0148 {count} p\xEDsmen.",enter_valid_tax_rate:"Zadejte platnou da\u0148ovou sazbu",numbers_only:"Pouze \u010D\xEDsla.",characters_only:"Pouze p\xEDsmena.",password_incorrect:"Hesla mus\xED b\xFDt stejn\xE1",password_length:"Heslo mus\xED b\xFDt dlouh\xE9 {count} znak\u016F.",qty_must_greater_than_zero:"Mno\u017Estv\xED mus\xED b\xFDt v\u011Bt\u0161\xED ne\u017E nula.",price_greater_than_zero:"Cena mus\xED b\xFDt vy\u0161\u0161\xED ne\u017E nula.",payment_greater_than_zero:"Platba mus\xED b\xFDt vy\u0161\u0161\xED ne\u017E nula.",payment_greater_than_due_amount:"Zadan\xE1 platba je vy\u0161\u0161\xED ne\u017E splatn\xE1 \u010D\xE1stka t\xE9to faktury.",quantity_maxlength:"Mno\u017Estv\xED by nem\u011Blo b\xFDt del\u0161\xED ne\u017E 20 \u010D\xEDslic.",price_maxlength:"Cena by nem\u011Bla b\xFDt del\u0161\xED ne\u017E 20 \u010D\xEDslic.",price_minvalue:"Cena by m\u011Bla b\xFDt v\u011Bt\u0161\xED ne\u017E 0.",amount_maxlength:"Mno\u017Estv\xED by nem\u011Blo b\xFDt del\u0161\xED ne\u017E 20 \u010D\xEDslic.",amount_minvalue:"Mno\u017Estv\xED by m\u011Blo b\xFDt v\u011Bt\u0161\xED ne\u017E 0.",discount_maxlength:"Sleva by nem\u011Bla b\xFDt vy\u0161\u0161\xED ne\u017E maxim\xE1ln\xED sleva",description_maxlength:"Popis by nem\u011Bl b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",subject_maxlength:"P\u0159edm\u011Bt by nem\u011Bl b\xFDt del\u0161\xED ne\u017E 100 znak\u016F.",message_maxlength:"Zpr\xE1va by nem\u011Bla b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",maximum_options_error:"Vybr\xE1no maximum z {max} mo\u017Enost\xED. Nejprve odeberte vybranou mo\u017Enost pro dal\u0161\xED v\xFDb\u011Br.",notes_maxlength:"Pozn\xE1mky by nem\u011Bly b\xFDt del\u0161\xED ne\u017E 65 000 znak\u016F.",address_maxlength:"Adresa by nem\u011Bla b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",ref_number_maxlength:"Referen\u010Dn\xED \u010D\xEDslo by nem\u011Blo b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",prefix_maxlength:"Prefix by nem\u011Bl b\xFDt del\u0161\xED ne\u017E 5 znak\u016F.",something_went_wrong:"n\u011Bco se nezda\u0159ilo",number_length_minvalue:"D\xE9lka \u010D\xEDsla by m\u011Bla b\xFDt v\u011Bt\u0161\xED ne\u017E 0",at_least_one_ability:"Vyberte pros\xEDm alespo\u0148 jedno opr\xE1vn\u011Bn\xED.",valid_driver_key:"Zadejte pros\xEDm platn\xFD {driver} kl\xED\u010D.",valid_exchange_rate:"Zadejte pros\xEDm platn\xFD sm\u011Bnn\xFD kurz.",company_name_not_same:"N\xE1zev spole\u010Dnosti se mus\xED shodovat se zadan\xFDm n\xE1zvem."},_i={starter_plan:"Tato funkce je k dispozici na Starter Pl\xE1nu a d\xE1le!",invalid_provider_key:"Zadejte pros\xEDm platn\xFD API kl\xED\u010D poskytovatele.",estimate_number_used:"\u010C\xEDslo odhadu ji\u017E bylo pou\u017Eito.",invoice_number_used:"\u010C\xEDslo faktury ji\u017E bylo pou\u017Eito.",payment_attached:"Na t\xE9to faktu\u0159e je ji\u017E p\u0159ilo\u017Eena platba. Abyste mohli pokra\u010Dovat v odstran\u011Bn\xED, odstra\u0148t\u011B nejd\u0159\xEDve p\u0159ilo\u017Een\xE9 platby.",payment_number_used:"\u010C\xEDslo platby ji\u017E bylo pou\u017Eito.",name_already_taken:"N\xE1zev ji\u017E byl pou\u017Eit.",receipt_does_not_exist:"Doklad neexistuje.",customer_cannot_be_changed_after_payment_is_added:"Z\xE1kazn\xEDka nelze m\u011Bnit po p\u0159id\xE1n\xED platby",invalid_credentials:"Neplatn\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje.",not_allowed:"Nen\xED povoleno",login_invalid_credentials:"Tyto \xFAdaje neodpov\xEDdaj\xED na\u0161im z\xE1znam\u016Fm.",enter_valid_cron_format:"Zadejte platn\xFD form\xE1t cronu",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"},ui="Odhad",mi="\u010C\xEDslo odhadu",pi="Datum odhadu",fi="Doba platnosti",gi="Faktura",vi="\u010C\xEDslo faktury",yi="Datum fakturace",hi="Datum splatnosti",bi="Pozn\xE1mky",ki="Polo\u017Eky",wi="Mno\u017Estv\xED",zi="Cena",xi="Sleva",Pi="Mno\u017Estv\xED",Si="Mezisou\u010Det",ji="Celkem",Ai="Platba",Di="DOKLAD O PLATB\u011A",Ci="Datum platby",Ni="\u010C\xEDslo platby",Ei="Platebn\xED metoda",Ii="Obdr\u017Een\xE1 \u010D\xE1stka",Ti="REPORT V\xDDDAJ\u016E",Ri="V\xDDDAJE CELKEM",Mi="REPORT ZISKU A ZTR\xC1T",Fi="Report o z\xE1kazn\xEDc\xEDch prodeje",$i="Report o polo\u017Ek\xE1ch prodeje",Ui="Report o shrnut\xED dan\xED",Vi="P\u0158\xCDJEM",Oi="\u010CIST\xDD ZISK",Li="Report o prodeji: Podle z\xE1kazn\xEDka",qi="PRODEJE CELKEM",Bi="Report o prodeji: Podle polo\u017Eky",Ki="DA\u0147OV\xDD REPORT",Zi="DAN\u011A CELKEM",Wi="Typy dan\xED",Hi="V\xFDdaje",Yi="Odb\u011Bratel",Gi="P\u0159\xEDjemce",Ji="P\u0159ijato od:",Qi="Da\u0148";var Xi={navigation:Bn,general:Kn,dashboard:Zn,tax_types:Wn,global_search:Hn,company_switcher:Yn,dateRange:Gn,customers:Jn,items:Qn,estimates:Xn,invoices:ei,recurring_invoices:ti,payments:ai,expenses:ni,login:ii,modules:oi,users:si,reports:ri,settings:di,wizard:li,validation:ci,errors:_i,pdf_estimate_label:ui,pdf_estimate_number:mi,pdf_estimate_date:pi,pdf_estimate_expire_date:fi,pdf_invoice_label:gi,pdf_invoice_number:vi,pdf_invoice_date:yi,pdf_invoice_due_date:hi,pdf_notes:bi,pdf_items_label:ki,pdf_quantity_label:wi,pdf_price_label:zi,pdf_discount_label:xi,pdf_amount_label:Pi,pdf_subtotal:Si,pdf_total:ji,pdf_payment_label:Ai,pdf_payment_receipt_label:Di,pdf_payment_date:Ci,pdf_payment_number:Ni,pdf_payment_mode:Ei,pdf_payment_amount_received_label:Ii,pdf_expense_report_label:Ti,pdf_total_expenses_label:Ri,pdf_profit_loss_label:Mi,pdf_sales_customers_label:Fi,pdf_sales_items_label:$i,pdf_tax_summery_label:Ui,pdf_income_label:Vi,pdf_net_profit_label:Oi,pdf_customer_sales_report:Li,pdf_total_sales_label:qi,pdf_item_sales_label:Bi,pdf_tax_report_label:Ki,pdf_total_tax_label:Zi,pdf_tax_types_label:Wi,pdf_expenses_label:Hi,pdf_bill_to:Yi,pdf_ship_to:Gi,pdf_received_from:Ji,pdf_tax_label:Qi};const eo={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"},to={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",mark_as_default:"Mark as default"},ao={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"}},no={name:"Name",description:"Description",percent:"Percent",compound_tax:"Compound Tax"},io={search:"Search...",customers:"Customers",users:"Users",no_results_found:"No Results Found"},oo={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},so={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"},ro={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."},lo={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"},co={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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},_o={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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},uo={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",add_customer_email:"Please add an email address for this customer to send invoices automatically.",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."},mo={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"},po={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"}},fo={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"},go={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:"The minimum required version for this module does not match. Please upgrade your crater app to version: {version} to proceed.",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"},vo={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"},yo={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"}},ho={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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",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."}},bo={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."}},ko={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."},wo={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"},zo="Estimate",xo="Estimate Number",Po="Estimate Date",So="Expiry date",jo="Invoice",Ao="Invoice Number",Do="Invoice Date",Co="Due date",No="Notes",Eo="Items",Io="Quantity",To="Price",Ro="Discount",Mo="Amount",Fo="Subtotal",$o="Total",Uo="Payment",Vo="PAYMENT RECEIPT",Oo="Payment Date",Lo="Payment Number",qo="Payment Mode",Bo="Amount Received",Ko="EXPENSES REPORT",Zo="TOTAL EXPENSE",Wo="PROFIT & LOSS REPORT",Ho="Sales Customer Report",Yo="Sales Item Report",Go="Tax Summary Report",Jo="INCOME",Qo="NET PROFIT",Xo="Sales Report: By Customer",es="TOTAL SALES",ts="Sales Report: By Item",as="TAX REPORT",ns="TOTAL TAX",is="Tax Types",os="Expenses",ss="Bill to,",rs="Ship to,",ds="Received from:",ls="Tax";var cs={navigation:eo,general:to,dashboard:ao,tax_types:no,global_search:io,company_switcher:oo,dateRange:so,customers:ro,items:lo,estimates:co,invoices:_o,recurring_invoices:uo,payments:mo,expenses:po,login:fo,modules:go,users:vo,reports:yo,settings:ho,wizard:bo,validation:ko,errors:wo,pdf_estimate_label:zo,pdf_estimate_number:xo,pdf_estimate_date:Po,pdf_estimate_expire_date:So,pdf_invoice_label:jo,pdf_invoice_number:Ao,pdf_invoice_date:Do,pdf_invoice_due_date:Co,pdf_notes:No,pdf_items_label:Eo,pdf_quantity_label:Io,pdf_price_label:To,pdf_discount_label:Ro,pdf_amount_label:Mo,pdf_subtotal:Fo,pdf_total:$o,pdf_payment_label:Uo,pdf_payment_receipt_label:Vo,pdf_payment_date:Oo,pdf_payment_number:Lo,pdf_payment_mode:qo,pdf_payment_amount_received_label:Bo,pdf_expense_report_label:Ko,pdf_total_expenses_label:Zo,pdf_profit_loss_label:Wo,pdf_sales_customers_label:Ho,pdf_sales_items_label:Yo,pdf_tax_summery_label:Go,pdf_income_label:Jo,pdf_net_profit_label:Qo,pdf_customer_sales_report:Xo,pdf_total_sales_label:es,pdf_item_sales_label:ts,pdf_tax_report_label:as,pdf_total_tax_label:ns,pdf_tax_types_label:is,pdf_expenses_label:os,pdf_bill_to:ss,pdf_ship_to:rs,pdf_received_from:ds,pdf_tax_label:ls};const _s={dashboard:"Tableau de bord",customers:"Clients",items:"Articles",invoices:"Factures","recurring-invoices":"Factures r\xE9currentes",expenses:"D\xE9penses",estimates:"Devis",payments:"Paiements",reports:"Rapports",settings:"Param\xE8tres",logout:"D\xE9connexion",users:"Utilisateurs",modules:"Modules"},us={add_company:"Ajouter une entreprise",view_pdf:"Afficher le PDF",copy_pdf_url:"Copier l'URL du PDF",download_pdf:"T\xE9l\xE9charger le PDF",save:"Enregistrer",create:"Cr\xE9er",cancel:"Annuler",update:"Mettre \xE0 jour",deselect:"Enlever",download:"T\xE9l\xE9charger",from_date:"Du",to_date:"Au",from:"Du",to:"Au",ok:"Ok",yes:"Oui",no:"Non",sort_by:"Trier par",ascending:"Ascendant",descending:"Descendant",subject:"Objet",body:"Message",message:"Message",send:"Envoyer",preview:"Aper\xE7u",go_back:"Retourner",back_to_login:"Revenir \xE0 la page de connexion ?",home:"Tableau de bord",filter:"Filtrer",delete:"Supprimer",edit:"Modifier",view:"Afficher",add_new_item:"Ajouter une ligne",clear_all:"Tout supprimer",showing:"Affichage ",of:"sur",actions:"Actions",subtotal:"SOUS-TOTAL",discount:"REMISE",fixed:"Fixe",percentage:"Pourcentage",tax:"TAXE",total_amount:"TOTAL ",bill_to:"Facturer \xE0",ship_to:"Exp\xE9dier \xE0",due:"En cours",draft:"Brouillon",sent:"Envoy\xE9e",all:"Tout",select_all:"Tout s\xE9lectionner",select_template:"Mod\xE8le",choose_file:"Cliquez ici pour choisir un fichier",choose_template:"Choisissez un mod\xE8le",choose:"Choisir",remove:"Supprimer",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 au tableau de bord",test_mail_conf:"Envoyer un email de test",send_mail_successfully:"Email envoy\xE9",setting_updated:"Param\xE8tres mis \xE0 jour",select_state:"S\xE9lectionnez l'\xE9tat",select_country:"Choisissez le pays",select_city:"S\xE9lectionnez une ville",street_1:"Rue, voie, boite postale",street_2:"B\xE2timent, \xE9tage, lieu-dit, compl\xE9ment,...",action_failed:"Action : \xE9chou\xE9",retry:"R\xE9essayez",choose_note:"Choisissez une note de bas de page",no_note_found:"Aucune note de bas de page trouv\xE9e",insert_note:"Ins\xE9rer une note",copied_pdf_url_clipboard:"L'adresse du PDF a \xE9t\xE9 copi\xE9e.",copied_url_clipboard:"URL copi\xE9e vers le presse-papier!",docs:"Documents",do_you_wish_to_continue:"Voulez-vous continuer ?",note:"Note de bas de page",pay_invoice:"Payer facture",login_successfully:"Identifi\xE9 avec succ\xE8s!",logged_out_successfully:"D\xE9connect\xE9 avec succ\xE8s",mark_as_default:"Mark as default"},ms={select_year:"S\xE9lectionnez l'ann\xE9e",cards:{due_amount:"Encours clients",customers:"Clients",invoices:"Factures",estimates:"Devis",payments:"Payments"},chart_info:{total_sales:"Ventes",total_receipts:"Recettes",total_expense:"D\xE9penses",net_income:"R\xE9sultat",year:"S\xE9lectionnez l'ann\xE9e"},monthly_chart:{title:"Recettes et d\xE9penses"},recent_invoices_card:{title:"Factures en cours",due_on:"\xC9ch\xE9ance",customer:"Client",amount_due:"Montant",actions:"Actions",view_all:"Tout afficher"},recent_estimate_card:{title:"Devis r\xE9cents",date:"Expiration",customer:"Client",amount_due:"Montant",actions:"Actions",view_all:"Tout afficher"}},ps={name:"Nom",description:"Description",percent:"Pourcentage",compound_tax:"Taxe compos\xE9e"},fs={search:"Rechercher",customers:"Clients",users:"Utilisateurs",no_results_found:"Aucun r\xE9sultat"},gs={label:"CHANGER DE SOCI\xC9T\xC9",no_results_found:"Aucun r\xE9sultat",add_new_company:"Ajouter une soci\xE9t\xE9",new_company:"Nouvelle soci\xE9t\xE9",created_message:"Soci\xE9t\xE9 cr\xE9\xE9e"},vs={today:"Aujourd'hui",this_week:"Cette semaine",this_month:"Ce mois",this_quarter:"Ce trimestre",this_year:"Cette ann\xE9e",previous_week:"Semaine pr\xE9c\xE9dente",previous_month:"Mois pr\xE9c\xE9dent",previous_quarter:"Trimestre pr\xE9c\xE9dent",previous_year:"Ann\xE9e pr\xE9c\xE9dente",custom:"Personnalis\xE9e"},ys={title:"Clients",prefix:"Code client",add_customer:"Ajouter un client",contacts_list:"Liste de clients",name:"Nom",mail:"Email | Emails",statement:"D\xE9claration",display_name:"Nom",primary_contact_name:"Contact principal",contact_name:"Contact",amount_due:"Montant d\xFB",email:"Email",address:"Adresse",phone:"T\xE9l\xE9phone",website:"Site Internet",overview:"Aper\xE7u",invoice_prefix:"Pr\xE9fixe de facture",estimate_prefix:"Pr\xE9fixe des devis",payment_prefix:"Pr\xE9fixe de paiement",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",confirm_password:"Confirmez le mot de passe",street_number:"Num\xE9ro de rue",primary_currency:"Devise principale",description:"Description",add_new_customer:"Ajouter un client",save_customer:"Enregistrer",update_customer:"Enregistrer",customer:"Client | Clients",new_customer:"Nouveau client",edit_customer:"Modifier le client",basic_info:"Informations de base",portal_access:"Acc\xE8s Portail",portal_access_text:"Souhaitez vous autoriser ce client \xE0 se connecter au Portail Client ?",portal_access_url:"URL de connexion Portail Client",portal_access_url_help:"Veuillez copiez et envoyez le lien ci-dessus au client pour lui fournir l'acc\xE8s au portail.",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_name:"-",list_of_customers:"Ajoutez des clients et retrouvez-les ici.",primary_display_name:"Nom d'affichage principal",select_currency:"S\xE9lectionnez la devise",select_a_customer:"S\xE9lectionnez un client",type_or_click:"S\xE9lectionnez un article",new_transaction:"Ajouter une op\xE9ration",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",updated_message:"Client mis \xE0 jour",address_updated_message:"Adresse mise \xE0 jour avec succ\xE8s",deleted_message:"Client supprim\xE9 | Clients supprim\xE9s",edit_currency_not_allowed:"Impossible de changer de devise une fois les transactions cr\xE9\xE9es."},hs={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:"Aucun article s\xE9lectionn\xE9",action:"Action",add_item:"Nouvel article",save_item:"Enregistrer",update_item:"Enregistrer",item:"Article | Articles",add_new_item:"Ajouter un article",new_item:"Nouvel article",edit_item:"Modifier cet article",no_items:"Aucun article",list_of_items:"Ajoutez des articles et retrouvez-les ici",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",updated_message:"Article mis \xE0 jour",deleted_message:"Article supprim\xE9 avec succ\xE8s | Articles supprim\xE9s avec succ\xE8s"},bs={title:"Devis",accept_estimate:"Accepter devis",reject_estimate:"Rejeter devis",estimate:"Devis | Devis",estimates_list:"Liste des devis",days:"{days} jours",months:"{months} mois",years:"{years} Ann\xE9e",all:"Tous",paid:"Pay\xE9",unpaid:"Non pay\xE9",customer:"Client",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT",partially_paid:"Partiellement pay\xE9",total:"Total",discount:"Remise",sub_total:"Sous-total",estimate_number:"N\xB0",ref_number:"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:"Notes de bas de page",tax:"Taxe",estimate_template:"Mod\xE8le de devis",convert_to_invoice:"Convertir en facture",mark_as_sent:"Marquer comme envoy\xE9",send_estimate:"Envoyer par email",resend_estimate:"Renvoyer le devis",record_payment:"Enregistrer un paiement",add_estimate:"Nouveau devis",save_estimate:"Enregistrer",confirm_conversion:"Ce devis sera utilis\xE9 pour cr\xE9er une nouvelle facture.",conversion_message:"Conversion r\xE9ussie",confirm_send_estimate:"Ce devis sera envoy\xE9e par email 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\xE9 comme envoy\xE9",send_estimate_successfully:"Devis envoy\xE9",errors:{required:"Champ requis"},accepted:"Accept\xE9",rejected:"Refus\xE9",expired:"Expired",sent:"Envoy\xE9",draft:"Brouillon",viewed:"Viewed",declined:"Refus\xE9",new_estimate:"Nouveau devis",add_new_estimate:"Nouveau devis",update_Estimate:"Enregistrer",edit_estimate:"Modifier ce devis",items:"articles",Estimate:"Devis | Devis",add_new_tax:"Ajouter une taxe",no_estimates:"Aucun devis",list_of_estimates:"Ajoutez des clients et retrouvez-les ici",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",updated_message:"Devis mise \xE0 jour",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:"S\xE9lectionnez un article",type_item_description:"Taper la description de l'article (facultatif)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},ks={title:"Factures",download:"T\xE9l\xE9charger",pay_invoice:"Payer facture",invoices_list:"Liste des factures",invoice_information:"Informations sur la facture",days:"{days} jours",months:"{months} mois",years:"{years} ann\xE9es",all:"Toutes",paid:"Pay\xE9e",unpaid:"Non pay\xE9e",viewed:"Consult\xE9e",overdue:"En retard",completed:"Pay\xE9e",customer:"CLIENT",paid_status:"\xC9tat du paiement",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT",partially_paid:"Partiellement pay\xE9e",total:"Total",discount:"Remise",sub_total:"Sous-total",invoice:"Facture | Factures",invoice_number:"N\xB0",ref_number:"R\xE9f\xE9rence",contact:"Contact",add_item:"Nouvel article",date:"Date",due_date:"Date d'\xE9ch\xE9ance",status:"Statut",add_tax:"Ajouter une taxe",amount:"Montant",action:"Action",notes:"Notes de bas de page",view:"Afficher",send_invoice:"Envoyer par email",resend_invoice:"Renvoyer la facture",invoice_template:"Mod\xE8le de facture",conversion_message:"Facture clon\xE9e",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_mark_as_accepted:"Cette facture sera marqu\xE9e comme accept\xE9e",confirm_mark_as_rejected:"Cette facture sera marqu\xE9e comme rejet\xE9e",confirm_send:"Cette facture sera envoy\xE9e par email au client",invoice_date:"Date",record_payment:"Enregistrer un paiement",add_new_invoice:"Nouvelle facture",update_expense:"Enregistrer la d\xE9pense",edit_invoice:"Modifier cette facture",new_invoice:"Nouvelle facture",save_invoice:"Enregistrer",update_invoice:"Enregistrer",add_new_tax:"Ajouter une taxe",no_invoices:"Aucune facture",mark_as_rejected:"Marquer comme rejet\xE9e",mark_as_accepted:"Marquer comme accept\xE9e",list_of_invoices:"Ajoutez des factures et retrouvez-les ici",select_invoice:"S\xE9lectionnez facture",no_matching_invoices:"Aucune facture correspondante !",mark_as_sent_successfully:"Facture marqu\xE9e comme envoy\xE9e",invoice_sent_successfully:"Facture envoy\xE9e",cloned_successfully:"Facture clon\xE9e",clone_invoice:"Dupliquer",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:"S\xE9lectionnez un article",type_item_description:"Saisissez une description (facultatif)"},payment_attached_message:"Un paiement est li\xE9 \xE0 l'une des factures s\xE9lectionn\xE9es. Veuillez d'abord les supprimer, puis r\xE9essayez",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",updated_message:"Facture mise \xE0 jour",deleted_message:"La facture a \xE9t\xE9 supprim\xE9e | Les factures ont \xE9t\xE9 supprim\xE9es",marked_as_sent_message:"Facture supprim\xE9e | Factures supprim\xE9es",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},ws={title:"Factures r\xE9currentes",invoices_list:"Liste des factures r\xE9currentes",days:"{days} jours",months:"{months} mois",years:"{years} ans",all:"Toutes",paid:"Pay\xE9e",unpaid:"Non pay\xE9e",viewed:"Consult\xE9e",overdue:"En retard",active:"Active",completed:"Pay\xE9e",customer:"CLIENT",paid_status:"\xC9TAT DU PAIEMENT",ref_no:"N\xB0 de REF.",number:"N\xB0",amount_due:"MONTANT D\xDB",partially_paid:"Partiellement pay\xE9e",total:"Total",discount:"Remise",sub_total:"Sous-total",invoice:"Facture r\xE9currente | Factures r\xE9currentes",invoice_number:"N\xB0",next_invoice_date:"Prochaine date de facturation",ref_number:"N\xB0 de r\xE9f\xE9rence",contact:"Contact",add_item:"Ajouter un article",date:"Date",limit_by:"Limiter par",limit_date:"Date limite",limit_count:"Nombre limite",count:"Nombre",status:"Statut",select_a_status:"S\xE9lectionnez un statut",working:"Active",on_hold:"Suspendue",complete:"Pay\xE9e",add_tax:"Ajouter une taxe",amount:"Montant",action:"Action",notes:"Notes de bas de page",view:"Afficher",basic_info:"Informations g\xE9n\xE9rales",send_invoice:"Envoyer la facture r\xE9currente",auto_send:"Envoi automatique",resend_invoice:"Renvoyer la facture r\xE9currente",invoice_template:"Mod\xE8le de facture r\xE9currente",conversion_message:"Facture r\xE9currente clon\xE9e",template:"Mod\xE8le",mark_as_sent:"Marquer comme envoy\xE9e",confirm_send_invoice:"Cette facture r\xE9currente sera envoy\xE9e par email au client",invoice_mark_as_sent:"Cette facture r\xE9currente sera marqu\xE9e comme envoy\xE9e",confirm_send:"Cette facture r\xE9currente sera envoy\xE9e par email au client",starts_at:"Date de d\xE9but",due_date:"Date d'\xE9ch\xE9ance",record_payment:"Enregister un paiement",add_new_invoice:"Nouvelle facture r\xE9currente",update_expense:"Mettre \xE0 jour les d\xE9penses",edit_invoice:"Modifier cette facture r\xE9currente",new_invoice:"Nouvelle facture r\xE9currente",send_automatically:"Envoyer automatiquement",send_automatically_desc:"Activez ceci si vous souhaitez envoyer la facture automatiquement au client lorsque celle-ci est cr\xE9\xE9e.",save_invoice:"Enregistrer",update_invoice:"Modifier la facture r\xE9currente",add_new_tax:"Ajouter une taxe",no_invoices:"Aucune facture r\xE9currente pour le moment !",mark_as_rejected:"Marquer comme rejet\xE9e",mark_as_accepted:"Marquer comme accept\xE9",list_of_invoices:"Ajoutez des factures r\xE9currentes et retrouvez-les ici",select_invoice:"S\xE9lectionnez la facture",no_matching_invoices:"Aucune facture r\xE9currente correspondante",mark_as_sent_successfully:"Facture r\xE9currente marqu\xE9e comme envoy\xE9e",invoice_sent_successfully:"Facture r\xE9currente envoy\xE9e",cloned_successfully:"Facture r\xE9currente clon\xE9e",clone_invoice:"Dupliquer",confirm_clone:"Cette facture r\xE9currente sera clon\xE9e dans une nouvelle facture r\xE9currente",item:{title:"Nom",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:"Description de l'article (facultatif)"},frequency:{title:"Fr\xE9quence",select_frequency:"S\xE9lectionner la fr\xE9quence",minute:"Minute",hour:"Heure",day_month:"Jour du mois",month:"Mois",day_week:"Jour de la semaine"},confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette facture | Vous ne pourrez pas r\xE9cup\xE9rer ces factures",created_message:"Facture r\xE9currente cr\xE9\xE9e",updated_message:"Facture r\xE9currente mise \xE0 jour",deleted_message:"Facture r\xE9currente supprim\xE9e",marked_as_sent_message:"Facture r\xE9currente envoy\xE9e",user_email_does_not_exist:"L'email de l'utilisateur n'existe pas",something_went_wrong:"une erreur s\u2019est produite",invalid_due_amount_message:"Le montant total de la facture r\xE9currente ne peut pas \xEAtre inf\xE9rieur au montant total pay\xE9 pour cette facture r\xE9currente. Veuillez mettre \xE0 jour la facture ou supprimer les paiements associ\xE9s pour continuer."},zs={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:"Description",add_payment:"Nouveau paiement",new_payment:"Nouveau paiement",edit_payment:"Modifier ce paiement",view_payment:"Afficher le paiement",add_new_payment:"Nouveau paiement",send_payment_receipt:"Envoyer le re\xE7u",send_payment:"Envoyer par email",save_payment:"Enregistrer",update_payment:"Enregistrer",payment:"Paiement | Paiements",no_payments:"Aucun paiement",not_selected:"-",no_invoice:"Aucune facture",no_matching_payments:"Il n'y a aucun paiement correspondant !",list_of_payments:"Ajoutez des paiements et retrouvez-les ici",select_payment_mode:"S\xE9lectionnez le mode 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",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",updated_message:"Paiement mis \xE0 jour",deleted_message:"Paiement supprim\xE9 | Paiements supprim\xE9s",invalid_amount_message:"Le montant du paiement est invalide"},xs={title:"D\xE9penses",expenses_list:"Liste des d\xE9penses",select_a_customer:"S\xE9lectionnez un client",expense_title:"Titre",customer:"Client",currency:"Devise",contact:"Contact",category:"Cat\xE9gorie",from_date:"Du",to_date:"Au",expense_date:"Date",description:"Description",receipt:"Re\xE7u",amount:"Montant",action:"Action",not_selected:"-",note:"Description",category_id:"Identifiant de cat\xE9gorie",date:"Date",add_expense:"Nouvelle d\xE9pense",add_new_expense:"Nouvelle d\xE9pense",save_expense:"Enregistrer",update_expense:"Enregistrer",download_receipt:"T\xE9l\xE9charger le re\xE7u",edit_expense:"Modifier cette d\xE9pense",new_expense:"Nouvelle d\xE9pense",expense:"D\xE9pense | D\xE9penses",no_expenses:"Aucune d\xE9pense",list_of_expenses:"Ajoutez des d\xE9penses et retrouvez-les ici",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",updated_message:"D\xE9pense mise \xE0 jour",deleted_message:"D\xE9pense supprim\xE9e | D\xE9penses supprim\xE9es",categories:{categories_list:"Liste des cat\xE9gories",title:"Titre",name:"Nom",description:"Description",amount:"Montant",actions:"Actions",add_category:"Nouvelle cat\xE9gorie",new_category:"Nouvelle cat\xE9gorie",category:"Cat\xE9gorie | Cat\xE9gories",select_a_category:"Choisissez une cat\xE9gorie"}},Ps={email:"Email",password:"Mot de passe",forgot_password:"Mot de passe oubli\xE9 ?",or_signIn_with:"ou connectez-vous avec",login:"Se connecter",register:"S'inscrire",reset_password:"R\xE9initialiser le mot de passe",password_reset_successfully:"R\xE9initialisation du mot de passe r\xE9ussie",enter_email:"Entrez votre email",enter_password:"Entrer le mot de passe",retype_password:"Retaper le mot de passe"},Ss={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"},js={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:"Nouvel utilisateur",save_user:"Enregistrer l'utilisateur",update_user:"Enregistrer",user:"Utilisateur | Utilisateurs",add_new_user:"Nouvel utilisateur",new_user:"Nouvel utilisateur",edit_user:"Modifier cet utilisateur",no_users:"Aucun utilisateur",list_of_users:"Ajoutez des utilisateurs et retrouvez-les ici",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:"Utilisateur cr\xE9\xE9",updated_message:"Utilisateur mis \xE0 jour",deleted_message:"Utilisateur supprim\xE9 | Utilisateurs supprim\xE9s",select_company_role:"S\xE9lectionner un r\xF4le pour {company}",companies:"Soci\xE9t\xE9s"},As={title:"Rapport",from_date:"Du",to_date:"Au",status:"Statut",paid:"Pay\xE9",unpaid:"Non pay\xE9",download_pdf:"T\xE9l\xE9charger le PDF",view_pdf:"Afficher le PDF",update_report:"Actualiser",report:"Rapport | Rapports",profit_loss:{profit_loss:"Balance",to_date:"Au",from_date:"Du",date_range:"P\xE9riode"},sales:{sales:"Ventes",date_range:"P\xE9riode",to_date:"Au",from_date:"Du",report_type:"Trier"},taxes:{taxes:"Taxes",to_date:"Au",from_date:"Du",date_range:"P\xE9riode"},errors:{required:"Champ requis"},invoices:{invoice:"Facture",invoice_date:"Date",due_date:"Date d\xE9ch\xE9ance",amount:"Montant ",contact_name:"Contact",status:"Statut"},estimates:{estimate:"Devis",estimate_date:"Date",due_date:"Date d'\xE9ch\xE9ance",estimate_number:"N\xB0",ref_number:"R\xE9f\xE9rence",amount:"Montant",contact_name:"Contact",status:"Statut"},expenses:{expenses:"D\xE9penses",category:"Nom",date:"Date",amount:"Montant",to_date:"Au",from_date:"Du",date_range:"P\xE9riode"}},Ds={menu_title:{account_settings:"Profil",company_information:"Coordonn\xE9es de la soci\xE9t\xE9",customization:"Personnalisation",preferences:"Pr\xE9f\xE9rences",notifications:"Notifications",tax_types:"Taxes",expense_category:"Cat\xE9gories de d\xE9pense",update_app:"Mise \xE0 jour",backup:"Sauvegarde",file_disk:"Stockage",custom_fields:"Champs personnalis\xE9s",payment_modes:"Modes de paiement",notes:"Notes de bas de page",exchange_rate:"Taux de change",address_information:"Address Information"},address_information:{section_description:" Vous pouvez mettre \xE0 jour vos informations d'adresse via le formulaire ci dessous."},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:"Fournisseur",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:"Envoi d'emails",from_name:"Nom de l'exp\xE9diteur",from_mail:"Email de l'exp\xE9diteur",encryption:"Chiffrement",mail_config_desc:"Saisissez ici les param\xE8tres d'envoi de votre bo\xEEte email, afin que l'application puisse envoyer des messages. Vous pouvez \xE9galement utiliser un service tiers, comme Sendgrid par exemple."},pdf:{title:"Param\xE8tre PDF",footer_text:"Pied de page",pdf_layout:"Mise en page PDF"},company_info:{company_info:"Coordonn\xE9es de la soci\xE9t\xE9",company_name:"Nom",company_logo:"Logo",section_description:"Saisissez ici les coordonn\xE9es de votre entreprise qui s'afficheront sur tous vos documents.",phone:"T\xE9l\xE9phone",country:"Pays",state:"\xC9tat",city:"Ville",address:"Adresse",zip:"Code postal",save:"Enregistrer",delete:"Supprimer",updated_message:"Informations sur la soci\xE9t\xE9 mises \xE0 jour",delete_company:"Supprimer la soci\xE9t\xE9",delete_company_description:"Une fois votre soci\xE9t\xE9 supprim\xE9e, vous perdrez d\xE9finitivement toutes les donn\xE9es et fichiers qui lui sont associ\xE9s.",are_you_absolutely_sure:"En \xEAtes vous vraiment s\xFBr?",delete_company_modal_desc:"Cette action ne peut pas \xEAtre annul\xE9e. Cela supprimera d\xE9finitivement {company} et toutes les donn\xE9es associ\xE9es.",delete_company_modal_label:"Veuillez saisir {company} pour confirmer"},custom_fields:{title:"Champs personnalis\xE9s",section_description:"Personnalisez vos factures, devis et re\xE7us de paiement avec vos propres champs. Vous pouvez les utiliser dans les formats d'adresse ou dans les notes de bas de page.",add_custom_field:"Ajouter un champ personnalis\xE9",edit_custom_field:"Modifier ce champ personnalis\xE9",field_name:"Nom du champs",label:"\xC9tiquette",type:"Type\xA0",name:"Nom",slug:"Jeton",required:"Obligatoire",placeholder:"Indication",help_text:"Texte d'aide",default_value:"Valeur par d\xE9faut",prefix:"Pr\xE9fixe",starting_number:"Num\xE9ro de d\xE9part",model:"Appliquer \xE0",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",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",added_message:"Champ personnalis\xE9 ajout\xE9",press_enter_to_add:"Appuyez sur Entr\xE9e pour ajouter une nouvelle option",model_in_use:"Impossible de mettre \xE0 jour le mod\xE8le pour les champs qui sont d\xE9j\xE0 utilis\xE9s.",type_in_use:"Impossible de mettre \xE0 jour le type des champs d\xE9j\xE0 utilis\xE9s."},customization:{customization:"Personnalisation",updated_message:"Informations la soci\xE9t\xE9 mises \xE0 jour",save:"Enregistrer",insert_fields:"Ins\xE9rer des champs",learn_custom_format:"Apprenez \xE0 utiliser le format personnalis\xE9",add_new_component:"Ajouter un composant",component:"Composant",Parameter:"Param\xE8tre",series:"Texte",series_description:"Un texte statique qui peut faire jusqu'\xE0 quatre caract\xE8res.",series_param_label:"Texte",delimiter:"S\xE9parateur",delimiter_description:"Un caract\xE8re servant \xE0 s\xE9parer deux composants. Par exemple, un trait d'union",delimiter_param_label:"Caract\xE8re",date_format:"Date",date_format_description:`Une date qui peut format\xE9e. Par exemple, "Y" affichera l'ann\xE9e en cours.`,date_format_param_label:"Format",sequence:"Suite",sequence_description:"G\xE9n\xE8re un num\xE9ro de facture unique. Vous pouvez indiquer le nombre de chiffres \xE0 utiliser.",sequence_param_label:"Longueur",customer_series:"Code client",customer_series_description:"Un code unique \xE0 chaque client, qui peut \xEAtre indiqu\xE9 dans les param\xE8tres du client.",customer_sequence:"Num\xE9ro client",customer_sequence_description:"Un num\xE9ro de client unique.",customer_sequence_param_label:"Longueur",random_sequence:"Suite al\xE9atoire",random_sequence_description:`Suite alphanum\xE9rique al\xE9atoire. +var It=Object.defineProperty,Tt=Object.defineProperties;var Rt=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var Qe=(n,r,o)=>r in n?It(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,M=(n,r)=>{for(var o in r||(r={}))Mt.call(r,o)&&Qe(n,o,r[o]);if(Je)for(var o of Je(r))Ft.call(r,o)&&Qe(n,o,r[o]);return n},W=(n,r)=>Tt(n,Rt(r));import{a as v,d as Q,_ as oe,c as $t,b as Ut,r as C,o as l,e as _,f as u,F as X,g as F,n as De,h as c,w as f,i as B,t as w,j as P,k as A,l as T,u as d,m as N,p as pe,q as xe,v as Vt,s as le,x as J,y as ae,z as Xe,A as Ot,B as K,C as fe,D as Pe,E as Lt,G as ge,H as G,I as be,J as Se,K as et,L as te,M as tt,N as Ue,O as at,P as qt,Q as Bt,R as Kt,S as Ce,T as Zt,U as se,V as Wt,W as Ht,X as Yt,Y as Ne,Z as Gt,$ as Jt,a0 as Ve,a1 as nt,a2 as Ee,a3 as it,a4 as Qt,a5 as ot,a6 as st,a7 as rt,a8 as Xt,a9 as ea,aa as ta,ab as aa,ac as na,ad as ia,ae as oa,af as sa,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 fa,as as ga,at as va,au as ya,av as Oe,aw as _t,ax as ut,ay as ha,az as ba,aA as ka,aB as wa,aC as za,aD as xa,aE as Le,aF as Pa,aG as Sa,aH as ja,aI as Aa,aJ as Da,aK as Ca,aL as Na}from"./vendor.d12b5734.js";var qe={get(n){return localStorage.getItem(n)?localStorage.getItem(n):null},set(n,r){localStorage.setItem(n,r)},remove(n){localStorage.removeItem(n)}};window.Ls=qe;window.axios=v;v.defaults.withCredentials=!0;v.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"};v.interceptors.request.use(function(n){const r=qe.get("selectedCompany"),o=qe.get("auth.token");return o&&(n.headers.common.Authorization=o),r&&(n.headers.common.company=r),n});const $=(n=!1)=>(n?window.pinia.defineStore:Q)({id:"notification",state:()=>({active:!1,autoHide:!0,notifications:[]}),actions:{showNotification(o){this.notifications.push(W(M({},o),{id:(Math.random().toString(36)+Date.now().toString(36)).substr(2)}))},hideNotification(o){this.notifications=this.notifications.filter(a=>a.id!=o.id)}}})(),Ea=(n=!1)=>(n?window.pinia.defineStore:Q)({id:"auth",state:()=>({status:"",loginData:{email:"",password:"",remember:""}}),actions:{login(o){return new Promise((a,t)=>{v.get("/sanctum/csrf-cookie").then(i=>{i&&v.post("/login",o).then(e=>{a(e),setTimeout(()=>{this.loginData.email="",this.loginData.password=""},1e3)}).catch(e=>{y(e),t(e)})})})},logout(){return new Promise((o,a)=>{v.post("/auth/logout").then(t=>{$().showNotification({type:"success",message:"Logged out successfully."}),window.router.push("/login"),o(t)}).catch(t=>{y(t),window.router.push("/"),a(t)})})}}})(),y=n=>{var a;const r=Ea(),o=$();if(!n.response)o.showNotification({type:"error",message:"Please check your internet connection or wait until servers are back online."});else if(n.response.data&&(n.response.statusText==="Unauthorized"||n.response.data===" Unauthorized.")){const t=n.response.data.message?n.response.data.message:"Unauthorized";V(t),r.logout()}else if(n.response.data.errors){const t=JSON.parse(JSON.stringify(n.response.data.errors));for(const i in t)Ie(t[i][0])}else n.response.data.error?typeof n.response.data.error=="boolean"?Ie((a=n.response.data)==null?void 0:a.message):Ie(n.response.data.error):Ie(n.response.data.message)},Ie=n=>{switch(n){case"These credentials do not match our records.":V("errors.login_invalid_credentials");break;case"invalid_key":V("errors.invalid_provider_key");break;case"This feature is available on Starter plan and onwards!":V("errors.starter_plan");break;case"taxes_attached":V("settings.tax_types.already_in_use");break;case"expense_attached":V("settings.expense_category.already_in_use");break;case"payments_attached":V("settings.payment_modes.payments_attached");break;case"expenses_attached":V("settings.payment_modes.expenses_attached");break;case"role_attached_to_users":V("settings.roles.already_in_use");break;case"items_attached":V("settings.customization.items.already_in_use");break;case"payment_attached_message":V("invoices.payment_attached_message");break;case"The email has already been taken.":V("validation.email_already_taken");break;case"Relation estimateItems exists.":V("items.item_attached_message");break;case"Relation invoiceItems exists.":V("items.item_attached_message");break;case"Relation taxes exists.":V("settings.tax_types.already_in_use");break;case"Relation taxes exists.":V("settings.tax_types.already_in_use");break;case"Relation payments exists.":V("errors.payment_attached");break;case"The estimate number has already been taken.":V("errors.estimate_number_used");break;case"The payment number has already been taken.":V("errors.estimate_number_used");break;case"The invoice number has already been taken.":V("errors.invoice_number_used");break;case"The name has already been taken.":V("errors.name_already_taken");break;case"total_invoice_amount_must_be_more_than_paid_amount":V("invoices.invalid_due_amount_message");break;case"you_cannot_edit_currency":V("customers.edit_currency_not_allowed");break;case"receipt_does_not_exist":V("errors.receipt_does_not_exist");break;case"customer_cannot_be_changed_after_payment_is_added":V("errors.customer_cannot_be_changed_after_payment_is_added");break;case"invalid_credentials":V("errors.invalid_credentials");break;case"not_allowed":V("errors.not_allowed");break;case"invalid_key":V("errors.invalid_key");break;case"invalid_state":V("errors.invalid_state");break;case"invalid_city":V("errors.invalid_city");break;case"invalid_postal_code":V("errors.invalid_postal_code");break;case"invalid_format":V("errors.invalid_format");break;case"api_error":V("errors.api_error");break;case"feature_not_enabled":V("errors.feature_not_enabled");break;case"request_limit_met":V("errors.request_limit_met");break;case"address_incomplete":V("errors.address_incomplete");break;case"invalid_address":V("errors.invalid_address");break;case"Email could not be sent to this email address.":V("errors.email_could_not_be_sent");break;default:V(n,!1);break}},V=(n,r=!0)=>{const{global:o}=window.i18n;$().showNotification({type:"error",message:r?o.t(n):n})},ve=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.put("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,Object.assign(this.userForm,e.data.data),$().showNotification({type:"success",message:o.t("settings.account_settings.updated_message")}),t(e)}).catch(e=>{y(e),i(e)})})},fetchCurrentUser(a){return new Promise((t,i)=>{v.get("/api/v1/me",a).then(e=>{this.currentUser=e.data.data,this.userForm=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},uploadAvatar(a){return new Promise((t,i)=>{v.post("/api/v1/me/upload-avatar",a).then(e=>{this.currentUser.avatar=e.data.data.avatar,t(e)}).catch(e=>{y(e),i(e)})})},fetchUserSettings(a){return new Promise((t,i)=>{v.get("/api/v1/me/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},updateUserSettings(a){return new Promise((t,i)=>{v.put("/api/v1/me/settings",a).then(e=>{a.settings.language&&(this.currentUserSettings.language=a.settings.language,o.locale=a.settings.language),a.settings.default_estimate_template&&(this.currentUserSettings.default_estimate_template=a.settings.default_estimate_template),a.settings.default_invoice_template&&(this.currentUserSettings.default_invoice_template=a.settings.default_invoice_template),t(e)}).catch(e=>{y(e),i(e)})})},hasAbilities(a){return!!this.currentAbilities.find(t=>t.name==="*"?!0:typeof a=="string"?t.name===a:!!a.find(i=>t.name===i))},hasAllAbilities(a){let t=!0;return this.currentAbilities.filter(i=>{!!a.find(s=>i.name===s)||(t=!1)}),t}}})()},_e=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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)=>{v.get("/api/v1/company/mail/config").then(i=>{a(i)}).catch(i=>{y(i),t(i)})})},updateCompany(a){return new Promise((t,i)=>{v.put("/api/v1/company",a).then(e=>{$().showNotification({type:"success",message:o.t("settings.company_info.updated_message")}),this.selectedCompany=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},updateCompanyLogo(a){return new Promise((t,i)=>{v.post("/api/v1/company/upload-logo",a).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},addNewCompany(a){return new Promise((t,i)=>{v.post("/api/v1/companies",a).then(e=>{$().showNotification({type:"success",message:o.t("company_switcher.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},fetchCompany(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},fetchUserCompanies(){return new Promise((a,t)=>{v.get("/api/v1/companies").then(i=>{a(i)}).catch(i=>{y(i),t(i)})})},fetchCompanySettings(a){return new Promise((t,i)=>{v.get("/api/v1/company/settings",{params:{settings:a}}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},updateCompanySettings({data:a,message:t}){return new Promise((i,e)=>{v.post("/api/v1/company/settings",a).then(s=>{Object.assign(this.selectedCompanySettings,a.settings),t&&$().showNotification({type:"success",message:o.t(t)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteCompany(a){return new Promise((t,i)=>{v.post("/api/v1/companies/delete",a).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},setDefaultCurrency(a){this.defaultCurrency=a.currency}}})()},Ia=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.get("/api/v1/modules").then(e=>{this.modules=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchModule(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},checkApiToken(a){return new Promise((t,i)=>{v.get(`/api/v1/modules/check?api_token=${a}`).then(e=>{const s=$();e.data.error==="invalid_token"&&s.showNotification({type:"error",message:o.t("modules.invalid_api_token")}),t(e)}).catch(e=>{y(e),i(e)})})},disableModule(a){return new Promise((t,i)=>{v.post(`/api/v1/modules/${a}/disable`).then(e=>{const s=$();e.data.success&&s.showNotification({type:"success",message:o.t("modules.module_disabled")}),t(e)}).catch(e=>{y(e),i(e)})})},enableModule(a){return new Promise((t,i)=>{v.post(`/api/v1/modules/${a}/enable`).then(e=>{const s=$();e.data.success&&s.showNotification({type:"success",message:o.t("modules.module_enabled")}),t(e)}).catch(e=>{y(e),i(e)})})}}})()},Te=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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)=>{v.get("/api/v1/bootstrap").then(i=>{const e=_e(),s=ve(),m=Ia();this.mainMenu=i.data.main_menu,this.settingMenu=i.data.setting_menu,this.config=i.data.config,this.globalSettings=i.data.global_settings,s.currentUser=i.data.current_user,s.currentUserSettings=i.data.current_user_settings,s.currentAbilities=i.data.current_user_abilities,m.apiToken=i.data.global_settings.api_token,m.enableModules=i.data.modules,e.companies=i.data.companies,e.selectedCompany=i.data.current_company,e.setSelectedCompany(i.data.current_company),e.selectedCompanySettings=i.data.current_company_settings,e.selectedCompanyCurrency=i.data.current_company_currency,o.locale=i.data.current_user_settings.language||"en",this.isAppLoaded=!0,a(i)}).catch(i=>{y(i),t(i)})})},fetchCurrencies(){return new Promise((a,t)=>{this.currencies.length||this.areCurrenciesLoading?a(this.currencies):(this.areCurrenciesLoading=!0,v.get("/api/v1/currencies").then(i=>{this.currencies=i.data.data.filter(e=>e.name=`${e.code} - ${e.name}`),this.areCurrenciesLoading=!1,a(i)}).catch(i=>{y(i),this.areCurrenciesLoading=!1,t(i)}))})},fetchConfig(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},fetchDateFormats(){return new Promise((a,t)=>{this.dateFormats.length?a(this.dateFormats):v.get("/api/v1/date/formats").then(i=>{this.dateFormats=i.data.date_formats,a(i)}).catch(i=>{y(i),t(i)})})},fetchTimeZones(){return new Promise((a,t)=>{this.timeZones.length?a(this.timeZones):v.get("/api/v1/timezones").then(i=>{this.timeZones=i.data.time_zones,a(i)}).catch(i=>{y(i),t(i)})})},fetchCountries(){return new Promise((a,t)=>{this.countries.length?a(this.countries):v.get("/api/v1/countries").then(i=>{this.countries=i.data.data,a(i)}).catch(i=>{y(i),t(i)})})},fetchPlaceholders(a){return new Promise((t,i)=>{v.get("/api/v1/number-placeholders",{params:a}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},setSidebarVisibility(a){this.isSidebarOpen=a},setIsAppLoaded(a){this.isAppLoaded=a},updateGlobalSettings({data:a,message:t}){return new Promise((i,e)=>{v.post("/api/v1/settings",a).then(s=>{Object.assign(this.globalSettings,a.settings),t&&$().showNotification({type:"success",message:o.t(t)}),i(s)}).catch(s=>{y(s),e(s)})})}}})()},Ta="modulepreload",mt={},Ra="/build/",S=function(r,o){return!o||o.length===0?r():Promise.all(o.map(a=>{if(a=`${Ra}${a}`,a in mt)return;mt[a]=!0;const t=a.endsWith(".css"),i=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${i}`))return;const e=document.createElement("link");if(e.rel=t?"stylesheet":Ta,t||(e.as="script",e.crossOrigin=""),e.href=a,document.head.appendChild(e),t)return new Promise((s,m)=>{e.addEventListener("load",s),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 Ma=()=>S(()=>import("./LayoutInstallation.d1075109.js"),["assets/LayoutInstallation.d1075109.js","assets/NotificationRoot.b2aa5501.js","assets/vendor.d12b5734.js"]),pt=()=>S(()=>import("./Login.5885977a.js"),["assets/Login.5885977a.js","assets/vendor.d12b5734.js"]),Fa=()=>S(()=>import("./LayoutBasic.5db11c89.js"),["assets/LayoutBasic.5db11c89.js","assets/vendor.d12b5734.js","assets/exchange-rate.70a72e5f.js","assets/users.7c501231.js","assets/NotificationRoot.b2aa5501.js","assets/index.esm.85b4999a.js"]),$a=()=>S(()=>import("./LayoutLogin.3c63f158.js"),["assets/LayoutLogin.3c63f158.js","assets/NotificationRoot.b2aa5501.js","assets/vendor.d12b5734.js"]),Ua=()=>S(()=>import("./ResetPassword.6fb90383.js"),["assets/ResetPassword.6fb90383.js","assets/vendor.d12b5734.js"]),Va=()=>S(()=>import("./ForgotPassword.0bff03a9.js"),["assets/ForgotPassword.0bff03a9.js","assets/vendor.d12b5734.js"]),Oa=()=>S(()=>import("./Dashboard.8190d462.js"),["assets/Dashboard.8190d462.js","assets/EstimateIcon.86606287.js","assets/vendor.d12b5734.js","assets/LineChart.6775a7d1.js","assets/InvoiceIndexDropdown.174ed624.js","assets/EstimateIndexDropdown.c74a1c48.js"]),La=()=>S(()=>import("./Index.60a6d69a.js"),["assets/Index.60a6d69a.js","assets/vendor.d12b5734.js","assets/CustomerIndexDropdown.78bcff92.js","assets/AstronautIcon.82b952e2.js"]),ft=()=>S(()=>import("./Create.d799ac98.js"),["assets/Create.d799ac98.js","assets/vendor.d12b5734.js","assets/CreateCustomFields.04aba193.js"]),qa=()=>S(()=>import("./View.70d88bd0.js"),["assets/View.70d88bd0.js","assets/vendor.d12b5734.js","assets/LoadingIcon.58a27e40.js","assets/LineChart.6775a7d1.js","assets/CustomerIndexDropdown.78bcff92.js"]),Ba=()=>S(()=>import("./SettingsIndex.248ca841.js"),["assets/SettingsIndex.248ca841.js","assets/vendor.d12b5734.js","assets/BaseListItem.ee8337b3.js"]),Ka=()=>S(()=>import("./AccountSetting.6cb82167.js"),["assets/AccountSetting.6cb82167.js","assets/vendor.d12b5734.js"]),Za=()=>S(()=>import("./CompanyInfoSettings.4883a4d5.js"),["assets/CompanyInfoSettings.4883a4d5.js","assets/vendor.d12b5734.js"]),Wa=()=>S(()=>import("./PreferencesSetting.e050bdf7.js"),["assets/PreferencesSetting.e050bdf7.js","assets/vendor.d12b5734.js"]),Ha=()=>S(()=>import("./CustomizationSetting.8afa996f.js"),["assets/CustomizationSetting.8afa996f.js","assets/vendor.d12b5734.js","assets/DragIcon.d9f643cf.js","assets/payment.2b6f850e.js","assets/ItemUnitModal.12dfe4f1.js"]),Ya=()=>S(()=>import("./NotificationsSetting.40dfd6be.js"),["assets/NotificationsSetting.40dfd6be.js","assets/vendor.d12b5734.js"]),Ga=()=>S(()=>import("./TaxTypesSetting.68bd06bf.js"),["assets/TaxTypesSetting.68bd06bf.js","assets/vendor.d12b5734.js","assets/TaxTypeModal.3db473e9.js"]),Ja=()=>S(()=>import("./PaymentsModeSetting.c12111f3.js"),["assets/PaymentsModeSetting.c12111f3.js","assets/vendor.d12b5734.js","assets/payment.2b6f850e.js","assets/PaymentModeModal.2e1f1512.js"]),Qa=()=>S(()=>import("./CustomFieldsSetting.ee4f83ef.js"),["assets/CustomFieldsSetting.ee4f83ef.js","assets/vendor.d12b5734.js"]),Xa=()=>S(()=>import("./NotesSetting.06a58218.js"),["assets/NotesSetting.06a58218.js","assets/vendor.d12b5734.js","assets/NoteModal.c9605dba.js","assets/NoteModal.3245b7d3.css","assets/payment.2b6f850e.js"]),en=()=>S(()=>import("./ExpenseCategorySetting.4ef6d3ed.js"),["assets/ExpenseCategorySetting.4ef6d3ed.js","assets/category.970a47d6.js","assets/vendor.d12b5734.js","assets/CategoryModal.dc91de33.js"]),tn=()=>S(()=>import("./ExchangeRateProviderSetting.02eba7ee.js"),["assets/ExchangeRateProviderSetting.02eba7ee.js","assets/exchange-rate.70a72e5f.js","assets/vendor.d12b5734.js","assets/BaseTable.d75a6388.js"]),an=()=>S(()=>import("./MailConfigSetting.50d2b38b.js"),["assets/MailConfigSetting.50d2b38b.js","assets/vendor.d12b5734.js","assets/mail-driver.b57a1b96.js"]),nn=()=>S(()=>import("./FileDiskSetting.ba22e97c.js"),["assets/FileDiskSetting.ba22e97c.js","assets/disk.40fc971f.js","assets/vendor.d12b5734.js"]),on=()=>S(()=>import("./BackupSetting.1fe81432.js"),["assets/BackupSetting.1fe81432.js","assets/vendor.d12b5734.js","assets/disk.40fc971f.js"]),sn=()=>S(()=>import("./UpdateAppSetting.746fa480.js"),["assets/UpdateAppSetting.746fa480.js","assets/UpdateAppSetting.7d8b987a.css","assets/vendor.d12b5734.js","assets/LoadingIcon.58a27e40.js","assets/exchange-rate.70a72e5f.js"]),rn=()=>S(()=>import("./RolesSettings.9dd64fa2.js"),["assets/RolesSettings.9dd64fa2.js","assets/vendor.d12b5734.js"]),dn=()=>S(()=>import("./Index.a564d566.js"),["assets/Index.a564d566.js","assets/vendor.d12b5734.js"]),gt=()=>S(()=>import("./Create.849d4041.js"),["assets/Create.849d4041.js","assets/vendor.d12b5734.js","assets/ItemUnitModal.12dfe4f1.js"]),ln=()=>S(()=>import("./Index.54a7d1be.js"),["assets/Index.54a7d1be.js","assets/vendor.d12b5734.js","assets/expense.190eb9e9.js","assets/category.970a47d6.js"]),vt=()=>S(()=>import("./Create.3743a104.js"),["assets/Create.3743a104.js","assets/vendor.d12b5734.js","assets/expense.190eb9e9.js","assets/category.970a47d6.js","assets/CreateCustomFields.04aba193.js","assets/CategoryModal.dc91de33.js","assets/ExchangeRateConverter.6e0e36e7.js","assets/exchange-rate.70a72e5f.js"]),cn=()=>S(()=>import("./Index.fcc3038d.js"),["assets/Index.fcc3038d.js","assets/vendor.d12b5734.js","assets/users.7c501231.js","assets/AstronautIcon.82b952e2.js"]),yt=()=>S(()=>import("./Create.cd47948b.js"),["assets/Create.cd47948b.js","assets/vendor.d12b5734.js","assets/index.esm.85b4999a.js","assets/users.7c501231.js"]),_n=()=>S(()=>import("./Index.1005222f.js"),["assets/Index.1005222f.js","assets/vendor.d12b5734.js","assets/ObservatoryIcon.528a64ab.js","assets/EstimateIndexDropdown.c74a1c48.js","assets/SendEstimateModal.d6ecf83f.js","assets/mail-driver.b57a1b96.js"]),ht=()=>S(()=>import("./EstimateCreate.f2c398e0.js"),["assets/EstimateCreate.f2c398e0.js","assets/vendor.d12b5734.js","assets/SalesTax.67357751.js","assets/DragIcon.d9f643cf.js","assets/SelectNotePopup.ead4330d.js","assets/NoteModal.c9605dba.js","assets/NoteModal.3245b7d3.css","assets/payment.2b6f850e.js","assets/CreateCustomFields.04aba193.js","assets/ExchangeRateConverter.6e0e36e7.js","assets/exchange-rate.70a72e5f.js","assets/TaxTypeModal.3db473e9.js"]),un=()=>S(()=>import("./View.7a392eb1.js"),["assets/View.7a392eb1.js","assets/vendor.d12b5734.js","assets/EstimateIndexDropdown.c74a1c48.js","assets/SendEstimateModal.d6ecf83f.js","assets/mail-driver.b57a1b96.js","assets/LoadingIcon.58a27e40.js"]),mn=()=>S(()=>import("./Index.0c596f43.js"),["assets/Index.0c596f43.js","assets/vendor.d12b5734.js","assets/payment.2b6f850e.js","assets/CapsuleIcon.37dfa933.js","assets/SendPaymentModal.b203e586.js","assets/mail-driver.b57a1b96.js"]),Be=()=>S(()=>import("./Create.ee2ce8e0.js"),["assets/Create.ee2ce8e0.js","assets/vendor.d12b5734.js","assets/ExchangeRateConverter.6e0e36e7.js","assets/exchange-rate.70a72e5f.js","assets/payment.2b6f850e.js","assets/SelectNotePopup.ead4330d.js","assets/NoteModal.c9605dba.js","assets/NoteModal.3245b7d3.css","assets/CreateCustomFields.04aba193.js","assets/PaymentModeModal.2e1f1512.js"]),pn=()=>S(()=>import("./View.33722222.js"),["assets/View.33722222.js","assets/vendor.d12b5734.js","assets/payment.2b6f850e.js","assets/SendPaymentModal.b203e586.js","assets/mail-driver.b57a1b96.js","assets/LoadingIcon.58a27e40.js"]),fn=()=>S(()=>import("./404.e81599b7.js"),["assets/404.e81599b7.js","assets/vendor.d12b5734.js"]),gn=()=>S(()=>import("./Index.8e2973a2.js"),["assets/Index.8e2973a2.js","assets/vendor.d12b5734.js","assets/MoonwalkerIcon.b55d3604.js","assets/InvoiceIndexDropdown.174ed624.js","assets/SendInvoiceModal.df7ecbe5.js","assets/mail-driver.b57a1b96.js"]),bt=()=>S(()=>import("./InvoiceCreate.723d983d.js"),["assets/InvoiceCreate.723d983d.js","assets/vendor.d12b5734.js","assets/SalesTax.67357751.js","assets/DragIcon.d9f643cf.js","assets/SelectNotePopup.ead4330d.js","assets/NoteModal.c9605dba.js","assets/NoteModal.3245b7d3.css","assets/payment.2b6f850e.js","assets/ExchangeRateConverter.6e0e36e7.js","assets/exchange-rate.70a72e5f.js","assets/CreateCustomFields.04aba193.js","assets/TaxTypeModal.3db473e9.js"]),vn=()=>S(()=>import("./View.db9ebd38.js"),["assets/View.db9ebd38.js","assets/vendor.d12b5734.js","assets/SendInvoiceModal.df7ecbe5.js","assets/mail-driver.b57a1b96.js","assets/InvoiceIndexDropdown.174ed624.js","assets/LoadingIcon.58a27e40.js"]),yn=()=>S(()=>import("./Index.e94df0e9.js"),["assets/Index.e94df0e9.js","assets/vendor.d12b5734.js","assets/SendInvoiceModal.df7ecbe5.js","assets/mail-driver.b57a1b96.js","assets/RecurringInvoiceIndexDropdown.b5cf79fe.js","assets/MoonwalkerIcon.b55d3604.js"]),kt=()=>S(()=>import("./RecurringInvoiceCreate.31b71237.js"),["assets/RecurringInvoiceCreate.31b71237.js","assets/vendor.d12b5734.js","assets/SalesTax.67357751.js","assets/DragIcon.d9f643cf.js","assets/SelectNotePopup.ead4330d.js","assets/NoteModal.c9605dba.js","assets/NoteModal.3245b7d3.css","assets/payment.2b6f850e.js","assets/ExchangeRateConverter.6e0e36e7.js","assets/exchange-rate.70a72e5f.js","assets/CreateCustomFields.04aba193.js","assets/TaxTypeModal.3db473e9.js"]),hn=()=>S(()=>import("./View.65c8e27d.js"),["assets/View.65c8e27d.js","assets/vendor.d12b5734.js","assets/LoadingIcon.58a27e40.js","assets/InvoiceIndexDropdown.174ed624.js","assets/SendInvoiceModal.df7ecbe5.js","assets/mail-driver.b57a1b96.js","assets/RecurringInvoiceIndexDropdown.b5cf79fe.js"]),bn=()=>S(()=>import("./Index.38b36d95.js"),["assets/Index.38b36d95.js","assets/vendor.d12b5734.js"]),kn=()=>S(()=>import("./Installation.939274ae.js"),["assets/Installation.939274ae.js","assets/vendor.d12b5734.js","assets/mail-driver.b57a1b96.js"]),wn=()=>S(()=>import("./Index.d028f200.js"),["assets/Index.d028f200.js","assets/vendor.d12b5734.js"]),zn=()=>S(()=>import("./View.fbd1288c.js"),["assets/View.fbd1288c.js","assets/vendor.d12b5734.js"]),xn=()=>S(()=>import("./InvoicePublicPage.57c1fc66.js"),["assets/InvoicePublicPage.57c1fc66.js","assets/vendor.d12b5734.js"]);var Pn=[{path:"/installation",component:Ma,meta:{requiresAuth:!1},children:[{path:"/installation",component:kn,name:"installation"}]},{path:"/customer/invoices/view/:hash",component:xn,name:"invoice.public"},{path:"/",component:$a,meta:{requiresAuth:!1,redirectIfAuthenticated:!0},children:[{path:"",component:pt},{path:"login",name:"login",component:pt},{path:"forgot-password",component:Va,name:"forgot-password"},{path:"/reset-password/:token",component:Ua,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:ft},{path:"customers/:id/edit",name:"customers.edit",meta:{ability:O.EDIT_CUSTOMER},component:ft},{path:"customers/:id/view",name:"customers.view",meta:{ability:O.VIEW_CUSTOMER},component:qa},{path:"payments",meta:{ability:O.VIEW_PAYMENT},component:mn},{path:"payments/create",name:"payments.create",meta:{ability:O.CREATE_PAYMENT},component:Be},{path:"payments/:id/create",name:"invoice.payments.create",meta:{ability:O.CREATE_PAYMENT},component:Be},{path:"payments/:id/edit",name:"payments.edit",meta:{ability:O.EDIT_PAYMENT},component:Be},{path:"payments/:id/view",name:"payments.view",meta:{ability:O.VIEW_PAYMENT},component:pn},{path:"settings",name:"settings",component:Ba,children:[{path:"account-settings",name:"account.settings",component:Ka},{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:Ya},{path:"roles-settings",name:"roles.settings",meta:{isOwner:!0},component:rn},{path:"exchange-rate-provider",name:"exchange.rate.provider",meta:{ability:O.VIEW_EXCHANGE_RATE},component:tn},{path:"tax-types",name:"tax.types",meta:{ability:O.VIEW_TAX_TYPE},component:Ga},{path:"notes",name:"notes",meta:{ability:O.VIEW_ALL_NOTES},component:Xa},{path:"payment-mode",name:"payment.mode",component:Ja},{path:"custom-fields",name:"custom.fields",meta:{ability:O.VIEW_CUSTOM_FIELDS},component:Qa},{path:"expense-category",name:"expense.category",meta:{ability:O.VIEW_EXPENSE},component:en},{path:"mail-configuration",name:"mailconfig",meta:{isOwner:!0},component:an},{path:"file-disk",name:"file-disk",meta:{isOwner:!0},component:nn},{path:"backup",name:"backup",meta:{isOwner:!0},component:on},{path:"update-app",name:"updateapp",meta:{isOwner:!0},component:sn}]},{path:"items",meta:{ability:O.VIEW_ITEM},component:dn},{path:"items/create",name:"items.create",meta:{ability:O.CREATE_ITEM},component:gt},{path:"items/:id/edit",name:"items.edit",meta:{ability:O.EDIT_ITEM},component:gt},{path:"expenses",meta:{ability:O.VIEW_EXPENSE},component:ln},{path:"expenses/create",name:"expenses.create",meta:{ability:O.CREATE_EXPENSE},component:vt},{path:"expenses/:id/edit",name:"expenses.edit",meta:{ability:O.EDIT_EXPENSE},component:vt},{path:"users",name:"users.index",meta:{isOwner:!0},component:cn},{path:"users/create",meta:{isOwner:!0},name:"users.create",component:yt},{path:"users/:id/edit",name:"users.edit",meta:{isOwner:!0},component:yt},{path:"estimates",name:"estimates.index",meta:{ability:O.VIEW_ESTIMATE},component:_n},{path:"estimates/create",name:"estimates.create",meta:{ability:O.CREATE_ESTIMATE},component:ht},{path:"estimates/:id/view",name:"estimates.view",meta:{ability:O.VIEW_ESTIMATE},component:un},{path:"estimates/:id/edit",name:"estimates.edit",meta:{ability:O.EDIT_ESTIMATE},component:ht},{path:"invoices",name:"invoices.index",meta:{ability:O.VIEW_INVOICE},component:gn},{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:vn},{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:yn},{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:hn},{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:wn},{path:"modules/:slug",name:"modules.view",meta:{isOwner:!0},component:zn},{path:"reports",meta:{ability:O.VIEW_FINANCIAL_REPORT},component:bn}]},{path:"/:catchAll(.*)",component:fn}];const Sn=()=>S(()=>import("./LayoutBasic.12dd735a.js"),["assets/LayoutBasic.12dd735a.js","assets/auth.a07e0850.js","assets/vendor.d12b5734.js","assets/global.1ac91de5.js","assets/NotificationRoot.b2aa5501.js"]),jn=()=>S(()=>import("./LayoutLogin.2b25369b.js"),["assets/LayoutLogin.2b25369b.js","assets/NotificationRoot.b2aa5501.js","assets/vendor.d12b5734.js"]),wt=()=>S(()=>import("./Login.02fe20ac.js"),["assets/Login.02fe20ac.js","assets/vendor.d12b5734.js","assets/auth.a07e0850.js"]),An=()=>S(()=>import("./ForgotPassword.06039a0d.js"),["assets/ForgotPassword.06039a0d.js","assets/vendor.d12b5734.js","assets/auth.a07e0850.js"]),Dn=()=>S(()=>import("./ResetPassword.609ea369.js"),["assets/ResetPassword.609ea369.js","assets/vendor.d12b5734.js","assets/global.1ac91de5.js","assets/auth.a07e0850.js"]),Cn=()=>S(()=>import("./Dashboard.80c815dd.js"),["assets/Dashboard.80c815dd.js","assets/EstimateIcon.86606287.js","assets/vendor.d12b5734.js","assets/global.1ac91de5.js","assets/auth.a07e0850.js","assets/BaseTable.d75a6388.js"]),Nn=()=>S(()=>import("./Index.2f6b2ed6.js"),["assets/Index.2f6b2ed6.js","assets/vendor.d12b5734.js","assets/invoice.fba53e83.js","assets/auth.a07e0850.js","assets/BaseTable.d75a6388.js","assets/global.1ac91de5.js","assets/MoonwalkerIcon.b55d3604.js"]),En=()=>S(()=>import("./View.e87ed933.js"),["assets/View.e87ed933.js","assets/vendor.d12b5734.js","assets/invoice.fba53e83.js","assets/auth.a07e0850.js","assets/global.1ac91de5.js"]),In=()=>S(()=>import("./Index.4891b5b4.js"),["assets/Index.4891b5b4.js","assets/vendor.d12b5734.js","assets/BaseTable.d75a6388.js","assets/global.1ac91de5.js","assets/auth.a07e0850.js","assets/estimate.c2ce8e7a.js","assets/ObservatoryIcon.528a64ab.js"]),Tn=()=>S(()=>import("./View.6fb75a2d.js"),["assets/View.6fb75a2d.js","assets/vendor.d12b5734.js","assets/estimate.c2ce8e7a.js","assets/auth.a07e0850.js","assets/global.1ac91de5.js"]),Rn=()=>S(()=>import("./Index.52aeabf0.js"),["assets/Index.52aeabf0.js","assets/vendor.d12b5734.js","assets/BaseTable.d75a6388.js","assets/CapsuleIcon.37dfa933.js","assets/payment.03dd8d5c.js","assets/auth.a07e0850.js","assets/global.1ac91de5.js"]),Mn=()=>S(()=>import("./View.43261a97.js"),["assets/View.43261a97.js","assets/vendor.d12b5734.js","assets/payment.03dd8d5c.js","assets/auth.a07e0850.js","assets/global.1ac91de5.js"]),Fn=()=>S(()=>import("./SettingsIndex.45695f64.js"),["assets/SettingsIndex.45695f64.js","assets/BaseListItem.ee8337b3.js","assets/vendor.d12b5734.js","assets/global.1ac91de5.js","assets/auth.a07e0850.js"]),$n=()=>S(()=>import("./CustomerSettings.1e7b255f.js"),["assets/CustomerSettings.1e7b255f.js","assets/vendor.d12b5734.js","assets/global.1ac91de5.js","assets/auth.a07e0850.js"]),Un=()=>S(()=>import("./AddressInformation.68e7b996.js"),["assets/AddressInformation.68e7b996.js","assets/vendor.d12b5734.js","assets/global.1ac91de5.js","assets/auth.a07e0850.js"]);var Vn=[{path:"/:company/customer",component:jn,meta:{redirectIfAuthenticated:!0},children:[{path:"",component:wt},{path:"login",component:wt,name:"customer.login"},{path:"forgot-password",component:An,name:"customer.forgot-password"},{path:"reset/password/:token",component:Dn,name:"customer.reset-password"}]},{path:"/:company/customer",component:Sn,meta:{requiresAuth:!0},children:[{path:"dashboard",component:Cn,name:"customer.dashboard"},{path:"invoices",component:Nn,name:"invoices.dashboard"},{path:"invoices/:id/view",component:En,name:"customer.invoices.view"},{path:"estimates",component:In,name:"estimates.dashboard"},{path:"estimates/:id/view",component:Tn,name:"customer.estimates.view"},{path:"payments",component:Rn,name:"payments.dashboard"},{path:"payments/:id/view",component:Mn,name:"customer.payments.view"},{path:"settings",component:Fn,name:"customer",children:[{path:"customer-profile",component:$n,name:"customer.profile"},{path:"address-info",component:Un,name:"customer.address.info"}]}]}];let Ke=[];Ke=Ke.concat(Pn,Vn);const Re=$t({history:Ut(),linkActiveClass:"active",routes:Ke});Re.beforeEach((n,r,o)=>{const a=ve(),t=Te();let i=n.meta.ability;const{isAppLoaded:e}=t;i&&e&&n.meta.requiresAuth?a.hasAbilities(i)?o():o({name:"account.settings"}):n.meta.isOwner&&e?a.currentUser.is_owner?o():o({name:"dashboard"}):o()});var ee=(n,r)=>{const o=n.__vccOpts||n;for(const[a,t]of r)o[a]=t;return o};const On={};function Ln(n,r){const o=C("router-view"),a=C("BaseDialog");return l(),_(X,null,[u(o),u(a)],64)}var qn=ee(On,[["render",Ln]]);const Bn={dashboard:"N\xE1st\u011Bnka",customers:"Z\xE1kazn\xEDci",items:"Polo\u017Eky",invoices:"Faktury","recurring-invoices":"Opakuj\xEDc\xED se faktury",expenses:"V\xFDdaje",estimates:"Nab\xEDdky",payments:"Platby",reports:"Hl\xE1\u0161en\xED",settings:"Nastaven\xED",logout:"Odhl\xE1sit se",users:"U\u017Eivatel\xE9",modules:"Modules"},Kn={add_company:"P\u0159idat firmu",view_pdf:"Zobrazit PDF",copy_pdf_url:"Kop\xEDrovat adresu PDF",download_pdf:"St\xE1hnout PDF",save:"Ulo\u017Eit",create:"Vytvo\u0159it",cancel:"Zru\u0161it",update:"Aktualizovat",deselect:"Odzna\u010Dit",download:"St\xE1hnout",from_date:"Od data",to_date:"Do data",from:"Od",to:"Do",ok:"OK",yes:"Ano",no:"Ne",sort_by:"Se\u0159adit podle",ascending:"Vzestupn\u011B",descending:"Sestupn\u011B",subject:"P\u0159edm\u011Bt",body:"T\u011Blo",message:"Zpr\xE1va",send:"Odeslat",preview:"N\xE1hled",go_back:"Vr\xE1tit se",back_to_login:"Zp\u011Bt na p\u0159ihl\xE1\u0161en\xED?",home:"Dom\u016F",filter:"Filtr",delete:"Smazat",edit:"Upravit",view:"Zobrazit",add_new_item:"P\u0159idat novou polo\u017Eku",clear_all:"Vymazat v\u0161e",showing:"Zobrazuji",of:"z",actions:"Akce",subtotal:"MEZISOU\u010CET",discount:"SLEVA",fixed:"Fixn\xED",percentage:"Procentu\xE1ln\u011B",tax:"DAN\u011A",total_amount:"CELKOV\xC9 MNO\u017DSTV\xCD",bill_to:"P\u0159\xEDjemce faktury",ship_to:"Doru\u010Dovac\xED adresa",due:"Datum platnosti",draft:"Koncept",sent:"Odesl\xE1no",all:"V\u0161e",select_all:"Vybrat v\u0161e",select_template:"Vybrat \u0161ablonu",choose_file:"Klikn\u011Bte zde pro v\xFDb\u011Br souboru",choose_template:"Zvolit \u0161ablonu",choose:"Vybrat",remove:"Odebrat",select_a_status:"Vybrat stav",select_a_tax:"Vybrat da\u0148",search:"Hledat",are_you_sure:"Opravdu?",list_is_empty:"Seznam je pr\xE1zdn\xFD.",no_tax_found:"\u017D\xE1dn\xE1 da\u0148 nebyla nalezena!",four_zero_four:"404",you_got_lost:"Jejda! Ztratili jste se!",go_home:"N\xE1vrat dom\u016F",test_mail_conf:"Otestovat konfiguraci mail\u016F",send_mail_successfully:"Mail byl \xFAsp\u011B\u0161n\u011B odesl\xE1n",setting_updated:"Nastaven\xED \xFAsp\u011B\u0161n\u011B aktualizov\xE1no",select_state:"Zvolte st\xE1t",select_country:"Zvolte zemi",select_city:"Zvolte m\u011Bsto",street_1:"Ulice 1",street_2:"Ulice 2",action_failed:"Akce se nezda\u0159ila",retry:"Zkusit znovu",choose_note:"Zvolit pozn\xE1mku",no_note_found:"Nebyly nalezeny \u017E\xE1dn\xE9 pozn\xE1mky",insert_note:"Vlo\u017Eit pozn\xE1mku",copied_pdf_url_clipboard:"Adresa PDF zkop\xEDrov\xE1na do schr\xE1nky!",copied_url_clipboard:"Copied url to clipboard!",docs:"Dokumentace",do_you_wish_to_continue:"P\u0159ejete si pokra\u010Dovat?",note:"Pozn\xE1mka",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},Zn={select_year:"Vybrat rok",cards:{due_amount:"\u010C\xE1stka k zaplacen\xED",customers:"Z\xE1kazn\xEDci",invoices:"Faktury",estimates:"Odhady",payments:"Payments"},chart_info:{total_sales:"Slevy",total_receipts:"Doklady",total_expense:"V\xFDdaje",net_income:"\u010Cist\xFD p\u0159\xEDjem",year:"Vybrat rok"},monthly_chart:{title:"Prodeje a v\xFDdaje"},recent_invoices_card:{title:"Splatn\xE9 faktury",due_on:"Splatnost",customer:"Z\xE1kazn\xEDk",amount_due:"Splatn\xE1 \u010D\xE1stka",actions:"Akce",view_all:"Zobrazit v\u0161e"},recent_estimate_card:{title:"Ned\xE1vn\xE9 nab\xEDdky",date:"Datum",customer:"Z\xE1kazn\xEDk",amount_due:"\u010C\xE1stka k zaplacen\xED",actions:"Akce",view_all:"Zobrazit v\u0161e"}},Wn={name:"Jm\xE9no",description:"Popis",percent:"Procento",compound_tax:"Kombinovan\xE1 da\u0148"},Hn={search:"Hledat...",customers:"Z\xE1kazn\xEDci",users:"U\u017Eivatel\xE9",no_results_found:"Nebyly nalezeny \u017E\xE1dn\xE9 v\xFDsledky"},Yn={label:"P\u0159epnout firmy",no_results_found:"Nebyly nalezeny \u017E\xE1dn\xE9 v\xFDsledky",add_new_company:"P\u0159idat firmu",new_company:"Nov\xE1 firma",created_message:"Firma \xFAsp\u011B\u0161n\u011B vytvo\u0159ena"},Gn={today:"Dnes",this_week:"Tento t\xFDden",this_month:"Tento m\u011Bs\xEDc",this_quarter:"Toto \u010Dtvrtlet\xED",this_year:"Tento rok",previous_week:"P\u0159edchoz\xED t\xFDden",previous_month:"P\u0159edchoz\xED m\u011Bs\xEDc",previous_quarter:"P\u0159edchoz\xED \u010Dtvrtlet\xED",previous_year:"P\u0159edchoz\xED rok",custom:"Vlastn\xED"},Jn={title:"Z\xE1kazn\xEDci",prefix:"Prefix",add_customer:"P\u0159idat z\xE1kazn\xEDka",contacts_list:"Seznam z\xE1kazn\xEDk\u016F",name:"Jm\xE9no",mail:"E-mail | E-maily",statement:"V\xFDpis",display_name:"Zobrazen\xE9 jm\xE9no",primary_contact_name:"Jm\xE9no prim\xE1rn\xEDho kontaktu",contact_name:"Jm\xE9no kontaktu",amount_due:"\u010C\xE1stka k zaplacen\xED",email:"Email",address:"Adresa",phone:"Telefon",website:"Webov\xE1 str\xE1nka",overview:"P\u0159ehled",invoice_prefix:"Prefix pro faktury",estimate_prefix:"Prefix pro odhady",payment_prefix:"Prefix pro platby",enable_portal:"Povolit port\xE1l",country:"Zem\u011B",state:"St\xE1t",city:"M\u011Bsto",zip_code:"PS\u010C",added_on:"P\u0159id\xE1no dne",action:"Akce",password:"Heslo",confirm_password:"Potvrdit heslo",street_number:"\u010C\xEDslo ulice",primary_currency:"Prim\xE1rn\xED m\u011Bna",description:"Popis",add_new_customer:"P\u0159idat nov\xE9ho z\xE1kazn\xEDka",save_customer:"Ulo\u017Eit z\xE1kazn\xEDka",update_customer:"Aktualizovat z\xE1kazn\xEDka",customer:"Z\xE1kazn\xEDk | Z\xE1kazn\xEDci",new_customer:"Nov\xFD z\xE1kazn\xEDk",edit_customer:"Upravit z\xE1kazn\xEDka",basic_info:"Z\xE1kladn\xED informace",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:"Faktura\u010Dn\xED adresa",shipping_address:"Doru\u010Dovac\xED adresa",copy_billing_address:"Zkop\xEDrovat z fakturace",no_customers:"Dosud \u017E\xE1dn\xED z\xE1kazn\xEDci!",no_customers_found:"Nebyli nalezeni \u017E\xE1dn\xED z\xE1kazn\xEDci!",no_contact:"\u017D\xE1dn\xFD kontakt",no_contact_name:"Bez jm\xE9na kontaktu",list_of_customers:"Tato sekce bude obsahovat seznam z\xE1kazn\xEDk\u016F.",primary_display_name:"Prim\xE1rn\xED zobrazovan\xE9 jm\xE9no",select_currency:"Vybrat m\u011Bnu",select_a_customer:"Vybrat z\xE1kazn\xEDka",type_or_click:"Zadejte nebo klikn\u011Bte pro v\xFDb\u011Br",new_transaction:"Nov\xE1 transakce",no_matching_customers:"Neexistuj\xED \u017E\xE1dn\xED odpov\xEDdaj\xEDc\xED z\xE1kazn\xEDci!",phone_number:"Telefonn\xED \u010D\xEDslo",create_date:"Datum vytvo\u0159en\xED",confirm_delete:"Nebudete moci obnovit tohoto z\xE1kazn\xEDka a v\u0161echny jeho faktury, odhady a platby. | Nebudete moci obnovit tyto z\xE1kazn\xEDky a v\u0161echny jejich faktury, odhady a platby.",created_message:"Z\xE1kazn\xEDk \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Z\xE1kazn\xEDk \xFAsp\u011B\u0161n\u011B upraven",address_updated_message:"Address Information Updated succesfully",deleted_message:"Z\xE1kazn\xEDk \xFAsp\u011B\u0161n\u011B smaz\xE1n | Z\xE1kazn\xEDci \xFAsp\u011B\u0161n\u011B smaz\xE1ni",edit_currency_not_allowed:"Po vytvo\u0159en\xED transakce nelze zm\u011Bnit m\u011Bnu."},Qn={title:"Polo\u017Eky",items_list:"Seznam polo\u017Eek",name:"N\xE1zev",unit:"Jednotka",description:"Popis",added_on:"P\u0159id\xE1no",price:"Cena",date_of_creation:"Datum vytvo\u0159en\xED",not_selected:"Nen\xED vybr\xE1na \u017E\xE1dn\xE1 polo\u017Eka",action:"Akce",add_item:"P\u0159idat polo\u017Eku",save_item:"Ulo\u017Eit polo\u017Eku",update_item:"Aktualizovat polo\u017Eku",item:"Polo\u017Eka | Polo\u017Eky",add_new_item:"P\u0159idat novou polo\u017Eku",new_item:"Nov\xE1 polo\u017Eka",edit_item:"Upravit polo\u017Eku",no_items:"Zat\xEDm \u017E\xE1dn\xE9 polo\u017Eky!",list_of_items:"Tato sekce bude obsahovat seznam polo\u017Eek.",select_a_unit:"vyberte jednotku",taxes:"Dan\u011B",item_attached_message:"Nelze odstranit polo\u017Eku, kter\xE1 se ji\u017E pou\u017E\xEDv\xE1",confirm_delete:"Nebudete moci obnovit tuto polo\u017Eku | Nebudete moci obnovit tyto polo\u017Eky",created_message:"Polo\u017Eka byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Polo\u017Eka \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Polo\u017Eka byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna | Polo\u017Eky byly \xFAsp\u011B\u0161n\u011B odstran\u011Bny"},Xn={title:"Odhady",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"Odhad | Odhady",estimates_list:"Seznam odhad\u016F",days:"{days} dn\xED",months:"{months} m\u011Bs\xEDc",years:"{years} rok",all:"V\u0161e",paid:"Zaplacen\xE9",unpaid:"Neplacen\xE9",customer:"Z\xC1KAZN\xCDK",ref_no:"REFEREN\u010CN\xCD \u010C\xCDSLO",number:"\u010C\xCDSLO",amount_due:"\u010C\xC1STKA K ZAPLACEN\xCD",partially_paid:"\u010C\xE1ste\u010Dn\u011B zaplaceno",total:"Celkem",discount:"Sleva",sub_total:"Mezisou\u010Det",estimate_number:"Odhadovan\xE9 \u010D\xEDslo",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",contact:"Kontakt",add_item:"P\u0159idat polo\u017Eku",date:"Datum",due_date:"Datum splatnosti",expiry_date:"Datum expirace",status:"Stav",add_tax:"P\u0159idat da\u0148",amount:"\u010C\xE1stka",action:"Akce",notes:"Pozn\xE1mky",tax:"Da\u0148",estimate_template:"\u0160ablona",convert_to_invoice:"P\u0159ev\xE9st na fakturu",mark_as_sent:"Ozna\u010Dit jako odeslan\xE9",send_estimate:"Odeslat odhad",resend_estimate:"Znovu odeslat odhad",record_payment:"Zaznamenat platbu",add_estimate:"P\u0159idat odhad",save_estimate:"Ulo\u017Eit odhad",confirm_conversion:"Tento odhad bude pou\u017Eit k vytvo\u0159en\xED nov\xE9 faktury.",conversion_message:"Faktura byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",confirm_send_estimate:"Tento odhad bude zasl\xE1n e-mailem z\xE1kazn\xEDkovi",confirm_mark_as_sent:"Tento odhad bude ozna\u010Den jako odeslan\xFD",confirm_mark_as_accepted:"Tento odhad bude ozna\u010Den jako P\u0159ijat\xFD",confirm_mark_as_rejected:"Tento odhad bude ozna\u010Den jako Odm\xEDtnut\xFD",no_matching_estimates:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED odhady!",mark_as_sent_successfully:"Odhad byl ozna\u010Den jako \xFAsp\u011B\u0161n\u011B odesl\xE1n",send_estimate_successfully:"Odhad byl \xFAsp\u011B\u0161n\u011B odesl\xE1n",errors:{required:"Pole je povinn\xE9"},accepted:"P\u0159ijato",rejected:"Odm\xEDtnuto",expired:"Expired",sent:"Odesl\xE1no",draft:"Koncept",viewed:"Viewed",declined:"Odm\xEDtnuto",new_estimate:"Nov\xFD odhad",add_new_estimate:"P\u0159idat nov\xFD odhad",update_Estimate:"Aktualizovat odhad",edit_estimate:"Upravit odhad",items:"polo\u017Eky",Estimate:"Odhad | Odhady",add_new_tax:"P\u0159idat novou da\u0148",no_estimates:"Zat\xEDm \u017E\xE1dn\xE9 odhady!",list_of_estimates:"Tato sekce bude obsahovat seznam odhad\u016F.",mark_as_rejected:"Ozna\u010Dit jako odm\xEDtnut\xE9",mark_as_accepted:"Ozna\u010Dit jako p\u0159ijat\xE9",marked_as_accepted_message:"Odhad ozna\u010Den jako p\u0159ijat\xFD",marked_as_rejected_message:"Odhad ozna\u010Den jako odm\xEDtnut\xFD",confirm_delete:"Nebudete moci obnovit tento odhad | Nebudete moci obnovit tyto odhady",created_message:"Odhad \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Odhad \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"Odhad \xFAsp\u011B\u0161n\u011B odstran\u011Bn | Odhady \xFAsp\u011B\u0161n\u011B odstran\u011Bny",something_went_wrong:"n\u011Bco se nezda\u0159ilo",item:{title:"N\xE1zev polo\u017Eky",description:"Popis",quantity:"Mno\u017Estv\xED",price:"Cena",discount:"Sleva",total:"Celkem",total_discount:"Celkov\xE1 sleva",sub_total:"Mezisou\u010Det",tax:"Da\u0148",amount:"Mno\u017Estv\xED",select_an_item:"Pi\u0161te nebo klikn\u011Bte pro v\xFDb\u011Br polo\u017Eky",type_item_description:"Zadejte popis polo\u017Eky (voliteln\xE9)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},ei={title:"Faktury",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Seznam faktur",invoice_information:"Invoice Information",days:"{days} dn\xED",months:"{months} m\u011Bs\xEDc",years:"{years} rok",all:"V\u0161e",paid:"Zaplacen\xE9",unpaid:"Neplacen\xE9",viewed:"Zobrazen\xE9",overdue:"Po splatnosti",completed:"Dokon\u010Den\xE9",customer:"Z\xC1KAZN\xCDK",paid_status:"STAV PLATBY",ref_no:"REFEREN\u010CN\xCD \u010C\xCDSLO",number:"\u010C\xCDSLO",amount_due:"\u010C\xC1STKA K ZAPLACEN\xCD",partially_paid:"\u010C\xE1ste\u010Dn\u011B zaplaceno",total:"Celkem",discount:"Sleva",sub_total:"Mezisou\u010Det",invoice:"Faktura | Faktury",invoice_number:"\u010C\xEDslo faktury",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",contact:"Kontakt",add_item:"P\u0159idat polo\u017Eku",date:"Datum",due_date:"Datum splatnosti",status:"Stav",add_tax:"P\u0159idat da\u0148",amount:"\u010C\xE1stka",action:"Akce",notes:"Pozn\xE1mky",view:"Zobrazit",send_invoice:"Odeslat fakturu",resend_invoice:"Znovu odeslat fakturu",invoice_template:"\u0160ablona faktury",conversion_message:"Faktura byla \xFAsp\u011B\u0161n\u011B naklonov\xE1na",template:"Vybrat \u0161ablonu",mark_as_sent:"Ozna\u010Dit jako odeslan\xE9",confirm_send_invoice:"Tato faktura bude zasl\xE1na e-mailem z\xE1kazn\xEDkovi",invoice_mark_as_sent:"Tato faktura bude ozna\u010Dena jako odeslan\xE1",confirm_mark_as_accepted:"Tato faktura bude ozna\u010Dena jako p\u0159ijat\xE1",confirm_mark_as_rejected:"Tato faktura bude ozna\u010Dena jako odm\xEDtnut\xE1",confirm_send:"Tato faktura bude zasl\xE1na e-mailem z\xE1kazn\xEDkovi",invoice_date:"Datum fakturace",record_payment:"Zaznamenat platbu",add_new_invoice:"P\u0159idat novou fakturu",update_expense:"Aktualizovat v\xFDdaj",edit_invoice:"Upravit fakturu",new_invoice:"Nov\xE1 faktura",save_invoice:"Ulo\u017Eit fakturu",update_invoice:"Upravit fakturu",add_new_tax:"P\u0159idat novou da\u0148",no_invoices:"Zat\xEDm \u017E\xE1dn\xE9 faktury!",mark_as_rejected:"Ozna\u010Dit jako odm\xEDtnut\xE9",mark_as_accepted:"Ozna\u010Dit jako p\u0159ijat\xE9",list_of_invoices:"Tato sekce bude obsahovat seznam faktur.",select_invoice:"Vybrat fakturu",no_matching_invoices:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED faktury!",mark_as_sent_successfully:"Faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odeslan\xE1",invoice_sent_successfully:"Faktura byla \xFAsp\u011B\u0161n\u011B odesl\xE1na",cloned_successfully:"Faktura \xFAsp\u011B\u0161n\u011B naklonov\xE1na",clone_invoice:"Naklonovat fakturu",confirm_clone:"Tato faktura bude naklonov\xE1na do nov\xE9 faktury",item:{title:"N\xE1zev polo\u017Eky",description:"Popis",quantity:"Mno\u017Estv\xED",price:"Cena",discount:"Sleva",total:"Celkem",total_discount:"Celkov\xE1 sleva",sub_total:"Mezisou\u010Det",tax:"Da\u0148",amount:"Mno\u017Estv\xED",select_an_item:"Pi\u0161te nebo klikn\u011Bte pro v\xFDb\u011Br polo\u017Eky",type_item_description:"Zadejte popis polo\u017Eky (voliteln\xE9)"},payment_attached_message:"Na jedn\xE9 z vybran\xFDch faktur je ji\u017E p\u0159ilo\u017Eena platba. Nezapome\u0148te nejprve odstranit p\u0159ipojen\xE9 platby, abyste mohli pokra\u010Dovat s odstran\u011Bn\xEDm",confirm_delete:"Nebudete moci obnovit tuto fakturu | Nebudete moci obnovit tyto faktury",created_message:"Faktura byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Faktura byla \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Faktura byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna | Faktury byly \xFAsp\u011B\u0161n\u011B odstran\u011Bny",marked_as_sent_message:"Faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odeslan\xE1",something_went_wrong:"n\u011Bco se nezda\u0159ilo",invalid_due_amount_message:"Celkov\xE1 \u010D\xE1stka faktury nem\u016F\u017Ee b\xFDt ni\u017E\u0161\xED ne\u017E celkov\xE1 \u010D\xE1stka zaplacen\xE1 za tuto fakturu. Chcete-li pokra\u010Dovat, upravte fakturu nebo sma\u017Ete souvisej\xEDc\xED platby.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},ti={title:"Opakuj\xEDc\xED se faktury",invoices_list:"Seznam opakuj\xEDc\xEDch se faktur",days:"{days} dn\xED",months:"{months} m\u011Bs\xEDc",years:"{years} rok",all:"V\u0161echny",paid:"Zaplacen\xE9",unpaid:"Neplacen\xE9",viewed:"Zobrazen\xE9",overdue:"Po splatnosti",active:"Aktivn\xED",completed:"Dokon\u010Den\xE9",customer:"Z\xC1KAZN\xCDK",paid_status:"STAV PLATBY",ref_no:"REFEREN\u010CN\xCD \u010C\xCDSLO",number:"\u010C\xCDSLO",amount_due:"\u010C\xC1STKA K ZAPLACEN\xCD",partially_paid:"\u010C\xE1ste\u010Dn\u011B zaplaceno",total:"Celkem",discount:"Sleva",sub_total:"Mezisou\u010Det",invoice:"Opakuj\xEDc\xED se faktura | Opakuj\xEDc\xED se faktury",invoice_number:"\u010C\xEDslo opakuj\xEDc\xED se faktury",next_invoice_date:"Datum dal\u0161\xED fakturace",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",contact:"Kontakt",add_item:"P\u0159idat polo\u017Eku",date:"Datum",limit_by:"Omezit podle",limit_date:"Omezit datum",limit_count:"Omezit po\u010Det",count:"Po\u010Det",status:"Stav",select_a_status:"Vyberte stav",working:"Pracuje",on_hold:"\u010Cekaj\xEDc\xED",complete:"Dokon\u010Deno",add_tax:"P\u0159idat da\u0148",amount:"Mno\u017Estv\xED",action:"Akce",notes:"Pozn\xE1mky",view:"Zobrazit",basic_info:"Z\xE1kladn\xED informace",send_invoice:"Odeslat opakuj\xEDc\xED se fakturu",auto_send:"Automaticky odeslat",resend_invoice:"Znovu odeslat opakuj\xEDc\xED se fakturu",invoice_template:"\u0160ablona opakuj\xEDc\xED se faktury",conversion_message:"Opakuj\xEDc\xED se faktura byla \xFAsp\u011B\u0161n\u011B naklonov\xE1na",template:"\u0160ablona",mark_as_sent:"Ozna\u010Dit jako odeslan\xE9",confirm_send_invoice:"Tato opakuj\xEDc\xED se faktura bude odesl\xE1na e-mailem z\xE1kazn\xEDkovi",invoice_mark_as_sent:"Tato opakuj\xEDc\xED se faktura bude ozna\u010Dena jako odeslan\xE1",confirm_send:"Tato opakuj\xEDc\xED se faktura bude odesl\xE1na e-mailem z\xE1kazn\xEDkovi",starts_at:"Po\u010D\xE1te\u010Dn\xED datum",due_date:"Splatnost faktury",record_payment:"Zaznamenat platbu",add_new_invoice:"P\u0159idat novou opakuj\xEDc\xED se fakturu",update_expense:"Aktualizovat v\xFDdaje",edit_invoice:"Upravit opakuj\xEDc\xED se fakturu",new_invoice:"P\u0159idat novou opakuj\xEDc\xED se fakturu",send_automatically:"Odeslat automaticky",send_automatically_desc:"Povolte, pokud chcete automaticky odeslat fakturu z\xE1kazn\xEDkovi po jej\xEDm vytvo\u0159en\xED.",save_invoice:"Ulo\u017Eit opakuj\xEDc\xED se fakturu",update_invoice:"Upravit opakuj\xEDc\xED se fakturu",add_new_tax:"P\u0159idat novou da\u0148",no_invoices:"Zat\xEDm \u017E\xE1dn\xE9 opakuj\xEDc\xED se faktury!",mark_as_rejected:"Ozna\u010Dit jako odm\xEDtnut\xE9",mark_as_accepted:"Ozna\u010Dit jako p\u0159ijat\xE9",list_of_invoices:"Tato sekce bude obsahovat seznam opakuj\xEDc\xEDch se faktur.",select_invoice:"Vybrat fakturu",no_matching_invoices:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED opakuj\xEDc\xED se faktury!",mark_as_sent_successfully:"Opakuj\xEDc\xED se faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odeslan\xE1",invoice_sent_successfully:"Opakuj\xEDc\xED se faktura byla \xFAsp\u011B\u0161n\u011B odesl\xE1na",cloned_successfully:"Opakuj\xEDc\xED se faktura \xFAsp\u011B\u0161n\u011B naklonov\xE1na",clone_invoice:"Naklonovat opakuj\xEDc\xED se fakturu",confirm_clone:"Tato opakuj\xEDc\xED se faktura bude naklonov\xE1na do nov\xE9 opakuj\xEDc\xED se faktury",item:{title:"N\xE1zev polo\u017Eky",description:"Popis",quantity:"Mno\u017Estv\xED",price:"Cena",discount:"Sleva",total:"Celkem",total_discount:"Celkov\xE1 sleva",sub_total:"Mezisou\u010Det",tax:"Da\u0148",amount:"Mno\u017Estv\xED",select_an_item:"Pi\u0161te nebo klikn\u011Bte pro v\xFDb\u011Br polo\u017Eky",type_item_description:"Zadejte popis polo\u017Eky (voliteln\xE9)"},frequency:{title:"\u010Cetnost",select_frequency:"Vybrat \u010Detnost",minute:"Minuta",hour:"Hodina",day_month:"Den v m\u011Bs\xEDci",month:"M\u011Bs\xEDc",day_week:"Den v t\xFDdnu"},confirm_delete:"Nebudete moci obnovit tuto fakturu | Nebudete moci obnovit tyto faktury",created_message:"Opakuj\xEDc\xED se faktura byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Opakuj\xEDc\xED se faktura \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Opakuj\xEDc\xED se faktura \xFAsp\u011B\u0161n\u011B smaz\xE1na | Opakuj\xEDc\xED se faktury \xFAsp\u011B\u0161n\u011B odstran\u011Bny",marked_as_sent_message:"Opakuj\xEDc\xED se faktura ozna\u010Dena jako \xFAsp\u011B\u0161n\u011B odesl\xE1na",user_email_does_not_exist:"E-mail u\u017Eivatele neexistuje",something_went_wrong:"n\u011Bco se nezda\u0159ilo",invalid_due_amount_message:"Celkov\xE1 \u010D\xE1stka opakovan\xE9 faktury nem\u016F\u017Ee b\xFDt ni\u017E\u0161\xED ne\u017E celkov\xE1 \u010D\xE1stka zaplacen\xE1 za tuto opakuj\xEDc\xED se fakturu. Pro pokra\u010Dov\xE1n\xED aktualizujte fakturu nebo odstra\u0148te souvisej\xEDc\xED platby."},ai={title:"Platby",payments_list:"Seznam plateb",record_payment:"Zaznamenat platbu",customer:"Z\xE1kazn\xEDk",date:"Datum",amount:"Mno\u017Estv\xED",action:"Akce",payment_number:"\u010C\xEDslo platby",payment_mode:"Platebn\xED metoda",invoice:"Faktura",note:"Pozn\xE1mka",add_payment:"P\u0159idat platbu",new_payment:"Nov\xE1 platba",edit_payment:"Upravit platbu",view_payment:"Zobrazit platbu",add_new_payment:"P\u0159idat novou platbu",send_payment_receipt:"Odeslat potvrzen\xED o platb\u011B",send_payment:"Odeslat platbu",save_payment:"Ulo\u017Eit platbu",update_payment:"Upravit platbu",payment:"Platba | Platby",no_payments:"Zat\xEDm \u017E\xE1dn\xE9 platby!",not_selected:"Nevybr\xE1no",no_invoice:"\u017D\xE1dn\xE1 faktura",no_matching_payments:"Neexistuj\xED \u017E\xE1dn\xE9 odpov\xEDdaj\xEDc\xED platby!",list_of_payments:"Tato sekce bude obsahovat seznam plateb.",select_payment_mode:"Vyberte platebn\xED metodu",confirm_mark_as_sent:"Tento odhad bude ozna\u010Den jako odeslan\xFD",confirm_send_payment:"Tato platba bude odesl\xE1na e-mailem z\xE1kazn\xEDkovi",send_payment_successfully:"Platba byla \xFAsp\u011B\u0161n\u011B odesl\xE1na",something_went_wrong:"n\u011Bco se nezda\u0159ilo",confirm_delete:"Tuto platbu nebudete moci obnovit | Tyto platby nebudete moci obnovit",created_message:"Platba \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Platba \xFAsp\u011B\u0161n\u011B upravena",deleted_message:"Platba \xFAsp\u011B\u0161n\u011B odstran\u011Bna | Platby \xFAsp\u011B\u0161n\u011B odstran\u011Bny",invalid_amount_message:"\u010C\xE1stka platby je neplatn\xE1"},ni={title:"V\xFDdaje",expenses_list:"Seznam v\xFDdaj\u016F",select_a_customer:"Vyberte z\xE1kazn\xEDka",expense_title:"Nadpis",customer:"Z\xE1kazn\xEDk",currency:"M\u011Bna",contact:"Kontakt",category:"Kategorie",from_date:"Od data",to_date:"Do data",expense_date:"Datum",description:"Popis",receipt:"Doklad",amount:"\u010C\xE1stka",action:"Akce",not_selected:"Nevybr\xE1no",note:"Pozn\xE1mka",category_id:"ID kategorie",date:"Datum",add_expense:"P\u0159idat v\xFDdaj",add_new_expense:"P\u0159idat nov\xFD v\xFDdaj",save_expense:"Ulo\u017Eit v\xFDdaj",update_expense:"Upravit v\xFDdaj",download_receipt:"St\xE1hnout doklad",edit_expense:"Upravit v\xFDdaj",new_expense:"Nov\xFD v\xFDdaj",expense:"V\xFDdaj | V\xFDdaje",no_expenses:"Zat\xEDm \u017E\xE1dn\xE9 v\xFDdaje!",list_of_expenses:"Tato sekce bude obsahovat seznam v\xFDdaj\u016F.",confirm_delete:"Nebudete moci obnovit tento v\xFDdaj | Nebudete moci obnovit tyto v\xFDdaje",created_message:"V\xFDdaj \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"V\xFDdaj \xFAsp\u011B\u0161n\u011B aktualizov\xE1n",deleted_message:"V\xFDdaj byl \xFAsp\u011B\u0161n\u011B odstran\u011Bn | V\xFDdaje byly \xFAsp\u011B\u0161n\u011B odstran\u011Bny",categories:{categories_list:"Seznam kategori\xED",title:"Nadpis",name:"N\xE1zev",description:"Popis",amount:"Mno\u017Estv\xED",actions:"Akce",add_category:"P\u0159idat kategorii",new_category:"Nov\xE1 kategorie",category:"Kategorie | Kategorie",select_a_category:"Vyberte kategorii"}},ii={email:"E-mail",password:"Heslo",forgot_password:"Zapomn\u011Bli jste heslo?",or_signIn_with:"nebo se p\u0159ihla\u0161te pomoc\xED",login:"P\u0159ihl\xE1\u0161en\xED",register:"Registrace",reset_password:"Obnovit heslo",password_reset_successfully:"Obnoven\xED hesla prob\u011Bhlo \xFAsp\u011B\u0161n\u011B",enter_email:"Zadejte e-mail",enter_password:"Zadejte heslo",retype_password:"Zadejte heslo znovu"},oi={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"},si={title:"U\u017Eivatel\xE9",users_list:"Seznam u\u017Eivatel\u016F",name:"Jm\xE9no",description:"Popis",added_on:"P\u0159id\xE1no dne",date_of_creation:"Datum vytvo\u0159en\xED",action:"Akce",add_user:"P\u0159idat u\u017Eivatele",save_user:"Ulo\u017Eit u\u017Eivatele",update_user:"Upravit u\u017Eivatele",user:"U\u017Eivatel | U\u017Eivatel\xE9",add_new_user:"P\u0159idat nov\xE9ho u\u017Eivatele",new_user:"Nov\xFD u\u017Eivatel",edit_user:"Upravit u\u017Eivatele",no_users:"Zat\xEDm \u017E\xE1dn\xED u\u017Eivatel\xE9!",list_of_users:"Tato sekce bude obsahovat seznam u\u017Eivatel\u016F.",email:"E-mail",phone:"Telefon",password:"Heslo",user_attached_message:"Nelze odstranit polo\u017Eku, kter\xE1 se ji\u017E pou\u017E\xEDv\xE1",confirm_delete:"Nebudete moci obnovit tohoto u\u017Eivatele | Nebudete schopni obnovit tyto u\u017Eivatele",created_message:"U\u017Eivatel byl \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"U\u017Eivatel byl \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"U\u017Eivatel byl \xFAsp\u011B\u0161n\u011B odstran\u011Bn | U\u017Eivatel\xE9 byli \xFAsp\u011B\u0161n\u011B odstran\u011Bni",select_company_role:"Vyberte roli pro {company}",companies:"Spole\u010Dnosti"},ri={title:"Report",from_date:"Datum od",to_date:"Do data",status:"Stav",paid:"Zaplaceno",unpaid:"Nezaplaceno",download_pdf:"St\xE1hnout PDF",view_pdf:"Zobrazit PDF",update_report:"Upravit report",report:"Report | Reporty",profit_loss:{profit_loss:"Zisk a ztr\xE1ta",to_date:"Do data",from_date:"Od data",date_range:"Vybrat \u010Dasov\xFD rozsah"},sales:{sales:"Prodeje",date_range:"Vybrat \u010Dasov\xFD rozsah",to_date:"Do data",from_date:"Od data",report_type:"Typ reportu"},taxes:{taxes:"Dan\u011B",to_date:"Do data",from_date:"Od data",date_range:"Vybrat \u010Dasov\xFD rozsah"},errors:{required:"Pole je povinn\xE9"},invoices:{invoice:"Faktura",invoice_date:"Datum fakturace",due_date:"Datum splatnosti",amount:"Mno\u017Estv\xED",contact_name:"Jm\xE9no kontaktu",status:"Stav"},estimates:{estimate:"Odhad",estimate_date:"Datum odhadu",due_date:"Datum splatnosti",estimate_number:"\u010C\xEDslo odhadu",ref_number:"Referen\u010Dn\xED \u010D\xEDslo",amount:"Mno\u017Estv\xED",contact_name:"Jm\xE9no kontaktu",status:"Stav"},expenses:{expenses:"V\xFDdaje",category:"Kategorie",date:"Datum",amount:"Mno\u017Estv\xED",to_date:"Do data",from_date:"Od data",date_range:"Vyberte rozsah data"}},di={menu_title:{account_settings:"Nastaven\xED \xFA\u010Dtu",company_information:"Informace o spole\u010Dnosti",customization:"P\u0159izp\u016Fsoben\xED",preferences:"Preference",notifications:"Ozn\xE1men\xED",tax_types:"Typy dan\xED",expense_category:"Kategorie v\xFDdaj\u016F",update_app:"Aktualizace aplikace",backup:"Z\xE1lohov\xE1n\xED",file_disk:"Souborov\xFD disk",custom_fields:"Vlastn\xED pole",payment_modes:"Zp\u016Fsoby plateb",notes:"Pozn\xE1mky",exchange_rate:"Sm\u011Bnn\xFD kurz",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},title:"Nastaven\xED",setting:"Nastaven\xED | Nastaven\xED",general:"Obecn\xE9",language:"Jazyk",primary_currency:"Prim\xE1rn\xED m\u011Bna",timezone:"\u010Casov\xE1 z\xF3na",date_format:"Form\xE1t data",currencies:{title:"M\u011Bny",currency:"M\u011Bna | M\u011Bny",currencies_list:"Seznam m\u011Bn",select_currency:"Vyberte m\u011Bnu",name:"N\xE1zev",code:"K\xF3d",symbol:"Symbol",precision:"P\u0159esnost",thousand_separator:"Odd\u011Blova\u010D tis\xEDc\u016F",decimal_separator:"Odd\u011Blova\u010D desetinn\xFDch m\xEDst",position:"Um\xEDst\u011Bn\xED",position_of_symbol:"Um\xEDst\u011Bn\xED symbolu",right:"Vpravo",left:"Vlevo",action:"Akce",add_currency:"P\u0159idat m\u011Bnu"},mail:{host:"Hostitel e-mailu",port:"Port e-mailu",driver:"Ovlada\u010D e-mail\u016F",secret:"Tajn\xFD kl\xED\u010D",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\xE9na",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"E-mailov\xE9 heslo",username:"U\u017Eivatelsk\xE9 jm\xE9no pro e-mail",mail_config:"Konfigurace e-mailu",from_name:"Jm\xE9no odes\xEDlatele",from_mail:"Z e-mailov\xE9 adresy",encryption:"\u0160ifrov\xE1n\xED e-mailu",mail_config_desc:"N\xED\u017Ee je uveden formul\xE1\u0159 pro konfiguraci e-mailov\xE9ho ovlada\u010De pro odes\xEDl\xE1n\xED e-mail\u016F z aplikace. M\u016F\u017Eete tak\xE9 nakonfigurovat poskytovatele t\u0159et\xEDch stran, jako je Sendgrid, SES atd."},pdf:{title:"Nastaven\xED PDF",footer_text:"Text z\xE1pat\xED",pdf_layout:"Rozvr\u017Een\xED PDF"},company_info:{company_info:"\xDAdaje o spole\u010Dnosti",company_name:"N\xE1zev spole\u010Dnosti",company_logo:"Logo spole\u010Dnosti",section_description:"Informace o va\u0161\xED spole\u010Dnosti, kter\xE1 bude zobrazena na faktur\xE1ch, odhadech a dal\u0161\xEDch dokladech vytvo\u0159en\xFDch v Crateru.",phone:"Telefon",country:"Zem\u011B",state:"St\xE1t",city:"M\u011Bsto",address:"Adresa",zip:"PS\u010C",save:"Ulo\u017Eit",delete:"Smazat",updated_message:"Informace o spole\u010Dnosti byly \xFAsp\u011B\u0161n\u011B aktualizov\xE1ny",delete_company:"Odstranit spole\u010Dnost",delete_company_description:"Jakmile svou spole\u010Dnost odstran\xEDte, trvale p\u0159ijdete o v\u0161echna data a soubory s n\xED spojen\xE9.",are_you_absolutely_sure:"Jste si opravdu jisti?",delete_company_modal_desc:"Tuto akci nelze vr\xE1tit zp\u011Bt. Tato akce trvale odstran\xED {company} a v\u0161echna souvisej\xEDc\xED data.",delete_company_modal_label:"Zadejte pros\xEDm {company} pro potvrzen\xED"},custom_fields:{title:"Vlastn\xED pole",section_description:"P\u0159izp\u016Fsobte si sv\xE9 faktury, odhady a potvrzen\xED o platb\u011B podle vlastn\xEDch pol\xED. Ujist\u011Bte se, \u017Ee pou\u017E\xEDv\xE1te n\xED\u017Ee p\u0159idan\xE1 pole ve form\xE1tu adresy na str\xE1nce pro p\u0159izp\u016Fsoben\xED.",add_custom_field:"P\u0159idat vlastn\xED pole",edit_custom_field:"Upravit vlastn\xED pole",field_name:"N\xE1zev pole",label:"Popis",type:"Typ",name:"Jm\xE9no",slug:"Pah\xFDl",required:"Povinn\xE9",placeholder:"Z\xE1stupn\xFD text",help_text:"Text n\xE1pov\u011Bdy",default_value:"V\xFDchoz\xED hodnota",prefix:"Prefix",starting_number:"Po\u010D\xE1te\u010Dn\xED \u010D\xEDslo",model:"Model",help_text_description:"Zadejte n\u011Bjak\xFD text, kter\xFD pom\u016F\u017Ee u\u017Eivatel\u016Fm pochopit \xFA\u010Del tohoto vlastn\xEDho pole.",suffix:"Sufix",yes:"Ano",no:"Ne",order:"Po\u0159ad\xED",custom_field_confirm_delete:"Nebudete moci obnovit toto vlastn\xED pole",already_in_use:"Vlastn\xED pole je ji\u017E pou\u017E\xEDv\xE1no",deleted_message:"Vlastn\xED pole bylo \xFAsp\u011B\u0161n\u011B odstran\u011Bno",options:"mo\u017Enosti",add_option:"P\u0159idat mo\u017Enosti",add_another_option:"P\u0159idat dal\u0161\xED mo\u017Enost",sort_in_alphabetical_order:"\u0158adit v abecedn\xEDm po\u0159ad\xED",add_options_in_bulk:"P\u0159idat mo\u017Enosti hromadn\u011B",use_predefined_options:"Pou\u017E\xEDt p\u0159eddefinovan\xE9 mo\u017Enosti",select_custom_date:"Vyberte vlastn\xED datum",select_relative_date:"Vyberte relativn\xED datum",ticked_by_default:"Ve v\xFDchoz\xEDm nastaven\xED za\u0161krtnuto",updated_message:"Vlastn\xED pole bylo \xFAsp\u011B\u0161n\u011B upraveno",added_message:"Vlastn\xED pole bylo \xFAsp\u011B\u0161n\u011B p\u0159id\xE1no",press_enter_to_add:"Stiskn\u011Bte Enter pro p\u0159id\xE1n\xED nov\xE9 mo\u017Enosti",model_in_use:"Nelze aktualizovat model pro pole, kter\xE1 jsou ji\u017E pou\u017E\xEDv\xE1na.",type_in_use:"Nelze aktualizovat typ pro pole, kter\xE1 jsou ji\u017E pou\u017E\xEDv\xE1na."},customization:{customization:"p\u0159izp\u016Fsoben\xED",updated_message:"Informace o spole\u010Dnosti byly \xFAsp\u011B\u0161n\u011B aktualizov\xE1ny",save:"Ulo\u017Eit",insert_fields:"Vlo\u017Eit pole",learn_custom_format:"Zjist\u011Bte, jak pou\u017E\xEDvat vlastn\xED form\xE1t",add_new_component:"P\u0159idat novou komponentu",component:"Komponenty",Parameter:"Parametr",series:"\u0158ada",series_description:"Pro nastaven\xED statick\xE9ho prefixu/postfixu jako 'INV' nap\u0159\xED\u010D va\u0161\xED spole\u010Dnost\xED. Podporuje d\xE9lku a\u017E 4 znaky.",series_param_label:"Hodnota \u0159ady",delimiter:"Odd\u011Blova\u010D",delimiter_description:"Jeden znak pro ur\u010Den\xED hranice mezi 2 samostatn\xFDmi komponentami. Ve v\xFDchoz\xEDm nastaven\xED je nastaveno na -",delimiter_param_label:"Hodnota odd\u011Blova\u010De",date_format:"Form\xE1t data",date_format_description:"Pole pro form\xE1t m\xEDstn\xED data a \u010Dasu. V\xFDchoz\xED form\xE1t: 'Y' vykresluje aktu\xE1ln\xED rok.",date_format_param_label:"Form\xE1t",sequence:"Sekvence",sequence_description:"Po sob\u011B jdouc\xED posloupnost \u010D\xEDsel ve va\u0161\xED spole\u010Dnosti. M\u016F\u017Eete ur\u010Dit d\xE9lku dan\xE9ho parametru.",sequence_param_label:"D\xE9lka sekvence",customer_series:"\u0158ada z\xE1kazn\xEDk\u016F",customer_series_description:"Mo\u017Enost nastavit jin\xFD prefix/postfix pro ka\u017Ed\xE9ho z\xE1kazn\xEDka.",customer_sequence:"Sekvence z\xE1kazn\xEDk\u016F",customer_sequence_description:"Po sob\u011B jdouc\xED posloupnost \u010D\xEDsel pro ka\u017Ed\xE9ho z\xE1kazn\xEDka.",customer_sequence_param_label:"D\xE9lka sekvence",random_sequence:"N\xE1hodn\xE1 sekvence",random_sequence_description:"N\xE1hodn\xFD alfanumerick\xFD \u0159et\u011Bzec. M\u016F\u017Eete ur\u010Dit d\xE9lku dan\xE9ho parametru.",random_sequence_param_label:"D\xE9lka sekvence",invoices:{title:"Faktury",invoice_number_format:"Form\xE1t \u010D\xEDsla faktury",invoice_number_format_description:"P\u0159izp\u016Fsobte si, jak bude va\u0161e \u010D\xEDslo faktury automaticky generov\xE1no p\u0159i vytv\xE1\u0159en\xED nov\xE9 faktury.",preview_invoice_number:"N\xE1hled \u010D\xEDsla faktury",due_date:"Datum splatnosti",due_date_description:"Ur\u010Dete, jak se automaticky nastavuje datum splatnosti vytv\xE1\u0159en\xED faktury.",due_date_days:"Splatnost faktury po dnech",set_due_date_automatically:"Automaticky nastavit datum splatnosti",set_due_date_automatically_description:"Povolte, pokud chcete nastavit datum splatnosti automaticky p\u0159i vytvo\u0159en\xED nov\xE9 faktury.",default_formats:"V\xFDchoz\xED form\xE1ty",default_formats_description:"N\xED\u017Ee uveden\xE9 form\xE1ty se pou\u017E\xEDvaj\xED k automatick\xE9mu vypln\u011Bn\xED pol\xED p\u0159i vytv\xE1\u0159en\xED faktury.",default_invoice_email_body:"V\xFDchoz\xED text e-mailu pro faktury",company_address_format:"Form\xE1t adresy spole\u010Dnosti",shipping_address_format:"Form\xE1t doru\u010Dovac\xED adresy",billing_address_format:"Form\xE1t faktura\u010Dn\xED adresy",invoice_email_attachment:"Odes\xEDlat faktury jako p\u0159\xEDlohy",invoice_email_attachment_setting_description:"Povolte, pokud chcete odes\xEDlat faktury jako p\u0159\xEDlohy e-mailu. Vezm\u011Bte pros\xEDm na v\u011Bdom\xED, \u017Ee tla\u010D\xEDtko 'Zobrazit fakturu' v e-mailech se ji\u017E nezobraz\xED, pokud je povoleno.",invoice_settings_updated:"Nastaven\xED faktur bylo \xFAsp\u011B\u0161n\u011B upraveno",retrospective_edits:"Zp\u011Btn\xE9 \xFApravy",allow:"Povolit",disable_on_invoice_partial_paid:"Zak\xE1zat po zaznamen\xE1n\xED \u010D\xE1ste\u010Dn\xE9 platby",disable_on_invoice_paid:"Vypnout po zaplacen\xED pln\xE9 platby",disable_on_invoice_sent:"Vypnout po odesl\xE1n\xED faktury",retrospective_edits_description:" Na z\xE1klad\u011B z\xE1kon\u016F va\u0161\xED zem\u011B nebo va\u0161ich preferenc\xED m\u016F\u017Eete u\u017Eivatel\u016Fm br\xE1nit v \xFAprav\u011B dokon\u010Den\xFDch faktur."},estimates:{title:"Odhady",estimate_number_format:"Form\xE1t \u010D\xEDsla odhadu",estimate_number_format_description:"P\u0159izp\u016Fsobte si, jak bude va\u0161e \u010D\xEDslo odhadu automaticky generov\xE1no, p\u0159i vytv\xE1\u0159en\xED nov\xE9ho odhadu.",preview_estimate_number:"N\xE1hled \u010D\xEDsla odhadu",expiry_date:"Datum expirace",expiry_date_description:"Ur\u010Dete, jak se automaticky nastavuje datum expirace p\u0159i vytv\xE1\u0159en\xED odhadu.",expiry_date_days:"Platnost odhadu vypr\u0161\xED za dny",set_expiry_date_automatically:"Automaticky nastavit datum expirace",set_expiry_date_automatically_description:"Povolte, pokud chcete nastavit datum expirace automaticky p\u0159i vytvo\u0159en\xED nov\xE9ho odhadu.",default_formats:"V\xFDchoz\xED form\xE1ty",default_formats_description:"N\xED\u017Ee uveden\xE9 form\xE1ty se pou\u017E\xEDvaj\xED k automatick\xE9mu vypln\u011Bn\xED pol\xED p\u0159i vytv\xE1\u0159en\xED odhadu.",default_estimate_email_body:"V\xFDchoz\xED text e-mailu pro odhady",company_address_format:"Form\xE1t adresy spole\u010Dnosti",shipping_address_format:"Form\xE1t doru\u010Dovac\xED adresy",billing_address_format:"Form\xE1t faktura\u010Dn\xED adresy",estimate_email_attachment:"Odeslat odhady jako p\u0159\xEDlohy",estimate_email_attachment_setting_description:"Povolte, pokud chcete odes\xEDlat odhady jako p\u0159\xEDlohy e-mailu. Vezm\u011Bte pros\xEDm na v\u011Bdom\xED, \u017Ee tla\u010D\xEDtko 'Zobrazit odhad' v e-mailech se ji\u017E nezobraz\xED, pokud je povoleno.",estimate_settings_updated:"Nastaven\xED odhad\u016F \xFAsp\u011B\u0161n\u011B upraveno",convert_estimate_options:"Akce konverze odhadu",convert_estimate_description:"Ur\u010Dete, co se stane s odhadem pot\xE9, co se p\u0159evede na fakturu.",no_action:"\u017D\xE1dn\xE1 akce",delete_estimate:"Odstranit odhad",mark_estimate_as_accepted:"Ozna\u010Dit odhad za p\u0159ijat\xFD"},payments:{title:"Platby",payment_number_format:"Form\xE1t \u010D\xEDsel plateb",payment_number_format_description:"P\u0159izp\u016Fsobte si, jak se bude \u010D\xEDslo platby automaticky generovat, kdy\u017E vytvo\u0159\xEDte novou platbu.",preview_payment_number:"N\xE1hled \u010D\xEDsla platby",default_formats:"V\xFDchoz\xED form\xE1ty",default_formats_description:"N\xED\u017Ee uveden\xE9 form\xE1ty se pou\u017E\xEDvaj\xED k automatick\xE9mu vypln\u011Bn\xED pol\xED p\u0159i vytv\xE1\u0159en\xED plateb.",default_payment_email_body:"V\xFDchoz\xED text e-mailu platby",company_address_format:"Form\xE1t adresy spole\u010Dnosti",from_customer_address_format:"Z form\xE1tu adresy z\xE1kazn\xEDka",payment_email_attachment:"Odes\xEDlat platby jako p\u0159\xEDlohy",payment_email_attachment_setting_description:"Povolte, pokud chcete odeslat potvrzen\xED o platb\u011B jako p\u0159\xEDlohu e-mailu. Vezm\u011Bte pros\xEDm na v\u011Bdom\xED, \u017Ee tla\u010D\xEDtko 'Zobrazit platbu' v e-mailech se ji\u017E nebude zobrazovat, pokud je povoleno.",payment_settings_updated:"Nastaven\xED plateb bylo \xFAsp\u011B\u0161n\u011B upraveno"},items:{title:"Polo\u017Eky",units:"Jednotky",add_item_unit:"P\u0159idat jednotku polo\u017Eky",edit_item_unit:"Upravit jednotku polo\u017Eky",unit_name:"N\xE1zev jednotky",item_unit_added:"Jednotka polo\u017Eky p\u0159id\xE1na",item_unit_updated:"Jednotka polo\u017Eky upravena",item_unit_confirm_delete:"Nebudete moci obnovit tuto jednotku polo\u017Eky",already_in_use:"Jednotka polo\u017Eky se ji\u017E pou\u017E\xEDv\xE1",deleted_message:"Jednotka polo\u017Eky byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna"},notes:{title:"Pozn\xE1mky",description:"U\u0161et\u0159ete \u010Das vytvo\u0159en\xEDm pozn\xE1mek a jejich op\u011Btovn\xFDm pou\u017Eit\xEDm na faktur\xE1ch, odhadech a platb\xE1ch.",notes:"Pozn\xE1mky",type:"Typ",add_note:"P\u0159idat pozn\xE1mku",add_new_note:"P\u0159idat novou pozn\xE1mku",name:"Jm\xE9no",edit_note:"Upravit pozn\xE1mku",note_added:"Pozn\xE1mka \xFAsp\u011B\u0161n\u011B p\u0159id\xE1na",note_updated:"Pozn\xE1mka \xFAsp\u011B\u0161n\u011B upravena",note_confirm_delete:"Nebudete moci obnovit tuto pozn\xE1mku",already_in_use:"Pozn\xE1mka je ji\u017E pou\u017E\xEDv\xE1na",deleted_message:"Pozn\xE1mka byla \xFAsp\u011B\u0161n\u011B smaz\xE1na"}},account_settings:{profile_picture:"Profilov\xFD obr\xE1zek",name:"Jm\xE9no",email:"E-mail",password:"Heslo",confirm_password:"Potvrdit heslo",account_settings:"Nastaven\xED \xFA\u010Dtu",save:"Ulo\u017Eit",section_description:"Sv\xE9 jm\xE9no, e-mail a heslo m\u016F\u017Eete aktualizovat pomoc\xED formul\xE1\u0159e n\xED\u017Ee.",updated_message:"Nastaven\xED \xFA\u010Dtu bylo \xFAsp\u011B\u0161n\u011B aktualizov\xE1no"},user_profile:{name:"Jm\xE9no",email:"E-mail",password:"Heslo",confirm_password:"Potvrzen\xED hesla"},notification:{title:"Ozn\xE1men\xED",email:"Pos\xEDlat ozn\xE1men\xED na",description:"Kter\xE1 e-mailov\xE1 ozn\xE1men\xED chcete dost\xE1vat, kdy\u017E se n\u011Bco zm\u011Bn\xED?",invoice_viewed:"Faktura zobrazena",invoice_viewed_desc:"Kdy\u017E si v\xE1\u0161 z\xE1kazn\xEDk zobraz\xED fakturu odesl\xE1nou p\u0159es hlavn\xED panel Crateru.",estimate_viewed:"Odhad zobrazen",estimate_viewed_desc:"Kdy\u017E si v\xE1\u0161 z\xE1kazn\xEDk zobraz\xED odhad odeslan\xFD p\u0159es hlavn\xED panel Crateru.",save:"Ulo\u017Eit",email_save_message:"E-mail \xFAsp\u011B\u0161n\u011B ulo\u017Een",please_enter_email:"Pros\xEDm, zadejte e-mail"},roles:{title:"Role",description:"Spr\xE1va rol\xED a opr\xE1vn\u011Bn\xED t\xE9to spole\u010Dnosti",save:"Ulo\u017Eit",add_new_role:"P\u0159idat novou roli",role_name:"N\xE1zev role",added_on:"P\u0159id\xE1no dne",add_role:"P\u0159idat roli",edit_role:"Upravit roli",name:"N\xE1zev",permission:"Opr\xE1vn\u011Bn\xED | Opr\xE1vn\u011Bn\xED",select_all:"Vybrat v\u0161e",none:"\u017D\xE1dn\xE9",confirm_delete:"Nebudete moci obnovit tuto roli",created_message:"Role byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",updated_message:"Role \xFAsp\u011B\u0161n\u011B zm\u011Bn\u011Bna",deleted_message:"Role \xFAsp\u011B\u0161n\u011B odstran\u011Bna",already_in_use:"Role je ji\u017E pou\u017E\xEDv\xE1na"},exchange_rate:{exchange_rate:"Sm\u011Bnn\xFD kurz",title:"Opravit probl\xE9my se sm\u011Bnn\xFDm kurzem",description:"Zadejte pros\xEDm sm\u011Bnn\xFD kurz v\u0161ech n\xED\u017Ee uveden\xFDch m\u011Bn, abyste pomohli Crateru spr\xE1vn\u011B vypo\u010D\xEDtat \u010D\xE1stky v {currency}.",drivers:"Ovlada\u010De",new_driver:"P\u0159idat nov\xE9ho poskytovatele",edit_driver:"Upravit poskytovatele",select_driver:"Vybrat ovlada\u010D",update:"vybrat sm\u011Bnn\xFD kurz ",providers_description:"Nakonfigurujte zde poskytovatele sm\u011Bnn\xFDch kurz\u016F, aby automaticky na\u010D\xEDtali nejnov\u011Bj\u0161\xED sm\u011Bnn\xFD kurz u transakc\xED.",key:"API kl\xED\u010D",name:"N\xE1zev",driver:"Ovlada\u010D",is_default:"JE V\xDDCHOZ\xCD",currency:"M\u011Bny",exchange_rate_confirm_delete:"Nebudete moci obnovit tento ovlada\u010D",created_message:"Poskytovatel \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Poskytovatel \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"Poskytovatel \xFAsp\u011B\u0161n\u011B odstran\u011Bn",error:" Aktivn\xED ovlada\u010D nelze odstranit",default_currency_error:"Tato m\u011Bna je ji\u017E pou\u017E\xEDv\xE1na v jednom z aktivn\xEDch poskytovatel\u016F",exchange_help_text:"Zadejte sm\u011Bnn\xFD kurz pro p\u0159evod z {currency} do {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"P\u0159evodn\xEDk m\u011Bn",server:"Server",url:"URL",active:"Aktivn\xED",currency_help_text:"Tento poskytovatel bude pou\u017Eit pouze na v\xFD\u0161e vybran\xFDch m\u011Bn\xE1ch",currency_in_used:"N\xE1sleduj\xEDc\xED m\u011Bny jsou ji\u017E aktivn\xED u jin\xE9ho poskytovatele. Odstra\u0148te tyto m\u011Bny z v\xFDb\u011Bru a znovu aktivujte tohoto poskytovatele."},tax_types:{title:"Typy dan\xED",add_tax:"P\u0159idat da\u0148",edit_tax:"Upravit da\u0148",description:"M\u016F\u017Eete p\u0159idat nebo odebrat dan\u011B, jak chcete. Crater podporuje dan\u011B z jednotliv\xFDch polo\u017Eek i z cel\xE9 faktury.",add_new_tax:"P\u0159idat novou da\u0148",tax_settings:"Nastaven\xED dan\u011B",tax_per_item:"Da\u0148 za polo\u017Eku",tax_name:"N\xE1zev dan\u011B",compound_tax:"Slo\u017Een\xE1 da\u0148",percent:"Procento",action:"Akce",tax_setting_description:"Povolte, pokud chcete p\u0159idat dan\u011B k jednotliv\xFDm polo\u017Ek\xE1m faktury. Ve v\xFDchoz\xEDm nastaven\xED jsou dan\u011B p\u0159id\xE1ny p\u0159\xEDmo na fakturu.",created_message:"Typ dan\u011B \xFAsp\u011B\u0161n\u011B vytvo\u0159en",updated_message:"Typ dan\u011B \xFAsp\u011B\u0161n\u011B upraven",deleted_message:"Typ dan\u011B \xFAsp\u011B\u0161n\u011B odstran\u011Bn",confirm_delete:"Tento typ dan\u011B nebudete moci obnovit",already_in_use:"Da\u0148 se ji\u017E pou\u017E\xEDv\xE1"},payment_modes:{title:"Platebn\xED metody",description:"Platebn\xED metody transakc\xED pro platby",add_payment_mode:"P\u0159idat platebn\xED metodu",edit_payment_mode:"Upravit platebn\xED metodu",mode_name:"N\xE1zev metody",payment_mode_added:"Platebn\xED metoda p\u0159id\xE1na",payment_mode_updated:"Platebn\xED metoda upravena",payment_mode_confirm_delete:"Nebudete moci obnovit tuto platebn\xED metodu",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Platebn\xED metoda byla \xFAsp\u011B\u0161n\u011B odstran\u011Bna"},expense_category:{title:"Kategorie v\xFDdaj\u016F",action:"Akce",description:"Kategorie jsou vy\u017Eadov\xE1ny pro p\u0159id\xE1n\xED v\xFDdajov\xFDch polo\u017Eek. M\u016F\u017Eete p\u0159idat nebo odebrat tyto kategorie podle va\u0161ich preferenc\xED.",add_new_category:"P\u0159idat novou kategorii",add_category:"P\u0159idat kategorii",edit_category:"Upravit Kategorii",category_name:"N\xE1zev kategorie",category_description:"Popis",created_message:"Kategorie v\xFDdaj\u016F \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",deleted_message:"Kategorie v\xFDdaj\u016F \xFAsp\u011B\u0161n\u011B odstran\u011Bna",updated_message:"Kategorie v\xFDdaj\u016F \xFAsp\u011B\u0161n\u011B upravena",confirm_delete:"Nebudete moci obnovit tuto kategorii v\xFDdaj\u016F",already_in_use:"Kategorie se ji\u017E pou\u017E\xEDv\xE1"},preferences:{currency:"M\u011Bna",default_language:"V\xFDchoz\xED jazyk",time_zone:"\u010Casov\xE9 p\xE1smo",fiscal_year:"Fisk\xE1ln\xED rok",date_format:"Form\xE1t data",discount_setting:"Nastaven\xED slev",discount_per_item:"Sleva za polo\u017Eku ",discount_setting_description:"Povolte tuto mo\u017Enost, pokud chcete p\u0159idat slevu do jednotliv\xFDch polo\u017Eek faktury. Ve v\xFDchoz\xEDm nastaven\xED je sleva p\u0159id\xE1na p\u0159\xEDmo na fakturu.",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:"Ulo\u017Eit",preference:"P\u0159edvolba | P\u0159edvolby",general_settings:"V\xFDchoz\xED p\u0159edvolby syst\xE9mu.",updated_message:"P\u0159edvolby \xFAsp\u011B\u0161n\u011B upraveny",select_language:"Vyberte jazyk",select_time_zone:"Vyberte \u010Dasov\xE9 p\xE1smo",select_date_format:"Vyberte form\xE1t data",select_financial_year:"Vyberte fisk\xE1ln\xED rok",recurring_invoice_status:"Stav opakuj\xEDc\xED se faktury",create_status:"Vytvo\u0159it stav",active:"Aktivn\xED",on_hold:"\u010Cekaj\xEDc\xED",update_status:"Upravit stav",completed:"Dokon\u010Deno",company_currency_unchangeable:"M\u011Bnu spole\u010Dnosti nelze m\u011Bnit"},update_app:{title:"Aktualizace aplikace",description:"Kliknut\xEDm na tla\u010D\xEDtko n\xED\u017Ee m\u016F\u017Eete jednodu\u0161e aktualizovat Crater",check_update:"Zkontrolovat aktualizace",avail_update:"K dispozici je nov\xE1 aktualizace",next_version:"Dal\u0161\xED verze",requirements:"Po\u017Eadavky",update:"Aktualizovat te\u010F",update_progress:"Prob\xEDh\xE1 aktualizace...",progress_text:"Bude to trvat jen n\u011Bkolik minut. Neobnovujte obrazovku ani nezav\xEDrejte okno p\u0159ed dokon\u010Den\xEDm aktualizace",update_success:"Aplikace byla aktualizov\xE1na! Po\u010Dkejte pros\xEDm, ne\u017E se okno prohl\xED\u017Ee\u010De automaticky znovu na\u010Dte.",latest_message:"\u017D\xE1dn\xE1 aktualizace nen\xED k dispozici! Jste na nejnov\u011Bj\u0161\xED verzi.",current_version:"Aktu\xE1ln\xED verze",download_zip_file:"St\xE1hnout soubor ZIP",unzipping_package:"Rozbalov\xE1n\xED bal\xEDku",copying_files:"Kop\xEDrov\xE1n\xED soubor\u016F",deleting_files:"Odstra\u0148ov\xE1n\xED nepou\u017Eit\xFDch soubor\u016F",running_migrations:"Spou\u0161t\u011Bn\xED migrac\xED",finishing_update:"Dokon\u010Dov\xE1n\xED aktualizace",update_failed:"Aktualizace se nezda\u0159ila",update_failed_text:"Omlouv\xE1me se! Aktualizace se nezda\u0159ila v {step}. kroku",update_warning:"V\u0161echny soubory aplikace a v\xFDchoz\xED soubory \u0161ablon budou p\u0159eps\xE1ny p\u0159i aktualizaci aplikace pomoc\xED tohoto n\xE1stroje. P\u0159ed aktualizac\xED si pros\xEDm z\xE1lohujte \u0161ablony a datab\xE1zi."},backup:{title:"Z\xE1loha | Z\xE1lohy",description:"Z\xE1loha je soubor ZIP, kter\xFD obsahuje v\u0161echny soubory ve slo\u017Ek\xE1ch, kter\xE9 zad\xE1te spolu s kopi\xED va\u0161\xED datab\xE1ze",new_backup:"P\u0159idat novou z\xE1lohu",create_backup:"Vytvo\u0159it z\xE1lohu",select_backup_type:"Vyberte typ z\xE1lohy",backup_confirm_delete:"Tuto z\xE1lohu nebudete moci obnovit",path:"cesta",new_disk:"Nov\xFD disk",created_at:"vytvo\u0159eno v",size:"velikost",dropbox:"dropbox",local:"m\xEDstn\xED",healthy:"zdrav\xFD",amount_of_backups:"po\u010Det z\xE1loh",newest_backups:"nejnov\u011Bj\u0161\xED z\xE1lohy",used_storage:"vyu\u017Eit\xE9 \xFAlo\u017Ei\u0161t\u011B",select_disk:"Vyberte disk",action:"Akce",deleted_message:"Z\xE1loha \xFAsp\u011B\u0161n\u011B odstran\u011Bna",created_message:"Z\xE1loha byla \xFAsp\u011B\u0161n\u011B vytvo\u0159ena",invalid_disk_credentials:"Nespr\xE1vn\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje pro vybran\xFD disk"},disk:{title:"Souborov\xFD disk | Souborov\xE9 disky",description:"Ve v\xFDchoz\xEDm nastaven\xED bude Crater pou\u017E\xEDvat v\xE1\u0161 lok\xE1ln\xED disk pro ukl\xE1d\xE1n\xED z\xE1loh, avataru a dal\u0161\xEDch obr\xE1zk\u016F. Podle va\u0161ich preferenc\xED m\u016F\u017Eete nakonfigurovat v\xEDce ne\u017E jeden ovlada\u010D disku, jako je DigitalOcean, S3 nebo Dropbox.",created_at:"vytvo\u0159eno v",dropbox:"dropbox",name:"N\xE1zev",driver:"Ovlada\u010D",disk_type:"Typ",disk_name:"N\xE1zev disku",new_disk:"P\u0159idat nov\xFD disk",filesystem_driver:"Ovlada\u010D souborov\xE9ho syst\xE9mu",local_driver:"m\xEDstn\xED ovlada\u010D",local_root:"m\xEDstn\xED ko\u0159enov\xFD adres\xE1\u0159",public_driver:"Ve\u0159ejn\xFD ovlada\u010D",public_root:"Ve\u0159ejn\xFD ko\u0159enov\xFD adres\xE1\u0159",public_url:"Ve\u0159ejn\xE1 adresa URL",public_visibility:"Ve\u0159ejn\xE1 viditelnost",media_driver:"Ovlada\u010D m\xE9di\xED",media_root:"Ko\u0159enov\xFD adres\xE1\u0159 medi\xED",aws_driver:"AWS ovlada\u010D",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:"V\xFDchoz\xED ovlada\u010D",is_default:"JE V\xDDCHOZ\xCD",set_default_disk:"Nastavit v\xFDchoz\xED disk",set_default_disk_confirm:"Tento disk bude nastaven jako v\xFDchoz\xED a v\u0161echny nov\xE9 PDF budou ulo\u017Eeny na tomto disku",success_set_default_disk:"Disk \xFAsp\u011B\u0161n\u011B nastaven jako v\xFDchoz\xED",save_pdf_to_disk:"Ukl\xE1dat PDF na disk",disk_setting_description:" Povolte, pokud chcete automaticky ulo\u017Eit kopii PDF ka\u017Ed\xE9 faktury, odhadu a potvrzen\xED o platb\u011B. Zapnut\xED t\xE9to mo\u017Enosti sn\xED\u017E\xED dobu na\u010D\xEDt\xE1n\xED p\u0159i prohl\xED\u017Een\xED PDF.",select_disk:"Vyberte disk",disk_settings:"Nastaven\xED disku",confirm_delete:"Va\u0161e existuj\xEDc\xED soubory a slo\u017Eky na ur\u010Den\xE9m disku nebudou ovlivn\u011Bny, ale konfigurace disku bude odstran\u011Bna z Crateru",action:"Akce",edit_file_disk:"Upravit souborov\xFD disk",success_create:"Disk byl \xFAsp\u011B\u0161n\u011B p\u0159id\xE1n",success_update:"Disk \xFAsp\u011B\u0161n\u011B upraven",error:"P\u0159id\xE1n\xED disku se nezda\u0159ilo",deleted_message:"Souborov\xFD disk \xFAsp\u011B\u0161n\u011B smaz\xE1n",disk_variables_save_successfully:"Disk \xFAsp\u011B\u0161n\u011B nakonfigurov\xE1n",disk_variables_save_error:"Konfigurace disku selhala.",invalid_disk_credentials:"Nespr\xE1vn\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje pro vybran\xFD 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."}},li={account_info:"Informace o \xFA\u010Dtu",account_info_desc:"N\xED\u017Ee uveden\xE9 \xFAdaje budou pou\u017Eity k vytvo\u0159en\xED hlavn\xEDho \xFA\u010Dtu spr\xE1vce. Tak\xE9 m\u016F\u017Eete zm\u011Bnit podrobnosti kdykoliv po p\u0159ihl\xE1\u0161en\xED.",name:"Jm\xE9no",email:"E-mail",password:"Heslo",confirm_password:"Potvrdit heslo",save_cont:"Ulo\u017Eit a pokra\u010Dovat",company_info:"Informace o spole\u010Dnosti",company_info_desc:"Tyto informace budou zobrazeny na faktur\xE1ch. Pozd\u011Bji je m\u016F\u017Eete upravit na str\xE1nce s nastaven\xEDm.",company_name:"N\xE1zev spole\u010Dnosti",company_logo:"Logo spole\u010Dnosti",logo_preview:"N\xE1hled loga",preferences:"P\u0159edvolby spole\u010Dnosti",preferences_desc:"Zadejte v\xFDchoz\xED p\u0159edvolby pro tuto spole\u010Dnost.",currency_set_alert:"M\u011Bnu spole\u010Dnosti nelze pozd\u011Bji zm\u011Bnit.",country:"Zem\u011B",state:"St\xE1t",city:"M\u011Bsto",address:"Adresa",street:"Ulice1 | Ulice2",phone:"Telefon",zip_code:"PS\u010C",go_back:"J\xEDt zp\u011Bt",currency:"M\u011Bna",language:"Jazyk",time_zone:"\u010Casov\xE9 p\xE1smo",fiscal_year:"Fisk\xE1ln\xED rok",date_format:"Form\xE1t data",from_address:"Z adresy",username:"U\u017Eivatelsk\xE9 jm\xE9no",next:"Dal\u0161\xED",continue:"Pokra\u010Dovat",skip:"P\u0159esko\u010Dit",database:{database:"URL webu a datab\xE1ze",connection:"P\u0159ipojen\xED k datab\xE1zi",host:"Host datab\xE1ze",port:"Port datab\xE1ze",password:"Heslo do datab\xE1ze",app_url:"URL aplikace",app_domain:"Dom\xE9na aplikace",username:"U\u017Eivatelsk\xE9 jm\xE9no k datab\xE1zi",db_name:"N\xE1zev datab\xE1ze",db_path:"Cesta k datab\xE1zi",desc:"Vytvo\u0159te datab\xE1zi na sv\xE9m serveru a nastavte p\u0159ihla\u0161ovac\xED \xFAdaje pomoc\xED n\xED\u017Ee uveden\xE9ho formul\xE1\u0159e."},permissions:{permissions:"Opr\xE1vn\u011Bn\xED",permission_confirm_title:"Opravdu chcete pokra\u010Dovat?",permission_confirm_desc:"Kontrola opr\xE1vn\u011Bn\xED slo\u017Eky selhala",permission_desc:"N\xED\u017Ee je seznam opr\xE1vn\u011Bn\xED slo\u017Eek, kter\xE1 jsou vy\u017Eadov\xE1na, aby aplikace pracovala. Pokud kontrola opr\xE1vn\u011Bn\xED sel\u017Ee, aktualizujte opr\xE1vn\u011Bn\xED dan\xFDch slo\u017Eek."},verify_domain:{title:"Ov\u011B\u0159en\xED dom\xE9ny",desc:"Crater pou\u017E\xEDv\xE1 ov\u011B\u0159en\xED na z\xE1klad\u011B relace, kter\xE9 vy\u017Eaduje ov\u011B\u0159en\xED dom\xE9ny pro \xFA\u010Dely zabezpe\u010Den\xED. Zadejte pros\xEDm dom\xE9nu, na kter\xE9 budete p\u0159istupovat ke sv\xE9 webov\xE9 aplikaci.",app_domain:"Dom\xE9na aplikace",verify_now:"Ov\u011B\u0159it te\u010F",success:"Ov\u011B\u0159en\xED dom\xE9ny bylo \xFAsp\u011B\u0161n\xE9.",failed:"Ov\u011B\u0159en\xED dom\xE9ny se nezda\u0159ilo. Zadejte pros\xEDm platn\xFD n\xE1zev dom\xE9ny.",verify_and_continue:"Ov\u011B\u0159it a pokra\u010Dovat"},mail:{host:"Hostitel e-mailu",port:"Port e-mailu",driver:"Ovlada\u010D e-mail\u016F",secret:"Secret",mailgun_secret:"Mailgun Secret",mailgun_domain:"Dom\xE9na",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Secret",ses_key:"SES Key",password:"E-mailov\xE9 heslo",username:"U\u017Eivatelsk\xE9 jm\xE9no e-mailu",mail_config:"Konfigurace e-mailu",from_name:"Jm\xE9no odes\xEDlatele",from_mail:"Z e-mailov\xE9 adresy",encryption:"\u0160ifrov\xE1n\xED e-mailu",mail_config_desc:"N\xED\u017Ee je uveden formul\xE1\u0159 pro konfiguraci e-mailov\xE9ho ovlada\u010De pro odes\xEDl\xE1n\xED e-mail\u016F z aplikace. M\u016F\u017Eete tak\xE9 nakonfigurovat poskytovatele t\u0159et\xEDch stran, jako je Sendgrid, SES atd."},req:{system_req:"Syst\xE9mov\xE9 po\u017Eadavky",php_req_version:"Php (po\u017Eadovan\xE1 verze {version})",check_req:"Zkontrolujte po\u017Eadavky",system_req_desc:"Crater m\xE1 n\u011Bkolik po\u017Eadavk\u016F na server. Ujist\u011Bte se, \u017Ee v\xE1\u0161 server m\xE1 po\u017Eadovanou php verzi a v\u0161echna n\xED\u017Ee uveden\xE1 roz\u0161\xED\u0159en\xED."},errors:{migrate_failed:"Migrace se nezda\u0159ila",database_variables_save_error:"Nelze zapsat konfiguraci do souboru .env. Zkontrolujte pros\xEDm jeho opr\xE1vn\u011Bn\xED",mail_variables_save_error:"Nastaven\xED e-mailu se nezda\u0159ilo.",connection_failed:"Spojen\xED s datab\xE1z\xED se nezda\u0159ilo",database_should_be_empty:"Datab\xE1ze by m\u011Bla b\xFDt pr\xE1zdn\xE1"},success:{mail_variables_save_successfully:"E-mail byl \xFAsp\u011B\u0161n\u011B nastaven",database_variables_save_successfully:"Datab\xE1ze byla \xFAsp\u011B\u0161n\u011B nastavena."}},ci={invalid_phone:"Neplatn\xE9 telefonn\xED \u010D\xEDslo",invalid_url:"Neplatn\xE1 URL (nap\u0159. http://www.craterapp.com)",invalid_domain_url:"Neplatn\xE1 URL (nap\u0159. craterapp.com)",required:"Pole je povinn\xE9",email_incorrect:"Nespr\xE1vn\xFD e-mail.",email_already_taken:"Tento e-mail ji\u017E byl pou\u017Eit.",email_does_not_exist:"U\u017Eivatel s dan\xFDm e-mailem neexistuje",item_unit_already_taken:"Tento n\xE1zev jednotky je ji\u017E obsazen",payment_mode_already_taken:"Tento n\xE1zev platebn\xED metody ji\u017E byl pou\u017Eit",send_reset_link:"Zaslat odkaz na obnoven\xED hesla",not_yet:"Je\u0161t\u011B ne? Poslat znovu",password_min_length:"Heslo mus\xED obsahovat {count} znak\u016F",name_min_length:"Jm\xE9no mus\xED m\xEDt alespo\u0148 {count} p\xEDsmen.",prefix_min_length:"Prefix mus\xED m\xEDt alespo\u0148 {count} p\xEDsmen.",enter_valid_tax_rate:"Zadejte platnou da\u0148ovou sazbu",numbers_only:"Pouze \u010D\xEDsla.",characters_only:"Pouze p\xEDsmena.",password_incorrect:"Hesla mus\xED b\xFDt stejn\xE1",password_length:"Heslo mus\xED b\xFDt dlouh\xE9 {count} znak\u016F.",qty_must_greater_than_zero:"Mno\u017Estv\xED mus\xED b\xFDt v\u011Bt\u0161\xED ne\u017E nula.",price_greater_than_zero:"Cena mus\xED b\xFDt vy\u0161\u0161\xED ne\u017E nula.",payment_greater_than_zero:"Platba mus\xED b\xFDt vy\u0161\u0161\xED ne\u017E nula.",payment_greater_than_due_amount:"Zadan\xE1 platba je vy\u0161\u0161\xED ne\u017E splatn\xE1 \u010D\xE1stka t\xE9to faktury.",quantity_maxlength:"Mno\u017Estv\xED by nem\u011Blo b\xFDt del\u0161\xED ne\u017E 20 \u010D\xEDslic.",price_maxlength:"Cena by nem\u011Bla b\xFDt del\u0161\xED ne\u017E 20 \u010D\xEDslic.",price_minvalue:"Cena by m\u011Bla b\xFDt v\u011Bt\u0161\xED ne\u017E 0.",amount_maxlength:"Mno\u017Estv\xED by nem\u011Blo b\xFDt del\u0161\xED ne\u017E 20 \u010D\xEDslic.",amount_minvalue:"Mno\u017Estv\xED by m\u011Blo b\xFDt v\u011Bt\u0161\xED ne\u017E 0.",discount_maxlength:"Sleva by nem\u011Bla b\xFDt vy\u0161\u0161\xED ne\u017E maxim\xE1ln\xED sleva",description_maxlength:"Popis by nem\u011Bl b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",subject_maxlength:"P\u0159edm\u011Bt by nem\u011Bl b\xFDt del\u0161\xED ne\u017E 100 znak\u016F.",message_maxlength:"Zpr\xE1va by nem\u011Bla b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",maximum_options_error:"Vybr\xE1no maximum z {max} mo\u017Enost\xED. Nejprve odeberte vybranou mo\u017Enost pro dal\u0161\xED v\xFDb\u011Br.",notes_maxlength:"Pozn\xE1mky by nem\u011Bly b\xFDt del\u0161\xED ne\u017E 65 000 znak\u016F.",address_maxlength:"Adresa by nem\u011Bla b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",ref_number_maxlength:"Referen\u010Dn\xED \u010D\xEDslo by nem\u011Blo b\xFDt del\u0161\xED ne\u017E 255 znak\u016F.",prefix_maxlength:"Prefix by nem\u011Bl b\xFDt del\u0161\xED ne\u017E 5 znak\u016F.",something_went_wrong:"n\u011Bco se nezda\u0159ilo",number_length_minvalue:"D\xE9lka \u010D\xEDsla by m\u011Bla b\xFDt v\u011Bt\u0161\xED ne\u017E 0",at_least_one_ability:"Vyberte pros\xEDm alespo\u0148 jedno opr\xE1vn\u011Bn\xED.",valid_driver_key:"Zadejte pros\xEDm platn\xFD {driver} kl\xED\u010D.",valid_exchange_rate:"Zadejte pros\xEDm platn\xFD sm\u011Bnn\xFD kurz.",company_name_not_same:"N\xE1zev spole\u010Dnosti se mus\xED shodovat se zadan\xFDm n\xE1zvem."},_i={starter_plan:"Tato funkce je k dispozici na Starter Pl\xE1nu a d\xE1le!",invalid_provider_key:"Zadejte pros\xEDm platn\xFD API kl\xED\u010D poskytovatele.",estimate_number_used:"\u010C\xEDslo odhadu ji\u017E bylo pou\u017Eito.",invoice_number_used:"\u010C\xEDslo faktury ji\u017E bylo pou\u017Eito.",payment_attached:"Na t\xE9to faktu\u0159e je ji\u017E p\u0159ilo\u017Eena platba. Abyste mohli pokra\u010Dovat v odstran\u011Bn\xED, odstra\u0148t\u011B nejd\u0159\xEDve p\u0159ilo\u017Een\xE9 platby.",payment_number_used:"\u010C\xEDslo platby ji\u017E bylo pou\u017Eito.",name_already_taken:"N\xE1zev ji\u017E byl pou\u017Eit.",receipt_does_not_exist:"Doklad neexistuje.",customer_cannot_be_changed_after_payment_is_added:"Z\xE1kazn\xEDka nelze m\u011Bnit po p\u0159id\xE1n\xED platby",invalid_credentials:"Neplatn\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje.",not_allowed:"Nen\xED povoleno",login_invalid_credentials:"Tyto \xFAdaje neodpov\xEDdaj\xED na\u0161im z\xE1znam\u016Fm.",enter_valid_cron_format:"Zadejte platn\xFD form\xE1t cronu",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"},ui="Odhad",mi="\u010C\xEDslo odhadu",pi="Datum odhadu",fi="Doba platnosti",gi="Faktura",vi="\u010C\xEDslo faktury",yi="Datum fakturace",hi="Datum splatnosti",bi="Pozn\xE1mky",ki="Polo\u017Eky",wi="Mno\u017Estv\xED",zi="Cena",xi="Sleva",Pi="Mno\u017Estv\xED",Si="Mezisou\u010Det",ji="Celkem",Ai="Platba",Di="DOKLAD O PLATB\u011A",Ci="Datum platby",Ni="\u010C\xEDslo platby",Ei="Platebn\xED metoda",Ii="Obdr\u017Een\xE1 \u010D\xE1stka",Ti="REPORT V\xDDDAJ\u016E",Ri="V\xDDDAJE CELKEM",Mi="REPORT ZISKU A ZTR\xC1T",Fi="Report o z\xE1kazn\xEDc\xEDch prodeje",$i="Report o polo\u017Ek\xE1ch prodeje",Ui="Report o shrnut\xED dan\xED",Vi="P\u0158\xCDJEM",Oi="\u010CIST\xDD ZISK",Li="Report o prodeji: Podle z\xE1kazn\xEDka",qi="PRODEJE CELKEM",Bi="Report o prodeji: Podle polo\u017Eky",Ki="DA\u0147OV\xDD REPORT",Zi="DAN\u011A CELKEM",Wi="Typy dan\xED",Hi="V\xFDdaje",Yi="Odb\u011Bratel",Gi="P\u0159\xEDjemce",Ji="P\u0159ijato od:",Qi="Da\u0148";var Xi={navigation:Bn,general:Kn,dashboard:Zn,tax_types:Wn,global_search:Hn,company_switcher:Yn,dateRange:Gn,customers:Jn,items:Qn,estimates:Xn,invoices:ei,recurring_invoices:ti,payments:ai,expenses:ni,login:ii,modules:oi,users:si,reports:ri,settings:di,wizard:li,validation:ci,errors:_i,pdf_estimate_label:ui,pdf_estimate_number:mi,pdf_estimate_date:pi,pdf_estimate_expire_date:fi,pdf_invoice_label:gi,pdf_invoice_number:vi,pdf_invoice_date:yi,pdf_invoice_due_date:hi,pdf_notes:bi,pdf_items_label:ki,pdf_quantity_label:wi,pdf_price_label:zi,pdf_discount_label:xi,pdf_amount_label:Pi,pdf_subtotal:Si,pdf_total:ji,pdf_payment_label:Ai,pdf_payment_receipt_label:Di,pdf_payment_date:Ci,pdf_payment_number:Ni,pdf_payment_mode:Ei,pdf_payment_amount_received_label:Ii,pdf_expense_report_label:Ti,pdf_total_expenses_label:Ri,pdf_profit_loss_label:Mi,pdf_sales_customers_label:Fi,pdf_sales_items_label:$i,pdf_tax_summery_label:Ui,pdf_income_label:Vi,pdf_net_profit_label:Oi,pdf_customer_sales_report:Li,pdf_total_sales_label:qi,pdf_item_sales_label:Bi,pdf_tax_report_label:Ki,pdf_total_tax_label:Zi,pdf_tax_types_label:Wi,pdf_expenses_label:Hi,pdf_bill_to:Yi,pdf_ship_to:Gi,pdf_received_from:Ji,pdf_tax_label:Qi};const eo={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"},to={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",mark_as_default:"Mark as default"},ao={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"}},no={name:"Name",description:"Description",percent:"Percent",compound_tax:"Compound Tax"},io={search:"Search...",customers:"Customers",users:"Users",no_results_found:"No Results Found"},oo={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},so={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"},ro={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."},lo={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"},co={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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},_o={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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},uo={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",add_customer_email:"Please add an email address for this customer to send invoices automatically.",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."},mo={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"},po={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"}},fo={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"},go={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:"The minimum required version for this module does not match. Please upgrade your crater app to version: {version} to proceed.",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"},vo={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"},yo={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"}},ho={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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",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."}},bo={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."}},ko={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."},wo={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"},zo="Estimate",xo="Estimate Number",Po="Estimate Date",So="Expiry date",jo="Invoice",Ao="Invoice Number",Do="Invoice Date",Co="Due date",No="Notes",Eo="Items",Io="Quantity",To="Price",Ro="Discount",Mo="Amount",Fo="Subtotal",$o="Total",Uo="Payment",Vo="PAYMENT RECEIPT",Oo="Payment Date",Lo="Payment Number",qo="Payment Mode",Bo="Amount Received",Ko="EXPENSES REPORT",Zo="TOTAL EXPENSE",Wo="PROFIT & LOSS REPORT",Ho="Sales Customer Report",Yo="Sales Item Report",Go="Tax Summary Report",Jo="INCOME",Qo="NET PROFIT",Xo="Sales Report: By Customer",es="TOTAL SALES",ts="Sales Report: By Item",as="TAX REPORT",ns="TOTAL TAX",is="Tax Types",os="Expenses",ss="Bill to,",rs="Ship to,",ds="Received from:",ls="Tax";var cs={navigation:eo,general:to,dashboard:ao,tax_types:no,global_search:io,company_switcher:oo,dateRange:so,customers:ro,items:lo,estimates:co,invoices:_o,recurring_invoices:uo,payments:mo,expenses:po,login:fo,modules:go,users:vo,reports:yo,settings:ho,wizard:bo,validation:ko,errors:wo,pdf_estimate_label:zo,pdf_estimate_number:xo,pdf_estimate_date:Po,pdf_estimate_expire_date:So,pdf_invoice_label:jo,pdf_invoice_number:Ao,pdf_invoice_date:Do,pdf_invoice_due_date:Co,pdf_notes:No,pdf_items_label:Eo,pdf_quantity_label:Io,pdf_price_label:To,pdf_discount_label:Ro,pdf_amount_label:Mo,pdf_subtotal:Fo,pdf_total:$o,pdf_payment_label:Uo,pdf_payment_receipt_label:Vo,pdf_payment_date:Oo,pdf_payment_number:Lo,pdf_payment_mode:qo,pdf_payment_amount_received_label:Bo,pdf_expense_report_label:Ko,pdf_total_expenses_label:Zo,pdf_profit_loss_label:Wo,pdf_sales_customers_label:Ho,pdf_sales_items_label:Yo,pdf_tax_summery_label:Go,pdf_income_label:Jo,pdf_net_profit_label:Qo,pdf_customer_sales_report:Xo,pdf_total_sales_label:es,pdf_item_sales_label:ts,pdf_tax_report_label:as,pdf_total_tax_label:ns,pdf_tax_types_label:is,pdf_expenses_label:os,pdf_bill_to:ss,pdf_ship_to:rs,pdf_received_from:ds,pdf_tax_label:ls};const _s={dashboard:"Tableau de bord",customers:"Clients",items:"Articles",invoices:"Factures","recurring-invoices":"Factures r\xE9currentes",expenses:"D\xE9penses",estimates:"Devis",payments:"Paiements",reports:"Rapports",settings:"Param\xE8tres",logout:"D\xE9connexion",users:"Utilisateurs",modules:"Modules"},us={add_company:"Ajouter une entreprise",view_pdf:"Afficher le PDF",copy_pdf_url:"Copier l'URL du PDF",download_pdf:"T\xE9l\xE9charger le PDF",save:"Enregistrer",create:"Cr\xE9er",cancel:"Annuler",update:"Mettre \xE0 jour",deselect:"Enlever",download:"T\xE9l\xE9charger",from_date:"Du",to_date:"Au",from:"Du",to:"Au",ok:"Ok",yes:"Oui",no:"Non",sort_by:"Trier par",ascending:"Ascendant",descending:"Descendant",subject:"Objet",body:"Message",message:"Message",send:"Envoyer",preview:"Aper\xE7u",go_back:"Retourner",back_to_login:"Revenir \xE0 la page de connexion ?",home:"Tableau de bord",filter:"Filtrer",delete:"Supprimer",edit:"Modifier",view:"Afficher",add_new_item:"Ajouter une ligne",clear_all:"Tout supprimer",showing:"Affichage ",of:"sur",actions:"Actions",subtotal:"SOUS-TOTAL",discount:"REMISE",fixed:"Fixe",percentage:"Pourcentage",tax:"TAXE",total_amount:"TOTAL ",bill_to:"Facturer \xE0",ship_to:"Exp\xE9dier \xE0",due:"En cours",draft:"Brouillon",sent:"Envoy\xE9e",all:"Tout",select_all:"Tout s\xE9lectionner",select_template:"Mod\xE8le",choose_file:"Cliquez ici pour choisir un fichier",choose_template:"Choisissez un mod\xE8le",choose:"Choisir",remove:"Supprimer",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 au tableau de bord",test_mail_conf:"Envoyer un email de test",send_mail_successfully:"Email envoy\xE9",setting_updated:"Param\xE8tres mis \xE0 jour",select_state:"S\xE9lectionnez l'\xE9tat",select_country:"Choisissez le pays",select_city:"S\xE9lectionnez une ville",street_1:"Rue, voie, boite postale",street_2:"B\xE2timent, \xE9tage, lieu-dit, compl\xE9ment,...",action_failed:"Action : \xE9chou\xE9",retry:"R\xE9essayez",choose_note:"Choisissez une note de bas de page",no_note_found:"Aucune note de bas de page trouv\xE9e",insert_note:"Ins\xE9rer une note",copied_pdf_url_clipboard:"L'adresse du PDF a \xE9t\xE9 copi\xE9e.",copied_url_clipboard:"URL copi\xE9e vers le presse-papier!",docs:"Documents",do_you_wish_to_continue:"Voulez-vous continuer ?",note:"Note de bas de page",pay_invoice:"Payer facture",login_successfully:"Identifi\xE9 avec succ\xE8s!",logged_out_successfully:"D\xE9connect\xE9 avec succ\xE8s",mark_as_default:"Mark as default"},ms={select_year:"S\xE9lectionnez l'ann\xE9e",cards:{due_amount:"Encours clients",customers:"Clients",invoices:"Factures",estimates:"Devis",payments:"Payments"},chart_info:{total_sales:"Ventes",total_receipts:"Recettes",total_expense:"D\xE9penses",net_income:"R\xE9sultat",year:"S\xE9lectionnez l'ann\xE9e"},monthly_chart:{title:"Recettes et d\xE9penses"},recent_invoices_card:{title:"Factures en cours",due_on:"\xC9ch\xE9ance",customer:"Client",amount_due:"Montant",actions:"Actions",view_all:"Tout afficher"},recent_estimate_card:{title:"Devis r\xE9cents",date:"Expiration",customer:"Client",amount_due:"Montant",actions:"Actions",view_all:"Tout afficher"}},ps={name:"Nom",description:"Description",percent:"Pourcentage",compound_tax:"Taxe compos\xE9e"},fs={search:"Rechercher",customers:"Clients",users:"Utilisateurs",no_results_found:"Aucun r\xE9sultat"},gs={label:"CHANGER DE SOCI\xC9T\xC9",no_results_found:"Aucun r\xE9sultat",add_new_company:"Ajouter une soci\xE9t\xE9",new_company:"Nouvelle soci\xE9t\xE9",created_message:"Soci\xE9t\xE9 cr\xE9\xE9e"},vs={today:"Aujourd'hui",this_week:"Cette semaine",this_month:"Ce mois",this_quarter:"Ce trimestre",this_year:"Cette ann\xE9e",previous_week:"Semaine pr\xE9c\xE9dente",previous_month:"Mois pr\xE9c\xE9dent",previous_quarter:"Trimestre pr\xE9c\xE9dent",previous_year:"Ann\xE9e pr\xE9c\xE9dente",custom:"Personnalis\xE9e"},ys={title:"Clients",prefix:"Code client",add_customer:"Ajouter un client",contacts_list:"Liste de clients",name:"Nom",mail:"Email | Emails",statement:"D\xE9claration",display_name:"Nom",primary_contact_name:"Contact principal",contact_name:"Contact",amount_due:"Montant d\xFB",email:"Email",address:"Adresse",phone:"T\xE9l\xE9phone",website:"Site Internet",overview:"Aper\xE7u",invoice_prefix:"Pr\xE9fixe de facture",estimate_prefix:"Pr\xE9fixe des devis",payment_prefix:"Pr\xE9fixe de paiement",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",confirm_password:"Confirmez le mot de passe",street_number:"Num\xE9ro de rue",primary_currency:"Devise principale",description:"Description",add_new_customer:"Ajouter un client",save_customer:"Enregistrer",update_customer:"Enregistrer",customer:"Client | Clients",new_customer:"Nouveau client",edit_customer:"Modifier le client",basic_info:"Informations de base",portal_access:"Acc\xE8s Portail",portal_access_text:"Souhaitez vous autoriser ce client \xE0 se connecter au Portail Client ?",portal_access_url:"URL de connexion Portail Client",portal_access_url_help:"Veuillez copiez et envoyez le lien ci-dessus au client pour lui fournir l'acc\xE8s au portail.",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_name:"-",list_of_customers:"Ajoutez des clients et retrouvez-les ici.",primary_display_name:"Nom d'affichage principal",select_currency:"S\xE9lectionnez la devise",select_a_customer:"S\xE9lectionnez un client",type_or_click:"S\xE9lectionnez un article",new_transaction:"Ajouter une op\xE9ration",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",updated_message:"Client mis \xE0 jour",address_updated_message:"Adresse mise \xE0 jour avec succ\xE8s",deleted_message:"Client supprim\xE9 | Clients supprim\xE9s",edit_currency_not_allowed:"Impossible de changer de devise une fois les transactions cr\xE9\xE9es."},hs={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:"Aucun article s\xE9lectionn\xE9",action:"Action",add_item:"Nouvel article",save_item:"Enregistrer",update_item:"Enregistrer",item:"Article | Articles",add_new_item:"Ajouter un article",new_item:"Nouvel article",edit_item:"Modifier cet article",no_items:"Aucun article",list_of_items:"Ajoutez des articles et retrouvez-les ici",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",updated_message:"Article mis \xE0 jour",deleted_message:"Article supprim\xE9 avec succ\xE8s | Articles supprim\xE9s avec succ\xE8s"},bs={title:"Devis",accept_estimate:"Accepter devis",reject_estimate:"Rejeter devis",estimate:"Devis | Devis",estimates_list:"Liste des devis",days:"{days} jours",months:"{months} mois",years:"{years} Ann\xE9e",all:"Tous",paid:"Pay\xE9",unpaid:"Non pay\xE9",customer:"Client",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT",partially_paid:"Partiellement pay\xE9",total:"Total",discount:"Remise",sub_total:"Sous-total",estimate_number:"N\xB0",ref_number:"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:"Notes de bas de page",tax:"Taxe",estimate_template:"Mod\xE8le de devis",convert_to_invoice:"Convertir en facture",mark_as_sent:"Marquer comme envoy\xE9",send_estimate:"Envoyer par email",resend_estimate:"Renvoyer le devis",record_payment:"Enregistrer un paiement",add_estimate:"Nouveau devis",save_estimate:"Enregistrer",confirm_conversion:"Ce devis sera utilis\xE9 pour cr\xE9er une nouvelle facture.",conversion_message:"Conversion r\xE9ussie",confirm_send_estimate:"Ce devis sera envoy\xE9e par email 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\xE9 comme envoy\xE9",send_estimate_successfully:"Devis envoy\xE9",errors:{required:"Champ requis"},accepted:"Accept\xE9",rejected:"Refus\xE9",expired:"Expired",sent:"Envoy\xE9",draft:"Brouillon",viewed:"Viewed",declined:"Refus\xE9",new_estimate:"Nouveau devis",add_new_estimate:"Nouveau devis",update_Estimate:"Enregistrer",edit_estimate:"Modifier ce devis",items:"articles",Estimate:"Devis | Devis",add_new_tax:"Ajouter une taxe",no_estimates:"Aucun devis",list_of_estimates:"Ajoutez des clients et retrouvez-les ici",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",updated_message:"Devis mise \xE0 jour",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:"S\xE9lectionnez un article",type_item_description:"Taper la description de l'article (facultatif)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},ks={title:"Factures",download:"T\xE9l\xE9charger",pay_invoice:"Payer facture",invoices_list:"Liste des factures",invoice_information:"Informations sur la facture",days:"{days} jours",months:"{months} mois",years:"{years} ann\xE9es",all:"Toutes",paid:"Pay\xE9e",unpaid:"Non pay\xE9e",viewed:"Consult\xE9e",overdue:"En retard",completed:"Pay\xE9e",customer:"CLIENT",paid_status:"\xC9tat du paiement",ref_no:"R\xE9f.",number:"N\xB0",amount_due:"MONTANT",partially_paid:"Partiellement pay\xE9e",total:"Total",discount:"Remise",sub_total:"Sous-total",invoice:"Facture | Factures",invoice_number:"N\xB0",ref_number:"R\xE9f\xE9rence",contact:"Contact",add_item:"Nouvel article",date:"Date",due_date:"Date d'\xE9ch\xE9ance",status:"Statut",add_tax:"Ajouter une taxe",amount:"Montant",action:"Action",notes:"Notes de bas de page",view:"Afficher",send_invoice:"Envoyer par email",resend_invoice:"Renvoyer la facture",invoice_template:"Mod\xE8le de facture",conversion_message:"Facture clon\xE9e",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_mark_as_accepted:"Cette facture sera marqu\xE9e comme accept\xE9e",confirm_mark_as_rejected:"Cette facture sera marqu\xE9e comme rejet\xE9e",confirm_send:"Cette facture sera envoy\xE9e par email au client",invoice_date:"Date",record_payment:"Enregistrer un paiement",add_new_invoice:"Nouvelle facture",update_expense:"Enregistrer la d\xE9pense",edit_invoice:"Modifier cette facture",new_invoice:"Nouvelle facture",save_invoice:"Enregistrer",update_invoice:"Enregistrer",add_new_tax:"Ajouter une taxe",no_invoices:"Aucune facture",mark_as_rejected:"Marquer comme rejet\xE9e",mark_as_accepted:"Marquer comme accept\xE9e",list_of_invoices:"Ajoutez des factures et retrouvez-les ici",select_invoice:"S\xE9lectionnez facture",no_matching_invoices:"Aucune facture correspondante !",mark_as_sent_successfully:"Facture marqu\xE9e comme envoy\xE9e",invoice_sent_successfully:"Facture envoy\xE9e",cloned_successfully:"Facture clon\xE9e",clone_invoice:"Dupliquer",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:"S\xE9lectionnez un article",type_item_description:"Saisissez une description (facultatif)"},payment_attached_message:"Un paiement est li\xE9 \xE0 l'une des factures s\xE9lectionn\xE9es. Veuillez d'abord les supprimer, puis r\xE9essayez",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",updated_message:"Facture mise \xE0 jour",deleted_message:"La facture a \xE9t\xE9 supprim\xE9e | Les factures ont \xE9t\xE9 supprim\xE9es",marked_as_sent_message:"Facture supprim\xE9e | Factures supprim\xE9es",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},ws={title:"Factures r\xE9currentes",invoices_list:"Liste des factures r\xE9currentes",days:"{days} jours",months:"{months} mois",years:"{years} ans",all:"Toutes",paid:"Pay\xE9e",unpaid:"Non pay\xE9e",viewed:"Consult\xE9e",overdue:"En retard",active:"Active",completed:"Pay\xE9e",customer:"CLIENT",paid_status:"\xC9TAT DU PAIEMENT",ref_no:"N\xB0 de REF.",number:"N\xB0",amount_due:"MONTANT D\xDB",partially_paid:"Partiellement pay\xE9e",total:"Total",discount:"Remise",sub_total:"Sous-total",invoice:"Facture r\xE9currente | Factures r\xE9currentes",invoice_number:"N\xB0",next_invoice_date:"Prochaine date de facturation",ref_number:"N\xB0 de r\xE9f\xE9rence",contact:"Contact",add_item:"Ajouter un article",date:"Date",limit_by:"Limiter par",limit_date:"Date limite",limit_count:"Nombre limite",count:"Nombre",status:"Statut",select_a_status:"S\xE9lectionnez un statut",working:"Active",on_hold:"Suspendue",complete:"Pay\xE9e",add_tax:"Ajouter une taxe",amount:"Montant",action:"Action",notes:"Notes de bas de page",view:"Afficher",basic_info:"Informations g\xE9n\xE9rales",send_invoice:"Envoyer la facture r\xE9currente",auto_send:"Envoi automatique",resend_invoice:"Renvoyer la facture r\xE9currente",invoice_template:"Mod\xE8le de facture r\xE9currente",conversion_message:"Facture r\xE9currente clon\xE9e",template:"Mod\xE8le",mark_as_sent:"Marquer comme envoy\xE9e",confirm_send_invoice:"Cette facture r\xE9currente sera envoy\xE9e par email au client",invoice_mark_as_sent:"Cette facture r\xE9currente sera marqu\xE9e comme envoy\xE9e",confirm_send:"Cette facture r\xE9currente sera envoy\xE9e par email au client",starts_at:"Date de d\xE9but",due_date:"Date d'\xE9ch\xE9ance",record_payment:"Enregister un paiement",add_new_invoice:"Nouvelle facture r\xE9currente",update_expense:"Mettre \xE0 jour les d\xE9penses",edit_invoice:"Modifier cette facture r\xE9currente",new_invoice:"Nouvelle facture r\xE9currente",send_automatically:"Envoyer automatiquement",send_automatically_desc:"Activez ceci si vous souhaitez envoyer la facture automatiquement au client lorsque celle-ci est cr\xE9\xE9e.",save_invoice:"Enregistrer",update_invoice:"Modifier la facture r\xE9currente",add_new_tax:"Ajouter une taxe",no_invoices:"Aucune facture r\xE9currente pour le moment !",mark_as_rejected:"Marquer comme rejet\xE9e",mark_as_accepted:"Marquer comme accept\xE9",list_of_invoices:"Ajoutez des factures r\xE9currentes et retrouvez-les ici",select_invoice:"S\xE9lectionnez la facture",no_matching_invoices:"Aucune facture r\xE9currente correspondante",mark_as_sent_successfully:"Facture r\xE9currente marqu\xE9e comme envoy\xE9e",invoice_sent_successfully:"Facture r\xE9currente envoy\xE9e",cloned_successfully:"Facture r\xE9currente clon\xE9e",clone_invoice:"Dupliquer",confirm_clone:"Cette facture r\xE9currente sera clon\xE9e dans une nouvelle facture r\xE9currente",item:{title:"Nom",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:"Description de l'article (facultatif)"},frequency:{title:"Fr\xE9quence",select_frequency:"S\xE9lectionner la fr\xE9quence",minute:"Minute",hour:"Heure",day_month:"Jour du mois",month:"Mois",day_week:"Jour de la semaine"},confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette facture | Vous ne pourrez pas r\xE9cup\xE9rer ces factures",created_message:"Facture r\xE9currente cr\xE9\xE9e",updated_message:"Facture r\xE9currente mise \xE0 jour",deleted_message:"Facture r\xE9currente supprim\xE9e",marked_as_sent_message:"Facture r\xE9currente envoy\xE9e",user_email_does_not_exist:"L'email de l'utilisateur n'existe pas",something_went_wrong:"une erreur s\u2019est produite",invalid_due_amount_message:"Le montant total de la facture r\xE9currente ne peut pas \xEAtre inf\xE9rieur au montant total pay\xE9 pour cette facture r\xE9currente. Veuillez mettre \xE0 jour la facture ou supprimer les paiements associ\xE9s pour continuer."},zs={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:"Description",add_payment:"Nouveau paiement",new_payment:"Nouveau paiement",edit_payment:"Modifier ce paiement",view_payment:"Afficher le paiement",add_new_payment:"Nouveau paiement",send_payment_receipt:"Envoyer le re\xE7u",send_payment:"Envoyer par email",save_payment:"Enregistrer",update_payment:"Enregistrer",payment:"Paiement | Paiements",no_payments:"Aucun paiement",not_selected:"-",no_invoice:"Aucune facture",no_matching_payments:"Il n'y a aucun paiement correspondant !",list_of_payments:"Ajoutez des paiements et retrouvez-les ici",select_payment_mode:"S\xE9lectionnez le mode 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",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",updated_message:"Paiement mis \xE0 jour",deleted_message:"Paiement supprim\xE9 | Paiements supprim\xE9s",invalid_amount_message:"Le montant du paiement est invalide"},xs={title:"D\xE9penses",expenses_list:"Liste des d\xE9penses",select_a_customer:"S\xE9lectionnez un client",expense_title:"Titre",customer:"Client",currency:"Devise",contact:"Contact",category:"Cat\xE9gorie",from_date:"Du",to_date:"Au",expense_date:"Date",description:"Description",receipt:"Re\xE7u",amount:"Montant",action:"Action",not_selected:"-",note:"Description",category_id:"Identifiant de cat\xE9gorie",date:"Date",add_expense:"Nouvelle d\xE9pense",add_new_expense:"Nouvelle d\xE9pense",save_expense:"Enregistrer",update_expense:"Enregistrer",download_receipt:"T\xE9l\xE9charger le re\xE7u",edit_expense:"Modifier cette d\xE9pense",new_expense:"Nouvelle d\xE9pense",expense:"D\xE9pense | D\xE9penses",no_expenses:"Aucune d\xE9pense",list_of_expenses:"Ajoutez des d\xE9penses et retrouvez-les ici",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",updated_message:"D\xE9pense mise \xE0 jour",deleted_message:"D\xE9pense supprim\xE9e | D\xE9penses supprim\xE9es",categories:{categories_list:"Liste des cat\xE9gories",title:"Titre",name:"Nom",description:"Description",amount:"Montant",actions:"Actions",add_category:"Nouvelle cat\xE9gorie",new_category:"Nouvelle cat\xE9gorie",category:"Cat\xE9gorie | Cat\xE9gories",select_a_category:"Choisissez une cat\xE9gorie"}},Ps={email:"Email",password:"Mot de passe",forgot_password:"Mot de passe oubli\xE9 ?",or_signIn_with:"ou connectez-vous avec",login:"Se connecter",register:"S'inscrire",reset_password:"R\xE9initialiser le mot de passe",password_reset_successfully:"R\xE9initialisation du mot de passe r\xE9ussie",enter_email:"Entrez votre email",enter_password:"Entrer le mot de passe",retype_password:"Retaper le mot de passe"},Ss={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"},js={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:"Nouvel utilisateur",save_user:"Enregistrer l'utilisateur",update_user:"Enregistrer",user:"Utilisateur | Utilisateurs",add_new_user:"Nouvel utilisateur",new_user:"Nouvel utilisateur",edit_user:"Modifier cet utilisateur",no_users:"Aucun utilisateur",list_of_users:"Ajoutez des utilisateurs et retrouvez-les ici",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:"Utilisateur cr\xE9\xE9",updated_message:"Utilisateur mis \xE0 jour",deleted_message:"Utilisateur supprim\xE9 | Utilisateurs supprim\xE9s",select_company_role:"S\xE9lectionner un r\xF4le pour {company}",companies:"Soci\xE9t\xE9s"},As={title:"Rapport",from_date:"Du",to_date:"Au",status:"Statut",paid:"Pay\xE9",unpaid:"Non pay\xE9",download_pdf:"T\xE9l\xE9charger le PDF",view_pdf:"Afficher le PDF",update_report:"Actualiser",report:"Rapport | Rapports",profit_loss:{profit_loss:"Balance",to_date:"Au",from_date:"Du",date_range:"P\xE9riode"},sales:{sales:"Ventes",date_range:"P\xE9riode",to_date:"Au",from_date:"Du",report_type:"Trier"},taxes:{taxes:"Taxes",to_date:"Au",from_date:"Du",date_range:"P\xE9riode"},errors:{required:"Champ requis"},invoices:{invoice:"Facture",invoice_date:"Date",due_date:"Date d\xE9ch\xE9ance",amount:"Montant ",contact_name:"Contact",status:"Statut"},estimates:{estimate:"Devis",estimate_date:"Date",due_date:"Date d'\xE9ch\xE9ance",estimate_number:"N\xB0",ref_number:"R\xE9f\xE9rence",amount:"Montant",contact_name:"Contact",status:"Statut"},expenses:{expenses:"D\xE9penses",category:"Nom",date:"Date",amount:"Montant",to_date:"Au",from_date:"Du",date_range:"P\xE9riode"}},Ds={menu_title:{account_settings:"Profil",company_information:"Coordonn\xE9es de la soci\xE9t\xE9",customization:"Personnalisation",preferences:"Pr\xE9f\xE9rences",notifications:"Notifications",tax_types:"Taxes",expense_category:"Cat\xE9gories de d\xE9pense",update_app:"Mise \xE0 jour",backup:"Sauvegarde",file_disk:"Stockage",custom_fields:"Champs personnalis\xE9s",payment_modes:"Modes de paiement",notes:"Notes de bas de page",exchange_rate:"Taux de change",address_information:"Address Information"},address_information:{section_description:" Vous pouvez mettre \xE0 jour vos informations d'adresse via le formulaire ci dessous."},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:"Fournisseur",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:"Envoi d'emails",from_name:"Nom de l'exp\xE9diteur",from_mail:"Email de l'exp\xE9diteur",encryption:"Chiffrement",mail_config_desc:"Saisissez ici les param\xE8tres d'envoi de votre bo\xEEte email, afin que l'application puisse envoyer des messages. Vous pouvez \xE9galement utiliser un service tiers, comme Sendgrid par exemple."},pdf:{title:"Param\xE8tre PDF",footer_text:"Pied de page",pdf_layout:"Mise en page PDF"},company_info:{company_info:"Coordonn\xE9es de la soci\xE9t\xE9",company_name:"Nom",company_logo:"Logo",section_description:"Saisissez ici les coordonn\xE9es de votre entreprise qui s'afficheront sur tous vos documents.",phone:"T\xE9l\xE9phone",country:"Pays",state:"\xC9tat",city:"Ville",address:"Adresse",zip:"Code postal",save:"Enregistrer",delete:"Supprimer",updated_message:"Informations sur la soci\xE9t\xE9 mises \xE0 jour",delete_company:"Supprimer la soci\xE9t\xE9",delete_company_description:"Une fois votre soci\xE9t\xE9 supprim\xE9e, vous perdrez d\xE9finitivement toutes les donn\xE9es et fichiers qui lui sont associ\xE9s.",are_you_absolutely_sure:"En \xEAtes vous vraiment s\xFBr?",delete_company_modal_desc:"Cette action ne peut pas \xEAtre annul\xE9e. Cela supprimera d\xE9finitivement {company} et toutes les donn\xE9es associ\xE9es.",delete_company_modal_label:"Veuillez saisir {company} pour confirmer"},custom_fields:{title:"Champs personnalis\xE9s",section_description:"Personnalisez vos factures, devis et re\xE7us de paiement avec vos propres champs. Vous pouvez les utiliser dans les formats d'adresse ou dans les notes de bas de page.",add_custom_field:"Ajouter un champ personnalis\xE9",edit_custom_field:"Modifier ce champ personnalis\xE9",field_name:"Nom du champs",label:"\xC9tiquette",type:"Type\xA0",name:"Nom",slug:"Jeton",required:"Obligatoire",placeholder:"Indication",help_text:"Texte d'aide",default_value:"Valeur par d\xE9faut",prefix:"Pr\xE9fixe",starting_number:"Num\xE9ro de d\xE9part",model:"Appliquer \xE0",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",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",added_message:"Champ personnalis\xE9 ajout\xE9",press_enter_to_add:"Appuyez sur Entr\xE9e pour ajouter une nouvelle option",model_in_use:"Impossible de mettre \xE0 jour le mod\xE8le pour les champs qui sont d\xE9j\xE0 utilis\xE9s.",type_in_use:"Impossible de mettre \xE0 jour le type des champs d\xE9j\xE0 utilis\xE9s."},customization:{customization:"Personnalisation",updated_message:"Informations la soci\xE9t\xE9 mises \xE0 jour",save:"Enregistrer",insert_fields:"Ins\xE9rer des champs",learn_custom_format:"Apprenez \xE0 utiliser le format personnalis\xE9",add_new_component:"Ajouter un composant",component:"Composant",Parameter:"Param\xE8tre",series:"Texte",series_description:"Un texte statique qui peut faire jusqu'\xE0 quatre caract\xE8res.",series_param_label:"Texte",delimiter:"S\xE9parateur",delimiter_description:"Un caract\xE8re servant \xE0 s\xE9parer deux composants. Par exemple, un trait d'union",delimiter_param_label:"Caract\xE8re",date_format:"Date",date_format_description:`Une date qui peut format\xE9e. Par exemple, "Y" affichera l'ann\xE9e en cours.`,date_format_param_label:"Format",sequence:"Suite",sequence_description:"G\xE9n\xE8re un num\xE9ro de facture unique. Vous pouvez indiquer le nombre de chiffres \xE0 utiliser.",sequence_param_label:"Longueur",customer_series:"Code client",customer_series_description:"Un code unique \xE0 chaque client, qui peut \xEAtre indiqu\xE9 dans les param\xE8tres du client.",customer_sequence:"Num\xE9ro client",customer_sequence_description:"Un num\xE9ro de client unique.",customer_sequence_param_label:"Longueur",random_sequence:"Suite al\xE9atoire",random_sequence_description:`Suite alphanum\xE9rique al\xE9atoire. Vous pouvez sp\xE9cifier le nombre de caract\xE8re.`,random_sequence_param_label:"Longueur",invoices:{title:"Factures",invoice_number_format:"Format de num\xE9ro",invoice_number_format_description:"Personnalisez la structure de vos num\xE9ros de facture.",preview_invoice_number:"Aper\xE7u",due_date:"Date d'\xE9ch\xE9ance",due_date_description:"Indiquez si la date d'\xE9ch\xE9ance doit \xEAtre automatiquement d\xE9finie lorsque vous cr\xE9ez une facture.",due_date_days:"Nombre de jours avant l'\xE9ch\xE9ance de la facture",set_due_date_automatically:"Remplir automatiquement la date d'\xE9ch\xE9ance",set_due_date_automatically_description:"Activez cette option si vous souhaitez d\xE9finir automatiquement la date d'\xE9ch\xE9ance lors de la cr\xE9ation d'une facture.",default_formats:"Mod\xE8les",default_formats_description:"Modifiez ci-dessous les formats d'adresse ou l'email utilis\xE9 lors de la cr\xE9ation d'une facture.",default_invoice_email_body:"Mod\xE8le d'email",company_address_format:"Adresse de la soci\xE9t\xE9",shipping_address_format:"Adresse d'exp\xE9dition",billing_address_format:"Adresse de facturation",invoice_email_attachment:"Envoyer les factures en pi\xE8ces jointes",invoice_email_attachment_setting_description:`Activez cette option si vous souhaitez envoyer les factures en pi\xE8ces jointes. Le bouton "Afficher la facture" n'appara\xEEtra plus dans l'email.`,invoice_settings_updated:"Param\xE8tres de facturation mis \xE0 jour",retrospective_edits:"\xC9dition \xE0 post\xE9riori",allow:"Autoriser",disable_on_invoice_partial_paid:"D\xE9sactiver apr\xE8s l'enregistrement d'un paiement partiel",disable_on_invoice_paid:"D\xE9sactiver apr\xE8s l'enregistrement du paiement int\xE9gral",disable_on_invoice_sent:"D\xE9sactiver apr\xE8s l'envoi de la facture",retrospective_edits_description:"Vous pouvez emp\xEAcher la modification de factures lorsque un paiement est effectu\xE9, pour \xEAtre en conformit\xE9 avec la loi de certains pays."},estimates:{title:"Devis",estimate_number_format:"Format de num\xE9ro",estimate_number_format_description:"Personnalisez la structure de vos num\xE9ros de devis.",preview_estimate_number:"Aper\xE7u",expiry_date:"Date d'expiration",expiry_date_description:"Indiquez si la date d'\xE9ch\xE9ance doit \xEAtre automatiquement d\xE9finie lorsque vous cr\xE9ez un devis.",expiry_date_days:"Le devis expire apr\xE8s les jours",set_expiry_date_automatically:"D\xE9finir automatiquement la date d'expiration",set_expiry_date_automatically_description:"Activez cette option si vous souhaitez d\xE9finir automatiquement la date d'\xE9ch\xE9ance lors de la cr\xE9ation d'un devis.",default_formats:"Formats par d\xE9faut",default_formats_description:"Modifiez ci-dessous les formats d'adresse ou l'email utilis\xE9 lors de la cr\xE9ation d'un devis.",default_estimate_email_body:"Mod\xE8le d'email",company_address_format:"Adresse de la soci\xE9t\xE9",shipping_address_format:"Adresse d'exp\xE9dition",billing_address_format:"Adresse de facturation",estimate_email_attachment:"Envoyer les devis en pi\xE8ces jointes",estimate_email_attachment_setting_description:`Activez cette option si vous souhaitez envoyer les devis en pi\xE8ces jointes. Le bouton "Afficher le devis" n'appara\xEEtra plus dans l'email.`,estimate_settings_updated:"Param\xE8tres de devis mis \xE0 jour",convert_estimate_options:"Conversion du devis",convert_estimate_description:"Indiquez quoi faire du devis apr\xE8s sa conversion en facture.",no_action:"Ne rien faire",delete_estimate:"Supprimer le devis",mark_estimate_as_accepted:"Marquer le devis comme accept\xE9"},payments:{title:"Paiements",payment_number_format:"Format de num\xE9ro",payment_number_format_description:"Personnalisez la structure de vos num\xE9ros de re\xE7u de paiement.",preview_payment_number:"Aper\xE7u",default_formats:"Formats par d\xE9faut",default_formats_description:"Modifiez ci-dessous les formats d'adresse ou l'email utilis\xE9 lors de la cr\xE9ation d'un re\xE7u de paiement.",default_payment_email_body:"Mod\xE8le d'email",company_address_format:"Adresse de la soci\xE9t\xE9",from_customer_address_format:"Adresse de facturation",payment_email_attachment:"Envoyer les re\xE7us de paiement en pi\xE8ces jointes",payment_email_attachment_setting_description:`Activez cette option si vous souhaitez envoyer les devis en pi\xE8ces jointes. Le bouton "Afficher le re\xE7u de paiement" n'appara\xEEtra plus dans l'email.`,payment_settings_updated:"Param\xE8tres mis \xE0 jour"},items:{title:"Articles",units:"Unit\xE9s",add_item_unit:"Ajouter une unit\xE9",edit_item_unit:"Modifier cette unit\xE9",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"},notes:{title:"Notes de bas de page",description:"Cr\xE9ez des notes de bas de page r\xE9utilisable sur vos factures, devis et paiements.",notes:"Note de bas de page",type:"Type\xA0",add_note:"Nouvelle note de bas de page",add_new_note:"Ajouter une note de bas de page",name:"Nom",edit_note:"Modifier cette note de bas de page",note_added:"Note de bas de page ajout\xE9e",note_updated:"Note de bas de page mise \xE0 jour",note_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette note de bas de page",already_in_use:"La note de bas de page est d\xE9j\xE0 utilis\xE9e",deleted_message:"Note de bas de page supprim\xE9e"}},account_settings:{profile_picture:"Image de profil",name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe",account_settings:"Profil",save:"Enregistrer",section_description:"Mettez \xE0 jour ici vos param\xE8tres de compte, tels que votre nom, votre email ou votre mot de passe.",updated_message:"Profil mis \xE0 jour"},user_profile:{name:"Nom",email:"Email",password:"Mot de passe",confirm_password:"Confirmez le mot de passe"},notification:{title:"Notifications",email:"Envoyer des notifications \xE0",description:"D\xE9finissez ici les notifications que vous souhaitez recevoir par email.",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:"Enregistrer",email_save_message:"Email enregistr\xE9",please_enter_email:"Veuillez entrer un email"},roles:{title:"R\xF4les",description:"G\xE9rer les r\xF4les & autorisations de cette soci\xE9t\xE9",save:"Enregistrer",add_new_role:"Ajouter un r\xF4le",role_name:"Nom",added_on:"Ajout\xE9 le",add_role:"Ajouter un r\xF4le",edit_role:"Modifier ce r\xF4le",name:"Nom",permission:"Autorisation | Autorisations",select_all:"Tout s\xE9lectionner",none:"Aucun",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce r\xF4le",created_message:"R\xF4le cr\xE9\xE9",updated_message:"R\xF4le mis \xE0 jour",deleted_message:"R\xF4le supprim\xE9",already_in_use:"Le r\xF4le est d\xE9j\xE0 utilis\xE9"},exchange_rate:{exchange_rate:"Taux de change",title:"R\xE9soudre les probl\xE8mes de taux de change",description:"Veuillez entrez le taux de change pour toutes les devises mentionn\xE9es ci-dessous pour calculer les totaux en {currency}.",drivers:"Fournisseurs",new_driver:"Ajouter un fournisseur",edit_driver:"Modifier ce fournisseur",select_driver:"S\xE9lectionner un fournisseur",update:"s\xE9lectionner le taux de change ",providers_description:"Configurez vos fournisseurs de taux de change ici pour r\xE9cup\xE9rer automatiquement le dernier taux de change sur les transactions.",key:"Cl\xE9 d'API",name:"Nom",driver:"Fournisseur",is_default:"PAR D\xC9FAUT",currency:"Devises",exchange_rate_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce fournisseur",created_message:"Fournisseur cr\xE9\xE9",updated_message:"Fournisseur mis \xE0 jour",deleted_message:"Fournisseur supprim\xE9",error:"Vous ne pouvez pas supprimer le fournisseur actif",default_currency_error:"Cette devise est d\xE9j\xE0 affect\xE9e \xE0 un fournisseur",exchange_help_text:"Veuillez entrer le taux de change pour convertir {currency} en {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"Currency Converter",server:"Serveur",url:"URL",active:"Actif",currency_help_text:"Ce fournisseur ne sera utilis\xE9 que pour les devises s\xE9lectionn\xE9es ci-dessus",currency_in_used:"Les devises suivantes sont d\xE9j\xE0 affect\xE9es \xE0 un autre fournisseur. Veuillez d\xE9s\xE9lectionner ces devises pour r\xE9activer ce fournisseur."},tax_types:{title:"Taxes",add_tax:"Ajouter une taxe",edit_tax:"Modifier cette taxe",description:"Ajoutez ou supprimez ici des taxes, et choisissez si elles s'appliquent individuellement aux articles ou au montant total.",add_new_tax:"Nouvelle taxe",tax_settings:"Param\xE8tres de taxe",tax_per_item:"Taxe par article",tax_name:"Nom",compound_tax:"Taxe empil\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:"Taxe cr\xE9\xE9e",updated_message:"Taxe mise \xE0 jour",deleted_message:"Taxe supprim\xE9e",confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce type de taxe",already_in_use:"La taxe est d\xE9j\xE0 utilis\xE9e"},payment_modes:{title:"Moyens de paiement",description:"Indiquez les diff\xE9rents moyen de paiement que vous utilisez",add_payment_mode:"Ajouter un mode de paiement",edit_payment_mode:"Modifier le mode de paiement",mode_name:"Nom",payment_mode_added:"Mode de paiement ajout\xE9",payment_mode_updated:"Mode de paiement mis \xE0 jour",payment_mode_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer ce mode de paiement",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Mode de paiement supprim\xE9"},expense_category:{title:"Cat\xE9gories de d\xE9pense",action:"action",description:"Ajoutez ou supprimez ici des cat\xE9gories de d\xE9pense.",add_new_category:"Ajouter une cat\xE9gorie",add_category:"Nouvelle cat\xE9gorie",edit_category:"Modifier cette cat\xE9gorie",category_name:"Nom",category_description:"Description",created_message:"Cat\xE9gorie de d\xE9penses cr\xE9\xE9e",deleted_message:"Cat\xE9gorie de d\xE9penses supprim\xE9e",updated_message:"Cat\xE9gorie de d\xE9penses mise \xE0 jour",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 d\xE9tailler les remises par article. Par d\xE9faut, les remises sont ajout\xE9es au sous-total.",expire_public_links:"Expiration automatique des liens publics",expire_setting_description:"Sp\xE9cifiez si vous souhaitez faire expirer tous les liens publiques envoy\xE9s par l'application pour consulter les factures, devis, paiements,... apr\xE8s une dur\xE9e sp\xE9cifique.",save:"Enregistrer",preference:"Pr\xE9f\xE9rence | Pr\xE9f\xE9rences",general_settings:"Modifiez ici les param\xE8tres globaux de Crater.",updated_message:"Pr\xE9f\xE9rences mises \xE0 jour",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:"Exercice fiscal",recurring_invoice_status:"Statut de la facture r\xE9currente",create_status:"Cr\xE9er un statut",active:"Actif",on_hold:"En attente",update_status:"Mettre \xE0 jour le statut",completed:"Termin\xE9",company_currency_unchangeable:"La devise de la soci\xE9t\xE9 ne peut pas \xEAtre modifi\xE9e"},update_app:{title:"Mise \xE0 jour",description:"Mettez simplement Crater \xE0 jour en cliquant sur le bouton ci-dessous.",check_update:"Rechercher des 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:"L'application a \xE9t\xE9 mise \xE0 jour. Veuillez patienter pendant le rechargement de la fen\xEAtre de votre navigateur.",latest_message:"Bravo, vous \xEAtes \xE0 jour.",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",deleting_files:"Supprimer les fichiers inutilis\xE9s",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",update_warning:"Cet utilitaire va \xE9craser tous les fichiers et templates de l'application. Veuillez faire une sauvegarde de vos templates et de la base de donn\xE9e avant de faire la mise \xE0 jour."},backup:{title:"Sauvegarde | Sauvegardes",description:"G\xE9rez ici vos sauvegardes. Crater cr\xE9\xE9e un fichiez ZIP contenant vos fichiers et un export de la base de donn\xE9es.",new_backup:"Faire une sauvegarde",create_backup:"Cr\xE9er une sauvegarde",select_backup_type:"Type de sauvegarde",backup_confirm_delete:"Vous ne pourrez pas r\xE9cup\xE9rer cette sauvegarde",path:"chemin",new_disk:"Nouveau 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:"Emplacement",action:"Action",deleted_message:"Sauvegarde supprim\xE9e",created_message:"Sauvegarde cr\xE9\xE9e",invalid_disk_credentials:"Informations d'identification invalides de l'espace de stockage"},disk:{title:"Stockage | Stockages",description:"Crater utilise par d\xE9faut votre disque local pour stocker les sauvegardes, les avatar et d'autres fichiers image. Vous pouvez configurer d'autres comptes de stockage, comme DigitalOcean, S3 et Dropbox.",created_at:"cr\xE9\xE9 \xE0",dropbox:"dropbox",name:"Nom",driver:"Compte de stockage",disk_type:"Type\xA0",disk_name:"Nom",new_disk:"Ajouter un espace de stockage",filesystem_driver:"Fournisseur",local_driver:"stockage local",local_root:"r\xE9pertoire local",public_driver:"Stockage public",public_root:"R\xE9pertoire public",public_url:"URL publique",public_visibility:"Visibilit\xE9 publique",media_driver:"Stockage multim\xE9dia",media_root:"R\xE9pertoire m\xE9dia",aws_driver:"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",set_default_disk_confirm:"Cet espace sera utilis\xE9 par d\xE9faut pour l'enregistrement des PDF",success_set_default_disk:"Stockage par d\xE9faut mis \xE0 jour",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:"Emplacement",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 cet espace de stockage",success_create:"Stockage ajout\xE9",success_update:"Stockage mis \xE0 jour",error:"L'ajout de disque a \xE9chou\xE9",deleted_message:"Stockage supprim\xE9",disk_variables_save_successfully:"Stockage configur\xE9",disk_variables_save_error:"La configuration du stockage a \xE9chou\xE9.",invalid_disk_credentials:"Informations d'identification non valides du stockage s\xE9lectionn\xE9"},taxations:{add_billing_address:"Entrez l'adresse de facturation",add_shipping_address:"Entrez l'adresse de livraison",add_company_address:"Entrez l'adresse de la soci\xE9t\xE9",modal_description:"Les informations ci-dessous sont requises afin de r\xE9cup\xE9rer les taxes de vente.",add_address:"Ajoutez une adresse pour r\xE9cup\xE9rer les taxes de vente.",address_placeholder:"Exemple: 123, My Street",city_placeholder:"Exemple: Los Angeles",state_placeholder:"Exemple: CA",zip_placeholder:"Exemple: 90024",invalid_address:"Veuillez fournir une adresse valide."}},Cs={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:"Coordonn\xE9es de 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",company_logo:"Logo",logo_preview:"Aper\xE7u",preferences:"Pr\xE9f\xE9rences",preferences_desc:"Pr\xE9f\xE9rences par d\xE9faut du syst\xE8me.",currency_set_alert:"La devise ne pourra pas \xEAtre chang\xE9.",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."},verify_domain:{title:"V\xE9rification du domaine",desc:"Crater utilise l'authentification bas\xE9e sur la session qui n\xE9cessite une v\xE9rification du domaine pour des raisons de s\xE9curit\xE9. Veuillez saisir le domaine sur lequel vous allez acc\xE9der \xE0 votre application web.",app_domain:"Domaine de l'application",verify_now:"V\xE9rifier maintenant",success:"V\xE9rification du domaine r\xE9ussie.",failed:"La v\xE9rification du domaine a \xE9chou\xE9. Veuillez entrer un nom de domaine valide.",verify_and_continue:"V\xE9rifier et continuer"},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:"Envoi d'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",database_variables_save_successfully:"Base de donn\xE9es configur\xE9e."}},Ns={invalid_phone:"Num\xE9ro de t\xE9l\xE9phone invalide",invalid_url:"URL invalide (ex: http://www.crater.com)",invalid_domain_url:"URL invalide (ex: crater.com)",required:"Champ requis",email_incorrect:"Adresse Email incorrecte.",email_already_taken:"Un compte est d\xE9j\xE0 associ\xE9 \xE0 cette adresse email.",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 au moins {count} caract\xE8res",name_min_length:"Le nom doit comporter au moins {count} lettres.",prefix_min_length:"Le pr\xE9fixe doit faire 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.",discount_maxlength:"La remise ne doit pas \xEAtre sup\xE9rieure \xE0 la remise maximale",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 de bas de page 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",number_length_minvalue:"Ce nombre doit \xEAtre sup\xE9rieur \xE0 0",at_least_one_ability:"Veuillez s\xE9lectionner au moins une autorisation.",valid_driver_key:"Veuillez saisir une cl\xE9 {driver} valide.",valid_exchange_rate:"Veuillez saisir un taux de change valide.",company_name_not_same:"Le nom de la soci\xE9t\xE9 doit correspondre au nom fourni."},Es={starter_plan:"Cette fonctionnalit\xE9 est disponible \xE0 partir du plan Starter.",invalid_provider_key:"Veuillez entrer une cl\xE9 d'API valide du fournisseur.",estimate_number_used:"Ce num\xE9ro de devis est d\xE9j\xE0 utilis\xE9.",invoice_number_used:"Ce num\xE9ro de facture est d\xE9j\xE0 utilis\xE9.",payment_attached:"Cette facture est li\xE9e \xE0 un re\xE7u de paiement. Veuillez d'abord le supprimer avant de poursuivre.",payment_number_used:"Ce num\xE9ro de paiement est d\xE9j\xE0 utilis\xE9.",name_already_taken:"Ce nom est d\xE9j\xE0 pris.",receipt_does_not_exist:"Le re\xE7u n'existe pas.",customer_cannot_be_changed_after_payment_is_added:"Le client ne peut pas \xEAtre modifi\xE9 apr\xE8s l'ajout du paiement",invalid_credentials:"Identifiants invalides.",not_allowed:"Non autoris\xE9",login_invalid_credentials:"Ces identifiants ne correspondent pas \xE0 nos enregistrements.",enter_valid_cron_format:"Veuillez entrer une t\xE2che Cron valide",email_could_not_be_sent:"L'Email n'a pas pu \xEAtre envoy\xE9 vers cette adresse email.",invalid_address:"Veuillez sp\xE9cifier une adresse valide.",invalid_key:"Veuillez sp\xE9cifier une cl\xE9 valide.",invalid_state:"Veuillez sp\xE9cifier un \xE9tat valide.",invalid_city:"Veuillez sp\xE9cifier une ville valide.",invalid_postal_code:"Veuillez sp\xE9cifier un code postal valide.",invalid_format:"Veuillez sp\xE9cifier un format de requ\xEAte valide.",api_error:"Le serveur ne r\xE9pond plus.",feature_not_enabled:"Fonctionnalit\xE9 inactive.",request_limit_met:"Limite de requ\xEAtes API d\xE9pass\xE9e.",address_incomplete:"Adresse incompl\xE8te"},Is="Devis",Ts="N\xB0",Rs="Date",Ms="Date d'expiration",Fs="Facture",$s="Num\xE9ro",Us="Date",Vs="Date d\u2019\xE9ch\xE9ance",Os="Notes de bas de page",Ls="Articles",qs="Quantit\xE9",Bs="Prix",Ks="Remise",Zs="Montant",Ws="Sous-total",Hs="Total TTC",Ys="Paiement",Gs="Re\xE7u de paiement",Js="Date de paiement",Qs="Num\xE9ro",Xs="Moyen de paiement",er="Montant re\xE7u",tr="RAPPORT DE D\xC9PENSES",ar="TOTAL DES D\xC9PENSES",nr="RECETTES ET D\xC9PENSES",ir="Rapport de vente client",or="Rapport de vente par articles",sr="Rapport de r\xE9sum\xE9 fiscal",rr="REVENU",dr="R\xC9SULTAT",lr="Rapport de ventes : par client",cr="TOTAL DES VENTES",_r="Rapport des ventes : par article",ur="TAXES",mr="TOTAL",pr="Taxe",fr="D\xE9penses",gr="Facturer \xE0",vr="Exp\xE9dier \xE0",yr="Re\xE7u de :",hr="Taxe";var br={navigation:_s,general:us,dashboard:ms,tax_types:ps,global_search:fs,company_switcher:gs,dateRange:vs,customers:ys,items:hs,estimates:bs,invoices:ks,recurring_invoices:ws,payments:zs,expenses:xs,login:Ps,modules:Ss,users:js,reports:As,settings:Ds,wizard:Cs,validation:Ns,errors:Es,pdf_estimate_label:Is,pdf_estimate_number:Ts,pdf_estimate_date:Rs,pdf_estimate_expire_date:Ms,pdf_invoice_label:Fs,pdf_invoice_number:$s,pdf_invoice_date:Us,pdf_invoice_due_date:Vs,pdf_notes:Os,pdf_items_label:Ls,pdf_quantity_label:qs,pdf_price_label:Bs,pdf_discount_label:Ks,pdf_amount_label:Zs,pdf_subtotal:Ws,pdf_total:Hs,pdf_payment_label:Ys,pdf_payment_receipt_label:Gs,pdf_payment_date:Js,pdf_payment_number:Qs,pdf_payment_mode:Xs,pdf_payment_amount_received_label:er,pdf_expense_report_label:tr,pdf_total_expenses_label:ar,pdf_profit_loss_label:nr,pdf_sales_customers_label:ir,pdf_sales_items_label:or,pdf_tax_summery_label:sr,pdf_income_label:rr,pdf_net_profit_label:dr,pdf_customer_sales_report:lr,pdf_total_sales_label:cr,pdf_item_sales_label:_r,pdf_tax_report_label:ur,pdf_total_tax_label:mr,pdf_tax_types_label:pr,pdf_expenses_label:fr,pdf_bill_to:gr,pdf_ship_to:vr,pdf_received_from:yr,pdf_tax_label:hr};const kr={dashboard:"Tablero",customers:"Clientes",items:"Art\xEDculos",invoices:"Facturas","recurring-invoices":"Facturas recurrentes",expenses:"Gastos",estimates:"Presupuestos",payments:"Pagos",reports:"Informes",settings:"Ajustes",logout:"Cerrar sesi\xF3n",users:"Usuarios",modules:"Modules"},wr={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",ok:"De acuerdo",yes:"S\xED",no:"No",sort_by:"Ordenar por",ascending:"Ascendente",descending:"Descendente",subject:"Asunto",body:"Cuerpo",message:"Mensaje",send:"Enviar",preview:"Previsualizar",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:"VALOR TOTAL",bill_to:"Cobrar a",ship_to:"Enviar a",due:"Debido",draft:"Borrador",sent:"Enviado",all:"Todas",select_all:"Seleccionar todo",select_template:"Seleccionar plantilla",choose_file:"Haga clic aqu\xED para elegir un archivo",choose_template:"Elige una plantilla",choose:"Escoger",remove:"Eliminar",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",copied_pdf_url_clipboard:"Copiar Url al portapapeles",copied_url_clipboard:"Copied url to clipboard!",docs:"Documentaci\xF3n",do_you_wish_to_continue:"\xBFDeseas continuar?",note:"Nota",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},zr={select_year:"Seleccionar a\xF1o",cards:{due_amount:"Importe pendiente",customers:"Clientes",invoices:"Facturas",estimates:"Presupuestos",payments:"Payments"},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:"Importe pendiente",actions:"Acciones",view_all:"Ver todo"},recent_estimate_card:{title:"Presupuestos recientes",date:"Fecha",customer:"Cliente",amount_due:"Importe pendiente",actions:"Acciones",view_all:"Ver todo"}},xr={name:"Nombre",description:"Descripci\xF3n",percent:"Por ciento",compound_tax:"Impuesto compuesto"},Pr={search:"Buscar...",customers:"Clientes",users:"Usuarios",no_results_found:"No se encontraron resultados"},Sr={label:"CAMBIAR EMPRESA",no_results_found:"No se encontraron resultados",add_new_company:"A\xF1adir nueva empresa",new_company:"Nueva empresa",created_message:"Empresa creada satisfactoriamente"},jr={today:"Hoy",this_week:"Esta semana",this_month:"Este mes",this_quarter:"Este trimestre",this_year:"A\xF1o actual",previous_week:"Semana pasada",previous_month:"Mes pasado",previous_quarter:"Trimestre pasado",previous_year:"A\xF1o pasado",custom:"Personalizado"},Ar={title:"Clientes",prefix:"Prefijo",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:"Importe pendiente",email:"Correo electr\xF3nico",address:"Direcci\xF3n",phone:"Tel\xE9fono",website:"Sitio web",overview:"Descripci\xF3n general",invoice_prefix:"Prefijo de la factura",estimate_prefix:"Prefijo de los presupuestos",payment_prefix:"Prefijo de pago",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",confirm_password:"Confirmar 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",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:"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 hay contactos",no_contact_name:"No hay nombres de contactos",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",address_updated_message:"Address Information Updated succesfully",deleted_message:"Cliente eliminado correctamente | Clientes eliminados exitosamente",edit_currency_not_allowed:"No se puede cambiar la divisa una vez creadas las transacciones."},Dr={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:"Ning\xFAn elemento seleccionado",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"},Cr={title:"Presupuestos",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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:"IMPORTE PENDIENTE",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:"Rechazado",expired:"Expired",sent:"Enviado",draft:"Borrador",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},Nr={title:"Facturas",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Lista de facturas",invoice_information:"Invoice Information",days:"{d\xEDas} D\xEDas",months:"{meses} Mes",years:"{a\xF1os} A\xF1o",all:"Todas",paid:"Pagada",unpaid:"No pagado",viewed:"Visto",overdue:"Vencido",completed:"Completado",customer:"CLIENTE",paid_status:"ESTADO PAGADO",ref_no:"N\xDAMERO DE REFERENCIA.",number:"N\xDAMERO",amount_due:"IMPORTE PENDIENTE",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",conversion_message:"Factura clonada correctamente",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_mark_as_accepted:"Esta factura se marcar\xE1 como aceptada",confirm_mark_as_rejected:"Esta factura se marcar\xE1 como rechazada",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!",mark_as_rejected:"Marcar como rechazado",mark_as_accepted:"Marcar como aceptado",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 satisfactoriamente",cloned_successfully:"Factura clonada correctamente",clone_invoice:"Clonar factura",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)"},payment_attached_message:"Una de las facturas seleccionadas ya tiene un pago adjunto. Aseg\xFArese de eliminar primero los pagos adjuntos para continuar con la eliminaci\xF3n",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 introducido es mayor que el importe total pendiente de esta factura. Por favor, verificalo y vuelve a intentarlo.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},Er={title:"Facturas recurrentes",invoices_list:"Lista de facturas recurrentes",days:"{days} D\xEDas",months:"{months} Mes/es",years:"{years} A\xF1o/s",all:"Todas",paid:"Pagada",unpaid:"No pagada",viewed:"Vista",overdue:"Vencido",active:"Activo",completed:"Completado",customer:"CLIENTE",paid_status:"ESTADO DE PAGO",ref_no:"N\xDAM. DE REFERENCIA.",number:"N\xDAMERO",amount_due:"IMPORTE PENDIENTE",partially_paid:"Parcialmente pagada",total:"Total",discount:"Descuento",sub_total:"Subtotal",invoice:"Factura recurrente | Facturas recurrentes",invoice_number:"N\xFAmero de factura recurrente",next_invoice_date:"Fecha de la pr\xF3xima factura",ref_number:"N\xFAmero de referencia",contact:"Contacto",add_item:"A\xF1adir un elemento",date:"Fecha",limit_by:"Limitar por",limit_date:"Fecha l\xEDmite",limit_count:"N\xFAmero de L\xEDmites",count:"Recuento",status:"Estado",select_a_status:"Selecciona un estado",working:"Trabajando",on_hold:"En espera",complete:"Completado",add_tax:"Agregar impuesto",amount:"Cantidad",action:"Acci\xF3n",notes:"Notas",view:"Ver",basic_info:"Informaci\xF3n b\xE1sica",send_invoice:"Enviar factura recurrente",auto_send:"Autoenviar",resend_invoice:"Reenviar factura recurrente",invoice_template:"Plantilla de la factura recurrente",conversion_message:"Factura recurrente clonada con \xE9xito",template:"Plantilla",mark_as_sent:"Marcar como enviada",confirm_send_invoice:"Esta factura recurrente se enviar\xE1 por correo electr\xF3nico al cliente",invoice_mark_as_sent:"Esta factura recurrente se marcar\xE1 como enviada",confirm_send:"Esta factura recurrente se enviar\xE1 por correo electr\xF3nico al cliente",starts_at:"Fecha de inicio",due_date:"Fecha l\xEDmite de la factura",record_payment:"Registrar pago",add_new_invoice:"A\xF1adir nueva factura recurrente",update_expense:"Actualizar gasto",edit_invoice:"Editar factura recurrente",new_invoice:"Nueva factura recurrente",send_automatically:"Enviar autom\xE1ticamente",send_automatically_desc:"Habilite esto, si desea enviar la factura autom\xE1ticamente al cliente cuando se haya creado.",save_invoice:"Guardar factura recurrente",update_invoice:"Actualizar factura recurrente",add_new_tax:"Agregar nuevo impuesto",no_invoices:"\xA1A\xFAn no hay facturas recurrentes!",mark_as_rejected:"Marcar como rechazado",mark_as_accepted:"Marcar como aceptado",list_of_invoices:"Esta secci\xF3n contiene la lista de facturas recurrentes.",select_invoice:"Seleccionar factura",no_matching_invoices:"\xA1No hay facturas recurrentes que coincidan!",mark_as_sent_successfully:"Factura recurrente marcada como enviada correctamente",invoice_sent_successfully:"Factura recurrente enviada correctamente",cloned_successfully:"Factura recurrente clonada con \xE9xito",clone_invoice:"Clonar factura recurrente",confirm_clone:"Esta factura recurrente ser\xE1 clonada en una nueva factura recurrente",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:"Escribe o haz clic para seleccionar un elemento",type_item_description:"Descripci\xF3n del tipo de elemento(opcional)"},frequency:{title:"Frecuencia",select_frequency:"Seleccionar frecuencia",minute:"Minuto",hour:"Hora",day_month:"D\xEDa del mes",month:"Mes",day_week:"D\xEDa de la semana"},confirm_delete:"No podr\xE1 recuperar esta factura | No podr\xE1s recuperar estas facturas",created_message:"Factura recurrente creada con \xE9xito",updated_message:"Factura recurrente actualizada correctamente",deleted_message:"Factura recurrente eliminada correctamente | Facturas recurrentes eliminadas correctamente",marked_as_sent_message:"Factura recurrente marcada como enviada con \xE9xito",user_email_does_not_exist:"El email del usuario no existe",something_went_wrong:"algo ha ido mal",invalid_due_amount_message:"La cantidad total de la factura recurrente no puede ser menor a la cantidad total pagada. Por favor, actualiza la factura o elimina los pagos asociados para continuar."},Ir={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:"No seleccionado",no_invoice:"Sin facturas",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."},Tr={title:"Gastos",expenses_list:"Lista de gastos",select_a_customer:"Selecciona un cliente",expense_title:"T\xEDtulo",customer:"Cliente",currency:"Divisa",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:"Sin seleccionar",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"}},Rr={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"},Mr={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"},Fr={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",select_company_role:"Seleccionar rol para {company}",companies:"Empresas"},$r={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"}},Ur={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:"Formas de pago",notes:"Notas",exchange_rate:"Tasa de cambio",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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",delete:"Eliminar",updated_message:"Informaci\xF3n de la empresa actualizada con \xE9xito",delete_company:"Eliminar empresa",delete_company_description:"Una vez que elimines tu empresa, perder\xE1s todos los datos y archivos asociados a ella permanentemente.",are_you_absolutely_sure:"\xBFEst\xE1s realmente seguro?",delete_company_modal_desc:"Est acci\xF3n no se puede deshacer. Se eliminar\xE1 de manera permanente {company} y todos sus datos asociados.",delete_company_modal_label:"Por favor escribe {company} para confirmar"},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",slug:"Slug",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",press_enter_to_add:"Presiona Enter para a\xF1adir una nueva opci\xF3n",model_in_use:"No se puede actualizar el modelo para los campos que ya est\xE1n en uso.",type_in_use:"No se puede actualizar el tipo de los campos que ya est\xE1n en uso."},customization:{customization:"Personalizaci\xF3n",updated_message:"Informaci\xF3n de la empresa actualizada con \xE9xito",save:"Guardar",insert_fields:"Insertar campos",learn_custom_format:"Aprende a utilizar el formato personalizado",add_new_component:"A\xF1adir nuevo componente",component:"Componente",Parameter:"Par\xE1metro",series:"Series",series_description:"Para establecer un prefijo/sufijo fijo como por ejemplo 'INV' para las facturas de tu empresa. El n\xFAmero m\xE1ximo de caracteres permitidos es 4.",series_param_label:"Valor de series",delimiter:"Delimitador",delimiter_description:"Car\xE1cter \xFAnico para especificar el l\xEDmite entre 2 componentes separados. Por defecto est\xE1 configurado en -",delimiter_param_label:"Valor delimitador",date_format:"Formato de fecha",date_format_description:"Un campo de fecha y hora local que acepta un par\xE1metro de formato. El formato predeterminado: 'Y' representa el a\xF1o actual.",date_format_param_label:"Formato",sequence:"Secuencia",sequence_description:"Secuencia consecutiva de n\xFAmeros en su empresa. Puede especificar la longitud en el par\xE1metro dado.",sequence_param_label:"Longitud de la secuencia",customer_series:"Series de clientes",customer_series_description:"Establecer un prefijo/postfijo diferente para cada cliente.",customer_sequence:"Secuencia de cliente",customer_sequence_description:"Secuencia consecutiva de n\xFAmeros para cada uno de sus clientes.",customer_sequence_param_label:"Longitud de la secuencia",random_sequence:"Secuencia aleatoria",random_sequence_description:"Cadena alfanum\xE9rica aleatoria. Puedes especificar la longitud en el par\xE1metro dado.",random_sequence_param_label:"Longitud de la secuencia",invoices:{title:"Facturas",invoice_number_format:"Formato de n\xFAmero de factura",invoice_number_format_description:"Personalice c\xF3mo se genera autom\xE1ticamente su n\xFAmero de factura cuando crea una nueva factura.",preview_invoice_number:"Previsualizar n\xFAmero de factura",due_date:"Fecha de vencimiento",due_date_description:"Especifique c\xF3mo se establece autom\xE1ticamente la fecha de vencimiento cuando crea una factura.",due_date_days:"Factura vence despu\xE9s de d\xEDas",set_due_date_automatically:"Establecer fecha de vencimiento autom\xE1ticamente",set_due_date_automatically_description:"Habilite esto si desea establecer la fecha de vencimiento autom\xE1ticamente cuando crea una nueva factura.",default_formats:"Formatos por defecto",default_formats_description:"Los formatos dados a continuaci\xF3n se utilizan para completar los campos autom\xE1ticamente en la creaci\xF3n de la factura.",default_invoice_email_body:"Cuerpo predeterminado del correo electr\xF3nico de la factura",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_email_attachment:"Enviar cotizaci\xF3n como adjunto",invoice_email_attachment_setting_description:"Activa esto si quieres enviar facturas como archivo adjunto de correo electr\xF3nico. Tenga en cuenta que el bot\xF3n 'Ver factura' en los correos electr\xF3nicos ya no se mostrar\xE1 cuando est\xE9 habilitado.",invoice_settings_updated:"La configuraci\xF3n de facturas se ha actualizado correctamente",retrospective_edits:"Ediciones retrospectivas",allow:"Permitir",disable_on_invoice_partial_paid:"Desactivar despu\xE9s de que se registre un pago parcial",disable_on_invoice_paid:"Desactivar despu\xE9s de que se registre el pago completo",disable_on_invoice_sent:"Desactivar despu\xE9s de enviar la factura",retrospective_edits_description:" Seg\xFAn las leyes de su pa\xEDs o sus preferencias, puede restringir que los usuarios editen las facturas finalizadas."},estimates:{title:"Estimaciones",estimate_number_format:"Formato de n\xFAmero de estimaci\xF3n",estimate_number_format_description:"Personalice c\xF3mo se genera autom\xE1ticamente su n\xFAmero de presupuesto cuando crea un nuevo presupuesto.",preview_estimate_number:"Vista previa del n\xFAmero de presupuesto",expiry_date:"Fecha de vencimiento",expiry_date_description:"Especifique c\xF3mo se establece autom\xE1ticamente la fecha de caducidad cuando crea un presupuesto.",expiry_date_days:"Estimaci\xF3n Caduca despu\xE9s de d\xEDas",set_expiry_date_automatically:"Establecer fecha de expiraci\xF3n autom\xE1ticamente",set_expiry_date_automatically_description:"Habilite esto si desea establecer la fecha de vencimiento autom\xE1ticamente cuando crea un nuevo presupuesto.",default_formats:"Formatos por defecto",default_formats_description:"Los formatos dados a continuaci\xF3n se utilizan para completar los campos autom\xE1ticamente en la creaci\xF3n del presupuesto.",default_estimate_email_body:"Cuerpo predeterminado estimado del correo electr\xF3nico",company_address_format:"Formato de direcci\xF3n de la empresa",shipping_address_format:"Formato de direcci\xF3n de env\xEDo",billing_address_format:"Formato de la direcci\xF3n de facturaci\xF3n",estimate_email_attachment:"Enviar cotizaci\xF3n como adjunto",estimate_email_attachment_setting_description:"Activa esto si quieres enviar facturas como archivo adjunto de correo electr\xF3nico. Tenga en cuenta que el bot\xF3n 'Ver factura' en los correos electr\xF3nicos ya no se mostrar\xE1 cuando est\xE9 habilitado.",estimate_settings_updated:"Ajustes de presupuesto actualizados con \xE9xito",convert_estimate_options:"Acci\xF3n de conversi\xF3n de presupuesto",convert_estimate_description:"Especifique lo que sucede con el presupuesto una vez que se convierte en una factura.",no_action:"No hacer nada",delete_estimate:"Eliminar presupuesto",mark_estimate_as_accepted:"Marcar presupuesto como aceptado"},payments:{title:"Pagos",payment_number_format:"Formato del n\xFAmero de pago",payment_number_format_description:"Personalice c\xF3mo se genera autom\xE1ticamente su n\xFAmero de pago cuando crea un nuevo pago.",preview_payment_number:"Previsualizar n\xFAmero de pago",default_formats:"Formatos predeterminados",default_formats_description:"Los formatos dados a continuaci\xF3n se utilizan para completar los campos autom\xE1ticamente en la creaci\xF3n del pago.",default_payment_email_body:"Cuerpo predeterminado del correo electr\xF3nico del pago",company_address_format:"Formato de direcci\xF3n de la empresa",from_customer_address_format:"Desde el formato de direcci\xF3n del cliente",payment_email_attachment:"Enviar pagos como adjunto",payment_email_attachment_setting_description:"Activa esto si quieres enviar los pagos como archivo adjunto de correo electr\xF3nico. Tenga en cuenta que el bot\xF3n 'Ver pago' en los correos electr\xF3nicos ya no se mostrar\xE1 cuando est\xE9 habilitado.",payment_settings_updated:"Los m\xE9todos de pago se han actualizado correctamente"},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"},roles:{title:"Roles",description:"Configura los roles y permisos de esta empresa",save:"Guardar",add_new_role:"A\xF1adir nuevo rol",role_name:"Nombre del rol",added_on:"A\xF1adido el",add_role:"A\xF1adir rol",edit_role:"Editar rol",name:"Nombre",permission:"Permiso | Permisos",select_all:"Seleccionar todo",none:"Ninguno",confirm_delete:"No podr\xE1 recuperar este Rol",created_message:"Rol creado correctamente",updated_message:"Rol actualizado correctamente",deleted_message:"Rol eliminado correctamente",already_in_use:"El rol ya est\xE1 en uso"},exchange_rate:{exchange_rate:"Tasa de cambio",title:"Solucionar problemas de cambio de moneda",description:"Por favor, selecciona un tipo de cambio para todas las monedas mencionadas a continuaci\xF3n para ayudar a Crater a calcular correctamente las cantidades en {currency}.",drivers:"Controladores",new_driver:"A\xF1adir nuevo proveedor",edit_driver:"Editar proveedor",select_driver:"Seleccione un controlador",update:"selecciona un tipo de cambio ",providers_description:"Configure sus proveedores de tipos de cambio aqu\xED para obtener autom\xE1ticamente el tipo de cambio m\xE1s reciente en las transacciones.",key:"Clave API",name:"Nombre",driver:"Controlador",is_default:"Usar por defecto",currency:"Divisas",exchange_rate_confirm_delete:"No podr\xE1 recuperar este controlador",created_message:"Proveedor creado correctamente",updated_message:"Proveedor actualizado correctamente",deleted_message:"Proveedor eliminado correctamente",error:" No puede eliminar el controlador activo",default_currency_error:"Esta moneda ya se usa en uno de los proveedores activos",exchange_help_text:"Ingrese el tipo de cambio para convertir de {currency} a {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"Conversor de moneda",server:"Servidor",url:"URL",active:"Activo",currency_help_text:"Este proveedor solo se utilizar\xE1 en las monedas seleccionadas anteriormente",currency_in_used:"Las siguientes monedas ya est\xE1n activas en otro proveedor. Elimine estas monedas de la selecci\xF3n para volver a activar este proveedor."},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."},payment_modes:{title:"Formas de pago",description:"Modos de transacci\xF3n para pagos",add_payment_mode:"Agregar modo de pago",edit_payment_mode:"Editar modo de pago",mode_name:"Nombre del modo",payment_mode_added:"Forma de pago a\xF1adida",payment_mode_updated:"Forma de pago actualizada",payment_mode_confirm_delete:"No podr\xE1s recuperar este Modo de Pago",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"M\xE9todo de pago eliminado correctamente"},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.",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:"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",recurring_invoice_status:"Estado de la factura recurrente",create_status:"Crear estado",active:"Activo",on_hold:"En espera",update_status:"Actualizar estado",completed:"Completado",company_currency_unchangeable:"No se puede cambiar la divisa de la empresa"},update_app:{title:"Actualizar aplicaci\xF3n",description:"Puedes actualizar Crater f\xE1cilmente comprobando si existe una nueva actualizaci\xF3n haciendo clic en el bot\xF3n de abajo",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",deleting_files:"Eliminando archivos no usados",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",update_warning:"Todos los archivos y temas predeterminados se sobreescribir\xE1n cuando actualice la aplicaci\xF3n a trav\xE9s de esta utilidad. Por favor, cree una copia de seguridad de sus temas y base de datos antes de actualizar."},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:"Usar por defecto",set_default_disk:"Establecer disco predeterminado",set_default_disk_confirm:"Este disco se establecer\xE1 por defecto y todos los nuevos PDFs se guardar\xE1n en este disco",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"},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."}},Vr={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.",currency_set_alert:"La moneda de la empresa no se puede cambiar m\xE1s tarde.",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."},verify_domain:{title:"Verificaci\xF3n de dominio",desc:"Crater utiliza la autenticaci\xF3n basada en Sesi\xF3n que requiere verificaci\xF3n de dominio por motivos de seguridad. Por favor, introduzca el dominio en el que acceder\xE1 a su aplicaci\xF3n web.",app_domain:"Dominio de aplicaci\xF3n",verify_now:"Verificar ahora",success:"Dominio verificado correctamente.",failed:"La verificaci\xF3n del dominio fall\xF3. Ingrese un nombre de dominio v\xE1lido.",verify_and_continue:"Verificar y continuar"},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."}},Or={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.",prefix_min_length:"El prefijo 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 introducido es mayor que el importe pendiente 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",discount_maxlength:"El descuento no debe ser mayor que el descuento m\xE1ximo",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",number_length_minvalue:"La cantidad debe ser mayor que 0",at_least_one_ability:"Por favor, selecciona al menos un permiso.",valid_driver_key:"Por favor, introduza una clave {driver} v\xE1lida.",valid_exchange_rate:"Por favor, introduce una tasa de cambio v\xE1lida.",company_name_not_same:"El nombre de la empresa debe coincidir con el nombre indicado."},Lr={starter_plan:"\xA1Esta funci\xF3n est\xE1 disponible en el plan Starter y en adelante!",invalid_provider_key:"Por favor, introduzca un proveedor de claves API v\xE1lido.",estimate_number_used:"El n\xFAmero de estimaci\xF3n ya se ha tomado.",invoice_number_used:"El n\xFAmero de factura ya est\xE1 en uso.",payment_attached:"Esta factura ya tiene un pago adjunto. Aseg\xFArese de eliminar primero los pagos adjuntos para continuar con la eliminaci\xF3n.",payment_number_used:"El n\xFAmero de pago ya est\xE1 en uso.",name_already_taken:"El nombre ya est\xE1 en uso.",receipt_does_not_exist:"No existe el recibo.",customer_cannot_be_changed_after_payment_is_added:"El cliente no puede ser modificado despu\xE9s de agregar el pago",invalid_credentials:"Credenciales inv\xE1lidas.",not_allowed:"No permitido",login_invalid_credentials:"Estas credenciales no coinciden con nuestros registros.",enter_valid_cron_format:"Por favor, introduzca un formato cron v\xE1lido",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"},qr="Presupuestar",Br="N\xFAmero de Presupuesto",Kr="Fecha presupuesto",Zr="Fecha de caducidad",Wr="Factura",Hr="Numero de factura",Yr="Fecha de la factura",Gr="Fecha final",Jr="Notas",Qr="Art\xEDculos",Xr="Cantidad",ed="Precio",td="Descuento",ad="Cantidad",nd="Subtotal",id="Total",od="Pagos",sd="RECIBO DE PAGO",rd="Fecha de pago",dd="Numero de pago",ld="Modo de pago",cd="Importe recibido",_d="INFORME DE GASTOS",ud="GASTO TOTAL",md="INFORME PERDIDAS & GANANCIAS",pd="Informe de ventas por cliente",fd="Informe de ventas por \xEDtem",gd="Informe de ventas impuestos",vd="INGRESO",yd="GANANCIA NETA",hd="Informe de ventas: Por cliente",bd="VENTAS TOTALES",kd="Informe de ventas: por art\xEDculo",wd="INFORME DE IMPUESTOS",zd="TOTAL IMPUESTOS",xd="Tipos de impuestos",Pd="Gastos",Sd="Cobrar a,",jd="Enviar a,",Ad="Recibido desde:",Dd="Impuesto";var Cd={navigation:kr,general:wr,dashboard:zr,tax_types:xr,global_search:Pr,company_switcher:Sr,dateRange:jr,customers:Ar,items:Dr,estimates:Cr,invoices:Nr,recurring_invoices:Er,payments:Ir,expenses:Tr,login:Rr,modules:Mr,users:Fr,reports:$r,settings:Ur,wizard:Vr,validation:Or,errors:Lr,pdf_estimate_label:qr,pdf_estimate_number:Br,pdf_estimate_date:Kr,pdf_estimate_expire_date:Zr,pdf_invoice_label:Wr,pdf_invoice_number:Hr,pdf_invoice_date:Yr,pdf_invoice_due_date:Gr,pdf_notes:Jr,pdf_items_label:Qr,pdf_quantity_label:Xr,pdf_price_label:ed,pdf_discount_label:td,pdf_amount_label:ad,pdf_subtotal:nd,pdf_total:id,pdf_payment_label:od,pdf_payment_receipt_label:sd,pdf_payment_date:rd,pdf_payment_number:dd,pdf_payment_mode:ld,pdf_payment_amount_received_label:cd,pdf_expense_report_label:_d,pdf_total_expenses_label:ud,pdf_profit_loss_label:md,pdf_sales_customers_label:pd,pdf_sales_items_label:fd,pdf_tax_summery_label:gd,pdf_income_label:vd,pdf_net_profit_label:yd,pdf_customer_sales_report:hd,pdf_total_sales_label:bd,pdf_item_sales_label:kd,pdf_tax_report_label:wd,pdf_total_tax_label:zd,pdf_tax_types_label:xd,pdf_expenses_label:Pd,pdf_bill_to:Sd,pdf_ship_to:jd,pdf_received_from:Ad,pdf_tax_label:Dd};const Nd={dashboard:"\u0644\u0648\u062D\u0629 \u0627\u0644\u062A\u062D\u0643\u0645",customers:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",items:"\u0628\u0636\u0627\u0626\u0639/\u062E\u062F\u0645\u0627\u062A",invoices:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631","recurring-invoices":"Recurring Invoices",expenses:"\u0627\u0644\u0646\u0641\u0642\u0627\u062A",estimates:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",payments:"\u0627\u0644\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:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062E\u0631\u0648\u062C",users:"\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",modules:"Modules"},Ed={add_company:"\u0623\u0636\u0641 \u0634\u0631\u0643\u0629",view_pdf:"\u0639\u0631\u0636 PDF",copy_pdf_url:"\u0646\u0633\u062E \u0631\u0627\u0628\u0637 PDF",download_pdf:"\u062A\u0646\u0632\u064A\u0644 PDF",save:"\u062D\u0641\u0638",create:"\u0625\u0646\u0634\u0627\u0621",cancel:"\u062A\u0631\u0627\u062C\u0639",update:"\u062A\u062D\u062F\u064A\u062B",deselect:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631",download:"\u062A\u062D\u0645\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",ok:"Ok",yes:"Yes",no:"No",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",preview:"Preview",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:"\u0627\u062F\u0627\u0621",total_amount:"\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",bill_to:"\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629 \u0644\u0640",ship_to:"\u064A\u0634\u062D\u0646 \u0625\u0644\u0649",due:"\u0627\u0644\u0645\u062A\u0628\u0642\u064A",draft:"\u0645\u0633\u0648\u062F\u0629",sent:"\u0627\u0631\u0633\u0644\u062A",all:"\u0627\u0644\u0643\u0644",select_all:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",select_template:"Select Template",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:"\u062D\u0630\u0641",select_a_status:"\u0627\u062E\u062A\u0631 \u0627\u0644\u062D\u0627\u0644\u0629",select_a_tax:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0627\u062F\u0627\u0621",search:"\u0628\u062D\u062B",are_you_sure:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F\u061F",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:"\u0627\u0644\u0630\u0647\u0627\u0628 \u0627\u0644\u0649 \u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",test_mail_conf:"\u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0639\u062F\u0627\u062F\u0627\u062A \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:"\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",copied_pdf_url_clipboard:"\u062A\u0645 \u0646\u0633\u062E \u0631\u0627\u0628\u0637 PDF \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629!",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",mark_as_default:"Mark as default"},Id={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",payments:"Payments"},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"}},Td={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"},Rd={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"},Md={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},Fd={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"},$d={title:"\u0627\u0644\u0639\u0645\u0644\u0627\u0621",prefix:"Prefix",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",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",enable_portal:"\u062A\u0641\u0639\u064A\u0644 \u0627\u0644\u0628\u0648\u0627\u0628\u0629",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",confirm_password:"Confirm Password",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",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:"\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:"\u0644\u064A\u0633\u062A \u0647\u0646\u0627\u0643 \u062C\u0647\u0627\u062A \u0627\u062A\u0635\u0627\u0644",no_contact_name:"\u0627\u0633\u0645 \u062C\u0647\u0629 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F",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",address_updated_message:"Address Information Updated succesfully",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",edit_currency_not_allowed:"Cannot change currency once transactions created."},Ud={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:"\u0644\u0645 \u064A\u062A\u0645 \u0625\u062E\u062A\u064A\u0627\u0631 \u0623\u064A \u0639\u0646\u0635\u0631",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"},Vd={title:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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:"\u0645\u0631\u0641\u0648\u0636",expired:"Expired",sent:"\u0645\u0631\u0633\u0644",draft:"\u0645\u0633\u0648\u062F\u0629",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},Od={title:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",invoice_information:"Invoice Information",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:"\u0634\u0648\u0647\u062F",overdue:"\u0645\u062A\u0623\u062E\u0631",completed:"\u0627\u0643\u062A\u0645\u0644",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",conversion_message:"Invoice cloned successful",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_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",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!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",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:"Invoice sent successfully",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)"},payment_attached_message:"\u0647\u0646\u0627\u0643 \u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0645\u0631\u062A\u0628\u0637\u0629 \u0628\u0627\u0644\u0641\u0639\u0644 \u0628\u0625\u062D\u062F\u0649 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0627\u0644\u0645\u062D\u062F\u062F\u0629. \u062A\u0623\u0643\u062F \u0645\u0646 \u062D\u0630\u0641 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u0631\u062A\u0628\u0637\u0629 \u0623\u0648\u0644\u0627\u064B \u0642\u0628\u0644 \u062D\u0630\u0641 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629.",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},Ld={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."},qd={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:"\u0625\u0631\u0633\u0627\u0644 \u0625\u064A\u0635\u0627\u0644 \u0627\u0644\u062F\u0641\u0639",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:"\u0644\u0645 \u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F",no_invoice:"\u0644\u0627 \u062A\u0648\u062C\u062F \u0641\u0627\u062A\u0648\u0631\u0629",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:"\u0633\u064A\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u062F\u0641\u0639\u0629 \u0639\u0628\u0631 \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",send_payment_successfully:"\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062F\u0641\u0639\u0629 \u0628\u0646\u062C\u0627\u062D",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!"},Bd={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",currency:"Currency",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:"\u0644\u0645 \u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F",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"}},Kd={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"},Zd={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"},Wd={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",select_company_role:"Select Role for {company}",companies:"Companies"},Hd={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"}},Yd={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",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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",delete:"Delete",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",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:"\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",slug:"Slug",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",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:"\u0627\u0644\u062A\u062E\u0635\u064A\u0635",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",save:"\u062D\u0641\u0638",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:"\u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631",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:"\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",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_email_attachment:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0643\u0645\u0631\u0641\u0642\u0627\u062A",invoice_email_attachment_setting_description:'\u062A\u0641\u0639\u064A\u0644 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0643\u0645\u0631\u0641\u0642 \u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A. \u064A\u0631\u062C\u0649 \u0645\u0644\u0627\u062D\u0638\u0629 \u0623\u0646 \u0632\u0631 "\u0639\u0631\u0636 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631" \u0641\u064A \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0646 \u064A\u062A\u0645 \u0639\u0631\u0636\u0647 \u0628\u0639\u062F \u0627\u0644\u0622\u0646 \u0639\u0646\u062F \u0627\u0644\u062A\u0641\u0639\u064A\u0644.',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:"\u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A",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:"\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",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",estimate_email_attachment:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A \u0643\u0645\u0631\u0641\u0642\u0627\u062A",estimate_email_attachment_setting_description:'\u062A\u0641\u0639\u064A\u0644 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0643\u0645\u0631\u0641\u0642 \u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A. \u064A\u0631\u062C\u0649 \u0645\u0644\u0627\u062D\u0638\u0629 \u0623\u0646 \u0632\u0631 "\u0639\u0631\u0636 \u0627\u0644\u062A\u0642\u062F\u064A\u0631\u0627\u062A" \u0641\u064A \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0646 \u064A\u062A\u0645 \u0639\u0631\u0636\u0647 \u0628\u0639\u062F \u0627\u0644\u0622\u0646 \u0639\u0646\u062F \u0627\u0644\u062A\u0641\u0639\u064A\u0644.',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:"\u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A",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:"\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",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",payment_email_attachment:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A \u0643\u0645\u0631\u0641\u0642\u0627\u062A",payment_email_attachment_setting_description:'\u062A\u0641\u0639\u064A\u0644 \u0647\u0630\u0627 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u063A\u0628 \u0641\u064A \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0641\u0648\u0627\u062A\u064A\u0631 \u0643\u0645\u0631\u0641\u0642 \u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A. \u064A\u0631\u062C\u0649 \u0645\u0644\u0627\u062D\u0638\u0629 \u0623\u0646 \u0632\u0631 "\u0639\u0631\u0636 \u0627\u0644\u0645\u062F\u0641\u0648\u0639\u0627\u062A" \u0641\u064A \u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0644\u0646 \u064A\u062A\u0645 \u0639\u0631\u0636\u0647 \u0628\u0639\u062F \u0627\u0644\u0622\u0646 \u0639\u0646\u062F \u0627\u0644\u062A\u0641\u0639\u064A\u0644.',payment_settings_updated:"Payment Settings updated successfully"},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:"\u062A\u0648\u0641\u064A\u0631 \u0627\u0644\u0648\u0642\u062A \u0639\u0646 \u0637\u0631\u064A\u0642 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0627\u062A \u0648\u0625\u0639\u0627\u062F\u0629 \u0627\u0633\u062A\u062E\u062F\u0627\u0645\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\u062F\u0641\u0648\u0639\u0627\u062A.",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"},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:"\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"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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.",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:"\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:"\u0627\u062E\u062A\u0631 \u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",select_financial_year:"\u0627\u062E\u062A\u0631 \u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064A\u0629",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:"\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:"\u0627\u0644\u0645\u062A\u0637\u0644\u0628\u0627\u062A",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",deleting_files:"\u062D\u0630\u0641 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0627\u0644\u063A\u064A\u0631 \u0645\u0633\u062A\u062E\u062F\u0645\u0629",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",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:"\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:"\u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0641",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:"\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0646\u0633\u062E\u0629 \u0627\u0644\u0627\u062D\u062A\u064A\u0627\u0637\u064A\u0629 \u0628\u0646\u062C\u0627\u062D",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",set_default_disk_confirm:"\u0633\u064A\u062A\u0645 \u062A\u0639\u064A\u064A\u0646 \u0647\u0630\u0627 \u0627\u0644\u0642\u0631\u0635 \u0643\u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0648\u0633\u064A\u062A\u0645 \u062D\u0641\u0638 \u062C\u0645\u064A\u0639 \u0645\u0644\u0641\u0627\u062A PDF \u0627\u0644\u062C\u062F\u064A\u062F\u0629 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0642\u0631\u0635",success_set_default_disk:"\u062A\u0645 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u0642\u0631\u0635 \u0643\u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0628\u0646\u062C\u0627\u062D",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:"\u0644\u0646 \u062A\u062A\u0623\u062B\u0631 \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0648\u0627\u0644\u0645\u062C\u0644\u062F\u0627\u062A \u0627\u0644\u0645\u0648\u062C\u0648\u062F\u0629 \u0641\u064A \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u062D\u062F\u062F \u0648\u0644\u0643\u0646 \u0633\u064A\u062A\u0645 \u062D\u0630\u0641 \u0627\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u062E\u0627\u0635 \u0628\u0643 \u0645\u0646 Crater",action:"\u0639\u0645\u0644",edit_file_disk:"\u062A\u0639\u062F\u064A\u0644 \u0642\u0631\u0635 \u0627\u0644\u0645\u0644\u0641",success_create:"\u062A\u0645\u062A \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",success_update:"\u062A\u0645 \u062A\u062D\u062F\u064A\u062B \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",error:"\u0641\u0634\u0644 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0631\u0635",deleted_message:"\u062A\u0645 \u062D\u0630\u0641 \u0645\u0644\u0641 \u0627\u0644\u0642\u0631\u0635 \u0628\u0646\u062C\u0627\u062D",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"},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."}},Gd={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",currency_set_alert:"The company's currency cannot be changed later.",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:"\u0631\u0627\u0628\u0637 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",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:"\u0645\u0633\u0627\u0631 \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",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."},verify_domain:{title:"\u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u0644\u0646\u0637\u0627\u0642",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:"\u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",verify_now:"\u062A\u062D\u0642\u0642 \u0627\u0644\u0622\u0646",success:"\u062A\u0645 \u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u0644\u0646\u0637\u0627\u0642 \u0628\u0646\u062C\u0627\u062D.",failed:"Domain verification failed. Please enter valid domain name.",verify_and_continue:"\u0627\u0644\u062A\u062D\u0642\u0642 \u0648\u0627\u0644\u0645\u062A\u0627\u0628\u0639\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."},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."}},Jd={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.crater.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: crater.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",prefix_min_length:"Prefix must have at least {count} letters.",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.",discount_maxlength:"Discount should not be greater than max discount",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:"\u064A\u062C\u0628 \u0627\u0644\u0627 \u064A\u0632\u064A\u062F \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0639\u0646 100 \u062D\u0631\u0641.",message_maxlength:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0632\u064A\u062F \u062D\u062C\u0645 \u0627\u0644\u0646\u0635 \u0639\u0646 255 \u062D\u0631\u0641.",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!",number_length_minvalue:"\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0642\u064A\u0645\u0629 \u0627\u0644\u0631\u0642\u0645 \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0635\u0641\u0631",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."},Qd={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"},Xd="\u062A\u0642\u062F\u064A\u0631",el="\u0631\u0642\u0645 \u062A\u0642\u062F\u064A\u0631",tl="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062A\u0642\u062F\u064A\u0631",al="\u062A\u0627\u0631\u064A\u062E \u0627\u0646\u062A\u0647\u0627\u0621 \u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0629",nl="\u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",il="\u0631\u0642\u0645 \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",ol="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0641\u0627\u062A\u0648\u0631\u0629",sl="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0633\u062A\u062D\u0642\u0627\u0642",rl="\u0645\u0644\u0627\u062D\u0638\u0627\u062A",dl="\u0627\u0644\u0623\u0635\u0646\u0627\u0641",ll="\u0627\u0644\u0643\u0645\u064A\u0629",cl="\u0627\u0644\u0633\u0639\u0631",_l="\u0627\u0644\u062E\u0635\u0645",ul="\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0637\u0644\u0648\u0628",ml="\u0627\u0644\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0641\u0631\u0639\u064A",pl="\u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A",fl="\u0627\u0644\u062F\u0641\u0639",gl="\u0627\u064A\u0635\u0627\u0644 \u0627\u0644\u062F\u0641\u0639",vl="\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u062F\u0641\u0639",yl="\u0631\u0642\u0645 \u0627\u0644\u062F\u0641\u0639\u0629",hl="\u0646\u0648\u0639 \u0627\u0644\u062F\u0641\u0639\u0629",bl="\u0627\u0644\u0645\u0628\u0644\u063A \u0627\u0644\u0645\u0633\u062A\u0644\u0645",kl="\u062A\u0642\u0631\u064A\u0631 \u0627\u0644\u0645\u0635\u0627\u0631\u064A\u0641",wl="\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0645\u0635\u0627\u0631\u064A\u0641",zl="\u062A\u0642\u0631\u064A\u0631 \u0627\u0644\u0627\u0631\u0628\u0627\u062D \u0648 \u0627\u0644\u062E\u0633\u0627\u0626\u0631",xl="\u062A\u0642\u0631\u064A\u0631 \u0639\u0645\u0644\u0627\u0621 \u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",Pl="\u062A\u0642\u0631\u064A\u0631 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",Sl="\u062A\u0642\u0631\u064A\u0631 \u0645\u0644\u062E\u0635 \u0627\u0644\u0636\u0631\u0627\u0626\u0628",jl="\u0627\u0644\u0627\u064A\u0631\u0627\u062F\u0627\u062A",Al="\u0635\u0627\u0641\u064A \u0627\u0644\u0623\u0631\u0628\u0627\u062D",Dl="\u062A\u0642\u0631\u064A\u0631 \u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A: \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u064A\u0644",Cl="\u0645\u062C\u0645\u0648\u0639 \u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A",Nl="\u062A\u0642\u0631\u064A\u0631 \u0627\u0644\u0645\u0628\u064A\u0639\u0627\u062A: \u062D\u0633\u0628 \u0627\u0644\u0628\u0636\u0627\u0639\u0629 \u0627\u0648 \u0627\u0644\u062E\u062F\u0645\u0629",El="\u062A\u0642\u0631\u064A\u0631 \u0627\u0644\u0627\u062F\u0627\u0621\u0627\u062A",Il="\u0627\u062C\u0645\u0627\u0644\u064A \u0627\u0644\u0627\u062F\u0627\u0621\u0627\u062A",Tl="\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0636\u0631\u0627\u0626\u0628",Rl="\u0627\u0644\u0646\u0641\u0642\u0627\u062A",Ml="\u0645\u0637\u0644\u0648\u0628 \u0645\u0646,",Fl="\u064A\u0634\u062D\u0646 \u0625\u0644\u0649,",$l="\u062A\u0645 \u0627\u0644\u0627\u0633\u062A\u0644\u0627\u0645 \u0645\u0646:",Ul="Tax";var Vl={navigation:Nd,general:Ed,dashboard:Id,tax_types:Td,global_search:Rd,company_switcher:Md,dateRange:Fd,customers:$d,items:Ud,estimates:Vd,invoices:Od,recurring_invoices:Ld,payments:qd,expenses:Bd,login:Kd,modules:Zd,users:Wd,reports:Hd,settings:Yd,wizard:Gd,validation:Jd,errors:Qd,pdf_estimate_label:Xd,pdf_estimate_number:el,pdf_estimate_date:tl,pdf_estimate_expire_date:al,pdf_invoice_label:nl,pdf_invoice_number:il,pdf_invoice_date:ol,pdf_invoice_due_date:sl,pdf_notes:rl,pdf_items_label:dl,pdf_quantity_label:ll,pdf_price_label:cl,pdf_discount_label:_l,pdf_amount_label:ul,pdf_subtotal:ml,pdf_total:pl,pdf_payment_label:fl,pdf_payment_receipt_label:gl,pdf_payment_date:vl,pdf_payment_number:yl,pdf_payment_mode:hl,pdf_payment_amount_received_label:bl,pdf_expense_report_label:kl,pdf_total_expenses_label:wl,pdf_profit_loss_label:zl,pdf_sales_customers_label:xl,pdf_sales_items_label:Pl,pdf_tax_summery_label:Sl,pdf_income_label:jl,pdf_net_profit_label:Al,pdf_customer_sales_report:Dl,pdf_total_sales_label:Cl,pdf_item_sales_label:Nl,pdf_tax_report_label:El,pdf_total_tax_label:Il,pdf_tax_types_label:Tl,pdf_expenses_label:Rl,pdf_bill_to:Ml,pdf_ship_to:Fl,pdf_received_from:$l,pdf_tax_label:Ul};const Ol={dashboard:"\xDCbersicht",customers:"Kunden",items:"Artikel",invoices:"Rechnungen","recurring-invoices":"Serienrechnungen",expenses:"Ausgaben",estimates:"Angebote",payments:"Zahlungen",reports:"Berichte",settings:"Einstellungen",logout:"Abmelden",users:"Benutzer",modules:"Module"},Ll={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:"An",ok:"Okay",yes:"Ja",no:"Nein",sort_by:"Sortieren nach",ascending:"Aufsteigend",descending:"Absteigend",subject:"Betreff",body:"Inhalt",message:"Nachricht",send:"Absenden",preview:"Vorschau",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 an",due:"F\xE4llig",draft:"Entwurf",sent:"Gesendet",all:"Alle",select_all:"Alle ausw\xE4hlen",select_template:"Vorlage ausw\xE4hlen",choose_file:"Klicken Sie hier, um eine Datei auszuw\xE4hlen",choose_template:"W\xE4hlen Sie eine Vorlage",choose:"W\xE4hlen",remove:"Entfernen",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 erfolgreich versendet",setting_updated:"Einstellungen erfolgreich aktualisiert",select_state:"Bundesland w\xE4hlen",select_country:"Land w\xE4hlen",select_city:"Stadt w\xE4hlen",street_1:"Stra\xDFe und Hausnummer",street_2:"Adresszusatz",action_failed:"Aktion fehlgeschlagen",retry:"Wiederholen",choose_note:"Notiz ausw\xE4hlen",no_note_found:"Keine Notizen gefunden",insert_note:"Notiz einf\xFCgen",copied_pdf_url_clipboard:"PDF-URL in Zwischenablage kopiert!",copied_url_clipboard:"URL wurde in die Zwischenablage kopiert!",docs:"Dokumentation",do_you_wish_to_continue:"M\xF6chten Sie fortfahren?",note:"Notiz",pay_invoice:"Rechnung bezahlen",login_successfully:"Erfolgreich angemeldet!",logged_out_successfully:"Erfolgreich abgemeldet",mark_as_default:"Als Standard festlegen"},ql={select_year:"Jahr w\xE4hlen",cards:{due_amount:"Offene Betr\xE4ge",customers:"Kunden",invoices:"Rechnungen",estimates:"Angebote",payments:"Zahlungen"},chart_info:{total_sales:"Auftr\xE4ge gesamt",total_receipts:"Zahlungen gesamt",total_expense:"Ausgaben",net_income:"Einnahmen Netto",year:"Jahr"},monthly_chart:{title:"Umsatz & Ausgaben"},recent_invoices_card:{title:"F\xE4llige Rechnungen",due_on:"F\xE4llig am",customer:"Kunde",amount_due:"Offener Betrag",actions:"Aktionen",view_all:"Alle Anzeigen"},recent_estimate_card:{title:"Aktuelle Angebote",date:"Datum",customer:"Kunde",amount_due:"Betrag",actions:"Aktionen",view_all:"Alle Anzeigen"}},Bl={name:"Name",description:"Beschreibung",percent:"Prozent",compound_tax:"zusammengesetzte Steuer"},Kl={search:"Suchen...",customers:"Kunden",users:"Benutzer",no_results_found:"Keine Ergebnisse gefunden"},Zl={label:"UNTERNEHMEN WECHSELN",no_results_found:"Keine Ergebnisse gefunden",add_new_company:"Neues Unternehmen hinzuf\xFCgen",new_company:"Neues Unternehmen",created_message:"Unternehmen erfolgreich angelegt"},Wl={today:"Heute",this_week:"Diese Woche",this_month:"Dieser Monat",this_quarter:"Dieses Quartal",this_year:"Dieses Jahr",previous_week:"Vorherige Woche",previous_month:"Vorheriger Monat",previous_quarter:"Vorheriges Quartal",previous_year:"Vorheriges Jahr",custom:"Benutzerdefiniert"},Hl={title:"Kunden",prefix:"Pr\xE4fix",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",invoice_prefix:"Rechnungspr\xE4fix",estimate_prefix:"Angebotspr\xE4fix",payment_prefix:"Zahlungspr\xE4fix",enable_portal:"Kunden-Portal aktivieren",country:"Land",state:"Bundesland",city:"Stadt",zip_code:"PLZ",added_on:"Hinzugef\xFCgt am",action:"Aktion",password:"Passwort",confirm_password:"Passwort best\xE4tigen",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",portal_access:"Portalzugang",portal_access_text:"Darf der Kunde sich im Kundenportal anmelden?",portal_access_url:"Login URL zum Kundenportal",portal_access_url_help:"Bitte kopieren und leiten Sie die oben angegebene URL an Ihren Kunden weiter, um Ihm Zugang zu gew\xE4hren.",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 Bereich zeigt alle 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 werden diesen Kunden und alle zugeh\xF6rigen Rechnungen, Angebote und Zahlungen nicht wiederherstellen k\xF6nnen. | Sie werden diese Kunden und alle zugeh\xF6rigen Rechnungen, Angebote und Zahlungen nicht wiederherstellen k\xF6nnen.",created_message:"Benutzer erfolgreich erstellt",updated_message:"Kunde erfolgreich aktualisiert",address_updated_message:"Adressinformationen erfolgreich aktualisiert",deleted_message:"Kunden erfolgreich gel\xF6scht | Kunden erfolgreich gel\xF6scht",edit_currency_not_allowed:"W\xE4hrung kann nicht ge\xE4ndert werden, wenn Transaktionen erstellt wurden."},Yl={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 Bereich zeigt alle Artikel.",select_a_unit:"Einheit ausw\xE4hlen",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"},Gl={title:"Angebote",accept_estimate:"Angebot akzeptieren",reject_estimate:"Angebot ablehnen",estimate:"Angebot | Angebote",estimates_list:"Angebots\xFCbersicht",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahre",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlt",customer:"KUNDE",ref_no:"REF. - NR.",number:"NUMMER",amount_due:"OFFENER BETRAG",partially_paid:"Teilweise bezahlt",total:"Gesamt",discount:"Rabatt",sub_total:"Zwischensumme",estimate_number:"Angebotsnummer",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:"Notizen",tax:"Steuer",estimate_template:"Vorlage",convert_to_invoice:"Konvertieren in Rechnung",mark_as_sent:"Als gesendet markieren",send_estimate:"Angebot senden",resend_estimate:"Angebot erneut senden",record_payment:"Zahlung erfassen",add_estimate:"Angebote hinzuf\xFCgen",save_estimate:"Angebot speichern",confirm_conversion:"Dieses Angebot wird verwendet, um eine neue Rechnung zu erstellen.",conversion_message:"Rechnung erfolgreich erstellt",confirm_send_estimate:"Das Angebot wird per E-Mail an den Kunden gesendet",confirm_mark_as_sent:"Dieses Angebot wird als gesendet markiert",confirm_mark_as_accepted:"Dieses Angebot wird als angenommen markiert",confirm_mark_as_rejected:"Dieses Angebot wird als abgelehnt markiert",no_matching_estimates:"Es gibt keine \xFCbereinstimmenden Angebote!",mark_as_sent_successfully:"Angebot als gesendet markiert",send_estimate_successfully:"Angebot erfolgreich gesendet",errors:{required:"Feld ist erforderlich"},accepted:"Angenommen",rejected:"Abgelehnt",expired:"Abgelaufen",sent:"Gesendet",draft:"Entwurf",viewed:"Angesehen",declined:"Abgelehnt",new_estimate:"Neues Angebot",add_new_estimate:"Neues Angebot hinzuf\xFCgen",update_Estimate:"Angebot aktualisieren",edit_estimate:"Angebot \xE4ndern",items:"Artikel",Estimate:"Angebot | Angebote",add_new_tax:"neuen Steuersatz hinzuf\xFCgen",no_estimates:"Keine Angebote vorhanden!",list_of_estimates:"Dieser Bereich zeigt alle Angebote.",mark_as_rejected:"Markiert als abgelehnt",mark_as_accepted:"Markiert als angenommen",marked_as_accepted_message:"Angebot als angenommen markiert",marked_as_rejected_message:"Angebot als abgelehnt markiert",confirm_delete:"Das Angebot kann nicht wiederhergestellt werden | Die Angebote k\xF6nnen nicht wiederhergestellt werden",created_message:"Angebot erfolgreich erstellt",updated_message:"Angebot erfolgreich aktualisiert",deleted_message:"Angebot erfolgreich gel\xF6scht | Angebote erfolgreich gel\xF6scht",something_went_wrong:"Da ging etwas schief",item:{title:"Titel des Artikels",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)"},mark_as_default_estimate_template_description:"Wenn aktiviert, wird die ausgew\xE4hlte Vorlage automatisch f\xFCr neue Angebote ausgew\xE4hlt."},Jl={title:"Rechnungen",download:"Herunterladen",pay_invoice:"Rechnung bezahlen",invoices_list:"Liste der Rechnungen",invoice_information:"Rechnungsdaten",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahre",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlt",viewed:"Gesehen",overdue:"\xDCberf\xE4llig",completed:"Abgeschlossen",customer:"KUNDE",paid_status:"ZAHLUNGSSTATUS",ref_no:"REF. - NR.",number:"NUMMER",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:"Notizen",view:"Anzeigen",send_invoice:"Rechnung senden",resend_invoice:"Rechnung erneut senden",invoice_template:"Rechnungsvorlage",conversion_message:"Rechnung erfolgreich kopiert",template:"Vorlage ausw\xE4hlen",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_mark_as_accepted:"Diese Rechnung wird als akzeptiert markiert",confirm_mark_as_rejected:"Diese Rechnung wird als abgelehnt 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:"Ausgabe 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!",mark_as_rejected:"Als abgelehnt markieren",mark_as_accepted:"Als akzeptiert markieren",list_of_invoices:"Dieser Bereich zeigt alle 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 des Artikels",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)"},payment_attached_message:"Einer der ausgew\xE4hlten Rechnungen ist bereits eine Zahlung zugeordnet. Stellen Sie sicher, dass Sie zuerst die angeh\xE4ngten Zahlungen l\xF6schen, um mit dem Entfernen fortzufahren",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.",mark_as_default_invoice_template_description:"Wenn aktiviert, wird die ausgew\xE4hlte Vorlage automatisch f\xFCr neue Rechnungen ausgew\xE4hlt."},Ql={title:"Serienrechnungen",invoices_list:"Liste aller Serienrechnungen",days:"{days} Tage",months:"{months} Monat",years:"{years} Jahr",all:"Alle",paid:"Bezahlt",unpaid:"Unbezahlt",viewed:"Gesehen",overdue:"\xDCberf\xE4llig",active:"Aktiv",completed:"Abgeschlossen",customer:"KUNDE",paid_status:"ZAHLUNGSSTATUS",ref_no:"REF. - NR.",number:"NUMMER",amount_due:"OFFENER BETRAG",partially_paid:"Teilweise bezahlt",total:"Gesamt",discount:"Rabatt",sub_total:"Zwischensumme",invoice:"Wiederkehrende Rechnung | Wiederkehrende Rechnungen",invoice_number:"Serienrechnungsnummer",next_invoice_date:"N\xE4chstes Rechnungsdatum",ref_number:"Ref. Nummer",contact:"Kontakt",add_item:"Artikel hinzuf\xFCgen",date:"Datum",limit_by:"Eingrenzen nach",limit_date:"Datum eingrenzen",limit_count:"Anzahl eingrenzen",count:"Anzahl",status:"Status",select_a_status:"Status ausw\xE4hlen",working:"Verarbeitung l\xE4uft",on_hold:"Pausiert",complete:"Abgeschlossen",add_tax:"Steuer hinzuf\xFCgen",amount:"Summe",action:"Aktion",notes:"Notizen",view:"Anzeigen",basic_info:"Allgemeine Daten",send_invoice:"Serienrechnung senden",auto_send:"Automatisch senden",resend_invoice:"Serienrechnung erneut senden",invoice_template:"Serienrechnungsvorlage",conversion_message:"Serienrechnung erfolgreich kopiert",template:"Vorlage",mark_as_sent:"Als gesendet markieren",confirm_send_invoice:"Diese Serienrechnung wird per E-Mail an den Kunden gesendet",invoice_mark_as_sent:"Diese Serienrechnung wird als gesendet markiert",confirm_send:"Diese Serienrechnung wird per E-Mail an den Kunden gesendet",starts_at:"Anfangsdatum",due_date:"F\xE4lligkeitsdatum der Rechnung",record_payment:"Zahlung aufzeichnen",add_new_invoice:"Neue Serienrechnung hinzuf\xFCgen",update_expense:"Ausgabe aktualisieren",edit_invoice:"Serienrechnung bearbeiten",new_invoice:"Neue Serienrechnung",send_automatically:"Automatisch senden",send_automatically_desc:"Aktivieren Sie dies, wenn Sie die Rechnung bei der Erstellung automatisch an den Kunden senden m\xF6chten.",save_invoice:"Serienrechnung speichern",update_invoice:"Serienrechnung aktualisieren",add_new_tax:"Neuen Steuersatz hinzuf\xFCgen",no_invoices:"Noch keine Serienrechnungen!",mark_as_rejected:"Als abgelehnt markieren",mark_as_accepted:"Als akzeptiert markieren",list_of_invoices:"Dieser Abschnitt wird die Liste aller Serienrechnungen enthalten.",select_invoice:"Rechnung ausw\xE4hlen",no_matching_invoices:"Es gibt keine passenden Serienrechnungen!",mark_as_sent_successfully:"Serienrechnung als erfolgreich gesendet markiert",invoice_sent_successfully:"Serienrechnung erfolgreich gesendet",cloned_successfully:"Serienrechnung erfolgreich kopiert",clone_invoice:"Serienrechnung kopieren",confirm_clone:"Diese Serienrechnung wird in eine neue Serienrechnung kopiert",item:{title:"Titel des Artikels",description:"Beschreibung",quantity:"Menge",price:"Preis",discount:"Rabatt",total:"Gesamt",total_discount:"Gesamtrabatt",sub_total:"Zwischensumme",tax:"Steuer",amount:"Menge",select_an_item:"Geben Sie den Artikel ein, oder w\xE4hlen Sie ihn aus",type_item_description:"Artikel-Beschreibung (optional)"},frequency:{title:"Intervall",select_frequency:"Intervall ausw\xE4hlen",minute:"Minute",hour:"Stunde",day_month:"Tag des Monats",month:"Monat",day_week:"Tag der Woche"},confirm_delete:"Sie werden diese Rechnung nicht wiederherstellen k\xF6nnen | Sie werden nicht in der Lage sein, diese Rechnungen wiederherzustellen",created_message:"Serienrechnung erfolgreich erstellt",updated_message:"Serienrechnung erfolgreich aktualisiert",deleted_message:"Serienrechnung erfolgreich gel\xF6scht | Serienrechnungen erfolgreich gel\xF6scht",marked_as_sent_message:"Serienrechnung als erfolgreich gesendet markiert",user_email_does_not_exist:"E-Mail des Benutzers existiert nicht",something_went_wrong:"etwas ist schief gelaufen",invalid_due_amount_message:"Der Gesamtbetrag der Serienrechnung darf nicht kleiner als der bezahlte Gesamtbetrag f\xFCr diese Serienrechnung sein. Bitte aktualisieren Sie die Rechnung oder l\xF6schen Sie die zugeh\xF6rigen Zahlungen, um fortzufahren."},Xl={title:"Zahlungen",payments_list:"Liste der Zahlungen",record_payment:"Zahlung eintragen",customer:"Kunde",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 Bereich zeigt alle Zahlungen.",select_payment_mode:"W\xE4hlen Sie den Zahlungsmodus",confirm_mark_as_sent:"Dieses Angebot 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"},ec={title:"Ausgaben",expenses_list:"Ausgaben\xFCbersicht",select_a_customer:"W\xE4hlen Sie einen Kunden",expense_title:"Titel",customer:"Kunde",currency:"W\xE4hrung",contact:"Kontakt",category:"Kategorie",from_date:"Von Datum",to_date:"bis Datum",expense_date:"Datum",description:"Beschreibung",receipt:"Rechnung",amount:"Summe",action:"Aktion",not_selected:"Nicht ausgew\xE4hlt",note:"Hinweis",category_id:"Kategorie-Id",date:"Ausgabedatum",add_expense:"Ausgabe hinzuf\xFCgen",add_new_expense:"Neue Ausgabe hinzuf\xFCgen",save_expense:"Ausgabe speichern",update_expense:"Ausgabe aktualisieren",download_receipt:"Quittung herunterladen",edit_expense:"Ausgabe bearbeiten",new_expense:"Neue Ausgabe",expense:"Ausgabe | Ausgaben",no_expenses:"Noch keine Ausgaben!",list_of_expenses:"Dieser Bereich enth\xE4lt alle Ausgaben.",confirm_delete:"Sie k\xF6nnen diese Ausgabe nicht wiederherstellen. | Sie k\xF6nnen diese Ausgaben nicht wiederherstellen.",created_message:"Ausgabe erfolgreich erstellt",updated_message:"Ausgabe erfolgreich aktualisiert",deleted_message:"Ausgabe erfolgreich gel\xF6scht | Ausgaben 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"}},tc={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"},ac={buy_now:"Kaufen",install:"Installieren",price:"Preis",download_zip_file:"ZIP Datei herunterladen",unzipping_package:"Entpacke Paket",copying_files:"Kopiere Dateien",deleting_files:"Unbenutzte Dateien werden gel\xF6scht",completing_installation:"Installation wird abgeschlossen",update_failed:"Update fehlgeschlagen",install_success:"Modul erfolgreich installiert!",customer_reviews:"Bewertungen",license:"Lizenz",faq:"FAQ",monthly:"Monatlich",yearly:"J\xE4hrlich",updated:"Aktualisiert",version:"Version",disable:"Deaktivieren",module_disabled:"Modul deaktiviert",enable:"Aktivieren",module_enabled:"Modul aktiviert",update_to:"Update auf",module_updated:"Modul erfolgreich aktualisiert!",title:"Module",module:"Module | Modules",api_token:"API Schl\xFCssel",invalid_api_token:"Invalid API Token.",other_modules:"Weitere Module",view_all:"Alle Anzeigen",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:"Zuletzt aktualisiert am",connect_installation:"Installation verbinden",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:"Modul anzeigen",update_available:"Aktualisierung verf\xFCgbar",purchased:"Gekauft",installed:"Installiert",no_modules_installed:"Noch keine Module installiert!",disable_warning:"All the settings for this particular will be reverted.",what_you_get:"What you get"},nc={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 Bereich zeigt alle 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",select_company_role:"W\xE4hle Rolle f\xFCr {company}",companies:"Unternehmen"},ic={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:"Angebot",estimate_date:"Angebotsdatum",due_date:"F\xE4lligkeit",estimate_number:"Angebotsnummer",ref_number:"Ref-Nummer",amount:"Summe",contact_name:"Ansprechpartner",status:"Status"},expenses:{expenses:"Ausgaben",category:"Kategorie",date:"Datum",amount:"Summe",to_date:"bis Datum",from_date:"Ab Datum",date_range:"Datumsbereich ausw\xE4hlen"}},oc={menu_title:{account_settings:"Konto-Einstellungen",company_information:"Informationen zum Unternehmen",customization:"Personalisierung",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:"Notizen",exchange_rate:"Wechselkurs",address_information:"Adressinformationen"},address_information:{section_description:" Sie k\xF6nnen Ihre Adressinformationen \xFCber das untenstehende Formular aktualisieren."},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:"Abk\xFCrzung",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, Angeboten und anderen von Crater erstellten Dokumenten angezeigt werden.",phone:"Telefon",country:"Land",state:"Bundesland",city:"Stadt",address:"Adresse",zip:"PLZ",save:"Speichern",delete:"L\xF6schen",updated_message:"Unternehmensinformationen wurden erfolgreich aktualisiert",delete_company:"Unternehmen l\xF6schen",delete_company_description:"Sobald Sie Ihr Unternehmen l\xF6schen, verlieren Sie alle damit verbundenen Daten und Dateien.",are_you_absolutely_sure:"Sind Sie wirklich sicher?",delete_company_modal_desc:"Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Dies wird {company} und alle damit verbundenen Daten dauerhaft l\xF6schen.",delete_company_modal_label:"Bitte geben Sie {company} zur Best\xE4tigung ein"},custom_fields:{title:"Benutzerdefinierte Felder",section_description:"Passen Sie Ihre Rechnungen, Angebote und Zahlungsbelege mit Ihren eigenen Feldern an. Stellen Sie sicher, dass Sie die unten hinzugef\xFCgten Felder in den Adressformaten auf der Seite mit den Anpassungseinstellungen verwenden.",add_custom_field:"Benutzerdefiniertes Feld hinzuf\xFCgen",edit_custom_field:"Benutzerdefiniertes Feld bearbeiten",field_name:"Feldname",label:"Bezeichnung",type:"Art",name:"Name",slug:"K\xFCrzel",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:"Reihenfolge",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",press_enter_to_add:"Eingabetaste dr\xFCcken, um neue Option hinzuzuf\xFCgen",model_in_use:"Das Modell kann f\xFCr bereits verwendete Felder nicht aktualisiert werden.",type_in_use:"Der Typ von bereits verwendeten Feldern kann nicht aktualisiert werden."},customization:{customization:"Personalisierung",updated_message:"Unternehmensinformationen wurden erfolgreich aktualisiert",save:"Speichern",insert_fields:"Felder einf\xFCgen",learn_custom_format:"Erfahren Sie, wie Sie benutzerdefiniertes Format verwenden",add_new_component:"Neue Komponente hinzuf\xFCgen",component:"Komponente",Parameter:"Parameter",series:"Nummernfolge",series_description:"Um ein statisches Pr\xE4fix/Postfix wie 'INV' in Ihrem Unternehmen zu setzen. Es unterst\xFCtzt eine Zeichenl\xE4nge von bis zu 4 Zeichen.",series_param_label:"Nummernfolge",delimiter:"Trennzeichen",delimiter_description:"Einzelnes Zeichen f\xFCr die Verwendung zwischen zwei separaten Komponenten. Standardm\xE4\xDFig ist dies -",delimiter_param_label:"Trennzeichen",date_format:"Datumsformat",date_format_description:"Ein lokales Datums- und Zeitfeld, das einen Format-Parameter akzeptiert. Das Standardformat: 'Y' stellt das aktuelle Jahr dar.",date_format_param_label:"Format",sequence:"Fortlaufende Nummer",sequence_description:"Fortlaufende Nummernabfolge in Ihrem Unternehmen. Sie k\xF6nnen die L\xE4nge des angegebenen Parameters angeben.",sequence_param_label:"L\xE4nge der fortlaufenden Nummer",customer_series:"Kundenspez. Nummernfolge",customer_series_description:"Ein anderes Pr\xE4fix/Postfix f\xFCr jeden Kunden festlegen.",customer_sequence:"Fortlaufende Kundennummer",customer_sequence_description:"Fortlaufende Nummernabfolge f\xFCr jeden ihrer Kunden.",customer_sequence_param_label:"L\xE4nge der laufenden Nummer",random_sequence:"Zuf\xE4llige Zeichenkette",random_sequence_description:"Zuf\xE4llige alphanumerische Zeichenkette. Sie k\xF6nnen die L\xE4nge als Parameter angeben.",random_sequence_param_label:"L\xE4nge der Zeichenkette",invoices:{title:"Rechnungen",invoice_number_format:"Rechnungsnummernformat",invoice_number_format_description:"Passen Sie an, wie Ihre Rechnungsnummer automatisch generiert wird, wenn Sie eine neue Rechnung erstellen.",preview_invoice_number:"Vorschau Rechnungsnummer",due_date:"F\xE4lligkeitsdatum",due_date_description:"Legen Sie fest, wie das F\xE4lligkeitsdatum automatisch gesetzt wird, wenn Sie eine Rechnung erstellen.",due_date_days:"Rechnung f\xE4llig nach Tagen",set_due_date_automatically:"F\xE4lligkeitsdatum automatisch setzen",set_due_date_automatically_description:"Aktivieren Sie dies, wenn Sie das F\xE4lligkeitsdatum automatisch setzen m\xF6chten, wenn Sie eine neue Rechnung erstellen.",default_formats:"Standardformate",default_formats_description:"Die unten angegebenen Formate werden verwendet, um die Felder bei der Erstellung einer Rechnung automatisch auszuf\xFCllen.",default_invoice_email_body:"Standard Rechnung E-Mail Inhalt",company_address_format:"Firmenadressformat",shipping_address_format:"Versandadressen Format",billing_address_format:"Rechnungsadressen Format",invoice_email_attachment:"Rechnungen als Anh\xE4nge verschicken",invoice_email_attachment_setting_description:'Aktivieren Sie dies, wenn Sie Rechnungen als E-Mail-Anhang versenden m\xF6chten. Bitte beachten Sie, dass die Schaltfl\xE4che "Rechnung anzeigen" in E-Mails dann nicht mehr angezeigt wird.',invoice_settings_updated:"Rechnungseinstellungen erfolgreich aktualisiert",retrospective_edits:"R\xFCckwirkende \xC4nderungen",allow:"Erlauben",disable_on_invoice_partial_paid:"Deaktivieren, nachdem Teilzahlung erfasst wurde",disable_on_invoice_paid:"Deaktivieren, nachdem vollst\xE4ndige Zahlung erfasst wurde",disable_on_invoice_sent:"Deaktivieren, nachdem Rechnung gesendet wurde",retrospective_edits_description:" Basierend auf den Gesetzen Ihres Landes oder Ihrer Pr\xE4ferenz, k\xF6nnen Sie Benutzer daran hindern, fertige Rechnungen zu bearbeiten."},estimates:{title:"Angebote",estimate_number_format:"Angebotsnummernformat",estimate_number_format_description:"Passen Sie an, wie Ihre Angebotsnummer automatisch generiert wird, wenn Sie ein neues Angebot erstellen.",preview_estimate_number:"Vorschau Angebotsnummer",expiry_date:"Ablaufdatum",expiry_date_description:"Legen Sie fest, wie das Ablaufdatum automatisch gesetzt wird, wenn Sie ein Angebot erstellen.",expiry_date_days:"Angebot l\xE4uft ab nach Tagen",set_expiry_date_automatically:"Ablaufdatum automatisch setzen",set_expiry_date_automatically_description:"Aktivieren Sie dies, wenn Sie das Ablaufdatum automatisch setzen m\xF6chten sobald Sie ein neues Angebot erstellen.",default_formats:"Standardformate",default_formats_description:"Die unten angegebenen Formate werden verwendet, um die Felder bei der Erstellung eines Angebots automatisch auszuf\xFCllen.",default_estimate_email_body:"Angebot - E-Mail Text",company_address_format:"Firmenadresse Format",shipping_address_format:"Versandadressen Format",billing_address_format:"Rechnungsadressen Format",estimate_email_attachment:"Angebote als Anh\xE4nge verschicken",estimate_email_attachment_setting_description:'Aktivieren Sie dies, wenn Sie Angebote als E-Mail-Anhang versenden m\xF6chten. Bitte beachten Sie, dass die Schaltfl\xE4che "Angebot anzeigen" in E-Mails dann nicht mehr angezeigt wird.',estimate_settings_updated:"Angebotseinstellungen erfolgreich aktualisiert",convert_estimate_options:"Aktion nach Angebotsumwandlung",convert_estimate_description:"Legen Sie fest, was mit dem Angebot geschieht, nachdem es in eine Rechnung umgewandelt wurde.",no_action:"Keine Aktion",delete_estimate:"Angebot l\xF6schen",mark_estimate_as_accepted:"Angebot als angenommen markieren"},payments:{title:"Zahlungen",payment_number_format:"Zahlungsnummernformat",payment_number_format_description:"Passen Sie an, wie Ihre Zahlungsnummer automatisch generiert wird, wenn Sie eine neue Zahlung erstellen.",preview_payment_number:"Vorschau Zahlungsnummer",default_formats:"Standardformate",default_formats_description:"Die unten angegebenen Formate werden verwendet, um die Felder bei der Buchung einer Zahlung automatisch auszuf\xFCllen.",default_payment_email_body:"Zahlung - E-Mail Text",company_address_format:"Firmenadressformat",from_customer_address_format:"Rechnungsadressen Format",payment_email_attachment:"Zahlungen als Anh\xE4nge verschicken",payment_email_attachment_setting_description:'Aktivieren Sie dies, wenn Sie Zahlungen als E-Mail-Anhang versenden m\xF6chten. Bitte beachten Sie, dass die Schaltfl\xE4che "Zahlung anzeigen" in E-Mails dann nicht mehr angezeigt wird.',payment_settings_updated:"Zahlungseinstellung erfolgreich aktualisiert"},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:"Notizen",description:"Sparen Sie Zeit, indem Sie Notizen erstellen und diese auf Ihren Rechnungen, Angeboten 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:"Angebot angesehen",estimate_viewed_desc:"Wenn Ihr Kunde das gesendete Angebot anzeigt bekommt.",save:"Speichern",email_save_message:"Email erfolgreich gespeichert",please_enter_email:"Bitte E-Mail eingeben"},roles:{title:"Rollen",description:"Rollen & Berechtigungen dieses Unternehmens verwalten",save:"Speichern",add_new_role:"Neue Rolle hinzuf\xFCgen",role_name:"Name der Rolle",added_on:"Hinzugef\xFCgt am",add_role:"Rolle hinzuf\xFCgen",edit_role:"Rolle bearbeiten",name:"Name",permission:"Berechtigung | Berechtigungen",select_all:"Alle ausw\xE4hlen",none:"Keine",confirm_delete:"Sie werden diese Rolle nicht wiederherstellen k\xF6nnen",created_message:"Rolle erfolgreich erstellt",updated_message:"Rolle erfolgreich aktualisiert",deleted_message:"Rolle erfolgreich gel\xF6scht",already_in_use:"Rolle wird bereits benutzt"},exchange_rate:{exchange_rate:"Wechselkurs",title:"Wechselkursprobleme korrigieren",description:"Bitte geben Sie den Wechselkurs aller unten genannten W\xE4hrungen ein, um Crater bei der korrekten Berechnung der Betr\xE4ge in {currency} zu unterst\xFCtzen.",drivers:"Treiber",new_driver:"Neuen Anbieter hinzuf\xFCgen",edit_driver:"Anbieter bearbeiten",select_driver:"Treiber ausw\xE4hlen",update:"w\xE4hle Wechselkurs ",providers_description:"Konfigurieren Sie hier Ihre Wechselkursanbieter, um automatisch den aktuellen Wechselkurs f\xFCr Transaktionen abzurufen.",key:"API-Schl\xFCssel",name:"Name",driver:"Treiber",is_default:"STANDARD",currency:"W\xE4hrungen",exchange_rate_confirm_delete:"Sie werden diesen Treiber nicht wiederherstellen k\xF6nnen",created_message:"Artikel erfolgreich erstellt",updated_message:"Anbieter erfolgreich aktualisiert",deleted_message:"Anbieter erfolgreich gel\xF6scht",error:" Aktive Treiber k\xF6nnen nicht gel\xF6scht werden",default_currency_error:"Diese W\xE4hrung wird bereits in einem der aktiven Anbieter verwendet",exchange_help_text:"Wechselkurs eingeben um von {currency} nach {baseCurrency} zu konvertieren",currency_freak:"CurrencyFreaks",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"W\xE4hrungsumrechner",server:"Server",url:"URL",active:"Aktiv",currency_help_text:"Dieser Anbieter wird nur in oben ausgew\xE4hlten W\xE4hrungen verwendet",currency_in_used:"Die folgenden W\xE4hrungen sind bereits bei einem anderen Anbieter aktiv. Bitte entfernen Sie diese W\xE4hrungen aus der Auswahl, um diesen Anbieter erneut zu aktivieren."},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"},payment_modes:{title:"Zahlungsarten",description:"Transaktionsmodi f\xFCr Zahlungen",add_payment_mode:"Zahlungsart hinzuf\xFCgen",edit_payment_mode:"Zahlungsart bearbeiten",mode_name:"Name",payment_mode_added:"Zahlungsart hinzugef\xFCgt",payment_mode_updated:"Zahlungsart aktualisiert",payment_mode_confirm_delete:"Sie werden diese Zahlungsart nicht wiederherstellen k\xF6nnen",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Zahlungsart erfolgreich gel\xF6scht"},expense_category:{title:"Ausgabenkategorien",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.",expire_public_links:"\xD6ffentliche Links automatisch ablaufen lassen",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:"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",recurring_invoice_status:"Status der Serienrechnung",create_status:"Status erstellen",active:"Aktiv",on_hold:"Pausiert",update_status:"Status aktualisieren",completed:"Abgeschlossen",company_currency_unchangeable:"Die W\xE4hrung des Unternehmens kann nicht ge\xE4ndert werden"},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",deleting_files:"Ungenutzte Dateien l\xF6schen",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}",update_warning:"Alle Anwendungsdateien und Standardvorlagen werden \xFCberschrieben, wenn Sie die Anwendung mit diesem Hilfsprogramm aktualisieren. Bitte machen Sie vor dem Update ein Backup Ihrer Vorlagen & Datenbank."},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 Key",do_spaces_secret:"Do Spaces Secret",do_spaces_region:"Do Spaced Region",do_spaces_bucket:"Do Spaces Bucket",do_spaces_endpoint:"Do Spaces Endpoint",do_spaces_root:"Do Spaced Root",dropbox_type:"Dropbox Typ",dropbox_token:"Dropbox Token",dropbox_key:"Dropbox Schl\xFCssel",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",set_default_disk_confirm:"Dieser Speicherort wird als Standard gesetzt und alle neuen PDFs werden auf diesem gespeichert",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 Angebot & jedem Zahlungsbeleg 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:"Speicherort editieren",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"},taxations:{add_billing_address:"Rechnungsadresse eingeben",add_shipping_address:"Lieferadresse eingeben",add_company_address:"Firmenadresse eingeben",modal_description:"The information below is required in order to fetch sales tax.",add_address:"Add Address for fetching sales tax.",address_placeholder:"Beispiel: 123, meine Stra\xDFe",city_placeholder:"Beispiel: Los Angeles",state_placeholder:"Beispiel: CA",zip_placeholder:"Beispiel: 90024",invalid_address:"Bitte geben Sie g\xFCltige Adressdaten an."}},sc={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.",currency_set_alert:"Die W\xE4hrung des Unternehmens kann sp\xE4ter nicht mehr ge\xE4ndert werden.",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."},verify_domain:{title:"Domain-Verifizierung",desc:"Crater verwendet Session-basierte Authentifizierung, die aus Sicherheitsgr\xFCnden eine Domain-Verifizierung erfordert. Bitte geben Sie die Domain ein, auf der Sie auf Ihre Webanwendung zugreifen werden.",app_domain:"Domain der App",verify_now:"Jetzt verifizieren",success:"Domain erfolgreich verifiziert.",failed:"Domain\xFCberpr\xFCfung fehlgeschlagen. Bitte geben Sie einen g\xFCltigen Domainnamen ein.",verify_and_continue:"Verifizieren und fortfahren"},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."}},rc={invalid_phone:"Ung\xFCltige Telefonnummer",invalid_url:"Ung\xFCltige URL (Bsp.: http://www.crater.com)",invalid_domain_url:"Ung\xFCltige URL (Bsp.: crater.com)",required:"Feld ist erforderlich",email_incorrect:"Ung\xFCltige 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.",prefix_min_length:"Pr\xE4fix muss mindestens {count} Buchstaben 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.",discount_maxlength:"Rabatt sollte nicht gr\xF6\xDFer als der maximale Rabatt 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",at_least_one_ability:"Bitte w\xE4hlen Sie mindestens eine Berechtigung aus.",valid_driver_key:"Bitte geben Sie einen g\xFCltigen {driver} Schl\xFCssel ein.",valid_exchange_rate:"Bitte geben Sie einen g\xFCltigen Wechselkurs ein.",company_name_not_same:"Name des Unternehmens muss mit dem angegebenen Namen \xFCbereinstimmen."},dc={starter_plan:"Diese Funktion ist erst ab dem Starterplan verf\xFCgbar!",invalid_provider_key:"Bitte geben Sie einen g\xFCltigen API-Schl\xFCssel f\xFCr den Anbieter ein.",estimate_number_used:"Die Angebotsnummer ist bereits vergeben.",invoice_number_used:"Die Rechnungsnummer ist bereits vergeben.",payment_attached:"Dieser Rechnung ist bereits eine Zahlung zugewiesen. Bitte zuerst die zugewiesenen Zahlungen l\xF6schen, um mit der Entfernung fortzufahren.",payment_number_used:"Die Zahlungsnummer ist bereits vergeben.",name_already_taken:"Der Name ist bereits vergeben.",receipt_does_not_exist:"Beleg existiert nicht.",customer_cannot_be_changed_after_payment_is_added:"Kunde kann nach dem Hinzuf\xFCgen der Zahlung nicht ge\xE4ndert werden",invalid_credentials:"Ung\xFCltige Anmeldeinformationen.",not_allowed:"Nicht erlaubt",login_invalid_credentials:"Diese Anmeldeinformationen stimmen nicht mit unseren Aufzeichnungen \xFCberein.",enter_valid_cron_format:"Bitte geben Sie ein g\xFCltiges Cron-Format ein",email_could_not_be_sent:"Die E-Mail konnte nicht an diese Adresse gesendet werden.",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:"Der Server antwortet nicht.",feature_not_enabled:"Funktion nicht aktiviert.",request_limit_met:"Api request limit exceeded.",address_incomplete:"Unvollst\xE4ndige Adresse"},lc="Angebot",cc="Angebotsnummer",_c="Angebotsdatum",uc="Ablaufdatum",mc="Rechnung",pc="Rechnungsnummer",fc="Rechnungsdatum",gc="F\xE4lligkeitsdatum",vc="Hinweise",yc="Artikel",hc="Menge",bc="Preis",kc="Rabatt",wc="Summe",zc="Zwischensumme",xc="Gesamt",Pc="Zahlung",Sc="Zahlungsbeleg",jc="Zahlungsdatum",Ac="Zahlungsnummer",Dc="Zahlungsart",Cc="Betrag erhalten",Nc="Ausgaben Bericht",Ec="Gesamtausgaben",Ic="Gewinn & Verlust Bericht",Tc="Kundenverkaufs Bericht",Rc="Artikelverkaufs Bericht",Mc="Steuer Bericht",Fc="Einkommen",$c="Nettogewinn",Uc="Umsatzbericht: Nach Kunde",Vc="GESAMTUMSATZ",Oc="Umsatzbericht: Nach Artikel",Lc="Umsatzsteuer BERICHT",qc="Gesamte Umsatzsteuer",Bc="Steuers\xE4tze",Kc="Ausgaben",Zc="Rechnungsempf\xE4nger:",Wc="Versand an:",Hc="Erhalten von:",Yc="Steuer";var Gc={navigation:Ol,general:Ll,dashboard:ql,tax_types:Bl,global_search:Kl,company_switcher:Zl,dateRange:Wl,customers:Hl,items:Yl,estimates:Gl,invoices:Jl,recurring_invoices:Ql,payments:Xl,expenses:ec,login:tc,modules:ac,users:nc,reports:ic,settings:oc,wizard:sc,validation:rc,errors:dc,pdf_estimate_label:lc,pdf_estimate_number:cc,pdf_estimate_date:_c,pdf_estimate_expire_date:uc,pdf_invoice_label:mc,pdf_invoice_number:pc,pdf_invoice_date:fc,pdf_invoice_due_date:gc,pdf_notes:vc,pdf_items_label:yc,pdf_quantity_label:hc,pdf_price_label:bc,pdf_discount_label:kc,pdf_amount_label:wc,pdf_subtotal:zc,pdf_total:xc,pdf_payment_label:Pc,pdf_payment_receipt_label:Sc,pdf_payment_date:jc,pdf_payment_number:Ac,pdf_payment_mode:Dc,pdf_payment_amount_received_label:Cc,pdf_expense_report_label:Nc,pdf_total_expenses_label:Ec,pdf_profit_loss_label:Ic,pdf_sales_customers_label:Tc,pdf_sales_items_label:Rc,pdf_tax_summery_label:Mc,pdf_income_label:Fc,pdf_net_profit_label:$c,pdf_customer_sales_report:Uc,pdf_total_sales_label:Vc,pdf_item_sales_label:Oc,pdf_tax_report_label:Lc,pdf_total_tax_label:qc,pdf_tax_types_label:Bc,pdf_expenses_label:Kc,pdf_bill_to:Zc,pdf_ship_to:Wc,pdf_received_from:Hc,pdf_tax_label:Yc};const Jc={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"},Qc={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",mark_as_default:"Mark as default"},Xc={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"}},e_={name:"Name",description:"Description",percent:"Percent",compound_tax:"Compound Tax"},t_={search:"Search...",customers:"Customers",users:"Users",no_results_found:"No Results Found"},a_={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},n_={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"},i_={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."},o_={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"},s_={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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},r_={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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},d_={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."},l_={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"},c_={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"}},__={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"},u_={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"},m_={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"},p_={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"}},f_={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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",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."}},g_={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."}},v_={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."},y_={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"},h_="Estimate",b_="Estimate Number",k_="Estimate Date",w_="Expiry date",z_="Invoice",x_="Invoice Number",P_="Invoice Date",S_="Due date",j_="Notes",A_="Items",D_="Quantity",C_="Price",N_="Discount",E_="Amount",I_="Subtotal",T_="Total",R_="Payment",M_="PAYMENT RECEIPT",F_="Payment Date",$_="Payment Number",U_="Payment Mode",V_="Amount Received",O_="EXPENSES REPORT",L_="TOTAL EXPENSE",q_="PROFIT & LOSS REPORT",B_="Sales Customer Report",K_="Sales Item Report",Z_="Tax Summary Report",W_="INCOME",H_="NET PROFIT",Y_="Sales Report: By Customer",G_="TOTAL SALES",J_="Sales Report: By Item",Q_="TAX REPORT",X_="TOTAL TAX",eu="Tax Types",tu="Expenses",au="Bill to,",nu="Ship to,",iu="Received from:",ou="Tax";var su={navigation:Jc,general:Qc,dashboard:Xc,tax_types:e_,global_search:t_,company_switcher:a_,dateRange:n_,customers:i_,items:o_,estimates:s_,invoices:r_,recurring_invoices:d_,payments:l_,expenses:c_,login:__,modules:u_,users:m_,reports:p_,settings:f_,wizard:g_,validation:v_,errors:y_,pdf_estimate_label:h_,pdf_estimate_number:b_,pdf_estimate_date:k_,pdf_estimate_expire_date:w_,pdf_invoice_label:z_,pdf_invoice_number:x_,pdf_invoice_date:P_,pdf_invoice_due_date:S_,pdf_notes:j_,pdf_items_label:A_,pdf_quantity_label:D_,pdf_price_label:C_,pdf_discount_label:N_,pdf_amount_label:E_,pdf_subtotal:I_,pdf_total:T_,pdf_payment_label:R_,pdf_payment_receipt_label:M_,pdf_payment_date:F_,pdf_payment_number:$_,pdf_payment_mode:U_,pdf_payment_amount_received_label:V_,pdf_expense_report_label:O_,pdf_total_expenses_label:L_,pdf_profit_loss_label:q_,pdf_sales_customers_label:B_,pdf_sales_items_label:K_,pdf_tax_summery_label:Z_,pdf_income_label:W_,pdf_net_profit_label:H_,pdf_customer_sales_report:Y_,pdf_total_sales_label:G_,pdf_item_sales_label:J_,pdf_tax_report_label:Q_,pdf_total_tax_label:X_,pdf_tax_types_label:eu,pdf_expenses_label:tu,pdf_bill_to:au,pdf_ship_to:nu,pdf_received_from:iu,pdf_tax_label:ou};const ru={dashboard:"Pulpit",customers:"Kontrahenci",items:"Pozycje",invoices:"Faktury","recurring-invoices":"Faktury cykliczne",expenses:"Wydatki",estimates:"Oferty",payments:"P\u0142atno\u015Bci",reports:"Raporty",settings:"Ustawienia",logout:"Wyloguj",users:"U\u017Cytkownicy",modules:"Modu\u0142y"},du={add_company:"Dodaj firm\u0119",view_pdf:"Podgl\u0105d PDF",copy_pdf_url:"Kopiuj adres URL PDF",download_pdf:"Pobierz 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",ok:"Ok",yes:"Tak",no:"Nie",sort_by:"Sortuj wed\u0142ug",ascending:"Rosn\u0105co",descending:"Malej\u0105co",subject:"Temat",body:"Tre\u015B\u0107",message:"Wiadomo\u015B\u0107",send:"Wy\u015Blij",preview:"Podgl\u0105d",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",select_template:"Wybierz Szablon",choose_file:"Kliknij tutaj, aby wybra\u0107 plik",choose_template:"Wybierz szablon",choose:"Wybierz",remove:"Usu\u0144",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:"Test konfiguracji poczty",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!",copied_url_clipboard:"Skopiowano adres URL do schowka!",docs:"Dokumentacja",do_you_wish_to_continue:"Czy chcesz kontynuowa\u0107?",note:"Uwaga",pay_invoice:"Zap\u0142a\u0107 Faktur\u0119",login_successfully:"Zalogowano pomy\u015Blnie!",logged_out_successfully:"Wylogowano pomy\u015Blnie",mark_as_default:"Mark as default"},lu={select_year:"Wybierz rok",cards:{due_amount:"Do zap\u0142aty",customers:"Kontrahenci",invoices:"Faktury",estimates:"Oferty",payments:"P\u0142atno\u015Bci"},chart_info:{total_sales:"Sprzeda\u017C",total_receipts:"Przychody",total_expense:"Wydatki",net_income:"Doch\xF3d netto",year:"Wybierz rok"},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:"Klient",amount_due:"Do zap\u0142aty",actions:"Akcje",view_all:"Zobacz wszystkie"}},cu={name:"Nazwa",description:"Opis",percent:"Procent",compound_tax:"Podatek z\u0142o\u017Cony"},_u={search:"Szukaj...",customers:"Klienci",users:"U\u017Cytkownicy",no_results_found:"Nie znaleziono wynik\xF3w"},uu={label:"PRZE\u0141\u0104CZ FIRM\u0118",no_results_found:"Nie Znaleziono Wynik\xF3w",add_new_company:"Dodaj now\u0105 firm\u0119",new_company:"Nowa firma",created_message:"Firma utworzona pomy\u015Blnie"},mu={today:"Dzisiaj",this_week:"Ten tydzie\u0144",this_month:"Ten miesi\u0105c",this_quarter:"Ten kwarta\u0142",this_year:"Ten rok",previous_week:"Poprzedni Tydzie\u0144",previous_month:"Poprzedni miesi\u0105c",previous_quarter:"Poprzedni kwarta\u0142",previous_year:"Poprzedni Rok",custom:"Niestandardowy"},pu={title:"Klienci",prefix:"Przedrostek",add_customer:"Dodaj klienta",contacts_list:"Lista klient\xF3w",name:"Nazwa",mail:"Poczta | Poczta",statement:"Komunikat",display_name:"Nazwa wy\u015Bwietlana",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",invoice_prefix:"Przedrostek Faktury",estimate_prefix:"Przedrostek Oferty",payment_prefix:"Przedrostek P\u0142atno\u015Bci",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\u0142o",confirm_password:"Potwierd\u017A Has\u0142o",street_number:"Numer ulicy",primary_currency:"Waluta g\u0142\xF3wna",description:"Opis",add_new_customer:"Dodaj nowego klienta",save_customer:"Zapisz klienta",update_customer:"Aktualizuj klienta",customer:"Klient | Klienci",new_customer:"Nowy klient",edit_customer:"Edytuj klienta",basic_info:"Podstawowe informacje",portal_access:"Panel Klienta",portal_access_text:"Czy chcesz zezwoli\u0107 temu klientowi na logowanie do Panelu Klienta?",portal_access_url:"Adres URL Panelu Klienta",portal_access_url_help:"Skopiuj i prze\u015Blij powy\u017Cszy adres URL do klienta w celu zapewnienia dost\u0119pu.",billing_address:"Adres do faktury",shipping_address:"Adres dostawy",copy_billing_address:"Kopiuj z rachunku",no_customers:"Brak klient\xF3w!",no_customers_found:"Nie znaleziono klient\xF3w!",no_contact:"Brak kontaktu",no_contact_name:"Brak nazwy kontaktu",list_of_customers:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 klient\xF3w.",primary_display_name:"G\u0142\xF3wna nazwa wy\u015Bwietlana",select_currency:"Wybierz walut\u0119",select_a_customer:"Wybierz klienta",type_or_click:"Wpisz lub kliknij aby wybra\u0107",new_transaction:"Nowa transakcja",no_matching_customers:"Brak pasuj\u0105cych klient\xF3w!",phone_number:"Numer telefonu",create_date:"Data utworzenia",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego klienta i wszystkich powi\u0105zanych faktur, ofert i p\u0142atno\u015Bci. | Nie b\u0119dziesz w stanie odzyska\u0107 tych klient\xF3w i wszystkich powi\u0105zanych faktur, ofert i p\u0142atno\u015Bci.",created_message:"Klient zosta\u0142 utworzony poprawnie",updated_message:"Klient zosta\u0142 zaktualizowany poprawnie",address_updated_message:"Pomy\u015Blnie zaktualizowano informacje adresowe",deleted_message:"Klient zosta\u0142 usuni\u0119ty pomy\u015Blnie | Klienci zostali usuni\u0119ci pomy\u015Blnie",edit_currency_not_allowed:"Nie mo\u017Cna zmieni\u0107 waluty po utworzeniu transakcji."},fu={title:"Pozycje",items_list:"Lista pozycji",name:"Nazwa",unit:"Jednostka",description:"Opis",added_on:"Dodano",price:"Cena",date_of_creation:"Data utworzenia",not_selected:"Nie wybrano element\xF3w",action:"Akcja",add_item:"Dodaj pozycj\u0119",save_item:"Zapisz przedmiot",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"},gu={title:"Oferty",accept_estimate:"Zaakceptuj Ofert\u0119",reject_estimate:"Odrzu\u0107 Ofert\u0119",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:"KLIENT",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",expired:"Wygas\u0142a",sent:"Wys\u0142ano",draft:"Wersja robocza",viewed:"Wy\u015Bwietlona",declined:"Odrzucona",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",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},vu={title:"Faktury",download:"Pobierz",pay_invoice:"Zap\u0142a\u0107 Faktur\u0119",invoices_list:"Lista faktur",invoice_information:"Informacje o Fakturze",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:"KLIENT",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",conversion_message:"Faktura sklonowana pomy\u015Blnie",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_mark_as_accepted:"Ta faktura zostanie oznaczona jako Zaakceptowana",confirm_mark_as_rejected:"Ta faktura zostanie oznaczona jako Odrzucona",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!",mark_as_rejected:"Oznacz jako odrzucon\u0105",mark_as_accepted:"Oznacz jako zaakceptowan\u0105",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",invoice_sent_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",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},yu={title:"Faktury cykliczne",invoices_list:"Lista Faktur Cyklicznych",days:"{days} Dni",months:"{months} Miesi\u0119cy",years:"{years} Lat",all:"Wszystkie",paid:"Zap\u0142acone",unpaid:"Niezap\u0142acone",viewed:"Przegl\u0105dane",overdue:"Zaleg\u0142e",active:"Aktywne",completed:"Uko\u0144czone",customer:"KLIENT",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:"Suma Po\u015Brednia",invoice:"Faktura Cykliczna | Faktury Cykliczne",invoice_number:"Numer Faktury Cyklicznej",next_invoice_date:"Data nast\u0119pnej Faktury",ref_number:"Numer ref.",contact:"Kontakt",add_item:"Dodaj pozycj\u0119",date:"Data",limit_by:"Ogranicz przez",limit_date:"Data ostateczna",limit_count:"Limit ilo\u015Bci",count:"Liczba",status:"Status",select_a_status:"Wybierz status",working:"Pracuj\u0119",on_hold:"Wstrzymane",complete:"Uko\u0144czone",add_tax:"Dodaj podatek",amount:"Kwota",action:"Akcja",notes:"Notatki",view:"Podgl\u0105d",basic_info:"Podstawowe informacje",send_invoice:"Wy\u015Blij Faktur\u0119 Cykliczn\u0105",auto_send:"Automatyczna Wysy\u0142ka",resend_invoice:"Wy\u015Blij ponownie Faktur\u0119 Cykliczn\u0105",invoice_template:"Szablon Faktury Cyklicznej",conversion_message:"Faktura Cykliczna sklonowana pomy\u015Blnie",template:"Szablon",mark_as_sent:"Oznacz jako wys\u0142ane",confirm_send_invoice:"Ta faktura cykliczna zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do klienta",invoice_mark_as_sent:"Ta faktura cykliczna zostanie oznaczona jako wys\u0142ana",confirm_send:"Ta faktura cykliczna zostanie wys\u0142ana poczt\u0105 elektroniczn\u0105 do klienta",starts_at:"Data wystawienia",due_date:"Termin p\u0142atno\u015Bci faktury",record_payment:"Zarejestruj p\u0142atno\u015B\u0107",add_new_invoice:"Dodaj now\u0105 faktur\u0119 cykliczn\u0105",update_expense:"Zaktualizuj wydatek",edit_invoice:"Edytuj faktur\u0119 cykliczn\u0105",new_invoice:"Nowa Faktura Cykliczna",send_automatically:"Wysy\u0142aj automatycznie",send_automatically_desc:"W\u0142\u0105cz to, je\u015Bli chcesz automatycznie wys\u0142a\u0107 faktur\u0119 do klienta po jej utworzeniu.",save_invoice:"Zapisz Faktur\u0119 Cykliczn\u0105",update_invoice:"Zaktualizuj Faktur\u0119 Cykliczn\u0105",add_new_tax:"Dodaj Nowy Podatek",no_invoices:"Brak faktur cyklicznych!",mark_as_rejected:"Oznacz jako odrzucona",mark_as_accepted:"Oznacz jako zaakceptowana",list_of_invoices:"Ta sekcja b\u0119dzie zawiera\u0107 list\u0119 faktur cyklicznych.",select_invoice:"Wybierz faktur\u0119",no_matching_invoices:"Brak pasuj\u0105cych faktur cyklicznych!",mark_as_sent_successfully:"Faktura Cykliczna oznaczona jako wys\u0142ana pomy\u015Blnie",invoice_sent_successfully:"Faktura Cykliczna wys\u0142ana pomy\u015Blnie",cloned_successfully:"Faktura Cykliczna sklonowana pomy\u015Blnie",clone_invoice:"Klonuj Faktur\u0119 Cykliczn\u0105",confirm_clone:"Ta faktura cykliczna zostanie sklonowana do nowej faktury cyklicznej",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)"},frequency:{title:"Cz\u0119stotliwo\u015B\u0107",select_frequency:"Wybierz cz\u0119stotliwo\u015B\u0107",minute:"Minuta",hour:"Godzina",day_month:"Dzie\u0144 miesi\u0105ca",month:"Miesi\u0105c",day_week:"Dzie\u0144 tygodnia"},confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej faktury | Nie b\u0119dziesz w stanie odzyska\u0107 tych faktur",created_message:"Faktura Cykliczna utworzona pomy\u015Blnie",updated_message:"Faktura Cykliczna zaktualizowana pomy\u015Blnie",deleted_message:"Faktura Cykliczna usuni\u0119ta pomy\u015Blnie | Faktury Cykliczne usuni\u0119te pomy\u015Blnie",marked_as_sent_message:"Faktura Cykliczna 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 cyklicznej nie mo\u017Ce by\u0107 mniejsza ni\u017C ca\u0142kowita kwota zap\u0142acona za t\u0119 faktur\u0119 cykliczn\u0105. Prosz\u0119 zaktualizowa\u0107 faktur\u0119 lub usun\u0105\u0107 powi\u0105zane p\u0142atno\u015Bci, aby kontynuowa\u0107."},hu={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",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"},bu={title:"Wydatki",expenses_list:"Lista wydatk\xF3w",select_a_customer:"Wybierz kontrahenta",expense_title:"Tytu\u0142",customer:"Kontrahent",currency:"Waluta",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"}},ku={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"},wu={buy_now:"Kup teraz",install:"Instaluj",price:"Cena",download_zip_file:"Pobierz plik ZIP",unzipping_package:"Rozpakowywanie pakietu",copying_files:"Kopiowanie plik\xF3w",deleting_files:"Usuwanie nieu\u017Cywanych plik\xF3w",completing_installation:"Ko\u0144czenie instalacji",update_failed:"Aktualizacja nie powiod\u0142a si\u0119",install_success:"Pomy\u015Blnie zainstalowano Modu\u0142!",customer_reviews:"Opinie",license:"Licencja",faq:"Najcz\u0119\u015Bciej zadawane pytania (FAQ)",monthly:"Miesi\u0119cznie",yearly:"Rocznie",updated:"Zaktualizowano",version:"Wersja",disable:"Wy\u0142acz",module_disabled:"Modu\u0142 Wy\u0142\u0105czony",enable:"W\u0142\u0105cz",module_enabled:"Modu\u0142 W\u0142\u0105czony",update_to:"Aktualizuj do",module_updated:"Modu\u0142 zaktualizowany pomy\u015Blnie!",title:"Modu\u0142y",module:"Modu\u0142 | Modu\u0142y",api_token:"Token API",invalid_api_token:"Nieprawid\u0142owy token API.",other_modules:"Pozosta\u0142e Modu\u0142y",view_all:"Zobacz Wszystkie",no_reviews_found:"Brak opinii dla tego Modu\u0142u!",module_not_purchased:"Modu\u0142 niezakupiony",module_not_found:"Nie znaleziono modu\u0142u",version_not_supported:"Ta wersja modu\u0142u nie obs\u0142uguje bie\u017C\u0105cej wersji Aplikacji",last_updated:"Ostatnio aktualizowany",connect_installation:"Po\u0142\u0105cz swoj\u0105 instalacj\u0119",api_token_description:"Zaloguj si\u0119 do {url} i pod\u0142\u0105cz t\u0119 instalacj\u0119 wprowadzaj\u0105c token API. Zakupione modu\u0142y pojawi\u0105 si\u0119 tutaj po nawi\u0105zaniu po\u0142\u0105czenia.",view_module:"Zobacz modu\u0142",update_available:"Aktualizacja Dost\u0119pna",purchased:"Zakupiono",installed:"Zainstalowano",no_modules_installed:"Brak zainstalowanych modu\u0142\xF3w!",disable_warning:"Wszystkie ustawienia dla tego konkretnego zostan\u0105 przywr\xF3cone.",what_you_get:"Co otrzymasz"},zu={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",select_company_role:"Wybierz Rol\u0119 dla {company}",companies:"Firmy"},xu={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"}},Pu={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",exchange_rate:"Kurs wymiany",address_information:"Informacje Adresowe"},address_information:{section_description:" Mo\u017Cesz zaktualizowa\u0107 informacje o adresie za pomoc\u0105 poni\u017Cszego formularza."},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",delete:"Usu\u0144",updated_message:"Informacje o firmie zosta\u0142y pomy\u015Blnie zaktualizowane",delete_company:"Usu\u0144 firm\u0119",delete_company_description:"Po usuni\u0119ciu firmy stracisz na sta\u0142e wszystkie dane i pliki z ni\u0105 powi\u0105zane.",are_you_absolutely_sure:"Czy jeste\u015B absolutnie pewien?",delete_company_modal_desc:"Tej akcji nie mo\u017Cna cofn\u0105\u0107. Spowoduje to trwa\u0142e usuni\u0119cie {company} i wszystkich powi\u0105zanych z ni\u0105 danych.",delete_company_modal_label:"Wpisz {company} aby potwierdzi\u0107"},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",slug:"Przyjazny link",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",press_enter_to_add:"Naci\u015Bnij Enter, aby doda\u0107 now\u0105 opcj\u0119",model_in_use:"Nie mo\u017Cna zaktualizowa\u0107 modelu dla p\xF3l, kt\xF3re s\u0105 ju\u017C u\u017Cywane.",type_in_use:"Nie mo\u017Cna zaktualizowa\u0107 typu dla p\xF3l, kt\xF3re s\u0105 ju\u017C u\u017Cywane."},customization:{customization:"dostosowywanie",updated_message:"Informacje o firmie zosta\u0142y pomy\u015Blnie zaktualizowane",save:"Zapisz",insert_fields:"Wstaw pola",learn_custom_format:"Dowiedz si\u0119, jak u\u017Cywa\u0107 niestandardowego formatu",add_new_component:"Dodaj sk\u0142adnik",component:"Sk\u0142adnik",Parameter:"Parametr",series:"Serie",series_description:"Aby ustawi\u0107 statyczny przedrostek / przyrostek, taki jak 'INV' dla ca\u0142ej firmy. Obs\u0142ugiwana d\u0142ugo\u015B\u0107 do 6 znak\xF3w.",series_param_label:"Warto\u015B\u0107 serii",delimiter:"Separator",delimiter_description:"Pojedynczy znak do okre\u015Blenia granicy pomi\u0119dzy 2 oddzielnymi sk\u0142adnikami. Domy\u015Blnie ustawiony na -",delimiter_param_label:"Warto\u015B\u0107 separatora",date_format:"Format daty",date_format_description:"Pole daty i czasu lokalnego, kt\xF3re akceptuje parametr formatu. Domy\u015Blny format: 'Y' renderuje bie\u017C\u0105cy rok.",date_format_param_label:"Format",sequence:"Sekwencja",sequence_description:"Ci\u0105g\u0142a sekwencja numer\xF3w w firmie. Mo\u017Cesz okre\u015Bli\u0107 d\u0142ugo\u015B\u0107 podanego parametru.",sequence_param_label:"D\u0142ugo\u015B\u0107 sekwencji",customer_series:"Seria klient\xF3w",customer_series_description:"Aby ustawi\u0107 inny przedrostek / przyrostek dla ka\u017Cdego klienta.",customer_sequence:"Sekwencja Klienta",customer_sequence_description:"Ci\u0105g\u0142a sekwencja numer\xF3w dla ka\u017Cdego klienta.",customer_sequence_param_label:"D\u0142ugo\u015B\u0107 sekwencji",random_sequence:"Losowa sekwencja",random_sequence_description:"Losowy ci\u0105g alfanumeryczny. Mo\u017Cesz okre\u015Bli\u0107 d\u0142ugo\u015B\u0107 podanego parametru.",random_sequence_param_label:"D\u0142ugo\u015B\u0107 sekwencji",invoices:{title:"Faktury",invoice_number_format:"Format Numer Faktury",invoice_number_format_description:"Dostosuj spos\xF3b generowania numeru faktury podczas tworzenia nowej faktury.",preview_invoice_number:"Podgl\u0105d Numer faktury",due_date:"Termin p\u0142atno\u015Bci",due_date_description:"Okre\u015Bl, w jaki spos\xF3b termin p\u0142atno\u015Bci jest ustawiany automatycznie podczas tworzenia faktury.",due_date_days:"Faktura do zap\u0142aty po dniach",set_due_date_automatically:"Ustaw termin p\u0142atno\u015Bci automatycznie",set_due_date_automatically_description:"W\u0142\u0105cz t\u0119 opcj\u0119, je\u015Bli chcesz ustawi\u0107 termin p\u0142atno\u015Bci automatycznie podczas tworzenia nowej faktury.",default_formats:"Formaty domy\u015Blne",default_formats_description:"Poni\u017Cej podane formaty s\u0105 u\u017Cywane do automatycznego wype\u0142niania p\xF3l przy tworzeniu faktury.",default_invoice_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila faktury",company_address_format:"Format adresu firmy",shipping_address_format:"Format adresu dostawy",billing_address_format:"Format adresu do faktury",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.",invoice_settings_updated:"Ustawienia faktury zosta\u0142y pomy\u015Blnie zaktualizowane",retrospective_edits:"Edycje Wsteczne",allow:"Zezw\xF3l",disable_on_invoice_partial_paid:"Wy\u0142\u0105cz po zarejestrowaniu p\u0142atno\u015Bci cz\u0119\u015Bciowej",disable_on_invoice_paid:"Wy\u0142\u0105cz po zarejestrowaniu ca\u0142ej p\u0142atno\u015Bci",disable_on_invoice_sent:"Wy\u0142\u0105cz po wys\u0142aniu faktury",retrospective_edits_description:" Na podstawie prawa krajowego lub twoich preferencji, mo\u017Cesz ograniczy\u0107 u\u017Cytkownik\xF3w do edycji uko\u0144czonych faktur."},estimates:{title:"Oferty",estimate_number_format:"Format Numeru Oferty",estimate_number_format_description:"Dostosuj spos\xF3b generowania numeru oferty podczas tworzenia nowej oferty.",preview_estimate_number:"Podgl\u0105d Numeru Oferty",expiry_date:"Data wyga\u015Bni\u0119cia",expiry_date_description:"Okre\u015Bl, w jaki spos\xF3b data wyga\u015Bni\u0119cia jest ustawiana automatycznie podczas tworzenia oferty.",expiry_date_days:"Oferta wygasa po dniach",set_expiry_date_automatically:"Ustaw automatycznie dat\u0119 wyga\u015Bni\u0119cia",set_expiry_date_automatically_description:"W\u0142\u0105cz to, je\u015Bli chcesz ustawi\u0107 automatycznie dat\u0119 wyga\u015Bni\u0119cia, gdy tworzysz now\u0105 ofert\u0119.",default_formats:"Formaty domy\u015Blne",default_formats_description:"Poni\u017Cej podane formaty s\u0105 u\u017Cywane do automatycznego wype\u0142niania p\xF3l przy tworzeniu oferty.",default_estimate_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila oferty",company_address_format:"Format adresu firmy",shipping_address_format:"Format adresu dostawy",billing_address_format:"Format adresu do faktury",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.",estimate_settings_updated:"Ustawienia oferty zosta\u0142y pomy\u015Blnie zaktualizowane",convert_estimate_options:"Akcja konwersji Oferty",convert_estimate_description:"Okre\u015Bl co dzieje si\u0119 z ofert\u0105 po przekonwertowaniu jej w faktur\u0119.",no_action:"Brak akcji",delete_estimate:"Usu\u0144 ofert\u0119",mark_estimate_as_accepted:"Oznacz jako zaakceptowan\u0105"},payments:{title:"P\u0142atno\u015Bci",payment_number_format:"Format Numeru P\u0142atno\u015Bci",payment_number_format_description:"Dostosuj spos\xF3b generowania numeru p\u0142atno\u015Bci podczas tworzenia nowej p\u0142atno\u015Bci.",preview_payment_number:"Podgl\u0105d Numeru P\u0142atno\u015Bci",default_formats:"Formaty domy\u015Blne",default_formats_description:"Poni\u017Cej podane formaty s\u0105 u\u017Cywane do automatycznego wype\u0142niania p\xF3l przy tworzeniu p\u0142atno\u015Bci.",default_payment_email_body:"Domy\u015Blny nag\u0142\xF3wek e-maila p\u0142atno\u015Bci",company_address_format:"Format adresu firmy",from_customer_address_format:"Format adresu nadawcy",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.",payment_settings_updated:"Ustawienia p\u0142atno\u015Bci zosta\u0142y pomy\u015Blnie zaktualizowane"},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"},roles:{title:"Role",description:"Zarz\u0105dzaj rolami i uprawnieniami tej firmy",save:"Zapisz",add_new_role:"Dodaj now\u0105 Rol\u0119",role_name:"Nazwa Roli",added_on:"Dodano",add_role:"Dodaj Rol\u0119",edit_role:"Edytuj Rol\u0119",name:"Nazwa",permission:"Uprawnienie | Uprawnienia",select_all:"Zaznacz Wszystko",none:"\u017Badne",confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tej Roli",created_message:"Rola utworzona pomy\u015Blnie",updated_message:"Rola pomy\u015Blnie zaktualizowana",deleted_message:"Rola pomy\u015Blnie usuni\u0119ta",already_in_use:"Rola jest ju\u017C w u\u017Cyciu"},exchange_rate:{exchange_rate:"Kurs wymiany",title:"Napraw problemy wymiany walut",description:"Wprowad\u017A kurs wymiany wszystkich walut wymienionych poni\u017Cej, aby pom\xF3c Aplikacji we w\u0142a\u015Bciwym obliczeniu kwot w {currency}.",drivers:"Sterowniki",new_driver:"Dodaj nowego dostawc\u0119",edit_driver:"Edytuj dostawc\u0119",select_driver:"Wybierz sterownik",update:"wybierz kurs wymiany ",providers_description:"Skonfiguruj dostawc\xF3w kursu wymiany walut, aby automatycznie pobiera\u0107 najnowszy kurs wymiany walut.",key:"Klucz API",name:"Nazwa",driver:"Sterownik",is_default:"JEST DOMY\u015ALNY",currency:"Waluty",exchange_rate_confirm_delete:"Nie b\u0119dziesz w stanie odzyska\u0107 tego sterownika",created_message:"Dostawca utworzony pomy\u015Blnie",updated_message:"Dostawca zaktualizowany pomy\u015Blnie",deleted_message:"Dostawca usuni\u0119ty pomy\u015Blnie",error:" Nie mo\u017Cna usun\u0105\u0107 aktywnego sterownika",default_currency_error:"Ta waluta jest ju\u017C u\u017Cywana w jednym z aktywnych dostawc\xF3w",exchange_help_text:"Wprowad\u017A kurs wymiany walut, aby przeliczy\u0107 z {currency} na {baseCurrency}",currency_freak:"Currency Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"Przelicznik walut",server:"Serwer",url:"Adres URL",active:"Aktywny",currency_help_text:"Ten dostawca b\u0119dzie u\u017Cywany tylko dla wybranych walut",currency_in_used:"Nast\u0119puj\u0105ce waluty s\u0105 ju\u017C aktywne u innego dostawcy. Usu\u0144 te waluty z wyboru, aby ponownie aktywowa\u0107 tego dostawc\u0119."},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"},payment_modes:{title:"Metody P\u0142atno\u015Bci",description:"Sposoby transakcji dla p\u0142atno\u015Bci",add_payment_mode:"Dodaj metod\u0119 p\u0142atno\u015Bci",edit_payment_mode:"Edytuj metod\u0119 p\u0142atno\u015Bci",mode_name:"Nazwa metody",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",payments_attached:"Ta metoda p\u0142atno\u015Bci jest ju\u017C do\u0142\u0105czona do p\u0142atno\u015Bci. Prosz\u0119 usun\u0105\u0107 za\u0142\u0105czone p\u0142atno\u015Bci, aby kontynuowa\u0107 usuwanie.",expenses_attached:"Ta metoda p\u0142atno\u015Bci jest ju\u017C do\u0142\u0105czona do wydatk\xF3w. Prosz\u0119 usun\u0105\u0107 za\u0142\u0105czone wydatki, aby kontynuowa\u0107 usuwanie.",deleted_message:"Metoda p\u0142atno\u015Bci zosta\u0142a pomy\u015Blnie usuni\u0119ta"},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.",expire_public_links:"Automatycznie wygasaj linki publiczne",expire_setting_description:"Okre\u015Bl czy chcesz wygasza\u0107 wszystkie linki wys\u0142ane przez aplikacj\u0119 w celu przegl\u0105dania faktur, ofert i p\u0142atno\u015Bci itp. po okre\u015Blonym czasie.",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",recurring_invoice_status:"Status Faktury Cyklicznej",create_status:"Utw\xF3rz status",active:"Aktywne",on_hold:"Wstrzymane",update_status:"Aktualizuj status",completed:"Uko\u0144czone",company_currency_unchangeable:"Nie mo\u017Cna zmieni\u0107 waluty firmy"},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}",update_warning:"Wszystkie pliki aplikacji i domy\u015Blne pliki szablonu zostan\u0105 nadpisane podczas aktualizacji aplikacji przy u\u017Cyciu tego narz\u0119dzia. Przed aktualizacj\u0105 wykonaj kopi\u0119 zapasow\u0105 szablon\xF3w i bazy danych."},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"},taxations:{add_billing_address:"Wprowad\u017A adres do faktury",add_shipping_address:"Wprowad\u017A adres do wysy\u0142ki",add_company_address:"Wprowad\u017A adres firmy",modal_description:"Poni\u017Csze informacje s\u0105 wymagane do pobrania podatku od sprzeda\u017Cy.",add_address:"Dodaj adres do pobierania podatku od sprzeda\u017Cy.",address_placeholder:"Przyk\u0142ad: 123, Moja ulica",city_placeholder:"Przyk\u0142ad: Los Angeles",state_placeholder:"Przyk\u0142ad: CA",zip_placeholder:"Przyk\u0142ad: 90024",invalid_address:"Podaj poprawne dane adresowe."}},Su={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.",currency_set_alert:"Nie mo\u017Cna p\xF3\u017Aniej zmieni\u0107 waluty firmy.",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.",failed:"Weryfikacja domeny nie powiod\u0142a si\u0119. Podaj prawid\u0142ow\u0105 nazw\u0119 domeny.",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",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",database_variables_save_successfully:"Baza danych zosta\u0142a skonfigurowana poprawnie."}},ju={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.",prefix_min_length:"Przedrostek musi mie\u0107 co najmniej {count} liter.",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.",discount_maxlength:"Rabat nie powinien by\u0107 wi\u0119kszy ni\u017C maksymalny rabat",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",at_least_one_ability:"Wybierz co najmniej jedno Uprawnienie.",valid_driver_key:"Wprowad\u017A prawid\u0142owy klucz {driver}.",valid_exchange_rate:"Wprowad\u017A prawid\u0142owy kurs wymiany.",company_name_not_same:"Nazwa firmy musi si\u0119 zgadza\u0107 z podan\u0105 nazw\u0105."},Au={starter_plan:"Ta funkcja jest dost\u0119pna w abonamencie Starter i wy\u017Cszych!",invalid_provider_key:"Wprowad\u017A poprawny klucz API dostawcy.",estimate_number_used:"Numer oferty jest ju\u017C u\u017Cyty.",invoice_number_used:"Numer faktury jest ju\u017C u\u017Cyty.",payment_attached:"Ta faktura ma ju\u017C do\u0142\u0105czon\u0105 p\u0142atno\u015B\u0107. Najpierw usu\u0144 za\u0142\u0105czone p\u0142atno\u015Bci, aby kontynuowa\u0107 usuwanie.",payment_number_used:"Numer p\u0142atno\u015Bci jest ju\u017C u\u017Cyty.",name_already_taken:"Nazwa jest ju\u017C\xA0u\u017Cyta.",receipt_does_not_exist:"Potwierdzenie nie istnieje.",customer_cannot_be_changed_after_payment_is_added:"Klient nie mo\u017Ce by\u0107 zmieniony po dodaniu p\u0142atno\u015Bci",invalid_credentials:"Nieprawid\u0142owe dane.",not_allowed:"Niedozwolone",login_invalid_credentials:"Wprowadzone po\u015Bwiadczenia s\u0105 nieprawid\u0142owe.",enter_valid_cron_format:"Wprowad\u017A prawid\u0142owy format cron",email_could_not_be_sent:"Nie mo\u017Cna wys\u0142a\u0107 wiadomo\u015Bci na ten adres e-mail.",invalid_address:"Wprowad\u017A prawid\u0142owy adres.",invalid_key:"Wprowad\u017A prawid\u0142owy klucz.",invalid_state:"Wprowad\u017A poprawny stan/wojew\xF3dztwo.",invalid_city:"Wprowad\u017A prawid\u0142ow\u0105 nazw\u0119 miasta.",invalid_postal_code:"Wprowad\u017A prawid\u0142owy kod pocztowy.",invalid_format:"Wprowad\u017A prawid\u0142owy format ci\u0105gu.",api_error:"Serwer nie odpowiada.",feature_not_enabled:"Funkcja nie jest w\u0142\u0105czona.",request_limit_met:"Przekroczono limit \u017C\u0105dania API.",address_incomplete:"Niekompletny adres"},Du="Oferta",Cu="Numer oferty",Nu="Data oferty",Eu="Termin wa\u017Cno\u015Bci",Iu="Faktura",Tu="Numer faktury",Ru="Data faktury",Mu="Termin",Fu="Notatki",$u="Pozycje",Uu="Ilo\u015B\u0107",Vu="Cena",Ou="Rabat",Lu="Kwota",qu="Suma cz\u0119\u015Bciowa",Bu="Razem",Ku="P\u0142atno\u015B\u0107",Zu="POTWIERDZENIE P\u0141ATNO\u015ACI",Wu="Data p\u0142atno\u015Bci",Hu="Numer p\u0142atno\u015Bci",Yu="Metoda p\u0142atno\u015Bci",Gu="Kwota otrzymana",Ju="SPRAWOZDANIE Z WYDATK\xD3W",Qu="WYDATKI OG\xD3\u0141EM",Xu="RAPORT ZYSK\xD3W I STRAT",em="Raport sprzeda\u017Cy obs\u0142ugi kontrahenta",tm="Raport dotycz\u0105cy przedmiotu sprzeda\u017Cy",am="Raport podsumowania podatku",nm="PRZYCH\xD3D",im="ZYSK NETTO",om="Raport sprzeda\u017Cy: Wed\u0142ug Kontrahenta",sm="CA\u0141KOWITA SPRZEDA\u017B",rm="Raport sprzeda\u017Cy: Wed\u0142ug produktu",dm="RAPORT PODATKOWY",lm="CA\u0141KOWITY PODATEK",cm="Rodzaje podatku",_m="Wydatki",um="Wystawiono dla",mm="Wysy\u0142ka do",pm="Otrzymane od:",fm="Podatek";var gm={navigation:ru,general:du,dashboard:lu,tax_types:cu,global_search:_u,company_switcher:uu,dateRange:mu,customers:pu,items:fu,estimates:gu,invoices:vu,recurring_invoices:yu,payments:hu,expenses:bu,login:ku,modules:wu,users:zu,reports:xu,settings:Pu,wizard:Su,validation:ju,errors:Au,pdf_estimate_label:Du,pdf_estimate_number:Cu,pdf_estimate_date:Nu,pdf_estimate_expire_date:Eu,pdf_invoice_label:Iu,pdf_invoice_number:Tu,pdf_invoice_date:Ru,pdf_invoice_due_date:Mu,pdf_notes:Fu,pdf_items_label:$u,pdf_quantity_label:Uu,pdf_price_label:Vu,pdf_discount_label:Ou,pdf_amount_label:Lu,pdf_subtotal:qu,pdf_total:Bu,pdf_payment_label:Ku,pdf_payment_receipt_label:Zu,pdf_payment_date:Wu,pdf_payment_number:Hu,pdf_payment_mode:Yu,pdf_payment_amount_received_label:Gu,pdf_expense_report_label:Ju,pdf_total_expenses_label:Qu,pdf_profit_loss_label:Xu,pdf_sales_customers_label:em,pdf_sales_items_label:tm,pdf_tax_summery_label:am,pdf_income_label:nm,pdf_net_profit_label:im,pdf_customer_sales_report:om,pdf_total_sales_label:sm,pdf_item_sales_label:rm,pdf_tax_report_label:dm,pdf_total_tax_label:lm,pdf_tax_types_label:cm,pdf_expenses_label:_m,pdf_bill_to:um,pdf_ship_to:mm,pdf_received_from:pm,pdf_tax_label:fm};const vm={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"},ym={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"},hm={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"}},bm={name:"Nome",description:"Descri\xE7\xE3o",percent:"Porcentagem",compound_tax:"Imposto compuesto"},km={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"},wm={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"},zm={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)"}},xm={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."},Pm={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"},Sm={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"}},jm={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"},Am={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"}},Dm={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"}},Cm={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."}},Nm={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 Em={navigation:vm,general:ym,dashboard:hm,tax_types:bm,customers:km,items:wm,estimates:zm,invoices:xm,payments:Pm,expenses:Sm,login:jm,reports:Am,settings:Dm,wizard:Cm,validation:Nm};const Im={dashboard:"Pannello di controllo",customers:"Clienti",items:"Commesse",invoices:"Fatture","recurring-invoices":"Fatture ricorrenti",expenses:"Spese",estimates:"Preventivi",payments:"Pagamenti",reports:"Rapporti",settings:"Configurazione",logout:"Disconnessione",users:"Utenti",modules:"Moduli"},Tm={add_company:"Aggiungi azienda",view_pdf:"Vedi PDF",copy_pdf_url:"Copia URL PDF",download_pdf:"Scarica PDF",save:"Salva",create:"Crea",cancel:"Elimina",update:"Aggiorna",deselect:"Deseleziona",download:"Scarica",from_date:"Dalla Data",to_date:"Alla Data",from:"Da",to:"A",ok:"Ok",yes:"S\xEC",no:"No",sort_by:"Ordina per",ascending:"Crescente",descending:"Decrescente",subject:"Oggetto",body:"Corpo",message:"Messaggio",send:"Invia",preview:"Anteprima",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:"Visualizzo",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",select_template:"Seleziona Template",choose_file:"Clicca per selezionare un file",choose_template:"Scegli un modello",choose:"Scegli",remove:"Rimuovi",select_a_status:"Seleziona uno Stato",select_a_tax:"Seleziona imposta",search:"Cerca",are_you_sure:"Sei sicuro/a?",list_is_empty:"La lista \xE8 vuota.",no_tax_found:"Nessuna imposta 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:"Riprova",choose_note:"Scegli Nota",no_note_found:"Nessuna Nota Trovata",insert_note:"Inserisci Nota",copied_pdf_url_clipboard:"Url PDF copiato negli appunti!",copied_url_clipboard:"URL copiato negli appunti!",docs:"Documenti",do_you_wish_to_continue:"Vuoi continuare?",note:"Nota",pay_invoice:"Paga Fattura",login_successfully:"Accesso effettuato con successo!",logged_out_successfully:"Disconnessione riuscita",mark_as_default:"Contrassegna come predefinito"},Rm={select_year:"Seleziona anno",cards:{due_amount:"Somma dovuta",customers:"Clienti",invoices:"Fatture",estimates:"Preventivi",payments:"Pagamenti"},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"}},Mm={name:"Nome",description:"Descrizione",percent:"Percento",compound_tax:"Imposta composta"},Fm={search:"Cerca...",customers:"Clienti",users:"Utenti",no_results_found:"Nessun Risultato Trovato"},$m={label:"CAMBIA AZIENDA",no_results_found:"Nessun Risultato Trovato",add_new_company:"Aggiungi una nuova azienda",new_company:"Nuova Azienda",created_message:"Azienda creata con successo"},Um={today:"Oggi",this_week:"Questa Settimana",this_month:"Questo mese",this_quarter:"Questo Trimestre",this_year:"Anno corrente",previous_week:"Settimana precedente",previous_month:"Mese precedente",previous_quarter:"Trimestre Precedente",previous_year:"Anno Precedente",custom:"Personalizzato"},Vm={title:"Clienti",prefix:"Prefisso",add_customer:"Aggiungi cliente",contacts_list:"Lista clienti",name:"Nome",mail:"Mail | Mails",statement:"Dichiarazione",display_name:"Nome Visibile",primary_contact_name:"Riferimento",contact_name:"Nome Contatto",amount_due:"Ammontare dovuto",email:"Email",address:"Indirizzo",phone:"Telefono",website:"Sito web",overview:"Panoramica",invoice_prefix:"Prefisso Fattura",estimate_prefix:"Prefisso Preventivi",payment_prefix:"Prefisso Pagamento",enable_portal:"Abilita Portale",country:"Paese",state:"Provincia",city:"Citt\xE0",zip_code:"Codice Postale",added_on:"Aggiunto il",action:"Azione",password:"Password",confirm_password:"Conferma 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",portal_access:"Accesso al Portale",portal_access_text:"Vuoi consentire a questo cliente di accedere al Portale Clienti?",portal_access_url:"URL Login Portale Cliente",portal_access_url_help:"Copia e inoltra l'URL sopra indicato al tuo cliente per fornire l'accesso.",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:"Nessun contatto",no_contact_name:"Nessun nome del contatto",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",address_updated_message:"Indirizzo aggiornato con successo",deleted_message:"Cliente cancellato con successo | Clienti cancellati con successo",edit_currency_not_allowed:"Impossibile cambiare valuta, dopo aver creato transazioni."},Om={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:"Nessun elemento selezionato",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"},Lm={title:"Preventivi",accept_estimate:"Accetta Preventivo",reject_estimate:"Rifiuta Preventivo",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:"Reinvia Preventivo",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:"Rifiutato",expired:"Scaduto",sent:"Inviato",draft:"Bozza",viewed:"Visualizzato",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)"},mark_as_default_estimate_template_description:"Se abilitato, il modello selezionato verr\xE0 selezionato automaticamente per i nuovi preventivi."},qm={title:"Fatture",download:"Scarica",pay_invoice:"Paga Fattura",invoices_list:"Lista Fatture",invoice_information:"Informazioni Fattura",days:"{days} Giorni",months:"{months} Mese",years:"{years} Anno",all:"Tutti",paid:"Pagato",unpaid:"Insoluta",viewed:"Visualizzato",overdue:"Scaduta",completed:"Completata",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:"Reinvia Fattura",invoice_template:"Modello Fattura",conversion_message:"Fattura duplicata con successo",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_mark_as_accepted:"Questa fattura verr\xE0 contrassegnata come Accettata",confirm_mark_as_rejected:"Questa fattura sar\xE0 contrassegnata come Rifiutata",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!",mark_as_rejected:"Segna come rifiutata",mark_as_accepted:"Segna come accettata",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 correttamente",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)"},payment_attached_message:"Una delle fatture selezionate ha gi\xE0 associato un pagamento. Assicurati di eliminare il pagamento associato prima di procedere con la rimozione",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.",mark_as_default_invoice_template_description:"Se abilitata, il modello selezionato verr\xE0 selezionato automaticamente per le nuove fatture."},Bm={title:"Fatture ricorrenti",invoices_list:"Elenco Fatture ricorrenti",days:"{days} Giorni",months:"{months} Mese",years:"{years} Anno",all:"Tutte",paid:"Pagata",unpaid:"Non Pagata",viewed:"Vista",overdue:"In ritardo",active:"Attiva",completed:"Completata",customer:"CLIENTE",paid_status:"STATO DI PAGAMENTO",ref_no:"Riferimento #",number:"NUMERO",amount_due:"AMMONTARE DOVUTO",partially_paid:"Parzialmente Pagata",total:"Totale",discount:"Sconto",sub_total:"Totale Parziale",invoice:"Fattura Ricorrente | Fatture Ricorrenti",invoice_number:"Numero Della Fattura Ricorrente",next_invoice_date:"Data Prossima Fattura",ref_number:"Numero di Rif.",contact:"Contatto",add_item:"Aggiungi un elemento",date:"Data",limit_by:"Limita per",limit_date:"Data limite",limit_count:"Conteggio Limite",count:"Conteggio",status:"Stato",select_a_status:"Seleziona uno Stato",working:"Elaborando",on_hold:"In sospeso",complete:"Completate",add_tax:"Aggiungi imposta",amount:"Quantit\xE0",action:"Azione",notes:"Note",view:"Visualizza",basic_info:"Info Di Base",send_invoice:"Invia Fattura Ricorrente",auto_send:"Invio automatico",resend_invoice:"Reinvia Fattura Ricorrente",invoice_template:"Template Fattura Ricorrente",conversion_message:"Fattura duplicata con successo",template:"Template",mark_as_sent:"Segna come inviata",confirm_send_invoice:"Questa fattura ricorrente verr\xE0 inviata via email al cliente",invoice_mark_as_sent:"Questa fattura sar\xE0 contrassegnata come inviata",confirm_send:"Questa fattura ricorrente verr\xE0 inviata via e-mail al cliente",starts_at:"Data Inzio",due_date:"Data di scadenza fattura",record_payment:"Registra Pagamento",add_new_invoice:"Nuova Fattura ricorrente",update_expense:"Aggiorna Spesa",edit_invoice:"Modifica Fattura Ricorrente",new_invoice:"Nuova Fattura Ricorrente",send_automatically:"Invia automaticamente",send_automatically_desc:"Abilitare questa opzione, se si desidera inviare automaticamente la fattura al cliente quando viene creata.",save_invoice:"Salva Fattura Ricorrente",update_invoice:"Aggiorna Fattura Ricorrente",add_new_tax:"Aggiungi una nuova tassa/imposta",no_invoices:"Ancora nessuna Fattura Ricorrente!",mark_as_rejected:"Segna come rifiutata",mark_as_accepted:"Segna come accettata",list_of_invoices:"Questa sezione conterr\xE0 l'elenco delle fatture ricorrenti.",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:"Duplica Fattura Ricorrente",confirm_clone:"Questa fattura ricorrente verr\xE0 clonata in una nuova fattura ricorrente",item:{title:"Titolo Articolo",description:"Descrizione",quantity:"Quantit\xE0",price:"Prezzo",discount:"Sconto",total:"Totale",total_discount:"Sconto Totale",sub_total:"Totale Parziale",tax:"Tassa",amount:"Importo",select_an_item:"Digita o clicca per selezionare un elemento",type_item_description:"Tipo Descrizione Articolo (Opzionale)"},frequency:{title:"Frequenza",select_frequency:"Seleziona Frequenza",minute:"Minuto",hour:"Ora",day_month:"Giorno del mese",month:"Mese",day_week:"Giorno della settimana"},confirm_delete:"Non sarai in grado di recuperare questa fattura | Non sarai in grado di recuperare queste fatture",created_message:"Fattura ricorrente creata con successo",updated_message:"Fattura ricorrente aggiornata correttamente",deleted_message:"Fattura ricorrente eliminata con successo | Fatture ricorrenti eliminate con successo",marked_as_sent_message:"Fattura ricorrente contrassegnata come inviata correttamente",user_email_does_not_exist:"L'e-mail dell'utente non esiste",something_went_wrong:"qualcosa \xE8 andato storto",invalid_due_amount_message:"L'importo totale delle fatture ricorrenti non pu\xF2 essere inferiore all'importo totale pagato per questa fattura ricorrente. Si prega di aggiornare la fattura o eliminare i pagamenti associati per continuare."},Km={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:"Non Selezionato",no_invoice:"Nessuna fattura",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"},Zm={title:"Spese",expenses_list:"Lista Costi",select_a_customer:"Seleziona Cliente",expense_title:"Titolo",customer:"Cliente",currency:"Valuta",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:"Non selezionata",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"}},Wm={email:"Email",password:"Password",forgot_password:"Password dimenticata?",or_signIn_with:"o fai login con",login:"Accedi",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"},Hm={buy_now:"Acquista Ora",install:"Installa",price:"Prezzo",download_zip_file:"Scarica il file zip",unzipping_package:"Decompressione del pacchetto in corso",copying_files:"Copia dei file in corso",deleting_files:"Eliminazione dei file inutilizzati",completing_installation:"Finalizzando l'installazione",update_failed:"Aggiornamento non riuscito",install_success:"Modulo installato con successo!",customer_reviews:"Recensioni",license:"Licenza",faq:"FAQ",monthly:"Mensile",yearly:"Annuale",updated:"Aggiornato",version:"Versione",disable:"Disabilita",module_disabled:"Modulo disabilitato",enable:"Attiva",module_enabled:"Modulo attivato",update_to:"Aggiorna a",module_updated:"Modulo aggiornato con successo!",title:"Moduli",module:"Modulo | Moduli",api_token:"Token API",invalid_api_token:"Token API non valido.",other_modules:"Altri Moduli",view_all:"Visualizza tutto",no_reviews_found:"Non ci sono ancora recensioni per questo modulo!",module_not_purchased:"Modulo non acquistato",module_not_found:"Modulo non trovato",version_not_supported:"This module version doesn't support the current version of Crater",last_updated:"Ultimo aggiornamento il",connect_installation:"Collega la tua installazione",api_token_description:"Accedi a {url} e collega questa installazione inserendo l'API Token. I moduli acquistati verranno visualizzati qui dopo aver stabilito la connessione.",view_module:"Mostra Modulo",update_available:"Aggiornamento disponibile",purchased:"Acquistato",installed:"Installato",no_modules_installed:"Nessun modulo installato ancora!",disable_warning:"Tutte le impostazioni per questo particolare verranno ripristinate.",what_you_get:"Cosa puoi ottenere"},Ym={title:"Utenti",users_list:"Lista Utenti",name:"Nome",description:"Descrizione",added_on:"Aggiunto il",date_of_creation:"Data di creazione",action:"Azione",add_user:"Aggiungi Utente",save_user:"Salva Utente",update_user:"Aggiorna Utente",user:"Utente | Utenti",add_new_user:"Aggiungi Nuovo Utente",new_user:"Nuovo Utente",edit_user:"Modifica Utente",no_users:"Ancora nessun utente!",list_of_users:"Questa sezione conterr\xE0 l'elenco degli utenti.",email:"Email",phone:"Telefono",password:"Password",user_attached_message:"Non puoi eliminare una Commessa che \xE8 gi\xE0 attiva",confirm_delete:"Non sarai in grado di recuperare questo utente | Non sarai in grado di recuperare questi utenti",created_message:"Utente creato correttamente",updated_message:"Utente aggiornato correttamente",deleted_message:"Utente eliminato con successo | Utenti eliminati con successo",select_company_role:"Seleziona ruolo per {company}",companies:"Aziende"},Gm={title:"Segnala",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:"Segnalazione | Segnalazioni",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"}},Jm={menu_title:{account_settings:"Impostazioni Account",company_information:"Informazioni Azienda",customization:"Personalizzazione",preferences:"Opzioni",notifications:"Notifiche",tax_types:"Tipi di Imposte",expense_category:"Categorie di spesa",update_app:"Aggiorna App",backup:"Backup",file_disk:"Disco File",custom_fields:"Campi personalizzati",payment_modes:"Modalit\xE0 di Pagamento",notes:"Note",exchange_rate:"Tasso di cambio",address_information:"Indirizzo"},address_information:{section_description:" Puoi aggiornare le informazioni sul tuo indirizzo utilizzando il modulo sottostante."},title:"Impostazioni",setting:"Opzione | Impostazioni",general:"Generale",language:"Lingua",primary_currency:"Valuta Principale",timezone:"Fuso Orario",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:"Host Mail",port:"Mail - Porta",driver:"Driver Mail",secret:"Segreto",mailgun_secret:"Segreto Mailgun",mailgun_domain:"Dominio",mailgun_endpoint:"Endpoint Mailgun",ses_secret:"Segreto SES",ses_key:"Chiave SES",password:"Password Email",username:"Nome Utente Email",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:"Provincia",city:"Citt\xE0",address:"Indirizzo",zip:"CAP",save:"Salva",delete:"Elimina",updated_message:"Informazioni Azienda aggiornate con successo.",delete_company:"Elimina Azienda",delete_company_description:"Una volta eliminata la tua azienda, perderai tutti i dati e i file associati in modo permanente.",are_you_absolutely_sure:"Sei assolutamente sicuro?",delete_company_modal_desc:"Questa azione non pu\xF2 essere annullata. Questo eliminer\xE0 definitivamente {company} e tutti i suoi dati associati.",delete_company_modal_label:"Digita {company} per confermare"},custom_fields:{title:"Campi personalizzati",section_description:"Personalizza le tue fatture, preventivi e ricevute di pagamento con i tuoi campi. Assicurati di utilizzare i campi aggiunti qui sotto nei campi della pagina Personalizzazione delle impostazioni.",add_custom_field:"Aggiungi campo personalizzato",edit_custom_field:"Modifica campo personalizzato",field_name:"Nome campo",label:"Etichetta",type:"genere",name:"Nome",slug:"URL personalizzato",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",press_enter_to_add:"Premi Invio per aggiungere una nuova opzione",model_in_use:"Impossibile aggiornare il modello per i campi gi\xE0 in uso.",type_in_use:"Impossibile aggiornare il tipo per i campi gi\xE0 in uso."},customization:{customization:"personalizzazione",updated_message:"Info azienda aggiornate con successo",save:"Salva",insert_fields:"Inserisci Campi",learn_custom_format:"Impara come utilizzare il formato personalizzato",add_new_component:"Aggiungi un componente",component:"Componente",Parameter:"Parametro",series:"Serie",series_description:"Per impostare un prefisso statico / postfix come 'INV' attraverso la tua azienda. Supporta la lunghezza del personaggio fino a 4 caratteri.",series_param_label:"Valore Serie",delimiter:"Delimitatore",delimiter_description:"Singolo carattere per specificare il confine tra 2 componenti separati. Per impostazione predefinita \xE8 impostato a -",delimiter_param_label:"Valore Delimitatore",date_format:"Formato data",date_format_description:"Un campo di data e ora locale che accetta un parametro di formato. Il formato predefinito: 'Y' rende l'anno corrente.",date_format_param_label:"Formato",sequence:"Sequenza",sequence_description:"Sequenza numerica nella tua azienda. Puoi specificare la lunghezza sul parametro specificato.",sequence_param_label:"Lunghezza Sequenza",customer_series:"Serie Cliente",customer_series_description:"Per impostare un prefisso/postfix diverso per ogni cliente.",customer_sequence:"Sequenza Cliente",customer_sequence_description:"Sequenza consecutiva di numeri per ogni vostro cliente.",customer_sequence_param_label:"Lunghezza Sequenza",random_sequence:"Sequenza Casuale",random_sequence_description:"Stringa alfanumerica casuale. Puoi specificare la lunghezza sul parametro dato.",random_sequence_param_label:"Lunghezza Sequenza",invoices:{title:"Fatture",invoice_number_format:"Formato Numero Fattura",invoice_number_format_description:"Personalizza il modo in cui il numero di fattura viene generato automaticamente quando crei una nuova fattura.",preview_invoice_number:"Anteprima Numero Fattura",due_date:"Data di pagamento",due_date_description:"Specificare come la data di scadenza viene impostata automaticamente quando si crea una fattura.",due_date_days:"Scadenza dopo (giorni)",set_due_date_automatically:"Imposta Data Di Scadenza Automaticamente",set_due_date_automatically_description:"Abilita questa opzione se vuoi impostare automaticamente la data di scadenza quando crei una nuova fattura.",default_formats:"Formato predefinito",default_formats_description:"Sotto i formati dati vengono utilizzati per riempire automaticamente i campi alla creazione della fattura.",default_invoice_email_body:"Corpo Email Fattura Predefinito",company_address_format:"Formato Indirizzo Azienda",shipping_address_format:"Formato Indirizzo Di Spedizione",billing_address_format:"Formato Indirizzo Fatturazione",invoice_email_attachment:"Invia fatture come allegati",invoice_email_attachment_setting_description:"Abilita questa opzione se vuoi inviare fatture come allegati email. Si prega di notare che il pulsante 'Visualizza fattura' nelle email non verr\xE0 pi\xF9 visualizzato quando ci\xF2 viene abilitato.",invoice_settings_updated:"Impostazioni fatture aggiornate con successo",retrospective_edits:"Modifica Retrospettiva",allow:"Permetti",disable_on_invoice_partial_paid:"Disabilita dopo la registrazione del pagamento parziale",disable_on_invoice_paid:"Disabilita dopo la registrazione del pagamento parziale",disable_on_invoice_sent:"Disabilita dopo l'invio della fattura",retrospective_edits_description:" In base alle leggi del tuo paese o alle tue preferenze, puoi limitare gli utenti dalla modifica delle fatture finalizzate."},estimates:{title:"Preventivi",estimate_number_format:"Formato del Numero di Serie",estimate_number_format_description:"Personalizza il modo in cui il numero di fattura viene generato automaticamente quando crei una nuova fattura.",preview_estimate_number:"Anteprima Numero Preventivo",expiry_date:"Data di scadenza",expiry_date_description:"Specificare come la data di scadenza viene impostata automaticamente quando si crea una fattura.",expiry_date_days:"Stima Scade dopo giorni",set_expiry_date_automatically:"Imposta Data Di Scadenza Automaticamente",set_expiry_date_automatically_description:"Abilita questa opzione se vuoi impostare automaticamente la data di scadenza quando crei una nuova fattura.",default_formats:"Formato predefinito",default_formats_description:"Sotto i formati dati vengono utilizzati per riempire automaticamente i campi alla creazione della fattura.",default_estimate_email_body:"Corpo Email Preventivo Predefinito",company_address_format:"Formato Indirizzo Azienda",shipping_address_format:"Formato Indirizzo Spedizione",billing_address_format:"Formato Indirizzo Fatturazione",estimate_email_attachment:"Invia stime come allegati",estimate_email_attachment_setting_description:"Abilita questa opzione se vuoi inviare fatture come allegati email. Si prega di notare che il pulsante 'Visualizza fattura' nelle email non verr\xE0 pi\xF9 visualizzato quando ci\xF2 viene abilitato.",estimate_settings_updated:"Impostazioni preventivi aggiornate con successo",convert_estimate_options:"Preventivo Converti Azione",convert_estimate_description:"Specificare cosa succede al preventivo dopo che viene convertito in una fattura.",no_action:"Nessuna azione",delete_estimate:"Elimina preventivo",mark_estimate_as_accepted:"Segna preventivo come accettato"},payments:{title:"Pagamenti",payment_number_format:"Formato Numero Pagamento",payment_number_format_description:"Personalizza il modo in cui il numero di fattura viene generato automaticamente quando crei una nuova fattura.",preview_payment_number:"Anteprima Numero Di Pagamento",default_formats:"Formato predefinito",default_formats_description:"Sotto i formati dati vengono utilizzati per riempire automaticamente i campi alla creazione della fattura.",default_payment_email_body:"Corpo Email Pagamento Predefinito",company_address_format:"Formato Indirizzo Azienda",from_customer_address_format:"Dal Formato Indirizzo Cliente",payment_email_attachment:"Invia stime come allegati",payment_email_attachment_setting_description:"Abilita questa opzione se vuoi inviare fatture come allegati email. Si prega di notare che il pulsante 'Visualizza fattura' nelle email non verr\xE0 pi\xF9 visualizzato quando ci\xF2 viene abilitato.",payment_settings_updated:"Impostazioni di pagamento aggiornate con successo"},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:"Risparmia tempo creando note e riutilizzandole sulle tue fatture, preventivi e pagamenti.",notes:"Note",type:"genere",add_note:"Aggiungi Nota",add_new_note:"Aggiungi nuova nota",name:"Nome",edit_note:"Modifica nota",note_added:"Nota aggiunta correttamente",note_updated:"Nota aggiornata correttamente",note_confirm_delete:"Non sar\xE0 possibile recuperare questa nota",already_in_use:"Nota gi\xE0 in uso",deleted_message:"Nota eliminata con successo"}},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"},roles:{title:"Ruoli",description:"Gestisci i ruoli e i permessi di questa azienda",save:"Salva",add_new_role:"Aggiungi Nuovo Ruolo",role_name:"Nome Ruolo",added_on:"Aggiunto il",add_role:"Aggiungi Ruolo",edit_role:"Modifica Ruolo",name:"Nome",permission:"Permesso | Permessi",select_all:"Seleziona tutto",none:"Nessuno",confirm_delete:"Non sarai in grado di recuperare questo ruolo",created_message:"Utente creato correttamente",updated_message:"Ruolo aggiornato correttamente",deleted_message:"Ruolo eliminato con successo",already_in_use:"Ruolo gi\xE0 in uso"},exchange_rate:{exchange_rate:"Tasso di cambio",title:"Correggi i problemi di cambio valuta",description:"Inserisci il tasso di cambio di tutte le valute menzionate di seguito per aiutare il Cratere a calcolare correttamente gli importi in {currency}.",drivers:"Drivers",new_driver:"Aggiungi Nuovo Fornitore",edit_driver:"Modifica Fornitore",select_driver:"Seleziona Driver",update:"seleziona il tasso di cambio ",providers_description:"Configura qui i tuoi fornitori di tassi di cambio per recuperare automaticamente l'ultimo tasso di cambio sulle transazioni.",key:"Chiave API",name:"Nome",driver:"Driver",is_default:"\xC9 PREDEFINITO",currency:"Valute",exchange_rate_confirm_delete:"Non sar\xE0 possibile recuperare questo driver",created_message:"Fornitore creato con successo",updated_message:"Provider Aggiornato Con Successo",deleted_message:"Provider Eliminato Con Successo",error:" Impossibile Eliminare Il Driver Attivo",default_currency_error:"Questa valuta \xE8 gi\xE0 utilizzata in uno dei Provider Attivi",exchange_help_text:"Inserisci il tasso di cambio da {currency} a {baseCurrency}",currency_freak:"Valuta Freak",currency_layer:"Livello Valuta",open_exchange_rate:"Tasso Di Cambio Aperto",currency_converter:"Convertitore Valuta",server:"Server",url:"Indirizzo",active:"Attivo",currency_help_text:"Questo provider sar\xE0 utilizzato solo sulle valute sopra selezionate",currency_in_used:"Le seguenti valute sono gi\xE0 attive su un altro provider. Si prega di rimuovere queste valute dalla selezione per attivare nuovamente questo provider."},tax_types:{title:"Tipi di Imposte",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"},payment_modes:{title:"Modalit\xE0 di pagamento",description:"Modalit\xE0 di transazione per i pagamenti",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",payments_attached:"Questo metodo di pagamento \xE8 gi\xE0 allegato ai pagamenti. Si prega di eliminare i pagamenti allegati per procedere con la cancellazione.",expenses_attached:"Questo metodo di pagamento \xE8 gi\xE0 allegato alle spese. Si prega di eliminare le spese allegate per procedere alla cancellazione.",deleted_message:"Modalit\xE0 di pagamento eliminata con successo"},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:"Lingua predefinita",time_zone:"Fuso Orario",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.",expire_public_links:"Scadenza Automatica dei Link Pubblici",expire_setting_description:"Specifica se si vuole far scadere tutti i link inviati dall'applicazione per visualizzare fatture, preventivi e pagamenti, ecc. dopo una durata specificata.",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:"Seleziona Formato Data",select_financial_year:"Seleziona anno finanziario",recurring_invoice_status:"Stato Fattura Ricorrente",create_status:"Crea stato",active:"Attivo",on_hold:"In sospeso",update_status:"Aggiorna stato",completed:"Completato",company_currency_unchangeable:"La valuta dell'azienda non pu\xF2 essere cambiata"},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:"Requisiti",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",deleting_files:"Eliminazione dei file inutilizzati",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}",update_warning:"Tutti i file dell'applicazione e i file di modello predefiniti verranno sovrascritti quando si aggiorna l'applicazione utilizzando questa utility. Si prega di fare un backup dei modelli e del database prima di aggiornare."},backup:{title:"Backup | Backups",description:"Il backup \xE8 un file zip che contiene tutti i file nelle cartelle specificate con un dump del vostro database",new_backup:"Nuovo Backup",create_backup:"Crea Backup",select_backup_type:"Scegli tipo di backup",backup_confirm_delete:"Non sar\xE0 possibile recuperare questo backup",path:"percorso",new_disk:"Nuovo Disco",created_at:"creato il",size:"dimensioni",dropbox:"dropbox",local:"locale",healthy:"sano",amount_of_backups:"quantit\xE0 di backup",newest_backups:"backup pi\xF9 recenti",used_storage:"spazio utilizzato",select_disk:"Seleziona Disco",action:"Azione",deleted_message:"Backup eliminato con successo",created_message:"Backup creato con successo",invalid_disk_credentials:"Credenziali del disco selezionato non valide"},disk:{title:"Disco File | Dischi File",description:"Per impostazione predefinita, Crater utilizzer\xE0 il disco locale per salvare backup, avatar e altri file di immagine. Puoi configurare pi\xF9 di un driver disco come DigitalOcean, S3 e Dropbox in base alle tue preferenze.",created_at:"creato il",dropbox:"dropbox",name:"Nome",driver:"Driver",disk_type:"genere",disk_name:"Nome Disco",new_disk:"Aggiungi Nuovo Disco",filesystem_driver:"Driver Filesystem",local_driver:"driver locale",local_root:"radice locale",public_driver:"Driver Pubblico",public_root:"Root Pubblica",public_url:"Url Pubblico",public_visibility:"Visibilit\xE0 Pubblica",media_driver:"Driver Media",media_root:"Media Root",aws_driver:"Driver AWS",aws_key:"Chiave AWS",aws_secret:"Segreto AWS",aws_region:"Regione AWS",aws_bucket:"Bucket AWS",aws_root:"Root AWS",do_spaces_type:"tipo Do Spaces",do_spaces_key:"chiave Do Spaces",do_spaces_secret:"segreto Do Spaces",do_spaces_region:"regione Do Spaces",do_spaces_bucket:"bucket Do Spaces",do_spaces_endpoint:"endpoint Do Spaces",do_spaces_root:"root Do Spaces",dropbox_type:"Tipo Dropbox",dropbox_token:"Token Dropbox",dropbox_key:"Chiave Dropbox",dropbox_secret:"Segreto Dropbox",dropbox_app:"App Dropbox",dropbox_root:"Root Dropbox",default_driver:"Driver Predefinito",is_default:"\xC8 DEFAULT",set_default_disk:"Imposta Disco Predefinito",set_default_disk_confirm:"Questo disco sar\xE0 impostato come predefinito e tutti i nuovi PDF saranno salvati su questo disco",success_set_default_disk:"Disco impostato come predefinito correttamente",save_pdf_to_disk:"Salva i PDF su disco",disk_setting_description:" Abilita questa opzione, se vuoi salvare automaticamente una copia di ogni PDF Fattura, Preventivo e Ricevuta di Pagamento sul tuo disco predefinito. Attivare questa opzione diminuir\xE0 il tempo di caricamento durante la visualizzazione dei PDF.",select_disk:"Seleziona Disco",disk_settings:"Impostazioni Disco",confirm_delete:"I file e le cartelle esistenti nel disco specificato non saranno toccati, ma la configurazione del disco sar\xE0 eliminata dal Crater",action:"Azione",edit_file_disk:"Modifica Disco File",success_create:"Disco aggiunto correttamente",success_update:"Disco aggiornato correttamente",error:"Aggiunta del disco fallita",deleted_message:"Disco file eliminato con successo",disk_variables_save_successfully:"Disco Configurato Con successo",disk_variables_save_error:"Configurazione disco fallita.",invalid_disk_credentials:"Credenziali del disco selezionato non valide"},taxations:{add_billing_address:"Inserisci l'indirizzo di Fatturazione",add_shipping_address:"Inserisci l'indirizzo di Spedizione",add_company_address:"Inserisci l'indirizzo aziendale",modal_description:"Le informazioni di seguito sono richieste per recuperare l'imposta sulle vendite.",add_address:"Aggiungi indirizzo per recuperare l'imposta sulle vendite.",address_placeholder:"Esempio: Via Garibaldi, 123",city_placeholder:"Esempio: Roma",state_placeholder:"Esempio: RM",zip_placeholder:"Esempio: 00100",invalid_address:"Fornisci un indirizzo valido."}},Qm={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.",currency_set_alert:"La valuta dell'azienda non pu\xF2 essere modificata pi\xF9 tardi.",country:"Paese",state:"Provincia",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:"Fuso Orario",fiscal_year:"Anno Finanziario",date_format:"Formato Date",from_address:"Indirizzo - Da",username:"Nome utente",next:"Successivo",continue:"Continua",skip:"Salta",database:{database:"URL del sito & database",connection:"Connessione Database",host:"Host Database",port:"Database - Porta",password:"Password Database",app_url:"URL dell'App",app_domain:"Dominio App",username:"Nome Utente del Database",db_name:"Database Nome",db_path:"Percorso del database",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."},verify_domain:{title:"Verifica Dominio",desc:"Crater utilizza l'autenticazione basata su sessione, che richiede la verifica del dominio per scopi di sicurezza. Inserisci il dominio su cui accederai alla tua applicazione web.",app_domain:"Dominio App",verify_now:"Verifica Ora",success:"Dominio Verificato Con Successo.",failed:"Verifica del dominio fallita. Inserisci un nome di dominio valido.",verify_and_continue:"Verifica e continua"},mail:{host:"Host Mail",port:"Mail - Porta",driver:"Driver Mail",secret:"Segreto",mailgun_secret:"Segreto Mailgun",mailgun_domain:"Dominio",mailgun_endpoint:"Endpoint Mailgun",ses_secret:"Segreto SES",ses_key:"Chiave SES",password:"Password Email",username:"Nome Utente Email",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:"Migrazione Fallita",database_variables_save_error:"Impossibile scrivere la configurazione nel file .env. Si prega di controllare i permessi dei file",mail_variables_save_error:"Configurazione email fallita.",connection_failed:"Connessione al Database fallita",database_should_be_empty:"Il database dovrebbe essere vuoto"},success:{mail_variables_save_successfully:"Email configurata con successo",database_variables_save_successfully:"Database configurato con successo."}},Xm={invalid_phone:"Numero di telefono invalido",invalid_url:"URL non valido (es: http://www.crater.com)",invalid_domain_url:"URL non valido (es: crater.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.",prefix_min_length:"Il prefisso deve contenere 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.",discount_maxlength:"Lo sconto non deve essere superiore allo sconto massimo",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",number_length_minvalue:"La lunghezza del numero deve essere maggiore di 0",at_least_one_ability:"Seleziona almeno un permesso.",valid_driver_key:"Inserisci una chiave {driver} valida.",valid_exchange_rate:"Inserisci un tasso di cambio valido.",company_name_not_same:"Il nome dell'azienda deve corrispondere al nome indicato."},ep={starter_plan:"Questa funzione \xE8 disponibile dal piano Starter, in poi!",invalid_provider_key:"Inserisci una API Key valida per il Fornitore.",estimate_number_used:"Il numero stimato \xE8 gi\xE0 stato preso.",invoice_number_used:"Il numero della fattura \xE8 gi\xE0 stato utilizzato.",payment_attached:"Una delle fatture selezionate ha gi\xE0 associato un pagamento. Assicurati di eliminare il pagamento associato prima di procedere con la rimozione.",payment_number_used:"Questa modalit\xE0 di pagamento \xE8 gi\xE0 stata inserita.",name_already_taken:"Questo Nome esiste gi\xE1.",receipt_does_not_exist:"La ricevuta non esiste.",customer_cannot_be_changed_after_payment_is_added:"Il cliente non pu\xF2 essere modificato dopo aver aggiunto il pagamento",invalid_credentials:"Credenziali non valide",not_allowed:"Non Consentito",login_invalid_credentials:"Queste credenziali non corrispondono ai nostri record.",enter_valid_cron_format:"Inserisci un formato cron valido",email_could_not_be_sent:"Impossibile inviare l'email a questo indirizzo email.",invalid_address:"Inserisci un indirizzo valido.",invalid_key:"Inserisci una chiave valida.",invalid_state:"Inserisci una provincia valida.",invalid_city:"Inserisci una citt\xE0 valida.",invalid_postal_code:"Inserisci un CAP valido.",invalid_format:"Inserisci un formato di query string valido.",api_error:"Il server non risponde.",feature_not_enabled:"Funzionalit\xE0 non abilitata.",request_limit_met:"Limite richiesta API superato.",address_incomplete:"Indirizzo incompleto"},tp="Preventivo",ap="Preventivo Numero",np="Data preventivo",ip="Data di scadenza",op="Fattura",sp="Numero Fattura",rp="Data fattura",dp="Data di pagamento",lp="Note",cp="Commesse",_p="Quantit\xE0",up="Prezzo",mp="Sconto",pp="Ammontare",fp="Parziale",gp="Totale",vp="Pagamento",yp="RICEVUTA DI PAGAMENTO",hp="Data di pagamento",bp="Numero di pagamento",kp="Modalit\xE0 di Pagamento",wp="Importo Ricevuto",zp="RELAZIONE SPESE",xp="TOTALE SPESE",Pp="RELAZIONE PROFITTO E PERDITE",Sp="Report Vendite Clienti",jp="Rapporto vendite",Ap="Rapporto Riepilogo Tasse",Dp="REDDITO",Cp="PROFITTO NETTO",Np="Relazione Vendite: Per Cliente",Ep="TOTALE VENDITE",Ip="Relazione Vendite: Per Articolo",Tp="RELAZIONE FISCALE",Rp="TOTALE IMPOSTA",Mp="Tipi di Imposta",Fp="Uscite",$p="Fattura a,",Up="Invia a,",Vp="Ricevuto da:",Op="Tassa";var Lp={navigation:Im,general:Tm,dashboard:Rm,tax_types:Mm,global_search:Fm,company_switcher:$m,dateRange:Um,customers:Vm,items:Om,estimates:Lm,invoices:qm,recurring_invoices:Bm,payments:Km,expenses:Zm,login:Wm,modules:Hm,users:Ym,reports:Gm,settings:Jm,wizard:Qm,validation:Xm,errors:ep,pdf_estimate_label:tp,pdf_estimate_number:ap,pdf_estimate_date:np,pdf_estimate_expire_date:ip,pdf_invoice_label:op,pdf_invoice_number:sp,pdf_invoice_date:rp,pdf_invoice_due_date:dp,pdf_notes:lp,pdf_items_label:cp,pdf_quantity_label:_p,pdf_price_label:up,pdf_discount_label:mp,pdf_amount_label:pp,pdf_subtotal:fp,pdf_total:gp,pdf_payment_label:vp,pdf_payment_receipt_label:yp,pdf_payment_date:hp,pdf_payment_number:bp,pdf_payment_mode:kp,pdf_payment_amount_received_label:wp,pdf_expense_report_label:zp,pdf_total_expenses_label:xp,pdf_profit_loss_label:Pp,pdf_sales_customers_label:Sp,pdf_sales_items_label:jp,pdf_tax_summery_label:Ap,pdf_income_label:Dp,pdf_net_profit_label:Cp,pdf_customer_sales_report:Np,pdf_total_sales_label:Ep,pdf_item_sales_label:Ip,pdf_tax_report_label:Tp,pdf_total_tax_label:Rp,pdf_tax_types_label:Mp,pdf_expenses_label:Fp,pdf_bill_to:$p,pdf_ship_to:Up,pdf_received_from:Vp,pdf_tax_label:Op};const qp={dashboard:"Komandna tabla",customers:"Klijenti",items:"Stavke",invoices:"Fakture","recurring-invoices":"Recurring Invoices",expenses:"Rashodi",estimates:"Profakture",payments:"Uplate",reports:"Izve\u0161taji",settings:"Pode\u0161avanja",logout:"Odjavi se",users:"Korisnici",modules:"Modules"},Bp={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",ok:"Ok",yes:"Yes",no:"No",sort_by:"Rasporedi Po",ascending:"Rastu\u0107e",descending:"Opadaju\u0107e",subject:"Predmet",body:"Telo",message:"Poruka",send:"Po\u0161alji",preview:"Preview",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",select_template:"Select Template",choose_file:"Klikni ovde da izabere\u0161 fajl",choose_template:"Izaberi \u0161ablon",choose:"Izaberi",remove:"Ukloni",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!",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",mark_as_default:"Mark as default"},Kp={select_year:"Odaberi godinu",cards:{due_amount:"Du\u017Ean iznos",customers:"Klijenti",invoices:"Fakture",estimates:"Profakture",payments:"Payments"},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"}},Zp={name:"Naziv",description:"Opis",percent:"Procenat",compound_tax:"Slo\u017Eeni porez"},Wp={search:"Pretraga...",customers:"Klijenti",users:"Korisnici",no_results_found:"Nema rezultata"},Hp={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},Yp={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"},Gp={title:"Klijenti",prefix:"Prefix",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:"E-mail",address:"Adresa",phone:"Telefon",website:"Veb stranica",overview:"Pregled",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",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",confirm_password:"Confirm Password",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",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:"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:"Nema kontakta",no_contact_name:"Nema naziva kontakta",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",address_updated_message:"Address Information Updated succesfully",deleted_message:"Klijent uspe\u0161no obrisan | Klijenti uspe\u0161no obrisani",edit_currency_not_allowed:"Cannot change currency once transactions created."},Jp={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:"Nije odabrana niti jedna stavka",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"},Qp={title:"Profakture",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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:"Odbijeno",expired:"Expired",sent:"Poslato",draft:"U izradi",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},Xp={title:"Fakture",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"List Faktura",invoice_information:"Invoice Information",days:"{days} dan",months:"{months} Mesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",viewed:"Pogledano",overdue:"Nepodmireno",completed:"Zavr\u0161eno",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",conversion_message:"Invoice cloned successful",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_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",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!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",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:"Invoice sent successfully",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)"},payment_attached_message:"Jedna od odabranih faktura ve\u0107 ima uplatu povezanu sa njom. Obri\u0161ite prvo povezane uplate da bi nastavili sa brisanjem",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},ef={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."},tf={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:"Nema odabranih",no_invoice:"Nema ra\u010Duna",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"},af={title:"Rashodi",expenses_list:"Lista Rashoda",select_a_customer:"Odaberi klijenta",expense_title:"Naslov",customer:"Klijent",currency:"Currency",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:"Nije odabrano",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"}},nf={email:"E-mail",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"},of={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"},sf={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:"E-mail",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",select_company_role:"Select Role for {company}",companies:"Companies"},rf={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"}},df={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",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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 drajver",secret:"\u0160ifra",mailgun_secret:"Mailgun \u0160ifra",mailgun_domain:"Domen",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",delete:"Delete",updated_message:"Podaci o firmi uspe\u0161no sa\u010Duvani",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:"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",slug:"Slug",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",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:"prilago\u0111avanje",updated_message:"Podaci o firmi su uspe\u0161no a\u017Eurirani",save:"Sa\u010Duvaj",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:"Fakture",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:"Podrazumevan sadr\u017Eaj email-a za Fakture",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",invoice_email_attachment:"Po\u0161alji ra\u010Dun kao prilog",invoice_email_attachment_setting_description:"Omogu\u0107ite ovo ako \u017Eelite da \u0161aljete fakture kao prilog e-po\u0161te. Imajte na umu da dugme 'Prika\u017Ei fakturu' u e-porukama vi\u0161e ne\u0107e biti prikazano kada je omogu\u0107eno.",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:"Profakture",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:"Podrazumevan sadr\u017Eaj email-a za Profakture",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",estimate_email_attachment:"Po\u0161aljite procjene kao priloge",estimate_email_attachment_setting_description:"Omogu\u0107ite ovo ako \u017Eelite da po\u0161aljete procjene kao prilog e-po\u0161te. Imajte na umu da dugme 'Prika\u017Ei procjenu' u e-porukama vi\u0161e ne\u0107e biti prikazano kada je omogu\u0107eno.",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:"Uplate",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:"Podrazumevan sadr\u017Eaj email-a za potvrdu o pla\u0107anju (ra\u010Dun)",company_address_format:"Format adrese firme",from_customer_address_format:"Format adrese klijenta",payment_email_attachment:"Po\u0161aljite uplate kao priloge",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:"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"},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:"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"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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.",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:"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",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:"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",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:"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"},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."}},lf={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",currency_set_alert:"The company's currency cannot be changed later.",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."},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 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"}},cf={invalid_phone:"Pogre\u0161an Broj Telefona",invalid_url:"Neva\u017Ee\u0107i URL (primer: http://www.crater.com)",invalid_domain_url:"Pogre\u0161an URL (primer: crater.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",prefix_min_length:"Prefix must have at least {count} letters.",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",discount_maxlength:"Discount should not be greater than max discount",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",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."},_f={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"},uf="Profaktura",mf="Broj Profakture",pf="Datum Profakture",ff="Datum isteka Profakture",gf="Faktura",vf="Broj Fakture",yf="Datum Fakture",hf="Datum dospe\u0107a Fakture",bf="Napomena",kf="Stavke",wf="Koli\u010Dina",zf="Cena",xf="Popust",Pf="Iznos",Sf="Osnovica za obra\u010Dun PDV-a",jf="Ukupan iznos",Af="Payment",Df="POTVRDA O UPLATI",Cf="Datum Uplate",Nf="Broj Uplate",Ef="Na\u010Din Uplate",If="Iznos Uplate",Tf="IZVE\u0160TAJ O RASHODIMA",Rf="RASHODI UKUPNO",Mf="IZVE\u0160TAJ O PRIHODIMA I RASHODIMA",Ff="Sales Customer Report",$f="Sales Item Report",Uf="Tax Summary Report",Vf="PRIHOD",Of="NETO PROFIT",Lf="Izve\u0161taj o Prodaji: Po Klijentu",qf="PRODAJA UKUPNO",Bf="Izve\u0161taj o Prodaji: Po Stavci",Kf="IZVE\u0160TAJ O POREZIMA",Zf="UKUPNO POREZ",Wf="Tipovi Poreza",Hf="Rashodi",Yf="Ra\u010Dun za,",Gf="Isporu\u010Diti za,",Jf="Poslat od strane:",Qf="Tax";var Xf={navigation:qp,general:Bp,dashboard:Kp,tax_types:Zp,global_search:Wp,company_switcher:Hp,dateRange:Yp,customers:Gp,items:Jp,estimates:Qp,invoices:Xp,recurring_invoices:ef,payments:tf,expenses:af,login:nf,modules:of,users:sf,reports:rf,settings:df,wizard:lf,validation:cf,errors:_f,pdf_estimate_label:uf,pdf_estimate_number:mf,pdf_estimate_date:pf,pdf_estimate_expire_date:ff,pdf_invoice_label:gf,pdf_invoice_number:vf,pdf_invoice_date:yf,pdf_invoice_due_date:hf,pdf_notes:bf,pdf_items_label:kf,pdf_quantity_label:wf,pdf_price_label:zf,pdf_discount_label:xf,pdf_amount_label:Pf,pdf_subtotal:Sf,pdf_total:jf,pdf_payment_label:Af,pdf_payment_receipt_label:Df,pdf_payment_date:Cf,pdf_payment_number:Nf,pdf_payment_mode:Ef,pdf_payment_amount_received_label:If,pdf_expense_report_label:Tf,pdf_total_expenses_label:Rf,pdf_profit_loss_label:Mf,pdf_sales_customers_label:Ff,pdf_sales_items_label:$f,pdf_tax_summery_label:Uf,pdf_income_label:Vf,pdf_net_profit_label:Of,pdf_customer_sales_report:Lf,pdf_total_sales_label:qf,pdf_item_sales_label:Bf,pdf_tax_report_label:Kf,pdf_total_tax_label:Zf,pdf_tax_types_label:Wf,pdf_expenses_label:Hf,pdf_bill_to:Yf,pdf_ship_to:Gf,pdf_received_from:Jf,pdf_tax_label:Qf};const eg={dashboard:"Overzicht",customers:"Klanten",items:"Artikelen",invoices:"Facturen","recurring-invoices":"Periodieke factuur",expenses:"Uitgaven",estimates:"Offertes",payments:"Betalingen",reports:"Rapporten",settings:"Instellingen",logout:"Uitloggen",users:"Gebruikers",modules:"Modules"},tg={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:"Deselecteren",download:"Download",from_date:"Vanaf datum",to_date:"T/m datum",from:"Vanaf",to:"Naar.",ok:"Ok\xE9.",yes:"Ja.",no:"Nee.",sort_by:"Sorteer op",ascending:"Oplopend",descending:"Aflopend",subject:"Onderwerp",body:"Inhoud",message:"Bericht.",send:"Verstuur",preview:"Voorbeeld",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:"Factuur aan",ship_to:"Verzend naar",due:"Openstaand",draft:"Concept",sent:"Verzonden",all:"Alles",select_all:"Selecteer alles",select_template:"Sjabloon selecteren",choose_file:"Klik hier om een bestand te kiezen",choose_template:"Kies een sjabloon",choose:"Kiezen",remove:"Verwijderen",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",copied_pdf_url_clipboard:"PDF link naar klembord gekopieerd!",copied_url_clipboard:"Copied url to clipboard!",docs:"Documenten",do_you_wish_to_continue:"Wilt u Doorgaan?",note:"Notitie",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},ag={select_year:"Selecteer jaar",cards:{due_amount:"Openstaand bedrag",customers:"Klanten",invoices:"Facturen",estimates:"Offertes",payments:"Payments"},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"}},ng={name:"Naam",description:"Omschrijving",percent:"Procent",compound_tax:"Verbinding Ta"},ig={search:"Zoeken...",customers:"Klanten",users:"Gebruikers",no_results_found:"Geen zoekresultaten"},og={label:"VERANDER BEDRIJF",no_results_found:"Geen resultaten gevonden",add_new_company:"Nieuw bedrijf toevoegen",new_company:"Nieuw bedrijf",created_message:"Bedrijf met succes aangemaakt"},sg={today:"Vandaag",this_week:"Deze week",this_month:"Deze maand",this_quarter:"Dit kwartaal",this_year:"Dit jaar",previous_week:"Vorige week",previous_month:"Vorige maand",previous_quarter:"Vorig kwartaal",previous_year:"Vorig jaar",custom:"Aangepast"},rg={title:"Klanten",prefix:"Voorvoegsel",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",invoice_prefix:"Factuurvoorvoegsel",estimate_prefix:"Schatting voorvoegsel",payment_prefix:"Betalingsvoorvoegsel",enable_portal:"Activeer Portaal",country:"Land",state:"Provincie",city:"Stad",zip_code:"Postcode",added_on:"Toegevoegd",action:"Actie",password:"Wachtwoord",confirm_password:"Bevestig 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",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:"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:"Geen contact",no_contact_name:"Geen contactnaam",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",address_updated_message:"Address Information Updated succesfully",deleted_message:"Klant succesvol verwijderd |\xA0Klanten zijn succesvol verwijderd",edit_currency_not_allowed:"Kan valuta niet wijzigen zodra de transacties zijn aangemaakt."},dg={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:"Geen item geselecteerd",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"},lg={title:"Offertes",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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:"Vervaldatum",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:"Betaling 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:"Afgewezen",expired:"Expired",sent:"Verzonden",draft:"Concept",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},cg={title:"Facturen",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Facturenlijst",invoice_information:"Invoice Information",days:"{dagen} dagen",months:"{months} Maand",years:"{jaar} jaar",all:"Allemaal",paid:"Betaald",unpaid:"Onbetaald",viewed:"Bekeken",overdue:"Over tijd",completed:"Voltooid",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:"Vervaldatum",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",conversion_message:"Factuur succesvol gekloond",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_mark_as_accepted:"Deze offerte wordt gemarkeerd als Geaccepteerd",confirm_mark_as_rejected:"Deze factuur wordt gemarkeerd als Afgewezen",confirm_send:"Deze factuur wordt via e-mail naar de klant gestuurd",invoice_date:"Factuur datum",record_payment:"Betaling 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!",mark_as_rejected:"Markeer als afgewezen",mark_as_accepted:"Markeer als geaccepteerd",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)"},payment_attached_message:"Aan een van de geselecteerde facturen is al een betaling gekoppeld.\xA0Zorg ervoor dat u eerst de bijgevoegde betalingen verwijdert om door te gaan met de verwijdering",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},_g={title:"Periodieke facturen",invoices_list:"Periodieke facturen lijst",days:"{days} dagen",months:"{months} maanden",years:"{years} jaar",all:"Alles",paid:"Betaald",unpaid:"Onbetaald",viewed:"Bekeken",overdue:"Achterstallig",active:"Actief",completed:"Voltooid",customer:"KLANT",paid_status:"BETAALD STATUS",ref_no:"REF NR.",number:"NUMMER",amount_due:"Bedrag",partially_paid:"Gedeeltelijk betaald",total:"Totaal",discount:"Korting",sub_total:"Subtotaal",invoice:"Periodieke factuur / Periodieke facturen",invoice_number:"Periodieke facturen",next_invoice_date:"Volgende factuurdatum",ref_number:"Referentie nummer",contact:"Contact",add_item:"Item toevoegen",date:"Datum",limit_by:"Beperken door",limit_date:"Uiterste datum",limit_count:"Limiet aantal",count:"Aantal",status:"Status",select_a_status:"Selecteer een status",working:"Bezig",on_hold:"Niet actief",complete:"Voltooid",add_tax:"Belasting toevoegen",amount:"Bedrag",action:"Actie",notes:"Opmerkingen",view:"Bekijken",basic_info:"Basis informatie",send_invoice:"Verstuur periodieke factuur",auto_send:"Automatisch verzenden",resend_invoice:"Verstuur periodieke factuur opnieuw",invoice_template:"Periodieke factuur sjabloon",conversion_message:"Periodieke factuur succesvol gekopieerd",template:"Sjabloon",mark_as_sent:"Markeer als verzonden",confirm_send_invoice:"Deze periodieke factuur wordt via e-mail naar de klant gestuurd",invoice_mark_as_sent:"Deze periodieke factuur wordt gemarkeerd als verzonden",confirm_send:"Deze terugkerende factuur wordt via e-mail naar de klant gestuurd",starts_at:"Startdatum",due_date:"Vervaldatum factuur",record_payment:"Betaling registreren",add_new_invoice:"Nieuwe periodieke factuur toevoegen",update_expense:"Onkosten bijwerken",edit_invoice:"Periodieke factuur bewerken",new_invoice:"Nieuwe periodieke factuur toevoegen",send_automatically:"Automatisch verzenden",send_automatically_desc:"Schakel dit in als u de factuur automatisch aan de klant wilt sturen wanneer deze is aangemaakt.",save_invoice:"Bewaar periodieke factuur",update_invoice:"Periodieke factuur bewerken",add_new_tax:"Nieuwe btw toevoegen",no_invoices:"Nog geen periodieke facturen!",mark_as_rejected:"Markeer als afgewezen",mark_as_accepted:"Markeer als geaccepteerd",list_of_invoices:"Hier vind je de periodieke facturen terug.",select_invoice:"Selecteer Factuur",no_matching_invoices:"Er zijn geen overeenkomende periodieke facturen!",mark_as_sent_successfully:"Periodieke factuur gemarkeerd als succesvol verzonden",invoice_sent_successfully:"Periodieke factuur succesvol verzonden",cloned_successfully:"Terugkerende factuur succesvol gekopieerd",clone_invoice:"Kopieer periodieke factuur",confirm_clone:"Deze periodieke factuur wordt gekopieerd naar een nieuwe periodieke factuur",item:{title:"Item titel",description:"Beschrijving",quantity:"Aantal",price:"Prijs",discount:"Korting",total:"Totaal",total_discount:"Totale korting",sub_total:"Subtotaal",tax:"Btw",amount:"Bedrag",select_an_item:"Typ of klik om een item te selecteren",type_item_description:"Type item beschrijving (optioneel)"},frequency:{title:"Frequentie",select_frequency:"Frequentie selecteren",minute:"Minuut",hour:"Uur",day_month:"Dag van de maand",month:"Maand",day_week:"Dag van de week"},confirm_delete:"Deze factuur wordt permanent verwijderd |\xA0Deze facturen worden permanent verwijderd",created_message:"Terugkerende factuur succesvol gecre\xEBerd",updated_message:"Terugkerende factuur succesvol bijgewerkt",deleted_message:"Periodieke factuur succesvol verwijderd |\xA0Periodieke facturen succesvol verwijderd",marked_as_sent_message:"Periodieke factuur gemarkeerd als succesvol verzonden",user_email_does_not_exist:"E-mailadres van gebruiker bestaat niet",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."},ug={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:"Niet geselecteerd",no_invoice:"Geen factuur",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"},mg={title:"Uitgaven",expenses_list:"Uitgavenlijst",select_a_customer:"Selecteer een klant",expense_title:"Titel",customer:"Klant",currency:"Valuta",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:"Niet geselecteerd",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"}},pg={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"},fg={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"},gg={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",select_company_role:"Selecteer rol voor {company}",companies:"Bedrijven"},vg={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:"Vervaldatum",amount:"Bedrag",contact_name:"Contactnaam",status:"Status"},estimates:{estimate:"Offerte",estimate_date:"Offerte Datum",due_date:"Vervaldatum",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"}},yg={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",exchange_rate:"Wisselkoers",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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",delete:"Verwijderen",updated_message:"Bedrijfsinformatie succesvol bijgewerkt",delete_company:"Bedrijf verwijderen",delete_company_description:"Zodra u uw bedrijf verwijdert, verliest u alle gegevens en bestanden die eraan gekoppeld zijn.",are_you_absolutely_sure:"Weet u het zeker?",delete_company_modal_desc:"Deze actie kan niet ongedaan worden gemaakt. Dit zal {company} en alle bijbehorende gegevens permanent verwijderen.",delete_company_modal_label:"Typ {company} om te bevestigen"},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",slug:"Slug",required:"Verplicht",placeholder:"Tijdelijke plaatshouder",help_text:"Hulp Text",default_value:"Standaard waarde",prefix:"Voorvoegsel",starting_number:"Startnummer",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",press_enter_to_add:"Druk op Enter om een nieuwe optie toe te voegen",model_in_use:"Kan model niet bijwerken voor velden die al in gebruik zijn.",type_in_use:"Kan type niet bijwerken voor velden die al in gebruik zijn."},customization:{customization:"aanpassen",updated_message:"Bedrijfsinformatie succesvol bijgewerkt",save:"Opslaan",insert_fields:"Velden invoegen",learn_custom_format:"Leer hoe je een aangepast formaat kunt gebruiken",add_new_component:"Component toevoegen",component:"Component",Parameter:"Parameter",series:"Reeksen",series_description:"Om een statische voorvoegsel/postfix zoals 'INV' in uw hele bedrijf in te stellen. Het ondersteunt tekenlengte tot 4 tekens.",series_param_label:"Serie Waarde",delimiter:"Scheidingsteken",delimiter_description:"Enkel teken voor het opgeven van de grens tussen 2 verschillende componenten. Standaard is het ingesteld op -",delimiter_param_label:"Scheidingsteken waarde",date_format:"Datumformaat",date_format_description:"Een lokaal datum- en tijdveld dat een formaatparameter accepteert. Het standaardformaat: 'Y' geeft het huidige jaar weer.",date_format_param_label:"Formaat",sequence:"Volgnummer",sequence_description:"Opeenvolgende nummering voor uw bedrijf. U kunt de lengte opgeven op de aangegeven parameter.",sequence_param_label:"Volgnummerlengte",customer_series:"Voorvoegsel",customer_series_description:"Om een andere voor- of achtervoegsel voor elke klant in te stellen.",customer_sequence:"Klantnummer",customer_sequence_description:"Een volgnummer voor elk van uw klanten.",customer_sequence_param_label:"Klantnummerlengte",random_sequence:"Willekeurige reeks",random_sequence_description:"Willekeurige alfanumerieke tekenreeks. U kunt de lengte opgeven op de aangegeven parameters.",random_sequence_param_label:"Volgnummerlengte",invoices:{title:"Facturen",invoice_number_format:"Factuurnummer indeling",invoice_number_format_description:"Wijzig hoe uw factuurnummer automatisch wordt gegenereerd bij het aanmaken van een nieuwe factuur.",preview_invoice_number:"Voorbeeldweergave factuurnummer indeling",due_date:"Vervaldatum",due_date_description:"Geef aan hoe de vervaldatum automatisch wordt ingesteld wanneer u een factuur aanmaakt.",due_date_days:"Factuur verlopen na dagen",set_due_date_automatically:"Vervaldatum automatisch vullen",set_due_date_automatically_description:"Schakel dit in als u automatisch een vervaldatum wilt instellen wanneer u een nieuwe factuur aanmaakt.",default_formats:"Standaard opmaak",default_formats_description:"Onderstaand formaat wordt gebruikt om de velden automatisch in te vullen bij het aanmaken van facturen.",default_invoice_email_body:"Standaard factuur email text",company_address_format:"Bedrijfsadres format",shipping_address_format:"Verzendadres format",billing_address_format:"Factuuradres format",invoice_email_attachment:"Stuur factuur als bijlage",invoice_email_attachment_setting_description:"Schakel dit in als u facturen als e-mailbijlage wilt verzenden. Houd er rekening mee dat de knop 'Factuur bekijken' in e-mails niet meer wordt weergegeven wanneer deze is ingeschakeld.",invoice_settings_updated:"Factuurinstelling succesvol bijgewerkt",retrospective_edits:"Retrospectieve bewerkingen",allow:"Toestaan",disable_on_invoice_partial_paid:"Uitschakelen nadat gedeeltelijke betaling is opgeslagen",disable_on_invoice_paid:"Uitschakelen nadat volledige betaling is opgenomen",disable_on_invoice_sent:"Uitschakelen nadat factuur is verzonden",retrospective_edits_description:" Op basis van de wetten van uw land of uw voorkeur, kunt u gebruikers beperken om afgeronde facturen te bewerken."},estimates:{title:"Offertes",estimate_number_format:"Offerte nummer formaat",estimate_number_format_description:"Aanpassen hoe uw offertes nummer automatisch wordt gegenereerd als u een nieuwe offerte aanmaakt.",preview_estimate_number:"Voorbeeld offertes nummer",expiry_date:"Vervaldatum",expiry_date_description:"Geef aan hoe de vervaldatum automatisch wordt ingesteld wanneer u een offerte aanmaakt.",expiry_date_days:"Offerte vervalt over dagen",set_expiry_date_automatically:"Automatisch vervaldatum instellen",set_expiry_date_automatically_description:"Schakel dit in als u automatisch de vervaldatum wilt instellen wanneer u een nieuwe schatting maakt.",default_formats:"Standaardformaat",default_formats_description:"Onderstaand formaten wordt gebruikt om de velden automatisch in te vullen bij het aanmaken van offerte.",default_estimate_email_body:"Standaard offerte email text",company_address_format:"Bedrijfsadres format",shipping_address_format:"Verzendadres format",billing_address_format:"Factuuradres Format",estimate_email_attachment:"Stuur offerte als bijlage",estimate_email_attachment_setting_description:"Schakel dit in als u de offertes als e-mailbijlage wilt verzenden. Houd er rekening mee dat de knop 'Bekijk offerte' in e-mails niet meer wordt weergegeven wanneer deze is ingeschakeld.",estimate_settings_updated:"Instelling Offerte succesvol bijgewerkt",convert_estimate_options:"Offerte omzetten actie",convert_estimate_description:"Specificeer wat er gebeurt met de offerte nadat deze omgezet is naar een factuur.",no_action:"Geen handeling",delete_estimate:"Schatting verwijderen",mark_estimate_as_accepted:"Markeren offerte als geaccepteerd"},payments:{title:"Betalingen",payment_number_format:"Betalingnummer formaat",payment_number_format_description:"Aanpassen hoe uw offertes nummer automatisch wordt gegenereerd als u een nieuwe offerte aanmaakt.",preview_payment_number:"Bekijk betalingsnummer",default_formats:"Standaard formaten",default_formats_description:"Onderstaande formaten worden gebruikt om de velden automatisch in te vullen bij het maken van betalingen.",default_payment_email_body:"Standaard format betalingsmail",company_address_format:"Bedrijfsadres format",from_customer_address_format:"Van klant adres formaat",payment_email_attachment:"Stuur betaalbewijs als bijlage",payment_email_attachment_setting_description:"Schakel dit in als u de betalingsbewijzen als e-mailbijlage wilt verzenden. Houd er rekening mee dat de knop 'Betaling bekijken' in e-mails niet meer wordt weergegeven wanneer deze is ingeschakeld.",payment_settings_updated:"Betalingsinstelling ge\xFCpdatet"},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"},roles:{title:"Rollen",description:"Beheer de rollen en machtigingen van dit bedrijf",save:"Opslaan",add_new_role:"Nieuwe rol toevoegen",role_name:"Rol naam",added_on:"Toegevoegd op",add_role:"Rol toevoegen",edit_role:"Rol bewerken",name:"Naam",permission:"Machtiging Machtigingen",select_all:"Selecteer alles",none:"Geen",confirm_delete:"Dit rol wordt permanent verwijderd",created_message:"Rol succesvol gemaakt",updated_message:"Rol succesvol bijgewerkt",deleted_message:"Rol succesvol verwijderd",already_in_use:"Rol is reeds in gebruik"},exchange_rate:{exchange_rate:"Wisselkoers",title:"Problemen met wisselkoersen oplossen",description:"Voer de wisselkoers in van alle onderstaande valuta's om Crater te helpen de bedragen in {currency} goed te berekenen.",drivers:"Stuurprogramma 's",new_driver:"Voeg nieuwe provider toe",edit_driver:"Provider bewerken",select_driver:"Selecteer stuurprogramma",update:"selecteer wisselkoers ",providers_description:"Configureer hier uw wisselkoersaanbieders om de laatste wisselkoers voor transacties automatisch op te halen.",key:"API sleutel",name:"Naam",driver:"Stuurprogramma",is_default:"IS STANDAARD",currency:"Valuta's",exchange_rate_confirm_delete:"Dit stuurprogramma wordt permanent verwijderd",created_message:"Provider succesvol aangemaakt",updated_message:"Provider succesvol bijgewerkt",deleted_message:"Provider succesvol verwijderd",error:" U kunt de actieve stuurprogramma niet verwijderen",default_currency_error:"Deze valuta wordt al gebruikt in een van de Actieve Provider",exchange_help_text:"Voer de wisselkoers in om te converteren van {currency} naar {baseCurrency}",currency_freak:"Valuta Freak",currency_layer:"Currency Layer",open_exchange_rate:"Open Exchange Rate",currency_converter:"Valuta omzetter",server:"Server",url:"URL",active:"Actief",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:"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"},payment_modes:{title:"Betaalmethodes",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:"Betaalwijze toegevoegd",payment_mode_updated:"Payment Mode Updated",payment_mode_confirm_delete:"You will not be able to recover this Payment Mode",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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.",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:"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",recurring_invoice_status:"Recurring Invoice Status",create_status:"Create Status",active:"Active",on_hold:"In wacht",update_status:"Updatestatus",completed:"Voltooid",company_currency_unchangeable:"Bedrijfsvaluta kan niet worden gewijzigd"},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",deleting_files:"Ongebruikte bestanden verwijderen",running_migrations:"Migraties uitvoeren",finishing_update:"Afwerking Update",update_failed:"Update mislukt",update_failed_text:"Sorry!\xA0Je update is mislukt op: {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:"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:"Bestandssysteem locatie",local_driver:"lokaal besturingsprogramma",local_root:"locale schijf",public_driver:"Publiek besturingsprogramma",public_root:"Openbare schijf",public_url:"Publieke URL",public_visibility:"Publieke zichtbaarheid",media_driver:"Media stuurprogramma",media_root:"Media schijf",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",set_default_disk_confirm:"Deze schijf zal als standaard worden ingesteld en alle nieuwe PDF's worden opgeslagen op deze schijf",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"},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."}},hg={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.",currency_set_alert:"The company's currency cannot be changed later.",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."},verify_domain:{title:"Menselijke Verificatie",desc:"Crater maakt gebruik van sessie gebaseerde authenticatie die domeinverificatie vereist voor veiligheidsdoeleinden. Voer het domein in waarop u toegang zult krijgen tot uw webapplicatie.",app_domain:"App Domein",verify_now:"Nu verifi\xEBren",success:"E-mailadres succesvol geverifieerd.",failed:"Domain verification failed. Please enter valid domain name.",verify_and_continue:"Verifi\xEBren en doorgaan"},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."}},bg={invalid_phone:"Ongeldig Telefoonnummer",invalid_url:"Ongeldige URL (bijvoorbeeld: http://www.crater.com))",invalid_domain_url:"Ongeldige URL (bijvoorbeeld: crater.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.",prefix_min_length:"Prefix must have at least {count} letters.",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.",discount_maxlength:"Discount should not be greater than max discount",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",number_length_minvalue:"Het getal moet groter zijn dan 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:"Bedrijfsnaam moet overeenkomen met de opgegeven naam."},kg={starter_plan:"Deze functie is beschikbaar vanaf het Starter abonnement!",invalid_provider_key:"Voer een geldige API-sleutel in.",estimate_number_used:"Dit offertenummer is reeds in gebruik.",invoice_number_used:"Dit factuurnummer is reeds in gebruik.",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:"Dit factuurnummer is reeds in gebruik.",name_already_taken:"Deze naam is reeds in gebruik.",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:"Inloggegevens ongeldig.",not_allowed:"Niet toegestaan",login_invalid_credentials:"Deze gegevens zijn niet correct.",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"},wg="Offerte",zg="Offerte nummer",xg="Offerte Datum",Pg="Vervaldatum",Sg="Factuur",jg="Factuurnummer",Ag="Factuur datum",Dg="Vervaldatum",Cg="Opmerkingen",Ng="Artikelen",Eg="Aantal stuks",Ig="Prijs",Tg="Korting",Rg="Bedrag",Mg="Subtotaal",Fg="Totaal",$g="Betaling",Ug="Betalingsafschrift",Vg="Betalingsdatum",Og="Betalingsnummer",Lg="Betaalmethode",qg="Ontvangen bedrag",Bg="UITGAVEN RAPPORT",Kg="TOTALE UITGAVEN",Zg="WINST & VERLIES RAPPORT",Wg="Klant verkoop rapport",Hg="Artikel verkooprapport",Yg="Belastingoverzicht",Gg="INKOMEN",Jg="NETTO WINST",Qg="Verkooprapport: per klant",Xg="TOTALE VERKOPEN",ev="Verkooprapport: Per Item",tv="BELASTINGEN RAPPORT",av="TOTALE BELASTINGEN",nv="Belastingtypen",iv="Uitgaven",ov="Rekening naar,",sv="Verzend naar,",rv="Ontvangen van:",dv="Btw";var lv={navigation:eg,general:tg,dashboard:ag,tax_types:ng,global_search:ig,company_switcher:og,dateRange:sg,customers:rg,items:dg,estimates:lg,invoices:cg,recurring_invoices:_g,payments:ug,expenses:mg,login:pg,modules:fg,users:gg,reports:vg,settings:yg,wizard:hg,validation:bg,errors:kg,pdf_estimate_label:wg,pdf_estimate_number:zg,pdf_estimate_date:xg,pdf_estimate_expire_date:Pg,pdf_invoice_label:Sg,pdf_invoice_number:jg,pdf_invoice_date:Ag,pdf_invoice_due_date:Dg,pdf_notes:Cg,pdf_items_label:Ng,pdf_quantity_label:Eg,pdf_price_label:Ig,pdf_discount_label:Tg,pdf_amount_label:Rg,pdf_subtotal:Mg,pdf_total:Fg,pdf_payment_label:$g,pdf_payment_receipt_label:Ug,pdf_payment_date:Vg,pdf_payment_number:Og,pdf_payment_mode:Lg,pdf_payment_amount_received_label:qg,pdf_expense_report_label:Bg,pdf_total_expenses_label:Kg,pdf_profit_loss_label:Zg,pdf_sales_customers_label:Wg,pdf_sales_items_label:Hg,pdf_tax_summery_label:Yg,pdf_income_label:Gg,pdf_net_profit_label:Jg,pdf_customer_sales_report:Qg,pdf_total_sales_label:Xg,pdf_item_sales_label:ev,pdf_tax_report_label:tv,pdf_total_tax_label:av,pdf_tax_types_label:nv,pdf_expenses_label:iv,pdf_bill_to:ov,pdf_ship_to:sv,pdf_received_from:rv,pdf_tax_label:dv};const cv={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"},_v={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!"},uv={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"}},mv={name:"\uC774\uB984",description:"\uAE30\uC220",percent:"\uD37C\uC13C\uD2B8",compound_tax:"\uBCF5\uD569 \uC138"},pv={search:"\uAC80\uC0C9...",customers:"\uACE0\uAC1D",users:"\uC0AC\uC6A9\uC790",no_results_found:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4"},fv={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."},gv={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."},vv={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)"}},yv={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."},hv={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."},bv={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"}},kv={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"},wv={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."},zv={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"}},xv={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 '\uC778\uBCF4\uC774\uC2A4\uBCF4\uAE30'\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 '\uC608\uC0C1\uBCF4\uAE30'\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 '\uACB0\uC81C\uBCF4\uAE30'\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"}},Pv={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."}},Sv={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"},jv="\uACAC\uC801",Av="\uACAC\uC801 \uBC88\uD638",Dv="\uC608\uC0C1 \uB0A0\uC9DC",Cv="\uB9CC\uB8CC\uC77C",Nv="\uC1A1\uC7A5",Ev="\uC1A1\uC7A5 \uBC88\uD638",Iv="\uC1A1\uC7A5 \uB0A0\uC9DC",Tv="\uB9C8\uAC10\uC77C",Rv="\uB178\uD2B8",Mv="\uC544\uC774\uD15C",Fv="\uC218\uB7C9",$v="\uAC00\uACA9",Uv="\uD560\uC778",Vv="\uC591",Ov="\uC18C\uACC4",Lv="\uD569\uACC4",qv="\uC9C0\uBD88",Bv="\uC601\uC218\uC99D",Kv="\uACB0\uC81C\uC77C",Zv="\uACB0\uC81C \uBC88\uD638",Wv="\uC9C0\uBD88 \uBAA8\uB4DC",Hv="\uBC1B\uC740 \uAE08\uC561",Yv="\uBE44\uC6A9 \uBCF4\uACE0\uC11C",Gv="\uCD1D \uBE44\uC6A9",Jv="\uC774\uC775",Qv="\uD310\uB9E4 \uACE0\uAC1D \uBCF4\uACE0\uC11C",Xv="\uD310\uB9E4 \uD488\uBAA9 \uBCF4\uACE0\uC11C",ey="\uC138\uAE08 \uC694\uC57D \uBCF4\uACE0\uC11C",ty="\uC218\uC785",ay="\uC21C\uC774\uC775",ny="\uD310\uB9E4 \uBCF4\uACE0\uC11C : \uACE0\uAC1D \uBCC4",iy="\uCD1D \uB9E4\uCD9C",oy="\uD310\uB9E4 \uBCF4\uACE0\uC11C : \uD488\uBAA9\uBCC4",sy="\uC138\uAE08 \uBCF4\uACE0\uC11C",ry="\uCD1D \uC138\uAE08",dy="\uC138\uAE08 \uC720\uD615",ly="\uACBD\uBE44",cy="\uCCAD\uAD6C\uC11C,",_y="\uBC30\uC1A1\uC9C0,",uy="\uBC1B\uC740 \uC0AC\uB78C :",my="\uC138";var py={navigation:cv,general:_v,dashboard:uv,tax_types:mv,global_search:pv,customers:fv,items:gv,estimates:vv,invoices:yv,payments:hv,expenses:bv,login:kv,users:wv,reports:zv,settings:xv,wizard:Pv,validation:Sv,pdf_estimate_label:jv,pdf_estimate_number:Av,pdf_estimate_date:Dv,pdf_estimate_expire_date:Cv,pdf_invoice_label:Nv,pdf_invoice_number:Ev,pdf_invoice_date:Iv,pdf_invoice_due_date:Tv,pdf_notes:Rv,pdf_items_label:Mv,pdf_quantity_label:Fv,pdf_price_label:$v,pdf_discount_label:Uv,pdf_amount_label:Vv,pdf_subtotal:Ov,pdf_total:Lv,pdf_payment_label:qv,pdf_payment_receipt_label:Bv,pdf_payment_date:Kv,pdf_payment_number:Zv,pdf_payment_mode:Wv,pdf_payment_amount_received_label:Hv,pdf_expense_report_label:Yv,pdf_total_expenses_label:Gv,pdf_profit_loss_label:Jv,pdf_sales_customers_label:Qv,pdf_sales_items_label:Xv,pdf_tax_summery_label:ey,pdf_income_label:ty,pdf_net_profit_label:ay,pdf_customer_sales_report:ny,pdf_total_sales_label:iy,pdf_item_sales_label:oy,pdf_tax_report_label:sy,pdf_total_tax_label:ry,pdf_tax_types_label:dy,pdf_expenses_label:ly,pdf_bill_to:cy,pdf_ship_to:_y,pdf_received_from:uy,pdf_tax_label:my};const fy={dashboard:"Inform\u0101cijas panelis",customers:"Klienti",items:"Preces",invoices:"R\u0113\u0137ini","recurring-invoices":"Regul\u0101rie r\u0113\u0137ini",expenses:"Izdevumi",estimates:"Apr\u0113\u0137ini",payments:"Maks\u0101jumi",reports:"Atskaites",settings:"Iestat\u012Bjumi",logout:"Iziet",users:"Lietot\u0101ji",modules:"Modules"},gy={add_company:"Pievienot uz\u0146\u0113mumu",view_pdf:"Apskat\u012Bt PDF",copy_pdf_url:"Kop\u0113t PDF saiti",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",ok:"Labi",yes:"J\u0101",no:"N\u0113",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",preview:"Priek\u0161skat\u012Bt\u012Bjums",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:"L\u012Bdz",draft:"Melnraksts",sent:"Nos\u016Bt\u012Bts",all:"Visi",select_all:"Iez\u012Bm\u0113t visu",select_template:"Izv\u0113l\u0113ties veidni",choose_file:"Spied \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",copied_pdf_url_clipboard:"Saglab\u0101t PDF saiti!",copied_url_clipboard:"Copied url to clipboard!",docs:"Dokumenti",do_you_wish_to_continue:"Vai v\u0113lies turpin\u0101t?",note:"Piez\u012Bme",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},vy={select_year:"Izv\u0113lieties gadu",cards:{due_amount:"Apmaksas summa",customers:"Klienti",invoices:"R\u0113\u0137ini",estimates:"Apr\u0113\u0137ini",payments:"Payments"},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"}},yy={name:"Nosaukums",description:"Apraksts",percent:"Procenti",compound_tax:"Saliktie nodok\u013Ci"},hy={search:"Mekl\u0113t...",customers:"Klienti",users:"Lietot\u0101ji",no_results_found:"Nav atbilsto\u0161u rezult\u0101tu"},by={label:"NOMAIN\u012AT UZ\u0145\u0112MUMU",no_results_found:"Nekas netika atrasts",add_new_company:"Pievienot jaunu uz\u0146\u0113mumu",new_company:"Jauns uz\u0146\u0113mums",created_message:"Uz\u0146\u0113mums veiksm\u012Bgi pievienots"},ky={today:"\u0160odien",this_week:"\u0160oned\u0113\u013C",this_month:"\u0160om\u0113nes",this_quarter:"Ceturksn\u012B",this_year:"\u0160ogad",previous_week:"Iepriek\u0161\u0113j\u0101 ned\u0113\u013Ca",previous_month:"Iepriek\u0161\u0113j\u0101 m\u0113nes\u012B",previous_quarter:"Iepriek\u0161\u0113j\u0101 ceturksn\u012B",previous_year:"Iepriek\u0161\u0113j\u0101 gad\u0101",custom:"Piel\u0101gots"},wy={title:"Klienti",prefix:"Prefikss",add_customer:"Pievienot klientu",contacts_list:"Klientu saraksts",name:"V\u0101rds",mail:"Pasts",statement:"Pazi\u0146ojums",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",invoice_prefix:"R\u0113\u0137ina prefikss",estimate_prefix:"Apr\u0113\u0137inu prefikss",payment_prefix:"Maks\u0101juma prefikss",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",confirm_password:"Apstipriniet paroli",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",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:"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:"Nav kontaktu",no_contact_name:"Nav kontaktv\u0101rda",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",address_updated_message:"Address Information Updated succesfully",deleted_message:"Klients veiksm\u012Bgi izdz\u0113sts",edit_currency_not_allowed:"Nevar izmain\u012Bt val\u016Btu, ja maks\u0101jums ir veikts."},zy={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:"Nekas netika izv\u0113l\u0113ts",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"},xy={title:"Apr\u0113\u0137ini",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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:"Noraid\u012Bts",expired:"Expired",sent:"Nos\u016Bt\u012Bts",draft:"Melnraksts",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},Py={title:"R\u0113\u0137ini",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"R\u0113\u0137inu saraksts",invoice_information:"Invoice Information",days:"{days} Dienas",months:"{months} M\u0113nesis",years:"{years} Gads",all:"Visi",paid:"Apmaks\u0101ts",unpaid:"Neapmaks\u0101ts",viewed:"Apskat\u012Bts",overdue:"Kav\u0113ts",completed:"Pabeigts",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",conversion_message:"R\u0113\u0137ins ir veiksm\u012Bgi nokop\u0113ts",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_mark_as_accepted:"R\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 apstiprin\u0101ts",confirm_mark_as_rejected:"R\u0113\u0137ins tiks atz\u012Bm\u0113ts k\u0101 noraid\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!",mark_as_rejected:"Atz\u012Bm\u0113t k\u0101 noraid\u012Btu",mark_as_accepted:"Atz\u012Bm\u0113t k\u0101 apstiprin\u0101tu",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)"},payment_attached_message:"Vienam no atz\u012Bm\u0113tajiem r\u0113\u0137iniem jau ir pievienots maks\u0101jums. P\u0101rliecinieties, ka pievienoti maks\u0101jumi ir izdz\u0113sti",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},Sy={title:"Regul\u0101rie r\u0113\u0137ini",invoices_list:"Regul\u0101ro r\u0113\u0137inu saraksts",days:"{days} Dienas",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:"S\u0101kuma datums",due_date:"R\u0113\u0137ina apmaksas datumu",record_payment:"Izveidot maks\u0101jumu",add_new_invoice:"Pievienot jaunu regul\u0101ro r\u0113\u0137inu",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."},jy={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"},Ay={title:"Izdevumi",expenses_list:"Izdevumu saraksts",select_a_customer:"Izv\u0113l\u0113ties klientu",expense_title:"Nosaukums",customer:"Klients",currency:"Currency",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"}},Dy={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"},Cy={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"},Ny={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",select_company_role:"Select Role for {company}",companies:"Companies"},Ey={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"}},Iy={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",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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",delete:"Delete",updated_message:"Uz\u0146\u0113muma inform\u0101cija veiksm\u012Bgi saglab\u0101ta",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:"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",slug:"Slug",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",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:"piel\u0101go\u0161ana",updated_message:"Uz\u0146\u0113muma inform\u0101cija veiksm\u012Bgi saglab\u0101ta",save:"Saglab\u0101t",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:"R\u0113\u0137ini",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:"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_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:"Apr\u0113\u0137ini",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:"Noklus\u0113jamais Apr\u0113\u0137ina e-pasta saturs",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",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:"Maks\u0101jumi",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:"Noklus\u0113jamais Maks\u0101juma e-pasta saturs",company_address_format:"Uz\u0146\u0113muma adreses form\u0101ts",from_customer_address_format:"No Klienta adreses form\u0101ts",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:"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:"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:"Jums neb\u016Bs iesp\u0113jas atg\u016Bt \u0161o Nodok\u013Ca veidu",already_in_use:"Nodoklis jau tiek izmantots"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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.",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:"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",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:"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",deleting_files:"Deleting Unused files",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",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:"IR NOKLUS\u0112JAMS",set_default_disk:"Iestatiet noklus\u0113juma disku",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:"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"},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."}},Ty={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.",currency_set_alert:"The company's currency cannot be changed later.",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."},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:"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."}},Ry={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 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",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."},My={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"},Fy="Apr\u0113\u0137ins",$y="Apr\u0113\u0137ina numurs",Uy="Apr\u0113\u0137ina datums",Vy="Der\u012Bgs l\u012Bdz",Oy="R\u0113\u0137ins",Ly="R\u0113\u0137ina numurs",qy="R\u0113\u0137ina datums",By="Apmaksas termi\u0146\u0161",Ky="Notes",Zy="Nosaukums",Wy="Daudzums",Hy="Cena",Yy="Atlaide",Gy="Summa",Jy="Starpsumma",Qy="Kop\u0101",Xy="Payment",eh="MAKS\u0100JUMA IZDRUKA",th="Maks\u0101juma datums",ah="Maks\u0101juma numurs",nh="Apmaksas veids",ih="Sa\u0146emt\u0101 summa",oh="IZDEVUMU ATSKAITE",sh="KOP\u0100 IZDEVUMI",rh="PE\u013B\u0145AS & IZDEVUMU ATSKAITE",dh="Sales Customer Report",lh="Sales Item Report",ch="Tax Summary Report",_h="IEN\u0100KUMI",uh="PE\u013B\u0145A",mh="Atskaite par p\u0101rdoto: P\u0113c lietot\u0101ja",ph="KOP\u0100 P\u0100RDOTAIS",fh="Atskaite par p\u0101rdoto: P\u0113c preces/pakalpojuma",gh="NODOK\u013BU ATSKAITE",vh="NODOK\u013BI KOP\u0100",yh="Nodok\u013Cu veidi",hh="Izdevumi",bh="Sa\u0146\u0113m\u0113js,",kh="Pieg\u0101des adrese,",wh="Sa\u0146emts no:",zh="Tax";var xh={navigation:fy,general:gy,dashboard:vy,tax_types:yy,global_search:hy,company_switcher:by,dateRange:ky,customers:wy,items:zy,estimates:xy,invoices:Py,recurring_invoices:Sy,payments:jy,expenses:Ay,login:Dy,modules:Cy,users:Ny,reports:Ey,settings:Iy,wizard:Ty,validation:Ry,errors:My,pdf_estimate_label:Fy,pdf_estimate_number:$y,pdf_estimate_date:Uy,pdf_estimate_expire_date:Vy,pdf_invoice_label:Oy,pdf_invoice_number:Ly,pdf_invoice_date:qy,pdf_invoice_due_date:By,pdf_notes:Ky,pdf_items_label:Zy,pdf_quantity_label:Wy,pdf_price_label:Hy,pdf_discount_label:Yy,pdf_amount_label:Gy,pdf_subtotal:Jy,pdf_total:Qy,pdf_payment_label:Xy,pdf_payment_receipt_label:eh,pdf_payment_date:th,pdf_payment_number:ah,pdf_payment_mode:nh,pdf_payment_amount_received_label:ih,pdf_expense_report_label:oh,pdf_total_expenses_label:sh,pdf_profit_loss_label:rh,pdf_sales_customers_label:dh,pdf_sales_items_label:lh,pdf_tax_summery_label:ch,pdf_income_label:_h,pdf_net_profit_label:uh,pdf_customer_sales_report:mh,pdf_total_sales_label:ph,pdf_item_sales_label:fh,pdf_tax_report_label:gh,pdf_total_tax_label:vh,pdf_tax_types_label:yh,pdf_expenses_label:hh,pdf_bill_to:bh,pdf_ship_to:kh,pdf_received_from:wh,pdf_tax_label:zh};const Ph={dashboard:"\xD6versikt",customers:"Kunder",items:"Artiklar",invoices:"Fakturor","recurring-invoices":"\xC5terkommande fakturor",expenses:"Utgifter",estimates:"Kostnadsf\xF6rslag",payments:"Betalningar",reports:"Rapporter",settings:"Inst\xE4llningar",logout:"Logga ut",users:"Anv\xE4ndare",modules:"Modules"},Sh={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",ok:"Ok",yes:"Ja",no:"Nej",sort_by:"Sortera p\xE5",ascending:"Stigande",descending:"Fallande",subject:"\xC4mne",body:"Inneh\xE5ll",message:"Meddelande",send:"Skicka",preview:"F\xF6rhandsgranska",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",select_template:"V\xE4lj mall",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!",copied_url_clipboard:"Copied url to clipboard!",docs:"Dokumentation",do_you_wish_to_continue:"Vill du forts\xE4tta?",note:"Notering",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},jh={select_year:"V\xE4lj \xE5r",cards:{due_amount:"F\xF6rfallet belopp",customers:"Kunder",invoices:"Fakturor",estimates:"Kostnadsf\xF6rslag",payments:"Payments"},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"}},Ah={name:"Namn",description:"Beskrivning",percent:"Provent",compound_tax:"Sammansatt moms"},Dh={search:"S\xF6k...",customers:"Kunder",users:"Anv\xE4ndare",no_results_found:"Hittade inga resultat"},Ch={label:"Byt f\xF6retag",no_results_found:"Inga resultat hittades",add_new_company:"L\xE4gg till nytt f\xF6retag",new_company:"Nytt f\xF6retag",created_message:"F\xF6retaget har skapats"},Nh={today:"Idag",this_week:"Denna vecka",this_month:"Denna m\xE5nad",this_quarter:"Detta kvartal",this_year:"I \xE5r",previous_week:"F\xF6reg\xE5ende vecka",previous_month:"F\xF6reg\xE5ende m\xE5nad",previous_quarter:"F\xF6reg\xE5ende kvartal",previous_year:"F\xF6reg\xE5ende \xE5r",custom:"Anpassad"},Eh={title:"Kunder",prefix:"Prefix",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",invoice_prefix:"Prefix f\xF6r fakturor",estimate_prefix:"Prefix f\xF6r kostnadsf\xF6rslag",payment_prefix:"Prefix f\xF6r betalningar",enable_portal:"Aktivera portal",country:"Land",state:"Kommun",city:"Stad",zip_code:"Postnummer",added_on:"Tillagd den",action:"Handling",password:"L\xF6senord",confirm_password:"Bekr\xE4fta 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",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:"Fakturaadress",shipping_address:"Leveransadress",copy_billing_address:"Kopiera fr\xE5n faktura",no_customers:"Inga kunder \xE4n!",no_customers_found:"Hittade inga kunder!",no_contact:"Inga kontakter",no_contact_name:"Kontaktnamn",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",address_updated_message:"Address Information Updated succesfully",deleted_message:"Kund raderades | Kunder raderades",edit_currency_not_allowed:"Kan inte \xE4ndra valuta n\xE4r transaktioner har skapats."},Ih={title:"Artiklar",items_list:"Artikellista",name:"Namn",unit:"Enhet",description:"Beskrivning",added_on:"Tillagd den",price:"Pris",date_of_creation:"Skapandedatum",not_selected:"Inga poster valda",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"},Th={title:"Kostnadsf\xF6rslag",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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:"Avvisad",expired:"Expired",sent:"Skickat",draft:"Utkast",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},Rh={title:"Fakturor",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Fakturor",invoice_information:"Invoice Information",days:"{days} dagar",months:"{months} m\xE5nader",years:"{years} \xE5r",all:"Alla",paid:"Betalda",unpaid:"Obetalda",viewed:"Visade",overdue:"F\xF6rfallna",completed:"Slutf\xF6rda",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",conversion_message:"Fakturan kopierades",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_mark_as_accepted:"Denna faktura kommer att markeras som Godk\xE4nd",confirm_mark_as_rejected:"Denna faktura kommer att markeras som Avvisad",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!",mark_as_rejected:"Markera som avvisad",mark_as_accepted:"Markera som godk\xE4nd",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)"},payment_attached_message:"En av dom valda fakturorna har redan en betalning kopplad till sig. Du m\xE5ste radera dom kopplade betalningarna f\xF6rst f\xF6r att kunna forts\xE4tta raderingen",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},Mh={title:"\xC5terkommande fakturor",invoices_list:"\xC5terkommande fakturor",days:"{days} Dagar",months:"{months} M\xE5nader",years:"{years} \xC5r",all:"Alla",paid:"Betalda",unpaid:"Obetalda",viewed:"Visade",overdue:"F\xF6rsenade",active:"Aktiva",completed:"Slutf\xF6rda",customer:"KUND",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:"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."},Fh={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:"Ej markerad",no_invoice:"Ingen faktura",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"},$h={title:"Utgifter",expenses_list:"Lista med utgifter",select_a_customer:"V\xE4lj en kund",expense_title:"Titel",customer:"Kund",currency:"Currency",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:"Ej markerad",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"}},Uh={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"},Vh={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"},Oh={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",select_company_role:"Select Role for {company}",companies:"Companies"},Lh={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"}},qh={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",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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",delete:"Delete",updated_message:"F\xF6retagsinformation uppdaterad",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:"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",slug:"Slug",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",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:"Anpassning",updated_message:"F\xF6retagsinformation uppdaterades",save:"Spara",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:"Fakturor",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:"Standardtext f\xF6r faktura",company_address_format:"Formatering av f\xF6retagsadress",shipping_address_format:"Formatering av leveransadress",billing_address_format:"Formatering av fakturaadress",invoice_email_attachment:"Skicka fakturor som bilagor",invoice_email_attachment_setting_description:'Aktivera detta om du vill skicka fakturor som e-postbilaga. Observera att knappen "Visa faktura" i e-post inte l\xE4ngre kommer att visas n\xE4r den \xE4r aktiverad.',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:"Kostnadsf\xF6rslag",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:"Standardtext f\xF6r kostnadsf\xF6rslag",company_address_format:"Formatering av f\xF6retagsadress",shipping_address_format:"Formatering av leveransadress",billing_address_format:"Formatering av fakturaadress",estimate_email_attachment:"Send estimates as attachments",estimate_email_attachment_setting_description:'Aktivera detta om du vill skicka offerterna som en e-postbilaga. Observera att knappen "Visa offert" i e-post inte l\xE4ngre kommer att visas n\xE4r den \xE4r aktiverad.',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:"Betalningar",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:"Standardtext f\xF6r betalningar",company_address_format:"Format f\xF6r f\xF6retagsadress",from_customer_address_format:"Format f\xF6r kundens fr\xE5n-adress",payment_email_attachment:"Skicka betalningar som bilagor",payment_email_attachment_setting_description:'Aktivera detta om du vill skicka betalningskvitton som en e-postbilaga. Observera att knappen "Visa betalning" i e-post inte l\xE4ngre kommer att visas n\xE4r den \xE4r aktiverad.',payment_settings_updated:"Payment Settings updated successfully"},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"},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:"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"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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.",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:"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",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:"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",deleting_files:"Tar bort oanv\xE4nda filer",running_migrations:"K\xF6r migreringar",finishing_update:"Avslutar uppdateringen",update_failed:"Uppdatering misslyckades",update_failed_text:"Uppdateringen misslyckades p\xE5 steg : {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:"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"},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."}},Bh={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.",currency_set_alert:"The company's currency cannot be changed later.",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."},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:"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."}},Kh={invalid_phone:"Felaktigt telefonnummer",invalid_url:"Felaktig url (ex: http://www.crater.com)",invalid_domain_url:"Felaktig url (ex: crater.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.",prefix_min_length:"Prefix must have at least {count} letters.",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.",discount_maxlength:"Discount should not be greater than max discount",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",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."},Zh={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"},Wh="Kostnadsf\xF6rslag",Hh="Kostnadsf\xF6rslagsnummer",Yh="Kostnadsf\xF6rslagsdatum",Gh="Utg\xE5ngsdatum",Jh="Faktura",Qh="Fakturanummer",Xh="Fakturadatum",eb="Inbetalningsdatum",tb="Noteringar",ab="Artiklar",nb="Antal",ib="Kostnad",ob="Rabatt",sb="Belopp",rb="Delsumma",db="Summa",lb="Payment",cb="Betalningskvitto",_b="Betalningsdatum",ub="Betalningsnummer",mb="Betalningstyp",pb="Belopp mottaget",fb="Kostnadsrapport",gb="Totalkostnad",vb="Resultat- och f\xF6rlustrapport",yb="Sales Customer Report",hb="Sales Item Report",bb="Tax Summary Report",kb="Inkomst",wb="Nettof\xF6rtj\xE4nst",zb="F\xF6rs\xE4ljningsrapport: Per kund",xb="SUMMA F\xD6RS\xC4LJNINGAR",Pb="F\xF6rs\xE4ljningsrapport: Per artikel",Sb="Momsrapport",jb="SUMMA MOMS",Ab="Momssatser",Db="Utgifter",Cb="Faktureras till,",Nb="Skickas till,",Eb="Fr\xE5n:",Ib="Tax";var Tb={navigation:Ph,general:Sh,dashboard:jh,tax_types:Ah,global_search:Dh,company_switcher:Ch,dateRange:Nh,customers:Eh,items:Ih,estimates:Th,invoices:Rh,recurring_invoices:Mh,payments:Fh,expenses:$h,login:Uh,modules:Vh,users:Oh,reports:Lh,settings:qh,wizard:Bh,validation:Kh,errors:Zh,pdf_estimate_label:Wh,pdf_estimate_number:Hh,pdf_estimate_date:Yh,pdf_estimate_expire_date:Gh,pdf_invoice_label:Jh,pdf_invoice_number:Qh,pdf_invoice_date:Xh,pdf_invoice_due_date:eb,pdf_notes:tb,pdf_items_label:ab,pdf_quantity_label:nb,pdf_price_label:ib,pdf_discount_label:ob,pdf_amount_label:sb,pdf_subtotal:rb,pdf_total:db,pdf_payment_label:lb,pdf_payment_receipt_label:cb,pdf_payment_date:_b,pdf_payment_number:ub,pdf_payment_mode:mb,pdf_payment_amount_received_label:pb,pdf_expense_report_label:fb,pdf_total_expenses_label:gb,pdf_profit_loss_label:vb,pdf_sales_customers_label:yb,pdf_sales_items_label:hb,pdf_tax_summery_label:bb,pdf_income_label:kb,pdf_net_profit_label:wb,pdf_customer_sales_report:zb,pdf_total_sales_label:xb,pdf_item_sales_label:Pb,pdf_tax_report_label:Sb,pdf_total_tax_label:jb,pdf_tax_types_label:Ab,pdf_expenses_label:Db,pdf_bill_to:Cb,pdf_ship_to:Nb,pdf_received_from:Eb,pdf_tax_label:Ib};const Rb={dashboard:"Hlavn\xFD Panel",customers:"Z\xE1kazn\xEDci",items:"Polo\u017Eky",invoices:"Fakt\xFAry","recurring-invoices":"Recurring Invoices",expenses:"V\xFDdaje",estimates:"Cenov\xE9 odhady",payments:"Platby",reports:"Reporty",settings:"Nastavenia",logout:"Odhl\xE1si\u0165 sa",users:"U\u017Eivatelia",modules:"Modules"},Mb={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",ok:"Ok",yes:"Yes",no:"No",sort_by:"Zoradi\u0165 pod\u013Ea",ascending:"Vzostupne",descending:"Zostupne",subject:"Predmet",body:"Telo textu",message:"Spr\xE1va",send:"Odosla\u0165",preview:"Preview",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",select_template:"Select Template",choose_file:"Kliknite sem pre vybratie s\xFAboru",choose_template:"Vybra\u0165 vzh\u013Ead",choose:"Vybra\u0165",remove:"Odstr\xE1ni\u0165",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",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",mark_as_default:"Mark as default"},Fb={select_year:"Vyberte rok",cards:{due_amount:"\u010Ciastka k zaplateniu",customers:"Z\xE1kazn\xEDci",invoices:"Fakt\xFAry",estimates:"Cenov\xE9 odhady",payments:"Payments"},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"}},$b={name:"Meno",description:"Popis",percent:"Percento",compound_tax:"Zlo\u017Een\xE1 da\u0148"},Ub={search:"H\u013Eada\u0165...",customers:"Z\xE1kazn\xEDci",users:"U\u017Eivatelia",no_results_found:"Neboli n\xE1jden\xE9 \u017Eiadne v\xFDsledky"},Vb={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},Ob={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"},Lb={title:"Z\xE1kazn\xEDci",prefix:"Prefix",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",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",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",confirm_password:"Confirm Password",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",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:"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!",no_contact:"No contact",no_contact_name:"No contact name",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",address_updated_message:"Address Information Updated succesfully",deleted_message:"Z\xE1kazn\xEDk \xFAspe\u0161ne odstr\xE1nen\xFD | Z\xE1kazn\xEDci \xFAspe\u0161ne odstr\xE1nen\xED",edit_currency_not_allowed:"Cannot change currency once transactions created."},qb={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",not_selected:"No item selected",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"},Bb={title:"Cenov\xE9 odhady",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",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",rejected:"Rejected",expired:"Expired",sent:"Odoslan\xE1",draft:"Koncept",viewed:"Viewed",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)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},Kb={title:"Fakt\xFAry",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Zoznam Fakt\xFAr",invoice_information:"Invoice Information",days:"{days} \u010Ee\u0148",months:"{months} Mesiac",years:"{years} Rok",all:"V\u0161etko",paid:"Zaplaten\xE9",unpaid:"Nezaplaten\xE9",viewed:"Viewed",overdue:"Overdue",completed:"Completed",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",conversion_message:"Invoice cloned successful",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_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",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!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",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:"Invoice sent successfully",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)"},payment_attached_message:"K jednej z vybran\xFDch fakt\xFAr u\u017E je pripojen\xE1 platba. Nezabudnite najsk\xF4r vymaza\u0165 prilo\u017Een\xE9 platby, aby ste mohli pokra\u010Dova\u0165 v odstr\xE1nen\xED",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.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},Zb={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."},Wb={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!",not_selected:"Not selected",no_invoice:"No invoice",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"},Hb={title:"V\xFDdaje",expenses_list:"Zoznam V\xFDdajov",select_a_customer:"Vyberte z\xE1kazn\xEDka",expense_title:"Nadpis",customer:"Z\xE1kazn\xEDk",currency:"Currency",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",not_selected:"Not selected",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"}},Yb={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"},Gb={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"},Jb={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",select_company_role:"Select Role for {company}",companies:"Companies"},Qb={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"}},Xb={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",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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",delete:"Delete",updated_message:"Inform\xE1cie o firme \xFAspe\u0161ne aktualizovan\xE9",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:"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",slug:"Slug",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",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:"Prisp\xF4sobenie",updated_message:"Inform\xE1cie o firme \xFAspe\u0161ne aktualizovan\xE9",save:"Ulo\u017Ei\u0165",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:"Fakt\xFAry",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:"Prednastaven\xE9 telo e-mailu fakt\xFAry",company_address_format:"Form\xE1t firemnej adresy",shipping_address_format:"Form\xE1t doru\u010Dovacej adresy",billing_address_format:"Form\xE1t faktura\u010Dnej adresy",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:"Cenov\xFD odhad",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:"Prednastaven\xE9 telo e-mailu cenov\xE9ho dohadu",company_address_format:"Form\xE1t firemnej adresy",shipping_address_format:"Form\xE1t faktura\u010Dnej adresy",billing_address_format:"Form\xE1t faktura\u010Dnej adresy",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:"Platby",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:"Prednastaven\xE9 telo e-mailu platby",company_address_format:"Form\xE1t firemnej adresy",from_customer_address_format:"Z form\xE1tu adresy z\xE1kazn\xEDka",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:"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"},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:"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"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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.",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:"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",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:"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",deleting_files:"Deleting Unused files",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",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:"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",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 \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"},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."}},ek={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.",currency_set_alert:"The company's currency cannot be changed later.",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."},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:"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."}},tk={invalid_phone:"Zl\xE9 telef\xF3nn\xE9 \u010D\xEDslo",invalid_url:"Nespr\xE1vna URL adresa (ex: http://www.crater.com)",invalid_domain_url:"Nespr\xE1vna URL (ex: crater.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.",prefix_min_length:"Prefix must have at least {count} letters.",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.",discount_maxlength:"Discount should not be greater than max discount",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.",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."},ak={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"},nk="Cenov\xFD odhad",ik="\u010C\xEDslo cenov\xE9ho odhadu",ok="D\xE1tum cenov\xE9ho odhadu",sk="Platnos\u0165 cenov\xE9ho odhadu",rk="Fakt\xFAra",dk="\u010C\xEDslo fakt\xFAry",lk="D\xE1tum vystavenia",ck="D\xE1tum splatnosti",_k="Pozn\xE1mky",uk="Polo\u017Eky",mk="Po\u010Det",pk="Cena",fk="Z\u013Eava",gk="Celkom",vk="Medzis\xFA\u010Det",yk="S\xFA\u010Det",hk="Payment",bk="Doklad o zaplaten\xED",kk="D\xE1tum platby",wk="\u010C\xEDslo platby",zk="Sp\xF4sob platby",xk="Prijat\xE1 suma",Pk="Report v\xFDdajov",Sk="Celkov\xE9 v\xFDdaje",jk="Zisky a straty",Ak="Sales Customer Report",Dk="Sales Item Report",Ck="Tax Summary Report",Nk="Pr\xEDjem",Ek="\u010Cist\xFD pr\xEDjem",Ik="Report predajov: Pod\u013Ea z\xE1kazn\xEDkov",Tk="Celkov\xE9 predaje",Rk="Report predajov: Pod\u013Ea polo\u017Eky",Mk="Report dan\xED",Fk="Celkov\xE9 dane",$k="Typy dan\xED",Uk="V\xFDdaje",Vk="Fakturova\u0165,",Ok="Doru\u010Di\u0165,",Lk="Prijat\xE9 od:",qk="Tax";var Bk={navigation:Rb,general:Mb,dashboard:Fb,tax_types:$b,global_search:Ub,company_switcher:Vb,dateRange:Ob,customers:Lb,items:qb,estimates:Bb,invoices:Kb,recurring_invoices:Zb,payments:Wb,expenses:Hb,login:Yb,modules:Gb,users:Jb,reports:Qb,settings:Xb,wizard:ek,validation:tk,errors:ak,pdf_estimate_label:nk,pdf_estimate_number:ik,pdf_estimate_date:ok,pdf_estimate_expire_date:sk,pdf_invoice_label:rk,pdf_invoice_number:dk,pdf_invoice_date:lk,pdf_invoice_due_date:ck,pdf_notes:_k,pdf_items_label:uk,pdf_quantity_label:mk,pdf_price_label:pk,pdf_discount_label:fk,pdf_amount_label:gk,pdf_subtotal:vk,pdf_total:yk,pdf_payment_label:hk,pdf_payment_receipt_label:bk,pdf_payment_date:kk,pdf_payment_number:wk,pdf_payment_mode:zk,pdf_payment_amount_received_label:xk,pdf_expense_report_label:Pk,pdf_total_expenses_label:Sk,pdf_profit_loss_label:jk,pdf_sales_customers_label:Ak,pdf_sales_items_label:Dk,pdf_tax_summery_label:Ck,pdf_income_label:Nk,pdf_net_profit_label:Ek,pdf_customer_sales_report:Ik,pdf_total_sales_label:Tk,pdf_item_sales_label:Rk,pdf_tax_report_label:Mk,pdf_total_tax_label:Fk,pdf_tax_types_label:$k,pdf_expenses_label:Uk,pdf_bill_to:Vk,pdf_ship_to:Ok,pdf_received_from:Lk,pdf_tax_label:qk};const Kk={dashboard:"B\u1EA3ng \u0111i\u1EC1u khi\u1EC3n",customers:"Kh\xE1ch h\xE0ng",items:"M\u1EB7t h\xE0ng",invoices:"H\xF3a \u0111\u01A1n","recurring-invoices":"H\xF3a \u0111\u01A1n \u0111\u1ECBnh k\u1EF3",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",modules:"Modules"},Zk={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 n\xEAn",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 nay",from:"T\u1EEB",to:"\u0110\u1EBFn",ok:"OK",yes:"\u0110\xFAng",no:"Kh\xF4ng",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",preview:"Xem tr\u01B0\u1EDBc",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:"Bi\xEAn t\u1EADp",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:"Hoa \u0111\u01A1n \u0111\xEA\u0309",ship_to:"T\xE0u",due:"\u0110\u1EBFn h\u1EA1n",draft:"B\u1EA3n nh\xE1p",sent:"G\u1EDFi",all:"T\u1EA5t c\u1EA3",select_all:"Ch\u1ECDn t\u1EA5t c\u1EA3",select_template:"Ch\u1ECDn Template",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:"T\u1EA9y",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:"Di\u1EC5n: \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!",copied_url_clipboard:"Copied url to clipboard!",docs:"T\xE0i li\u1EC7u",do_you_wish_to_continue:"B\u1EA1n c\xF3 mu\u1ED1n ti\u1EBFp t\u1EE5c kh\xF4ng?",note:"Ghi ch\xFA",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"\u0110\xE1nh d\u1EA5u m\u1EB7c \u0111\u1ECBnh"},Wk={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",payments:"Payments"},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"}},Hk={name:"T\xEAn",description:"S\u1EF1 mi\xEAu t\u1EA3",percent:"Ph\u1EA7n tr\u0103m",compound_tax:"Thu\u1EBF t\u1ED5ng h\u1EE3p"},Yk={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"},Gk={label:"\u0110\u1ED5i doanh nghi\u1EC7p",no_results_found:"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3 n\xE0o",add_new_company:"Th\xEAm doanh nghi\u1EC7p",new_company:"Doanh nghi\u1EC7p m\u1EDBi",created_message:"Kh\u1EDFi t\u1EA1o doanh nghi\u1EC7p th\xE0nh c\xF4ng"},Jk={today:"H\xF4m nay",this_week:"Tu\u1EA7n n\xE0y",this_month:"Th\xE1ng n\xE0y",this_quarter:"Qu\xFD n\xE0y",this_year:"N\u0103m nay",previous_week:"Tu\u1EA7n tr\u01B0\u1EDBc",previous_month:"Th\xE1ng tr\u01B0\u1EDBc",previous_quarter:"Qu\xFD tr\u01B0\u1EDBc",previous_year:"N\u0103m tr\u01B0\u1EDBc",custom:"Tu\u1EF3 ch\u1EC9nh"},Qk={title:"Kh\xE1ch h\xE0ng",prefix:"Ti\u1EC1n t\u1ED1",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:"Trang m\u1EA1ng",overview:"T\u1ED5ng quat",invoice_prefix:"Ti\u1EC1n t\u1ED1 h\xF3a \u0111\u01A1n",estimate_prefix:"Ti\u1EC1n t\u1ED1 \u01B0\u1EDBc t\xEDnh",payment_prefix:"Ti\u1EC1n t\u1ED1 thanh to\xE1n",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",confirm_password:"X\xE1c nh\u1EADn m\u1EADt kh\u1EA9u",street_number:"S\u1ED1 \u0111\u01B0\u1EDDng",primary_currency:"Ti\u1EC1n t\u1EC7 ch\xEDnh",description:"S\u1EF1 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",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:"\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",address_updated_message:"Address Information Updated succesfully",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",edit_currency_not_allowed:"Kh\xF4ng th\u1EC3 \u0111\u1ED5i ti\u1EC1n t\u1EC7 khi b\u1EA3n d\u1ECBch \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA1o."},Xk={title:"M\u1EB7t h\xE0ng",items_list:"Danh s\xE1ch m\u1EB7t h\xE0ng",name:"T\xEAn",unit:"\u0110\u01A1n v\u1ECB",description:"S\u1EF1 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:"V\u1EADt 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"},ew={title:"\u01AF\u1EDBc t\xEDnh",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"\u01AF\u1EDBc t\xEDnh | \u01AF\u1EDBc t\xEDnh",estimates_list:"Danh s\xE1ch \u01B0\u1EDBc t\xEDnh",days:"{days} Ng\xE0y",months:"{th\xE1ng} th\xE1ng",years:"{n\u0103m} 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:"REF KH\xD4NG.",number:"CON S\u1ED0",amount_due:"S\u1ED0 TI\u1EC0N \u0110\xDANG",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:"Ti\u1EBFp x\xFAc",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:"L\u0129nh v\u1EF1c \u0111\u01B0\u1EE3c y\xEAu c\u1EA7u"},accepted:"\u0110\xE3 \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn",rejected:"T\u1EEB ch\u1ED1i",expired:"Expired",sent:"G\u1EDFi",draft:"B\u1EA3n nh\xE1p",viewed:"Viewed",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:"S\u1EF1 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)"},mark_as_default_estimate_template_description:"N\u1EBFu b\u1EADt, m\u1EABu \u0111ang ch\u1ECDn s\u1EBD \u0111\u01B0\u1EE3c t\u1EF1 \u0111\u1ED9ng \xE1p d\u1EE5ng cho \u01B0\u1EDBc t\xEDnh m\u1EDBi."},tw={title:"H\xF3a \u0111\u01A1n",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Danh s\xE1ch h\xF3a \u0111\u01A1n",invoice_information:"Invoice Information",days:"{days} Ng\xE0y",months:"{th\xE1ng} th\xE1ng",years:"{n\u0103m} 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:"REF KH\xD4NG.",number:"CON S\u1ED0",amount_due:"S\u1ED0 TI\u1EC0N \u0110\xDANG",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:"Ti\u1EBFp x\xFAc",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",conversion_message:"H\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c sao ch\xE9p th\xE0nh c\xF4ng",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_mark_as_accepted:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0110\xE3 ch\u1EA5p nh\u1EADn",confirm_mark_as_rejected:"H\xF3a \u0111\u01A1n n\xE0y s\u1EBD \u0111\u01B0\u1EE3c \u0111\xE1nh d\u1EA5u l\xE0 \u0110\xE3 t\u1EEB ch\u1ED1i",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!",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",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:"S\u1EF1 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)"},payment_attached_message:"M\u1ED9t trong c\xE1c h\xF3a \u0111\u01A1n \u0111\u01B0\u1EE3c ch\u1ECDn \u0111\xE3 c\xF3 m\u1ED9t kho\u1EA3n thanh to\xE1n \u0111\u01B0\u1EE3c \u0111\xEDnh k\xE8m. \u0110\u1EA3m b\u1EA3o x\xF3a c\xE1c kho\u1EA3n thanh to\xE1n \u0111\xEDnh k\xE8m tr\u01B0\u1EDBc \u0111\u1EC3 ti\u1EBFp t\u1EE5c x\xF3a",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.",mark_as_default_invoice_template_description:"N\u1EBFu b\u1EADt, m\u1EABu \u0111ang ch\u1ECDn s\u1EBD \u0111\u01B0\u1EE3c t\u1EF1 \u0111\u1ED9ng \xE1p d\u1EE5ng cho h\xF3a \u0111\u01A1n m\u1EDBi."},aw={title:"H\xF3a \u0111\u01A1n \u0111\u1ECBnh k\u1EF3",invoices_list:"H\xF3a \u0111\u01A1n \u0111\u1ECBnh k\u1EF3",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",active:"Ho\u1EA1t \u0111\u1ED9ng",completed:"Ho\xE0n th\xE0nh",customer:"KH\xC1CH H\xC0NG",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:"C\u1EADp nh\u1EADt H\xF3a \u0111\u01A1n \u0111\u1ECBnh k\u1EF3",add_new_tax:"Th\xEAm thu\u1EBF m\u1EDBi",no_invoices:"Ch\u01B0a c\xF3 H\xF3a \u0111\u01A1n \u0111\u1ECBnh k\u1EF3 n\xE0o!",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",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."},nw={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:"S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3",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"},iw={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",currency:"Currency",contact:"Ti\u1EBFp x\xFAc",category:"th\u1EC3 lo\u1EA1i",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn nay",expense_date:"Ng\xE0y",description:"S\u1EF1 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:"S\u1EF1 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"}},ow={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"},sw={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"},rw={title:"Ng\u01B0\u1EDDi d\xF9ng",users_list:"Danh s\xE1ch ng\u01B0\u1EDDi d\xF9ng",name:"T\xEAn",description:"S\u1EF1 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:"Ng\u01B0\u1EDDi d\xF9ng bi\xEAn t\u1EADp",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",select_company_role:"Select Role for {company}",companies:"Companies"},dw={title:"B\xE1o c\xE1o",from_date:"T\u1EEB ng\xE0y",to_date:"\u0110\u1EBFn nay",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 nay",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 nay",from_date:"T\u1EEB ng\xE0y",report_type:"Lo\u1EA1i b\xE1o c\xE1o"},taxes:{taxes:"Thu\u1EBF",to_date:"\u0110\u1EBFn nay",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 nay",from_date:"T\u1EEB ng\xE0y",date_range:"Ch\u1ECDn ph\u1EA1m vi ng\xE0y"}},lw={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",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},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:"B\xED m\u1EADt",mailgun_secret:"B\xED m\u1EADt Mailgun",mailgun_domain:"Mi\u1EC1n",mailgun_endpoint:"\u0110i\u1EC3m cu\u1ED1i c\u1EE7a Mailgun",ses_secret:"B\xED m\u1EADt 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:"Ti\u1EBFt ki\u1EC7m",delete:"Delete",updated_message:"Th\xF4ng tin c\xF4ng ty \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt th\xE0nh c\xF4ng",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:"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",slug:"Slug",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",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:"s\u1EF1 t\xF9y bi\u1EBFn",updated_message:"Th\xF4ng tin c\xF4ng ty \u0111\u01B0\u1EE3c c\u1EADp nh\u1EADt th\xE0nh c\xF4ng",save:"Ti\u1EBFt ki\u1EC7m",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:"H\xF3a \u0111\u01A1n",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:"N\u1ED9i dung email h\xF3a \u0111\u01A1n m\u1EB7c \u0111\u1ECBnh",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_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 'Xem H\xF3a \u0111\u01A1n' trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",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:"\u01AF\u1EDBc t\xEDnh",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:"N\u1ED9i dung Email \u01AF\u1EDBc t\xEDnh M\u1EB7c \u0111\u1ECBnh",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",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 'Xem \u01AF\u1EDBc t\xEDnh' trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",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:"Thanh to\xE1n",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:"N\u1ED9i dung Email Thanh to\xE1n M\u1EB7c \u0111\u1ECBnh",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",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 'Xem Thanh to\xE1n' trong email s\u1EBD kh\xF4ng \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB n\u1EEFa khi \u0111\u01B0\u1EE3c b\u1EADt.",payment_settings_updated:"Payment Settings updated successfully"},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:"Ti\u1EBFt ki\u1EC7m",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:"Ti\u1EBFt ki\u1EC7m",email_save_message:"Email \u0111\xE3 \u0111\u01B0\u1EE3c l\u01B0u th\xE0nh c\xF4ng",please_enter_email:"Vui l\xF2ng nh\u1EADp 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:"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"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},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:"S\u1EF1 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.",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:"Ti\u1EBFt ki\u1EC7m",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",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:"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}",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:"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:"B\xED m\u1EADt 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:"B\xED m\u1EADt 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"},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."}},cw={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:"Ti\u1EBFt ki\u1EC7m",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.",currency_set_alert:"The company's currency cannot be changed later.",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."},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:"M\xE1y ch\u1EE7 Th\u01B0",port:"C\u1ED5ng th\u01B0",driver:"Tr\xECnh \u0111i\u1EC1u khi\u1EC3n Th\u01B0",secret:"B\xED m\u1EADt",mailgun_secret:"B\xED m\u1EADt Mailgun",mailgun_domain:"Mi\u1EC1n",mailgun_endpoint:"\u0110i\u1EC3m cu\u1ED1i c\u1EE7a Mailgun",ses_secret:"B\xED m\u1EADt 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 (b\u1EAFt bu\u1ED9c ph\u1EA3i c\xF3 phi\xEAn b\u1EA3n {version})",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."}},_w={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.crater.com)",invalid_domain_url:"Url kh\xF4ng h\u1EE3p l\u1EC7 (v\xED d\u1EE5: crater.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.",prefix_min_length:"Prefix must have at least {count} letters.",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.",discount_maxlength:"Discount should not be greater than max discount",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",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."},uw={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"},mw="\u01AF\u1EDBc t\xEDnh",pw="S\u1ED1 \u01B0\u1EDBc t\xEDnh",fw="Ng\xE0y \u01B0\u1EDBc t\xEDnh",gw="Ng\xE0y h\u1EBFt h\u1EA1n",vw="H\xF3a \u0111\u01A1n",yw="S\u1ED1 h\xF3a \u0111\u01A1n",hw="Ng\xE0y l\u1EADp h\xF3a \u0111\u01A1n",bw="Ng\xE0y \u0111\xE1o h\u1EA1n",kw="Ghi ch\xFA",ww="M\u1EB7t h\xE0ng",zw="\u0110\u1ECBnh l\u01B0\u1EE3ng",xw="Gi\xE1 b\xE1n",Pw="Gi\u1EA3m gi\xE1",Sw="S\u1ED1 ti\u1EC1n",jw="T\u1ED5ng ph\u1EE5",Aw="To\xE0n b\u1ED9",Dw="Thanh to\xE1n",Cw="H\xD3A \u0110\u01A0N THANH TO\xC1N",Nw="Ng\xE0y thanh to\xE1n",Ew="S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3",Iw="Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",Tw="S\u1ED1 ti\u1EC1n nh\u1EADn \u0111\u01B0\u1EE3c",Rw="B\xC1O C\xC1O CHI PH\xCD",Mw="T\u1ED4NG CHI PH\xCD",Fw="L\u1EE2I NHU\u1EACN",$w="B\xE1o c\xE1o kh\xE1ch h\xE0ng b\xE1n h\xE0ng",Uw="B\xE1o c\xE1o m\u1EB7t h\xE0ng b\xE1n h\xE0ng",Vw="B\xE1o c\xE1o T\xF3m t\u1EAFt Thu\u1EBF",Ow="THU NH\u1EACP = EARNINGS",Lw="L\u1EE2I NHU\u1EACN R\xD2NG",qw="B\xE1o c\xE1o b\xE1n h\xE0ng: B\u1EDFi kh\xE1ch h\xE0ng",Bw="T\u1ED4NG DOANH S\u1ED0 B\xC1N H\xC0NG",Kw="B\xE1o c\xE1o b\xE1n h\xE0ng: Theo m\u1EB7t h\xE0ng",Zw="B\xC1O C\xC1O THU\u1EBE",Ww="T\u1ED4NG THU\u1EBE",Hw="C\xE1c lo\u1EA1i thu\u1EBF",Yw="Chi ph\xED",Gw="Hoa \u0111\u01A1n \u0111\xEA\u0309,",Jw="T\xE0u,",Qw="Nh\xE2\u0323n \u0111\u01B0\u01A1\u0323c t\u01B0:",Xw="Tax";var ez={navigation:Kk,general:Zk,dashboard:Wk,tax_types:Hk,global_search:Yk,company_switcher:Gk,dateRange:Jk,customers:Qk,items:Xk,estimates:ew,invoices:tw,recurring_invoices:aw,payments:nw,expenses:iw,login:ow,modules:sw,users:rw,reports:dw,settings:lw,wizard:cw,validation:_w,errors:uw,pdf_estimate_label:mw,pdf_estimate_number:pw,pdf_estimate_date:fw,pdf_estimate_expire_date:gw,pdf_invoice_label:vw,pdf_invoice_number:yw,pdf_invoice_date:hw,pdf_invoice_due_date:bw,pdf_notes:kw,pdf_items_label:ww,pdf_quantity_label:zw,pdf_price_label:xw,pdf_discount_label:Pw,pdf_amount_label:Sw,pdf_subtotal:jw,pdf_total:Aw,pdf_payment_label:Dw,pdf_payment_receipt_label:Cw,pdf_payment_date:Nw,pdf_payment_number:Ew,pdf_payment_mode:Iw,pdf_payment_amount_received_label:Tw,pdf_expense_report_label:Rw,pdf_total_expenses_label:Mw,pdf_profit_loss_label:Fw,pdf_sales_customers_label:$w,pdf_sales_items_label:Uw,pdf_tax_summery_label:Vw,pdf_income_label:Ow,pdf_net_profit_label:Lw,pdf_customer_sales_report:qw,pdf_total_sales_label:Bw,pdf_item_sales_label:Kw,pdf_tax_report_label:Zw,pdf_total_tax_label:Ww,pdf_tax_types_label:Hw,pdf_expenses_label:Yw,pdf_bill_to:Gw,pdf_ship_to:Jw,pdf_received_from:Qw,pdf_tax_label:Xw};const tz={dashboard:"\u03A4\u03B1\u03BC\u03C0\u03BB\u03CC",customers:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2",items:"\u03A0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03B1",invoices:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1","recurring-invoices":"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",expenses:"\u0388\u03BE\u03BF\u03B4\u03B1",estimates:"\u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",payments:"\u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2",reports:"\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AD\u03C2",settings:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2",logout:"\u0391\u03C0\u03BF\u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7",users:"\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2",modules:"Modules"},az={add_company:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",view_pdf:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE PDF",copy_pdf_url:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5 PDF",download_pdf:"\u039B\u03AE\u03C8\u03B7 PDF",save:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",create:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",update:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7",deselect:"\u0391\u03C0\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",download:"\u039A\u03B1\u03C4\u03B5\u03B2\u03AC\u03C3\u03C4\u03B5 \u03C4\u03BF",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",from:"A\u03C0\u03CC",to:"\u03A0\u03C1\u03BF\u03C2",ok:"\u039F\u03BA",yes:"\u039D\u03B1\u03B9",no:"\u038C\u03C7\u03B9",sort_by:"\u03A4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7 \u03BA\u03B1\u03C4\u03AC",ascending:"\u0391\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1",descending:"\u03A6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1",subject:"\u0398\u03AD\u03BC\u03B1",body:"\u03A3\u03CE\u03BC\u03B1",message:"\u039C\u03AE\u03BD\u03C5\u03BC\u03B1",send:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE",preview:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7",go_back:"\u0395\u03C0\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE",back_to_login:"\u03A0\u03AF\u03C3\u03C9 \u03C3\u03C4\u03B7\u03BD \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1 \u03A3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7\u03C2;",home:"\u0391\u03C1\u03C7\u03B9\u03BA\u03AE",filter:"\u03A6\u03AF\u03BB\u03C4\u03C1\u03B1",delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",edit:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1",view:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE",add_new_item:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",clear_all:"\u0395\u03BA\u03BA\u03B1\u03B8\u03AC\u03C1\u03B9\u03C3\u03B7 \u03CC\u03BB\u03C9\u03BD",showing:"\u0395\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03B9",of:"\u03C4\u03BF\u03C5",actions:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2",subtotal:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",discount:"\u0388\u039A\u03A0\u03A4\u03A9\u03A3\u0397",fixed:"\u03A3\u03C4\u03B1\u03B8\u03B5\u03C1\u03CC",percentage:"\u03A0\u03BF\u03C3\u03BF\u03C3\u03C4\u03CC",tax:"\u03A6\u039F\u03A1\u039F\u03A3",total_amount:"\u03A3\u03A5\u039D\u039F\u039B\u0399\u039A\u039F \u03A0\u039F\u03A3\u039F",bill_to:"\u03A7\u03C1\u03AD\u03C9\u03C3\u03B7 \u03C3\u03B5",ship_to:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C3\u03B5",due:"\u039F\u03C6\u03B5\u03B9\u03BB\u03CC\u03BC\u03B5\u03BD\u03BF",draft:"\u03A0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF",sent:"\u0391\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03B1",all:"\u038C\u03BB\u03B1",select_all:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u038C\u03BB\u03C9\u03BD",select_template:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A0\u03C1\u03BF\u03C4\u03CD\u03C0\u03BF\u03C5",choose_file:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03B5\u03C4\u03B5 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF",choose_template:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03C0\u03C1\u03CC\u03C4\u03C5\u03C0\u03BF",choose:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5",remove:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",select_a_status:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",select_a_tax:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C6\u03CC\u03C1\u03BF",search:"\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7",are_you_sure:"\u0395\u03AF\u03C3\u03C4\u03B5 \u03C3\u03AF\u03B3\u03BF\u03C5\u03C1\u03BF\u03C2/\u03B7;",list_is_empty:"\u0397 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BA\u03B5\u03BD\u03AE.",no_tax_found:"\u0394\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5 \u03C6\u03CC\u03C1\u03BF\u03C2!",four_zero_four:"404",you_got_lost:"\u039F\u03C5\u03C0\u03C2! \u0388\u03C7\u03B5\u03C4\u03B5 \u03A7\u03B1\u03B8\u03B5\u03AF!",go_home:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7\u03BD \u0391\u03C1\u03C7\u03B9\u03BA\u03AE",test_mail_conf:"\u0394\u03BF\u03BA\u03B9\u03BC\u03AE \u03A1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",send_mail_successfully:"\u03A4\u03BF \u039C\u03AE\u03BD\u03C5\u03BC\u03B1 \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",setting_updated:"\u039F\u03B9 \u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",select_state:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03BD\u03BF\u03BC\u03BF\u03CD",select_country:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A7\u03CE\u03C1\u03B1\u03C2",select_city:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A0\u03CC\u03BB\u03B7\u03C2",street_1:"\u039F\u03B4\u03CC\u03C2 1",street_2:"\u039F\u03B4\u03CC\u03C2 2",action_failed:"\u0391\u03C0\u03BF\u03C4\u03C5\u03C7\u03AF\u03B1 \u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1\u03C2",retry:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",choose_note:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7\u03C2",no_note_found:"\u0394\u03B5\u03BD \u0392\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5 \u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7",insert_note:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7\u03C2",copied_pdf_url_clipboard:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03C4\u03BF url \u03C4\u03BF\u03C5 PDF \u03C3\u03C4o \u03C0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF!",copied_url_clipboard:"Copied url to clipboard!",docs:"\u0388\u03B3\u03B3\u03C1\u03B1\u03C6\u03B1",do_you_wish_to_continue:"\u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5;",note:"\u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7",pay_invoice:"Pay Invoice",login_successfully:"Logged in successfully!",logged_out_successfully:"Logged out successfully",mark_as_default:"Mark as default"},nz={select_year:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03AD\u03C4\u03BF\u03C5\u03C2",cards:{due_amount:"\u039F\u03C6\u03B5\u03B9\u03BB\u03CC\u03BC\u03B5\u03BD\u03BF \u03A0\u03BF\u03C3\u03CC",customers:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2",invoices:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",estimates:"\u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",payments:"Payments"},chart_info:{total_sales:"\u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03B9\u03C2",total_receipts:"\u0391\u03C0\u03BF\u03B4\u03B5\u03AF\u03BE\u03B5\u03B9\u03C2",total_expense:"\u0388\u03BE\u03BF\u03B4\u03B1",net_income:"\u039A\u03B1\u03B8\u03B1\u03C1\u03CC \u0395\u03B9\u03C3\u03CC\u03B4\u03B7\u03BC\u03B1",year:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03AD\u03C4\u03BF\u03C5\u03C2"},monthly_chart:{title:"\u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03B9\u03C2 & \u0388\u03BE\u03BF\u03B4\u03B1"},recent_invoices_card:{title:"\u0391\u03BD\u03B5\u03BE\u03CC\u03C6\u03BB\u03B7\u03C4\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",due_on:"\u0395\u03BE\u03CC\u03C6\u03BB\u03B7\u03C3\u03B7 \u0388\u03C9\u03C2",customer:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2",amount_due:"\u039F\u03C6\u03B5\u03B9\u03BB\u03CC\u03BC\u03B5\u03BD\u03BF \u03C0\u03BF\u03C3\u03CC",actions:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2",view_all:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u038C\u03BB\u03C9\u03BD"},recent_estimate_card:{title:"\u03A0\u03C1\u03CC\u03C3\u03C6\u03B1\u03C4\u03B5\u03C2 \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",customer:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2",amount_due:"\u039F\u03C6\u03B5\u03B9\u03BB\u03CC\u03BC\u03B5\u03BD\u03BF \u03A0\u03BF\u03C3\u03CC",actions:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2",view_all:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u038C\u03BB\u03C9\u03BD"}},iz={name:"\u038C\u03BD\u03BF\u03BC\u03B1",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",percent:"\u03A0\u03BF\u03C3\u03BF\u03C3\u03C4\u03CC",compound_tax:"\u03A3\u03CD\u03BD\u03B8\u03B5\u03C4\u03BF\u03C2 \u03A6\u03CC\u03C1\u03BF\u03C2"},oz={search:"\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7...",customers:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2",users:"\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2",no_results_found:"\u0394\u03B5\u03BD \u0392\u03C1\u03AD\u03B8\u03B7\u03BA\u03B1\u03BD \u0391\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1"},sz={label:"\u0391\u039B\u039B\u0391\u0393\u0397 \u0395\u03A4\u0391\u0399\u03A1\u0395\u0399\u0391\u03A3",no_results_found:"\u0394\u03B5\u03BD \u0392\u03C1\u03AD\u03B8\u03B7\u03BA\u03B1\u03BD \u0391\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1",add_new_company:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03BD\u03AD\u03B1\u03C2 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",new_company:"\u039D\u03AD\u03B1 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1",created_message:"\u0397 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"},rz={today:"\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1",this_week:"\u03A4\u03C1\u03AD\u03C7\u03BF\u03C5\u03C3\u03B1 \u0395\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1",this_month:"\u03A4\u03C1\u03AD\u03C7\u03C9\u03BD \u039C\u03AE\u03BD\u03B1\u03C2",this_quarter:"\u03A4\u03C1\u03AD\u03C7\u03BF\u03BD \u03A4\u03C1\u03AF\u03BC\u03B7\u03BD\u03BF",this_year:"\u03A4\u03C1\u03AD\u03C7\u03BF\u03BD \u0388\u03C4\u03BF\u03C2",previous_week:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u0395\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1",previous_month:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF\u03C2 \u039C\u03AE\u03BD\u03B1\u03C2",previous_quarter:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF \u03A4\u03C1\u03AF\u03BC\u03B7\u03BD\u03BF",previous_year:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF \u0388\u03C4\u03BF\u03C2",custom:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF"},dz={title:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2",prefix:"\u03A0\u03C1\u03CC\u03B8\u03B5\u03BC\u03B1",add_customer:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",contacts_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03A0\u03B5\u03BB\u03B1\u03C4\u03CE\u03BD",name:"\u038C\u03BD\u03BF\u03BC\u03B1",mail:"\u039C\u03AE\u03BD\u03C5\u03BC\u03B1 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5",statement:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",display_name:"\u0395\u03BC\u03C6\u03B1\u03BD\u03B9\u03B6\u03CC\u03BC\u03B5\u03BD\u03BF \u038C\u03BD\u03BF\u03BC\u03B1",primary_contact_name:"\u039A\u03CD\u03C1\u03B9\u03B1 \u03B5\u03C0\u03B1\u03C6\u03AE",contact_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0395\u03C0\u03B1\u03C6\u03AE\u03C2",amount_due:"\u039F\u03C6\u03B5\u03B9\u03BB\u03CC\u03BC\u03B5\u03BD\u03BF \u03A0\u03BF\u03C3\u03CC",email:"\u0397\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03AE \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",address:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",phone:"\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF",website:"\u0399\u03C3\u03C4\u03BF\u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",overview:"\u0395\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7",invoice_prefix:"\u03A0\u03C1\u03CC\u03B8\u03B5\u03BC\u03B1 \u03C0\u03B1\u03C1\u03B1\u03C3\u03C4\u03B1\u03C4\u03B9\u03BA\u03BF\u03CD",estimate_prefix:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03A0\u03C1\u03BF\u03B8\u03AD\u03BC\u03B1\u03C4\u03BF\u03C2",payment_prefix:"\u03A0\u03C1\u03CC\u03B8\u03B5\u03BC\u03B1 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",enable_portal:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B7 \u03A0\u03CD\u03BB\u03B7\u03C2",country:"\u03A7\u03CE\u03C1\u03B1",state:"\u039D\u03BF\u03BC\u03CC\u03C2",city:"\u03A0\u03CC\u03BB\u03B7",zip_code:"\u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B9\u03BA\u03CC\u03C2 \u03BA\u03CE\u03B4\u03B9\u03BA\u03B1\u03C2",added_on:"\u03A0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03A3\u03C4\u03B9\u03C2",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2",confirm_password:"\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7 \u039A\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD",street_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03BF\u03B4\u03BF\u03CD",primary_currency:"\u039A\u03CD\u03C1\u03B9\u03BF \u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",add_new_customer:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",save_customer:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",update_customer:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03C0\u03B5\u03BB\u03B1\u03C4\u03CE\u03BD",customer:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2 - \u03A0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2",new_customer:"\u039D\u03AD\u03BF\u03C2 \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2",edit_customer:`\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7 `,basic_info:"\u0392\u03B1\u03C3\u03B9\u03BA\u03AD\u03C2 \u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2",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:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u03A7\u03C1\u03AD\u03C9\u03C3\u03B7\u03C2",shipping_address:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE\u03C2",copy_billing_address:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B1\u03C0\u03CC \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B7\u03C3\u03B7",no_customers:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2 \u03B1\u03BA\u03CC\u03BC\u03B1!",no_customers_found:"\u0394\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B1\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2",no_contact:"\u039A\u03B1\u03BC\u03BC\u03AF\u03B1 \u03B5\u03C0\u03B1\u03C6\u03AE",no_contact_name:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03CC\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B1\u03C6\u03AE\u03C2",list_of_customers:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C0\u03B5\u03BB\u03B1\u03C4\u03CE\u03BD.",primary_display_name:"\u039A\u03CD\u03C1\u03B9\u03BF \u0395\u03BC\u03C6\u03B1\u03BD\u03B9\u03B6\u03CC\u03BC\u03B5\u03BD\u03BF \u038C\u03BD\u03BF\u03BC\u03B1",select_currency:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",select_a_customer:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",type_or_click:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03AE \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF",new_transaction:"\u039D\u03AD\u03B1 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AE",no_matching_customers:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2 \u03C0\u03BF\u03C5 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03BF\u03C5\u03BD!",phone_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03A4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5",create_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1\u03C2",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7 \u03BA\u03B1\u03B9 \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1, \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2. \u221A \u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03BF\u03CD\u03C2 \u03C4\u03BF\u03C5\u03C2 \u03C0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2 \u03BA\u03B1\u03B9 \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1, \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2.",created_message:"\u039F \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",updated_message:"\u039F \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",address_updated_message:"Address Information Updated succesfully",deleted_message:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2 | \u039F\u03B9 \u03C0\u03B5\u03BB\u03AC\u03C4\u03B5\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B1\u03BD \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",edit_currency_not_allowed:"\u0394\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2 \u03BC\u03CC\u03BB\u03B9\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AD\u03C2."},lz={title:"\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",items_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD",name:"\u038C\u03BD\u03BF\u03BC\u03B1",unit:"\u039C\u03BF\u03BD\u03AC\u03B4\u03B1",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",added_on:"\u03A0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03A3\u03C4\u03B9\u03C2",price:"\u03A4\u03B9\u03BC\u03AE",date_of_creation:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1\u03C2",not_selected:"\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03B9 \u03B5\u03C0\u03B9\u03BB\u03B5\u03C7\u03B8\u03B5\u03AF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",add_item:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",save_item:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",update_item:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",item:"\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF | \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",add_new_item:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",new_item:"\u039D\u03AD\u03BF \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF",edit_item:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",no_items:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03B1\u03BA\u03CC\u03BC\u03B1!",list_of_items:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03C9\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD.",select_a_unit:"\u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03BC\u03BF\u03BD\u03AC\u03B4\u03B1",taxes:"\u03A6\u03CC\u03C1\u03BF\u03B9",item_attached_message:"\u0394\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B5\u03BD\u03CC\u03C2 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5 \u03C0\u03BF\u03C5 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AE\u03B4\u03B7",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u03A4\u03BF \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u03A4\u03BF \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"},cz={title:"\u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 | \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",estimates_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD",days:"{days} \u0397\u03BC\u03AD\u03C1\u03B5\u03C2",months:"{months} \u039C\u03AE\u03BD\u03B1\u03C2",years:"{years} \u0388\u03C4\u03BF\u03C2",all:"\u038C\u03BB\u03B1",paid:"\u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",unpaid:"\u0391\u03BD\u03B5\u03BE\u03CC\u03C6\u03BB\u03B7\u03C4\u03BF",customer:"\u03A4\u0395\u039B\u03A9\u039D\u0395\u0399\u0391\u039A\u0397",ref_no:"REF NO.",number:"\u0391\u03A1\u0399\u0398\u039C\u039F\u03A3",amount_due:"\u03A0\u039F\u03A3\u039F \u03A0\u03A1\u039F\u03A3 \u03A0\u039B\u0397\u03A1\u03A9\u039C\u0397",partially_paid:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CE\u03C2 \u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",total:"\u03A3\u03CD\u03BD\u03BF\u03BB\u03BF\xA0",discount:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",sub_total:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",estimate_number:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD",ref_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2",contact:"\u0395\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1",add_item:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",due_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",expiry_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",status:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",add_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A6\u03CC\u03C1\u03BF\u03C5",amount:"\u03A0\u03BF\u03C3\u03CC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",notes:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",tax:"\u03A6\u03CC\u03C1\u03BF\u03C2",estimate_template:"\u03A0\u03C1\u03CC\u03C4\u03C5\u03C0\u03BF",convert_to_invoice:"\u039C\u03B5\u03C4\u03B1\u03C4\u03C1\u03AC\u03C0\u03B7\u03BA\u03B5 \u03C3\u03B5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",mark_as_sent:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF\u03C5",send_estimate:"\u039D\u03AD\u03B1 \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7",resend_estimate:"\u03A0\u03C1\u03CC\u03C3\u03C6\u03B1\u03C4\u03B5\u03C2 \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",record_payment:"\u039A\u03B1\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",add_estimate:"\u039D\u03AD\u03B1 \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7",save_estimate:"\u039D\u03AD\u03B1 \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7",confirm_conversion:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03B8\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B7\u03B8\u03B5\u03AF \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B5\u03BD\u03CC\u03C2 \u03BD\u03AD\u03BF\u03C5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5.",conversion_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",confirm_send_estimate:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B1\u03C0\u03BF\u03C3\u03C4\u03B1\u03BB\u03B5\u03AF \u03BC\u03AD\u03C3\u03C9 email \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",confirm_mark_as_sent:"\u0397 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03B1\u03C5\u03C4\u03AE \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7",confirm_mark_as_accepted:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u0391\u03C0\u03BF\u03C1\u03C1\u03B9\u03C0\u03C4\u03CC\u03BC\u03B5\u03BD\u03BF",confirm_mark_as_rejected:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u0391\u03C0\u03BF\u03C1\u03C1\u03B9\u03C0\u03C4\u03CC\u03BC\u03B5\u03BD\u03BF",no_matching_estimates:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03B1\u03BD\u03C4\u03AF\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2!",mark_as_sent_successfully:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03AC\u03BD\u03B8\u03B7\u03BA\u03B5 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",send_estimate_successfully:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",errors:{required:"\u03A4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C5\u03C0\u03BF\u03C7\u03C1\u03B5\u03C9\u03C4\u03B9\u03BA\u03CC"},accepted:"\u0391\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03AE",rejected:"\u0391\u03C0\u03BF\u03C1\u03C1\u03AF\u03C6\u03B8\u03B7\u03BA\u03B5",expired:"Expired",sent:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE",draft:"\u03A0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF",viewed:"Viewed",declined:"\u0391\u03C0\u03BF\u03C1\u03C1\u03AF\u03C6\u03B8\u03B7\u03BA\u03B5",new_estimate:"\u039D\u03AD\u03B1 \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7",add_new_estimate:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03B1\u03C2 \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7\u03C2",update_Estimate:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7\u03C2",edit_estimate:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7\u03C2",items:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",Estimate:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 | \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",add_new_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A6\u03CC\u03C1\u03BF\u03C5",no_estimates:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03B1\u03BA\u03CC\u03BC\u03B1!",list_of_estimates:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03C9\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD.",mark_as_rejected:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AF\u03C6\u03B8\u03B7\u03BA\u03B5",mark_as_accepted:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03CC",marked_as_accepted_message:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03AD\u03C7\u03B5\u03B9 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u03B1\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03AE",marked_as_rejected_message:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03C3\u03B7\u03BC\u03B5\u03B9\u03CE\u03BD\u03B5\u03C4\u03B1\u03B9 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03C1\u03C1\u03B9\u03C6\u03B8\u03B5\u03AF\u03C3\u03B1",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",something_went_wrong:"\u039A\u03AC\u03C4\u03B9 \u03C0\u03AE\u03B3\u03B5 \u03C3\u03C4\u03C1\u03B1\u03B2\u03AC",item:{title:"\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2 \u03A0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03BF\u03C2",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",quantity:"\u03A0\u03BF\u03C3\u03CC\u03C4\u03B7\u03C4\u03B1",price:"\u03A4\u03B9\u03BC\u03AE",discount:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",total:"\u03A3\u03CD\u03BD\u03BF\u03BB\u03BF\xA0",total_discount:"\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03AE \u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",sub_total:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",tax:"\u03A6\u03CC\u03C1\u03BF\u03C2",amount:"\u03A0\u03BF\u03C3\u03CC",select_an_item:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03AE \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF",type_item_description:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5 (\u03C0\u03C1\u03BF\u03B1\u03B9\u03C1\u03B5\u03C4\u03B9\u03BA\u03CC)"},mark_as_default_estimate_template_description:"If enabled, the selected template will be automatically selected for new estimates."},_z={title:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD",invoice_information:"Invoice Information",days:"{days} \u0397\u03BC\u03AD\u03C1\u03B5\u03C2",months:"{months} \u039C\u03AE\u03BD\u03B1\u03C2",years:"{years} \u0388\u03C4\u03BF\u03C2",all:"\u038C\u03BB\u03B1",paid:"\u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",unpaid:"\u0391\u03BD\u03B5\u03BE\u03CC\u03C6\u03BB\u03B7\u03C4\u03BF",viewed:"\u03A0\u03C1\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B1\u03BD",overdue:"\u0395\u03BA\u03C0\u03C1\u03CC\u03B8\u03B5\u03C3\u03BC\u03B1",completed:"\u039F\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5",customer:"\u03A4\u0395\u039B\u03A9\u039D\u0395\u0399\u0391\u039A\u0397",paid_status:"\u039A\u0391\u03A4\u0391\u03A3\u03A4\u0391\u03A3\u0397 \u03A0\u039B\u0397\u03A1\u03A9\u039C\u0397\u03A3",ref_no:"REF NO.",number:"\u0391\u03A1\u0399\u0398\u039C\u039F\u03A3",amount_due:"\u03A0\u039F\u03A3\u039F \u03A0\u03A1\u039F\u03A3 \u03A0\u039B\u0397\u03A1\u03A9\u039C\u0397",partially_paid:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CE\u03C2 \u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",total:"\u03A3\u03CD\u03BD\u03BF\u03BB\u03BF\xA0",discount:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",sub_total:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",invoice:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 (\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1)",invoice_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",ref_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2",contact:"\u0395\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1",add_item:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",due_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",status:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",add_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A6\u03CC\u03C1\u03BF\u03C5",amount:"\u03A0\u03BF\u03C3\u03CC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",notes:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",view:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE",send_invoice:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03A0\u03B1\u03C1\u03B1\u03C3\u03C4\u03B1\u03C4\u03B9\u03BA\u03CE\u03BD",resend_invoice:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03A0\u03B1\u03C1\u03B1\u03C3\u03C4\u03B1\u03C4\u03B9\u03BA\u03CE\u03BD",invoice_template:"\u03A0\u03C1\u03CC\u03C4\u03C5\u03C0\u03BF \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5 ",conversion_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",template:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A0\u03C1\u03BF\u03C4\u03CD\u03C0\u03BF\u03C5",mark_as_sent:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF\u03C5",confirm_send_invoice:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B1\u03C0\u03BF\u03C3\u03C4\u03B1\u03BB\u03B5\u03AF \u03BC\u03AD\u03C3\u03C9 email \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",invoice_mark_as_sent:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF",confirm_mark_as_accepted:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u0391\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03CC",confirm_mark_as_rejected:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u0391\u03C0\u03BF\u03C1\u03C1\u03B9\u03C0\u03C4\u03CC\u03BC\u03B5\u03BD\u03BF",confirm_send:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B1\u03C0\u03BF\u03C3\u03C4\u03B1\u03BB\u03B5\u03AF \u03BC\u03AD\u03C3\u03C9 email \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",invoice_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",record_payment:"\u039A\u03B1\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",add_new_invoice:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",update_expense:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u0394\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",edit_invoice:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",new_invoice:"\u039D\u03AD\u03BF \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",save_invoice:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",update_invoice:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",add_new_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A6\u03CC\u03C1\u03BF\u03C5",no_invoices:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B1\u03BA\u03CC\u03BC\u03B1!",mark_as_rejected:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AF\u03C6\u03B8\u03B7\u03BA\u03B5",mark_as_accepted:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03CC",list_of_invoices:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD.",select_invoice:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",no_matching_invoices:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03BA\u03B1\u03BD\u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03C3\u03C4\u03BF\u03B9\u03C7\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF!",mark_as_sent_successfully:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03AC\u03BD\u03B8\u03B7\u03BA\u03B5 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",invoice_sent_successfully:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",cloned_successfully:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",clone_invoice:"\u039A\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",confirm_clone:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03B7\u03B8\u03B5\u03AF \u03C3\u03B5 \u03AD\u03BD\u03B1 \u03BD\u03AD\u03BF \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",item:{title:"\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2 \u03A0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03BF\u03C2",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",quantity:"\u03A0\u03BF\u03C3\u03CC\u03C4\u03B7\u03C4\u03B1",price:"\u03A4\u03B9\u03BC\u03AE",discount:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",total:"\u039F\u03BB\u03B9\u03BA\u03CC",total_discount:"\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03AE \u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",sub_total:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",tax:"\u03A6\u03CC\u03C1\u03BF\u03C2",amount:"\u03A0\u03BF\u03C3\u03CC",select_an_item:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03AE \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF",type_item_description:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5 (\u03C0\u03C1\u03BF\u03B1\u03B9\u03C1\u03B5\u03C4\u03B9\u03BA\u03CC)"},payment_attached_message:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BC\u03B9\u03B1 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03C0\u03BF\u03C5 \u03B5\u03C0\u03B9\u03C3\u03C5\u03BD\u03AC\u03C0\u03C4\u03B5\u03C4\u03B1\u03B9 \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC. \u0392\u03B5\u03B2\u03B1\u03B9\u03C9\u03B8\u03B5\u03AF\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03AD\u03C7\u03B5\u03C4\u03B5 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03B9 \u03C0\u03C1\u03CE\u03C4\u03B1 \u03C4\u03B9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03B5\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BC\u03B5 \u03C4\u03B7\u03BD \u03B1\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",marked_as_sent_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03AC\u03BD\u03B8\u03B7\u03BA\u03B5 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",something_went_wrong:"\u039A\u03AC\u03C4\u03B9 \u03C0\u03AE\u03B3\u03B5 \u03C3\u03C4\u03C1\u03B1\u03B2\u03AC",invalid_due_amount_message:"\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03CC \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C0\u03BF\u03C3\u03CC \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5 \u03B4\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B9\u03BA\u03C1\u03CC\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC \u03C4\u03BF \u03C3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03CC \u03BA\u03B1\u03C4\u03B1\u03B2\u03BB\u03B7\u03B8\u03AD\u03BD \u03C0\u03BF\u03C3\u03CC \u03B3\u03B9\u03B1 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03BF\u03CD\u03BC\u03B5 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AD\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5.",mark_as_default_invoice_template_description:"If enabled, the selected template will be automatically selected for new invoices."},uz={title:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",invoices_list:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",days:"{days} \u0397\u03BC\u03AD\u03C1\u03B5\u03C2",months:"{months} \u039C\u03AE\u03BD\u03B1\u03C2",years:"{years} \u0388\u03C4\u03BF\u03C2",all:"\u038C\u03BB\u03B1",paid:"\u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",unpaid:"\u0391\u03BD\u03B5\u03BE\u03CC\u03C6\u03BB\u03B7\u03C4\u03BF",viewed:"\u03A0\u03C1\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B1\u03BD",overdue:"\u0395\u03BA\u03C0\u03C1\u03CC\u03B8\u03B5\u03C3\u03BC\u03B1",active:"\u0395\u03BD\u03B5\u03C1\u03B3\u03AE",completed:"\u039F\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5",customer:"\u03A4\u0395\u039B\u03A9\u039D\u0395\u0399\u0391\u039A\u0397",paid_status:"\u039A\u0391\u03A4\u0391\u03A3\u03A4\u0391\u03A3\u0397 \u03A0\u039B\u0397\u03A1\u03A9\u039C\u0397\u03A3",ref_no:"REF NO.",number:"\u0391\u03A1\u0399\u0398\u039C\u039F\u03A3",amount_due:"\u03A0\u039F\u03A3\u039F \u03A0\u03A1\u039F\u03A3 \u03A0\u039B\u0397\u03A1\u03A9\u039C\u0397",partially_paid:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CE\u03C2 \u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",total:"\u03A3\u03CD\u03BD\u03BF\u03BB\u03BF\xA0",discount:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",sub_total:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",invoice:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF | \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",invoice_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",next_invoice_date:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",ref_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2",contact:"\u0395\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1",add_item:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",limit_by:"\u03A0\u03B5\u03C1\u03B9\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u0391\u03BD\u03AC:",limit_date:"\u03A0\u03B5\u03C1\u03B9\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",limit_count:"\u038C\u03C1\u03B9\u03BF \u039A\u03B1\u03C4\u03B1\u03BC\u03AD\u03C4\u03C1\u03B7\u03C3\u03B7\u03C2",count:"\u0391\u03C1\u03AF\u03B8\u03BC\u03B7\u03C3\u03B7",status:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",select_a_status:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",working:"\u039B\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF",on_hold:"\u03A3\u03B5 \u03B1\u03BD\u03B1\u03BC\u03BF\u03BD\u03AE",complete:"\u039F\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5",add_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A6\u03CC\u03C1\u03BF\u03C5",amount:"\u03A0\u03BF\u03C3\u03CC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",notes:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",view:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE",basic_info:"\u0392\u03B1\u03C3\u03B9\u03BA\u03AD\u03C2 \u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2",send_invoice:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",auto_send:"\u0391\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B7 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE",resend_invoice:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",invoice_template:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",conversion_message:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",template:"\u03A0\u03C1\u03CC\u03C4\u03C5\u03C0\u03BF",mark_as_sent:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF\u03C5",confirm_send_invoice:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B1\u03C0\u03BF\u03C3\u03C4\u03B1\u03BB\u03B5\u03AF \u03BC\u03AD\u03C3\u03C9 email \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",invoice_mark_as_sent:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF",confirm_send:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03B1\u03C0\u03BF\u03C3\u03C4\u03B1\u03BB\u03B5\u03AF \u03BC\u03AD\u03C3\u03C9 email \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",starts_at:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",due_date:"\u0397\u03BC/\u03BD\u03AF\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B7\u03C3\u03B7\u03C2",record_payment:"\u039A\u03B1\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",add_new_invoice:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",update_expense:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u0394\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",edit_invoice:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",new_invoice:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",send_automatically:"\u0391\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B7 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE",send_automatically_desc:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC, \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C4\u03B5\u03AF\u03BB\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B7\u03B8\u03B5\u03AF.",save_invoice:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",update_invoice:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",add_new_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A6\u03CC\u03C1\u03BF\u03C5",no_invoices:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1!",mark_as_rejected:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AF\u03C6\u03B8\u03B7\u03BA\u03B5",mark_as_accepted:"\u03A3\u03AE\u03BC\u03B1\u03BD\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03CC",list_of_invoices:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD.",select_invoice:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",no_matching_invoices:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03BA\u03B1\u03BD\u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03C3\u03C4\u03BF\u03B9\u03C7\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF!",mark_as_sent_successfully:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03AC\u03BD\u03B8\u03B7\u03BA\u03B5 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",invoice_sent_successfully:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",cloned_successfully:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",clone_invoice:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",confirm_clone:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B8\u03B1 \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03B7\u03B8\u03B5\u03AF \u03C3\u03B5 \u03AD\u03BD\u03B1 \u03BD\u03AD\u03BF \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",item:{title:"\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2 \u03A0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03BF\u03C2",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",quantity:"\u03A0\u03BF\u03C3\u03CC\u03C4\u03B7\u03C4\u03B1",price:"\u03A4\u03B9\u03BC\u03AE",discount:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",total:"\u03A3\u03CD\u03BD\u03BF\u03BB\u03BF\xA0",total_discount:"\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03AE \u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",sub_total:"\u039C\u03B5\u03C1\u03B9\u03BA\u03CC \u03A3\u03CD\u03BD\u03BF\u03BB\u03BF",tax:"\u03A6\u03CC\u03C1\u03BF\u03C2",amount:"\u03A0\u03BF\u03C3\u03CC",select_an_item:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03AE \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF",type_item_description:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5 (\u03C0\u03C1\u03BF\u03B1\u03B9\u03C1\u03B5\u03C4\u03B9\u03BA\u03CC)"},frequency:{title:"\u03A3\u03C5\u03C7\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1",select_frequency:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C3\u03C5\u03C7\u03BD\u03BF\u03C4\u03AE\u03C4\u03C9\u03BD",minute:"\u039B\u03B5\u03C0\u03C4\u03CC",hour:"\u038F\u03C1\u03B1",day_month:"\u0397\u03BC\u03AD\u03C1\u03B1 \u03C4\u03BF\u03C5 \u03BC\u03AE\u03BD\u03B1",month:"\u039C\u03AE\u03BD\u03B1\u03C2",day_week:"\u0397\u03BC\u03AD\u03C1\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1\u03C2"},confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",updated_message:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03BA\u03BB\u03C9\u03BD\u03BF\u03C0\u03BF\u03B9\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",deleted_message:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2 \u2018 \u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B1\u03BD \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",marked_as_sent_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03AC\u03BD\u03B8\u03B7\u03BA\u03B5 \u03C9\u03C2 \u03B1\u03C0\u03B5\u03C3\u03C4\u03B1\u03BB\u03BC\u03AD\u03BD\u03BF \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",user_email_does_not_exist:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF e-mail \u03B4\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9",something_went_wrong:"\u039A\u03AC\u03C4\u03B9 \u03C0\u03AE\u03B3\u03B5 \u03C3\u03C4\u03C1\u03B1\u03B2\u03AC",invalid_due_amount_message:"\u03A3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03CC \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C0\u03BF\u03C3\u03CC \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5 \u03B4\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B9\u03BA\u03C1\u03CC\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC \u03C4\u03BF \u03C3\u03C5\u03BD\u03BF\u03BB\u03B9\u03BA\u03CC \u03BA\u03B1\u03C4\u03B1\u03B2\u03BB\u03B7\u03B8\u03AD\u03BD \u03C0\u03BF\u03C3\u03CC \u03B3\u03B9\u03B1 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03B5\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03BF\u03CD\u03BC\u03B5 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03AE \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AD\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5."},mz={title:"\u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2",payments_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03CE\u03BD",record_payment:"\u039A\u03B1\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",customer:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",amount:"\u03A0\u03BF\u03C3\u03CC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",payment_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",payment_mode:"\u03A4\u03C1\u03CC\u03C0\u03BF\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",invoice:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",note:"\u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7",add_payment:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",new_payment:"\u039D\u03AD\u03B1 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE",edit_payment:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",view_payment:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",add_new_payment:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03B1\u03C2 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",send_payment_receipt:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u0391\u03C0\u03CC\u03B4\u03B5\u03B9\u03BE\u03B7\u03C2 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",send_payment:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",save_payment:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",update_payment:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",payment:"\u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03CE\u03BD",no_payments:"\u039A\u03B1\u03BC\u03AF\u03B1 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B1\u03BA\u03CC\u03BC\u03B1!",not_selected:"\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03B9 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03B5\u03AF",no_invoice:"\u03A7\u03C9\u03C1\u03AF\u03C2 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",no_matching_payments:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2 \u03C0\u03BF\u03C5 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03BF\u03C5\u03BD!",list_of_payments:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03BF\u03BD \u03BA\u03B1\u03C4\u03AC\u03BB\u03BF\u03B3\u03BF \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03CE\u03BD.",select_payment_mode:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03C1\u03CC\u03C0\u03BF \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",confirm_mark_as_sent:"\u0397 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03B1\u03C5\u03C4\u03AE \u03B8\u03B1 \u03B5\u03C0\u03B9\u03C3\u03B7\u03BC\u03B1\u03BD\u03B8\u03B5\u03AF \u03C9\u03C2 \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7",confirm_send_payment:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B8\u03B1 \u03C3\u03C4\u03B1\u03BB\u03B5\u03AF \u03BC\u03AD\u03C3\u03C9 email \u03C3\u03C4\u03BF\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",send_payment_successfully:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",something_went_wrong:"\u039A\u03AC\u03C4\u03B9 \u03C0\u03AE\u03B3\u03B5 \u03C3\u03C4\u03C1\u03B1\u03B2\u03AC",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",invalid_amount_message:"\u03A4\u03BF \u03C0\u03BF\u03C3\u03CC \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF"},pz={title:"\u0388\u03BE\u03BF\u03B4\u03B1",expenses_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u0395\u03BE\u03CC\u03B4\u03C9\u03BD",select_a_customer:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7",expense_title:"\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2",customer:"\u03A0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2",currency:"\u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1",contact:"\u0395\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1",category:"\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",expense_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",receipt:"\u0391\u03C0\u03CC\u03B4\u03B5\u03B9\u03BE\u03B7",amount:"\u03A0\u03BF\u03C3\u03CC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",not_selected:"\u0394\u03B5\u03BD \u03AD\u03C7\u03B5\u03B9 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03B5\u03AF",note:"\u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7",category_id:"ID \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1\u03C2",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",add_expense:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B4\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",add_new_expense:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B4\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",save_expense:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u0394\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",update_expense:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u0394\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",download_receipt:"\u039B\u03AE\u03C8\u03B7 \u0391\u03C0\u03CC\u03B4\u03B5\u03B9\u03BE\u03B7\u03C2",edit_expense:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B4\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",new_expense:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B4\u03B1\u03C0\u03AC\u03BD\u03B7\u03C2",expense:"\u0388\u03BE\u03BF\u03B4\u03B1 - \u0388\u03BE\u03BF\u03B4\u03B1",no_expenses:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03AD\u03BE\u03BF\u03B4\u03B1 \u03B1\u03BA\u03CC\u03BC\u03B1!",list_of_expenses:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03C9\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD.",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",categories:{categories_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03C9\u03BD",title:"\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2",name:"\u038C\u03BD\u03BF\u03BC\u03B1",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",amount:"\u03A0\u03BF\u03C3\u03CC",actions:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2",add_category:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1\u03C2",new_category:"\u039D\u03AD\u03B1 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1",category:'\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1 "\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2',select_a_category:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1"}},fz={email:"\u0397\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03AE \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2",forgot_password:"\u039E\u03B5\u03C7\u03AC\u03C3\u03B1\u03C4\u03B5 \u03C4\u03BF\u03BD \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC;",or_signIn_with:"or sign in with",login:"\u03A3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7",register:"\u0395\u03B3\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF\u03C4\u03B5",reset_password:"\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2",password_reset_successfully:"\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03C4\u03BF\u03C5 \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",enter_email:"\u0395\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 email",enter_password:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2",retype_password:"\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03CC\u03B3\u03B7\u03C3\u03B5 \u03BA\u03B1\u03B9 \u03C0\u03AC\u03BB\u03B9 \u03C4\u03BF\u03BD \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC"},gz={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"},vz={title:"\u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2",users_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03A7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD",name:"\u038C\u03BD\u03BF\u03BC\u03B1",description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",added_on:"\u03A0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03A3\u03C4\u03B9\u03C2",date_of_creation:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1\u03C2",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",add_user:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7",save_user:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7",update_user:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7",user:"\u03A7\u03C1\u03AE\u03C3\u03C4\u03B7\u03C2 | \u03A7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2",add_new_user:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03BD\u03AD\u03BF\u03C5 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7",new_user:"\u039D\u03AD\u03BF\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7\u03C2",edit_user:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7",no_users:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03B1\u03BA\u03CC\u03BC\u03B1!",list_of_users:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B8\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03C9\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD.",email:"\u0397\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03AE \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",phone:"\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2",user_attached_message:"\u0394\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B5\u03BD\u03CC\u03C2 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5 \u03C0\u03BF\u03C5 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AE\u03B4\u03B7",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u2019, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03AF\u03C3\u03C4\u03B5 \u03C3\u03B5 \u03B8\u03AD\u03C3\u03B7 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03B9 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",created_message:"\u039F \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",updated_message:"\u039F \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",deleted_message:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",select_company_role:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C1\u03CC\u03BB\u03BF \u03B3\u03B9\u03B1 {company}",companies:"\u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B5\u03C2"},yz={title:"\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",status:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7",paid:"\u0395\u03BE\u03BF\u03C6\u03BB\u03B7\u03BC\u03AD\u03BD\u03BF",unpaid:"\u0391\u03BD\u03B5\u03BE\u03CC\u03C6\u03BB\u03B7\u03C4\u03BF",download_pdf:"\u039B\u03AE\u03C8\u03B7 PDF",view_pdf:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE PDF",update_report:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2",report:"\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC | \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AD\u03C2",profit_loss:{profit_loss:"\u039A\u03AD\u03C1\u03B4\u03B7 & \u0391\u03C0\u03CE\u03BB\u03B5\u03B9\u03B1",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",date_range:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B5\u03CD\u03C1\u03BF\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2"},sales:{sales:"\u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03B9\u03C2",date_range:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B5\u03CD\u03C1\u03BF\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",report_type:"\u03A4\u03CD\u03C0\u03BF\u03C2 \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2"},taxes:{taxes:"\u03A6\u03CC\u03C1\u03BF\u03B9",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",date_range:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B5\u03CD\u03C1\u03BF\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2"},errors:{required:"\u03A4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C5\u03C0\u03BF\u03C7\u03C1\u03B5\u03C9\u03C4\u03B9\u03BA\u03CC"},invoices:{invoice:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",invoice_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",due_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",amount:"\u03A0\u03BF\u03C3\u03CC",contact_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0395\u03C0\u03B1\u03C6\u03AE\u03C2",status:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7"},estimates:{estimate:"\u0395\u03BA\u03C4\u03B9\u03BC\u03CE\u03BC\u03B5\u03BD\u03BF",estimate_date:"\u0395\u03BA\u03C4\u03B9\u03BC\u03CE\u03BC\u03B5\u03BD\u03B7 \u03B7\u03BC. \u03B5\u03C0\u03B9\u03C3\u03BA\u03B5\u03C5\u03AE\u03C2",due_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",estimate_number:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD",ref_number:"\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2",amount:"\u03A0\u03BF\u03C3\u03CC",contact_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0395\u03C0\u03B1\u03C6\u03AE\u03C2",status:"\u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7"},expenses:{expenses:"\u0388\u03BE\u03BF\u03B4\u03B1",category:"\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1",date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",amount:"\u03A0\u03BF\u03C3\u03CC",to_date:"\u0388\u03C9\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",from_date:"\u0391\u03C0\u03CC \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",date_range:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B5\u03CD\u03C1\u03BF\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2"}},hz={menu_title:{account_settings:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u039B\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD",company_information:"\u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03AF\u03B1\u03C2",customization:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE",preferences:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2",notifications:"\u0395\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2",tax_types:"\u03A6\u03BF\u03C1\u03BF\u03BB\u03BF\u03B3\u03B9\u03BA\u03AE \u03BA\u03BB\u03AC\u03C3\u03B7",expense_category:"\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u0395\u03BE\u03CC\u03B4\u03C9\u03BD",update_app:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE\u03C2",backup:"\u0391\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03B1 \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2",file_disk:"\u0394\u03AF\u03C3\u03BA\u03BF\u03C2 \u0391\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",custom_fields:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1",payment_modes:"\u03A4\u03C1\u03CC\u03C0\u03BF\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",notes:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",exchange_rate:"\u03A3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},title:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2",setting:"\u03A1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD",general:"General",language:"Language",primary_currency:"\u039A\u03CD\u03C1\u03B9\u03BF \u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1",timezone:"\u0396\u03CE\u03BD\u03B7 \u038F\u03C1\u03B1\u03C2",date_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",currencies:{title:"\u03A3\u03C5\u03BD\u03AC\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1",currency:"\u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1",currencies_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03AC\u03C4\u03C9\u03BD",select_currency:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",name:"\u038C\u03BD\u03BF\u03BC\u03B1",code:"\u039A\u03CE\u03B4\u03B9\u03BA\u03B1\u03C2",symbol:"\u03A3\u03CD\u03BC\u03B2\u03BF\u03BB\u03BF",precision:"\u0391\u03BA\u03C1\u03AF\u03B2\u03B5\u03B9\u03B1",thousand_separator:"\u0394\u03B9\u03B1\u03C7\u03C9\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC \u03C7\u03B9\u03BB\u03B9\u03AC\u03B4\u03C9\u03BD",decimal_separator:"\u0394\u03B9\u03B1\u03C7\u03C9\u03C1\u03B9\u03C3\u03C4\u03AE\u03C2 \u03B4\u03B5\u03BA\u03B1\u03B4\u03B9\u03BA\u03CE\u03BD",position:"\u0398\u03AD\u03C3\u03B7",position_of_symbol:"\u0398\u03AD\u03C3\u03B7 \u03A3\u03C5\u03BC\u03B2\u03CC\u03BB\u03BF\u03C5",right:"\u0394\u03B5\u03BE\u03B9\u03AC",left:"\u0391\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",add_currency:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03C4\u03B5 \u03BD\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1"},mail:{host:"\u0394\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",port:"\u0394\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",secret:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC",mailgun_secret:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC Mailgun",mailgun_domain:"\u03A4\u03BF\u03BC\u03AD\u03B1\u03C2",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES \u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC",ses_key:"\u039A\u03BB\u03B5\u03B9\u03B4\u03AF SES",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03A0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5",username:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5",mail_config:"\u0394\u03B9\u03B1\u03BC\u03CC\u03C1\u03C6\u03C9\u03C3\u03B7 Mail",from_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AD\u03B1",from_mail:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE\u03C2",encryption:"\u039A\u03C1\u03C5\u03C0\u03C4\u03BF\u03B3\u03C1\u03AC\u03C6\u03B7\u03C3\u03B7 Email",mail_config_desc:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B7 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03C9\u03BD \u03C4\u03BF\u03C5 \u03C0\u03C1\u03BF\u03B3\u03C1\u03AC\u03BC\u03BC\u03B1\u03C4\u03BF\u03C2 \u03BF\u03B4\u03AE\u03B3\u03B7\u03C3\u03B7\u03C2 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B1\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03BC\u03B7\u03BD\u03C5\u03BC\u03AC\u03C4\u03C9\u03BD \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03B5\u03C0\u03AF\u03C3\u03B7\u03C2 \u03BD\u03B1 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03BF\u03C5\u03C2 \u03C4\u03C1\u03AF\u03C4\u03C9\u03BD \u03C0\u03B1\u03C1\u03CC\u03C7\u03C9\u03BD \u03CC\u03C0\u03C9\u03C2 \u03C4\u03BF Sendgrid, \u03C4\u03BF SES \u03BA\u03BB\u03C0."},pdf:{title:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 PDF",footer_text:"\u039A\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03A5\u03C0\u03BF\u03C3\u03AD\u03BB\u03B9\u03B4\u03BF\u03C5",pdf_layout:"\u0394\u03B9\u03AC\u03C4\u03B1\u03BE\u03B7 PDF"},company_info:{company_info:"\u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03AF\u03B1\u03C2",company_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",company_logo:"\u039B\u03BF\u03B3\u03CC\u03C4\u03C5\u03C0\u03BF \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",section_description:"\u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03BC\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1 \u03C3\u03B1\u03C2 \u03C0\u03BF\u03C5 \u03B8\u03B1 \u03B5\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03B9 \u03C3\u03B5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1, \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03AC\u03BB\u03BB\u03B1 \u03AD\u03B3\u03B3\u03C1\u03B1\u03C6\u03B1 \u03C0\u03BF\u03C5 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD Crater.",phone:"\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF",country:"\u03A7\u03CE\u03C1\u03B1",state:"\u039D\u03BF\u03BC\u03CC\u03C2",city:"\u03A0\u03CC\u03BB\u03B7",address:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",zip:"\u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B9\u03BA\u03CC\u03C2 \u039A\u03CE\u03B4\u03B9\u03BA\u03B1\u03C2",save:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",updated_message:"\u039F\u03B9 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03BF\u03BD \u03C0\u03CD\u03C1\u03B3\u03BF \u03B5\u03BC\u03C6\u03B9\u03AC\u03BB\u03C9\u03C3\u03B7\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2.",delete_company:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",delete_company_description:"\u039C\u03CC\u03BB\u03B9\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1 \u03C3\u03B1\u03C2, \u03B8\u03B1 \u03C7\u03AC\u03C3\u03B5\u03C4\u03B5 \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1 \u03BA\u03B1\u03B9 \u03C4\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BF\u03C5 \u03C3\u03C7\u03B5\u03C4\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03B9 \u03BC\u03B5 \u03B1\u03C5\u03C4\u03AE \u03BC\u03CC\u03BD\u03B9\u03BC\u03B1.",are_you_absolutely_sure:"\u0395\u03AF\u03C3\u03B1\u03B9 \u03C3\u03AF\u03B3\u03BF\u03C5\u03C1\u03BF\u03C2/\u03B7;",delete_company_modal_desc:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03B5\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1 \u03B4\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B1\u03BD\u03B1\u03B9\u03C1\u03B5\u03B8\u03B5\u03AF. \u0391\u03C5\u03C4\u03CC \u03B8\u03B1 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03B9 \u03BC\u03CC\u03BD\u03B9\u03BC\u03B1 {company} \u03BA\u03B1\u03B9 \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03C3\u03C5\u03C3\u03C7\u03B5\u03C4\u03B9\u03C3\u03BC\u03AD\u03BD\u03B1 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1.",delete_company_modal_label:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 {company} \u03B3\u03B9\u03B1 \u03B5\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7"},custom_fields:{title:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1",section_description:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03CC\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03C3\u03B1\u03C2, \u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 & \u0391\u03C0\u03BF\u03B4\u03B5\u03AF\u03BE\u03B5\u03B9\u03C2 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2 \u03BC\u03B5 \u03C4\u03B1 \u03B4\u03B9\u03BA\u03AC \u03C3\u03B1\u03C2 \u03C0\u03B5\u03B4\u03AF\u03B1. \u03A3\u03B9\u03B3\u03BF\u03C5\u03C1\u03B5\u03C5\u03C4\u03B5\u03AF\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B5 \u03C4\u03B1 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03C0\u03B5\u03B4\u03AF\u03B1 \u03C3\u03C4\u03B9\u03C2 \u03BC\u03BF\u03C1\u03C6\u03AD\u03C2 \u03B4\u03B9\u03B5\u03C5\u03B8\u03CD\u03BD\u03C3\u03B5\u03C9\u03BD \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1 \u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE\u03C2.",add_custom_field:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03B4\u03AF\u03BF\u03C5",edit_custom_field:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03A0\u03B5\u03B4\u03AF\u03BF\u03C5",field_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03C0\u03B5\u03B4\u03AF\u03BF\u03C5",label:"\u0395\u03C0\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",type:"Type",name:"\u038C\u03BD\u03BF\u03BC\u03B1",slug:"\u0394\u03C5\u03BD\u03B1\u03C4\u03CC \u03C7\u03C4\u03CD\u03C0\u03B7\u03BC\u03B1",required:"\u0391\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF\u03C4\u03B1\u03B9",placeholder:"\u03A3\u03CD\u03BC\u03B2\u03BF\u03BB\u03BF \u03C5\u03C0\u03BF\u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7\u03C2",help_text:"\u039A\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03B2\u03BF\u03AE\u03B8\u03B5\u03B9\u03B1\u03C2",default_value:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03C4\u03B9\u03BC\u03AE",prefix:"\u03A0\u03C1\u03CC\u03B8\u03B5\u03BC\u03B1",starting_number:"\u0391\u03C1\u03C7\u03AE \u03B1\u03C1\u03AF\u03B8\u03BC\u03B7\u03C3\u03B7\u03C2 \u03B1\u03C0\u03CC",model:"\u039C\u03BF\u03BD\u03C4\u03AD\u03BB\u03BF",help_text_description:"\u0395\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03BD\u03BF\u03AE\u03C3\u03BF\u03C5\u03BD \u03C4\u03BF\u03BD \u03C3\u03BA\u03BF\u03C0\u03CC \u03B1\u03C5\u03C4\u03BF\u03CD \u03C4\u03BF\u03C5 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03B4\u03AF\u03BF\u03C5.",suffix:"\u0395\u03C0\u03AF\u03B8\u03B5\u03BC\u03B1",yes:"\u039D\u03B1\u03B9",no:"\u038C\u03C7\u03B9",order:"\u03A3\u03B5\u03B9\u03C1\u03AC",custom_field_confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",already_in_use:"\u0397 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AE\u03B4\u03B7",deleted_message:"\u0395\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03BA\u03BB\u03B5\u03B9\u03B4\u03B9\u03BF\u03CD",options:"\u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2",add_option:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2",add_another_option:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03AC\u03BB\u03BB\u03B7\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2",sort_in_alphabetical_order:"\u03A4\u03B1\u03BE\u03B9\u03BD\u03CC\u03BC\u03B7\u03C3\u03B7 \u03C3\u03B5 \u03B1\u03BB\u03C6\u03B1\u03B2\u03B7\u03C4\u03B9\u03BA\u03AE \u03C3\u03B5\u03B9\u03C1\u03AC",add_options_in_bulk:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD \u03BC\u03B1\u03B6\u03B9\u03BA\u03AC",use_predefined_options:"\u03A7\u03C1\u03AE\u03C3\u03B7 \u03A0\u03C1\u03BF\u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03C9\u03BD \u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD",select_custom_date:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B7 \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",select_relative_date:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE\u03C2",ticked_by_default:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03B1\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",updated_message:"\u0395\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03BA\u03BB\u03B5\u03B9\u03B4\u03B9\u03BF\u03CD",added_message:"\u0395\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03BA\u03BB\u03B5\u03B9\u03B4\u03B9\u03BF\u03CD",press_enter_to_add:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03BD\u03AD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",model_in_use:"\u0394\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03BC\u03BF\u03BD\u03C4\u03AD\u03BB\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1 \u03C0\u03BF\u03C5 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7.",type_in_use:"\u0394\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03BC\u03BF\u03BD\u03C4\u03AD\u03BB\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1 \u03C0\u03BF\u03C5 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7."},customization:{customization:"\u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE",updated_message:"\u039F\u03B9 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03BF\u03BD \u03C0\u03CD\u03C1\u03B3\u03BF \u03B5\u03BC\u03C6\u03B9\u03AC\u03BB\u03C9\u03C3\u03B7\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2.",save:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",insert_fields:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1\u03C2",learn_custom_format:"\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03CE\u03C2 \u03BD\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B5 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B7 \u03BC\u03BF\u03C1\u03C6\u03AE",add_new_component:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5",component:"\u03A3\u03C5\u03C3\u03C4\u03B1\u03C4\u03B9\u03BA\u03CC",Parameter:"\u03A0\u03B1\u03C1\u03AC\u03BC\u03B5\u03C4\u03C1\u03BF\u03C2",series:"\u03A3\u03B5\u03B9\u03C1\u03AC",series_description:"\u0393\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03C3\u03C4\u03B1\u03C4\u03B9\u03BA\u03CC \u03C0\u03C1\u03CC\u03B8\u03B5\u03BC\u03B1/\u03B5\u03C0\u03AF\u03B8\u03B5\u03BC\u03B1 \u03CC\u03C0\u03C9\u03C2 'INV' \u03C3\u03B5 \u03CC\u03BB\u03B7 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1 \u03C3\u03B1\u03C2. \u03A5\u03C0\u03BF\u03C3\u03C4\u03B7\u03C1\u03AF\u03B6\u03B5\u03B9 \u03BC\u03AE\u03BA\u03BF\u03C2 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B1 \u03AD\u03C9\u03C2 \u03BA\u03B1\u03B9 4 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",series_param_label:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC\u03C2",delimiter:"\u0394\u03B9\u03B1\u03C7\u03C9\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC",delimiter_description:"\u0395\u03BD\u03B9\u03B1\u03AF\u03BF\u03C2 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B1\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03BF\u03BD \u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03C4\u03BF\u03C5 \u03BF\u03C1\u03AF\u03BF\u03C5 \u03BC\u03B5\u03C4\u03B1\u03BE\u03CD 2 \u03BE\u03B5\u03C7\u03C9\u03C1\u03B9\u03C3\u03C4\u03CE\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD. \u0391\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C4\u03BF \u03C3\u03B5\u03C4 \u03C4\u03BF\u03C5 -",delimiter_param_label:"\u03A4\u03B9\u03BC\u03AE \u039F\u03C1\u03B9\u03BF\u03B8\u03AD\u03C4\u03B7",date_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",date_format_description:"\u0388\u03BD\u03B1 \u03C4\u03BF\u03C0\u03B9\u03BA\u03CC \u03C0\u03B5\u03B4\u03AF\u03BF \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1\u03C2 \u03C0\u03BF\u03C5 \u03B4\u03AD\u03C7\u03B5\u03C4\u03B1\u03B9 \u03BC\u03B9\u03B1 \u03C0\u03B1\u03C1\u03AC\u03BC\u03B5\u03C4\u03C1\u03BF \u03BC\u03BF\u03C1\u03C6\u03AE\u03C2. \u0397 \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03BC\u03BF\u03C1\u03C6\u03AE: 'Y' \u03B5\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03B5\u03B9 \u03C4\u03BF \u03C4\u03C1\u03AD\u03C7\u03BF\u03BD \u03AD\u03C4\u03BF\u03C2.",date_format_param_label:"\u039C\u03BF\u03C1\u03C6\u03AE",sequence:"\u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03C5\u03C7\u03AF\u03B1",sequence_description:"\u03A3\u03C5\u03BD\u03B5\u03C7\u03AE\u03C2 \u03B1\u03BA\u03BF\u03BB\u03BF\u03C5\u03B8\u03AF\u03B1 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CE\u03BD \u03C3\u03B5 \u03CC\u03BB\u03B7 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1 \u03C3\u03B1\u03C2. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03BA\u03B1\u03B8\u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03AE\u03BA\u03BF\u03C2 \u03C4\u03BF\u03C5 \u03B4\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03BF\u03C5.",sequence_param_label:"\u039C\u03AE\u03BA\u03BF\u03C2 \u0391\u03BA\u03BF\u03BB\u03BF\u03C5\u03B8\u03AF\u03B1\u03C2",customer_series:"\u03A3\u03B5\u03B9\u03C1\u03AC \u03A0\u03B5\u03BB\u03B1\u03C4\u03CE\u03BD",customer_series_description:"\u0393\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B4\u03B9\u03B1\u03C6\u03BF\u03C1\u03B5\u03C4\u03B9\u03BA\u03CC \u03C0\u03C1\u03CC\u03B8\u03B5\u03BC\u03B1/\u03B5\u03C0\u03AF\u03B8\u03B5\u03BC\u03B1 \u03B3\u03B9\u03B1 \u03BA\u03AC\u03B8\u03B5 \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7.",customer_sequence:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03CC\u03C3\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03B4\u03CC\u03C4\u03B7\u03C3\u03B7",customer_sequence_description:"\u03A3\u03C5\u03BD\u03B5\u03C7\u03AE\u03C2 \u03B1\u03BA\u03BF\u03BB\u03BF\u03C5\u03B8\u03AF\u03B1 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CE\u03BD \u03B3\u03B9\u03B1 \u03BA\u03AC\u03B8\u03B5 \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7 \u03C3\u03B1\u03C2.",customer_sequence_param_label:"\u039C\u03AE\u03BA\u03BF\u03C2 \u0391\u03BA\u03BF\u03BB\u03BF\u03C5\u03B8\u03AF\u03B1\u03C2",random_sequence:"\u03A4\u03C5\u03C7\u03B1\u03AF\u03B1 \u0391\u03BA\u03BF\u03BB\u03BF\u03C5\u03B8\u03AF\u03B1",random_sequence_description:"\u03A4\u03C5\u03C7\u03B1\u03AF\u03B1 \u03B1\u03BB\u03C6\u03B1\u03C1\u03B9\u03B8\u03BC\u03B7\u03C4\u03B9\u03BA\u03AE \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03BA\u03B1\u03B8\u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03AE\u03BA\u03BF\u03C2 \u03C4\u03BF\u03C5 \u03B4\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03BF\u03C5.",random_sequence_param_label:"\u039C\u03AE\u03BA\u03BF\u03C2 \u0391\u03BA\u03BF\u03BB\u03BF\u03C5\u03B8\u03AF\u03B1\u03C2",invoices:{title:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",invoice_number_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",invoice_number_format_description:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03CC\u03C3\u03C4\u03B5 \u03C4\u03BF\u03BD \u03C4\u03C1\u03CC\u03C0\u03BF \u03BC\u03B5 \u03C4\u03BF\u03BD \u03BF\u03C0\u03BF\u03AF\u03BF \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03BF \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03C3\u03B1\u03C2 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03BD\u03AD\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",preview_invoice_number:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",due_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",due_date_description:"\u039A\u03B1\u03B8\u03BF\u03C1\u03AF\u03C3\u03C4\u03B5 \u03C0\u03CE\u03C2 \u03BF\u03C1\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",due_date_days:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03BB\u03B7\u03BE\u03B9\u03C0\u03C1\u03CC\u03B8\u03B5\u03C3\u03BC\u03B1 \u03BC\u03B5\u03C4\u03AC \u03B1\u03C0\u03CC (\u03B7\u03BC\u03AD\u03C1\u03B5\u03C2)",set_due_date_automatically:"\u039F\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2 \u039B\u03AE\u03BE\u03B7\u03C2 \u0391\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1",set_due_date_automatically_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03BD \u03B5\u03C0\u03B9\u03B8\u03C5\u03BC\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03BD\u03AD\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",default_formats:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B5\u03C2 \u03B5\u03C0\u03B5\u03BA\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",default_formats_description:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BF\u03B9 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BC\u03BF\u03C1\u03C6\u03AD\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B3\u03B5\u03BC\u03AF\u03C3\u03BF\u03C5\u03BD \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03C4\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1 \u03C3\u03C4\u03B7 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD.",default_invoice_email_body:"\u03A0\u03C1\u03BF\u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF \u03A3\u03CE\u03BC\u03B1 Email \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",company_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",shipping_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE\u03C2",billing_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u03A7\u03C1\u03AD\u03C9\u03C3\u03B7\u03C2",invoice_email_attachment:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD \u03C9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03C9\u03BD",invoice_email_attachment_setting_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C4\u03B5\u03AF\u03BB\u03B5\u03C4\u03B5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03C9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03BF email. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03C4\u03BF \u03BA\u03BF\u03C5\u03BC\u03C0\u03AF '\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5' \u03C3\u03C4\u03B1 \u03BC\u03B7\u03BD\u03CD\u03BC\u03B1\u03C4\u03B1 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03C0\u03BB\u03AD\u03BF\u03BD \u03CC\u03C4\u03B1\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03BF.",invoice_settings_updated:"\u039F\u03B9 \u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",retrospective_edits:"\u0391\u03BD\u03B1\u03B4\u03C1\u03BF\u03BC\u03B9\u03BA\u03AD\u03C2 \u0394\u03B9\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B5\u03C2",allow:"\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE",disable_on_invoice_partial_paid:"\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE \u03BC\u03B5\u03C1\u03B9\u03BA\u03AE\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",disable_on_invoice_paid:"\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE \u03BC\u03B5\u03C1\u03B9\u03BA\u03AE\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",disable_on_invoice_sent:"\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03B1\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",retrospective_edits_description:" \u039C\u03B5 \u03B2\u03AC\u03C3\u03B7 \u03C4\u03BF\u03C5\u03C2 \u03BD\u03CC\u03BC\u03BF\u03C5\u03C2 \u03C4\u03B7\u03C2 \u03C7\u03CE\u03C1\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03AE \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2, \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03BF\u03C1\u03B9\u03C3\u03C4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03C9\u03BD \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD."},estimates:{title:"\u0395\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",estimate_number_format:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u039C\u03BF\u03C1\u03C6\u03AE\u03C2 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD",estimate_number_format_description:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03CC\u03C3\u03C4\u03B5 \u03C4\u03BF\u03BD \u03C4\u03C1\u03CC\u03C0\u03BF \u03BC\u03B5 \u03C4\u03BF\u03BD \u03BF\u03C0\u03BF\u03AF\u03BF \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03BF \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03C3\u03B1\u03C2 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03BD\u03AD\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",preview_estimate_number:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD \u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7\u03C2",expiry_date:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",expiry_date_description:"\u039A\u03B1\u03B8\u03BF\u03C1\u03AF\u03C3\u03C4\u03B5 \u03C0\u03CE\u03C2 \u03BF\u03C1\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",expiry_date_days:"\u039F \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03BB\u03AE\u03B3\u03B5\u03B9 \u03BC\u03B5\u03C4\u03AC \u03B1\u03C0\u03CC \u03B7\u03BC\u03AD\u03C1\u03B5\u03C2",set_expiry_date_automatically:"\u039F\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2 \u039B\u03AE\u03BE\u03B7\u03C2 \u0391\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1",set_expiry_date_automatically_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03BD \u03B5\u03C0\u03B9\u03B8\u03C5\u03BC\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03BF\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03BD\u03AD\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",default_formats:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B5\u03C2 \u03B5\u03C0\u03B5\u03BA\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",default_formats_description:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BF\u03B9 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BC\u03BF\u03C1\u03C6\u03AD\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B3\u03B5\u03BC\u03AF\u03C3\u03BF\u03C5\u03BD \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03C4\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1 \u03C3\u03C4\u03B7 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD.",default_estimate_email_body:"\u03A0\u03C1\u03BF\u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF \u03A3\u03CE\u03BC\u03B1 Email \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",company_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",shipping_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE\u03C2",billing_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u03A7\u03C1\u03AD\u03C9\u03C3\u03B7\u03C2",estimate_email_attachment:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD \u03C9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03C9\u03BD",estimate_email_attachment_setting_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C4\u03B5\u03AF\u03BB\u03B5\u03C4\u03B5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03C9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03BF email. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03C4\u03BF \u03BA\u03BF\u03C5\u03BC\u03C0\u03AF '\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5' \u03C3\u03C4\u03B1 \u03BC\u03B7\u03BD\u03CD\u03BC\u03B1\u03C4\u03B1 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03C0\u03BB\u03AD\u03BF\u03BD \u03CC\u03C4\u03B1\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03BF.",estimate_settings_updated:"\u039F\u03B9 \u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",convert_estimate_options:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u039C\u03B5\u03C4\u03B1\u03C4\u03C1\u03BF\u03C0\u03AE\u03C2 \u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1\u03C2",convert_estimate_description:"\u039A\u03B1\u03B8\u03BF\u03C1\u03AF\u03C3\u03C4\u03B5 \u03C4\u03B9 \u03C3\u03C5\u03BC\u03B2\u03B1\u03AF\u03BD\u03B5\u03B9 \u03C3\u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03B1\u03C6\u03BF\u03CD \u03BC\u03B5\u03C4\u03B1\u03C4\u03C1\u03B1\u03C0\u03B5\u03AF \u03C3\u03B5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF.",no_action:"\u039A\u03B1\u03BC\u03AF\u03B1 \u03B5\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",delete_estimate:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7\u03C2",mark_estimate_as_accepted:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BF\u03B4\u03B5\u03BA\u03C4\u03AE"},payments:{title:"\u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2",payment_number_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",payment_number_format_description:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03CC\u03C3\u03C4\u03B5 \u03C4\u03BF\u03BD \u03C4\u03C1\u03CC\u03C0\u03BF \u03BC\u03B5 \u03C4\u03BF\u03BD \u03BF\u03C0\u03BF\u03AF\u03BF \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03BF \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03B9\u03C3\u03BC\u03CC\u03C2 \u03C3\u03B1\u03C2 \u03CC\u03C4\u03B1\u03BD \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03BD\u03AD\u03B1 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7.",preview_payment_number:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",default_formats:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B5\u03C2 \u03B5\u03C0\u03B5\u03BA\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",default_formats_description:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BF\u03B9 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BC\u03BF\u03C1\u03C6\u03AD\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B3\u03B5\u03BC\u03AF\u03C3\u03BF\u03C5\u03BD \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03C4\u03B1 \u03C0\u03B5\u03B4\u03AF\u03B1 \u03C3\u03C4\u03B7 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD.",default_payment_email_body:"\u03A0\u03C1\u03BF\u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF \u03A3\u03CE\u03BC\u03B1 Email \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",company_address_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",from_customer_address_format:"\u0391\u03C0\u03CC \u03A4\u03B7 \u039C\u03BF\u03C1\u03C6\u03AE \u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7\u03C2 \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",payment_email_attachment:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03C9\u03BD \u03C9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03C9\u03BD",payment_email_attachment_setting_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C4\u03B5\u03AF\u03BB\u03B5\u03C4\u03B5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03C9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03BF email. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03C4\u03BF \u03BA\u03BF\u03C5\u03BC\u03C0\u03AF '\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03A4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5' \u03C3\u03C4\u03B1 \u03BC\u03B7\u03BD\u03CD\u03BC\u03B1\u03C4\u03B1 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03C0\u03BB\u03AD\u03BF\u03BD \u03CC\u03C4\u03B1\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03BF.",payment_settings_updated:"\u039F\u03B9 \u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"},items:{title:"\u03A0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03B1",units:"\u039C\u03BF\u03BD\u03AC\u03B4\u03B5\u03C2",add_item_unit:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039C\u03BF\u03BD\u03AC\u03B4\u03B1\u03C2 \u0391\u03BD\u03C4\u03B9\u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5",edit_item_unit:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039C\u03BF\u03BD\u03AC\u03B4\u03B1\u03C2 \u0391\u03BD\u03C4\u03B9\u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5",unit_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03BC\u03BF\u03BD\u03AC\u03B4\u03B1\u03C2",item_unit_added:"\u03A4\u03BF \u0391\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u0394\u03B5\u03BD \u03A0\u03C1\u03BF\u03C3\u03B8\u03AD\u03B8\u03B7\u03BA\u03B5",item_unit_updated:"\u03A4\u03BF \u0391\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u0394\u03B5\u03BD \u03A0\u03C1\u03BF\u03C3\u03B8\u03AD\u03B8\u03B7\u03BA\u03B5",item_unit_confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",already_in_use:"\u0397 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AE\u03B4\u03B7",deleted_message:"\u03A4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03AD\u03C7\u03BF\u03C5\u03BD \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1"},notes:{title:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",description:"\u0395\u03BE\u03BF\u03B9\u03BA\u03BF\u03BD\u03BF\u03BC\u03AE\u03C3\u03C4\u03B5 \u03C7\u03C1\u03CC\u03BD\u03BF \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03CE\u03BD\u03C4\u03B1\u03C2 \u03C3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03B5\u03C0\u03B1\u03BD\u03B1\u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03AE \u03C4\u03BF\u03C5\u03C2 \u03C3\u03C4\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1 \u03C3\u03B1\u03C2, \u03B5\u03BA\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2.",notes:"\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",type:"Type",add_note:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7\u03C2",add_new_note:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03B1\u03C2 \u03A3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7\u03C2",name:"\u038C\u03BD\u03BF\u03BC\u03B1",edit_note:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C3\u03B7\u03BC\u03B5\u03AF\u03C9\u03C3\u03B7\u03C2",note_added:"\u03C0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",note_updated:"\u039F \u03C1\u03CC\u03BB\u03BF\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1.",note_confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",already_in_use:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7",deleted_message:"\u039F \u03C1\u03CC\u03BB\u03BF\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1"}},account_settings:{profile_picture:"\u0395\u03B9\u03BA\u03CC\u03BD\u03B1 \u03A0\u03C1\u03BF\u03C6\u03AF\u03BB",name:"\u038C\u03BD\u03BF\u03BC\u03B1",email:"\u0397\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03AE \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2",confirm_password:"\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7 \u039A\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD",account_settings:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u039B\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD",save:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",section_description:"\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03AC \u03C3\u03B1\u03C2, email & \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03CE\u03BD\u03C4\u03B1\u03C2 \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03C6\u03CC\u03C1\u03BC\u03B1.",updated_message:"\u039F\u03B9 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03C4\u03BF\u03C5 \u03BB\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2!"},user_profile:{name:"\u038C\u03BD\u03BF\u03BC\u03B1",email:"\u0397\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03AE \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2",confirm_password:"\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7 \u039A\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD"},notification:{title:"\u0395\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2",email:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C9\u03BD",description:"\u03A0\u03BF\u03B9\u03B5\u03C2 \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B8\u03B1 \u03B8\u03AD\u03BB\u03B1\u03C4\u03B5 \u03BD\u03B1 \u03BB\u03B1\u03BC\u03B2\u03AC\u03BD\u03B5\u03C4\u03B5 \u03CC\u03C4\u03B1\u03BD \u03BA\u03AC\u03C4\u03B9 \u03B1\u03BB\u03BB\u03AC\u03B6\u03B5\u03B9?",invoice_viewed:"\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03C0\u03C1\u03BF\u03B2\u03BB\u03AE\u03B8\u03B7\u03BA\u03B5",invoice_viewed_desc:"\u038C\u03C4\u03B1\u03BD \u03BF \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03C3\u03B1\u03C2 \u03B2\u03BB\u03AD\u03C0\u03B5\u03B9 \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03C0\u03BF\u03C5 \u03B1\u03C0\u03BF\u03C3\u03C4\u03AD\u03BB\u03BB\u03B5\u03C4\u03B1\u03B9 \u03BC\u03AD\u03C3\u03C9 \u03C4\u03BF\u03C5 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1 \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5.",estimate_viewed:"\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03C0\u03C1\u03BF\u03B2\u03B5\u03B2\u03BB\u03B7\u03BC\u03AD\u03BD\u03C9\u03BD",estimate_viewed_desc:"\u038C\u03C4\u03B1\u03BD \u03BF \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03C3\u03B1\u03C2 \u03B2\u03BB\u03AD\u03C0\u03B5\u03B9 \u03C4\u03B7\u03BD \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03B1\u03C0\u03BF\u03C3\u03C4\u03AD\u03BB\u03BB\u03B5\u03C4\u03B1\u03B9 \u03BC\u03AD\u03C3\u03C9 \u03C4\u03BF\u03C5 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1 \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5 \u03BA\u03C1\u03B1\u03C4\u03AE\u03C3\u03B5\u03C9\u03BD.",save:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",email_save_message:"\u03A4\u03BF \u039C\u03AE\u03BD\u03C5\u03BC\u03B1 \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",please_enter_email:"\u0395\u03B9\u03C3\u03B1\u03B3\u03AC\u03B3\u03B5\u03C4\u03B5 e-mail"},roles:{title:"\u03A1\u03CC\u03BB\u03BF\u03B9",description:"\u0394\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03B9\u03C3\u03C4\u03B5\u03AF\u03C4\u03B5 \u03C4\u03BF\u03C5\u03C2 \u03C1\u03CC\u03BB\u03BF\u03C5\u03C2 \u03BA\u03B1\u03B9 \u03C4\u03B1 \u03B4\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1 \u03B1\u03C5\u03C4\u03AE\u03C2 \u03C4\u03B7\u03C2 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",save:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",add_new_role:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A1\u03CC\u03BB\u03BF\u03C5",role_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03C1\u03CC\u03BB\u03BF\u03C5",added_on:"\u03A0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03C3\u03C4\u03B9\u03C2",add_role:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C1\u03CC\u03BB\u03BF\u03C5",edit_role:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A1\u03CC\u03BB\u03BF\u03C5",name:"\u038C\u03BD\u03BF\u03BC\u03B1",permission:"\u0394\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1 \u0394\u03B9\u03BA\u03B1\u03B9\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",select_all:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u038C\u03BB\u03C9\u03BD",none:"\u039A\u03B1\u03BD\u03B5\u03AF\u03C2",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",created_message:"\u039F \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",updated_message:"\u039F \u03C1\u03CC\u03BB\u03BF\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1.",deleted_message:"\u039F \u03C1\u03CC\u03BB\u03BF\u03C2 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",already_in_use:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7"},exchange_rate:{exchange_rate:"\u03A3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1",title:"\u0394\u03B9\u03CC\u03C1\u03B8\u03C9\u03C3\u03B7 \u03B6\u03B7\u03C4\u03B7\u03BC\u03AC\u03C4\u03C9\u03BD \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03AC\u03B3\u03BC\u03B1\u03C4\u03BF\u03C2",description:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03BF\u03CD\u03BC\u03B5 \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1 \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03BD\u03BF\u03BC\u03B9\u03C3\u03BC\u03AC\u03C4\u03C9\u03BD \u03C0\u03BF\u03C5 \u03B1\u03BD\u03B1\u03C6\u03AD\u03C1\u03BF\u03BD\u03C4\u03B1\u03B9 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF\u03BD \u039A\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1 \u03BD\u03B1 \u03C5\u03C0\u03BF\u03BB\u03BF\u03B3\u03AF\u03C3\u03B5\u03B9 \u03C3\u03C9\u03C3\u03C4\u03AC \u03C4\u03B1 \u03C0\u03BF\u03C3\u03AC \u03C3\u03B5 {currency}.",drivers:"\u039F\u03B4\u03B7\u03B3\u03BF\u03AF",new_driver:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03BD\u03AD\u03B1\u03C2 \u03C5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1\u03C2 \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE\u03C2",edit_driver:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C0\u03B1\u03C1\u03CC\u03C7\u03BF\u03C5",select_driver:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1\u03BD \u039F\u03B4\u03B7\u03B3\u03CC",update:"\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE\u03C2 \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1\u03C2 ",providers_description:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03C4\u03B5 \u03C4\u03BF\u03C5\u03C2 \u03C0\u03B1\u03C1\u03CC\u03C7\u03BF\u03C5\u03C2 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03CE\u03BD \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03B9\u03CE\u03BD \u03C3\u03B1\u03C2 \u03B5\u03B4\u03CE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03B3\u03BA\u03B5\u03BD\u03C4\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03C4\u03B7\u03BD \u03C4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1 \u03C3\u03C4\u03B9\u03C2 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AD\u03C2.",key:"\u039A\u03BB\u03B5\u03B9\u03B4\u03AF API",name:"\u038C\u03BD\u03BF\u03BC\u03B1",driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2",is_default:"IS \u03A0\u03A1\u039F\u03A6\u03A5\u039B\u0391\u039E\u0397",currency:"\u03A3\u03C5\u03BD\u03AC\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1",exchange_rate_confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",created_message:"\u039F \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",updated_message:"\u039F \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",deleted_message:"\u039F \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",error:" \u0394\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u0394\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03C4\u03B5 \u03C4\u03BF \u0395\u03BD\u03B5\u03C1\u03B3\u03CC \u039F\u03B4\u03B7\u03B3\u03CC",default_currency_error:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03BD\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03B1\u03C0\u03CC \u03C4\u03BF\u03C5\u03C2 Active Provider",exchange_help_text:"\u0395\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1 \u03B3\u03B9\u03B1 \u03BC\u03B5\u03C4\u03B1\u03C4\u03C1\u03BF\u03C0\u03AE \u03B1\u03C0\u03CC {currency} \u03C3\u03B5 {baseCurrency}",currency_freak:"\u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1 Freak",currency_layer:"\u03A3\u03C4\u03C1\u03CE\u03BC\u03B1 \u039D\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",open_exchange_rate:"Open Exchange Rates",currency_converter:"\u039C\u03B5\u03C4\u03B1\u03C4\u03C1\u03BF\u03C0\u03AD\u03B1\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2 (Automatic Translation)",server:"\u03A3\u03AD\u03C1\u03B2\u03B5\u03C1",url:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 URL",active:"\u0395\u03BD\u03B5\u03C1\u03B3\u03AE",currency_help_text:"\u0391\u03C5\u03C4\u03CC\u03C2 \u03BF \u03C0\u03AC\u03C1\u03BF\u03C7\u03BF\u03C2 \u03B8\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B7\u03B8\u03B5\u03AF \u03BC\u03CC\u03BD\u03BF \u03C0\u03AC\u03BD\u03C9 \u03B1\u03C0\u03CC \u03C4\u03B1 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03B1",currency_in_used:"\u03A4\u03B1 \u03B1\u03BA\u03CC\u03BB\u03BF\u03C5\u03B8\u03B1 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03B5\u03BD\u03B5\u03C1\u03B3\u03AC \u03C3\u03B5 \u03AC\u03BB\u03BB\u03BF \u03C0\u03AC\u03C1\u03BF\u03C7\u03BF. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B1\u03C6\u03B1\u03B9\u03C1\u03AD\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03AC \u03C4\u03B1 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03B1 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03C0\u03AC\u03C1\u03BF\u03C7\u03BF."},tax_types:{title:"\u03A6\u03BF\u03C1\u03BF\u03BB\u03BF\u03B3\u03B9\u03BA\u03AE \u03BA\u03BB\u03AC\u03C3\u03B7",add_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A6\u03CC\u03C1\u03BF\u03C5",edit_tax:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C6\u03CC\u03C1\u03BF\u03C5",description:"\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03AE \u03BD\u03B1 \u03B1\u03C6\u03B1\u03B9\u03C1\u03AD\u03C3\u03B5\u03C4\u03B5 \u03C6\u03CC\u03C1\u03BF\u03C5\u03C2 \u03CC\u03C0\u03C9\u03C2 \u03C3\u03B1\u03C2 \u03C0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE. \u039A\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1 \u03C5\u03C0\u03BF\u03C3\u03C4\u03B7\u03C1\u03AF\u03B6\u03B5\u03B9 \u03C6\u03CC\u03C1\u03BF\u03C5\u03C2 \u03B5\u03C0\u03AF \u03BC\u03B5\u03BC\u03BF\u03BD\u03C9\u03BC\u03AD\u03BD\u03C9\u03BD \u03C0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03C9\u03BD \u03BA\u03B1\u03B8\u03CE\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF.",add_new_tax:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03BF\u03C5 \u03A6\u03CC\u03C1\u03BF\u03C5",tax_settings:"\u03A6\u03BF\u03C1\u03BF\u03BB\u03BF\u03B3\u03B9\u03BA\u03AD\u03C2 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2",tax_per_item:"\u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF \u03A6\u03CC\u03BD\u03C4\u03BF\u03C5 \u03A5\u03C0\u03BF\u03BC\u03B5\u03BD\u03BF\u03CD",tax_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03A6\u03CC\u03C1\u03BF\u03C5",compound_tax:"\u03A3\u03CD\u03BD\u03B8\u03B5\u03C4\u03BF\u03C2 \u03A6\u03CC\u03C1\u03BF\u03C2",percent:"\u03A0\u03BF\u03C3\u03BF\u03C3\u03C4\u03CC",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",tax_setting_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03AD\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7 \u03C3\u03B5 \u03BC\u03B5\u03BC\u03BF\u03BD\u03C9\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5. \u0391\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE, \u03B7 \u03AD\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C3\u03C4\u03AF\u03B8\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C0\u03B5\u03C5\u03B8\u03B5\u03AF\u03B1\u03C2 \u03C3\u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF.",created_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",already_in_use:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7"},payment_modes:{title:"\u03A4\u03C1\u03CC\u03C0\u03BF\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",description:"\u03A4\u03C1\u03CC\u03C0\u03BF\u03B9 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03B3\u03B9\u03B1 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2",add_payment_mode:"\u03A4\u03C1\u03CC\u03C0\u03BF\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",edit_payment_mode:"\u03A4\u03C1\u03CC\u03C0\u03BF\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",mode_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1\u03C2",payment_mode_added:"\u03A0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u039B\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",payment_mode_updated:"\u03A0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u039B\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",payment_mode_confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2"},expense_category:{title:"\u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u0395\u03BE\u03CC\u03B4\u03C9\u03BD",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",description:"\u0391\u03C0\u03B1\u03B9\u03C4\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03C0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03C9\u03BD \u03B5\u03BE\u03CC\u03B4\u03C9\u03BD. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03AE \u03BD\u03B1 \u03B1\u03C6\u03B1\u03B9\u03C1\u03AD\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2.",add_new_category:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039D\u03AD\u03B1\u03C2 \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1\u03C2",add_category:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1\u03C2",edit_category:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1\u03C2",category_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u039A\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B1\u03C2",category_description:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",created_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",deleted_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",updated_message:"\u03A4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",already_in_use:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7"},preferences:{currency:"\u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1",default_language:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B3\u03BB\u03CE\u03C3\u03C3\u03B1",time_zone:"\u0396\u03CE\u03BD\u03B7 \u038F\u03C1\u03B1\u03C2",fiscal_year:"\u039F\u03B9\u03BA\u03BF\u03BD\u03BF\u03BC\u03B9\u03BA\u03CC \u03AD\u03C4\u03BF\u03C2",date_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",discount_setting:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u039B\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD",discount_per_item:"\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7 \u0391\u03BD\u03AC \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ",discount_setting_description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03AD\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7 \u03C3\u03B5 \u03BC\u03B5\u03BC\u03BF\u03BD\u03C9\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5. \u0391\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE, \u03B7 \u03AD\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C3\u03C4\u03AF\u03B8\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C0\u03B5\u03C5\u03B8\u03B5\u03AF\u03B1\u03C2 \u03C3\u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF.",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:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",preference:"\u03A0\u03C1\u03BF\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 - \u03A0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2",general_settings:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B5\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03BF \u03C3\u03CD\u03C3\u03C4\u03B7\u03BC\u03B1.",updated_message:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03B5\u03C3\u03C4\u03AC\u03BB\u03B7 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",select_language:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u0393\u03BB\u03CE\u03C3\u03C3\u03B1\u03C2",select_time_zone:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",select_date_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C3\u03CD\u03BD\u03C4\u03BF\u03BC\u03B7\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",select_financial_year:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u039F\u03B9\u03BA\u03BF\u03BD\u03BF\u03BC\u03B9\u03BA\u03BF\u03CD \u0388\u03C4\u03BF\u03C5\u03C2",recurring_invoice_status:"\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1",create_status:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7\u03C2",active:"\u0395\u03BD\u03B5\u03C1\u03B3\u03AE",on_hold:"\u03A3\u03B5 \u03B1\u03BD\u03B1\u03BC\u03BF\u03BD\u03AE",update_status:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u039A\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7\u03C2",completed:"\u039F\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5",company_currency_unchangeable:"\u03A4\u03BF \u03BD\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2 \u03B4\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9"},update_app:{title:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE\u03C2",description:"\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03B5\u03CD\u03BA\u03BF\u03BB\u03B1 \u03BD\u03B1 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF\u03BD \u039A\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1 \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03BD\u03C4\u03B1\u03C2 \u03B3\u03B9\u03B1 \u03BC\u03B9\u03B1 \u03BD\u03AD\u03B1 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03BA\u03AC\u03BD\u03BF\u03BD\u03C4\u03B1\u03C2 \u03BA\u03BB\u03B9\u03BA \u03C3\u03C4\u03BF \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BA\u03BF\u03C5\u03BC\u03C0\u03AF",check_update:"\u0388\u03BB\u03B5\u03B3\u03C7\u03BF\u03C2 \u0395\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03B5\u03C9\u03BD",avail_update:"\u03A5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03BD\u03AD\u03B1 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7",next_version:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u0388\u03BA\u03B4\u03BF\u03C3\u03B7",requirements:"\u0391\u03C0\u03B1\u03B9\u03C4\u03AE\u03C3\u03B5\u03B9\u03C2",update:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03CE\u03C1\u03B1",update_progress:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7",progress_text:"\u0398\u03B1 \u03C7\u03C1\u03B5\u03B9\u03B1\u03C3\u03C4\u03BF\u03CD\u03BD \u03BC\u03CC\u03BD\u03BF \u03BB\u03AF\u03B3\u03B1 \u03BB\u03B5\u03C0\u03C4\u03AC. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03BC\u03B7\u03BD \u03B1\u03BD\u03B1\u03BD\u03B5\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03BF\u03B8\u03CC\u03BD\u03B7 \u03AE \u03BD\u03B1 \u03BA\u03BB\u03B5\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF \u03C0\u03C1\u03B9\u03BD \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9 \u03B7 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7.",update_success:"\u0397 \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03AD\u03C7\u03B5\u03B9 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03C9\u03B8\u03B5\u03AF! \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C0\u03B5\u03C1\u03B9\u03BC\u03AD\u03BD\u03B5\u03C4\u03B5 \u03CC\u03C3\u03BF \u03C4\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF \u03C4\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B7\u03B3\u03B7\u03C4\u03AE \u03C3\u03B1\u03C2 \u03C6\u03BF\u03C1\u03C4\u03CE\u03BD\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1.",latest_message:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03C0\u03C1\u03BF\u03C2 \u03C4\u03BF \u03C0\u03B1\u03C1\u03CC\u03BD \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03B5\u03B9\u03C2. \u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03AD\u03BA\u03B4\u03BF\u03C3\u03B7.",current_version:"\u03A4\u03C1\u03AD\u03C7\u03BF\u03C5\u03C3\u03B1 \u03AD\u03BA\u03B4\u03BF\u03C3\u03B7",download_zip_file:"\u039A\u03B1\u03C4\u03B5\u03B2\u03AC\u03C3\u03C4\u03B5 \u03C3\u03B5 ZIP",unzipping_package:"\u0391\u03C0\u03BF\u03C3\u03C5\u03BC\u03C0\u03AF\u03B5\u03C3\u03B7 \u03A0\u03B1\u03BA\u03AD\u03C4\u03BF\u03C5",copying_files:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u0391\u03C1\u03C7\u03B5\u03AF\u03C9\u03BD",deleting_files:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B1\u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03AF\u03B7\u03C4\u03C9\u03BD \u03B1\u03C1\u03C7\u03B5\u03AF\u03C9\u03BD",running_migrations:"\u0395\u03BA\u03C4\u03AD\u03BB\u03B5\u03C3\u03B7 \u039C\u03B5\u03C4\u03B1\u03BD\u03B1\u03C3\u03C4\u03CE\u03BD",finishing_update:"\u039F\u03BB\u03BF\u03BA\u03BB\u03AE\u03C1\u03C9\u03C3\u03B7 \u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7\u03C2",update_failed:"\u0391\u03C0\u03BF\u03C4\u03C5\u03C7\u03AF\u03B1 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7\u03C2",update_failed_text:"\u03A3\u03C5\u03B3\u03BD\u03CE\u03BC\u03B7! \u0397 \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03AE \u03C3\u03B1\u03C2 \u03B1\u03C0\u03AD\u03C4\u03C5\u03C7\u03B5 \u03C3\u03B5: {step} \u03B2\u03AE\u03BC\u03B1",update_warning:"\u038C\u03BB\u03B1 \u03C4\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03CE\u03BD \u03BA\u03B1\u03B9 \u03C4\u03B1 \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03C0\u03C1\u03BF\u03C4\u03CD\u03C0\u03C9\u03BD \u03B8\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B1\u03C4\u03B1\u03C3\u03C4\u03B1\u03B8\u03BF\u03CD\u03BD \u03CC\u03C4\u03B1\u03BD \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03BD\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03CE\u03BD\u03C4\u03B1\u03C2 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03B2\u03BF\u03B7\u03B8\u03B7\u03C4\u03B9\u03BA\u03CC \u03C0\u03C1\u03CC\u03B3\u03C1\u03B1\u03BC\u03BC\u03B1. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C0\u03AC\u03C1\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2 \u03C4\u03C9\u03BD \u03C0\u03C1\u03BF\u03C4\u03CD\u03C0\u03C9\u03BD \u03BA\u03B1\u03B9 \u03C4\u03B7\u03C2 \u03B2\u03AC\u03C3\u03B7\u03C2 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD \u03C3\u03B1\u03C2 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B5\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7."},backup:{title:'\u0391\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u0391\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2 "\u0391\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03B1 \u0391\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2',description:"\u03A4\u03BF \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AD\u03BD\u03B1 zipfile \u03C0\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03C3\u03C4\u03BF\u03C5\u03C2 \u03BA\u03B1\u03C4\u03B1\u03BB\u03CC\u03B3\u03BF\u03C5\u03C2 \u03C0\u03BF\u03C5 \u03BA\u03B1\u03B8\u03BF\u03C1\u03AF\u03B6\u03B5\u03C4\u03B5 \u03BC\u03B1\u03B6\u03AF \u03BC\u03B5 \u03BC\u03B9\u03B1 \u03C7\u03C9\u03BC\u03B1\u03C4\u03B5\u03C1\u03AE \u03C4\u03B7\u03C2 \u03B2\u03AC\u03C3\u03B7\u03C2 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD \u03C3\u03B1\u03C2",new_backup:"\u039D\u03AD\u03BF \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2",create_backup:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B1\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2",select_backup_type:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03A4\u03CD\u03C0\u03BF\u03C5(\u03C9\u03BD) \u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 \u0391\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2",backup_confirm_delete:"\u0394\u03B5\u03BD \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B1\u03BA\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC \u03C4\u03BF \u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03A0\u03B5\u03B4\u03AF\u03BF",path:"Path",new_disk:"\u039D\u03AD\u03BF\u03C2 \u0394\u03AF\u03C3\u03BA\u03BF\u03C2",created_at:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03C3\u03C4\u03B9\u03C2",size:"\u03BC\u03AD\u03B3\u03B5\u03B8\u03BF\u03C2",dropbox:"Dropbox",local:"\u03A4\u03BF\u03C0\u03B9\u03BA\u03AD\u03C2 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2",healthy:"\u03C5\u03B3\u03B9\u03AD\u03C2",amount_of_backups:"\u03C0\u03BF\u03C3\u03CC \u03B1\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03C9\u03BD \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2",newest_backups:"\u03BD\u03AD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03B1 \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2",used_storage:"\u03A7\u03CE\u03C1\u03BF\u03C2 \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7\u03C2 \u03C3\u03B5 \u03C7\u03C1\u03AE\u03C3\u03B7",select_disk:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B4\u03AF\u03C3\u03BA\u03BF",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",deleted_message:"\u0397 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03C4\u03C9\u03BD \u03B1\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03C9\u03BD \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",created_message:"\u0397 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B1\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5 \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5 \u03BC\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03AF\u03B1",invalid_disk_credentials:"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03B4\u03B9\u03B1\u03C0\u03B9\u03C3\u03C4\u03B5\u03C5\u03C4\u03AE\u03C1\u03B9\u03BF \u03C4\u03BF\u03C5 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5"},disk:{title:"\u0394\u03AF\u03C3\u03BA\u03BF\u03C2 \u0391\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5.\u0394\u03AF\u03C3\u03BA\u03BF\u03B9 \u0391\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",description:"\u0391\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE, \u03BF \u039A\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1\u03C2 \u03B8\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9 \u03C4\u03BF\u03BD \u03C4\u03BF\u03C0\u03B9\u03BA\u03CC \u03C3\u03B1\u03C2 \u03B4\u03AF\u03C3\u03BA\u03BF \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03B1\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03C9\u03BD \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2, avatar \u03BA\u03B1\u03B9 \u03AC\u03BB\u03BB\u03C9\u03BD \u03B1\u03C1\u03C7\u03B5\u03AF\u03C9\u03BD \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03BF\u03C5\u03C2 \u03B1\u03C0\u03CC \u03AD\u03BD\u03B1\u03BD \u03BF\u03B4\u03B7\u03B3\u03BF\u03CD\u03C2 \u03B4\u03AF\u03C3\u03BA\u03C9\u03BD \u03CC\u03C0\u03C9\u03C2 DigitalOcean, S3 \u03BA\u03B1\u03B9 Dropbox \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2.",created_at:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03B8\u03B7\u03BA\u03B5 \u03C3\u03C4\u03B9\u03C2",dropbox:"Dropbox",name:"\u038C\u03BD\u03BF\u03BC\u03B1",driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2",disk_type:"Type",disk_name:"\u03A7\u03C1\u03AE\u03C3\u03B7 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5",new_disk:"\u03A6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7 \u039D\u03AD\u03BF\u03C5 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5",filesystem_driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2 \u03A3\u03C5\u03C3\u03C4\u03AE\u03BC\u03B1\u03C4\u03BF\u03C2 \u0391\u03C1\u03C7\u03B5\u03AF\u03C9\u03BD",local_driver:"\u03C4\u03BF\u03C0\u03B9\u03BA\u03CC\u03C2 \u03BF\u03B4\u03B7\u03B3\u03CC\u03C2",local_root:"\u03C4\u03BF\u03C0\u03B9\u03BA\u03AE \u03C1\u03AF\u03B6\u03B1",public_driver:"\u03A0\u03C1\u03CC\u03BA\u03C1\u03B9\u03C3\u03B7 \u039F\u03B4\u03B7\u03B3\u03BF\u03CD",public_root:"\u0394\u03B7\u03BC\u03CC\u03C3\u03B9\u03B1 \u03A1\u03AF\u03B6\u03B1",public_url:"\u0394\u03B7\u03BC\u03CC\u03C3\u03B9\u03B1 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 URL",public_visibility:"\u0394\u03B7\u03BC\u03CC\u03C3\u03B9\u03B1 \u039F\u03C1\u03B1\u03C4\u03CC\u03C4\u03B7\u03C4\u03B1",media_driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",media_root:"\u03A1\u03AF\u03B6\u03B1 \u03A0\u03BF\u03BB\u03C5\u03BC\u03AD\u03C3\u03C9\u03BD",aws_driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2 AWS",aws_key:"\u039A\u03BB\u03B5\u03B9\u03B4\u03AF SES",aws_secret:"SES \u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC",aws_region:"\u03A0\u03B5\u03C1\u03B9\u03BF\u03C7\u03AE AWS",aws_bucket:"SES \u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC",aws_root:"\u03A1\u03AF\u03B6\u03B1 AWS",do_spaces_type:"\u03A4\u03CD\u03C0\u03BF\u03C2 \u03BA\u03B5\u03BD\u03CE\u03BD",do_spaces_key:"\u03A4\u03CD\u03C0\u03BF\u03C2 \u03BA\u03B5\u03BD\u03CE\u03BD",do_spaces_secret:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC \u038C\u03C1\u03B9\u03BF \u03A7\u03CE\u03C1\u03C9\u03BD",do_spaces_region:'\u03A0\u03B5\u03C1\u03B9\u03BF\u03C7\u03AE "\u03A7\u03CE\u03C1\u03C9\u03BD"',do_spaces_bucket:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC \u038C\u03C1\u03B9\u03BF \u03A7\u03CE\u03C1\u03C9\u03BD",do_spaces_endpoint:"\u0395\u03BA\u03C4\u03AD\u03BB\u03B5\u03C3\u03B7 \u03A7\u03CE\u03C1\u03C9\u03BD \u03A4\u03B5\u03BB\u03B9\u03BA\u03BF\u03CD \u03A3\u03B7\u03BC\u03B5\u03AF\u03BF\u03C5",do_spaces_root:'\u03A0\u03B5\u03C1\u03B9\u03BF\u03C7\u03AE "\u03A7\u03CE\u03C1\u03C9\u03BD"',dropbox_type:"\u03A3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC\u03CC\u03C2 Dropbox",dropbox_token:"\u03A3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC\u03CC\u03C2 Dropbox",dropbox_key:"\u039A\u03BB\u03B5\u03B9\u03B4\u03AF Dropbox",dropbox_secret:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC Dropbox",dropbox_app:"\u03A3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC\u03CC\u03C2 Dropbox",dropbox_root:"\u03A1\u03AF\u03B6\u03B1 Dropbox",default_driver:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF\u03C2 \u039F\u03B4\u03B7\u03B3\u03CC\u03C2",is_default:"IS \u03A0\u03A1\u039F\u03A6\u03A5\u039B\u0391\u039E\u0397",set_default_disk:"\u039F\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF\u03C5 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5",set_default_disk_confirm:"\u0391\u03C5\u03C4\u03CC\u03C2 \u03BF \u03B4\u03AF\u03C3\u03BA\u03BF\u03C2 \u03B8\u03B1 \u03BF\u03C1\u03B9\u03C3\u03C4\u03B5\u03AF \u03C9\u03C2 \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF\u03C2 \u03BA\u03B1\u03B9 \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03BD\u03AD\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 PDF \u03B8\u03B1 \u03B1\u03C0\u03BF\u03B8\u03B7\u03BA\u03B5\u03C5\u03C4\u03BF\u03CD\u03BD \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B4\u03AF\u03C3\u03BA\u03BF",success_set_default_disk:"\u039F \u03B4\u03AF\u03C3\u03BA\u03BF\u03C2 \u03BF\u03C1\u03AF\u03C3\u03C4\u03B7\u03BA\u03B5 \u03C9\u03C2 \u03C0\u03C1\u03BF\u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF\u03C2 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",save_pdf_to_disk:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03BA\u03BB\u03B5\u03B9\u03B4\u03B9\u03BF\u03CD \u03C3\u03C4\u03BF \u03B4\u03AF\u03C3\u03BA\u03BF",disk_setting_description:" \u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C5\u03C4\u03CC, \u03B1\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03BF\u03B8\u03B7\u03BA\u03B5\u03CD\u03C3\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u03C4\u03BF\u03C5 \u03BA\u03AC\u03B8\u03B5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5, \u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 & \u03C0\u03B1\u03C1\u03B1\u03BB\u03B1\u03B2\u03AE \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2 PDF \u03C3\u03C4\u03BF\u03BD \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B4\u03AF\u03C3\u03BA\u03BF \u03C3\u03B1\u03C2 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1. \u0397 \u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03B1\u03C5\u03C4\u03AE\u03C2 \u03C4\u03B7\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2 \u03B8\u03B1 \u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9 \u03C4\u03BF \u03C7\u03C1\u03CC\u03BD\u03BF \u03C6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7\u03C2 \u03BA\u03B1\u03C4\u03AC \u03C4\u03B7\u03BD \u03C0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03C4\u03C9\u03BD PDF.",select_disk:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B4\u03AF\u03C3\u03BA\u03BF",disk_settings:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5",confirm_delete:"\u03A4\u03B1 \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03BD\u03C4\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03BF\u03B9 \u03C6\u03AC\u03BA\u03B5\u03BB\u03BF\u03B9 \u03C3\u03B1\u03C2 \u03C3\u03C4\u03BF\u03BD \u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF \u03B4\u03AF\u03C3\u03BA\u03BF \u03B4\u03B5\u03BD \u03B8\u03B1 \u03B5\u03C0\u03B7\u03C1\u03B5\u03B1\u03C3\u03C4\u03BF\u03CD\u03BD \u03B1\u03BB\u03BB\u03AC \u03B7 \u03B4\u03B9\u03B1\u03BC\u03CC\u03C1\u03C6\u03C9\u03C3\u03B7 \u03C4\u03BF\u03C5 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5 \u03C3\u03B1\u03C2 \u03B8\u03B1 \u03B4\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF \u03B1\u03C0\u03CC \u03C4\u03BF\u03BD \u039A\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1",action:"\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B1",edit_file_disk:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5 \u0391\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",success_create:"\u0397 \u03B4\u03B5\u03BE\u03B1\u03BC\u03B5\u03BD\u03AE \u03C0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2.",success_update:"\u0397 \u03B4\u03B5\u03BE\u03B1\u03BC\u03B5\u03BD\u03AE \u03C0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2.",error:"\u0397 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5 \u03B1\u03C0\u03AD\u03C4\u03C5\u03C7\u03B5",deleted_message:"\u039F \u03B4\u03AF\u03C3\u03BA\u03BF\u03C2 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2",disk_variables_save_successfully:"\u0397 \u03A1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03A4\u03BF\u03C5 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5 \u0395\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",disk_variables_save_error:"\u0391\u03C0\u03BF\u03C4\u03C5\u03C7\u03AF\u03B1 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7\u03C2 \u03C4\u03BF\u03C5 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5.",invalid_disk_credentials:"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03B4\u03B9\u03B1\u03C0\u03B9\u03C3\u03C4\u03B5\u03C5\u03C4\u03AE\u03C1\u03B9\u03BF \u03C4\u03BF\u03C5 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF\u03C5 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5"},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."}},bz={account_info:"\u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u039B\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD",account_info_desc:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03B8\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B7\u03B8\u03BF\u03CD\u03BD \u03BF\u03B9 \u03BB\u03B5\u03C0\u03C4\u03BF\u03BC\u03AD\u03C1\u03B5\u03B9\u03B5\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03C4\u03BF\u03C5 \u03BA\u03CD\u03C1\u03B9\u03BF\u03C5 \u03BB\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD \u03B4\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03B9\u03C3\u03C4\u03AE. \u0395\u03C0\u03AF\u03C3\u03B7\u03C2, \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03B1\u03BD\u03AC \u03C0\u03AC\u03C3\u03B1 \u03C3\u03C4\u03B9\u03B3\u03BC\u03AE \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7 \u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7.",name:"\u038C\u03BD\u03BF\u03BC\u03B1",email:"\u0397\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03AE \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2",confirm_password:"\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7 \u039A\u03C9\u03B4\u03B9\u03BA\u03BF\u03CD",save_cont:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 & \u03C3\u03C5\u03BD\u03B5\u03C7\u03B5\u03AF\u03B1",company_info:"\u03A0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03AF\u03B1\u03C2",company_info_desc:"\u0391\u03C5\u03C4\u03AD\u03C2 \u03BF\u03B9 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u03B8\u03B1 \u03B5\u03BC\u03C6\u03B1\u03BD\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03B9 \u03C3\u03C4\u03B1 \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03B1. \u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C4\u03BF \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03C4\u03B5\u03AF\u03C4\u03B5 \u03B1\u03C1\u03B3\u03CC\u03C4\u03B5\u03C1\u03B1 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD.",company_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",company_logo:"\u039B\u03BF\u03B3\u03CC\u03C4\u03C5\u03C0\u03BF \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",logo_preview:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u039B\u03BF\u03B3\u03CC\u03C4\u03C5\u03C0\u03BF\u03C5",preferences:"\u03A0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u0395\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2",preferences_desc:"\u039A\u03B1\u03B8\u03BF\u03C1\u03AF\u03C3\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B5\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C5\u03C4\u03AE\u03BD \u03C4\u03B7\u03BD \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1.",currency_set_alert:"\u03A4\u03BF \u03BD\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2 \u03B4\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9.",country:"\u03A7\u03CE\u03C1\u03B1",state:"\u039D\u03BF\u03BC\u03CC\u03C2",city:"\u03A0\u03CC\u03BB\u03B7",address:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",street:"\u039F\u03B4\u03CC\u03C2 1 - \u039F\u03B4\u03CC\u03C2 2",phone:"\u03A4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF",zip_code:"\u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B9\u03BA\u03CC\u03C2 \u03BA\u03CE\u03B4\u03B9\u03BA\u03B1\u03C2",go_back:"\u0395\u03C0\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE",currency:"\u039D\u03CC\u03BC\u03B9\u03C3\u03BC\u03B1",language:"Language",time_zone:"\u0396\u03CE\u03BD\u03B7 \u038F\u03C1\u03B1\u03C2",fiscal_year:"\u039F\u03B9\u03BA\u03BF\u03BD\u03BF\u03BC\u03B9\u03BA\u03CC \u03AD\u03C4\u03BF\u03C2",date_format:"\u039C\u03BF\u03C1\u03C6\u03AE \u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",from_address:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE\u03C2",username:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",continue:"\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1",skip:"Salta",database:{database:"Url & \u0392\u03AC\u03C3\u03B7 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD \u0399\u03C3\u03C4\u03BF\u03C4\u03CC\u03C0\u03BF\u03C5",connection:"\u03A3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7 \u03BC\u03B5 \u0392\u03AC\u03C3\u03B7 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",host:"\u0394\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE\u03C2 \u0392\u03AC\u03C3\u03B7\u03C2 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",port:"\u0398\u03CD\u03C1\u03B1 \u0392\u03AC\u03C3\u03B7\u03C2 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u0392\u03AC\u03C3\u03B7\u03C2 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",app_url:"URL \u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE\u03C2",app_domain:"\u03A4\u03BF\u03BC\u03AD\u03B1\u03C2 \u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE\u03C2",username:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7 \u0392\u03AC\u03C3\u03B7\u03C2 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",db_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03B2\u03AC\u03C3\u03B7\u03C2 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",db_path:"\u0394\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE \u0392\u03AC\u03C3\u03B7\u03C2 \u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",desc:"\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03C3\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03B2\u03AC\u03C3\u03B7 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD \u03C3\u03C4\u03BF \u03B4\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03BF\u03C1\u03AF\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03B4\u03B9\u03B1\u03C0\u03B9\u03C3\u03C4\u03B5\u03C5\u03C4\u03AE\u03C1\u03B9\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03CE\u03BD\u03C4\u03B1\u03C2 \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03C6\u03CC\u03C1\u03BC\u03B1."},permissions:{permissions:"\u0394\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1",permission_confirm_title:"\u0395\u03AF\u03C3\u03C4\u03B5 \u03B2\u03AD\u03B2\u03B1\u03B9\u03BF\u03B9 \u03CC\u03C4\u03B9 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5;",permission_confirm_desc:"\u039F \u03AD\u03BB\u03B5\u03B3\u03C7\u03BF\u03C2 \u03B4\u03B9\u03BA\u03B1\u03B9\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD \u03C6\u03B1\u03BA\u03AD\u03BB\u03BF\u03C5 \u03B1\u03C0\u03AD\u03C4\u03C5\u03C7\u03B5",permission_desc:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03C4\u03C9\u03BD \u03B4\u03B9\u03BA\u03B1\u03B9\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD \u03C6\u03B1\u03BA\u03AD\u03BB\u03C9\u03BD \u03C0\u03BF\u03C5 \u03B1\u03C0\u03B1\u03B9\u03C4\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AE\u03C3\u03B5\u03B9 \u03B7 \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE. \u0395\u03AC\u03BD \u03BF \u03AD\u03BB\u03B5\u03B3\u03C7\u03BF\u03C2 \u03C4\u03B7\u03C2 \u03AC\u03B4\u03B5\u03B9\u03B1\u03C2 \u03B1\u03C0\u03BF\u03C4\u03CD\u03C7\u03B5\u03B9, \u03C6\u03C1\u03BF\u03BD\u03C4\u03AF\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03B5\u03BD\u03B7\u03BC\u03B5\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03B4\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1 \u03C4\u03BF\u03C5 \u03C6\u03B1\u03BA\u03AD\u03BB\u03BF\u03C5 \u03C3\u03B1\u03C2."},verify_domain:{title:"\u0391\u03BD\u03B8\u03C1\u03CE\u03C0\u03B9\u03BD\u03B7 \u0395\u03C0\u03B1\u03BB\u03AE\u03B8\u03B5\u03C5\u03C3\u03B7",desc:"\u039F \u039A\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF \u03AD\u03BB\u03B5\u03B3\u03C7\u03BF \u03C4\u03B1\u03C5\u03C4\u03CC\u03C4\u03B7\u03C4\u03B1\u03C2 \u03C0\u03BF\u03C5 \u03B2\u03B1\u03C3\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03C3\u03B5 \u03C3\u03C5\u03BD\u03B5\u03B4\u03C1\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03B1\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF \u03B5\u03C0\u03B1\u03BB\u03AE\u03B8\u03B5\u03C5\u03C3\u03B7 \u03C4\u03BF\u03BC\u03AD\u03B1 \u03B3\u03B9\u03B1 \u03BB\u03CC\u03B3\u03BF\u03C5\u03C2 \u03B1\u03C3\u03C6\u03B1\u03BB\u03B5\u03AF\u03B1\u03C2. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03C4\u03BF\u03BD \u03C4\u03BF\u03BC\u03AD\u03B1 \u03C3\u03C4\u03BF\u03BD \u03BF\u03C0\u03BF\u03AF\u03BF \u03B8\u03B1 \u03AD\u03C7\u03B5\u03C4\u03B5 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03B9\u03C3\u03C4\u03BF\u03CD \u03C3\u03B1\u03C2.",app_domain:"\u03A4\u03BF\u03BC\u03AD\u03B1\u03C2 \u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE\u03C2",verify_now:"\u0395\u03C0\u03B1\u03BB\u03B7\u03B8\u03B5\u03CD\u03C3\u03C4\u03B5 \u03A4\u03CE\u03C1\u03B1",success:"\u0397 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u03C4\u03BF\u03C5 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03C3\u03B1\u03C2 \u03B5\u03C0\u03B1\u03BB\u03B7\u03B8\u03B5\u03CD\u03C4\u03B7\u03BA\u03B5",failed:"\u0397 \u03B5\u03C0\u03B1\u03BB\u03AE\u03B8\u03B5\u03C5\u03C3\u03B7 \u03C4\u03BF\u03BC\u03AD\u03B1 \u03B1\u03C0\u03AD\u03C4\u03C5\u03C7\u03B5. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C4\u03BF\u03BC\u03AD\u03B1.",verify_and_continue:"\u0395\u03C0\u03B1\u03BB\u03AE\u03B8\u03B5\u03C5\u03C3\u03B7 \u039A\u03B1\u03B9 \u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1"},mail:{host:"\u0394\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",port:"\u0394\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",driver:"\u039F\u03B4\u03B7\u03B3\u03CC\u03C2 \u0391\u03BB\u03BB\u03B7\u03BB\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",secret:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC",mailgun_secret:"\u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC Mailgun",mailgun_domain:"\u03A4\u03BF\u03BC\u03AD\u03B1\u03C2",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES \u039C\u03C5\u03C3\u03C4\u03B9\u03BA\u03CC",ses_key:"\u039A\u03BB\u03B5\u03B9\u03B4\u03AF SES",password:"\u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03A0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5",username:"\u038C\u03BD\u03BF\u03BC\u03B1 \u03A4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5",mail_config:"\u0394\u03B9\u03B1\u03BC\u03CC\u03C1\u03C6\u03C9\u03C3\u03B7 Mail",from_name:"\u038C\u03BD\u03BF\u03BC\u03B1 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AD\u03B1",from_mail:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE\u03C2",encryption:"\u039A\u03C1\u03C5\u03C0\u03C4\u03BF\u03B3\u03C1\u03AC\u03C6\u03B7\u03C3\u03B7 Email",mail_config_desc:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B7 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03C9\u03BD \u03C4\u03BF\u03C5 \u03C0\u03C1\u03BF\u03B3\u03C1\u03AC\u03BC\u03BC\u03B1\u03C4\u03BF\u03C2 \u03BF\u03B4\u03AE\u03B3\u03B7\u03C3\u03B7\u03C2 \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B1\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03BC\u03B7\u03BD\u03C5\u03BC\u03AC\u03C4\u03C9\u03BD \u03B7\u03BB\u03B5\u03BA\u03C4\u03C1\u03BF\u03BD\u03B9\u03BA\u03BF\u03CD \u03C4\u03B1\u03C7\u03C5\u03B4\u03C1\u03BF\u03BC\u03B5\u03AF\u03BF\u03C5 \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03B5\u03C0\u03AF\u03C3\u03B7\u03C2 \u03BD\u03B1 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03BF\u03C5\u03C2 \u03C4\u03C1\u03AF\u03C4\u03C9\u03BD \u03C0\u03B1\u03C1\u03CC\u03C7\u03C9\u03BD \u03CC\u03C0\u03C9\u03C2 \u03C4\u03BF Sendgrid, \u03C4\u03BF SES \u03BA\u03BB\u03C0."},req:{system_req:"\u0391\u03C0\u03B1\u03B9\u03C4\u03AE\u03C3\u03B5\u03B9\u03C2 \u03A3\u03C5\u03C3\u03C4\u03AE\u03BC\u03B1\u03C4\u03BF\u03C2",php_req_version:"PHP (\u03B1\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AD\u03BA\u03B4\u03BF\u03C3\u03B7 {version})",check_req:"\u0388\u03BB\u03B5\u03B3\u03C7\u03BF\u03C2 \u0391\u03C0\u03B1\u03B9\u03C4\u03AE\u03C3\u03B5\u03C9\u03BD",system_req_desc:"\u039F \u03BA\u03C1\u03B1\u03C4\u03AE\u03C1\u03B1\u03C2 \u03AD\u03C7\u03B5\u03B9 \u03BC\u03B5\u03C1\u03B9\u03BA\u03AD\u03C2 \u03B1\u03C0\u03B1\u03B9\u03C4\u03AE\u03C3\u03B5\u03B9\u03C2 \u03B4\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE. \u0392\u03B5\u03B2\u03B1\u03B9\u03C9\u03B8\u03B5\u03AF\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03BF \u03B4\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE\u03C2 \u03C3\u03B1\u03C2 \u03AD\u03C7\u03B5\u03B9 \u03C4\u03B7\u03BD \u03B1\u03C0\u03B1\u03B9\u03C4\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03AD\u03BA\u03B4\u03BF\u03C3\u03B7 php \u03BA\u03B1\u03B9 \u03CC\u03BB\u03B5\u03C2 \u03C4\u03B9\u03C2 \u03B5\u03C0\u03B5\u03BA\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2 \u03C0\u03BF\u03C5 \u03B1\u03BD\u03B1\u03C6\u03AD\u03C1\u03BF\u03BD\u03C4\u03B1\u03B9 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9."},errors:{migrate_failed:"\u0391\u03C0\u03BF\u03C4\u03C5\u03C7\u03AF\u03B1 \u039C\u03B5\u03C4\u03B5\u03B3\u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7\u03C2",database_variables_save_error:"\u0394\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7\u03C2 \u03C0\u03B1\u03C1\u03B1\u03BC\u03AD\u03C4\u03C1\u03C9\u03BD \u03C3\u03C4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF .env. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03BB\u03AD\u03B3\u03BE\u03C4\u03B5 \u03C4\u03B1 \u03B4\u03B9\u03BA\u03B1\u03B9\u03CE\u03BC\u03B1\u03C4\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",mail_variables_save_error:"\u0391\u03C0\u03BF\u03C4\u03C5\u03C7\u03AF\u03B1 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7\u03C2 \u03C4\u03BF\u03C5 \u03B4\u03AF\u03C3\u03BA\u03BF\u03C5.",connection_failed:"\u03A3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7 \u03B2\u03AC\u03C3\u03B7\u03C2 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD",database_should_be_empty:"\u0397 \u03B2\u03AC\u03C3\u03B7 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BA\u03B5\u03BD\u03AE"},success:{mail_variables_save_successfully:"\u0397 \u03A1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03A4\u03BF\u03C5 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5 \u0395\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2",database_variables_save_successfully:"\u0397 \u03A1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03A4\u03BF\u03C5 \u0394\u03AF\u03C3\u03BA\u03BF\u03C5 \u0395\u03C0\u03B9\u03C4\u03C5\u03C7\u03AE\u03C2."}},kz={invalid_phone:"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5",invalid_url:"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 url (\u03C0.\u03C7. http://www.craterapp.com)",invalid_domain_url:"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 url (\u03C0.\u03C7. craterapp.com)",required:"\u03A4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C5\u03C0\u03BF\u03C7\u03C1\u03B5\u03C9\u03C4\u03B9\u03BA\u03CC",email_incorrect:"\u039B\u03AC\u03B8\u03BF\u03C2 \u03BC\u03BF\u03C1\u03C6\u03AE e-mail;",email_already_taken:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",email_does_not_exist:"\u03A4\u03BF \u03C3\u03C5\u03B3\u03BA\u03B5\u03BA\u03C1\u03B9\u03BC\u03AD\u03BD\u03BF email \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AE\u03B4\u03B7 \u03B1\u03C0\u03CC \u03AC\u03BB\u03BB\u03BF\u03BD \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7",item_unit_already_taken:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",payment_mode_already_taken:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",send_reset_link:"\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5 \u03B5\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2",not_yet:"\u038C\u03C7\u03B9 \u03B1\u03BA\u03CC\u03BC\u03B1? \u03A3\u03C4\u03B5\u03AF\u03BB\u03B5 \u03C4\u03BF \u03BE\u03B1\u03BD\u03AC",password_min_length:"\u039F \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 \u03C4\u03BF\u03C5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03BD 6 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",name_min_length:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 \u03C4\u03BF\u03C5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03BD {count} \u03B3\u03C1\u03AC\u03BC\u03BC\u03B1\u03C4\u03B1.",prefix_min_length:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 \u03C4\u03BF\u03C5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03BD {count} \u03B3\u03C1\u03AC\u03BC\u03BC\u03B1\u03C4\u03B1.",enter_valid_tax_rate:"\u0395\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03C6\u03BF\u03C1\u03BF\u03BB\u03BF\u03B3\u03B9\u03BA\u03CC \u03C3\u03C5\u03BD\u03C4\u03B5\u03BB\u03B5\u03C3\u03C4\u03AE",numbers_only:"\u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03AF \u039C\u03CC\u03BD\u03BF.",characters_only:"\u03A7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2 \u039C\u03CC\u03BD\u03BF.",password_incorrect:"\u039F\u03B9 \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03AF \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03AF\u03B4\u03B9\u03BF\u03B9",password_length:"\u039F \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 {count} \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B1\u03C2.",qty_must_greater_than_zero:"\u0397 \u03C0\u03BF\u03C3\u03CC\u03C4\u03B7\u03C4\u03B1 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03C4\u03BF\u03C5 \u03BC\u03B7\u03B4\u03B5\u03BD\u03CC\u03C2.",price_greater_than_zero:"\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03C4\u03BF\u03C5 \u03BC\u03B7\u03B4\u03B5\u03BD\u03CC\u03C2.",payment_greater_than_zero:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03C4\u03BF\u03C5 \u03BC\u03B7\u03B4\u03B5\u03BD\u03CC\u03C2.",payment_greater_than_due_amount:"\u0397 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03C0\u03BF\u03C5 \u03B5\u03B9\u03C3\u03AE\u03C7\u03B8\u03B7 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC \u03C4\u03BF \u03BF\u03C6\u03B5\u03B9\u03BB\u03CC\u03BC\u03B5\u03BD\u03BF \u03C0\u03BF\u03C3\u03CC \u03B1\u03C5\u03C4\u03BF\u03CD \u03C4\u03BF\u03C5 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5.",quantity_maxlength:"\u0397 \u03C0\u03BF\u03C3\u03CC\u03C4\u03B7\u03C4\u03B1 \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C5\u03C0\u03B5\u03C1\u03B2\u03B1\u03AF\u03BD\u03B5\u03B9 \u03C4\u03B1 20 \u03C8\u03B7\u03C6\u03AF\u03B1.",price_maxlength:"\u0397 \u03C4\u03B9\u03BC\u03AE \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 20 \u03C8\u03B7\u03C6\u03AF\u03B1.",price_minvalue:"\u0397 \u03C4\u03B9\u03BC\u03AE \u03B8\u03B1 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 0.",amount_maxlength:"\u03A4\u03BF \u03C0\u03BF\u03C3\u03CC \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C5\u03C0\u03B5\u03C1\u03B2\u03B1\u03AF\u03BD\u03B5\u03B9 \u03C4\u03B1 20 \u03C8\u03B7\u03C6\u03AF\u03B1.",amount_minvalue:"\u03A4\u03BF \u03C0\u03BF\u03C3\u03CC \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC 0.",discount_maxlength:"\u0397 \u03AD\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7 \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC \u03C4\u03B7 \u03BC\u03AD\u03B3\u03B9\u03C3\u03C4\u03B7 \u03AD\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",description_maxlength:"\u0397 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 255 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",subject_maxlength:"\u0397 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 100 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",message_maxlength:"\u03A4\u03BF \u03BC\u03AE\u03BD\u03C5\u03BC\u03B1 \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC 255 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",maximum_options_error:"\u039C\u03AD\u03B3\u03B9\u03C3\u03C4\u03BF {max} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B5\u03C2. \u0391\u03C6\u03B1\u03B9\u03C1\u03AD\u03C3\u03C4\u03B5 \u03C0\u03C1\u03CE\u03C4\u03B1 \u03BC\u03B9\u03B1 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03B5\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03AC\u03BB\u03BB\u03B7.",notes_maxlength:"\u0397 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 65,000 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",address_maxlength:"\u0397 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 255 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",ref_number_maxlength:"\u0397 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 255 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",prefix_maxlength:"\u0397 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03B7 \u03B1\u03C0\u03CC 5 \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2.",something_went_wrong:"\u039A\u03AC\u03C4\u03B9 \u03B4\u03B5\u03BD \u03C0\u03AE\u03B3\u03B5 \u03BA\u03B1\u03BB\u03AC",number_length_minvalue:"\u03A4\u03BF \u03BC\u03AE\u03BA\u03BF\u03C2 \u03C4\u03BF\u03C5 \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B5\u03B3\u03B1\u03BB\u03CD\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC 0",at_least_one_ability:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03BF\u03C5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03BD \u03AD\u03BD\u03B1 \u03B4\u03B9\u03BA\u03B1\u03AF\u03C9\u03BC\u03B1.",valid_driver_key:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF {driver}.",valid_exchange_rate:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B9\u03C3\u03BF\u03C4\u03B9\u03BC\u03AF\u03B1.",company_name_not_same:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B1\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03C3\u03C5\u03B3\u03BA\u03B5\u03BA\u03C1\u03B9\u03BC\u03AD\u03BD\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1."},wz={starter_plan:"\u0391\u03C5\u03C4\u03AE \u03B7 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03C3\u03C4\u03BF Starter plan \u03BA\u03B1\u03B9 \u03BC\u03B5\u03C4\u03AC!",invalid_provider_key:"\u0395\u03B9\u03C3\u03B1\u03B3\u03AC\u03B3\u03B5\u03C4\u03B5 \u0388\u03B3\u03BA\u03C5\u03C1\u03BF \u039A\u03BB\u03B5\u03B9\u03B4\u03AF Api \u03A0\u03AC\u03C1\u03BF\u03C7\u03BF\u03C5.",estimate_number_used:"\u039F \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C4\u03B7\u03C2 \u03B5\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7\u03C2 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",invoice_number_used:"\u039F \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",payment_attached:"\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BC\u03B9\u03B1 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03C0\u03BF\u03C5 \u03B5\u03C0\u03B9\u03C3\u03C5\u03BD\u03AC\u03C0\u03C4\u03B5\u03C4\u03B1\u03B9 \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC. \u0392\u03B5\u03B2\u03B1\u03B9\u03C9\u03B8\u03B5\u03AF\u03C4\u03B5 \u03CC\u03C4\u03B9 \u03AD\u03C7\u03B5\u03C4\u03B5 \u03B4\u03B9\u03B1\u03B3\u03C1\u03AC\u03C8\u03B5\u03B9 \u03C0\u03C1\u03CE\u03C4\u03B1 \u03C4\u03B9\u03C2 \u03C3\u03C5\u03BD\u03B7\u03BC\u03BC\u03AD\u03BD\u03B5\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BC\u03B5 \u03C4\u03B7\u03BD \u03B1\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7.",payment_number_used:"\u039F \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",name_already_taken:"\u03A4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03BB\u03B7\u03C6\u03B8\u03B5\u03AF.",receipt_does_not_exist:"\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03B1\u03C0\u03CC\u03B4\u03B5\u03B9\u03BE\u03B7.",customer_cannot_be_changed_after_payment_is_added:"\u039F \u03C0\u03B5\u03BB\u03AC\u03C4\u03B7\u03C2 \u03B4\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9 \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE \u03C0\u03C1\u03BF\u03C3\u03C4\u03AF\u03B8\u03B5\u03C4\u03B1\u03B9",invalid_credentials:"\u039C\u03B7 \u0388\u03B3\u03BA\u03C5\u03C1\u03B1 \u03A0\u03B9\u03C3\u03C4\u03BF\u03C0\u03BF\u03B9\u03B7\u03C4\u03B9\u03BA\u03AC.",not_allowed:"\u0394\u03B5\u03BD \u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03C4\u03B1\u03B9",login_invalid_credentials:"\u0391\u03C5\u03C4\u03AC \u03C4\u03B1 \u03B4\u03B9\u03B1\u03C0\u03B9\u03C3\u03C4\u03B5\u03C5\u03C4\u03AE\u03C1\u03B9\u03B1 \u03B4\u03B5\u03BD \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03BF\u03C5\u03BD \u03BC\u03B5 \u03C4\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03BC\u03B1\u03C2.",enter_valid_cron_format:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03BC\u03BF\u03C1\u03C6\u03AE cron",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"},zz="\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7",xz="\u0395\u03BA\u03C4\u03AF\u03BC\u03B7\u03C3\u03B7 \u0391\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD",Pz="\u0395\u03BA\u03C4\u03B9\u03BC\u03CE\u03BC\u03B5\u03BD\u03B7 \u03B7\u03BC. \u03B5\u03C0\u03B9\u03C3\u03BA\u03B5\u03C5\u03AE\u03C2",Sz="\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",jz="\u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",Az="\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C4\u03B9\u03BC\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5",Dz="\u0397\u03BC/\u03BD\u03AF\u03B1 \u03A4\u03B9\u03BC\u03BF\u03BB\u03CC\u03B3\u03B7\u03C3\u03B7\u03C2",Cz="Ech\xE9ance",Nz="\u03A3\u03B7\u03BC\u03B5\u03B9\u03CE\u03C3\u03B5\u03B9\u03C2",Ez="\u03A0\u03C1\u03BF\u03CA\u03CC\u03BD\u03C4\u03B1",Iz="\u03A0\u03BF\u03C3\u03CC\u03C4\u03B7\u03C4\u03B1",Tz="\u03A4\u03B9\u03BC\u03AE",Rz="\u0388\u03BA\u03C0\u03C4\u03C9\u03C3\u03B7",Mz="\u03A0\u03BF\u03C3\u03CC",Fz="\u03A5\u03C0\u03BF\u03C3\u03CD\u03BD\u03BF\u03BB\u03BF",$z="\u03A3\u03CD\u03BD\u03BF\u03BB\u03BF\xA0",Uz="\u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE",Vz="\u03A0\u03A1\u039F\u03A3\u0391\u03A1\u039C\u039F\u0393\u0397 \u03A0\u039B\u0397\u03A1\u03A9\u039C\u0397\u03A3",Oz="\u0397\u03BC/\u03BD\u03AF\u03B1 \u03B5\u03BE\u03CC\u03C6\u03BB\u03B7\u03C3\u03B7\u03C2",Lz="\u0391\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03A0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",qz="\u03A4\u03C1\u03CC\u03C0\u03BF\u03C2 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2",Bz="\u03A0\u03BF\u03C3\u03BF\u03C3\u03C4\u03CC \u039B\u03B7\u03C6\u03B8\u03AD\u03BD\u03C4\u03C9\u03BD",Kz="\u0395\u039A\u0398\u0395\u03A3\u0397 \u0395\u039E\u0391\u0393\u03A9\u0393\u03A9\u039D",Zz="\u03A3\u03A5\u039D\u039F\u039B\u039F \u0394\u0391\u03A0\u0391\u039D\u0397\u03A3",Wz="\u0395\u039A\u0398\u0395\u03A3\u0397 \u0395\u03A0\u0391\u03A6\u0397\u03A3 & LOSS",Hz="\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7 \u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03C9\u03BD",Yz="\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7 \u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03C9\u03BD",Gz="\u0391\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03A0\u03B5\u03C1\u03AF\u03BB\u03B7\u03C8\u03B7\u03C2 \u03A6\u03CC\u03C1\u03BF\u03C5",Jz=`\u0395\u0399\u03A3\u039F\u0394\u0397\u039C\u0391\u03A4\u0391 -`,Qz="NET PROFIT",Xz="\u0388\u03BA\u03B8\u03B5\u03C3\u03B7 \u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03C9\u03BD: \u0391\u03C0\u03CC \u03A4\u03BF\u03BD \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",ex="\u03A3\u03A5\u039D\u039F\u039B\u039F \u03A0\u03A9\u039B\u0397\u03A3\u0397\u03A3",tx="\u0388\u03BA\u03B8\u03B5\u03C3\u03B7 \u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03C9\u03BD: \u0391\u03C0\u03CC \u03A4\u03BF\u03BD \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",ax="\u03A6\u039F\u03A1\u039F\u039B\u039F\u0393\u0399\u039A\u0397 \u0395\u039A\u0398\u0395\u03A3\u0397",nx="\u03A3\u03A5\u039D\u039F\u039B\u039F \u03A6\u039F\u03A1\u039F\u03A5",ix="\u03A6\u03BF\u03C1\u03BF\u03BB\u03BF\u03B3\u03B9\u03BA\u03AE \u03BA\u03BB\u03AC\u03C3\u03B7",ox="\u0388\u03BE\u03BF\u03B4\u03B1",sx="\u03A7\u03C1\u03AD\u03C9\u03C3\u03B7 \u03C3\u03B5,",rx="\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C3\u03B5,",dx="\u039B\u03AE\u03C8\u03B7 \u03B1\u03C0\u03CC",lx="\u03A6\u03CC\u03C1\u03BF\u03C2";var cx={navigation:tz,general:az,dashboard:nz,tax_types:iz,global_search:oz,company_switcher:sz,dateRange:rz,customers:dz,items:lz,estimates:cz,invoices:_z,recurring_invoices:uz,payments:mz,expenses:pz,login:fz,modules:gz,users:vz,reports:yz,settings:hz,wizard:bz,validation:kz,errors:wz,pdf_estimate_label:zz,pdf_estimate_number:xz,pdf_estimate_date:Pz,pdf_estimate_expire_date:Sz,pdf_invoice_label:jz,pdf_invoice_number:Az,pdf_invoice_date:Dz,pdf_invoice_due_date:Cz,pdf_notes:Nz,pdf_items_label:Ez,pdf_quantity_label:Iz,pdf_price_label:Tz,pdf_discount_label:Rz,pdf_amount_label:Mz,pdf_subtotal:Fz,pdf_total:$z,pdf_payment_label:Uz,pdf_payment_receipt_label:Vz,pdf_payment_date:Oz,pdf_payment_number:Lz,pdf_payment_mode:qz,pdf_payment_amount_received_label:Bz,pdf_expense_report_label:Kz,pdf_total_expenses_label:Zz,pdf_profit_loss_label:Wz,pdf_sales_customers_label:Hz,pdf_sales_items_label:Yz,pdf_tax_summery_label:Gz,pdf_income_label:Jz,pdf_net_profit_label:Qz,pdf_customer_sales_report:Xz,pdf_total_sales_label:ex,pdf_item_sales_label:tx,pdf_tax_report_label:ax,pdf_total_tax_label:nx,pdf_tax_types_label:ix,pdf_expenses_label:ox,pdf_bill_to:sx,pdf_ship_to:rx,pdf_received_from:dx,pdf_tax_label:lx};const _x={dashboard:"Upravlja\u010Dka Plo\u010Da",customers:"Klijenti",items:"Stavke",invoices:"Fakture","recurring-invoices":"Recurring Invoices",expenses:"Rashodi",estimates:"Ponude",payments:"Uplate",reports:"Izvje\u0161taji",settings:"Postavke",logout:"Odjava",users:"Korisnici",modules:"Modules"},ux={add_company:"Dodaj tvrtku",view_pdf:"Pogledaj PDF",copy_pdf_url:"Kopiraj PDF link",download_pdf:"Preuzmi PDF",save:"Spremi",create:"Kreiraj",cancel:"Otka\u017Ei",update:"A\u017Euriraj",deselect:"Poni\u0161ti izbor",download:"Preuzmi",from_date:"Od Datuma",to_date:"Do Datuma",from:"Po\u0161iljatelj",to:"Primatelj",ok:"Ok",yes:"Yes",no:"No",sort_by:"Poslo\u017Ei Po",ascending:"Rastu\u0107e",descending:"Padaju\u0107e",subject:"Predmet",body:"Tijelo",message:"Poruka",send:"Po\u0161alji",preview:"Preview",go_back:"Natrag",back_to_login:"Natrag na prijavu?",home:"Po\u010Detna",filter:"Filter",delete:"Obri\u0161i",edit:"Izmjeni",view:"Pogledaj",add_new_item:"Dodaj novu stavku",clear_all:"Izbri\u0161i sve",showing:"Prikazujem",of:"od",actions:"Radnje",subtotal:"UKUPNO",discount:"POPUST",fixed:"Fiksno",percentage:"Postotak",tax:"POREZ",total_amount:"UKUPAN IZNOS",bill_to:"Dokument za",ship_to:"Isporu\u010Diti za",due:"Du\u017Ean",draft:"U izradi",sent:"Poslano",all:"Sve",select_all:"Izaberi sve",select_template:"Select Template",choose_file:"Klikni ovdje da izabere\u0161 fajl",choose_template:"Izaberi predlo\u017Eak",choose:"Izaberi",remove:"Ukloni",select_a_status:"Izaberi status",select_a_tax:"Izaberi porez",search:"Pretraga",are_you_sure:"Jeste li sigurni?",list_is_empty:"Popis 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 postavke Po\u0161te",send_mail_successfully:"Po\u0161ta uspje\u0161no poslana",setting_updated:"Postavke uspje\u0161no a\u017Eurirane",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:"Radnja nije uspjela",retry:"Poku\u0161aj ponovo",choose_note:"Odaberi napomenu",no_note_found:"Ne postoje spremljene napomene",insert_note:"Unesi bilje\u0161ku",copied_pdf_url_clipboard:"Link do PDF fajla kopiran!",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",mark_as_default:"Postavi kao zadano"},mx={select_year:"Odaberi godinu",cards:{due_amount:"Du\u017Ean iznos",customers:"Klijenti",invoices:"Ra\u010Duni",estimates:"Ponude",payments:"Payments"},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:"Dospijele fakture",due_on:"Datum dospije\u0107a",customer:"Klijent",amount_due:"Iznos dospije\u0107a",actions:"Akcije",view_all:"Pogledaj sve"},recent_estimate_card:{title:"Nedavne ponude",date:"Datum",customer:"Klijent",amount_due:"Iznos dospije\u0107a",actions:"Akcije",view_all:"Pogledaj sve"}},px={name:"Naziv",description:"Opis",percent:"Postotak",compound_tax:"Slo\u017Eeni porez"},fx={search:"Pretraga...",customers:"Klijenti",users:"Korisnici",no_results_found:"Nema rezultata"},gx={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},vx={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"},yx={title:"Klijenti",prefix:"Prefix",add_customer:"Dodaj Klijenta",contacts_list:"Popis 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 dospije\u0107a",email:"Email",address:"Adresa",phone:"Telefon",website:"Web stranica",overview:"Pregled",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",enable_portal:"Uklju\u010Di portal",country:"Dr\u017Eava",state:"\u017Dupanija",city:"Grad",zip_code:"Po\u0161tanski broj",added_on:"Datum dodavanja",action:"Radnja",password:"Lozinka",confirm_password:"Confirm Password",street_number:"Broj ulice",primary_currency:"Primarna valuta",description:"Opis",add_new_customer:"Dodaj Novog Klijenta",save_customer:"Spremi klijenta",update_customer:"A\u017Euriraj klijenta",customer:"Klijent | Klijenti",new_customer:"Novi klijent",edit_customer:"Izmjeni klijenta",basic_info:"Osnovne informacije",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:"Adresa za naplatu",shipping_address:"Adresa za dostavu",copy_billing_address:"Kopiraj iz adrese za naplatu",no_customers:"Jo\u0161 uvijek nema klijenata!",no_customers_found:"Klijenti nisu prona\u0111eni!",no_contact:"Nema kontakta",no_contact_name:"Nema imena kontakta",list_of_customers:"Sekcija sadr\u017Ei popis 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 za odabir",new_transaction:"Nova transakcija",no_matching_customers:"Nije prona\u0111eno!",phone_number:"Broj telefona",create_date:"Datum kreiranja",confirm_delete:"Ne\u0107ete mo\u0107i vratiti klijenta, sve njegove Fakture, Ponude i Uplate. | Ne\u0107ete mo\u0107i vratiti odabrane klijente, sve njihove Fakture, Ponude i Uplate.",created_message:"Klijent uspje\u0161no kreiran",updated_message:"Klijent uspje\u0161no a\u017Euriran",address_updated_message:"Address Information Updated succesfully",deleted_message:"Klijent uspje\u0161no obrisan | Klijenti uspje\u0161no obrisani",edit_currency_not_allowed:"Cannot change currency once transactions created."},hx={title:"Stavke",items_list:"Popis stavki",name:"Naziv",unit:"Jedinica",description:"Opis",added_on:"Datum dodavanja",price:"Cijena",date_of_creation:"Datum kreiranja",not_selected:"Nema odabrane stavke",action:"Radnje",add_item:"Dodaj Stavku",save_item:"Spremi Stavku",update_item:"A\u017Euriraj Stavku",item:"Stavka | Stavke",add_new_item:"Dodaj novu stavku",new_item:"Nova stavka",edit_item:"Izmjeni stavku",no_items:"Jo\u0161 uvijek nema stavki!",list_of_items:"Ova sekcija sadr\u017Ei popis stavki.",select_a_unit:"odaberi jedinicu",taxes:"Porezi",item_attached_message:"Nije dozvoljeno brisanje stavke koja se koristi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Stavku | Ne\u0107e\u0161 mo\u0107i vratiti ove Stavke",created_message:"Stavka uspje\u0161no kreirana",updated_message:"Stavka uspje\u0161no a\u017Eurirana",deleted_message:"Stavka uspje\u0161no obrisana | Stavke uspje\u0161no obrisane"},bx={title:"Ponude",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"Ponuda | Ponude",estimates_list:"Popis ponuda",days:"{days} Dan",months:"{months} Mjesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",customer:"KLIJENT",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPIJE\u0106A",partially_paid:"Djelomi\u010Dno Pla\u0107eno",total:"Ukupno za pla\u0107anje",discount:"Popust",sub_total:"Osnovica za obra\u010Dun PDV-a",estimate_number:"Broj ponude",ref_number:"Poziv na broj",contact:"Kontakt",add_item:"Dodaj stavku",date:"Datum",due_date:"Datum Dospije\u0107a",expiry_date:"Datum Isteka",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Radnja",notes:"Napomena",tax:"Porez",estimate_template:"Predlo\u017Eak",convert_to_invoice:"Pretvori u Fakturu",mark_as_sent:"Ozna\u010Di kao Poslano",send_estimate:"Po\u0161alji Ponudu",resend_estimate:"Ponovo po\u0161alji Ponudu",record_payment:"Unesi uplatu",add_estimate:"Dodaj Ponudu",save_estimate:"Spremi Ponudu",confirm_conversion:"Detalji ove Ponude \u0107e biti iskori\u0161teni za pravljenje Fakture.",conversion_message:"Faktura uspje\u0161no kreirana",confirm_send_estimate:"Ova Ponuda \u0107e biti poslana putem Email-a klijentu",confirm_mark_as_sent:"Ova Ponuda \u0107e biti ozna\u010Dena kao Poslana",confirm_mark_as_accepted:"Ova Ponuda \u0107e biti ozna\u010Dena kao Prihva\u0107ena",confirm_mark_as_rejected:"Ova Ponuda \u0107e biti ozna\u010Dena kao Odbijena",no_matching_estimates:"Ne postoji odgovaraju\u0107a ponuda!",mark_as_sent_successfully:"Ponuda uspje\u0161no ozna\u010Dena kao Poslana",send_estimate_successfully:"Ponuda uspje\u0161no poslana",errors:{required:"Obvezno polje!"},accepted:"Prihva\u0107eno",rejected:"Odbijeno",expired:"Expired",sent:"Poslano",draft:"U izradi",viewed:"Viewed",declined:"Odbijeno",new_estimate:"Nova Ponuda",add_new_estimate:"Dodaj novu Ponudu",update_Estimate:"A\u017Euriraj Ponudu",edit_estimate:"Izmjeni Ponudu",items:"stavke",Estimate:"Ponuda | Ponude",add_new_tax:"Dodaj novi Porez",no_estimates:"Jo\u0161 uvijek nema Ponuda!",list_of_estimates:"Ova sekcija sadr\u017Ei popis Ponuda.",mark_as_rejected:"Ozna\u010Di kao odbijeno",mark_as_accepted:"Ozna\u010Di kao prihva\u0107eno",marked_as_accepted_message:"Ponuda ozna\u010Dena kao prihva\u0107ena",marked_as_rejected_message:"Ponuda ozna\u010Dena kao odbijena",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Ponudu | Ne\u0107e\u0161 mo\u0107i vratiti ove Ponude",created_message:"Ponuda uspje\u0161no kreirana",updated_message:"Ponuda uspje\u0161no a\u017Eurirana",deleted_message:"Ponuda uspje\u0161no obrisana | Ponude uspje\u0161no obrisane",something_went_wrong:"ne\u0161to je krenulo naopako",item:{title:"Naziv stavke",description:"Opis",quantity:"Koli\u010Dina",price:"Cijena",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)"},mark_as_default_estimate_template_description:"Ako je omogu\u0107eno, izabrani predlo\u017Eak biti \u0107e automatski izabran za nove predra\u010Dune."},kx={title:"Fakture",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Popis Faktura",invoice_information:"Invoice Information",days:"{days} dan",months:"{months} Mjesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",viewed:"Pregledano",overdue:"Zaka\u0161njenje",completed:"Izvr\u0161eno",customer:"KLIJENT",paid_status:"STATUS UPLATE",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPIJE\u0106A",partially_paid:"Djelomi\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 Dospije\u0107a",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Radnja",notes:"Napomena",view:"Pogledaj",send_invoice:"Po\u0161alji Fakturu",resend_invoice:"Ponovo po\u0161alji Fakturu",invoice_template:"Predlo\u017Eak Fakture",conversion_message:"Invoice cloned successful",template:"Predlo\u017Eak",mark_as_sent:"Ozna\u010Di kao Poslano",confirm_send_invoice:"Ova Faktura \u0107e biti poslana putem Email-a klijentu",invoice_mark_as_sent:"Ova Faktura \u0107e biti ozna\u010Dena kao poslana",confirm_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",confirm_send:"Ova Faktura \u0107e biti poslana 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:"Izmjeni Fakturu",new_invoice:"Nova Faktura",save_invoice:"Spremi Fakturu",update_invoice:"A\u017Euriraj Fakturu",add_new_tax:"Dodaj novi Porez",no_invoices:"Jo\u0161 uvijek nema Faktura!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",list_of_invoices:"Ova sekcija sadr\u017Ei popis Faktura.",select_invoice:"Odaberi Fakturu",no_matching_invoices:"Ne postoje Fakture koje odgovaraju pretrazi!",mark_as_sent_successfully:"Faktura uspje\u0161no ozna\u010Dena kao Poslana",invoice_sent_successfully:"Faktura uspje\u0161no poslana",cloned_successfully:"Uspje\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:"Cijena",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)"},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:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Fakturu | Ne\u0107e\u0161 mo\u0107i vratiti ove Fakture",created_message:"Faktura uspje\u0161no kreirana",updated_message:"Faktura uspje\u0161no a\u017Eurirana",deleted_message:"Faktura uspje\u0161no obrisana | Fakture uspje\u0161no obrisane",marked_as_sent_message:"Faktura ozna\u010Dena kao uspje\u0161no poslana",something_went_wrong:"ne\u0161to je krenulo naopako",invalid_due_amount_message:"Ukupan iznos za pla\u0107anje na 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.",mark_as_default_invoice_template_description:"Ako je omogu\u0107eno, izabrani predlo\u017Eak biti \u0107e automatski izabran za nove ra\u010Dune."},wx={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."},zx={title:"Uplate",payments_list:"Popis uplata",record_payment:"Unesi Uplatu",customer:"Klijent",date:"Datum",amount:"Iznos",action:"Radnja",payment_number:"Broj uplate",payment_mode:"Na\u010Din pla\u0107anja",invoice:"Faktura",note:"Napomena",add_payment:"Dodaj Uplatu",new_payment:"Nova Uplata",edit_payment:"Izmjeni Uplatu",view_payment:"Pogledaj Uplatu",add_new_payment:"Dodaj Novu Uplatu",send_payment_receipt:"Po\u0161alji potvrdu o uplati",send_payment:"Po\u0161alji Uplatu",save_payment:"Spremi Uplatu",update_payment:"A\u017Euriraj Uplatu",payment:"Uplata | Uplate",no_payments:"Jo\u0161 uvijek nema uplata!",not_selected:"Nije odabrano",no_invoice:"Nema fakture",no_matching_payments:"Ne postoje uplate koje odgovaraju pretrazi!",list_of_payments:"Ova sekcija sadr\u017Ei popis uplata.",select_payment_mode:"Odaberi na\u010Din pla\u0107anja",confirm_mark_as_sent:"Ovo pla\u0107anje \u0107e biti ozna\u010Deno kao Poslano",confirm_send_payment:"Ovo pla\u0107anje \u0107e biti poslano putem Email-a klijentu",send_payment_successfully:"Pla\u0107anje uspje\u0161no poslano",something_went_wrong:"ne\u0161to je krenulo naopako",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Uplatu | Ne\u0107e\u0161 mo\u0107i vratiti ove Uplate",created_message:"Uplata uspje\u0161no kreirana",updated_message:"Uplata uspje\u0161no a\u017Eurirana",deleted_message:"Uplata uspje\u0161no obrisana | Uplate uspje\u0161no obrisane",invalid_amount_message:"Iznos Uplate je pogre\u0161an"},xx={title:"Rashodi",expenses_list:"Popis Rashoda",select_a_customer:"Odaberi klijenta",expense_title:"Naslov",customer:"Klijent",currency:"Currency",contact:"Kontakt",category:"Kategorija",from_date:"Datum od",to_date:"Datum do",expense_date:"Datum",description:"Opis",receipt:"Ra\u010Dun",amount:"Iznos",action:"Radnja",not_selected:"Nije odabrano",note:"Napomena",category_id:"ID kategorije",date:"Datum",add_expense:"Dodaj Rashod",add_new_expense:"Dodaj Novi Rashod",save_expense:"Spremi Rashod",update_expense:"A\u017Euriraj Rashod",download_receipt:"Preuzmi Ra\u010Dun",edit_expense:"Izmjeni Rashod",new_expense:"Novi Rashod",expense:"Rashod | Rashodi",no_expenses:"Jo\u0161 uvijek nema rashoda!",list_of_expenses:"Ova sekcija sadr\u017Ei popis rashoda.",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovaj Rashod | Ne\u0107e\u0161 mo\u0107i vratiti ove Rashode",created_message:"Rashod uspje\u0161no kreiran",updated_message:"Rashod uspje\u0161no a\u017Euriran",deleted_message:"Rashod uspje\u0161no obrisan | Rashodi uspje\u0161no obrisani",categories:{categories_list:"Popis Kategorija",title:"Naslov",name:"Naziv",description:"Opis",amount:"Iznos",actions:"Radnje",add_category:"Dodaj Kategoriju",new_category:"Nova Kategorija",category:"Kategorija | Kategorije",select_a_category:"Izaberi kategoriju"}},Px={email:"Email",password:"Lozinka",forgot_password:"Zaboravili ste lozinku?",or_signIn_with:"ili se prijavite sa",login:"Prijava",register:"Registracija",reset_password:"Resetiraj lozinku",password_reset_successfully:"Lozinka Uspje\u0161no Resetiranja",enter_email:"Unesi email",enter_password:"Unesi lozinku",retype_password:"Ponovo unesi lozinku"},Sx={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:"The minimum required version for this module does not match. Please upgrade your crater app to version: {version} to proceed.",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"},jx={title:"Korisnici",users_list:"Popis korisnika",name:"Ime i prezime",description:"Opis",added_on:"Datum dodavanja",date_of_creation:"Datum kreiranja",action:"Radnja",add_user:"Dodaj Korisnika",save_user:"Spremi Korisnika",update_user:"A\u017Euriraj Korisnika",user:"Korisnik | Korisnici",add_new_user:"Dodaj novog korisnika",new_user:"Novi Korisnik",edit_user:"Izmjeni Korisnika",no_users:"Jo\u0161 uvijek nema korisnika!",list_of_users:"Ova sekcija sadr\u017Ei popis korisnika.",email:"Email",phone:"Broj telefona",password:"Lozinka",user_attached_message:"Ne mo\u017Eete obrisati stavku koja je ve\u0107 u upotrebi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovog Korisnika | Ne\u0107e\u0161 mo\u0107i vratiti ove Korisnike",created_message:"Korisnik uspje\u0161no napravljen",updated_message:"Korisnik uspje\u0161no a\u017Euriran",deleted_message:"Korisnik uspje\u0161no obrisan | Korisnici uspje\u0161no obrisani",select_company_role:"Select Role for {company}",companies:"Companies"},Ax={title:"Izvje\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 Izvje\u0161taj",report:"Izvje\u0161taj | Izvje\u0161taji",profit_loss:{profit_loss:"Prihod & Rashod",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi raspon datuma"},sales:{sales:"Prodaja",date_range:"Izaberi raspon datuma",to_date:"Datum do",from_date:"Datum od",report_type:"Vrsta Izve\u0161taja"},taxes:{taxes:"Porezi",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi raspon datuma"},errors:{required:"Polje je obavezno"},invoices:{invoice:"Faktura",invoice_date:"Datum Fakture",due_date:"Datum Dospije\u0107a",amount:"Iznos",contact_name:"Ime Kontakta",status:"Status"},estimates:{estimate:"Ponuda",estimate_date:"Datum Ponude",due_date:"Datum Dospije\u0107a",estimate_number:"Broj Ponude",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 raspon datuma"}},Dx={menu_title:{account_settings:"Postavke Naloga",company_information:"Podaci o firmi",customization:"Prilago\u0111avanje",preferences:"Preference",notifications:"Obavje\u0161tenja",tax_types:"Vrste Poreza",expense_category:"Kategorije Rashoda",update_app:"A\u017Euriraj Aplikaciju",backup:"Backup",file_disk:"File Disk",custom_fields:"Prilago\u0111ena polja",payment_modes:"Na\u010Din pla\u0107anja",notes:"Napomene",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},title:"Postavke",setting:"Postavke | Postavke",general:"Op\u0107e",language:"Jezik",primary_currency:"Primarna Valuta",timezone:"Vremenska Zona",date_format:"Format Datuma",currencies:{title:"Valute",currency:"Valuta | Valute",currencies_list:"Popis Valuta",select_currency:"Odaberi Valutu",name:"Naziv",code:"Kod",symbol:"Simbol",precision:"Preciznost",thousand_separator:"Separator za tisu\u0107e",decimal_separator:"Separator za decimale",position:"Pozicija",position_of_symbol:"Pozicija simbola",right:"Desno",left:"Lijevo",action:"Radnja",add_currency:"Dodaj Valutu"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Lozinka",mailgun_secret:"Mailgun Lozinka",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Lozinka",ses_key:"SES Klju\u010D",password:"Mail Lozinka",username:"Mail Korisni\u010Dko Ime",mail_config:"Mail Postavke",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 Postavke",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, ponudama i drugim dokumentima koji se prave u ovoj aplikaciji.",phone:"Telefon",country:"Dr\u017Eava",state:"\u017Dupanija",city:"Grad",address:"Adresa",zip:"Po\u0161tanski broj",save:"Spremi",delete:"Delete",updated_message:"Podaci o firmi uspje\u0161no spremljeni",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:"Prilago\u0111ena polja",section_description:"Prilagodite va\u0161e Fakture, Ponude i Uplate sa svojim poljima. Koristite polja navedena ni\u017Ee na formatu adrese na stranici Postavke/Prilago\u0111avanje.",add_custom_field:"Dodaj prilago\u0111eno polje",edit_custom_field:"Izmjeni prilago\u0111eno polje",field_name:"Naziv polja",label:"Oznaka",type:"Vrsta",name:"Naziv",slug:"Slug",required:"Obavezno",placeholder:"Opis polja (Placeholder)",help_text:"Pomo\u0107ni tekst",default_value:"Zadana vrijednost",prefix:"Prefiks",starting_number:"Po\u010Detni broj",model:"Model",help_text_description:"Unesite opis koji \u0107e pomo\u0107i korisnicima razumjeti svrhu ovog prilago\u0111enog polja.",suffix:"Sufiks",yes:"Da",no:"Ne",order:"Redosljed",custom_field_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovo prilago\u0111eno polje",already_in_use:"Prilago\u0111eno polje je ve\u0107 u uporabi",deleted_message:"Prilago\u0111eno polje je uspje\u0161no obrisano",options:"opcije",add_option:"Dodaj opcije",add_another_option:"Dodaj jo\u0161 jednu opciju",sort_in_alphabetical_order:"Poredaj po Abecedi",add_options_in_bulk:"Grupno dodavanje opcija",use_predefined_options:"Koristi predefinirane opcije",select_custom_date:"Odaberi datum",select_relative_date:"Odaberi relativan datum",ticked_by_default:"Zadano odabrano",updated_message:"Prilago\u0111eno polje uspje\u0161no a\u017Eurirano",added_message:"Prilago\u0111eno polje uspje\u0161no dodato",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:"prilago\u0111avanje",updated_message:"Podaci o firmi su uspje\u0161no a\u017Eurirani",save:"Spremi",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:"Fakture",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:"Zadani sadr\u017Eaj email-a za Fakture",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",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:"Postavke fakture uspje\u0161no spremljene",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:"Ponude",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:"Zadani sadr\u017Eaj email-a za Ponude",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",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:"Uplate",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:"Zadani sadr\u017Eaj email-a za potvrdu o pla\u0107anju (ra\u010Dun)",company_address_format:"Format adrese firme",from_customer_address_format:"Format adrese klijenta",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:"Stavke",units:"Jedinice",add_item_unit:"Dodaj jedinicu stavke",edit_item_unit:"Izmjeni jedinicu stavke",unit_name:"Naziv jedinice",item_unit_added:"Jedinica stavke dodana",item_unit_updated:"Jedinica stavke a\u017Eurirana",item_unit_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu jedinicu stavke",already_in_use:"Jedinica stavke se ve\u0107 koristi",deleted_message:"Jedinica stavke uspje\u0161no obrisana"},notes:{title:"Napomene",description:"U\u0161tedite vrijeme prave\u0107i napomene i koriste\u0107i ih na fakturama, ponudama i uplatama.",notes:"Napomene",type:"Vrsta",add_note:"Dodaj Napomenu",add_new_note:"Dodaj novu Napomenu",name:"Naziv",edit_note:"Izmjeni Napomenu",note_added:"Napomena uspje\u0161no dodana",note_updated:"Napomena uspje\u0161no a\u017Eurirana",note_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Napomenu",already_in_use:"Napomena se ve\u0107 koristi",deleted_message:"Napomena uspje\u0161no obrisana"}},account_settings:{profile_picture:"Profilna slika",name:"Ime i prezime",email:"Email",password:"Lozinka",confirm_password:"Potvrdi lozinku",account_settings:"Postavke ra\u010Duna",save:"Spremi",section_description:"Mo\u017Eete a\u017Eurirati Va\u0161e ime i prezime, email i lozinku koriste\u0107i formu ni\u017Ee.",updated_message:"Postavke ra\u010Duna uspje\u0161no a\u017Eurirane"},user_profile:{name:"Ime i prezime",email:"Email",password:"Lozinka",confirm_password:"Potvrdi lozinku"},notification:{title:"Obavijesti",email:"\u0160alji obavijesti na",description:"Koje email obavijesti \u017Eelite dobiti kada se ne\u0161to promijeni?",invoice_viewed:"Faktura pogledana",invoice_viewed_desc:"Kada klijent pogleda fakturu koja je poslana putem ove aplikacije.",estimate_viewed:"Ponuda gledana",estimate_viewed_desc:"Kada klijent pogleda ponudu koja je poslana putem ove aplikacije.",save:"Spremi",email_save_message:"Email uspje\u0161no sa\u010Duvan",please_enter_email:"Molim Vas unesite E-mail"},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:"Vrste Poreza",add_tax:"Dodaj Porez",edit_tax:"Izmjeni Porez",description:"Mo\u017Eete dodati ili ukloniti porez. Ova aplikacija podr\u017Eava porez, kako na individualnim stavkama tako i na fakturi/ponudi.",add_new_tax:"Dodaj Novi Porez",tax_settings:"Postavke Poreza",tax_per_item:"Porez po Stavkama",tax_name:"Naziv Poreza",compound_tax:"Slo\u017Eeni Porez",percent:"Postotak",action:"Radnja",tax_setting_description:"Izaberite ovo ako \u017Eelite dodati porez na individualne stavke. Zadano pona\u0161anje je da je porez dodan direktno na fakturu.",created_message:"Vrsta poreza uspje\u0161no kreirana",updated_message:"Vrsta poreza uspje\u0161no a\u017Eurirana",deleted_message:"Vrsta poreza uspje\u0161no obrisana",confirm_delete:"Ne\u0107ete mo\u0107i vratiti Vrstu Poreza",already_in_use:"Porez se ve\u0107 koristi"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},expense_category:{title:"Kategorija Rashoda",action:"Radnja",description:"Kategorije su obavezne za dodavanje rashoda. Mo\u017Ee\u0161 dodati ili obrisati kategorije.",add_new_category:"Dodaj novu kategoriju",add_category:"Dodaj kategoriju",edit_category:"Izmjeni kategoriju",category_name:"Naziv kategorije",category_description:"Opis",created_message:"Kategorija rashoda je uspje\u0161no kreirana",deleted_message:"Kategorija rashoda je uspje\u0161no izbrisana",updated_message:"Kategorija rashoda je uspje\u0161no a\u017Eurirana",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu kategoriju rashoda",already_in_use:"Kategorija se ve\u0107 koristi"},preferences:{currency:"Valuta",default_language:"Jezik",time_zone:"Vremenska Zona",fiscal_year:"Financijska Godina",date_format:"Format datuma",discount_setting:"Postavke popusta",discount_per_item:"Popust po stavkama",discount_setting_description:"Izaberite ovo ako \u017Eelite dodati Popust na individualne stavke. Zadana vrijednost je da je Popust dodan direktno na fakturu.",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:"Spremi",preference:"Preferencija | Preferencije",general_settings:"Zadane postavke za sistem",updated_message:"Preferencije uspje\u0161no a\u017Eurirane",select_language:"Izaberi Jezik",select_time_zone:"Izaberi Vremensku Zonu",select_date_format:"Izaberi Format Datuma",select_financial_year:"Izaberi Financijsku Godinu",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:"A\u017Euriraj aplikaciju",description:"Lako mo\u017Ee\u0161 a\u017Eurirati Crater tako da napravi\u0161 provjeru novih verzija klikom na polje ispod",check_update:"Provjeri a\u017Euriranost",avail_update:"Dostupna je nova verzija",next_version:"Sljede\u0107a verzija",requirements:"Zahtjevi",update:"A\u017Euriraj sada",update_progress:"A\u017Euriranje je u toku...",progress_text:"Trajanje je svega par minuta. Nemojte osvije\u017Eavati ili zatvoriti stranicu dok a\u017Euriranje ne bude gotovo",update_success:"Aplikacija je a\u017Eurirana! Molim Vas pri\u010Dekajte da se stranica automatski osvje\u017Ei.",latest_message:"Nema nove verzije! A\u017Eurirana posljednja verzija.",current_version:"Trenutna verzija",download_zip_file:"Preuzmi ZIP paket",unzipping_package:"Raspakiranje 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",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:"Sigurnosna kopija | Sigurnosne kopije",description:"Backup je zip arhiv koji sadr\u017Ei sve fajlove iz foldera koje ste naveli, tako\u0111er sadr\u017Ei sigurnosnu kopiju baze podataka.",new_backup:"Dodaj novi Backup",create_backup:"Napravi Backup",select_backup_type:"Izaberi tip Backupa",backup_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovaj Backup",path:"putanja",new_disk:"Novi Disk",created_at:"datum kreiranja",size:"veli\u010Dina",dropbox:"dropbox",local:"lokalni",healthy:"zdrav",amount_of_backups:"broj backupa",newest_backups:"najnoviji backupi",used_storage:"kori\u0161teno skladi\u0161te",select_disk:"Izaberi Disk",action:"Radnja",deleted_message:"Backup uspje\u0161no obrisan",created_message:"Backup uspje\u0161no napravljen",invalid_disk_credentials:"Pogre\u0161ne akreditacije za odabrani disk"},disk:{title:"File Disk | File Disks",description:"Zadano pona\u0161anje je da Crater koristi lokalni disk za \u010Duvanje backupa, 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:"Vrsta",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:"Zadani Drajver",is_default:"DA LI JE ZADAN",set_default_disk:"Postavi zadani Disk",set_default_disk_confirm:"Ovaj disk \u0107e biti postavljen kao zadani i svi novi PDF fajlovi \u0107e biti sa\u010Duvani na ovom disku",success_set_default_disk:"Disk je uspje\u0161no postavljen kao zadani",save_pdf_to_disk:"Spremi PDF fajlove na Disk",disk_setting_description:" Uklju\u010Dite ovo ako \u017Eelite da spremite kopiju PDF fajla svake Fakture, Ponude i Uplate na va\u0161 zadani disk automatski. Uklju\u010Divanjem ove opcije smanjujete vrijeme u\u010Ditavanja pregleda PDF fajlova.",select_disk:"Izaberi Disk",disk_settings:"Disk Postavke",confirm_delete:"Ovo ne\u0107e utjecati na va\u0161e postoje\u0107e fajlove i foldere na navedenom disku, ali \u0107e se konfiguracija va\u0161eg diska izbrisati iz Cratera.",action:"Radnja",edit_file_disk:"Izmjeni File Disk",success_create:"Disk uspje\u0161no dodan",success_update:"Disk uspje\u0161no a\u017Euriran",error:"Dodavanje diska nije uspelo",deleted_message:"File Disk uspje\u0161no obrisan",disk_variables_save_successfully:"Disk uspje\u0161no pode\u0161en",disk_variables_save_error:"Postavljanje diska nije uspjelo.",invalid_disk_credentials:"Pogre\u0161ne akreditacije za navedeni 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."}},Cx={account_info:"Informacije o ra\u010Dunu",account_info_desc:"Detalji u nastavku koriste se za kreiranje glavnog administratorskog ra\u010Duna. Mogu\u0107e ih je izmjeniti u bilo kada nakon prijavljivanja.",name:"Naziv",email:"E-mail",password:"Lozinka",confirm_password:"Potvrdi lozinku",save_cont:"Spremi & Nastavi",company_info:"Informacije o firmi",company_info_desc:"Ove informacije \u0107e biti prikazane na fakturama. Mogu\u0107e ih je izmjeniti kasnije u postavkama.",company_name:"Naziv firme",company_logo:"Logo firme",logo_preview:"Pregled logotipa",preferences:"Preference",preferences_desc:"Zadane Preference za sistem",currency_set_alert:"The company's currency cannot be changed later.",country:"Dr\u017Eava",state:"\u017Dupanija",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:"Financijska godina",date_format:"Format datuma",from_address:"Adresa po\u0161iljaoca",username:"Korisni\u010Dko ime",next:"Sljede\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:"Lozinka 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 akreditacije prate\u0107i obrazac u nastavku."},permissions:{permissions:"Dozvole",permission_confirm_title:"Da li ste sigurni da \u017Eelite nastaviti?",permission_confirm_desc:"Provjera dozvola za foldere nije uspjela",permission_desc:"U nastavku se nalazi popis dozvola za foldere koji su nu\u017Eni kako bi alikacija radila. Ukoliko provjera dozvola ne uspije, a\u017Euriraj svoj popis dozvola za te foldere."},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 drajver",secret:"Lozinka",mailgun_secret:"Mailgun Lozinka",mailgun_domain:"Domen",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Lozinka",ses_key:"SES Klju\u010D",password:"Lozinka za e-mail",username:"Koristni\u010Dko ime za e-mail",mail_config:"E-mail konfiguracija",from_name:"Naziv po\u0161iljatelja",from_mail:"E-mail adresa po\u0161iljatelja",encryption:"E-mail enkripcija",mail_config_desc:"Ispod se nalazi forma za postavljanje E-mail drajvera za slanje po\u0161te iz aplikacije. Tako\u0111er mo\u017Eete podesiti provajdere tre\u0107e strane kao Sendgrid, SES itd."},req:{system_req:"Sistemski zahtjevi",php_req_version:"Zahtjeva PHP verziju {version} ",check_req:"Provjeri zahtjeve",system_req_desc:"Crater ima nekoliko zahtjeva za server. Provjeri da li tvoj server ima potrebnu verziju PHP-a i sva navedena pro\u0161irenja navedena u nastavku"},errors:{migrate_failed:"Neuspje\u0161no migriranje",database_variables_save_error:"Konfiguraciju nije moguc\u0301e zapisati u .env datoteku. Provjeri dozvole za datoteku",mail_variables_save_error:"E-mail konfiguracija neuspje\u0161na",connection_failed:"Neuspje\u0161no povezivanje s bazom podataka",database_should_be_empty:"Baza podataka treba biti prazna"},success:{mail_variables_save_successfully:"E-mail je uspje\u0161no konfiguriran",database_variables_save_successfully:"Baza podataka je uspje\u0161no konfigurirana"}},Nx={invalid_phone:"Pogre\u0161an Broj Telefona",invalid_url:"Neva\u017Ee\u0107i URL (primer: http://www.craterapp.com)",invalid_domain_url:"Pogre\u0161an URL (primjer: 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 reset",not_yet:"Jo\u0161 uvijek ni\u0161ta? Po\u0161alji ponovno",password_min_length:"Lozinka mora imati {count} znakova",name_min_length:"Naziv mora imati najmanje {count} slova",prefix_min_length:"Prefix must have at least {count} letters.",enter_valid_tax_rate:"Unesite odgovaraju\u0107u poreznu stopu",numbers_only:"Mogu se unositi samo brojevi",characters_only:"Mogu se unositi samo znakovi",password_incorrect:"Lozinka mora biti identi\u010Dna",password_length:"Lozinka mora imati {count} znakova",qty_must_greater_than_zero:"Koli\u010Dina mora biti ve\u0107a od 0.",price_greater_than_zero:"Cijena mora biti ve\u0107a od 0",payment_greater_than_zero:"Uplata mora biti ve\u0107a od 0",payment_greater_than_due_amount:"Unesena uplata je ve\u0107a od dospije\u0107a iznosa ove fakture",quantity_maxlength:"Koli\u010Dina ne mo\u017Ee imati vi\u0161e od 20 znakova",price_maxlength:"Cijena ne mo\u017Ee imati vi\u0161e od 20 znakova",price_minvalue:"Cijena mora biti ve\u0107a od 0",amount_maxlength:"Iznos ne mo\u017Ee da ima vi\u0161e od 20 znakova",amount_minvalue:"Iznos mora biti ve\u0107i od 0",discount_maxlength:"Discount should not be greater than max discount",description_maxlength:"Opis ne mo\u017Ee imati vi\u0161e od 65,000 znakova",subject_maxlength:"Predmet ne mo\u017Ee imati vi\u0161e od 100 znakova",message_maxlength:"Poruka ne mo\u017Ee imati vi\u0161e od 255 znakova",maximum_options_error:"Maksimalan broj opcija je izabran. Prvo uklonite izabranu opciju da bi izabrali drugu",notes_maxlength:"Napomena ne mo\u017Ee imati vi\u0161e od 65,000 znakova",address_maxlength:"Adresa ne mo\u017Ee imati vi\u0161e od 255 znakova",ref_number_maxlength:"Poziv na broj ne mo\u017Ee imati vi\u0161e od 225 znakova",prefix_maxlength:"Prefiks ne mo\u017Ee imati vi\u0161e od 5 znakova",something_went_wrong:"ne\u0161to je krenulo naopako",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."},Ex={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"},Ix="Ponuda",Tx="Broj Ponude",Rx="Datum Ponude",Mx="Datum isteka Ponude",Fx="Faktura",$x="Broj Fakture",Ux="Datum Fakture",Vx="Datum dospije\u0107a Fakture",Ox="Napomena",Lx="Stavke",qx="Koli\u010Dina",Bx="Cijena",Kx="Popust",Zx="Iznos",Wx="Osnovica za obra\u010Dun PDV-a",Hx="Ukupan iznos",Yx="Pla\u0107anje",Gx="POTVRDA O UPLATI",Jx="Datum Uplate",Qx="Broj Uplate",Xx="Na\u010Din Pla\u0107anja",eP="Iznos Uplate",tP="IZVJE\u0160TAJ O RASHODIMA",aP="RASHODI UKUPNO",nP="IZVEJ\u0160TAJ O PRIHODIMA I RASHODIMA",iP="Izvje\u0161taj Prodaje po Strankama",oP="Izvje\u0161taj Prodaje po Stavkama",sP="Izvje\u0161taj Poreza",rP="PRIHOD",dP="NETO PROFIT",lP="Izvje\u0161taj o Prodaji: Po Klijentu",cP="PRODAJA UKUPNO",_P="Izvje\u0161taj o Prodaji: Po Stavci",uP="IZVE\u0160TAJ O POREZIMA",mP="UKUPNO POREZ",pP="Vrsta Poreza",fP="Rashodi",gP="Ra\u010Dun za,",vP="Isporu\u010Diti za,",yP="Poslat od strane:",hP="Porez";var bP={navigation:_x,general:ux,dashboard:mx,tax_types:px,global_search:fx,company_switcher:gx,dateRange:vx,customers:yx,items:hx,estimates:bx,invoices:kx,recurring_invoices:wx,payments:zx,expenses:xx,login:Px,modules:Sx,users:jx,reports:Ax,settings:Dx,wizard:Cx,validation:Nx,errors:Ex,pdf_estimate_label:Ix,pdf_estimate_number:Tx,pdf_estimate_date:Rx,pdf_estimate_expire_date:Mx,pdf_invoice_label:Fx,pdf_invoice_number:$x,pdf_invoice_date:Ux,pdf_invoice_due_date:Vx,pdf_notes:Ox,pdf_items_label:Lx,pdf_quantity_label:qx,pdf_price_label:Bx,pdf_discount_label:Kx,pdf_amount_label:Zx,pdf_subtotal:Wx,pdf_total:Hx,pdf_payment_label:Yx,pdf_payment_receipt_label:Gx,pdf_payment_date:Jx,pdf_payment_number:Qx,pdf_payment_mode:Xx,pdf_payment_amount_received_label:eP,pdf_expense_report_label:tP,pdf_total_expenses_label:aP,pdf_profit_loss_label:nP,pdf_sales_customers_label:iP,pdf_sales_items_label:oP,pdf_tax_summery_label:sP,pdf_income_label:rP,pdf_net_profit_label:dP,pdf_customer_sales_report:lP,pdf_total_sales_label:cP,pdf_item_sales_label:_P,pdf_tax_report_label:uP,pdf_total_tax_label:mP,pdf_tax_types_label:pP,pdf_expenses_label:fP,pdf_bill_to:gP,pdf_ship_to:vP,pdf_received_from:yP,pdf_tax_label:hP},kP={cs:Xi,en:cs,fr:br,es:Cd,ar:Vl,de:Gc,ja:su,pt_BR:Em,it:Lp,sr:Xf,nl:lv,ko:py,lv:xh,sv:Tb,sk:Bk,vi:ez,pl:gm,el:cx,hr:bP};const wP={props:{bgColor:{type:String,default:null},color:{type:String,default:null}},setup(n){return(r,o)=>(l(),_("span",{class:"px-2 py-1 text-sm font-normal text-center text-green-800 uppercase bg-success",style:De({backgroundColor:n.bgColor,color:n.color})},[F(r.$slots,"default")],4))}};var zP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:wP});const xP={name:"BaseBreadcrumb"},PP={class:"flex flex-wrap py-4 text-gray-900 rounded list-reset"};function SP(n,r,o,a,t,i){return l(),_("nav",null,[c("ol",PP,[F(n.$slots,"default")])])}var jP=ee(xP,[["render",SP]]),AP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:jP});const DP={class:"pr-2 text-sm"},CP={key:0,class:"px-1"},NP={props:{title:{type:String,default:String},to:{type:String,default:"#"},active:{type:Boolean,default:!1,required:!1}},setup(n){return(r,o)=>{const a=C("router-link");return l(),_("li",DP,[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:n.to},{default:f(()=>[B(w(n.title),1)]),_:1},8,["to"]),n.active?P("",!0):(l(),_("span",CP,"/"))])}}};var EP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NP});const IP={},TP={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},RP=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),MP=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),FP=[RP,MP];function $P(n,r){return l(),_("svg",TP,FP)}var UP=ee(IP,[["render",$P]]);const VP={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(n){return["xs","sm","md","lg","xl"].indexOf(n)!==-1}},variant:{type:String,default:"primary",validator:function(n){return["primary","secondary","primary-outline","white","danger","gray"].indexOf(n)!==-1}}},setup(n){const r=n,o=A(()=>({"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=A(()=>{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=A(()=>({"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"})),i=A(()=>r.rounded?"!rounded-full":""),e=A(()=>({"-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"})),s=A(()=>({"text-white":r.variant==="primary","text-primary-700":r.variant==="secondary","text-gray-700":r.variant==="white","text-gray-400":r.variant==="gray"})),m=A(()=>({"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 z=C("BaseContentPlaceholdersBox"),g=C("BaseContentPlaceholders"),h=C("BaseCustomTag");return n.contentLoading?(l(),T(g,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:f(()=>[u(z,{rounded:!0,style:De([{width:"96px"},`height: ${d(a)}px;`])},null,8,["style"])]),_:1})):(l(),T(h,{key:1,tag:n.tag,disabled:n.disabled,class:N([n.defaultClass,d(o),d(t),d(i)])},{default:f(()=>[n.loading?(l(),T(UP,{key:0,class:N([d(e),d(s)])},null,8,["class"])):F(p.$slots,"left",{key:1,class:N(d(e))}),F(p.$slots,"default"),F(p.$slots,"right",{class:N([d(m),d(s)])})]),_:3},8,["tag","disabled","class"]))}}};var OP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:VP});const LP={class:"bg-white rounded-lg shadow"},qP={key:0,class:"px-5 py-4 text-black border-b border-gray-100 border-solid"},BP={key:1,class:"px-5 py-4 border-t border-gray-100 border-solid sm:px-6"},KP={props:{containerClass:{type:String,default:"px-4 py-5 sm:px-8 sm:py-8"}},setup(n){const r=pe(),o=A(()=>!!r.header),a=A(()=>!!r.footer);return(t,i)=>(l(),_("div",LP,[d(o)?(l(),_("div",qP,[F(t.$slots,"header")])):P("",!0),c("div",{class:N(n.containerClass)},[F(t.$slots,"default")],2),d(a)?(l(),_("div",BP,[F(t.$slots,"footer")])):P("",!0)]))}};var ZP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:KP});const WP={class:"relative flex items-start"},HP={class:"flex items-center h-5"},YP=["id","disabled"],GP={class:"ml-3 text-sm"},JP=["for"],QP={key:1,class:"text-gray-500"},XP={props:{label:{type:String,default:""},description:{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(n,{emit:r}){const o=n;o.setInitialValue&&r("update:modelValue",o.modelValue);const a=A({get:()=>o.modelValue,set:i=>{r("update:modelValue",i),r("change",i)}}),t=A(()=>o.disabled?"text-gray-300 cursor-not-allowed":"text-primary-600 focus:ring-primary-500");return(i,e)=>(l(),_("div",WP,[c("div",HP,[xe(c("input",le({id:n.id,"onUpdate:modelValue":e[0]||(e[0]=s=>J(a)?a.value=s:null)},i.$attrs,{disabled:n.disabled,type:"checkbox",class:[n.checkboxClass,d(t)]}),null,16,YP),[[Vt,d(a)]])]),c("div",GP,[n.label?(l(),_("label",{key:0,for:n.id,class:N(`font-medium ${n.disabled?"text-gray-400 cursor-not-allowed":"text-gray-600"} cursor-pointer `)},w(n.label),11,JP)):P("",!0),n.description?(l(),_("p",QP,w(n.description),1)):P("",!0)])]))}};var eS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:XP});const tS={props:{rounded:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},animated:{type:Boolean,default:!0}},setup(n){const r=n,o=A(()=>({"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:N(d(o))},[F(a.$slots,"default")],2))}};var aS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tS});const nS={props:{circle:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(n){const r=n,o=A(()=>({"base-content-circle":r.circle,"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",{class:N(["base-content-placeholders-box",d(o)])},null,2))}};var iS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nS});const oS={class:"base-content-placeholders-heading"},sS={key:0,class:"base-content-placeholders-heading__box"},rS=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),dS={props:{box:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(n){return(r,o)=>(l(),_("div",oS,[n.box?(l(),_("div",sS)):P("",!0),rS]))}};var lS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:dS});const cS={class:"base-content-placeholders-text"},_S={props:{lines:{type:Number,default:4},rounded:{type:Boolean,default:!1}},setup(n){const r=n,o=A(()=>({"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",cS,[(l(!0),_(X,null,ae(n.lines,i=>(l(),_("div",{key:i,class:N([d(o),"w-full h-full base-content-placeholders-text__line"])},null,2))),128))]))}};var uS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_S}),zt={id:null,label:null,type:null,name:null,default_answer:null,is_required:!1,placeholder:null,model_type:null,order:1,options:[]},mS=n=>Xe({locale:"en",fallbackLocale:"en",messages:n});const{global:re}=mS;var Ze={isImageFile(n){return["image/gif","image/jpeg","image/png"].includes(n)},addClass(n,r){n.classList?n.classList.add(r):n.className+=" "+r},hasClass(n,r){return n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className)},formatMoney(n,r=0){r||(r={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),n=n/100;let{precision:o,decimal_separator:a,thousand_separator:t,symbol:i,swap_currency_symbol:e}=r;try{o=Math.abs(o),o=isNaN(o)?2:o;const s=n<0?"-":"";let m=parseInt(n=Math.abs(Number(n)||0).toFixed(o)).toString(),p=m.length>3?m.length%3:0,k=`${i}`,z=p?m.substr(0,p)+t:"",g=m.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+t),h=o?a+Math.abs(n-m).toFixed(o).slice(2):"",D=s+z+g+h;return e?D+" "+k:k+" "+D}catch(s){console.error(s)}},mergeSettings(n,r){Object.keys(r).forEach(function(o){o in n&&(n[o]=r[o])})},checkValidUrl(n){return n.includes("http://localhost")||n.includes("http://127.0.0.1")||n.includes("https://localhost")||n.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(n)},checkValidDomainUrl(n){return n.includes("localhost")||n.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(n)},fallbackCopyTextToClipboard(n){var r=document.createElement("textarea");r.value=n,r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{var o=document.execCommand("copy"),a=o?"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(n){if(!navigator.clipboard){this.fallbackCopyTextToClipboard(n);return}navigator.clipboard.writeText(n).then(function(){return!0},function(r){return!1})},arrayDifference(n,r){return n==null?void 0:n.filter(o=>(r==null?void 0:r.indexOf(o))<0)},getBadgeStatusColor(n){switch(n){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"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(n){switch(n){case"DRAFT":return re.t("general.draft");case"PAID":return re.t("invoices.paid");case"UNPAID":return re.t("invoices.unpaid");case"SENT":return re.t("general.sent");case"REJECTED":return re.t("estimates.rejected");case"ACCEPTED":return re.t("estimates.accepted");case"VIEWED":return re.t("invoices.viewed");case"EXPIRED":return re.t("estimates.expired");case"PARTIALLY PAID":return re.t("estimates.partially_paid");case"COMPLETED":return re.t("invoices.completed");case"DUE":return re.t("general.due");default:return n}},toFormData(n){const r=new FormData;return Object.keys(n).forEach(o=>{Ot.exports.isArray(n[o])?r.append(o,JSON.stringify(n[o])):(n[o]===null&&(n[o]=""),r.append(o,n[o]))}),r}};const pS=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"custom-field",state:()=>({customFields:[],isRequestOngoing:!1,currentCustomField:M({},zt)}),getters:{isEdit(){return!!this.currentCustomField.id}},actions:{resetCustomFields(){this.customFields=[]},resetCurrentCustomField(){this.currentCustomField=M({},zt)},fetchCustomFields(a){return new Promise((t,i)=>{v.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchNoteCustomFields(a){return new Promise((t,i)=>{if(this.isRequestOngoing)return t({requestOnGoing:!0}),!0;this.isRequestOngoing=!0,v.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,this.isRequestOngoing=!1,t(e)}).catch(e=>{this.isRequestOngoing=!1,y(e),i(e)})})},fetchCustomField(a){return new Promise((t,i)=>{v.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(s=>s={name:s})),t(e)}).catch(e=>{y(e),i(e)})})},addCustomField(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/custom-fields",a).then(s=>{let m=M({},s.data.data);m.options&&(m.options=m.options.map(p=>({name:p||""}))),this.customFields.push(m),t.showNotification({type:"success",message:o.t("settings.custom_fields.added_message")}),i(s)}).catch(s=>{y(s),e(s)})})},updateCustomField(a){const t=$();return new Promise((i,e)=>{v.put(`/api/v1/custom-fields/${a.id}`,a).then(s=>{let m=M({},s.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:o.t("settings.custom_fields.updated_message")}),i(s)}).catch(s=>{y(s),e(s)})})},deleteCustomFields(a){const t=$();return new Promise((i,e)=>{v.delete(`/api/v1/custom-fields/${a}`).then(s=>{let m=this.customFields.findIndex(p=>p.id===a);this.customFields.splice(m,1),s.data.error?t.showNotification({type:"error",message:o.t("settings.custom_fields.already_in_use")}):t.showNotification({type:"success",message:o.t("settings.custom_fields.deleted_message")}),i(s)}).catch(s=>{y(s),e(s)})})}}})()},fS={key:1,class:"relative"},gS={class:"absolute bottom-0 right-0 z-10"},vS={class:"flex p-2"},yS={class:"mb-1 ml-2 text-xs font-semibold text-gray-500 uppercase"},hS=["onClick"],bS={class:"flex pl-1"},kS={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:String,default:""},fields:{type:Array,default:null}},emits:["update:modelValue"],setup(n,{emit:r}){const o=n,a=pS();let t=K([]),i=K([]),e=K([]),s=K([]),m=K([]);fe(()=>o.fields,g=>{o.fields&&o.fields.length>0&&z()}),fe(()=>a.customFields,g=>{i.value=g?g.filter(h=>h.model_type==="Invoice"):[],m.value=g?g.filter(h=>h.model_type==="Customer"):[],s.value=g?g.filter(h=>h.model_type==="Payment"):[],e.value=g.filter(h=>h.model_type==="Estimate"),z()}),Pe(()=>{k()});const p=A({get:()=>o.modelValue,set:g=>{r("update:modelValue",g)}});async function k(){await a.fetchCustomFields()}async function z(){t.value=[],o.fields&&o.fields.length>0&&(o.fields.find(g=>g=="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"}]}),o.fields.find(g=>g=="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"}]}),o.fields.find(g=>g=="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(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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"},...i.value.map(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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"},...e.value.map(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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"},...s.value.map(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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 z(),(g,h)=>{const D=C("BaseContentPlaceholdersBox"),R=C("BaseContentPlaceholders"),E=C("BaseIcon"),x=C("BaseButton"),U=C("BaseDropdown"),L=C("BaseEditor");return n.contentLoading?(l(),T(R,{key:0},{default:f(()=>[u(D,{rounded:!0,class:"w-full",style:{height:"200px"}})]),_:1})):(l(),_("div",fS,[c("div",gS,[u(U,{"close-on-select":!0,"max-height":"220",position:"top-end","width-class":"w-92",class:"mb-2"},{activator:f(()=>[u(x,{type:"button",variant:"primary-outline",class:"mr-4"},{left:f(Y=>[u(E,{name:"PlusSmIcon",class:N(Y.class)},null,8,["class"])]),default:f(()=>[B(w(g.$t("settings.customization.insert_fields"))+" ",1)]),_:1})]),default:f(()=>[c("div",vS,[(l(!0),_(X,null,ae(d(t),(Y,me)=>(l(),_("ul",{key:me,class:"list-none"},[c("li",yS,w(Y.label),1),(l(!0),_(X,null,ae(Y.fields,(Z,I)=>(l(),_("li",{key:I,class:"w-48 text-sm font-normal cursor-pointer hover:bg-gray-100 rounded ml-1 py-0.5",onClick:b=>p.value+=`{${Z.value}}`},[c("div",bS,[u(E,{name:"ChevronDoubleRightIcon",class:"h-3 mt-1 mr-2 text-gray-400"}),B(" "+w(Z.label),1)])],8,hS))),128))]))),128))])]),_:1})]),u(L,{modelValue:d(p),"onUpdate:modelValue":h[0]||(h[0]=Y=>J(p)?p.value=Y:null)},null,8,["modelValue"])]))}}};var wS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:kS});const zS={props:{tag:{type:String,default:"button"}},setup(n,{slots:r,attrs:o,emit:a}){return()=>Lt(`${n.tag}`,o,r)}};var xS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zS});const PS={key:0,class:"text-sm font-bold leading-5 text-black non-italic space-y-1"},SS={key:0},jS={key:1},AS={key:2},DS={key:3},CS={key:4},NS={key:5},ES={props:{address:{type:Object,required:!0}},setup(n){return(r,o)=>{var a,t,i,e,s,m,p,k,z,g,h,D,R,E;return n.address?(l(),_("div",PS,[((a=n.address)==null?void 0:a.address_street_1)?(l(),_("p",SS,w((t=n.address)==null?void 0:t.address_street_1)+",",1)):P("",!0),((i=n.address)==null?void 0:i.address_street_2)?(l(),_("p",jS,w((e=n.address)==null?void 0:e.address_street_2)+",",1)):P("",!0),((s=n.address)==null?void 0:s.city)?(l(),_("p",AS,w((m=n.address)==null?void 0:m.city)+",",1)):P("",!0),((p=n.address)==null?void 0:p.state)?(l(),_("p",DS,w((k=n.address)==null?void 0:k.state)+",",1)):P("",!0),((g=(z=n.address)==null?void 0:z.country)==null?void 0:g.name)?(l(),_("p",CS,w((D=(h=n.address)==null?void 0:h.country)==null?void 0:D.name)+",",1)):P("",!0),((R=n.address)==null?void 0:R.zip)?(l(),_("p",NS,w((E=n.address)==null?void 0:E.zip)+".",1)):P("",!0)])):P("",!0)}}};var IS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ES}),Me={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null};function xt(){return{name:"",contact_name:"",email:"",phone:null,password:"",confirm_password:"",currency_id:null,website:null,billing:M({},Me),shipping:M({},Me),customFields:[],fields:[],enable_portal:!1}}const ke=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"customer",state:()=>({customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{},isFetchingInitialSettings:!1,isFetchingViewData:!1,currentCustomer:M({},xt()),editCustomer:null}),getters:{isEdit:a=>!!a.currentCustomer.id},actions:{resetCurrentCustomer(){this.currentCustomer=M({},xt())},copyAddress(){this.currentCustomer.shipping=W(M({},this.currentCustomer.billing),{type:"shipping"})},fetchCustomerInitialSettings(a){const t=ge(),i=Te(),e=_e();this.isFetchingInitialSettings=!0;let s=[];a?s=[this.fetchCustomer(t.params.id)]:this.currentCustomer.currency_id=e.selectedCompanyCurrency.id,Promise.all([i.fetchCurrencies(),i.fetchCountries(),...s]).then(async([m,p,k])=>{this.isFetchingInitialSettings=!1}).catch(m=>{y(m)})},fetchCustomers(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},fetchViewCustomer(a){return new Promise((t,i)=>{this.isFetchingViewData=!0,v.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,y(e),i(e)})})},fetchCustomer(a){return new Promise((t,i)=>{v.get(`/api/v1/customers/${a}`).then(e=>{Object.assign(this.currentCustomer,e.data.data),this.setAddressStub(e.data.data),t(e)}).catch(e=>{y(e),i(e)})})},addCustomer(a){return new Promise((t,i)=>{v.post("/api/v1/customers",a).then(e=>{this.customers.push(e.data.data),$().showNotification({type:"success",message:o.t("customers.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},updateCustomer(a){return new Promise((t,i)=>{v.put(`/api/v1/customers/${a.id}`,a).then(e=>{if(e.data){let s=this.customers.findIndex(p=>p.id===e.data.data.id);this.customers[s]=a,$().showNotification({type:"success",message:o.t("customers.updated_message")})}t(e)}).catch(e=>{y(e),i(e)})})},deleteCustomer(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/customers/delete",a).then(s=>{let m=this.customers.findIndex(p=>p.id===a);this.customers.splice(m,1),t.showNotification({type:"success",message:o.tc("customers.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleCustomers(){const a=$();return new Promise((t,i)=>{v.post("/api/v1/customers/delete",{ids:this.selectedCustomers}).then(e=>{this.selectedCustomers.forEach(s=>{let m=this.customers.findIndex(p=>p.id===s.id);this.customers.splice(m,1)}),a.showNotification({type:"success",message:o.tc("customers.deleted_message",2)}),t(e)}).catch(e=>{y(e),i(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=M({},Me)),a.shipping||(this.currentCustomer.shipping=M({},Me))}}})()},je=(n=!1)=>(n?window.pinia.defineStore:Q)({id:"modal",state:()=>({active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""}),getters:{isEdit(){return!!this.id}},actions:{openModal(o){this.componentName=o.componentName,this.active=!0,o.id&&(this.id=o.id),this.title=o.title,o.content&&(this.content=o.content),o.data&&(this.data=o.data),o.refreshData&&(this.refreshData=o.refreshData),o.variant&&(this.variant=o.variant),o.size&&(this.size=o.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=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.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=>{y(e),i(e)})})},fetchItem(a){return new Promise((t,i)=>{v.get(`/api/v1/items/${a}`).then(e=>{e.data&&Object.assign(this.currentItem,e.data.data),t(e)}).catch(e=>{y(e),i(e)})})},addItem(a){return new Promise((t,i)=>{v.post("/api/v1/items",a).then(e=>{const s=$();this.items.push(e.data.data),s.showNotification({type:"success",message:o.t("items.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},updateItem(a){return new Promise((t,i)=>{v.put(`/api/v1/items/${a.id}`,a).then(e=>{if(e.data){const s=$();let m=this.items.findIndex(p=>p.id===e.data.data.id);this.items[m]=a.item,s.showNotification({type:"success",message:o.t("items.updated_message")})}t(e)}).catch(e=>{y(e),i(e)})})},deleteItem(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/items/delete",a).then(s=>{let m=this.items.findIndex(p=>p.id===a);this.items.splice(m,1),t.showNotification({type:"success",message:o.tc("items.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleItems(){const a=$();return new Promise((t,i)=>{v.post("/api/v1/items/delete",{ids:this.selectedItems}).then(e=>{this.selectedItems.forEach(s=>{let m=this.items.findIndex(p=>p.id===s.id);this.items.splice(m,1)}),a.showNotification({type:"success",message:o.tc("items.deleted_message",2)}),t(e)}).catch(e=>{y(e),i(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(i=>i.id);this.selectedItems=t,this.selectAllField=!0}},addItemUnit(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/units",a).then(s=>{this.itemUnits.push(s.data.data),s.data.data&&t.showNotification({type:"success",message:o.t("settings.customization.items.item_unit_added")}),s.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),i(s)}).catch(s=>{y(s),e(s)})})},updateItemUnit(a){const t=$();return new Promise((i,e)=>{v.put(`/api/v1/units/${a.id}`,a).then(s=>{let m=this.itemUnits.findIndex(p=>p.id===s.data.data.id);this.itemUnits[m]=a,s.data.data&&t.showNotification({type:"success",message:o.t("settings.customization.items.item_unit_updated")}),s.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),i(s)}).catch(s=>{y(s),e(s)})})},fetchItemUnits(a){return new Promise((t,i)=>{v.get("/api/v1/units",{params:a}).then(e=>{this.itemUnits=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchItemUnit(a){return new Promise((t,i)=>{v.get(`/api/v1/units/${a}`).then(e=>{this.currentItemUnit=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},deleteItemUnit(a){const t=$();return new Promise((i,e)=>{v.delete(`/api/v1/units/${a}`).then(s=>{if(!s.data.error){let m=this.itemUnits.findIndex(p=>p.id===a);this.itemUnits.splice(m,1)}s.data.success&&t.showNotification({type:"success",message:o.t("settings.customization.items.deleted_message")}),i(s)}).catch(s=>{y(s),e(s)})})}}})()},we=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.get("/api/v1/tax-types",{params:a}).then(e=>{this.taxTypes=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchTaxType(a){return new Promise((t,i)=>{v.get(`/api/v1/tax-types/${a}`).then(e=>{this.currentTaxType=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},addTaxType(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/tax-types",a).then(s=>{this.taxTypes.push(s.data.data),t.showNotification({type:"success",message:o.t("settings.tax_types.created_message")}),i(s)}).catch(s=>{y(s),e(s)})})},updateTaxType(a){const t=$();return new Promise((i,e)=>{v.put(`/api/v1/tax-types/${a.id}`,a).then(s=>{if(s.data){let m=this.taxTypes.findIndex(p=>p.id===s.data.data.id);this.taxTypes[m]=a.taxTypes,t.showNotification({type:"success",message:o.t("settings.tax_types.updated_message")})}i(s)}).catch(s=>{y(s),e(s)})})},fetchSalesTax(a){return new Promise((t,i)=>{v.post("/api/m/sales-tax-us/current-tax",a).then(e=>{if(e.data){let s=this.taxTypes.findIndex(m=>m.name==="SalesTaxUs");s>-1&&this.taxTypes.splice(s,1),this.taxTypes.push(W(M({},e.data.data),{tax_type_id:e.data.data.id}))}t(e)}).catch(e=>{y(e),i(e)})})},deleteTaxType(a){return new Promise((t,i)=>{v.delete(`/api/v1/tax-types/${a}`).then(e=>{if(e.data.success){let s=this.taxTypes.findIndex(p=>p.id===a);this.taxTypes.splice(s,1),$().showNotification({type:"success",message:o.t("settings.tax_types.deleted_message")})}t(e)}).catch(e=>{y(e),i(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 Pt(){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(M({},We),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})],taxes:[],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const He=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"estimate",state:()=>({templates:[],estimates:[],selectAllField:!1,selectedEstimates:[],totalEstimateCount:0,isFetchingInitialSettings:!1,showExchangeRate:!1,newEstimate:M({},Pt())}),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=M({},Pt())},previewEstimate(a){return new Promise((t,i)=>{v.get(`/api/v1/estimates/${a.id}/send/preview`,{params:a}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},fetchEstimates(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},getNextNumber(a,t=!1){return new Promise((i,e)=>{v.get("/api/v1/next-number?key=estimate",{params:a}).then(s=>{t&&(this.newEstimate.estimate_number=s.data.nextNumber),i(s)}).catch(s=>{y(s),e(s)})})},fetchEstimate(a){return new Promise((t,i)=>{v.get(`/api/v1/estimates/${a}`).then(e=>{Object.assign(this.newEstimate,e.data.data),t(e)}).catch(e=>{console.log(e),y(e),i(e)})})},addSalesTaxUs(){const a=we();let t=M({},ie),i=this.newEstimate.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(i){for(const e in i)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);t.id=i.tax_type_id,console.log(t,"salesTax"),a.taxTypes.push(t),console.log(a.taxTypes)}},sendEstimate(a){const t=$();return new Promise((i,e)=>{v.post(`/api/v1/estimates/${a.id}/send`,a).then(s=>{a.is_preview||t.showNotification({type:"success",message:o.t("estimates.send_estimate_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},addEstimate(a){return new Promise((t,i)=>{v.post("/api/v1/estimates",a).then(e=>{this.estimates=[...this.estimates,e.data.estimate],$().showNotification({type:"success",message:o.t("estimates.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},deleteEstimate(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/estimates/delete",a).then(s=>{let m=this.estimates.findIndex(p=>p.id===a);this.estimates.splice(m,1),t.showNotification({type:"success",message:o.t("estimates.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleEstimates(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/estimates/delete",{ids:this.selectedEstimates}).then(s=>{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:o.tc("estimates.deleted_message",2)}),i(s)}).catch(s=>{y(s),e(s)})})},updateEstimate(a){return new Promise((t,i)=>{v.put(`/api/v1/estimates/${a.id}`,a).then(e=>{let s=this.estimates.findIndex(p=>p.id===e.data.data.id);this.estimates[s]=e.data.data,$().showNotification({type:"success",message:o.t("estimates.updated_message")}),t(e)}).catch(e=>{y(e),i(e)})})},markAsAccepted(a){return new Promise((t,i)=>{v.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let s=this.estimates.findIndex(m=>m.id===a.id);this.estimates[s]&&(this.estimates[s].status="ACCEPTED",$().showNotification({type:"success",message:o.t("estimates.marked_as_accepted_message")})),t(e)}).catch(e=>{y(e),i(e)})})},markAsRejected(a){return new Promise((t,i)=>{v.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{$().showNotification({type:"success",message:o.t("estimates.marked_as_rejected_message")}),t(e)}).catch(e=>{y(e),i(e)})})},markAsSent(a){return new Promise((t,i)=>{v.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let s=this.estimates.findIndex(m=>m.id===a.id);this.estimates[s]&&(this.estimates[s].status="SENT",$().showNotification({type:"success",message:o.t("estimates.mark_as_sent_successfully")})),t(e)}).catch(e=>{y(e),i(e)})})},convertToInvoice(a){const t=$();return new Promise((i,e)=>{v.post(`/api/v1/estimates/${a}/convert-to-invoice`).then(s=>{t.showNotification({type:"success",message:o.t("estimates.conversion_message")}),i(s)}).catch(s=>{y(s),e(s)})})},searchEstimate(a){return new Promise((t,i)=>{v.get(`/api/v1/estimates?${a}`).then(e=>{t(e)}).catch(e=>{y(e),i(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,i)=>{v.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=>{y(e),i(e)})})},fetchEstimateTemplates(a){return new Promise((t,i)=>{v.get("/api/v1/estimates/templates",{params:a}).then(e=>{this.templates=e.data.estimateTemplates,t(e)}).catch(e=>{y(e),i(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(M({},We),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]}))},updateItem(a){Object.assign(this.newEstimate.items[a.index],M({},a))},removeItem(a){this.newEstimate.items.splice(a,1)},deselectItem(a){this.newEstimate.items[a]=W(M({},We),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})},async fetchEstimateInitialSettings(a){const t=_e(),i=ke(),e=Fe(),s=we(),m=ge(),p=ve();if(this.isFetchingInitialSettings=!0,this.newEstimate.selectedCurrency=t.selectedCompanyCurrency,m.query.customer){let z=await i.fetchCustomer(m.query.customer);this.newEstimate.customer=z.data.data,this.newEstimate.customer_id=z.data.data.id}let k=[];a?k=[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=be().format("YYYY-MM-DD"),t.selectedCompanySettings.estimate_set_expiry_date_automatically==="YES"&&(this.newEstimate.expiry_date=be().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(),s.fetchTaxTypes({limit:"all"}),...k]).then(async([z,g,h,D,R,E,x])=>{a||(D.data&&(this.newEstimate.estimate_number=D.data.nextNumber),this.setTemplate(this.templates[0].name),this.newEstimate.template_name=p.currentUserSettings.default_estimate_template?p.currentUserSettings.default_estimate_template:this.newEstimate.template_name),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(z=>{y(z),this.isFetchingInitialSettings=!1})}}})()};var Ye={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 St(){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(M({},Ye),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const $e=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n,a=$();return r({id:"invoice",state:()=>({templates:[],invoices:[],selectedInvoices:[],selectAllField:!1,invoiceTotalCount:0,showExchangeRate:!1,isFetchingInitialSettings:!1,isFetchingInvoice:!1,newInvoice:M({},St())}),getters:{getInvoice:t=>i=>{let e=parseInt(i);return t.invoices.find(s=>s.id===e)},getSubTotal(){return this.newInvoice.items.reduce(function(t,i){return t+i.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=M({},St())},previewInvoice(t){return new Promise((i,e)=>{v.get(`/api/v1/invoices/${t.id}/send/preview`,{params:t}).then(s=>{i(s)}).catch(s=>{y(s),e(s)})})},fetchInvoices(t){return new Promise((i,e)=>{v.get("/api/v1/invoices",{params:t}).then(s=>{this.invoices=s.data.data,this.invoiceTotalCount=s.data.meta.invoice_total_count,i(s)}).catch(s=>{y(s),e(s)})})},fetchInvoice(t){return new Promise((i,e)=>{v.get(`/api/v1/invoices/${t}`).then(s=>{Object.assign(this.newInvoice,s.data.data),this.newInvoice.customer=s.data.data.customer,i(s)}).catch(s=>{y(s),e(s)})})},addSalesTaxUs(){const t=we();let i=M({},ie),e=this.newInvoice.taxes.find(s=>s.name==="Sales Tax"&&s.type==="MODULE");if(e){for(const s in e)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]=e[s]);i.id=e.tax_type_id,t.taxTypes.push(i)}},sendInvoice(t){return new Promise((i,e)=>{v.post(`/api/v1/invoices/${t.id}/send`,t).then(s=>{a.showNotification({type:"success",message:o.t("invoices.invoice_sent_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},addInvoice(t){return new Promise((i,e)=>{v.post("/api/v1/invoices",t).then(s=>{this.invoices=[...this.invoices,s.data.invoice],a.showNotification({type:"success",message:o.t("invoices.created_message")}),i(s)}).catch(s=>{y(s),e(s)})})},deleteInvoice(t){return new Promise((i,e)=>{v.post("/api/v1/invoices/delete",t).then(s=>{let m=this.invoices.findIndex(p=>p.id===t);this.invoices.splice(m,1),a.showNotification({type:"success",message:o.t("invoices.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleInvoices(t){return new Promise((i,e)=>{v.post("/api/v1/invoices/delete",{ids:this.selectedInvoices}).then(s=>{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:o.tc("invoices.deleted_message",2)}),i(s)}).catch(s=>{y(s),e(s)})})},updateInvoice(t){return new Promise((i,e)=>{v.put(`/api/v1/invoices/${t.id}`,t).then(s=>{let m=this.invoices.findIndex(p=>p.id===s.data.data.id);this.invoices[m]=s.data.data,a.showNotification({type:"success",message:o.t("invoices.updated_message")}),i(s)}).catch(s=>{y(s),e(s)})})},cloneInvoice(t){return new Promise((i,e)=>{v.post(`/api/v1/invoices/${t.id}/clone`,t).then(s=>{a.showNotification({type:"success",message:o.t("invoices.cloned_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},markAsSent(t){return new Promise((i,e)=>{v.post(`/api/v1/invoices/${t.id}/status`,t).then(s=>{let m=this.invoices.findIndex(p=>p.id===t.id);this.invoices[m]&&(this.invoices[m].status="SENT"),a.showNotification({type:"success",message:o.t("invoices.mark_as_sent_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},getNextNumber(t,i=!1){return new Promise((e,s)=>{v.get("/api/v1/next-number?key=invoice",{params:t}).then(m=>{i&&(this.newInvoice.invoice_number=m.data.nextNumber),e(m)}).catch(m=>{y(m),s(m)})})},searchInvoice(t){return new Promise((i,e)=>{v.get(`/api/v1/invoices?${t}`).then(s=>{i(s)}).catch(s=>{y(s),e(s)})})},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(i=>i.id);this.selectedInvoices=t,this.selectAllField=!0}},selectCustomer(t){return new Promise((i,e)=>{v.get(`/api/v1/customers/${t}`).then(s=>{this.newInvoice.customer=s.data.data,this.newInvoice.customer_id=s.data.data.id,i(s)}).catch(s=>{y(s),e(s)})})},fetchInvoiceTemplates(t){return new Promise((i,e)=>{v.get("/api/v1/invoices/templates",{params:t}).then(s=>{this.templates=s.data.invoiceTemplates,i(s)}).catch(s=>{y(s),e(s)})})},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(M({},Ye),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]}))},updateItem(t){Object.assign(this.newInvoice.items[t.index],M({},t))},removeItem(t){this.newInvoice.items.splice(t,1)},deselectItem(t){this.newInvoice.items[t]=W(M({},Ye),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})},resetSelectedNote(){this.newInvoice.selectedNote=null},async fetchInvoiceInitialSettings(t){const i=_e(),e=ke(),s=Fe(),m=we(),p=ge(),k=ve();if(this.isFetchingInitialSettings=!0,this.newInvoice.selectedCurrency=i.selectedCompanyCurrency,p.query.customer){let g=await e.fetchCustomer(p.query.customer);this.newInvoice.customer=g.data.data,this.newInvoice.customer_id=g.data.data.id}let z=[];t?z=[this.fetchInvoice(p.params.id)]:(this.newInvoice.tax_per_item=i.selectedCompanySettings.tax_per_item,this.newInvoice.sales_tax_type=i.selectedCompanySettings.sales_tax_type,this.newInvoice.sales_tax_address_type=i.selectedCompanySettings.sales_tax_address_type,this.newInvoice.discount_per_item=i.selectedCompanySettings.discount_per_item,this.newInvoice.invoice_date=be().format("YYYY-MM-DD"),i.selectedCompanySettings.invoice_set_due_date_automatically==="YES"&&(this.newInvoice.due_date=be().add(i.selectedCompanySettings.invoice_due_date_days,"days").format("YYYY-MM-DD"))),Promise.all([s.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),this.fetchInvoiceTemplates(),this.getNextNumber(),m.fetchTaxTypes({limit:"all"}),...z]).then(async([g,h,D,R,E,x])=>{t||(R.data&&(this.newInvoice.invoice_number=R.data.nextNumber),D.data&&(this.setTemplate(this.templates[0].name),this.newInvoice.template_name=k.currentUserSettings.default_invoice_template?k.currentUserSettings.default_invoice_template:this.newInvoice.template_name)),t&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(g=>{y(g),reject(g)})}}})()},TS={class:"relative flex px-4 py-2 rounded-lg bg-opacity-40 bg-gray-300 whitespace-nowrap flex-col mt-1"},RS=c("rect",{width:"37",height:"37",rx:"10",fill:"currentColor"},null,-1),MS=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),FS=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),$S=[RS,MS,FS],US={props:{token:{type:String,default:null,required:!0}},setup(n){const r=$(),o=K(""),{t:a}=Se();function t(e){let s;document.selection?(s=document.body.createTextRange(),s.moveToElementText(e),s.select()):window.getSelection&&(s=document.createRange(),s.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(s))}function i(){t(o.value),document.execCommand("copy"),r.showNotification({type:"success",message:a("general.copied_url_clipboard")})}return(e,s)=>{const m=et("tooltip");return l(),_("div",TS,[c("span",{ref:(p,k)=>{k.publicUrl=p,o.value=p},class:"pr-10 text-sm font-medium text-black truncate select-all select-color"},w(n.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:i},$S,512)),[[m,{content:"Copy to Clipboard"}]])])}}};var Ge={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 jt(){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(M({},Ge),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})],taxes:[],customFields:[],fields:[],invoices:[],selectedNote:null,selectedFrequency:{label:"Every Week",value:"0 0 * * 0"},selectedInvoice:null}}const At=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"recurring-invoice",state:()=>({templates:[],recurringInvoices:[],selectedRecurringInvoices:[],totalRecurringInvoices:0,isFetchingInitialSettings:!1,isFetchingViewData:!1,showExchangeRate:!1,selectAllField:!1,newRecurringInvoice:M({},jt()),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,i){return t+i.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=M({},jt())},deselectItem(a){this.newRecurringInvoice.items[a]=W(M({},Ge),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})},addRecurringInvoice(a){return new Promise((t,i)=>{v.post("/api/v1/recurring-invoices",a).then(e=>{this.recurringInvoices=[...this.recurringInvoices,e.data.recurringInvoice],$().showNotification({type:"success",message:o.t("recurring_invoices.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},fetchRecurringInvoice(a){return new Promise((t,i)=>{this.isFetchingViewData=!0,v.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,y(e),i(e)})})},updateRecurringInvoice(a){return new Promise((t,i)=>{v.put(`/api/v1/recurring-invoices/${a.id}`,a).then(e=>{t(e),$().showNotification({type:"success",message:o.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=>{y(e),i(e)})})},selectCustomer(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},searchRecurringInvoice(a){return new Promise((t,i)=>{v.get(`/api/v1/recurring-invoices?${a}`).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},fetchRecurringInvoices(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},deleteRecurringInvoice(a){return new Promise((t,i)=>{v.post("/api/v1/recurring-invoices/delete",a).then(e=>{let s=this.recurringInvoices.findIndex(m=>m.id===a);this.recurringInvoices.splice(s,1),t(e)}).catch(e=>{y(e),i(e)})})},deleteMultipleRecurringInvoices(a){return new Promise((t,i)=>{let e=this.selectedRecurringInvoices;a&&(e=[a]),v.post("/api/v1/recurring-invoices/delete",{ids:e}).then(s=>{this.selectedRecurringInvoices.forEach(m=>{let p=this.recurringInvoices.findIndex(k=>k.id===m.id);this.recurringInvoices.splice(p,1)}),this.selectedRecurringInvoices=[],t(s)}).catch(s=>{y(s),i(s)})})},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(M({},Ge),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]}))},removeItem(a){this.newRecurringInvoice.items.splice(a,1)},updateItem(a){Object.assign(this.newRecurringInvoice.items[a.index],M({},a))},async fetchRecurringInvoiceInitialSettings(a){const t=_e(),i=ke(),e=Fe(),s=$e(),m=we(),p=ge();if(this.isFetchingInitialSettings=!0,this.newRecurringInvoice.currency=t.selectedCompanyCurrency,p.query.customer){let z=await i.fetchCustomer(p.query.customer);this.newRecurringInvoice.customer=z.data.data,this.selectCustomer(z.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=be().format("YYYY-MM-DD"),this.newRecurringInvoice.next_invoice_date=be().add(7,"days").format("YYYY-MM-DD")),Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),s.fetchInvoiceTemplates(),m.fetchTaxTypes({limit:"all"}),...k]).then(async([z,g,h,D,R])=>{var E,x;h.data&&(this.templates=s.templates),a||this.setTemplate(this.templates[0].name),a&&(R==null?void 0:R.data)&&(M({},R.data.data),this.setTemplate((x=(E=R==null?void 0:R.data)==null?void 0:E.data)==null?void 0:x.template_name)),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(z=>{console.log(z),y(z)})},addSalesTaxUs(){const a=we();let t=M({},ie),i=this.newRecurringInvoice.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(i){for(const e in i)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);t.id=i.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,i)=>{v.get("/api/v1/recurring-invoice-frequency",{params:a}).then(e=>{this.newRecurringInvoice.next_invoice_at=e.data.next_invoice_at,t(e)}).catch(e=>{$().showNotification({type:"error",message:o.t("errors.enter_valid_cron_format")}),i(e)})})}}})()},VS={class:"flex justify-between w-full"},OS=["onSubmit"],LS={class:"px-6 pb-3"},qS={class:"md:col-span-2"},BS={class:"text-sm text-gray-500"},KS={class:"grid md:grid-cols-12"},ZS={class:"flex justify-end col-span-12"},WS={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Dt={setup(n){const r=At(),o=je(),a=He(),t=ke(),i=_e(),e=Te(),s=$e(),m=$();let p=K(!1);const{t:k}=Se(),z=ge();K(!1);const g=K(!1);let h=K(!1),D=K(!1);const R=A(()=>o.active&&o.componentName==="CustomerModal"),E=A(()=>({name:{required:te.withMessage(k("validation.required"),tt),minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ue(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}),Ue(8))},confirm_password:{sameAsPassword:te.withMessage(k("validation.password_incorrect"),qt(t.currentCustomer.password))},email:{required:te.withMessage(k("validation.required"),at(t.currentCustomer.enable_portal==!0)),email:te.withMessage(k("validation.email_incorrect"),Bt)},prefix:{minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ue(3))},website:{url:te.withMessage(k("validation.invalid_url"),Kt)},billing:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))}},shipping:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))}}})),x=Zt(E,A(()=>t.currentCustomer)),U=A(()=>`${window.location.origin}/${i.selectedCompany.slug}/customer/login`);function L(){t.copyAddress()}async function Y(){t.isEdit||(t.currentCustomer.currency_id=i.selectedCompanyCurrency.id)}async function me(){if(x.value.$touch(),x.value.$invalid&&t.currentCustomer.email===""&&m.showNotification({type:"error",message:k("settings.notification.please_enter_email")}),x.value.$invalid)return!0;g.value=!0;let I=M({},t.currentCustomer);try{let b=null;t.isEdit?b=await t.updateCustomer(I):b=await t.addCustomer(I),b.data&&(g.value=!1,(z.name==="invoices.create"||z.name==="invoices.edit")&&s.selectCustomer(b.data.data.id),(z.name==="estimates.create"||z.name==="estimates.edit")&&a.selectCustomer(b.data.data.id),(z.name==="recurring-invoices.create"||z.name==="recurring-invoices.edit")&&r.selectCustomer(b.data.data.id),Z())}catch(b){console.error(b),g.value=!1}}function Z(){o.closeModal(),setTimeout(()=>{t.resetCurrentCustomer(),x.value.$reset()},300)}return(I,b)=>{const ue=C("BaseIcon"),H=C("BaseInput"),q=C("BaseInputGroup"),ze=C("BaseMultiselect"),de=C("BaseInputGrid"),ye=C("BaseTab"),ne=C("BaseSwitch"),he=C("BaseTextarea"),Ae=C("BaseButton"),Nt=C("BaseTabGroup"),Et=C("BaseModal");return l(),T(Et,{show:d(R),onClose:Z,onOpen:Y},{header:f(()=>[c("div",VS,[B(w(d(o).title)+" ",1),u(ue,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:Z})])]),default:f(()=>[c("form",{action:"",onSubmit:se(me,["prevent"])},[c("div",LS,[u(Nt,null,{default:f(()=>[u(ye,{title:I.$t("customers.basic_info"),class:"!mt-2"},{default:f(()=>[u(de,{layout:"one-column"},{default:f(()=>[u(q,{label:I.$t("customers.display_name"),required:"",error:d(x).name.$error&&d(x).name.$errors[0].$message},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.name,"onUpdate:modelValue":b[0]||(b[0]=j=>d(t).currentCustomer.name=j),modelModifiers:{trim:!0},type:"text",name:"name",class:"mt-1 md:mt-0",invalid:d(x).name.$error,onInput:b[1]||(b[1]=j=>d(x).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(q,{label:I.$tc("settings.currencies.currency"),required:"",error:d(x).currency_id.$error&&d(x).currency_id.$errors[0].$message},{default:f(()=>[u(ze,{modelValue:d(t).currentCustomer.currency_id,"onUpdate:modelValue":b[2]||(b[2]=j=>d(t).currentCustomer.currency_id=j),options:d(e).currencies,"value-prop":"id",searchable:"",placeholder:I.$t("customers.select_currency"),"max-height":200,class:"mt-1 md:mt-0","track-by":"name",invalid:d(x).currency_id.$error,label:"name"},null,8,["modelValue","options","placeholder","invalid"])]),_:1},8,["label","error"]),u(q,{label:I.$t("customers.primary_contact_name")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.contact_name,"onUpdate:modelValue":b[3]||(b[3]=j=>d(t).currentCustomer.contact_name=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("login.email"),error:d(x).email.$error&&d(x).email.$errors[0].$message},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.email,"onUpdate:modelValue":b[4]||(b[4]=j=>d(t).currentCustomer.email=j),modelModifiers:{trim:!0},type:"text",name:"email",class:"mt-1 md:mt-0",invalid:d(x).email.$error,onInput:b[5]||(b[5]=j=>d(x).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(q,{label:I.$t("customers.prefix"),error:d(x).prefix.$error&&d(x).prefix.$errors[0].$message,"content-loading":d(p)},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.prefix,"onUpdate:modelValue":b[6]||(b[6]=j=>d(t).currentCustomer.prefix=j),"content-loading":d(p),type:"text",name:"name",class:"",invalid:d(x).prefix.$error,onInput:b[7]||(b[7]=j=>d(x).prefix.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),u(de,null,{default:f(()=>[u(q,{label:I.$t("customers.phone")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.phone,"onUpdate:modelValue":b[8]||(b[8]=j=>d(t).currentCustomer.phone=j),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.website"),error:d(x).website.$error&&d(x).website.$errors[0].$message},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.website,"onUpdate:modelValue":b[9]||(b[9]=j=>d(t).currentCustomer.website=j),type:"url",class:"mt-1 md:mt-0",invalid:d(x).website.$error,onInput:b[10]||(b[10]=j=>d(x).website.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),_:1})]),_:1},8,["title"]),u(ye,{title:I.$t("customers.portal_access")},{default:f(()=>[u(de,{class:"col-span-5 lg:col-span-4"},{default:f(()=>[c("div",qS,[c("p",BS,w(I.$t("customers.portal_access_text")),1),u(ne,{modelValue:d(t).currentCustomer.enable_portal,"onUpdate:modelValue":b[11]||(b[11]=j=>d(t).currentCustomer.enable_portal=j),class:"mt-1 flex"},null,8,["modelValue"])]),d(t).currentCustomer.enable_portal?(l(),T(q,{key:0,"content-loading":d(p),label:I.$t("customers.portal_access_url"),class:"md:col-span-2","help-text":I.$t("customers.portal_access_url_help")},{default:f(()=>[u(US,{token:d(U)},null,8,["token"])]),_:1},8,["content-loading","label","help-text"])):P("",!0),d(t).currentCustomer.enable_portal?(l(),T(q,{key:1,"content-loading":d(p),error:d(x).password.$error&&d(x).password.$errors[0].$message,label:I.$t("customers.password")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.password,"onUpdate:modelValue":b[14]||(b[14]=j=>d(t).currentCustomer.password=j),modelModifiers:{trim:!0},"content-loading":d(p),type:d(h)?"text":"password",name:"password",invalid:d(x).password.$error,onInput:b[15]||(b[15]=j=>d(x).password.$touch())},{right:f(()=>[d(h)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:b[12]||(b[12]=j=>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:b[13]||(b[13]=j=>J(h)?h.value=!d(h):h=!d(h))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["content-loading","error","label"])):P("",!0),d(t).currentCustomer.enable_portal?(l(),T(q,{key:2,error:d(x).confirm_password.$error&&d(x).confirm_password.$errors[0].$message,"content-loading":d(p),label:"Confirm Password"},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.confirm_password,"onUpdate:modelValue":b[18]||(b[18]=j=>d(t).currentCustomer.confirm_password=j),modelModifiers:{trim:!0},"content-loading":d(p),type:d(D)?"text":"password",name:"confirm_password",invalid:d(x).confirm_password.$error,onInput:b[19]||(b[19]=j=>d(x).confirm_password.$touch())},{right:f(()=>[d(D)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:b[16]||(b[16]=j=>J(D)?D.value=!d(D):D=!d(D))})):(l(),T(ue,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:b[17]||(b[17]=j=>J(D)?D.value=!d(D):D=!d(D))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["error","content-loading"])):P("",!0)]),_:1})]),_:1},8,["title"]),u(ye,{title:I.$t("customers.billing_address"),class:"!mt-2"},{default:f(()=>[u(de,{layout:"one-column"},{default:f(()=>[u(q,{label:I.$t("customers.name")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.name,"onUpdate:modelValue":b[20]||(b[20]=j=>d(t).currentCustomer.billing.name=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.country")},{default:f(()=>[u(ze,{modelValue:d(t).currentCustomer.billing.country_id,"onUpdate:modelValue":b[21]||(b[21]=j=>d(t).currentCustomer.billing.country_id=j),options:d(e).countries,searchable:"","show-labels":!1,placeholder:I.$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(q,{label:I.$t("customers.state")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.state,"onUpdate:modelValue":b[22]||(b[22]=j=>d(t).currentCustomer.billing.state=j),type:"text",name:"billingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.city")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.city,"onUpdate:modelValue":b[23]||(b[23]=j=>d(t).currentCustomer.billing.city=j),type:"text",name:"billingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.address"),error:d(x).billing.address_street_1.$error&&d(x).billing.address_street_1.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.billing.address_street_1,"onUpdate:modelValue":b[24]||(b[24]=j=>d(t).currentCustomer.billing.address_street_1=j),placeholder:I.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(x).billing.address_street_1.$error,onInput:b[25]||(b[25]=j=>d(x).billing.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:f(()=>[u(q,{error:d(x).billing.address_street_2.$error&&d(x).billing.address_street_2.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.billing.address_street_2,"onUpdate:modelValue":b[26]||(b[26]=j=>d(t).currentCustomer.billing.address_street_2=j),placeholder:I.$t("general.street_2"),rows:"2",cols:"50",invalid:d(x).billing.address_street_2.$error,onInput:b[27]||(b[27]=j=>d(x).billing.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(q,{label:I.$t("customers.phone")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.phone,"onUpdate:modelValue":b[28]||(b[28]=j=>d(t).currentCustomer.billing.phone=j),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.zip_code")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.zip,"onUpdate:modelValue":b[29]||(b[29]=j=>d(t).currentCustomer.billing.zip=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"]),u(ye,{title:I.$t("customers.shipping_address"),class:"!mt-2"},{default:f(()=>[c("div",KS,[c("div",ZS,[u(Ae,{variant:"primary",type:"button",size:"xs",onClick:b[30]||(b[30]=j=>L())},{default:f(()=>[B(w(I.$t("customers.copy_billing_address")),1)]),_:1})])]),u(de,{layout:"one-column"},{default:f(()=>[u(q,{label:I.$t("customers.name")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.name,"onUpdate:modelValue":b[31]||(b[31]=j=>d(t).currentCustomer.shipping.name=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.country")},{default:f(()=>[u(ze,{modelValue:d(t).currentCustomer.shipping.country_id,"onUpdate:modelValue":b[32]||(b[32]=j=>d(t).currentCustomer.shipping.country_id=j),options:d(e).countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:I.$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(q,{label:I.$t("customers.state")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.state,"onUpdate:modelValue":b[33]||(b[33]=j=>d(t).currentCustomer.shipping.state=j),type:"text",name:"shippingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.city")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.city,"onUpdate:modelValue":b[34]||(b[34]=j=>d(t).currentCustomer.shipping.city=j),type:"text",name:"shippingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.address"),error:d(x).shipping.address_street_1.$error&&d(x).shipping.address_street_1.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.shipping.address_street_1,"onUpdate:modelValue":b[35]||(b[35]=j=>d(t).currentCustomer.shipping.address_street_1=j),placeholder:I.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(x).shipping.address_street_1.$error,onInput:b[36]||(b[36]=j=>d(x).shipping.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:f(()=>[u(q,{error:d(x).shipping.address_street_2.$error&&d(x).shipping.address_street_2.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.shipping.address_street_2,"onUpdate:modelValue":b[37]||(b[37]=j=>d(t).currentCustomer.shipping.address_street_2=j),placeholder:I.$t("general.street_2"),rows:"2",cols:"50",invalid:d(x).shipping.address_street_1.$error,onInput:b[38]||(b[38]=j=>d(x).shipping.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(q,{label:I.$t("customers.phone")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.phone,"onUpdate:modelValue":b[39]||(b[39]=j=>d(t).currentCustomer.shipping.phone=j),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.zip_code")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.zip,"onUpdate:modelValue":b[40]||(b[40]=j=>d(t).currentCustomer.shipping.zip=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"])]),_:1})]),c("div",WS,[u(Ae,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:Z},{default:f(()=>[B(w(I.$t("general.cancel")),1)]),_:1}),u(Ae,{loading:g.value,variant:"primary",type:"submit"},{left:f(j=>[g.value?P("",!0):(l(),T(ue,{key:0,name:"SaveIcon",class:N(j.class)},null,8,["class"]))]),default:f(()=>[B(" "+w(I.$t("general.save")),1)]),_:1},8,["loading"])])],40,OS)]),_:1},8,["show"])}}},HS={props:{modelValue:{type:[String,Number,Object],default:""},fetchAll:{type:Boolean,default:!1},showAction:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){const o=n,{t:a}=Se(),t=je(),i=ke(),e=ve(),s=A({get:()=>o.modelValue,set:k=>{r("update:modelValue",k)}});async function m(k){let z={search:k};o.fetchAll&&(z.limit="all");let g=await i.fetchCustomers(z);if(g.data.data.length>0&&i.editCustomer&&!g.data.data.find(D=>D.id==i.editCustomer.id)){let D=Object.assign({},i.editCustomer);g.data.data.unshift(D)}return g.data.data}async function p(){i.resetCurrentCustomer(),t.openModal({title:a("customers.add_new_customer"),componentName:"CustomerModal"})}return(k,z)=>{const g=C("BaseIcon"),h=C("BaseSelectAction"),D=C("BaseMultiselect");return l(),_(X,null,[u(D,le({modelValue:d(s),"onUpdate:modelValue":z[0]||(z[0]=R=>J(s)?s.value=R: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},[n.showAction?{name:"action",fn:f(()=>[d(e).hasAbilities(d(O).CREATE_CUSTOMER)?(l(),T(h,{key:0,onClick:p},{default:f(()=>[u(g,{name:"UserAddIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),B(" "+w(k.$t("customers.add_new_customer")),1)]),_:1})):P("",!0)])}:void 0]),1040,["modelValue","placeholder"]),u(Dt)],64)}}};var YS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:HS});const GS={key:1,class:"max-h-[173px]"},JS={class:"flex relative justify-between mb-2"},QS={class:"flex"},XS=["onClick"],ej={class:"grid grid-cols-2 gap-8 mt-2"},tj={key:0,class:"flex flex-col"},aj={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},nj={key:0,class:"flex flex-col flex-1 p-0 text-left"},ij={key:0,class:"relative w-11/12 text-sm truncate"},oj={class:"relative w-11/12 text-sm truncate"},sj={key:0},rj={key:1},dj={key:2},lj={key:1,class:"relative w-11/12 text-sm truncate"},cj={key:1,class:"flex flex-col"},_j={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},uj={key:0,class:"flex flex-col flex-1 p-0 text-left"},mj={key:0,class:"relative w-11/12 text-sm truncate"},pj={class:"relative w-11/12 text-sm truncate"},fj={key:0},gj={key:1},vj={key:2},yj={key:1,class:"relative w-11/12 text-sm truncate"},hj={class:"relative flex justify-center px-0 p-0 py-16 bg-white border border-gray-200 border-solid rounded-md min-h-[170px]"},bj={class:"mt-1"},kj={class:"text-lg font-medium text-gray-900"},wj=c("span",{class:"text-red-500"}," * ",-1),zj={key:0,class:"text-red-500 text-sm absolute right-3 bottom-3"},xj={key:0,class:"absolute min-w-full z-10"},Pj={class:"relative"},Sj={class:"max-h-80 flex flex-col overflow-auto list border-t border-gray-200"},jj=["onClick"],Aj={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"},Dj={class:"flex flex-col justify-center text-left"},Cj={key:0,class:"flex justify-center p-5 text-gray-400"},Nj={class:"text-base text-gray-500 cursor-pointer"},Ej={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},Ij={props:{valid:{type:Object,default:()=>{}},customerId:{type:Number,default:null},type:{type:String,default:null},contentLoading:{type:Boolean,default:!1}},setup(n){const r=n,o=je(),a=He(),t=ke(),i=Te(),e=$e(),s=At(),m=ve(),p=ge(),{t:k}=Se(),z=K(null),g=K(!1),h=A(()=>{switch(r.type){case"estimate":return a.newEstimate.customer;case"invoice":return e.newInvoice.customer;case"recurring-invoice":return s.newRecurringInvoice.customer;default:return""}});function D(){r.type==="estimate"?a.resetSelectedCustomer():r.type==="invoice"?e.resetSelectedCustomer():s.resetSelectedCustomer()}r.customerId&&r.type==="estimate"?a.selectCustomer(r.customerId):r.customerId&&r.type==="invoice"?e.selectCustomer(r.customerId):r.customerId&&s.selectCustomer(r.customerId);async function R(){await t.fetchCustomer(h.value.id),o.openModal({title:k("customers.edit_customer"),componentName:"CustomerModal"})}async function E(){await t.fetchCustomers({filter:{},orderByField:"",orderBy:"",customer_id:r.customerId})}const x=Jt(()=>{g.value=!0,U()},500);async function U(){let Z={display_name:z.value,page:1};await t.fetchCustomers(Z),g.value=!1}function L(){o.openModal({title:k("customers.add_customer"),componentName:"CustomerModal",variant:"md"})}function Y(Z){if(Z)return Z.split(" ")[0].charAt(0).toUpperCase()}function me(Z,I){let b={userId:Z};p.params.id&&(b.model_id=p.params.id),r.type==="estimate"?(a.getNextNumber(b,!0),a.selectCustomer(Z)):r.type==="invoice"?(e.getNextNumber(b,!0),e.selectCustomer(Z)):s.selectCustomer(Z),I(),z.value=null}return i.fetchCurrencies(),i.fetchCountries(),E(),(Z,I)=>{const b=C("BaseContentPlaceholdersBox"),ue=C("BaseContentPlaceholders"),H=C("BaseText"),q=C("BaseIcon"),ze=C("BaseInput");return n.contentLoading?(l(),T(ue,{key:0},{default:f(()=>[u(b,{rounded:!0,class:"w-full",style:{"min-height":"170px"}})]),_:1})):(l(),_("div",GS,[u(Dt),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:I[0]||(I[0]=se(()=>{},["stop"]))},[c("div",JS,[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",QS,[c("a",{class:"relative my-0 ml-6 text-sm font-medium cursor-pointer text-primary-500 items-center flex",onClick:se(R,["stop"])},[u(q,{name:"PencilIcon",class:"text-gray-500 h-4 w-4 mr-1"}),B(" "+w(Z.$t("general.edit")),1)],8,XS),c("a",{class:"relative my-0 ml-6 text-sm flex items-center font-medium cursor-pointer text-primary-500",onClick:D},[u(q,{name:"XCircleIcon",class:"text-gray-500 h-4 w-4 mr-1"}),B(" "+w(Z.$t("general.deselect")),1)])])]),c("div",ej,[d(h).billing?(l(),_("div",tj,[c("label",aj,w(Z.$t("general.bill_to")),1),d(h).billing?(l(),_("div",nj,[d(h).billing.name?(l(),_("label",ij,w(d(h).billing.name),1)):P("",!0),c("label",oj,[d(h).billing.city?(l(),_("span",sj,w(d(h).billing.city),1)):P("",!0),d(h).billing.city&&d(h).billing.state?(l(),_("span",rj," , ")):P("",!0),d(h).billing.state?(l(),_("span",dj,w(d(h).billing.state),1)):P("",!0)]),d(h).billing.zip?(l(),_("label",lj,w(d(h).billing.zip),1)):P("",!0)])):P("",!0)])):P("",!0),d(h).shipping?(l(),_("div",cj,[c("label",_j,w(Z.$t("general.ship_to")),1),d(h).shipping?(l(),_("div",uj,[d(h).shipping.name?(l(),_("label",mj,w(d(h).shipping.name),1)):P("",!0),c("label",pj,[d(h).shipping.city?(l(),_("span",fj,w(d(h).shipping.city),1)):P("",!0),d(h).shipping.city&&d(h).shipping.state?(l(),_("span",gj," , ")):P("",!0),d(h).shipping.state?(l(),_("span",vj,w(d(h).shipping.state),1)):P("",!0)]),d(h).shipping.zip?(l(),_("label",yj,w(d(h).shipping.zip),1)):P("",!0)])):P("",!0)])):P("",!0)])])):(l(),T(d(Gt),{key:1,class:"relative flex flex-col rounded-md"},{default:f(({open:de})=>[u(d(Ht),{class:N([{"text-opacity-90":de,"border border-solid border-red-500 focus:ring-red-500 rounded":n.valid.$error,"focus:ring-2 focus:ring-primary-400":!n.valid.$error},"w-full outline-none rounded-md"])},{default:f(()=>[c("div",hj,[u(q,{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",bj,[c("label",kj,[B(w(Z.$t("customers.new_customer"))+" ",1),wj]),n.valid.$error&&n.valid.$errors[0].$message?(l(),_("p",zj,w(Z.$t("estimates.errors.required")),1)):P("",!0)])])]),_:2},1032,["class"]),u(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:f(()=>[de?(l(),_("div",xj,[u(d(Yt),{focus:"",static:"",class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5 bg-white"},{default:f(({close:ye})=>[c("div",Pj,[u(ze,{modelValue:z.value,"onUpdate:modelValue":[I[1]||(I[1]=ne=>z.value=ne),I[2]||(I[2]=ne=>d(x)(ne))],"container-class":"m-4",placeholder:Z.$t("general.search"),type:"text",icon:"search"},null,8,["modelValue","placeholder"]),c("ul",Sj,[(l(!0),_(X,null,ae(d(t).customers,(ne,he)=>(l(),_("li",{key:he,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:Ae=>me(ne.id,ye)},[c("span",Aj,w(Y(ne.name)),1),c("div",Dj,[ne.name?(l(),T(H,{key:0,text:ne.name,length:30,class:"m-0 text-base font-normal leading-tight cursor-pointer"},null,8,["text"])):P("",!0),ne.contact_name?(l(),T(H,{key:1,text:ne.contact_name,length:30,class:"m-0 text-sm font-medium text-gray-400 cursor-pointer"},null,8,["text"])):P("",!0)])],8,jj))),128)),d(t).customers.length===0?(l(),_("div",Cj,[c("label",Nj,w(Z.$t("customers.no_customers_found")),1)])):P("",!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(q,{name:"UserAddIcon",class:"text-primary-400"}),c("label",Ej,w(Z.$t("customers.add_new_customer")),1)])):P("",!0)]),_:1})])):P("",!0)]),_:2},1024)]),_:1}))]))}}};var Tj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ij});const Rj=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),Mj=[Rj],Fj={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(n,{emit:r}){const o=n,a=K(null),t=pe(),i=_e();let e=Ve({altInput:!0,enableTime:o.enableTime,time_24hr:o.time24hr});const s=A({get:()=>o.modelValue,set:D=>{r("update:modelValue",D)}}),m=A(()=>{var D;return(D=i.selectedCompanySettings)==null?void 0:D.carbon_date_format}),p=A(()=>!!t.icon),k=A(()=>`${o.containerClass} `),z=A(()=>o.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),g=A(()=>o.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(D){a.value.fp.open()}return fe(()=>o.enableTime,D=>{o.enableTime&&(e.enableTime=o.enableTime)},{immediate:!0}),fe(()=>m,()=>{o.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}),(D,R)=>{const E=C("BaseContentPlaceholdersBox"),x=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(x,{key:0},{default:f(()=>[u(E,{rounded:!0,class:N(`w-full ${d(k)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:N([d(k),"relative flex flex-row"])},[n.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},Mj)):P("",!0),n.showCalendarIcon&&d(p)?F(D.$slots,"icon",{key:1}):P("",!0),u(d(nt),le({ref:(U,L)=>{L.dp=U,a.value=U},modelValue:d(s),"onUpdate:modelValue":R[0]||(R[0]=U=>J(s)?s.value=U:null)},D.$attrs,{disabled:n.disabled,config:d(e),class:[n.defaultInputClass,d(z),d(g)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var $j=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fj});const Uj={},Vj={class:"grid gap-4 mt-5 md:grid-cols-2 lg:grid-cols-3"};function Oj(n,r){return l(),_("div",Vj,[F(n.$slots,"default")])}var Lj=ee(Uj,[["render",Oj]]),qj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Lj});const Bj={key:1},Kj={class:"text-sm font-bold leading-5 text-black non-italic"},Zj={props:{label:{type:String,required:!0},value:{type:[String,Number],default:""},contentLoading:{type:Boolean,default:!1}},setup(n){return(r,o)=>{const a=C("BaseContentPlaceholdersBox"),t=C("BaseContentPlaceholders"),i=C("BaseLabel");return l(),_("div",null,[n.contentLoading?(l(),T(t,{key:0},{default:f(()=>[u(a,{class:"w-20 h-5 mb-1"}),u(a,{class:"w-40 h-5"})]),_:1})):(l(),_("div",Bj,[u(i,{class:"font-normal mb-1"},{default:f(()=>[B(w(n.label),1)]),_:1}),c("p",Kj,[B(w(n.value)+" ",1),F(r.$slots,"default")])]))])}}};var Wj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Zj});const Hj=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"dialog",state:()=>({active:!1,title:"",message:"",size:"md",data:null,variant:"danger",yesLabel:o.t("settings.custom_fields.yes"),noLabel:o.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,i)=>{this.resolve=t})},closeDialog(){this.active=!1,setTimeout(()=>{this.title="",this.message="",this.data=null},300)}}})()},Yj={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Gj=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),Jj={class:"mt-3 text-center sm:mt-5"},Qj={class:"mt-2"},Xj={class:"text-sm text-gray-500"},eA={setup(n){const r=Hj();function o(t){r.resolve(t),r.closeDialog()}const a=A(()=>{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,i)=>{const e=C("BaseIcon"),s=C("base-button");return l(),T(d(st),{as:"template",show:d(r).active},{default:f(()=>[u(d(ot),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:d(r).active,onClose:d(r).closeDialog},{default:f(()=>[c("div",Yj,[u(d(Ee),{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:f(()=>[u(d(it),{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75"})]),_:1}),Gj,u(d(Ee),{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:f(()=>[c("div",{class:N(["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:N(["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",Jj,[u(d(Qt),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:f(()=>[B(w(d(r).title),1)]),_:1}),c("div",Qj,[c("p",Xj,w(d(r).message),1)])])]),c("div",{class:N(["mt-5 sm:mt-6 grid gap-3",{"sm:grid-cols-2 sm:grid-flow-row-dense":!d(r).hideNoButton}])},[u(s,{class:N(["justify-center",{"w-full":d(r).hideNoButton}]),variant:d(r).variant,onClick:i[0]||(i[0]=m=>o(!0))},{default:f(()=>[B(w(d(r).yesLabel),1)]),_:1},8,["variant","class"]),d(r).hideNoButton?P("",!0):(l(),T(s,{key:0,class:"justify-center",variant:"white",onClick:i[1]||(i[1]=m=>o(!1))},{default:f(()=>[B(w(d(r).noLabel),1)]),_:1}))],2)],2)]),_:1})])]),_:1},8,["open","onClose"])]),_:1},8,["show"])}}};var tA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:eA});const aA={},nA={class:"w-full text-gray-300"};function iA(n,r){return l(),_("hr",nA)}var oA=ee(aA,[["render",iA]]),sA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:oA});function rA(n){let r=K(null),o=K(null),a=K(null);return Pe(()=>{rt(t=>{if(!o.value||!r.value)return;let i=o.value.el||o.value,e=r.value.el||r.value;e instanceof HTMLElement&&i instanceof HTMLElement&&(a.value=Xt(e,i,n),t(a.value.destroy))})}),[r,o,a]}const dA={class:"py-1"},lA={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(n){const r=n,o=A(()=>`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,i]=rA({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}}]});function e(){i.value.update()}return(s,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return l(),_("div",{class:N(["relative",n.wrapperClass])},[n.contentLoading?(l(),T(k,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:f(()=>[u(p,{rounded:!0,class:"w-14",style:{height:"42px"}})]),_:1})):(l(),T(d(aa),{key:1},{default:f(()=>[u(d(ea),{ref:(z,g)=>{g.trigger=z,J(a)?a.value=z:a=z},class:"focus:outline-none",onClick:e},{default:f(()=>[F(s.$slots,"activator")]),_:3},512),c("div",{ref:(z,g)=>{g.container=z,J(t)?t.value=z:t=z},class:N(["z-10",n.widthClass])},[u(Ne,{"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:f(()=>[u(d(ta),{class:N(d(o))},{default:f(()=>[c("div",dA,[F(s.$slots,"default")])]),_:3},8,["class"])]),_:3})],2)]),_:3}))],2)}}};var cA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lA});const _A={setup(n){return(r,o)=>(l(),T(d(oa),na(ia(r.$attrs)),{default:f(({active:a})=>[c("a",{href:"#",class:N([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 uA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_A});const mA={class:"flex flex-col items-center justify-center mt-16"},pA={class:"flex flex-col items-center justify-center"},fA={class:"mt-2"},gA={class:"font-medium"},vA={class:"mt-2"},yA={class:"text-gray-500"},hA={class:"mt-6"},bA={props:{title:{type:String,default:String},description:{type:String,default:String}},setup(n){return(r,o)=>(l(),_("div",mA,[c("div",pA,[F(r.$slots,"default")]),c("div",fA,[c("label",gA,w(n.title),1)]),c("div",vA,[c("label",yA,w(n.description),1)]),c("div",hA,[F(r.$slots,"actions")])]))}};var kA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bA});const wA={class:"rounded-md bg-red-50 p-4"},zA={class:"flex"},xA={class:"shrink-0"},PA={class:"ml-3"},SA={class:"text-sm font-medium text-red-800"},jA={class:"mt-2 text-sm text-red-700"},AA={role:"list",class:"list-disc pl-5 space-y-1"},DA={props:{errorTitle:{type:String,default:"There were some errors with your submission"},errors:{type:Array,default:null}},setup(n){return(r,o)=>(l(),_("div",wA,[c("div",zA,[c("div",xA,[u(d(sa),{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),c("div",PA,[c("h3",SA,w(n.errorTitle),1),c("div",jA,[c("ul",AA,[(l(!0),_(X,null,ae(n.errors,(a,t)=>(l(),_("li",{key:t},w(a),1))),128))])])])])]))}};var CA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:DA});const NA={props:{status:{type:String,required:!1,default:""}},setup(n){const r=n,o=A(()=>{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:N(d(o))},[F(a.$slots,"default")],2))}};var EA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NA});const IA=["multiple","name","accept"],TA={key:0,class:""},RA=["src"],MA=["onClick"],FA={key:1,class:"flex flex-col items-center"},$A={class:"text-xs leading-4 text-center text-gray-400"},UA=B(" Drag a file here or "),VA=["onClick"],OA=B(" to choose a file "),LA={class:"text-xs leading-4 text-center text-gray-400 mt-2"},qA={key:2,class:"flex w-full h-full border border-gray-200 rounded"},BA=["src"],KA={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},ZA=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),WA={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},HA={key:3,class:"flex flex-wrap w-full"},YA=["src"],GA={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},JA=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),QA={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},XA=["onClick"],eD={key:4,class:"flex w-full items-center justify-center"},tD=["src"],aD={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},nD=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),iD={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},oD=["onClick"],sD={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(n,{emit:r}){const o=n;let a=K([]);const t=K([]),i=K(null);K(null),K(null);function e(){a.value=[],o.modelValue&&o.modelValue.length?t.value=[...o.modelValue]:t.value=[]}function s(R){return v.post(o.uploadUrl,R).then(E=>E.data).then(E=>E.map(x=>W(M({},x),{url:`/images/${x.id}`})))}function m(R){s(R).then(E=>{a=[].concat(E)}).catch(E=>{})}function p(R){return new Promise((E,x)=>{const U=new FileReader;U.readAsDataURL(R),U.onload=()=>E(U.result),U.onerror=L=>x(L)})}function k(R,E,x){if(!E.length||(o.multiple?r("change",R,E,x):o.base64?p(E[0]).then(L=>{r("change",R,L,x,E[0])}):r("change",R,E[0],x),o.preserveLocalFiles||(t.value=[]),Array.from(Array(E.length).keys()).forEach(L=>{const Y=E[L];Ze.isImageFile(Y.type)?p(Y).then(me=>{t.value.push({fileObject:Y,type:Y.type,name:Y.name,image:me})}):t.value.push({fileObject:Y,type:Y.type,name:Y.name})}),r("update:modelValue",t.value),!o.autoProcess))return;const U=new FormData;Array.from(Array(E.length).keys()).forEach(L=>{U.append(R,E[L],E[L].name)}),m(U)}function z(){i.value&&i.value.click()}function g(R){t.value=[],r("remove",R)}function h(R){t.value.splice(R,1),r("remove",R)}function D(){return new URL("/build/img/default-avatar.jpg",self.location)}return Pe(()=>{e()}),fe(()=>o.modelValue,R=>{t.value=[...R]}),(R,E)=>{const x=C("BaseIcon");return l(),_("form",{enctype:"multipart/form-data",class:N(["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",n.avatar?"w-32 h-32":"w-full"])},[c("input",{id:"file-upload",ref:(U,L)=>{L.inputRef=U,i.value=U},type:"file",tabindex:"-1",multiple:n.multiple,name:n.inputFieldName,accept:n.accept,class:"absolute z-10 w-full h-full opacity-0 cursor-pointer",onClick:E[0]||(E[0]=U=>U.target.value=null),onChange:E[1]||(E[1]=U=>k(U.target.name,U.target.files,U.target.files.length))},null,40,IA),!t.value.length&&n.avatar?(l(),_("div",TA,[c("img",{src:D(),class:"rounded",alt:"Default Avatar"},null,8,RA),c("a",{href:"#",class:"absolute z-30 bg-white rounded-full -bottom-3 -right-3 group",onClick:se(z,["prevent","stop"])},[u(x,{name:"PlusCircleIcon",class:"h-8 text-xl leading-6 text-primary-500 group-hover:text-primary-600"})],8,MA)])):t.value.length?t.value.length&&n.avatar&&!n.multiple?(l(),_("div",qA,[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,BA)):(l(),_("div",KA,[ZA,t.value[0].name?(l(),_("p",WA,w(t.value[0].name),1)):P("",!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:E[2]||(E[2]=se(U=>g(t.value[0]),["prevent","stop"]))},[u(x,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})])])):t.value.length&&n.multiple?(l(),_("div",HA,[(l(!0),_(X,null,ae(t.value,(U,L)=>(l(),_("a",{key:U,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:E[3]||(E[3]=se(()=>{},["prevent"]))},[U.image?(l(),_("img",{key:0,for:"file-upload",src:U.image,class:"block object-cover w-20 h-20 opacity-100",style:{animation:"fadeIn 2s ease"}},null,8,YA)):(l(),_("div",GA,[JA,U.name?(l(),_("p",QA,w(U.name),1)):P("",!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:se(Y=>h(L),["prevent","stop"])},[u(x,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,XA)]))),128))])):(l(),_("div",eD,[(l(!0),_(X,null,ae(t.value,(U,L)=>(l(),_("a",{key:U,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:E[4]||(E[4]=se(()=>{},["prevent"]))},[U.image?(l(),_("img",{key:0,for:"file-upload",src:U.image,class:"block object-contain h-20 opacity-100 min-w-[5rem]",style:{animation:"fadeIn 2s ease"}},null,8,tD)):(l(),_("div",aD,[nD,U.name?(l(),_("p",iD,w(U.name),1)):P("",!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:se(Y=>h(L),["prevent","stop"])},[u(x,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,oD)]))),128))])):(l(),_("div",FA,[u(x,{name:"CloudUploadIcon",class:"h-6 mb-2 text-xl leading-6 text-gray-400"}),c("p",$A,[UA,c("a",{class:"cursor-pointer text-primary-500 hover:text-primary-600 hover:font-medium relative z-20",href:"#",onClick:se(z,["prevent","stop"])}," browse ",8,VA),OA]),c("p",LA,w(n.recommendedText),1)]))],2)}}};var rD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sD});const dD={class:"relative z-10 p-4 md:p-8 bg-gray-200 rounded"},lD={props:{show:{type:Boolean,default:!1},rowOnXl:{type:Boolean,default:!1}},emits:["clear"],setup(n){return(r,o)=>(l(),T(Ne,{"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:f(()=>[xe(c("div",dD,[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:o[0]||(o[0]=a=>r.$emit("clear"))},w(r.$t("general.clear_all")),1),c("div",{class:N(["flex flex-col space-y-3",n.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,n.show]])]),_:3}))}};var cD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lD});const _D={style:{"font-family":"sans-serif"}},uD={props:{amount:{type:[Number,String],required:!0},currency:{type:Object,default:()=>null}},setup(n){const r=n,o=ra("utils"),a=_e(),t=A(()=>o.formatMoney(r.amount,r.currency||a.selectedCompanyCurrency));return(i,e)=>(l(),_("span",_D,w(d(t)),1))}};var mD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:uD});const pD={viewBox:"0 0 225 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fD=lt('',9),gD={id:"paint0_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},vD=["stop-color"],yD=["stop-color"],hD={id:"paint1_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},bD=["stop-color"],kD=["stop-color"],wD={id:"paint2_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},zD=["stop-color"],xD=["stop-color"],PD={id:"paint3_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},SD=["stop-color"],jD=["stop-color"],AD={id:"paint4_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},DD=["stop-color"],CD=["stop-color"],ND={id:"paint5_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},ED=["stop-color"],ID=["stop-color"],TD={id:"paint6_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},RD=["stop-color"],MD=["stop-color"],FD={id:"paint7_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},$D=["stop-color"],UD=["stop-color"],VD={id:"paint8_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},OD=["stop-color"],LD=["stop-color"],qD={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(n){return(r,o)=>(l(),_("svg",pD,[fD,c("defs",null,[c("linearGradient",gD,[c("stop",{"stop-color":n.darkColor},null,8,vD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,yD)]),c("linearGradient",hD,[c("stop",{"stop-color":n.darkColor},null,8,bD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,kD)]),c("linearGradient",wD,[c("stop",{"stop-color":n.darkColor},null,8,zD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,xD)]),c("linearGradient",PD,[c("stop",{"stop-color":n.darkColor},null,8,SD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,jD)]),c("linearGradient",AD,[c("stop",{"stop-color":n.darkColor},null,8,DD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,CD)]),c("linearGradient",ND,[c("stop",{"stop-color":n.darkColor},null,8,ED),c("stop",{offset:"1","stop-color":n.lightColor},null,8,ID)]),c("linearGradient",TD,[c("stop",{"stop-color":n.darkColor},null,8,RD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,MD)]),c("linearGradient",FD,[c("stop",{"stop-color":n.darkColor},null,8,$D),c("stop",{offset:"1","stop-color":n.lightColor},null,8,UD)]),c("linearGradient",VD,[c("stop",{"stop-color":n.darkColor},null,8,OD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,LD)])])]))}};const BD={class:"flex flex-col items-center justify-center h-screen"},KD={class:"loader loader-white"},ZD=lt('
',3),WD={props:{showBgOverlay:{default:!1,type:Boolean}},setup(n){return(r,o)=>(l(),_("div",BD,[c("div",KD,[ZD,u(qD,{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 HD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:WD});const YD={props:{type:{type:String,default:"section-title",validator:function(n){return["section-title","heading-title"].indexOf(n)!==-1}}},setup(n){const r=n,o=A(()=>({"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:N(d(o))},[F(a.$slots,"default")],2))}};var GD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:YD});const JD={props:{name:{type:String,required:!0}},setup(n){const r=K(!1);return Pe(()=>{r.value=!0}),(o,a)=>r.value?(l(),T(da(d(la)[n.name]),{key:0,class:"h-5 w-5"})):P("",!0)}};var QD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:JD});const XD={class:"rounded-md bg-yellow-50 p-4 relative"},eC={class:"flex flex-col"},tC={class:"flex"},aC={class:"shrink-0"},nC={class:"ml-3"},iC={class:"text-sm font-medium text-yellow-800"},oC={class:"mt-2 text-sm text-yellow-700"},sC={role:"list",class:"list-disc pl-5 space-y-1"},rC={key:0,class:"mt-4 ml-3"},dC={class:"-mx-2 -my-1.5 flex flex-row-reverse"},lC=["onClick"],cC={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(n,{emit:r}){return(o,a)=>{const t=C("BaseIcon");return l(),_("div",XD,[u(t,{name:"XIcon",class:"h-5 w-5 text-yellow-500 absolute right-4 cursor-pointer",onClick:a[0]||(a[0]=i=>o.$emit("hide"))}),c("div",eC,[c("div",tC,[c("div",aC,[u(t,{name:"ExclamationIcon",class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),c("div",nC,[c("h3",iC,w(n.title),1),c("div",oC,[c("ul",sC,[(l(!0),_(X,null,ae(n.lists,(i,e)=>(l(),_("li",{key:e},w(i),1))),128))])])])]),n.actions.length?(l(),_("div",rC,[c("div",dC,[(l(!0),_(X,null,ae(n.actions,(i,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:s=>o.$emit(`${i}`)},w(i),9,lC))),128))])])):P("",!0)])])}}};var _C=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:cC});const uC={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},mC=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),pC=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),fC=[mC,pC],gC={key:1,class:"absolute inset-y-0 left-0 flex items-center pl-3"},vC={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"},yC={key:3,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},hC={class:"text-gray-500 sm:text-sm"},bC=["type","value","disabled"],kC={key:4,class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"},wC=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),zC=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),xC=[wC,zC],PC={key:5,class:"absolute inset-y-0 right-0 flex items-center pr-3"},SC={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(n,{emit:r}){const o=n;K(!1);const a=pe(),t=A(()=>!!a.left||o.loading&&o.loadingPosition==="left"),i=A(()=>!!a.right||o.loading&&o.loadingPosition==="right"),e=A(()=>t.value&&i.value?"px-10":t.value?"pl-10":i.value?"pr-10":""),s=A(()=>o.addon?"flex-1 min-w-0 block w-full px-3 py-2 !rounded-none !rounded-r-md":o.inlineAddon?"pl-7":""),m=A(()=>o.invalid?"border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500":"focus:ring-primary-400 focus:border-primary-400"),p=A(()=>o.disabled?"border-gray-100 bg-gray-100 !text-gray-400 ring-gray-200 focus:ring-gray-200 focus:border-gray-100":""),k=A(()=>{let g=`${o.containerClass} `;return o.addon?`${o.containerClass} flex`:g});function z(g){let h=g.target.value;o.modelModifiers.uppercase&&(h=h.toUpperCase()),r("update:modelValue",h)}return(g,h)=>{const D=C("BaseContentPlaceholdersBox"),R=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(R,{key:0},{default:f(()=>[u(D,{rounded:!0,class:N(`w-full ${n.contentLoadClass}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:N([[n.containerClass,d(k)],"relative rounded-md shadow-sm font-base"])},[n.loading&&n.loadingPosition==="left"?(l(),_("div",uC,[(l(),_("svg",{class:N(["animate-spin !text-primary-500",[n.iconLeftClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},fC,2))])):d(t)?(l(),_("div",gC,[F(g.$slots,"left",{class:N(n.iconLeftClass)})])):P("",!0),n.addon?(l(),_("span",vC,w(n.addon),1)):P("",!0),n.inlineAddon?(l(),_("div",yC,[c("span",hC,w(n.inlineAddon),1)])):P("",!0),c("input",le(g.$attrs,{type:n.type,value:n.modelValue,disabled:n.disabled,class:[n.defaultInputClass,d(e),d(s),d(m),d(p)],onInput:z}),null,16,bC),n.loading&&n.loadingPosition==="right"?(l(),_("div",kC,[(l(),_("svg",{class:N(["animate-spin !text-primary-500",[n.iconRightClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},xC,2))])):P("",!0),d(i)?(l(),_("div",PC,[F(g.$slots,"right",{class:N(n.iconRightClass)})])):P("",!0)],2))}}};var jC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:SC});const AC={props:{layout:{type:String,default:"two-column"}},setup(n){const r=n,o=A(()=>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:N(d(o))},[F(a.$slots,"default")],2))}};var DC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:AC});const CC={class:"text-sm text-red-500"},NC={key:0,class:"text-gray-500 text-xs mt-1 font-light"},EC={key:1,class:"block mt-0.5 text-sm text-red-500"},IC={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(n){const r=n,o=A(()=>r.variant==="horizontal"?"grid md:grid-cols-12 items-center":""),a=A(()=>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=A(()=>r.variant==="horizontal"?"md:col-span-8 md:col-start-5 md:col-ends-12":"flex flex-col mt-1"),i=pe(),e=A(()=>!!i.labelRight);return(s,m)=>{const p=C("BaseContentPlaceholdersText"),k=C("BaseContentPlaceholders"),z=C("BaseIcon"),g=et("tooltip");return l(),_("div",{class:N([d(o),"relative w-full text-left"])},[n.contentLoading?(l(),T(k,{key:0},{default:f(()=>[u(p,{lines:1,class:N(n.contentLoadClass)},null,8,["class"])]),_:1})):n.label?(l(),_("label",{key:1,class:N([d(a),"flex text-sm not-italic items-center font-medium text-gray-800 whitespace-nowrap justify-between"])},[c("div",null,[B(w(n.label)+" ",1),xe(c("span",CC," * ",512),[[dt,n.required]])]),d(e)?F(s.$slots,"labelRight",{key:0}):P("",!0),n.tooltip?xe((l(),T(z,{key:1,name:"InformationCircleIcon",class:"h-4 text-gray-400 cursor-pointer hover:text-gray-600"},null,512)),[[g,{content:n.tooltip}]]):P("",!0)],2)):P("",!0),c("div",{class:N(d(t))},[F(s.$slots,"default"),n.helpText?(l(),_("span",NC,w(n.helpText),1)):P("",!0),n.error?(l(),_("span",EC,w(n.error),1)):P("",!0)],2)],2)}}};var TC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:IC});const RC={props:{status:{type:String,required:!1,default:""}},setup(n){return{badgeColorClasses:A(()=>{switch(n.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 MC(n,r,o,a,t,i){return l(),_("span",{class:N(a.badgeColorClasses)},[F(n.$slots,"default")],2)}var FC=ee(RC,[["render",MC]]),$C=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:FC});const UC={class:"flex-1 text-sm"},VC={key:0,class:"relative flex items-center h-10 pl-2 bg-gray-200 border border-gray-200 border-solid rounded"},OC={class:"w-full pt-1 text-xs text-light"},LC={key:0},qC={class:"text-red-600"},BC={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(n,{emit:r}){const o=n,a=Fe();He(),$e();const t=je(),i=ve();ge();const{t:e}=Se(),s=K(null);K(!1);let m=Ve(M({},o.item));Object.assign(m,o.item),A(()=>0);const p=A({get:()=>o.item.description,set:h=>{o.store[o.storeProp].items[o.index].description=h}});async function k(h){return(await a.fetchItems({search:h})).data.data}function z(){t.openModal({title:e("items.add_item"),componentName:"ItemModal",refreshData:h=>r("select",h),data:{taxPerItem:o.taxPerItem,taxes:o.taxes,itemIndex:o.index,store:o.store,storeProps:o.storeProp}})}function g(h){o.store.deselectItem(h)}return(h,D)=>{const R=C("BaseIcon"),E=C("BaseSelectAction"),x=C("BaseMultiselect"),U=C("BaseTextarea");return l(),_("div",UC,[n.item.item_id?(l(),_("div",VC,[B(w(n.item.name)+" ",1),c("span",{class:"absolute text-gray-400 cursor-pointer top-[8px] right-[10px]",onClick:D[0]||(D[0]=L=>g(n.index))},[u(R,{name:"XCircleIcon"})])])):(l(),T(x,{key:1,modelValue:s.value,"onUpdate:modelValue":[D[1]||(D[1]=L=>s.value=L),D[2]||(D[2]=L=>h.$emit("select",L))],"content-loading":n.contentLoading,"value-prop":"id","track-by":"id",invalid:n.invalid,"preserve-search":"","initial-search":d(m).name,label:"name",filterResults:!1,"resolve-on-load":"",delay:500,searchable:"",options:k,object:"",onSearchChange:D[3]||(D[3]=L=>h.$emit("search",L))},{action:f(()=>[d(i).hasAbilities(d(O).CREATE_ITEM)?(l(),T(E,{key:0,onClick:z},{default:f(()=>[u(R,{name:"PlusCircleIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),B(" "+w(h.$t("general.add_new_item")),1)]),_:1})):P("",!0)]),_:1},8,["modelValue","content-loading","invalid","initial-search"])),c("div",OC,[u(U,{modelValue:d(p),"onUpdate:modelValue":D[4]||(D[4]=L=>J(p)?p.value=L:null),"content-loading":n.contentLoading,autosize:!0,class:"text-xs",borderless:!0,placeholder:h.$t("estimates.item.type_item_description"),invalid:n.invalidDescription},null,8,["modelValue","content-loading","placeholder","invalid"]),n.invalidDescription?(l(),_("div",LC,[c("span",qC,w(h.$tc("validation.description_maxlength")),1)])):P("",!0)])])}}};var KC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:BC});const ZC={},WC={class:"text-sm not-italic font-medium leading-5 text-primary-800"};function HC(n,r){return l(),_("label",WC,[F(n.$slots,"default")])}var YC=ee(ZC,[["render",HC]]),GC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:YC});const JC={class:"flex items-end justify-center min-h-screen px-4 text-center sm:block sm:px-2"},QC=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),XC={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"},eN={props:{show:{type:Boolean,default:!1}},emits:["close","open"],setup(n,{emit:r}){const o=n,a=pe(),t=je();rt(()=>{o.show&&r("open",o.show)});const i=A(()=>{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=A(()=>!!a.header);return(s,m)=>(l(),T(ca,{to:"body"},[u(d(st),{appear:"",as:"template",show:n.show},{default:f(()=>[u(d(ot),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:n.show,onClose:m[0]||(m[0]=p=>s.$emit("close"))},{default:f(()=>[c("div",JC,[u(d(Ee),{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:f(()=>[u(d(it),{class:"fixed inset-0 transition-opacity bg-gray-700 bg-opacity-25"})]),_:1}),QC,u(d(Ee),{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:f(()=>[c("div",{class:N(`inline-block +`,Qz="NET PROFIT",Xz="\u0388\u03BA\u03B8\u03B5\u03C3\u03B7 \u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03C9\u03BD: \u0391\u03C0\u03CC \u03A4\u03BF\u03BD \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",ex="\u03A3\u03A5\u039D\u039F\u039B\u039F \u03A0\u03A9\u039B\u0397\u03A3\u0397\u03A3",tx="\u0388\u03BA\u03B8\u03B5\u03C3\u03B7 \u03A0\u03C9\u03BB\u03AE\u03C3\u03B5\u03C9\u03BD: \u0391\u03C0\u03CC \u03A4\u03BF\u03BD \u03A0\u03B5\u03BB\u03AC\u03C4\u03B7",ax="\u03A6\u039F\u03A1\u039F\u039B\u039F\u0393\u0399\u039A\u0397 \u0395\u039A\u0398\u0395\u03A3\u0397",nx="\u03A3\u03A5\u039D\u039F\u039B\u039F \u03A6\u039F\u03A1\u039F\u03A5",ix="\u03A6\u03BF\u03C1\u03BF\u03BB\u03BF\u03B3\u03B9\u03BA\u03AE \u03BA\u03BB\u03AC\u03C3\u03B7",ox="\u0388\u03BE\u03BF\u03B4\u03B1",sx="\u03A7\u03C1\u03AD\u03C9\u03C3\u03B7 \u03C3\u03B5,",rx="\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03C3\u03B5,",dx="\u039B\u03AE\u03C8\u03B7 \u03B1\u03C0\u03CC",lx="\u03A6\u03CC\u03C1\u03BF\u03C2";var cx={navigation:tz,general:az,dashboard:nz,tax_types:iz,global_search:oz,company_switcher:sz,dateRange:rz,customers:dz,items:lz,estimates:cz,invoices:_z,recurring_invoices:uz,payments:mz,expenses:pz,login:fz,modules:gz,users:vz,reports:yz,settings:hz,wizard:bz,validation:kz,errors:wz,pdf_estimate_label:zz,pdf_estimate_number:xz,pdf_estimate_date:Pz,pdf_estimate_expire_date:Sz,pdf_invoice_label:jz,pdf_invoice_number:Az,pdf_invoice_date:Dz,pdf_invoice_due_date:Cz,pdf_notes:Nz,pdf_items_label:Ez,pdf_quantity_label:Iz,pdf_price_label:Tz,pdf_discount_label:Rz,pdf_amount_label:Mz,pdf_subtotal:Fz,pdf_total:$z,pdf_payment_label:Uz,pdf_payment_receipt_label:Vz,pdf_payment_date:Oz,pdf_payment_number:Lz,pdf_payment_mode:qz,pdf_payment_amount_received_label:Bz,pdf_expense_report_label:Kz,pdf_total_expenses_label:Zz,pdf_profit_loss_label:Wz,pdf_sales_customers_label:Hz,pdf_sales_items_label:Yz,pdf_tax_summery_label:Gz,pdf_income_label:Jz,pdf_net_profit_label:Qz,pdf_customer_sales_report:Xz,pdf_total_sales_label:ex,pdf_item_sales_label:tx,pdf_tax_report_label:ax,pdf_total_tax_label:nx,pdf_tax_types_label:ix,pdf_expenses_label:ox,pdf_bill_to:sx,pdf_ship_to:rx,pdf_received_from:dx,pdf_tax_label:lx};const _x={dashboard:"Upravlja\u010Dka Plo\u010Da",customers:"Klijenti",items:"Stavke",invoices:"Fakture","recurring-invoices":"Recurring Invoices",expenses:"Rashodi",estimates:"Ponude",payments:"Uplate",reports:"Izvje\u0161taji",settings:"Postavke",logout:"Odjava",users:"Korisnici",modules:"Modules"},ux={add_company:"Dodaj tvrtku",view_pdf:"Pogledaj PDF",copy_pdf_url:"Kopiraj PDF link",download_pdf:"Preuzmi PDF",save:"Spremi",create:"Kreiraj",cancel:"Otka\u017Ei",update:"A\u017Euriraj",deselect:"Poni\u0161ti izbor",download:"Preuzmi",from_date:"Od Datuma",to_date:"Do Datuma",from:"Po\u0161iljatelj",to:"Primatelj",ok:"Ok",yes:"Yes",no:"No",sort_by:"Poslo\u017Ei Po",ascending:"Rastu\u0107e",descending:"Padaju\u0107e",subject:"Predmet",body:"Tijelo",message:"Poruka",send:"Po\u0161alji",preview:"Preview",go_back:"Natrag",back_to_login:"Natrag na prijavu?",home:"Po\u010Detna",filter:"Filter",delete:"Obri\u0161i",edit:"Izmjeni",view:"Pogledaj",add_new_item:"Dodaj novu stavku",clear_all:"Izbri\u0161i sve",showing:"Prikazujem",of:"od",actions:"Radnje",subtotal:"UKUPNO",discount:"POPUST",fixed:"Fiksno",percentage:"Postotak",tax:"POREZ",total_amount:"UKUPAN IZNOS",bill_to:"Dokument za",ship_to:"Isporu\u010Diti za",due:"Du\u017Ean",draft:"U izradi",sent:"Poslano",all:"Sve",select_all:"Izaberi sve",select_template:"Select Template",choose_file:"Klikni ovdje da izabere\u0161 fajl",choose_template:"Izaberi predlo\u017Eak",choose:"Izaberi",remove:"Ukloni",select_a_status:"Izaberi status",select_a_tax:"Izaberi porez",search:"Pretraga",are_you_sure:"Jeste li sigurni?",list_is_empty:"Popis 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 postavke Po\u0161te",send_mail_successfully:"Po\u0161ta uspje\u0161no poslana",setting_updated:"Postavke uspje\u0161no a\u017Eurirane",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:"Radnja nije uspjela",retry:"Poku\u0161aj ponovo",choose_note:"Odaberi napomenu",no_note_found:"Ne postoje spremljene napomene",insert_note:"Unesi bilje\u0161ku",copied_pdf_url_clipboard:"Link do PDF fajla kopiran!",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",mark_as_default:"Postavi kao zadano"},mx={select_year:"Odaberi godinu",cards:{due_amount:"Du\u017Ean iznos",customers:"Klijenti",invoices:"Ra\u010Duni",estimates:"Ponude",payments:"Payments"},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:"Dospijele fakture",due_on:"Datum dospije\u0107a",customer:"Klijent",amount_due:"Iznos dospije\u0107a",actions:"Akcije",view_all:"Pogledaj sve"},recent_estimate_card:{title:"Nedavne ponude",date:"Datum",customer:"Klijent",amount_due:"Iznos dospije\u0107a",actions:"Akcije",view_all:"Pogledaj sve"}},px={name:"Naziv",description:"Opis",percent:"Postotak",compound_tax:"Slo\u017Eeni porez"},fx={search:"Pretraga...",customers:"Klijenti",users:"Korisnici",no_results_found:"Nema rezultata"},gx={label:"SWITCH COMPANY",no_results_found:"No Results Found",add_new_company:"Add new company",new_company:"New company",created_message:"Company created successfully"},vx={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"},yx={title:"Klijenti",prefix:"Prefix",add_customer:"Dodaj Klijenta",contacts_list:"Popis 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 dospije\u0107a",email:"Email",address:"Adresa",phone:"Telefon",website:"Web stranica",overview:"Pregled",invoice_prefix:"Invoice Prefix",estimate_prefix:"Estimate Prefix",payment_prefix:"Payment Prefix",enable_portal:"Uklju\u010Di portal",country:"Dr\u017Eava",state:"\u017Dupanija",city:"Grad",zip_code:"Po\u0161tanski broj",added_on:"Datum dodavanja",action:"Radnja",password:"Lozinka",confirm_password:"Confirm Password",street_number:"Broj ulice",primary_currency:"Primarna valuta",description:"Opis",add_new_customer:"Dodaj Novog Klijenta",save_customer:"Spremi klijenta",update_customer:"A\u017Euriraj klijenta",customer:"Klijent | Klijenti",new_customer:"Novi klijent",edit_customer:"Izmjeni klijenta",basic_info:"Osnovne informacije",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:"Adresa za naplatu",shipping_address:"Adresa za dostavu",copy_billing_address:"Kopiraj iz adrese za naplatu",no_customers:"Jo\u0161 uvijek nema klijenata!",no_customers_found:"Klijenti nisu prona\u0111eni!",no_contact:"Nema kontakta",no_contact_name:"Nema imena kontakta",list_of_customers:"Sekcija sadr\u017Ei popis 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 za odabir",new_transaction:"Nova transakcija",no_matching_customers:"Nije prona\u0111eno!",phone_number:"Broj telefona",create_date:"Datum kreiranja",confirm_delete:"Ne\u0107ete mo\u0107i vratiti klijenta, sve njegove Fakture, Ponude i Uplate. | Ne\u0107ete mo\u0107i vratiti odabrane klijente, sve njihove Fakture, Ponude i Uplate.",created_message:"Klijent uspje\u0161no kreiran",updated_message:"Klijent uspje\u0161no a\u017Euriran",address_updated_message:"Address Information Updated succesfully",deleted_message:"Klijent uspje\u0161no obrisan | Klijenti uspje\u0161no obrisani",edit_currency_not_allowed:"Cannot change currency once transactions created."},hx={title:"Stavke",items_list:"Popis stavki",name:"Naziv",unit:"Jedinica",description:"Opis",added_on:"Datum dodavanja",price:"Cijena",date_of_creation:"Datum kreiranja",not_selected:"Nema odabrane stavke",action:"Radnje",add_item:"Dodaj Stavku",save_item:"Spremi Stavku",update_item:"A\u017Euriraj Stavku",item:"Stavka | Stavke",add_new_item:"Dodaj novu stavku",new_item:"Nova stavka",edit_item:"Izmjeni stavku",no_items:"Jo\u0161 uvijek nema stavki!",list_of_items:"Ova sekcija sadr\u017Ei popis stavki.",select_a_unit:"odaberi jedinicu",taxes:"Porezi",item_attached_message:"Nije dozvoljeno brisanje stavke koja se koristi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Stavku | Ne\u0107e\u0161 mo\u0107i vratiti ove Stavke",created_message:"Stavka uspje\u0161no kreirana",updated_message:"Stavka uspje\u0161no a\u017Eurirana",deleted_message:"Stavka uspje\u0161no obrisana | Stavke uspje\u0161no obrisane"},bx={title:"Ponude",accept_estimate:"Accept Estimate",reject_estimate:"Reject Estimate",estimate:"Ponuda | Ponude",estimates_list:"Popis ponuda",days:"{days} Dan",months:"{months} Mjesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",customer:"KLIJENT",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPIJE\u0106A",partially_paid:"Djelomi\u010Dno Pla\u0107eno",total:"Ukupno za pla\u0107anje",discount:"Popust",sub_total:"Osnovica za obra\u010Dun PDV-a",estimate_number:"Broj ponude",ref_number:"Poziv na broj",contact:"Kontakt",add_item:"Dodaj stavku",date:"Datum",due_date:"Datum Dospije\u0107a",expiry_date:"Datum Isteka",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Radnja",notes:"Napomena",tax:"Porez",estimate_template:"Predlo\u017Eak",convert_to_invoice:"Pretvori u Fakturu",mark_as_sent:"Ozna\u010Di kao Poslano",send_estimate:"Po\u0161alji Ponudu",resend_estimate:"Ponovo po\u0161alji Ponudu",record_payment:"Unesi uplatu",add_estimate:"Dodaj Ponudu",save_estimate:"Spremi Ponudu",confirm_conversion:"Detalji ove Ponude \u0107e biti iskori\u0161teni za pravljenje Fakture.",conversion_message:"Faktura uspje\u0161no kreirana",confirm_send_estimate:"Ova Ponuda \u0107e biti poslana putem Email-a klijentu",confirm_mark_as_sent:"Ova Ponuda \u0107e biti ozna\u010Dena kao Poslana",confirm_mark_as_accepted:"Ova Ponuda \u0107e biti ozna\u010Dena kao Prihva\u0107ena",confirm_mark_as_rejected:"Ova Ponuda \u0107e biti ozna\u010Dena kao Odbijena",no_matching_estimates:"Ne postoji odgovaraju\u0107a ponuda!",mark_as_sent_successfully:"Ponuda uspje\u0161no ozna\u010Dena kao Poslana",send_estimate_successfully:"Ponuda uspje\u0161no poslana",errors:{required:"Obvezno polje!"},accepted:"Prihva\u0107eno",rejected:"Odbijeno",expired:"Expired",sent:"Poslano",draft:"U izradi",viewed:"Viewed",declined:"Odbijeno",new_estimate:"Nova Ponuda",add_new_estimate:"Dodaj novu Ponudu",update_Estimate:"A\u017Euriraj Ponudu",edit_estimate:"Izmjeni Ponudu",items:"stavke",Estimate:"Ponuda | Ponude",add_new_tax:"Dodaj novi Porez",no_estimates:"Jo\u0161 uvijek nema Ponuda!",list_of_estimates:"Ova sekcija sadr\u017Ei popis Ponuda.",mark_as_rejected:"Ozna\u010Di kao odbijeno",mark_as_accepted:"Ozna\u010Di kao prihva\u0107eno",marked_as_accepted_message:"Ponuda ozna\u010Dena kao prihva\u0107ena",marked_as_rejected_message:"Ponuda ozna\u010Dena kao odbijena",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Ponudu | Ne\u0107e\u0161 mo\u0107i vratiti ove Ponude",created_message:"Ponuda uspje\u0161no kreirana",updated_message:"Ponuda uspje\u0161no a\u017Eurirana",deleted_message:"Ponuda uspje\u0161no obrisana | Ponude uspje\u0161no obrisane",something_went_wrong:"ne\u0161to je krenulo naopako",item:{title:"Naziv stavke",description:"Opis",quantity:"Koli\u010Dina",price:"Cijena",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)"},mark_as_default_estimate_template_description:"Ako je omogu\u0107eno, izabrani predlo\u017Eak biti \u0107e automatski izabran za nove predra\u010Dune."},kx={title:"Fakture",download:"Download",pay_invoice:"Pay Invoice",invoices_list:"Popis Faktura",invoice_information:"Invoice Information",days:"{days} dan",months:"{months} Mjesec",years:"{years} Godina",all:"Sve",paid:"Pla\u0107eno",unpaid:"Nepla\u0107eno",viewed:"Pregledano",overdue:"Zaka\u0161njenje",completed:"Izvr\u0161eno",customer:"KLIJENT",paid_status:"STATUS UPLATE",ref_no:"POZIV NA BROJ",number:"BROJ",amount_due:"IZNOS DOSPIJE\u0106A",partially_paid:"Djelomi\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 Dospije\u0107a",status:"Status",add_tax:"Dodaj Porez",amount:"Iznos",action:"Radnja",notes:"Napomena",view:"Pogledaj",send_invoice:"Po\u0161alji Fakturu",resend_invoice:"Ponovo po\u0161alji Fakturu",invoice_template:"Predlo\u017Eak Fakture",conversion_message:"Invoice cloned successful",template:"Predlo\u017Eak",mark_as_sent:"Ozna\u010Di kao Poslano",confirm_send_invoice:"Ova Faktura \u0107e biti poslana putem Email-a klijentu",invoice_mark_as_sent:"Ova Faktura \u0107e biti ozna\u010Dena kao poslana",confirm_mark_as_accepted:"This invoice will be marked as Accepted",confirm_mark_as_rejected:"This invoice will be marked as Rejected",confirm_send:"Ova Faktura \u0107e biti poslana 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:"Izmjeni Fakturu",new_invoice:"Nova Faktura",save_invoice:"Spremi Fakturu",update_invoice:"A\u017Euriraj Fakturu",add_new_tax:"Dodaj novi Porez",no_invoices:"Jo\u0161 uvijek nema Faktura!",mark_as_rejected:"Mark as rejected",mark_as_accepted:"Mark as accepted",list_of_invoices:"Ova sekcija sadr\u017Ei popis Faktura.",select_invoice:"Odaberi Fakturu",no_matching_invoices:"Ne postoje Fakture koje odgovaraju pretrazi!",mark_as_sent_successfully:"Faktura uspje\u0161no ozna\u010Dena kao Poslana",invoice_sent_successfully:"Faktura uspje\u0161no poslana",cloned_successfully:"Uspje\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:"Cijena",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)"},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:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Fakturu | Ne\u0107e\u0161 mo\u0107i vratiti ove Fakture",created_message:"Faktura uspje\u0161no kreirana",updated_message:"Faktura uspje\u0161no a\u017Eurirana",deleted_message:"Faktura uspje\u0161no obrisana | Fakture uspje\u0161no obrisane",marked_as_sent_message:"Faktura ozna\u010Dena kao uspje\u0161no poslana",something_went_wrong:"ne\u0161to je krenulo naopako",invalid_due_amount_message:"Ukupan iznos za pla\u0107anje na 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.",mark_as_default_invoice_template_description:"Ako je omogu\u0107eno, izabrani predlo\u017Eak biti \u0107e automatski izabran za nove ra\u010Dune."},wx={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."},zx={title:"Uplate",payments_list:"Popis uplata",record_payment:"Unesi Uplatu",customer:"Klijent",date:"Datum",amount:"Iznos",action:"Radnja",payment_number:"Broj uplate",payment_mode:"Na\u010Din pla\u0107anja",invoice:"Faktura",note:"Napomena",add_payment:"Dodaj Uplatu",new_payment:"Nova Uplata",edit_payment:"Izmjeni Uplatu",view_payment:"Pogledaj Uplatu",add_new_payment:"Dodaj Novu Uplatu",send_payment_receipt:"Po\u0161alji potvrdu o uplati",send_payment:"Po\u0161alji Uplatu",save_payment:"Spremi Uplatu",update_payment:"A\u017Euriraj Uplatu",payment:"Uplata | Uplate",no_payments:"Jo\u0161 uvijek nema uplata!",not_selected:"Nije odabrano",no_invoice:"Nema fakture",no_matching_payments:"Ne postoje uplate koje odgovaraju pretrazi!",list_of_payments:"Ova sekcija sadr\u017Ei popis uplata.",select_payment_mode:"Odaberi na\u010Din pla\u0107anja",confirm_mark_as_sent:"Ovo pla\u0107anje \u0107e biti ozna\u010Deno kao Poslano",confirm_send_payment:"Ovo pla\u0107anje \u0107e biti poslano putem Email-a klijentu",send_payment_successfully:"Pla\u0107anje uspje\u0161no poslano",something_went_wrong:"ne\u0161to je krenulo naopako",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Uplatu | Ne\u0107e\u0161 mo\u0107i vratiti ove Uplate",created_message:"Uplata uspje\u0161no kreirana",updated_message:"Uplata uspje\u0161no a\u017Eurirana",deleted_message:"Uplata uspje\u0161no obrisana | Uplate uspje\u0161no obrisane",invalid_amount_message:"Iznos Uplate je pogre\u0161an"},xx={title:"Rashodi",expenses_list:"Popis Rashoda",select_a_customer:"Odaberi klijenta",expense_title:"Naslov",customer:"Klijent",currency:"Currency",contact:"Kontakt",category:"Kategorija",from_date:"Datum od",to_date:"Datum do",expense_date:"Datum",description:"Opis",receipt:"Ra\u010Dun",amount:"Iznos",action:"Radnja",not_selected:"Nije odabrano",note:"Napomena",category_id:"ID kategorije",date:"Datum",add_expense:"Dodaj Rashod",add_new_expense:"Dodaj Novi Rashod",save_expense:"Spremi Rashod",update_expense:"A\u017Euriraj Rashod",download_receipt:"Preuzmi Ra\u010Dun",edit_expense:"Izmjeni Rashod",new_expense:"Novi Rashod",expense:"Rashod | Rashodi",no_expenses:"Jo\u0161 uvijek nema rashoda!",list_of_expenses:"Ova sekcija sadr\u017Ei popis rashoda.",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovaj Rashod | Ne\u0107e\u0161 mo\u0107i vratiti ove Rashode",created_message:"Rashod uspje\u0161no kreiran",updated_message:"Rashod uspje\u0161no a\u017Euriran",deleted_message:"Rashod uspje\u0161no obrisan | Rashodi uspje\u0161no obrisani",categories:{categories_list:"Popis Kategorija",title:"Naslov",name:"Naziv",description:"Opis",amount:"Iznos",actions:"Radnje",add_category:"Dodaj Kategoriju",new_category:"Nova Kategorija",category:"Kategorija | Kategorije",select_a_category:"Izaberi kategoriju"}},Px={email:"Email",password:"Lozinka",forgot_password:"Zaboravili ste lozinku?",or_signIn_with:"ili se prijavite sa",login:"Prijava",register:"Registracija",reset_password:"Resetiraj lozinku",password_reset_successfully:"Lozinka Uspje\u0161no Resetiranja",enter_email:"Unesi email",enter_password:"Unesi lozinku",retype_password:"Ponovo unesi lozinku"},Sx={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:"The minimum required version for this module does not match. Please upgrade your crater app to version: {version} to proceed.",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"},jx={title:"Korisnici",users_list:"Popis korisnika",name:"Ime i prezime",description:"Opis",added_on:"Datum dodavanja",date_of_creation:"Datum kreiranja",action:"Radnja",add_user:"Dodaj Korisnika",save_user:"Spremi Korisnika",update_user:"A\u017Euriraj Korisnika",user:"Korisnik | Korisnici",add_new_user:"Dodaj novog korisnika",new_user:"Novi Korisnik",edit_user:"Izmjeni Korisnika",no_users:"Jo\u0161 uvijek nema korisnika!",list_of_users:"Ova sekcija sadr\u017Ei popis korisnika.",email:"Email",phone:"Broj telefona",password:"Lozinka",user_attached_message:"Ne mo\u017Eete obrisati stavku koja je ve\u0107 u upotrebi",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovog Korisnika | Ne\u0107e\u0161 mo\u0107i vratiti ove Korisnike",created_message:"Korisnik uspje\u0161no napravljen",updated_message:"Korisnik uspje\u0161no a\u017Euriran",deleted_message:"Korisnik uspje\u0161no obrisan | Korisnici uspje\u0161no obrisani",select_company_role:"Select Role for {company}",companies:"Companies"},Ax={title:"Izvje\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 Izvje\u0161taj",report:"Izvje\u0161taj | Izvje\u0161taji",profit_loss:{profit_loss:"Prihod & Rashod",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi raspon datuma"},sales:{sales:"Prodaja",date_range:"Izaberi raspon datuma",to_date:"Datum do",from_date:"Datum od",report_type:"Vrsta Izve\u0161taja"},taxes:{taxes:"Porezi",to_date:"Datum do",from_date:"Datum od",date_range:"Izaberi raspon datuma"},errors:{required:"Polje je obavezno"},invoices:{invoice:"Faktura",invoice_date:"Datum Fakture",due_date:"Datum Dospije\u0107a",amount:"Iznos",contact_name:"Ime Kontakta",status:"Status"},estimates:{estimate:"Ponuda",estimate_date:"Datum Ponude",due_date:"Datum Dospije\u0107a",estimate_number:"Broj Ponude",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 raspon datuma"}},Dx={menu_title:{account_settings:"Postavke Naloga",company_information:"Podaci o firmi",customization:"Prilago\u0111avanje",preferences:"Preference",notifications:"Obavje\u0161tenja",tax_types:"Vrste Poreza",expense_category:"Kategorije Rashoda",update_app:"A\u017Euriraj Aplikaciju",backup:"Backup",file_disk:"File Disk",custom_fields:"Prilago\u0111ena polja",payment_modes:"Na\u010Din pla\u0107anja",notes:"Napomene",exchange_rate:"Exchange Rate",address_information:"Address Information"},address_information:{section_description:" You can update Your Address information using form below."},title:"Postavke",setting:"Postavke | Postavke",general:"Op\u0107e",language:"Jezik",primary_currency:"Primarna Valuta",timezone:"Vremenska Zona",date_format:"Format Datuma",currencies:{title:"Valute",currency:"Valuta | Valute",currencies_list:"Popis Valuta",select_currency:"Odaberi Valutu",name:"Naziv",code:"Kod",symbol:"Simbol",precision:"Preciznost",thousand_separator:"Separator za tisu\u0107e",decimal_separator:"Separator za decimale",position:"Pozicija",position_of_symbol:"Pozicija simbola",right:"Desno",left:"Lijevo",action:"Radnja",add_currency:"Dodaj Valutu"},mail:{host:"Mail Host",port:"Mail Port",driver:"Mail Driver",secret:"Lozinka",mailgun_secret:"Mailgun Lozinka",mailgun_domain:"Domain",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Lozinka",ses_key:"SES Klju\u010D",password:"Mail Lozinka",username:"Mail Korisni\u010Dko Ime",mail_config:"Mail Postavke",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 Postavke",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, ponudama i drugim dokumentima koji se prave u ovoj aplikaciji.",phone:"Telefon",country:"Dr\u017Eava",state:"\u017Dupanija",city:"Grad",address:"Adresa",zip:"Po\u0161tanski broj",save:"Spremi",delete:"Delete",updated_message:"Podaci o firmi uspje\u0161no spremljeni",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:"Prilago\u0111ena polja",section_description:"Prilagodite va\u0161e Fakture, Ponude i Uplate sa svojim poljima. Koristite polja navedena ni\u017Ee na formatu adrese na stranici Postavke/Prilago\u0111avanje.",add_custom_field:"Dodaj prilago\u0111eno polje",edit_custom_field:"Izmjeni prilago\u0111eno polje",field_name:"Naziv polja",label:"Oznaka",type:"Vrsta",name:"Naziv",slug:"Slug",required:"Obavezno",placeholder:"Opis polja (Placeholder)",help_text:"Pomo\u0107ni tekst",default_value:"Zadana vrijednost",prefix:"Prefiks",starting_number:"Po\u010Detni broj",model:"Model",help_text_description:"Unesite opis koji \u0107e pomo\u0107i korisnicima razumjeti svrhu ovog prilago\u0111enog polja.",suffix:"Sufiks",yes:"Da",no:"Ne",order:"Redosljed",custom_field_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovo prilago\u0111eno polje",already_in_use:"Prilago\u0111eno polje je ve\u0107 u uporabi",deleted_message:"Prilago\u0111eno polje je uspje\u0161no obrisano",options:"opcije",add_option:"Dodaj opcije",add_another_option:"Dodaj jo\u0161 jednu opciju",sort_in_alphabetical_order:"Poredaj po Abecedi",add_options_in_bulk:"Grupno dodavanje opcija",use_predefined_options:"Koristi predefinirane opcije",select_custom_date:"Odaberi datum",select_relative_date:"Odaberi relativan datum",ticked_by_default:"Zadano odabrano",updated_message:"Prilago\u0111eno polje uspje\u0161no a\u017Eurirano",added_message:"Prilago\u0111eno polje uspje\u0161no dodato",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:"prilago\u0111avanje",updated_message:"Podaci o firmi su uspje\u0161no a\u017Eurirani",save:"Spremi",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:"Fakture",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:"Zadani sadr\u017Eaj email-a za Fakture",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",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:"Postavke fakture uspje\u0161no spremljene",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:"Ponude",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:"Zadani sadr\u017Eaj email-a za Ponude",company_address_format:"Format adrese firme",shipping_address_format:"Format adrese za dostavu firme",billing_address_format:"Format adrese za naplatu firme",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:"Uplate",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:"Zadani sadr\u017Eaj email-a za potvrdu o pla\u0107anju (ra\u010Dun)",company_address_format:"Format adrese firme",from_customer_address_format:"Format adrese klijenta",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:"Stavke",units:"Jedinice",add_item_unit:"Dodaj jedinicu stavke",edit_item_unit:"Izmjeni jedinicu stavke",unit_name:"Naziv jedinice",item_unit_added:"Jedinica stavke dodana",item_unit_updated:"Jedinica stavke a\u017Eurirana",item_unit_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu jedinicu stavke",already_in_use:"Jedinica stavke se ve\u0107 koristi",deleted_message:"Jedinica stavke uspje\u0161no obrisana"},notes:{title:"Napomene",description:"U\u0161tedite vrijeme prave\u0107i napomene i koriste\u0107i ih na fakturama, ponudama i uplatama.",notes:"Napomene",type:"Vrsta",add_note:"Dodaj Napomenu",add_new_note:"Dodaj novu Napomenu",name:"Naziv",edit_note:"Izmjeni Napomenu",note_added:"Napomena uspje\u0161no dodana",note_updated:"Napomena uspje\u0161no a\u017Eurirana",note_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu Napomenu",already_in_use:"Napomena se ve\u0107 koristi",deleted_message:"Napomena uspje\u0161no obrisana"}},account_settings:{profile_picture:"Profilna slika",name:"Ime i prezime",email:"Email",password:"Lozinka",confirm_password:"Potvrdi lozinku",account_settings:"Postavke ra\u010Duna",save:"Spremi",section_description:"Mo\u017Eete a\u017Eurirati Va\u0161e ime i prezime, email i lozinku koriste\u0107i formu ni\u017Ee.",updated_message:"Postavke ra\u010Duna uspje\u0161no a\u017Eurirane"},user_profile:{name:"Ime i prezime",email:"Email",password:"Lozinka",confirm_password:"Potvrdi lozinku"},notification:{title:"Obavijesti",email:"\u0160alji obavijesti na",description:"Koje email obavijesti \u017Eelite dobiti kada se ne\u0161to promijeni?",invoice_viewed:"Faktura pogledana",invoice_viewed_desc:"Kada klijent pogleda fakturu koja je poslana putem ove aplikacije.",estimate_viewed:"Ponuda gledana",estimate_viewed_desc:"Kada klijent pogleda ponudu koja je poslana putem ove aplikacije.",save:"Spremi",email_save_message:"Email uspje\u0161no sa\u010Duvan",please_enter_email:"Molim Vas unesite E-mail"},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:"Vrste Poreza",add_tax:"Dodaj Porez",edit_tax:"Izmjeni Porez",description:"Mo\u017Eete dodati ili ukloniti porez. Ova aplikacija podr\u017Eava porez, kako na individualnim stavkama tako i na fakturi/ponudi.",add_new_tax:"Dodaj Novi Porez",tax_settings:"Postavke Poreza",tax_per_item:"Porez po Stavkama",tax_name:"Naziv Poreza",compound_tax:"Slo\u017Eeni Porez",percent:"Postotak",action:"Radnja",tax_setting_description:"Izaberite ovo ako \u017Eelite dodati porez na individualne stavke. Zadano pona\u0161anje je da je porez dodan direktno na fakturu.",created_message:"Vrsta poreza uspje\u0161no kreirana",updated_message:"Vrsta poreza uspje\u0161no a\u017Eurirana",deleted_message:"Vrsta poreza uspje\u0161no obrisana",confirm_delete:"Ne\u0107ete mo\u0107i vratiti Vrstu Poreza",already_in_use:"Porez se ve\u0107 koristi"},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",payments_attached:"This payment method is already attached to payments. Please delete the attached payments to proceed with deletion.",expenses_attached:"This payment method is already attached to expenses. Please delete the attached expenses to proceed with deletion.",deleted_message:"Payment Mode deleted successfully"},expense_category:{title:"Kategorija Rashoda",action:"Radnja",description:"Kategorije su obavezne za dodavanje rashoda. Mo\u017Ee\u0161 dodati ili obrisati kategorije.",add_new_category:"Dodaj novu kategoriju",add_category:"Dodaj kategoriju",edit_category:"Izmjeni kategoriju",category_name:"Naziv kategorije",category_description:"Opis",created_message:"Kategorija rashoda je uspje\u0161no kreirana",deleted_message:"Kategorija rashoda je uspje\u0161no izbrisana",updated_message:"Kategorija rashoda je uspje\u0161no a\u017Eurirana",confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovu kategoriju rashoda",already_in_use:"Kategorija se ve\u0107 koristi"},preferences:{currency:"Valuta",default_language:"Jezik",time_zone:"Vremenska Zona",fiscal_year:"Financijska Godina",date_format:"Format datuma",discount_setting:"Postavke popusta",discount_per_item:"Popust po stavkama",discount_setting_description:"Izaberite ovo ako \u017Eelite dodati Popust na individualne stavke. Zadana vrijednost je da je Popust dodan direktno na fakturu.",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:"Spremi",preference:"Preferencija | Preferencije",general_settings:"Zadane postavke za sistem",updated_message:"Preferencije uspje\u0161no a\u017Eurirane",select_language:"Izaberi Jezik",select_time_zone:"Izaberi Vremensku Zonu",select_date_format:"Izaberi Format Datuma",select_financial_year:"Izaberi Financijsku Godinu",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:"A\u017Euriraj aplikaciju",description:"Lako mo\u017Ee\u0161 a\u017Eurirati Crater tako da napravi\u0161 provjeru novih verzija klikom na polje ispod",check_update:"Provjeri a\u017Euriranost",avail_update:"Dostupna je nova verzija",next_version:"Sljede\u0107a verzija",requirements:"Zahtjevi",update:"A\u017Euriraj sada",update_progress:"A\u017Euriranje je u toku...",progress_text:"Trajanje je svega par minuta. Nemojte osvije\u017Eavati ili zatvoriti stranicu dok a\u017Euriranje ne bude gotovo",update_success:"Aplikacija je a\u017Eurirana! Molim Vas pri\u010Dekajte da se stranica automatski osvje\u017Ei.",latest_message:"Nema nove verzije! A\u017Eurirana posljednja verzija.",current_version:"Trenutna verzija",download_zip_file:"Preuzmi ZIP paket",unzipping_package:"Raspakiranje 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",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:"Sigurnosna kopija | Sigurnosne kopije",description:"Backup je zip arhiv koji sadr\u017Ei sve fajlove iz foldera koje ste naveli, tako\u0111er sadr\u017Ei sigurnosnu kopiju baze podataka.",new_backup:"Dodaj novi Backup",create_backup:"Napravi Backup",select_backup_type:"Izaberi tip Backupa",backup_confirm_delete:"Ne\u0107e\u0161 mo\u0107i vratiti ovaj Backup",path:"putanja",new_disk:"Novi Disk",created_at:"datum kreiranja",size:"veli\u010Dina",dropbox:"dropbox",local:"lokalni",healthy:"zdrav",amount_of_backups:"broj backupa",newest_backups:"najnoviji backupi",used_storage:"kori\u0161teno skladi\u0161te",select_disk:"Izaberi Disk",action:"Radnja",deleted_message:"Backup uspje\u0161no obrisan",created_message:"Backup uspje\u0161no napravljen",invalid_disk_credentials:"Pogre\u0161ne akreditacije za odabrani disk"},disk:{title:"File Disk | File Disks",description:"Zadano pona\u0161anje je da Crater koristi lokalni disk za \u010Duvanje backupa, 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:"Vrsta",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:"Zadani Drajver",is_default:"DA LI JE ZADAN",set_default_disk:"Postavi zadani Disk",set_default_disk_confirm:"Ovaj disk \u0107e biti postavljen kao zadani i svi novi PDF fajlovi \u0107e biti sa\u010Duvani na ovom disku",success_set_default_disk:"Disk je uspje\u0161no postavljen kao zadani",save_pdf_to_disk:"Spremi PDF fajlove na Disk",disk_setting_description:" Uklju\u010Dite ovo ako \u017Eelite da spremite kopiju PDF fajla svake Fakture, Ponude i Uplate na va\u0161 zadani disk automatski. Uklju\u010Divanjem ove opcije smanjujete vrijeme u\u010Ditavanja pregleda PDF fajlova.",select_disk:"Izaberi Disk",disk_settings:"Disk Postavke",confirm_delete:"Ovo ne\u0107e utjecati na va\u0161e postoje\u0107e fajlove i foldere na navedenom disku, ali \u0107e se konfiguracija va\u0161eg diska izbrisati iz Cratera.",action:"Radnja",edit_file_disk:"Izmjeni File Disk",success_create:"Disk uspje\u0161no dodan",success_update:"Disk uspje\u0161no a\u017Euriran",error:"Dodavanje diska nije uspelo",deleted_message:"File Disk uspje\u0161no obrisan",disk_variables_save_successfully:"Disk uspje\u0161no pode\u0161en",disk_variables_save_error:"Postavljanje diska nije uspjelo.",invalid_disk_credentials:"Pogre\u0161ne akreditacije za navedeni 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."}},Cx={account_info:"Informacije o ra\u010Dunu",account_info_desc:"Detalji u nastavku koriste se za kreiranje glavnog administratorskog ra\u010Duna. Mogu\u0107e ih je izmjeniti u bilo kada nakon prijavljivanja.",name:"Naziv",email:"E-mail",password:"Lozinka",confirm_password:"Potvrdi lozinku",save_cont:"Spremi & Nastavi",company_info:"Informacije o firmi",company_info_desc:"Ove informacije \u0107e biti prikazane na fakturama. Mogu\u0107e ih je izmjeniti kasnije u postavkama.",company_name:"Naziv firme",company_logo:"Logo firme",logo_preview:"Pregled logotipa",preferences:"Preference",preferences_desc:"Zadane Preference za sistem",currency_set_alert:"The company's currency cannot be changed later.",country:"Dr\u017Eava",state:"\u017Dupanija",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:"Financijska godina",date_format:"Format datuma",from_address:"Adresa po\u0161iljaoca",username:"Korisni\u010Dko ime",next:"Sljede\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:"Lozinka 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 akreditacije prate\u0107i obrazac u nastavku."},permissions:{permissions:"Dozvole",permission_confirm_title:"Da li ste sigurni da \u017Eelite nastaviti?",permission_confirm_desc:"Provjera dozvola za foldere nije uspjela",permission_desc:"U nastavku se nalazi popis dozvola za foldere koji su nu\u017Eni kako bi alikacija radila. Ukoliko provjera dozvola ne uspije, a\u017Euriraj svoj popis dozvola za te foldere."},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 drajver",secret:"Lozinka",mailgun_secret:"Mailgun Lozinka",mailgun_domain:"Domen",mailgun_endpoint:"Mailgun Endpoint",ses_secret:"SES Lozinka",ses_key:"SES Klju\u010D",password:"Lozinka za e-mail",username:"Koristni\u010Dko ime za e-mail",mail_config:"E-mail konfiguracija",from_name:"Naziv po\u0161iljatelja",from_mail:"E-mail adresa po\u0161iljatelja",encryption:"E-mail enkripcija",mail_config_desc:"Ispod se nalazi forma za postavljanje E-mail drajvera za slanje po\u0161te iz aplikacije. Tako\u0111er mo\u017Eete podesiti provajdere tre\u0107e strane kao Sendgrid, SES itd."},req:{system_req:"Sistemski zahtjevi",php_req_version:"Zahtjeva PHP verziju {version} ",check_req:"Provjeri zahtjeve",system_req_desc:"Crater ima nekoliko zahtjeva za server. Provjeri da li tvoj server ima potrebnu verziju PHP-a i sva navedena pro\u0161irenja navedena u nastavku"},errors:{migrate_failed:"Neuspje\u0161no migriranje",database_variables_save_error:"Konfiguraciju nije moguc\u0301e zapisati u .env datoteku. Provjeri dozvole za datoteku",mail_variables_save_error:"E-mail konfiguracija neuspje\u0161na",connection_failed:"Neuspje\u0161no povezivanje s bazom podataka",database_should_be_empty:"Baza podataka treba biti prazna"},success:{mail_variables_save_successfully:"E-mail je uspje\u0161no konfiguriran",database_variables_save_successfully:"Baza podataka je uspje\u0161no konfigurirana"}},Nx={invalid_phone:"Pogre\u0161an Broj Telefona",invalid_url:"Neva\u017Ee\u0107i URL (primer: http://www.craterapp.com)",invalid_domain_url:"Pogre\u0161an URL (primjer: 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 reset",not_yet:"Jo\u0161 uvijek ni\u0161ta? Po\u0161alji ponovno",password_min_length:"Lozinka mora imati {count} znakova",name_min_length:"Naziv mora imati najmanje {count} slova",prefix_min_length:"Prefix must have at least {count} letters.",enter_valid_tax_rate:"Unesite odgovaraju\u0107u poreznu stopu",numbers_only:"Mogu se unositi samo brojevi",characters_only:"Mogu se unositi samo znakovi",password_incorrect:"Lozinka mora biti identi\u010Dna",password_length:"Lozinka mora imati {count} znakova",qty_must_greater_than_zero:"Koli\u010Dina mora biti ve\u0107a od 0.",price_greater_than_zero:"Cijena mora biti ve\u0107a od 0",payment_greater_than_zero:"Uplata mora biti ve\u0107a od 0",payment_greater_than_due_amount:"Unesena uplata je ve\u0107a od dospije\u0107a iznosa ove fakture",quantity_maxlength:"Koli\u010Dina ne mo\u017Ee imati vi\u0161e od 20 znakova",price_maxlength:"Cijena ne mo\u017Ee imati vi\u0161e od 20 znakova",price_minvalue:"Cijena mora biti ve\u0107a od 0",amount_maxlength:"Iznos ne mo\u017Ee da ima vi\u0161e od 20 znakova",amount_minvalue:"Iznos mora biti ve\u0107i od 0",discount_maxlength:"Discount should not be greater than max discount",description_maxlength:"Opis ne mo\u017Ee imati vi\u0161e od 65,000 znakova",subject_maxlength:"Predmet ne mo\u017Ee imati vi\u0161e od 100 znakova",message_maxlength:"Poruka ne mo\u017Ee imati vi\u0161e od 255 znakova",maximum_options_error:"Maksimalan broj opcija je izabran. Prvo uklonite izabranu opciju da bi izabrali drugu",notes_maxlength:"Napomena ne mo\u017Ee imati vi\u0161e od 65,000 znakova",address_maxlength:"Adresa ne mo\u017Ee imati vi\u0161e od 255 znakova",ref_number_maxlength:"Poziv na broj ne mo\u017Ee imati vi\u0161e od 225 znakova",prefix_maxlength:"Prefiks ne mo\u017Ee imati vi\u0161e od 5 znakova",something_went_wrong:"ne\u0161to je krenulo naopako",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."},Ex={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"},Ix="Ponuda",Tx="Broj Ponude",Rx="Datum Ponude",Mx="Datum isteka Ponude",Fx="Faktura",$x="Broj Fakture",Ux="Datum Fakture",Vx="Datum dospije\u0107a Fakture",Ox="Napomena",Lx="Stavke",qx="Koli\u010Dina",Bx="Cijena",Kx="Popust",Zx="Iznos",Wx="Osnovica za obra\u010Dun PDV-a",Hx="Ukupan iznos",Yx="Pla\u0107anje",Gx="POTVRDA O UPLATI",Jx="Datum Uplate",Qx="Broj Uplate",Xx="Na\u010Din Pla\u0107anja",eP="Iznos Uplate",tP="IZVJE\u0160TAJ O RASHODIMA",aP="RASHODI UKUPNO",nP="IZVEJ\u0160TAJ O PRIHODIMA I RASHODIMA",iP="Izvje\u0161taj Prodaje po Strankama",oP="Izvje\u0161taj Prodaje po Stavkama",sP="Izvje\u0161taj Poreza",rP="PRIHOD",dP="NETO PROFIT",lP="Izvje\u0161taj o Prodaji: Po Klijentu",cP="PRODAJA UKUPNO",_P="Izvje\u0161taj o Prodaji: Po Stavci",uP="IZVE\u0160TAJ O POREZIMA",mP="UKUPNO POREZ",pP="Vrsta Poreza",fP="Rashodi",gP="Ra\u010Dun za,",vP="Isporu\u010Diti za,",yP="Poslat od strane:",hP="Porez";var bP={navigation:_x,general:ux,dashboard:mx,tax_types:px,global_search:fx,company_switcher:gx,dateRange:vx,customers:yx,items:hx,estimates:bx,invoices:kx,recurring_invoices:wx,payments:zx,expenses:xx,login:Px,modules:Sx,users:jx,reports:Ax,settings:Dx,wizard:Cx,validation:Nx,errors:Ex,pdf_estimate_label:Ix,pdf_estimate_number:Tx,pdf_estimate_date:Rx,pdf_estimate_expire_date:Mx,pdf_invoice_label:Fx,pdf_invoice_number:$x,pdf_invoice_date:Ux,pdf_invoice_due_date:Vx,pdf_notes:Ox,pdf_items_label:Lx,pdf_quantity_label:qx,pdf_price_label:Bx,pdf_discount_label:Kx,pdf_amount_label:Zx,pdf_subtotal:Wx,pdf_total:Hx,pdf_payment_label:Yx,pdf_payment_receipt_label:Gx,pdf_payment_date:Jx,pdf_payment_number:Qx,pdf_payment_mode:Xx,pdf_payment_amount_received_label:eP,pdf_expense_report_label:tP,pdf_total_expenses_label:aP,pdf_profit_loss_label:nP,pdf_sales_customers_label:iP,pdf_sales_items_label:oP,pdf_tax_summery_label:sP,pdf_income_label:rP,pdf_net_profit_label:dP,pdf_customer_sales_report:lP,pdf_total_sales_label:cP,pdf_item_sales_label:_P,pdf_tax_report_label:uP,pdf_total_tax_label:mP,pdf_tax_types_label:pP,pdf_expenses_label:fP,pdf_bill_to:gP,pdf_ship_to:vP,pdf_received_from:yP,pdf_tax_label:hP},kP={cs:Xi,en:cs,fr:br,es:Cd,ar:Vl,de:Gc,ja:su,pt_BR:Em,it:Lp,sr:Xf,nl:lv,ko:py,lv:xh,sv:Tb,sk:Bk,vi:ez,pl:gm,el:cx,hr:bP};const wP={props:{bgColor:{type:String,default:null},color:{type:String,default:null}},setup(n){return(r,o)=>(l(),_("span",{class:"px-2 py-1 text-sm font-normal text-center text-green-800 uppercase bg-success",style:De({backgroundColor:n.bgColor,color:n.color})},[F(r.$slots,"default")],4))}};var zP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:wP});const xP={name:"BaseBreadcrumb"},PP={class:"flex flex-wrap py-4 text-gray-900 rounded list-reset"};function SP(n,r,o,a,t,i){return l(),_("nav",null,[c("ol",PP,[F(n.$slots,"default")])])}var jP=ee(xP,[["render",SP]]),AP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:jP});const DP={class:"pr-2 text-sm"},CP={key:0,class:"px-1"},NP={props:{title:{type:String,default:String},to:{type:String,default:"#"},active:{type:Boolean,default:!1,required:!1}},setup(n){return(r,o)=>{const a=C("router-link");return l(),_("li",DP,[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:n.to},{default:f(()=>[B(w(n.title),1)]),_:1},8,["to"]),n.active?P("",!0):(l(),_("span",CP,"/"))])}}};var EP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NP});const IP={},TP={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},RP=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),MP=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),FP=[RP,MP];function $P(n,r){return l(),_("svg",TP,FP)}var UP=ee(IP,[["render",$P]]);const VP={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(n){return["xs","sm","md","lg","xl"].indexOf(n)!==-1}},variant:{type:String,default:"primary",validator:function(n){return["primary","secondary","primary-outline","white","danger","gray"].indexOf(n)!==-1}}},setup(n){const r=n,o=A(()=>({"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=A(()=>{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=A(()=>({"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"})),i=A(()=>r.rounded?"!rounded-full":""),e=A(()=>({"-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"})),s=A(()=>({"text-white":r.variant==="primary","text-primary-700":r.variant==="secondary","text-gray-700":r.variant==="white","text-gray-400":r.variant==="gray"})),m=A(()=>({"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 z=C("BaseContentPlaceholdersBox"),g=C("BaseContentPlaceholders"),h=C("BaseCustomTag");return n.contentLoading?(l(),T(g,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:f(()=>[u(z,{rounded:!0,style:De([{width:"96px"},`height: ${d(a)}px;`])},null,8,["style"])]),_:1})):(l(),T(h,{key:1,tag:n.tag,disabled:n.disabled,class:N([n.defaultClass,d(o),d(t),d(i)])},{default:f(()=>[n.loading?(l(),T(UP,{key:0,class:N([d(e),d(s)])},null,8,["class"])):F(p.$slots,"left",{key:1,class:N(d(e))}),F(p.$slots,"default"),F(p.$slots,"right",{class:N([d(m),d(s)])})]),_:3},8,["tag","disabled","class"]))}}};var OP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:VP});const LP={class:"bg-white rounded-lg shadow"},qP={key:0,class:"px-5 py-4 text-black border-b border-gray-100 border-solid"},BP={key:1,class:"px-5 py-4 border-t border-gray-100 border-solid sm:px-6"},KP={props:{containerClass:{type:String,default:"px-4 py-5 sm:px-8 sm:py-8"}},setup(n){const r=pe(),o=A(()=>!!r.header),a=A(()=>!!r.footer);return(t,i)=>(l(),_("div",LP,[d(o)?(l(),_("div",qP,[F(t.$slots,"header")])):P("",!0),c("div",{class:N(n.containerClass)},[F(t.$slots,"default")],2),d(a)?(l(),_("div",BP,[F(t.$slots,"footer")])):P("",!0)]))}};var ZP=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:KP});const WP={class:"relative flex items-start"},HP={class:"flex items-center h-5"},YP=["id","disabled"],GP={class:"ml-3 text-sm"},JP=["for"],QP={key:1,class:"text-gray-500"},XP={props:{label:{type:String,default:""},description:{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(n,{emit:r}){const o=n;o.setInitialValue&&r("update:modelValue",o.modelValue);const a=A({get:()=>o.modelValue,set:i=>{r("update:modelValue",i),r("change",i)}}),t=A(()=>o.disabled?"text-gray-300 cursor-not-allowed":"text-primary-600 focus:ring-primary-500");return(i,e)=>(l(),_("div",WP,[c("div",HP,[xe(c("input",le({id:n.id,"onUpdate:modelValue":e[0]||(e[0]=s=>J(a)?a.value=s:null)},i.$attrs,{disabled:n.disabled,type:"checkbox",class:[n.checkboxClass,d(t)]}),null,16,YP),[[Vt,d(a)]])]),c("div",GP,[n.label?(l(),_("label",{key:0,for:n.id,class:N(`font-medium ${n.disabled?"text-gray-400 cursor-not-allowed":"text-gray-600"} cursor-pointer `)},w(n.label),11,JP)):P("",!0),n.description?(l(),_("p",QP,w(n.description),1)):P("",!0)])]))}};var eS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:XP});const tS={props:{rounded:{type:Boolean,default:!1},centered:{type:Boolean,default:!1},animated:{type:Boolean,default:!0}},setup(n){const r=n,o=A(()=>({"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:N(d(o))},[F(a.$slots,"default")],2))}};var aS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tS});const nS={props:{circle:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(n){const r=n,o=A(()=>({"base-content-circle":r.circle,"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",{class:N(["base-content-placeholders-box",d(o)])},null,2))}};var iS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nS});const oS={class:"base-content-placeholders-heading"},sS={key:0,class:"base-content-placeholders-heading__box"},rS=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),dS={props:{box:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},setup(n){return(r,o)=>(l(),_("div",oS,[n.box?(l(),_("div",sS)):P("",!0),rS]))}};var lS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:dS});const cS={class:"base-content-placeholders-text"},_S={props:{lines:{type:Number,default:4},rounded:{type:Boolean,default:!1}},setup(n){const r=n,o=A(()=>({"base-content-placeholders-is-rounded":r.rounded}));return(a,t)=>(l(),_("div",cS,[(l(!0),_(X,null,ae(n.lines,i=>(l(),_("div",{key:i,class:N([d(o),"w-full h-full base-content-placeholders-text__line"])},null,2))),128))]))}};var uS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_S}),zt={id:null,label:null,type:null,name:null,default_answer:null,is_required:!1,placeholder:null,model_type:null,order:1,options:[]},mS=n=>Xe({locale:"en",fallbackLocale:"en",messages:n});const{global:re}=mS;var Ze={isImageFile(n){return["image/gif","image/jpeg","image/png"].includes(n)},addClass(n,r){n.classList?n.classList.add(r):n.className+=" "+r},hasClass(n,r){return n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className)},formatMoney(n,r=0){r||(r={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),n=n/100;let{precision:o,decimal_separator:a,thousand_separator:t,symbol:i,swap_currency_symbol:e}=r;try{o=Math.abs(o),o=isNaN(o)?2:o;const s=n<0?"-":"";let m=parseInt(n=Math.abs(Number(n)||0).toFixed(o)).toString(),p=m.length>3?m.length%3:0,k=`${i}`,z=p?m.substr(0,p)+t:"",g=m.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+t),h=o?a+Math.abs(n-m).toFixed(o).slice(2):"",D=s+z+g+h;return e?D+" "+k:k+" "+D}catch(s){console.error(s)}},mergeSettings(n,r){Object.keys(r).forEach(function(o){o in n&&(n[o]=r[o])})},checkValidUrl(n){return n.includes("http://localhost")||n.includes("http://127.0.0.1")||n.includes("https://localhost")||n.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(n)},checkValidDomainUrl(n){return n.includes("localhost")||n.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(n)},fallbackCopyTextToClipboard(n){var r=document.createElement("textarea");r.value=n,r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{var o=document.execCommand("copy"),a=o?"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(n){if(!navigator.clipboard){this.fallbackCopyTextToClipboard(n);return}navigator.clipboard.writeText(n).then(function(){return!0},function(r){return!1})},arrayDifference(n,r){return n==null?void 0:n.filter(o=>(r==null?void 0:r.indexOf(o))<0)},getBadgeStatusColor(n){switch(n){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"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(n){switch(n){case"DRAFT":return re.t("general.draft");case"PAID":return re.t("invoices.paid");case"UNPAID":return re.t("invoices.unpaid");case"SENT":return re.t("general.sent");case"REJECTED":return re.t("estimates.rejected");case"ACCEPTED":return re.t("estimates.accepted");case"VIEWED":return re.t("invoices.viewed");case"EXPIRED":return re.t("estimates.expired");case"PARTIALLY PAID":return re.t("estimates.partially_paid");case"COMPLETED":return re.t("invoices.completed");case"DUE":return re.t("general.due");default:return n}},toFormData(n){const r=new FormData;return Object.keys(n).forEach(o=>{Ot.exports.isArray(n[o])?r.append(o,JSON.stringify(n[o])):(n[o]===null&&(n[o]=""),r.append(o,n[o]))}),r}};const pS=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"custom-field",state:()=>({customFields:[],isRequestOngoing:!1,currentCustomField:M({},zt)}),getters:{isEdit(){return!!this.currentCustomField.id}},actions:{resetCustomFields(){this.customFields=[]},resetCurrentCustomField(){this.currentCustomField=M({},zt)},fetchCustomFields(a){return new Promise((t,i)=>{v.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchNoteCustomFields(a){return new Promise((t,i)=>{if(this.isRequestOngoing)return t({requestOnGoing:!0}),!0;this.isRequestOngoing=!0,v.get("/api/v1/custom-fields",{params:a}).then(e=>{this.customFields=e.data.data,this.isRequestOngoing=!1,t(e)}).catch(e=>{this.isRequestOngoing=!1,y(e),i(e)})})},fetchCustomField(a){return new Promise((t,i)=>{v.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(s=>s={name:s})),t(e)}).catch(e=>{y(e),i(e)})})},addCustomField(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/custom-fields",a).then(s=>{let m=M({},s.data.data);m.options&&(m.options=m.options.map(p=>({name:p||""}))),this.customFields.push(m),t.showNotification({type:"success",message:o.t("settings.custom_fields.added_message")}),i(s)}).catch(s=>{y(s),e(s)})})},updateCustomField(a){const t=$();return new Promise((i,e)=>{v.put(`/api/v1/custom-fields/${a.id}`,a).then(s=>{let m=M({},s.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:o.t("settings.custom_fields.updated_message")}),i(s)}).catch(s=>{y(s),e(s)})})},deleteCustomFields(a){const t=$();return new Promise((i,e)=>{v.delete(`/api/v1/custom-fields/${a}`).then(s=>{let m=this.customFields.findIndex(p=>p.id===a);this.customFields.splice(m,1),s.data.error?t.showNotification({type:"error",message:o.t("settings.custom_fields.already_in_use")}):t.showNotification({type:"success",message:o.t("settings.custom_fields.deleted_message")}),i(s)}).catch(s=>{y(s),e(s)})})}}})()},fS={key:1,class:"relative"},gS={class:"absolute bottom-0 right-0 z-10"},vS={class:"flex p-2"},yS={class:"mb-1 ml-2 text-xs font-semibold text-gray-500 uppercase"},hS=["onClick"],bS={class:"flex pl-1"},kS={props:{contentLoading:{type:Boolean,default:!1},modelValue:{type:String,default:""},fields:{type:Array,default:null}},emits:["update:modelValue"],setup(n,{emit:r}){const o=n,a=pS();let t=K([]),i=K([]),e=K([]),s=K([]),m=K([]);fe(()=>o.fields,g=>{o.fields&&o.fields.length>0&&z()}),fe(()=>a.customFields,g=>{i.value=g?g.filter(h=>h.model_type==="Invoice"):[],m.value=g?g.filter(h=>h.model_type==="Customer"):[],s.value=g?g.filter(h=>h.model_type==="Payment"):[],e.value=g.filter(h=>h.model_type==="Estimate"),z()}),Pe(()=>{k()});const p=A({get:()=>o.modelValue,set:g=>{r("update:modelValue",g)}});async function k(){await a.fetchCustomFields()}async function z(){t.value=[],o.fields&&o.fields.length>0&&(o.fields.find(g=>g=="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"}]}),o.fields.find(g=>g=="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"}]}),o.fields.find(g=>g=="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(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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"},...i.value.map(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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"},...e.value.map(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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"},...s.value.map(g=>({label:g.label,value:g.slug}))]}),o.fields.find(g=>g=="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 z(),(g,h)=>{const D=C("BaseContentPlaceholdersBox"),R=C("BaseContentPlaceholders"),E=C("BaseIcon"),x=C("BaseButton"),U=C("BaseDropdown"),L=C("BaseEditor");return n.contentLoading?(l(),T(R,{key:0},{default:f(()=>[u(D,{rounded:!0,class:"w-full",style:{height:"200px"}})]),_:1})):(l(),_("div",fS,[c("div",gS,[u(U,{"close-on-select":!0,"max-height":"220",position:"top-end","width-class":"w-92",class:"mb-2"},{activator:f(()=>[u(x,{type:"button",variant:"primary-outline",class:"mr-4"},{left:f(Y=>[u(E,{name:"PlusSmIcon",class:N(Y.class)},null,8,["class"])]),default:f(()=>[B(w(g.$t("settings.customization.insert_fields"))+" ",1)]),_:1})]),default:f(()=>[c("div",vS,[(l(!0),_(X,null,ae(d(t),(Y,me)=>(l(),_("ul",{key:me,class:"list-none"},[c("li",yS,w(Y.label),1),(l(!0),_(X,null,ae(Y.fields,(Z,I)=>(l(),_("li",{key:I,class:"w-48 text-sm font-normal cursor-pointer hover:bg-gray-100 rounded ml-1 py-0.5",onClick:b=>p.value+=`{${Z.value}}`},[c("div",bS,[u(E,{name:"ChevronDoubleRightIcon",class:"h-3 mt-1 mr-2 text-gray-400"}),B(" "+w(Z.label),1)])],8,hS))),128))]))),128))])]),_:1})]),u(L,{modelValue:d(p),"onUpdate:modelValue":h[0]||(h[0]=Y=>J(p)?p.value=Y:null)},null,8,["modelValue"])]))}}};var wS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:kS});const zS={props:{tag:{type:String,default:"button"}},setup(n,{slots:r,attrs:o,emit:a}){return()=>Lt(`${n.tag}`,o,r)}};var xS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zS});const PS={key:0,class:"text-sm font-bold leading-5 text-black non-italic space-y-1"},SS={key:0},jS={key:1},AS={key:2},DS={key:3},CS={key:4},NS={key:5},ES={props:{address:{type:Object,required:!0}},setup(n){return(r,o)=>{var a,t,i,e,s,m,p,k,z,g,h,D,R,E;return n.address?(l(),_("div",PS,[((a=n.address)==null?void 0:a.address_street_1)?(l(),_("p",SS,w((t=n.address)==null?void 0:t.address_street_1)+",",1)):P("",!0),((i=n.address)==null?void 0:i.address_street_2)?(l(),_("p",jS,w((e=n.address)==null?void 0:e.address_street_2)+",",1)):P("",!0),((s=n.address)==null?void 0:s.city)?(l(),_("p",AS,w((m=n.address)==null?void 0:m.city)+",",1)):P("",!0),((p=n.address)==null?void 0:p.state)?(l(),_("p",DS,w((k=n.address)==null?void 0:k.state)+",",1)):P("",!0),((g=(z=n.address)==null?void 0:z.country)==null?void 0:g.name)?(l(),_("p",CS,w((D=(h=n.address)==null?void 0:h.country)==null?void 0:D.name)+",",1)):P("",!0),((R=n.address)==null?void 0:R.zip)?(l(),_("p",NS,w((E=n.address)==null?void 0:E.zip)+".",1)):P("",!0)])):P("",!0)}}};var IS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ES}),Me={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null};function xt(){return{name:"",contact_name:"",email:"",phone:null,password:"",confirm_password:"",currency_id:null,website:null,billing:M({},Me),shipping:M({},Me),customFields:[],fields:[],enable_portal:!1}}const ke=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"customer",state:()=>({customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{},isFetchingInitialSettings:!1,isFetchingViewData:!1,currentCustomer:M({},xt()),editCustomer:null}),getters:{isEdit:a=>!!a.currentCustomer.id},actions:{resetCurrentCustomer(){this.currentCustomer=M({},xt())},copyAddress(){this.currentCustomer.shipping=W(M({},this.currentCustomer.billing),{type:"shipping"})},fetchCustomerInitialSettings(a){const t=ge(),i=Te(),e=_e();this.isFetchingInitialSettings=!0;let s=[];a?s=[this.fetchCustomer(t.params.id)]:this.currentCustomer.currency_id=e.selectedCompanyCurrency.id,Promise.all([i.fetchCurrencies(),i.fetchCountries(),...s]).then(async([m,p,k])=>{this.isFetchingInitialSettings=!1}).catch(m=>{y(m)})},fetchCustomers(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},fetchViewCustomer(a){return new Promise((t,i)=>{this.isFetchingViewData=!0,v.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,y(e),i(e)})})},fetchCustomer(a){return new Promise((t,i)=>{v.get(`/api/v1/customers/${a}`).then(e=>{Object.assign(this.currentCustomer,e.data.data),this.setAddressStub(e.data.data),t(e)}).catch(e=>{y(e),i(e)})})},addCustomer(a){return new Promise((t,i)=>{v.post("/api/v1/customers",a).then(e=>{this.customers.push(e.data.data),$().showNotification({type:"success",message:o.t("customers.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},updateCustomer(a){return new Promise((t,i)=>{v.put(`/api/v1/customers/${a.id}`,a).then(e=>{if(e.data){let s=this.customers.findIndex(p=>p.id===e.data.data.id);this.customers[s]=a,$().showNotification({type:"success",message:o.t("customers.updated_message")})}t(e)}).catch(e=>{y(e),i(e)})})},deleteCustomer(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/customers/delete",a).then(s=>{let m=this.customers.findIndex(p=>p.id===a);this.customers.splice(m,1),t.showNotification({type:"success",message:o.tc("customers.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleCustomers(){const a=$();return new Promise((t,i)=>{v.post("/api/v1/customers/delete",{ids:this.selectedCustomers}).then(e=>{this.selectedCustomers.forEach(s=>{let m=this.customers.findIndex(p=>p.id===s.id);this.customers.splice(m,1)}),a.showNotification({type:"success",message:o.tc("customers.deleted_message",2)}),t(e)}).catch(e=>{y(e),i(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=M({},Me)),a.shipping||(this.currentCustomer.shipping=M({},Me))}}})()},je=(n=!1)=>(n?window.pinia.defineStore:Q)({id:"modal",state:()=>({active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""}),getters:{isEdit(){return!!this.id}},actions:{openModal(o){this.componentName=o.componentName,this.active=!0,o.id&&(this.id=o.id),this.title=o.title,o.content&&(this.content=o.content),o.data&&(this.data=o.data),o.refreshData&&(this.refreshData=o.refreshData),o.variant&&(this.variant=o.variant),o.size&&(this.size=o.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=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.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=>{y(e),i(e)})})},fetchItem(a){return new Promise((t,i)=>{v.get(`/api/v1/items/${a}`).then(e=>{e.data&&Object.assign(this.currentItem,e.data.data),t(e)}).catch(e=>{y(e),i(e)})})},addItem(a){return new Promise((t,i)=>{v.post("/api/v1/items",a).then(e=>{const s=$();this.items.push(e.data.data),s.showNotification({type:"success",message:o.t("items.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},updateItem(a){return new Promise((t,i)=>{v.put(`/api/v1/items/${a.id}`,a).then(e=>{if(e.data){const s=$();let m=this.items.findIndex(p=>p.id===e.data.data.id);this.items[m]=a.item,s.showNotification({type:"success",message:o.t("items.updated_message")})}t(e)}).catch(e=>{y(e),i(e)})})},deleteItem(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/items/delete",a).then(s=>{let m=this.items.findIndex(p=>p.id===a);this.items.splice(m,1),t.showNotification({type:"success",message:o.tc("items.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleItems(){const a=$();return new Promise((t,i)=>{v.post("/api/v1/items/delete",{ids:this.selectedItems}).then(e=>{this.selectedItems.forEach(s=>{let m=this.items.findIndex(p=>p.id===s.id);this.items.splice(m,1)}),a.showNotification({type:"success",message:o.tc("items.deleted_message",2)}),t(e)}).catch(e=>{y(e),i(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(i=>i.id);this.selectedItems=t,this.selectAllField=!0}},addItemUnit(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/units",a).then(s=>{this.itemUnits.push(s.data.data),s.data.data&&t.showNotification({type:"success",message:o.t("settings.customization.items.item_unit_added")}),s.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),i(s)}).catch(s=>{y(s),e(s)})})},updateItemUnit(a){const t=$();return new Promise((i,e)=>{v.put(`/api/v1/units/${a.id}`,a).then(s=>{let m=this.itemUnits.findIndex(p=>p.id===s.data.data.id);this.itemUnits[m]=a,s.data.data&&t.showNotification({type:"success",message:o.t("settings.customization.items.item_unit_updated")}),s.data.errors&&t.showNotification({type:"error",message:err.response.data.errors[0]}),i(s)}).catch(s=>{y(s),e(s)})})},fetchItemUnits(a){return new Promise((t,i)=>{v.get("/api/v1/units",{params:a}).then(e=>{this.itemUnits=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchItemUnit(a){return new Promise((t,i)=>{v.get(`/api/v1/units/${a}`).then(e=>{this.currentItemUnit=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},deleteItemUnit(a){const t=$();return new Promise((i,e)=>{v.delete(`/api/v1/units/${a}`).then(s=>{if(!s.data.error){let m=this.itemUnits.findIndex(p=>p.id===a);this.itemUnits.splice(m,1)}s.data.success&&t.showNotification({type:"success",message:o.t("settings.customization.items.deleted_message")}),i(s)}).catch(s=>{y(s),e(s)})})}}})()},we=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=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,i)=>{v.get("/api/v1/tax-types",{params:a}).then(e=>{this.taxTypes=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},fetchTaxType(a){return new Promise((t,i)=>{v.get(`/api/v1/tax-types/${a}`).then(e=>{this.currentTaxType=e.data.data,t(e)}).catch(e=>{y(e),i(e)})})},addTaxType(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/tax-types",a).then(s=>{this.taxTypes.push(s.data.data),t.showNotification({type:"success",message:o.t("settings.tax_types.created_message")}),i(s)}).catch(s=>{y(s),e(s)})})},updateTaxType(a){const t=$();return new Promise((i,e)=>{v.put(`/api/v1/tax-types/${a.id}`,a).then(s=>{if(s.data){let m=this.taxTypes.findIndex(p=>p.id===s.data.data.id);this.taxTypes[m]=a.taxTypes,t.showNotification({type:"success",message:o.t("settings.tax_types.updated_message")})}i(s)}).catch(s=>{y(s),e(s)})})},fetchSalesTax(a){return new Promise((t,i)=>{v.post("/api/m/sales-tax-us/current-tax",a).then(e=>{if(e.data){let s=this.taxTypes.findIndex(m=>m.name==="SalesTaxUs");s>-1&&this.taxTypes.splice(s,1),this.taxTypes.push(W(M({},e.data.data),{tax_type_id:e.data.data.id}))}t(e)}).catch(e=>{y(e),i(e)})})},deleteTaxType(a){return new Promise((t,i)=>{v.delete(`/api/v1/tax-types/${a}`).then(e=>{if(e.data.success){let s=this.taxTypes.findIndex(p=>p.id===a);this.taxTypes.splice(s,1),$().showNotification({type:"success",message:o.t("settings.tax_types.deleted_message")})}t(e)}).catch(e=>{y(e),i(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 Pt(){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(M({},We),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})],taxes:[],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const He=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"estimate",state:()=>({templates:[],estimates:[],selectAllField:!1,selectedEstimates:[],totalEstimateCount:0,isFetchingInitialSettings:!1,showExchangeRate:!1,newEstimate:M({},Pt())}),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=M({},Pt())},previewEstimate(a){return new Promise((t,i)=>{v.get(`/api/v1/estimates/${a.id}/send/preview`,{params:a}).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},fetchEstimates(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},getNextNumber(a,t=!1){return new Promise((i,e)=>{v.get("/api/v1/next-number?key=estimate",{params:a}).then(s=>{t&&(this.newEstimate.estimate_number=s.data.nextNumber),i(s)}).catch(s=>{y(s),e(s)})})},fetchEstimate(a){return new Promise((t,i)=>{v.get(`/api/v1/estimates/${a}`).then(e=>{Object.assign(this.newEstimate,e.data.data),t(e)}).catch(e=>{console.log(e),y(e),i(e)})})},addSalesTaxUs(){const a=we();let t=M({},ie),i=this.newEstimate.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(i){for(const e in i)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);t.id=i.tax_type_id,console.log(t,"salesTax"),a.taxTypes.push(t),console.log(a.taxTypes)}},sendEstimate(a){const t=$();return new Promise((i,e)=>{v.post(`/api/v1/estimates/${a.id}/send`,a).then(s=>{a.is_preview||t.showNotification({type:"success",message:o.t("estimates.send_estimate_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},addEstimate(a){return new Promise((t,i)=>{v.post("/api/v1/estimates",a).then(e=>{this.estimates=[...this.estimates,e.data.estimate],$().showNotification({type:"success",message:o.t("estimates.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},deleteEstimate(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/estimates/delete",a).then(s=>{let m=this.estimates.findIndex(p=>p.id===a);this.estimates.splice(m,1),t.showNotification({type:"success",message:o.t("estimates.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleEstimates(a){const t=$();return new Promise((i,e)=>{v.post("/api/v1/estimates/delete",{ids:this.selectedEstimates}).then(s=>{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:o.tc("estimates.deleted_message",2)}),i(s)}).catch(s=>{y(s),e(s)})})},updateEstimate(a){return new Promise((t,i)=>{v.put(`/api/v1/estimates/${a.id}`,a).then(e=>{let s=this.estimates.findIndex(p=>p.id===e.data.data.id);this.estimates[s]=e.data.data,$().showNotification({type:"success",message:o.t("estimates.updated_message")}),t(e)}).catch(e=>{y(e),i(e)})})},markAsAccepted(a){return new Promise((t,i)=>{v.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let s=this.estimates.findIndex(m=>m.id===a.id);this.estimates[s]&&(this.estimates[s].status="ACCEPTED",$().showNotification({type:"success",message:o.t("estimates.marked_as_accepted_message")})),t(e)}).catch(e=>{y(e),i(e)})})},markAsRejected(a){return new Promise((t,i)=>{v.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{$().showNotification({type:"success",message:o.t("estimates.marked_as_rejected_message")}),t(e)}).catch(e=>{y(e),i(e)})})},markAsSent(a){return new Promise((t,i)=>{v.post(`/api/v1/estimates/${a.id}/status`,a).then(e=>{let s=this.estimates.findIndex(m=>m.id===a.id);this.estimates[s]&&(this.estimates[s].status="SENT",$().showNotification({type:"success",message:o.t("estimates.mark_as_sent_successfully")})),t(e)}).catch(e=>{y(e),i(e)})})},convertToInvoice(a){const t=$();return new Promise((i,e)=>{v.post(`/api/v1/estimates/${a}/convert-to-invoice`).then(s=>{t.showNotification({type:"success",message:o.t("estimates.conversion_message")}),i(s)}).catch(s=>{y(s),e(s)})})},searchEstimate(a){return new Promise((t,i)=>{v.get(`/api/v1/estimates?${a}`).then(e=>{t(e)}).catch(e=>{y(e),i(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,i)=>{v.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=>{y(e),i(e)})})},fetchEstimateTemplates(a){return new Promise((t,i)=>{v.get("/api/v1/estimates/templates",{params:a}).then(e=>{this.templates=e.data.estimateTemplates,t(e)}).catch(e=>{y(e),i(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(M({},We),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]}))},updateItem(a){Object.assign(this.newEstimate.items[a.index],M({},a))},removeItem(a){this.newEstimate.items.splice(a,1)},deselectItem(a){this.newEstimate.items[a]=W(M({},We),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})},async fetchEstimateInitialSettings(a){const t=_e(),i=ke(),e=Fe(),s=we(),m=ge(),p=ve();if(this.isFetchingInitialSettings=!0,this.newEstimate.selectedCurrency=t.selectedCompanyCurrency,m.query.customer){let z=await i.fetchCustomer(m.query.customer);this.newEstimate.customer=z.data.data,this.newEstimate.customer_id=z.data.data.id}let k=[];a?k=[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=be().format("YYYY-MM-DD"),t.selectedCompanySettings.estimate_set_expiry_date_automatically==="YES"&&(this.newEstimate.expiry_date=be().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(),s.fetchTaxTypes({limit:"all"}),...k]).then(async([z,g,h,D,R,E,x])=>{a||(D.data&&(this.newEstimate.estimate_number=D.data.nextNumber),this.setTemplate(this.templates[0].name),this.newEstimate.template_name=p.currentUserSettings.default_estimate_template?p.currentUserSettings.default_estimate_template:this.newEstimate.template_name),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(z=>{y(z),this.isFetchingInitialSettings=!1})}}})()};var Ye={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 St(){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(M({},Ye),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})],customFields:[],fields:[],selectedNote:null,selectedCurrency:""}}const $e=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n,a=$();return r({id:"invoice",state:()=>({templates:[],invoices:[],selectedInvoices:[],selectAllField:!1,invoiceTotalCount:0,showExchangeRate:!1,isFetchingInitialSettings:!1,isFetchingInvoice:!1,newInvoice:M({},St())}),getters:{getInvoice:t=>i=>{let e=parseInt(i);return t.invoices.find(s=>s.id===e)},getSubTotal(){return this.newInvoice.items.reduce(function(t,i){return t+i.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=M({},St())},previewInvoice(t){return new Promise((i,e)=>{v.get(`/api/v1/invoices/${t.id}/send/preview`,{params:t}).then(s=>{i(s)}).catch(s=>{y(s),e(s)})})},fetchInvoices(t){return new Promise((i,e)=>{v.get("/api/v1/invoices",{params:t}).then(s=>{this.invoices=s.data.data,this.invoiceTotalCount=s.data.meta.invoice_total_count,i(s)}).catch(s=>{y(s),e(s)})})},fetchInvoice(t){return new Promise((i,e)=>{v.get(`/api/v1/invoices/${t}`).then(s=>{Object.assign(this.newInvoice,s.data.data),this.newInvoice.customer=s.data.data.customer,i(s)}).catch(s=>{y(s),e(s)})})},addSalesTaxUs(){const t=we();let i=M({},ie),e=this.newInvoice.taxes.find(s=>s.name==="Sales Tax"&&s.type==="MODULE");if(e){for(const s in e)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]=e[s]);i.id=e.tax_type_id,t.taxTypes.push(i)}},sendInvoice(t){return new Promise((i,e)=>{v.post(`/api/v1/invoices/${t.id}/send`,t).then(s=>{a.showNotification({type:"success",message:o.t("invoices.invoice_sent_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},addInvoice(t){return new Promise((i,e)=>{v.post("/api/v1/invoices",t).then(s=>{this.invoices=[...this.invoices,s.data.invoice],a.showNotification({type:"success",message:o.t("invoices.created_message")}),i(s)}).catch(s=>{y(s),e(s)})})},deleteInvoice(t){return new Promise((i,e)=>{v.post("/api/v1/invoices/delete",t).then(s=>{let m=this.invoices.findIndex(p=>p.id===t);this.invoices.splice(m,1),a.showNotification({type:"success",message:o.t("invoices.deleted_message",1)}),i(s)}).catch(s=>{y(s),e(s)})})},deleteMultipleInvoices(t){return new Promise((i,e)=>{v.post("/api/v1/invoices/delete",{ids:this.selectedInvoices}).then(s=>{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:o.tc("invoices.deleted_message",2)}),i(s)}).catch(s=>{y(s),e(s)})})},updateInvoice(t){return new Promise((i,e)=>{v.put(`/api/v1/invoices/${t.id}`,t).then(s=>{let m=this.invoices.findIndex(p=>p.id===s.data.data.id);this.invoices[m]=s.data.data,a.showNotification({type:"success",message:o.t("invoices.updated_message")}),i(s)}).catch(s=>{y(s),e(s)})})},cloneInvoice(t){return new Promise((i,e)=>{v.post(`/api/v1/invoices/${t.id}/clone`,t).then(s=>{a.showNotification({type:"success",message:o.t("invoices.cloned_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},markAsSent(t){return new Promise((i,e)=>{v.post(`/api/v1/invoices/${t.id}/status`,t).then(s=>{let m=this.invoices.findIndex(p=>p.id===t.id);this.invoices[m]&&(this.invoices[m].status="SENT"),a.showNotification({type:"success",message:o.t("invoices.mark_as_sent_successfully")}),i(s)}).catch(s=>{y(s),e(s)})})},getNextNumber(t,i=!1){return new Promise((e,s)=>{v.get("/api/v1/next-number?key=invoice",{params:t}).then(m=>{i&&(this.newInvoice.invoice_number=m.data.nextNumber),e(m)}).catch(m=>{y(m),s(m)})})},searchInvoice(t){return new Promise((i,e)=>{v.get(`/api/v1/invoices?${t}`).then(s=>{i(s)}).catch(s=>{y(s),e(s)})})},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(i=>i.id);this.selectedInvoices=t,this.selectAllField=!0}},selectCustomer(t){return new Promise((i,e)=>{v.get(`/api/v1/customers/${t}`).then(s=>{this.newInvoice.customer=s.data.data,this.newInvoice.customer_id=s.data.data.id,i(s)}).catch(s=>{y(s),e(s)})})},fetchInvoiceTemplates(t){return new Promise((i,e)=>{v.get("/api/v1/invoices/templates",{params:t}).then(s=>{this.templates=s.data.invoiceTemplates,i(s)}).catch(s=>{y(s),e(s)})})},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(M({},Ye),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]}))},updateItem(t){Object.assign(this.newInvoice.items[t.index],M({},t))},removeItem(t){this.newInvoice.items.splice(t,1)},deselectItem(t){this.newInvoice.items[t]=W(M({},Ye),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})},resetSelectedNote(){this.newInvoice.selectedNote=null},async fetchInvoiceInitialSettings(t){const i=_e(),e=ke(),s=Fe(),m=we(),p=ge(),k=ve();if(this.isFetchingInitialSettings=!0,this.newInvoice.selectedCurrency=i.selectedCompanyCurrency,p.query.customer){let g=await e.fetchCustomer(p.query.customer);this.newInvoice.customer=g.data.data,this.newInvoice.customer_id=g.data.data.id}let z=[];t?z=[this.fetchInvoice(p.params.id)]:(this.newInvoice.tax_per_item=i.selectedCompanySettings.tax_per_item,this.newInvoice.sales_tax_type=i.selectedCompanySettings.sales_tax_type,this.newInvoice.sales_tax_address_type=i.selectedCompanySettings.sales_tax_address_type,this.newInvoice.discount_per_item=i.selectedCompanySettings.discount_per_item,this.newInvoice.invoice_date=be().format("YYYY-MM-DD"),i.selectedCompanySettings.invoice_set_due_date_automatically==="YES"&&(this.newInvoice.due_date=be().add(i.selectedCompanySettings.invoice_due_date_days,"days").format("YYYY-MM-DD"))),Promise.all([s.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),this.fetchInvoiceTemplates(),this.getNextNumber(),m.fetchTaxTypes({limit:"all"}),...z]).then(async([g,h,D,R,E,x])=>{t||(R.data&&(this.newInvoice.invoice_number=R.data.nextNumber),D.data&&(this.setTemplate(this.templates[0].name),this.newInvoice.template_name=k.currentUserSettings.default_invoice_template?k.currentUserSettings.default_invoice_template:this.newInvoice.template_name)),t&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(g=>{y(g),reject(g)})}}})()},TS={class:"relative flex px-4 py-2 rounded-lg bg-opacity-40 bg-gray-300 whitespace-nowrap flex-col mt-1"},RS=c("rect",{width:"37",height:"37",rx:"10",fill:"currentColor"},null,-1),MS=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),FS=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),$S=[RS,MS,FS],US={props:{token:{type:String,default:null,required:!0}},setup(n){const r=$(),o=K(""),{t:a}=Se();function t(e){let s;document.selection?(s=document.body.createTextRange(),s.moveToElementText(e),s.select()):window.getSelection&&(s=document.createRange(),s.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(s))}function i(){t(o.value),document.execCommand("copy"),r.showNotification({type:"success",message:a("general.copied_url_clipboard")})}return(e,s)=>{const m=et("tooltip");return l(),_("div",TS,[c("span",{ref:(p,k)=>{k.publicUrl=p,o.value=p},class:"pr-10 text-sm font-medium text-black truncate select-all select-color"},w(n.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:i},$S,512)),[[m,{content:"Copy to Clipboard"}]])])}}};var Ge={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 jt(){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(M({},Ge),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})],taxes:[],customFields:[],fields:[],invoices:[],selectedNote:null,selectedFrequency:{label:"Every Week",value:"0 0 * * 0"},selectedInvoice:null}}const At=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"recurring-invoice",state:()=>({templates:[],recurringInvoices:[],selectedRecurringInvoices:[],totalRecurringInvoices:0,isFetchingInitialSettings:!1,isFetchingViewData:!1,showExchangeRate:!1,selectAllField:!1,newRecurringInvoice:M({},jt()),frequencies:[{label:"Every Minute",value:"* * * * *"},{label:"Every 30 Minute",value:"*/30 * * * *"},{label:"Every Hour",value:"0 * * * *"},{label:"Every 2 Hour",value:"0 */2 * * *"},{label:"Every day at midnight ",value:"0 0 * * *"},{label:"Every Week",value:"0 0 * * 0"},{label:"Every 15 days at midnight",value:"0 5 */15 * *"},{label:"On the first day of every month at 00:00",value:"0 0 1 * *"},{label:"Every 6 Month",value:"0 0 1 */6 *"},{label:"Every year on the first day of january at 00:00",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,i){return t+i.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=M({},jt())},deselectItem(a){this.newRecurringInvoice.items[a]=W(M({},Ge),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]})},addRecurringInvoice(a){return new Promise((t,i)=>{v.post("/api/v1/recurring-invoices",a).then(e=>{this.recurringInvoices=[...this.recurringInvoices,e.data.recurringInvoice],$().showNotification({type:"success",message:o.t("recurring_invoices.created_message")}),t(e)}).catch(e=>{y(e),i(e)})})},fetchRecurringInvoice(a){return new Promise((t,i)=>{this.isFetchingViewData=!0,v.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,y(e),i(e)})})},updateRecurringInvoice(a){return new Promise((t,i)=>{v.put(`/api/v1/recurring-invoices/${a.id}`,a).then(e=>{t(e),$().showNotification({type:"success",message:o.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=>{y(e),i(e)})})},selectCustomer(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},searchRecurringInvoice(a){return new Promise((t,i)=>{v.get(`/api/v1/recurring-invoices?${a}`).then(e=>{t(e)}).catch(e=>{y(e),i(e)})})},fetchRecurringInvoices(a){return new Promise((t,i)=>{v.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=>{y(e),i(e)})})},deleteRecurringInvoice(a){return new Promise((t,i)=>{v.post("/api/v1/recurring-invoices/delete",a).then(e=>{let s=this.recurringInvoices.findIndex(m=>m.id===a);this.recurringInvoices.splice(s,1),t(e)}).catch(e=>{y(e),i(e)})})},deleteMultipleRecurringInvoices(a){return new Promise((t,i)=>{let e=this.selectedRecurringInvoices;a&&(e=[a]),v.post("/api/v1/recurring-invoices/delete",{ids:e}).then(s=>{this.selectedRecurringInvoices.forEach(m=>{let p=this.recurringInvoices.findIndex(k=>k.id===m.id);this.recurringInvoices.splice(p,1)}),this.selectedRecurringInvoices=[],t(s)}).catch(s=>{y(s),i(s)})})},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(M({},Ge),{id:G.raw(),taxes:[W(M({},ie),{id:G.raw()})]}))},removeItem(a){this.newRecurringInvoice.items.splice(a,1)},updateItem(a){Object.assign(this.newRecurringInvoice.items[a.index],M({},a))},async fetchRecurringInvoiceInitialSettings(a){const t=_e(),i=ke(),e=Fe(),s=$e(),m=we(),p=ge();if(this.isFetchingInitialSettings=!0,this.newRecurringInvoice.currency=t.selectedCompanyCurrency,p.query.customer){let z=await i.fetchCustomer(p.query.customer);this.newRecurringInvoice.customer=z.data.data,this.selectCustomer(z.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=be().format("YYYY-MM-DD"),this.newRecurringInvoice.next_invoice_date=be().add(7,"days").format("YYYY-MM-DD")),Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),this.resetSelectedNote(),s.fetchInvoiceTemplates(),m.fetchTaxTypes({limit:"all"}),...k]).then(async([z,g,h,D,R])=>{var E,x;h.data&&(this.templates=s.templates),a||this.setTemplate(this.templates[0].name),a&&(R==null?void 0:R.data)&&(M({},R.data.data),this.setTemplate((x=(E=R==null?void 0:R.data)==null?void 0:E.data)==null?void 0:x.template_name)),a&&this.addSalesTaxUs(),this.isFetchingInitialSettings=!1}).catch(z=>{console.log(z),y(z)})},addSalesTaxUs(){const a=we();let t=M({},ie),i=this.newRecurringInvoice.taxes.find(e=>e.name==="Sales Tax"&&e.type==="MODULE");if(i){for(const e in i)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);t.id=i.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,i)=>{v.get("/api/v1/recurring-invoice-frequency",{params:a}).then(e=>{this.newRecurringInvoice.next_invoice_at=e.data.next_invoice_at,t(e)}).catch(e=>{$().showNotification({type:"error",message:o.t("errors.enter_valid_cron_format")}),i(e)})})}}})()},VS={class:"flex justify-between w-full"},OS=["onSubmit"],LS={class:"px-6 pb-3"},qS={class:"md:col-span-2"},BS={class:"text-sm text-gray-500"},KS={class:"grid md:grid-cols-12"},ZS={class:"flex justify-end col-span-12"},WS={class:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},Dt={setup(n){const r=At(),o=je(),a=He(),t=ke(),i=_e(),e=Te(),s=$e(),m=$();let p=K(!1);const{t:k}=Se(),z=ge();K(!1);const g=K(!1);let h=K(!1),D=K(!1);const R=A(()=>o.active&&o.componentName==="CustomerModal"),E=A(()=>({name:{required:te.withMessage(k("validation.required"),tt),minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ue(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}),Ue(8))},confirm_password:{sameAsPassword:te.withMessage(k("validation.password_incorrect"),qt(t.currentCustomer.password))},email:{required:te.withMessage(k("validation.required"),at(t.currentCustomer.enable_portal==!0)),email:te.withMessage(k("validation.email_incorrect"),Bt)},prefix:{minLength:te.withMessage(k("validation.name_min_length",{count:3}),Ue(3))},website:{url:te.withMessage(k("validation.invalid_url"),Kt)},billing:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))}},shipping:{address_street_1:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))},address_street_2:{maxLength:te.withMessage(k("validation.address_maxlength",{count:255}),Ce(255))}}})),x=Zt(E,A(()=>t.currentCustomer)),U=A(()=>`${window.location.origin}/${i.selectedCompany.slug}/customer/login`);function L(){t.copyAddress()}async function Y(){t.isEdit||(t.currentCustomer.currency_id=i.selectedCompanyCurrency.id)}async function me(){if(x.value.$touch(),x.value.$invalid&&t.currentCustomer.email===""&&m.showNotification({type:"error",message:k("settings.notification.please_enter_email")}),x.value.$invalid)return!0;g.value=!0;let I=M({},t.currentCustomer);try{let b=null;t.isEdit?b=await t.updateCustomer(I):b=await t.addCustomer(I),b.data&&(g.value=!1,(z.name==="invoices.create"||z.name==="invoices.edit")&&s.selectCustomer(b.data.data.id),(z.name==="estimates.create"||z.name==="estimates.edit")&&a.selectCustomer(b.data.data.id),(z.name==="recurring-invoices.create"||z.name==="recurring-invoices.edit")&&r.selectCustomer(b.data.data.id),Z())}catch(b){console.error(b),g.value=!1}}function Z(){o.closeModal(),setTimeout(()=>{t.resetCurrentCustomer(),x.value.$reset()},300)}return(I,b)=>{const ue=C("BaseIcon"),H=C("BaseInput"),q=C("BaseInputGroup"),ze=C("BaseMultiselect"),de=C("BaseInputGrid"),ye=C("BaseTab"),ne=C("BaseSwitch"),he=C("BaseTextarea"),Ae=C("BaseButton"),Nt=C("BaseTabGroup"),Et=C("BaseModal");return l(),T(Et,{show:d(R),onClose:Z,onOpen:Y},{header:f(()=>[c("div",VS,[B(w(d(o).title)+" ",1),u(ue,{name:"XIcon",class:"h-6 w-6 text-gray-500 cursor-pointer",onClick:Z})])]),default:f(()=>[c("form",{action:"",onSubmit:se(me,["prevent"])},[c("div",LS,[u(Nt,null,{default:f(()=>[u(ye,{title:I.$t("customers.basic_info"),class:"!mt-2"},{default:f(()=>[u(de,{layout:"one-column"},{default:f(()=>[u(q,{label:I.$t("customers.display_name"),required:"",error:d(x).name.$error&&d(x).name.$errors[0].$message},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.name,"onUpdate:modelValue":b[0]||(b[0]=j=>d(t).currentCustomer.name=j),modelModifiers:{trim:!0},type:"text",name:"name",class:"mt-1 md:mt-0",invalid:d(x).name.$error,onInput:b[1]||(b[1]=j=>d(x).name.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(q,{label:I.$tc("settings.currencies.currency"),required:"",error:d(x).currency_id.$error&&d(x).currency_id.$errors[0].$message},{default:f(()=>[u(ze,{modelValue:d(t).currentCustomer.currency_id,"onUpdate:modelValue":b[2]||(b[2]=j=>d(t).currentCustomer.currency_id=j),options:d(e).currencies,"value-prop":"id",searchable:"",placeholder:I.$t("customers.select_currency"),"max-height":200,class:"mt-1 md:mt-0","track-by":"name",invalid:d(x).currency_id.$error,label:"name"},null,8,["modelValue","options","placeholder","invalid"])]),_:1},8,["label","error"]),u(q,{label:I.$t("customers.primary_contact_name")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.contact_name,"onUpdate:modelValue":b[3]||(b[3]=j=>d(t).currentCustomer.contact_name=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("login.email"),error:d(x).email.$error&&d(x).email.$errors[0].$message},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.email,"onUpdate:modelValue":b[4]||(b[4]=j=>d(t).currentCustomer.email=j),modelModifiers:{trim:!0},type:"text",name:"email",class:"mt-1 md:mt-0",invalid:d(x).email.$error,onInput:b[5]||(b[5]=j=>d(x).email.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"]),u(q,{label:I.$t("customers.prefix"),error:d(x).prefix.$error&&d(x).prefix.$errors[0].$message,"content-loading":d(p)},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.prefix,"onUpdate:modelValue":b[6]||(b[6]=j=>d(t).currentCustomer.prefix=j),"content-loading":d(p),type:"text",name:"name",class:"",invalid:d(x).prefix.$error,onInput:b[7]||(b[7]=j=>d(x).prefix.$touch())},null,8,["modelValue","content-loading","invalid"])]),_:1},8,["label","error","content-loading"]),u(de,null,{default:f(()=>[u(q,{label:I.$t("customers.phone")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.phone,"onUpdate:modelValue":b[8]||(b[8]=j=>d(t).currentCustomer.phone=j),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.website"),error:d(x).website.$error&&d(x).website.$errors[0].$message},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.website,"onUpdate:modelValue":b[9]||(b[9]=j=>d(t).currentCustomer.website=j),type:"url",class:"mt-1 md:mt-0",invalid:d(x).website.$error,onInput:b[10]||(b[10]=j=>d(x).website.$touch())},null,8,["modelValue","invalid"])]),_:1},8,["label","error"])]),_:1})]),_:1})]),_:1},8,["title"]),u(ye,{title:I.$t("customers.portal_access")},{default:f(()=>[u(de,{class:"col-span-5 lg:col-span-4"},{default:f(()=>[c("div",qS,[c("p",BS,w(I.$t("customers.portal_access_text")),1),u(ne,{modelValue:d(t).currentCustomer.enable_portal,"onUpdate:modelValue":b[11]||(b[11]=j=>d(t).currentCustomer.enable_portal=j),class:"mt-1 flex"},null,8,["modelValue"])]),d(t).currentCustomer.enable_portal?(l(),T(q,{key:0,"content-loading":d(p),label:I.$t("customers.portal_access_url"),class:"md:col-span-2","help-text":I.$t("customers.portal_access_url_help")},{default:f(()=>[u(US,{token:d(U)},null,8,["token"])]),_:1},8,["content-loading","label","help-text"])):P("",!0),d(t).currentCustomer.enable_portal?(l(),T(q,{key:1,"content-loading":d(p),error:d(x).password.$error&&d(x).password.$errors[0].$message,label:I.$t("customers.password")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.password,"onUpdate:modelValue":b[14]||(b[14]=j=>d(t).currentCustomer.password=j),modelModifiers:{trim:!0},"content-loading":d(p),type:d(h)?"text":"password",name:"password",invalid:d(x).password.$error,onInput:b[15]||(b[15]=j=>d(x).password.$touch())},{right:f(()=>[d(h)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:b[12]||(b[12]=j=>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:b[13]||(b[13]=j=>J(h)?h.value=!d(h):h=!d(h))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["content-loading","error","label"])):P("",!0),d(t).currentCustomer.enable_portal?(l(),T(q,{key:2,error:d(x).confirm_password.$error&&d(x).confirm_password.$errors[0].$message,"content-loading":d(p),label:"Confirm Password"},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.confirm_password,"onUpdate:modelValue":b[18]||(b[18]=j=>d(t).currentCustomer.confirm_password=j),modelModifiers:{trim:!0},"content-loading":d(p),type:d(D)?"text":"password",name:"confirm_password",invalid:d(x).confirm_password.$error,onInput:b[19]||(b[19]=j=>d(x).confirm_password.$touch())},{right:f(()=>[d(D)?(l(),T(ue,{key:0,name:"EyeOffIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:b[16]||(b[16]=j=>J(D)?D.value=!d(D):D=!d(D))})):(l(),T(ue,{key:1,name:"EyeIcon",class:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",onClick:b[17]||(b[17]=j=>J(D)?D.value=!d(D):D=!d(D))}))]),_:1},8,["modelValue","content-loading","type","invalid"])]),_:1},8,["error","content-loading"])):P("",!0)]),_:1})]),_:1},8,["title"]),u(ye,{title:I.$t("customers.billing_address"),class:"!mt-2"},{default:f(()=>[u(de,{layout:"one-column"},{default:f(()=>[u(q,{label:I.$t("customers.name")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.name,"onUpdate:modelValue":b[20]||(b[20]=j=>d(t).currentCustomer.billing.name=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.country")},{default:f(()=>[u(ze,{modelValue:d(t).currentCustomer.billing.country_id,"onUpdate:modelValue":b[21]||(b[21]=j=>d(t).currentCustomer.billing.country_id=j),options:d(e).countries,searchable:"","show-labels":!1,placeholder:I.$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(q,{label:I.$t("customers.state")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.state,"onUpdate:modelValue":b[22]||(b[22]=j=>d(t).currentCustomer.billing.state=j),type:"text",name:"billingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.city")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.city,"onUpdate:modelValue":b[23]||(b[23]=j=>d(t).currentCustomer.billing.city=j),type:"text",name:"billingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.address"),error:d(x).billing.address_street_1.$error&&d(x).billing.address_street_1.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.billing.address_street_1,"onUpdate:modelValue":b[24]||(b[24]=j=>d(t).currentCustomer.billing.address_street_1=j),placeholder:I.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(x).billing.address_street_1.$error,onInput:b[25]||(b[25]=j=>d(x).billing.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:f(()=>[u(q,{error:d(x).billing.address_street_2.$error&&d(x).billing.address_street_2.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.billing.address_street_2,"onUpdate:modelValue":b[26]||(b[26]=j=>d(t).currentCustomer.billing.address_street_2=j),placeholder:I.$t("general.street_2"),rows:"2",cols:"50",invalid:d(x).billing.address_street_2.$error,onInput:b[27]||(b[27]=j=>d(x).billing.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(q,{label:I.$t("customers.phone")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.phone,"onUpdate:modelValue":b[28]||(b[28]=j=>d(t).currentCustomer.billing.phone=j),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.zip_code")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.billing.zip,"onUpdate:modelValue":b[29]||(b[29]=j=>d(t).currentCustomer.billing.zip=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"]),u(ye,{title:I.$t("customers.shipping_address"),class:"!mt-2"},{default:f(()=>[c("div",KS,[c("div",ZS,[u(Ae,{variant:"primary",type:"button",size:"xs",onClick:b[30]||(b[30]=j=>L())},{default:f(()=>[B(w(I.$t("customers.copy_billing_address")),1)]),_:1})])]),u(de,{layout:"one-column"},{default:f(()=>[u(q,{label:I.$t("customers.name")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.name,"onUpdate:modelValue":b[31]||(b[31]=j=>d(t).currentCustomer.shipping.name=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.country")},{default:f(()=>[u(ze,{modelValue:d(t).currentCustomer.shipping.country_id,"onUpdate:modelValue":b[32]||(b[32]=j=>d(t).currentCustomer.shipping.country_id=j),options:d(e).countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:I.$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(q,{label:I.$t("customers.state")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.state,"onUpdate:modelValue":b[33]||(b[33]=j=>d(t).currentCustomer.shipping.state=j),type:"text",name:"shippingState",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.city")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.city,"onUpdate:modelValue":b[34]||(b[34]=j=>d(t).currentCustomer.shipping.city=j),type:"text",name:"shippingCity",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.address"),error:d(x).shipping.address_street_1.$error&&d(x).shipping.address_street_1.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.shipping.address_street_1,"onUpdate:modelValue":b[35]||(b[35]=j=>d(t).currentCustomer.shipping.address_street_1=j),placeholder:I.$t("general.street_1"),rows:"2",cols:"50",class:"mt-1 md:mt-0",invalid:d(x).shipping.address_street_1.$error,onInput:b[36]||(b[36]=j=>d(x).shipping.address_street_1.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["label","error"])]),_:1}),u(de,{layout:"one-column"},{default:f(()=>[u(q,{error:d(x).shipping.address_street_2.$error&&d(x).shipping.address_street_2.$errors[0].$message},{default:f(()=>[u(he,{modelValue:d(t).currentCustomer.shipping.address_street_2,"onUpdate:modelValue":b[37]||(b[37]=j=>d(t).currentCustomer.shipping.address_street_2=j),placeholder:I.$t("general.street_2"),rows:"2",cols:"50",invalid:d(x).shipping.address_street_1.$error,onInput:b[38]||(b[38]=j=>d(x).shipping.address_street_2.$touch())},null,8,["modelValue","placeholder","invalid"])]),_:1},8,["error"]),u(q,{label:I.$t("customers.phone")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.phone,"onUpdate:modelValue":b[39]||(b[39]=j=>d(t).currentCustomer.shipping.phone=j),modelModifiers:{trim:!0},type:"text",name:"phone",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"]),u(q,{label:I.$t("customers.zip_code")},{default:f(()=>[u(H,{modelValue:d(t).currentCustomer.shipping.zip,"onUpdate:modelValue":b[40]||(b[40]=j=>d(t).currentCustomer.shipping.zip=j),type:"text",class:"mt-1 md:mt-0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["title"])]),_:1})]),c("div",WS,[u(Ae,{class:"mr-3 text-sm",type:"button",variant:"primary-outline",onClick:Z},{default:f(()=>[B(w(I.$t("general.cancel")),1)]),_:1}),u(Ae,{loading:g.value,variant:"primary",type:"submit"},{left:f(j=>[g.value?P("",!0):(l(),T(ue,{key:0,name:"SaveIcon",class:N(j.class)},null,8,["class"]))]),default:f(()=>[B(" "+w(I.$t("general.save")),1)]),_:1},8,["loading"])])],40,OS)]),_:1},8,["show"])}}},HS={props:{modelValue:{type:[String,Number,Object],default:""},fetchAll:{type:Boolean,default:!1},showAction:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){const o=n,{t:a}=Se(),t=je(),i=ke(),e=ve(),s=A({get:()=>o.modelValue,set:k=>{r("update:modelValue",k)}});async function m(k){let z={search:k};o.fetchAll&&(z.limit="all");let g=await i.fetchCustomers(z);if(g.data.data.length>0&&i.editCustomer&&!g.data.data.find(D=>D.id==i.editCustomer.id)){let D=Object.assign({},i.editCustomer);g.data.data.unshift(D)}return g.data.data}async function p(){i.resetCurrentCustomer(),t.openModal({title:a("customers.add_new_customer"),componentName:"CustomerModal"})}return(k,z)=>{const g=C("BaseIcon"),h=C("BaseSelectAction"),D=C("BaseMultiselect");return l(),_(X,null,[u(D,le({modelValue:d(s),"onUpdate:modelValue":z[0]||(z[0]=R=>J(s)?s.value=R: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},[n.showAction?{name:"action",fn:f(()=>[d(e).hasAbilities(d(O).CREATE_CUSTOMER)?(l(),T(h,{key:0,onClick:p},{default:f(()=>[u(g,{name:"UserAddIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),B(" "+w(k.$t("customers.add_new_customer")),1)]),_:1})):P("",!0)])}:void 0]),1040,["modelValue","placeholder"]),u(Dt)],64)}}};var YS=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:HS});const GS={key:1,class:"max-h-[173px]"},JS={class:"flex relative justify-between mb-2"},QS={class:"flex"},XS=["onClick"],ej={class:"grid grid-cols-2 gap-8 mt-2"},tj={key:0,class:"flex flex-col"},aj={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},nj={key:0,class:"flex flex-col flex-1 p-0 text-left"},ij={key:0,class:"relative w-11/12 text-sm truncate"},oj={class:"relative w-11/12 text-sm truncate"},sj={key:0},rj={key:1},dj={key:2},lj={key:1,class:"relative w-11/12 text-sm truncate"},cj={key:1,class:"flex flex-col"},_j={class:"mb-1 text-sm font-medium text-left text-gray-400 uppercase whitespace-nowrap"},uj={key:0,class:"flex flex-col flex-1 p-0 text-left"},mj={key:0,class:"relative w-11/12 text-sm truncate"},pj={class:"relative w-11/12 text-sm truncate"},fj={key:0},gj={key:1},vj={key:2},yj={key:1,class:"relative w-11/12 text-sm truncate"},hj={class:"relative flex justify-center px-0 p-0 py-16 bg-white border border-gray-200 border-solid rounded-md min-h-[170px]"},bj={class:"mt-1"},kj={class:"text-lg font-medium text-gray-900"},wj=c("span",{class:"text-red-500"}," * ",-1),zj={key:0,class:"text-red-500 text-sm absolute right-3 bottom-3"},xj={key:0,class:"absolute min-w-full z-10"},Pj={class:"relative"},Sj={class:"max-h-80 flex flex-col overflow-auto list border-t border-gray-200"},jj=["onClick"],Aj={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"},Dj={class:"flex flex-col justify-center text-left"},Cj={key:0,class:"flex justify-center p-5 text-gray-400"},Nj={class:"text-base text-gray-500 cursor-pointer"},Ej={class:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},Ij={props:{valid:{type:Object,default:()=>{}},customerId:{type:Number,default:null},type:{type:String,default:null},contentLoading:{type:Boolean,default:!1}},setup(n){const r=n,o=je(),a=He(),t=ke(),i=Te(),e=$e(),s=At(),m=ve(),p=ge(),{t:k}=Se(),z=K(null),g=K(!1),h=A(()=>{switch(r.type){case"estimate":return a.newEstimate.customer;case"invoice":return e.newInvoice.customer;case"recurring-invoice":return s.newRecurringInvoice.customer;default:return""}});function D(){r.type==="estimate"?a.resetSelectedCustomer():r.type==="invoice"?e.resetSelectedCustomer():s.resetSelectedCustomer()}r.customerId&&r.type==="estimate"?a.selectCustomer(r.customerId):r.customerId&&r.type==="invoice"?e.selectCustomer(r.customerId):r.customerId&&s.selectCustomer(r.customerId);async function R(){await t.fetchCustomer(h.value.id),o.openModal({title:k("customers.edit_customer"),componentName:"CustomerModal"})}async function E(){await t.fetchCustomers({filter:{},orderByField:"",orderBy:"",customer_id:r.customerId})}const x=Jt(()=>{g.value=!0,U()},500);async function U(){let Z={display_name:z.value,page:1};await t.fetchCustomers(Z),g.value=!1}function L(){o.openModal({title:k("customers.add_customer"),componentName:"CustomerModal",variant:"md"})}function Y(Z){if(Z)return Z.split(" ")[0].charAt(0).toUpperCase()}function me(Z,I){let b={userId:Z};p.params.id&&(b.model_id=p.params.id),r.type==="estimate"?(a.getNextNumber(b,!0),a.selectCustomer(Z)):r.type==="invoice"?(e.getNextNumber(b,!0),e.selectCustomer(Z)):s.selectCustomer(Z),I(),z.value=null}return i.fetchCurrencies(),i.fetchCountries(),E(),(Z,I)=>{const b=C("BaseContentPlaceholdersBox"),ue=C("BaseContentPlaceholders"),H=C("BaseText"),q=C("BaseIcon"),ze=C("BaseInput");return n.contentLoading?(l(),T(ue,{key:0},{default:f(()=>[u(b,{rounded:!0,class:"w-full",style:{"min-height":"170px"}})]),_:1})):(l(),_("div",GS,[u(Dt),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:I[0]||(I[0]=se(()=>{},["stop"]))},[c("div",JS,[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",QS,[c("a",{class:"relative my-0 ml-6 text-sm font-medium cursor-pointer text-primary-500 items-center flex",onClick:se(R,["stop"])},[u(q,{name:"PencilIcon",class:"text-gray-500 h-4 w-4 mr-1"}),B(" "+w(Z.$t("general.edit")),1)],8,XS),c("a",{class:"relative my-0 ml-6 text-sm flex items-center font-medium cursor-pointer text-primary-500",onClick:D},[u(q,{name:"XCircleIcon",class:"text-gray-500 h-4 w-4 mr-1"}),B(" "+w(Z.$t("general.deselect")),1)])])]),c("div",ej,[d(h).billing?(l(),_("div",tj,[c("label",aj,w(Z.$t("general.bill_to")),1),d(h).billing?(l(),_("div",nj,[d(h).billing.name?(l(),_("label",ij,w(d(h).billing.name),1)):P("",!0),c("label",oj,[d(h).billing.city?(l(),_("span",sj,w(d(h).billing.city),1)):P("",!0),d(h).billing.city&&d(h).billing.state?(l(),_("span",rj," , ")):P("",!0),d(h).billing.state?(l(),_("span",dj,w(d(h).billing.state),1)):P("",!0)]),d(h).billing.zip?(l(),_("label",lj,w(d(h).billing.zip),1)):P("",!0)])):P("",!0)])):P("",!0),d(h).shipping?(l(),_("div",cj,[c("label",_j,w(Z.$t("general.ship_to")),1),d(h).shipping?(l(),_("div",uj,[d(h).shipping.name?(l(),_("label",mj,w(d(h).shipping.name),1)):P("",!0),c("label",pj,[d(h).shipping.city?(l(),_("span",fj,w(d(h).shipping.city),1)):P("",!0),d(h).shipping.city&&d(h).shipping.state?(l(),_("span",gj," , ")):P("",!0),d(h).shipping.state?(l(),_("span",vj,w(d(h).shipping.state),1)):P("",!0)]),d(h).shipping.zip?(l(),_("label",yj,w(d(h).shipping.zip),1)):P("",!0)])):P("",!0)])):P("",!0)])])):(l(),T(d(Gt),{key:1,class:"relative flex flex-col rounded-md"},{default:f(({open:de})=>[u(d(Ht),{class:N([{"text-opacity-90":de,"border border-solid border-red-500 focus:ring-red-500 rounded":n.valid.$error,"focus:ring-2 focus:ring-primary-400":!n.valid.$error},"w-full outline-none rounded-md"])},{default:f(()=>[c("div",hj,[u(q,{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",bj,[c("label",kj,[B(w(Z.$t("customers.new_customer"))+" ",1),wj]),n.valid.$error&&n.valid.$errors[0].$message?(l(),_("p",zj,w(Z.$t("estimates.errors.required")),1)):P("",!0)])])]),_:2},1032,["class"]),u(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:f(()=>[de?(l(),_("div",xj,[u(d(Yt),{focus:"",static:"",class:"overflow-hidden rounded-md shadow-lg ring-1 ring-black ring-opacity-5 bg-white"},{default:f(({close:ye})=>[c("div",Pj,[u(ze,{modelValue:z.value,"onUpdate:modelValue":[I[1]||(I[1]=ne=>z.value=ne),I[2]||(I[2]=ne=>d(x)(ne))],"container-class":"m-4",placeholder:Z.$t("general.search"),type:"text",icon:"search"},null,8,["modelValue","placeholder"]),c("ul",Sj,[(l(!0),_(X,null,ae(d(t).customers,(ne,he)=>(l(),_("li",{key:he,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:Ae=>me(ne.id,ye)},[c("span",Aj,w(Y(ne.name)),1),c("div",Dj,[ne.name?(l(),T(H,{key:0,text:ne.name,length:30,class:"m-0 text-base font-normal leading-tight cursor-pointer"},null,8,["text"])):P("",!0),ne.contact_name?(l(),T(H,{key:1,text:ne.contact_name,length:30,class:"m-0 text-sm font-medium text-gray-400 cursor-pointer"},null,8,["text"])):P("",!0)])],8,jj))),128)),d(t).customers.length===0?(l(),_("div",Cj,[c("label",Nj,w(Z.$t("customers.no_customers_found")),1)])):P("",!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(q,{name:"UserAddIcon",class:"text-primary-400"}),c("label",Ej,w(Z.$t("customers.add_new_customer")),1)])):P("",!0)]),_:1})])):P("",!0)]),_:2},1024)]),_:1}))]))}}};var Tj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ij});const Rj=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),Mj=[Rj],Fj={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(n,{emit:r}){const o=n,a=K(null),t=pe(),i=_e();let e=Ve({altInput:!0,enableTime:o.enableTime,time_24hr:o.time24hr});const s=A({get:()=>o.modelValue,set:D=>{r("update:modelValue",D)}}),m=A(()=>{var D;return(D=i.selectedCompanySettings)==null?void 0:D.carbon_date_format}),p=A(()=>!!t.icon),k=A(()=>`${o.containerClass} `),z=A(()=>o.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),g=A(()=>o.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(D){a.value.fp.open()}return fe(()=>o.enableTime,D=>{o.enableTime&&(e.enableTime=o.enableTime)},{immediate:!0}),fe(()=>m,()=>{o.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}),(D,R)=>{const E=C("BaseContentPlaceholdersBox"),x=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(x,{key:0},{default:f(()=>[u(E,{rounded:!0,class:N(`w-full ${d(k)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:N([d(k),"relative flex flex-row"])},[n.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},Mj)):P("",!0),n.showCalendarIcon&&d(p)?F(D.$slots,"icon",{key:1}):P("",!0),u(d(nt),le({ref:(U,L)=>{L.dp=U,a.value=U},modelValue:d(s),"onUpdate:modelValue":R[0]||(R[0]=U=>J(s)?s.value=U:null)},D.$attrs,{disabled:n.disabled,config:d(e),class:[n.defaultInputClass,d(z),d(g)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var $j=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fj});const Uj={},Vj={class:"grid gap-4 mt-5 md:grid-cols-2 lg:grid-cols-3"};function Oj(n,r){return l(),_("div",Vj,[F(n.$slots,"default")])}var Lj=ee(Uj,[["render",Oj]]),qj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Lj});const Bj={key:1},Kj={class:"text-sm font-bold leading-5 text-black non-italic"},Zj={props:{label:{type:String,required:!0},value:{type:[String,Number],default:""},contentLoading:{type:Boolean,default:!1}},setup(n){return(r,o)=>{const a=C("BaseContentPlaceholdersBox"),t=C("BaseContentPlaceholders"),i=C("BaseLabel");return l(),_("div",null,[n.contentLoading?(l(),T(t,{key:0},{default:f(()=>[u(a,{class:"w-20 h-5 mb-1"}),u(a,{class:"w-40 h-5"})]),_:1})):(l(),_("div",Bj,[u(i,{class:"font-normal mb-1"},{default:f(()=>[B(w(n.label),1)]),_:1}),c("p",Kj,[B(w(n.value)+" ",1),F(r.$slots,"default")])]))])}}};var Wj=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Zj});const Hj=(n=!1)=>{const r=n?window.pinia.defineStore:Q,{global:o}=window.i18n;return r({id:"dialog",state:()=>({active:!1,title:"",message:"",size:"md",data:null,variant:"danger",yesLabel:o.t("settings.custom_fields.yes"),noLabel:o.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,i)=>{this.resolve=t})},closeDialog(){this.active=!1,setTimeout(()=>{this.title="",this.message="",this.data=null},300)}}})()},Yj={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Gj=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),Jj={class:"mt-3 text-center sm:mt-5"},Qj={class:"mt-2"},Xj={class:"text-sm text-gray-500"},eA={setup(n){const r=Hj();function o(t){r.resolve(t),r.closeDialog()}const a=A(()=>{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,i)=>{const e=C("BaseIcon"),s=C("base-button");return l(),T(d(st),{as:"template",show:d(r).active},{default:f(()=>[u(d(ot),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:d(r).active,onClose:d(r).closeDialog},{default:f(()=>[c("div",Yj,[u(d(Ee),{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:f(()=>[u(d(it),{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75"})]),_:1}),Gj,u(d(Ee),{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:f(()=>[c("div",{class:N(["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:N(["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",Jj,[u(d(Qt),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:f(()=>[B(w(d(r).title),1)]),_:1}),c("div",Qj,[c("p",Xj,w(d(r).message),1)])])]),c("div",{class:N(["mt-5 sm:mt-6 grid gap-3",{"sm:grid-cols-2 sm:grid-flow-row-dense":!d(r).hideNoButton}])},[u(s,{class:N(["justify-center",{"w-full":d(r).hideNoButton}]),variant:d(r).variant,onClick:i[0]||(i[0]=m=>o(!0))},{default:f(()=>[B(w(d(r).yesLabel),1)]),_:1},8,["variant","class"]),d(r).hideNoButton?P("",!0):(l(),T(s,{key:0,class:"justify-center",variant:"white",onClick:i[1]||(i[1]=m=>o(!1))},{default:f(()=>[B(w(d(r).noLabel),1)]),_:1}))],2)],2)]),_:1})])]),_:1},8,["open","onClose"])]),_:1},8,["show"])}}};var tA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:eA});const aA={},nA={class:"w-full text-gray-300"};function iA(n,r){return l(),_("hr",nA)}var oA=ee(aA,[["render",iA]]),sA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:oA});function rA(n){let r=K(null),o=K(null),a=K(null);return Pe(()=>{rt(t=>{if(!o.value||!r.value)return;let i=o.value.el||o.value,e=r.value.el||r.value;e instanceof HTMLElement&&i instanceof HTMLElement&&(a.value=Xt(e,i,n),t(a.value.destroy))})}),[r,o,a]}const dA={class:"py-1"},lA={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(n){const r=n,o=A(()=>`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,i]=rA({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}}]});function e(){i.value.update()}return(s,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return l(),_("div",{class:N(["relative",n.wrapperClass])},[n.contentLoading?(l(),T(k,{key:0,class:"disabled cursor-normal pointer-events-none"},{default:f(()=>[u(p,{rounded:!0,class:"w-14",style:{height:"42px"}})]),_:1})):(l(),T(d(aa),{key:1},{default:f(()=>[u(d(ea),{ref:(z,g)=>{g.trigger=z,J(a)?a.value=z:a=z},class:"focus:outline-none",onClick:e},{default:f(()=>[F(s.$slots,"activator")]),_:3},512),c("div",{ref:(z,g)=>{g.container=z,J(t)?t.value=z:t=z},class:N(["z-10",n.widthClass])},[u(Ne,{"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:f(()=>[u(d(ta),{class:N(d(o))},{default:f(()=>[c("div",dA,[F(s.$slots,"default")])]),_:3},8,["class"])]),_:3})],2)]),_:3}))],2)}}};var cA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lA});const _A={setup(n){return(r,o)=>(l(),T(d(oa),na(ia(r.$attrs)),{default:f(({active:a})=>[c("a",{href:"#",class:N([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 uA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:_A});const mA={class:"flex flex-col items-center justify-center mt-16"},pA={class:"flex flex-col items-center justify-center"},fA={class:"mt-2"},gA={class:"font-medium"},vA={class:"mt-2"},yA={class:"text-gray-500"},hA={class:"mt-6"},bA={props:{title:{type:String,default:String},description:{type:String,default:String}},setup(n){return(r,o)=>(l(),_("div",mA,[c("div",pA,[F(r.$slots,"default")]),c("div",fA,[c("label",gA,w(n.title),1)]),c("div",vA,[c("label",yA,w(n.description),1)]),c("div",hA,[F(r.$slots,"actions")])]))}};var kA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bA});const wA={class:"rounded-md bg-red-50 p-4"},zA={class:"flex"},xA={class:"shrink-0"},PA={class:"ml-3"},SA={class:"text-sm font-medium text-red-800"},jA={class:"mt-2 text-sm text-red-700"},AA={role:"list",class:"list-disc pl-5 space-y-1"},DA={props:{errorTitle:{type:String,default:"There were some errors with your submission"},errors:{type:Array,default:null}},setup(n){return(r,o)=>(l(),_("div",wA,[c("div",zA,[c("div",xA,[u(d(sa),{class:"h-5 w-5 text-red-400","aria-hidden":"true"})]),c("div",PA,[c("h3",SA,w(n.errorTitle),1),c("div",jA,[c("ul",AA,[(l(!0),_(X,null,ae(n.errors,(a,t)=>(l(),_("li",{key:t},w(a),1))),128))])])])])]))}};var CA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:DA});const NA={props:{status:{type:String,required:!1,default:""}},setup(n){const r=n,o=A(()=>{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:N(d(o))},[F(a.$slots,"default")],2))}};var EA=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NA});const IA=["multiple","name","accept"],TA={key:0,class:""},RA=["src"],MA=["onClick"],FA={key:1,class:"flex flex-col items-center"},$A={class:"text-xs leading-4 text-center text-gray-400"},UA=B(" Drag a file here or "),VA=["onClick"],OA=B(" to choose a file "),LA={class:"text-xs leading-4 text-center text-gray-400 mt-2"},qA={key:2,class:"flex w-full h-full border border-gray-200 rounded"},BA=["src"],KA={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},ZA=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),WA={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},HA={key:3,class:"flex flex-wrap w-full"},YA=["src"],GA={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},JA=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),QA={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},XA=["onClick"],eD={key:4,class:"flex w-full items-center justify-center"},tD=["src"],aD={key:1,class:"flex justify-center items-center text-gray-400 flex-col space-y-2 px-2 py-4 w-full"},nD=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),iD={key:0,class:"text-gray-600 font-medium text-sm truncate overflow-hidden w-full"},oD=["onClick"],sD={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(n,{emit:r}){const o=n;let a=K([]);const t=K([]),i=K(null);K(null),K(null);function e(){a.value=[],o.modelValue&&o.modelValue.length?t.value=[...o.modelValue]:t.value=[]}function s(R){return v.post(o.uploadUrl,R).then(E=>E.data).then(E=>E.map(x=>W(M({},x),{url:`/images/${x.id}`})))}function m(R){s(R).then(E=>{a=[].concat(E)}).catch(E=>{})}function p(R){return new Promise((E,x)=>{const U=new FileReader;U.readAsDataURL(R),U.onload=()=>E(U.result),U.onerror=L=>x(L)})}function k(R,E,x){if(!E.length||(o.multiple?r("change",R,E,x):o.base64?p(E[0]).then(L=>{r("change",R,L,x,E[0])}):r("change",R,E[0],x),o.preserveLocalFiles||(t.value=[]),Array.from(Array(E.length).keys()).forEach(L=>{const Y=E[L];Ze.isImageFile(Y.type)?p(Y).then(me=>{t.value.push({fileObject:Y,type:Y.type,name:Y.name,image:me})}):t.value.push({fileObject:Y,type:Y.type,name:Y.name})}),r("update:modelValue",t.value),!o.autoProcess))return;const U=new FormData;Array.from(Array(E.length).keys()).forEach(L=>{U.append(R,E[L],E[L].name)}),m(U)}function z(){i.value&&i.value.click()}function g(R){t.value=[],r("remove",R)}function h(R){t.value.splice(R,1),r("remove",R)}function D(){return new URL("/build/img/default-avatar.jpg",self.location)}return Pe(()=>{e()}),fe(()=>o.modelValue,R=>{t.value=[...R]}),(R,E)=>{const x=C("BaseIcon");return l(),_("form",{enctype:"multipart/form-data",class:N(["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",n.avatar?"w-32 h-32":"w-full"])},[c("input",{id:"file-upload",ref:(U,L)=>{L.inputRef=U,i.value=U},type:"file",tabindex:"-1",multiple:n.multiple,name:n.inputFieldName,accept:n.accept,class:"absolute z-10 w-full h-full opacity-0 cursor-pointer",onClick:E[0]||(E[0]=U=>U.target.value=null),onChange:E[1]||(E[1]=U=>k(U.target.name,U.target.files,U.target.files.length))},null,40,IA),!t.value.length&&n.avatar?(l(),_("div",TA,[c("img",{src:D(),class:"rounded",alt:"Default Avatar"},null,8,RA),c("a",{href:"#",class:"absolute z-30 bg-white rounded-full -bottom-3 -right-3 group",onClick:se(z,["prevent","stop"])},[u(x,{name:"PlusCircleIcon",class:"h-8 text-xl leading-6 text-primary-500 group-hover:text-primary-600"})],8,MA)])):t.value.length?t.value.length&&n.avatar&&!n.multiple?(l(),_("div",qA,[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,BA)):(l(),_("div",KA,[ZA,t.value[0].name?(l(),_("p",WA,w(t.value[0].name),1)):P("",!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:E[2]||(E[2]=se(U=>g(t.value[0]),["prevent","stop"]))},[u(x,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})])])):t.value.length&&n.multiple?(l(),_("div",HA,[(l(!0),_(X,null,ae(t.value,(U,L)=>(l(),_("a",{key:U,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:E[3]||(E[3]=se(()=>{},["prevent"]))},[U.image?(l(),_("img",{key:0,for:"file-upload",src:U.image,class:"block object-cover w-20 h-20 opacity-100",style:{animation:"fadeIn 2s ease"}},null,8,YA)):(l(),_("div",GA,[JA,U.name?(l(),_("p",QA,w(U.name),1)):P("",!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:se(Y=>h(L),["prevent","stop"])},[u(x,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,XA)]))),128))])):(l(),_("div",eD,[(l(!0),_(X,null,ae(t.value,(U,L)=>(l(),_("a",{key:U,href:"#",class:"block p-2 m-2 bg-white border border-gray-200 rounded hover:border-gray-500 relative max-w-md",onClick:E[4]||(E[4]=se(()=>{},["prevent"]))},[U.image?(l(),_("img",{key:0,for:"file-upload",src:U.image,class:"block object-contain h-20 opacity-100 min-w-[5rem]",style:{animation:"fadeIn 2s ease"}},null,8,tD)):(l(),_("div",aD,[nD,U.name?(l(),_("p",iD,w(U.name),1)):P("",!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:se(Y=>h(L),["prevent","stop"])},[u(x,{name:"XIcon",class:"h-4 text-xl leading-6 text-black"})],8,oD)]))),128))])):(l(),_("div",FA,[u(x,{name:"CloudUploadIcon",class:"h-6 mb-2 text-xl leading-6 text-gray-400"}),c("p",$A,[UA,c("a",{class:"cursor-pointer text-primary-500 hover:text-primary-600 hover:font-medium relative z-20",href:"#",onClick:se(z,["prevent","stop"])}," browse ",8,VA),OA]),c("p",LA,w(n.recommendedText),1)]))],2)}}};var rD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sD});const dD={class:"relative z-10 p-4 md:p-8 bg-gray-200 rounded"},lD={props:{show:{type:Boolean,default:!1},rowOnXl:{type:Boolean,default:!1}},emits:["clear"],setup(n){return(r,o)=>(l(),T(Ne,{"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:f(()=>[xe(c("div",dD,[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:o[0]||(o[0]=a=>r.$emit("clear"))},w(r.$t("general.clear_all")),1),c("div",{class:N(["flex flex-col space-y-3",n.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,n.show]])]),_:3}))}};var cD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lD});const _D={style:{"font-family":"sans-serif"}},uD={props:{amount:{type:[Number,String],required:!0},currency:{type:Object,default:()=>null}},setup(n){const r=n,o=ra("utils"),a=_e(),t=A(()=>o.formatMoney(r.amount,r.currency||a.selectedCompanyCurrency));return(i,e)=>(l(),_("span",_D,w(d(t)),1))}};var mD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:uD});const pD={viewBox:"0 0 225 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fD=lt('',9),gD={id:"paint0_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},vD=["stop-color"],yD=["stop-color"],hD={id:"paint1_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},bD=["stop-color"],kD=["stop-color"],wD={id:"paint2_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},zD=["stop-color"],xD=["stop-color"],PD={id:"paint3_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},SD=["stop-color"],jD=["stop-color"],AD={id:"paint4_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},DD=["stop-color"],CD=["stop-color"],ND={id:"paint5_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},ED=["stop-color"],ID=["stop-color"],TD={id:"paint6_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},RD=["stop-color"],MD=["stop-color"],FD={id:"paint7_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},$D=["stop-color"],UD=["stop-color"],VD={id:"paint8_linear_499_29",x1:"-2.72961e-07",y1:"22.9922",x2:"224.397",y2:"22.9922",gradientUnits:"userSpaceOnUse"},OD=["stop-color"],LD=["stop-color"],qD={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(n){return(r,o)=>(l(),_("svg",pD,[fD,c("defs",null,[c("linearGradient",gD,[c("stop",{"stop-color":n.darkColor},null,8,vD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,yD)]),c("linearGradient",hD,[c("stop",{"stop-color":n.darkColor},null,8,bD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,kD)]),c("linearGradient",wD,[c("stop",{"stop-color":n.darkColor},null,8,zD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,xD)]),c("linearGradient",PD,[c("stop",{"stop-color":n.darkColor},null,8,SD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,jD)]),c("linearGradient",AD,[c("stop",{"stop-color":n.darkColor},null,8,DD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,CD)]),c("linearGradient",ND,[c("stop",{"stop-color":n.darkColor},null,8,ED),c("stop",{offset:"1","stop-color":n.lightColor},null,8,ID)]),c("linearGradient",TD,[c("stop",{"stop-color":n.darkColor},null,8,RD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,MD)]),c("linearGradient",FD,[c("stop",{"stop-color":n.darkColor},null,8,$D),c("stop",{offset:"1","stop-color":n.lightColor},null,8,UD)]),c("linearGradient",VD,[c("stop",{"stop-color":n.darkColor},null,8,OD),c("stop",{offset:"1","stop-color":n.lightColor},null,8,LD)])])]))}};const BD={class:"flex flex-col items-center justify-center h-screen"},KD={class:"loader loader-white"},ZD=lt('
',3),WD={props:{showBgOverlay:{default:!1,type:Boolean}},setup(n){return(r,o)=>(l(),_("div",BD,[c("div",KD,[ZD,u(qD,{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 HD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:WD});const YD={props:{type:{type:String,default:"section-title",validator:function(n){return["section-title","heading-title"].indexOf(n)!==-1}}},setup(n){const r=n,o=A(()=>({"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:N(d(o))},[F(a.$slots,"default")],2))}};var GD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:YD});const JD={props:{name:{type:String,required:!0}},setup(n){const r=K(!1);return Pe(()=>{r.value=!0}),(o,a)=>r.value?(l(),T(da(d(la)[n.name]),{key:0,class:"h-5 w-5"})):P("",!0)}};var QD=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:JD});const XD={class:"rounded-md bg-yellow-50 p-4 relative"},eC={class:"flex flex-col"},tC={class:"flex"},aC={class:"shrink-0"},nC={class:"ml-3"},iC={class:"text-sm font-medium text-yellow-800"},oC={class:"mt-2 text-sm text-yellow-700"},sC={role:"list",class:"list-disc pl-5 space-y-1"},rC={key:0,class:"mt-4 ml-3"},dC={class:"-mx-2 -my-1.5 flex flex-row-reverse"},lC=["onClick"],cC={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(n,{emit:r}){return(o,a)=>{const t=C("BaseIcon");return l(),_("div",XD,[u(t,{name:"XIcon",class:"h-5 w-5 text-yellow-500 absolute right-4 cursor-pointer",onClick:a[0]||(a[0]=i=>o.$emit("hide"))}),c("div",eC,[c("div",tC,[c("div",aC,[u(t,{name:"ExclamationIcon",class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),c("div",nC,[c("h3",iC,w(n.title),1),c("div",oC,[c("ul",sC,[(l(!0),_(X,null,ae(n.lists,(i,e)=>(l(),_("li",{key:e},w(i),1))),128))])])])]),n.actions.length?(l(),_("div",rC,[c("div",dC,[(l(!0),_(X,null,ae(n.actions,(i,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:s=>o.$emit(`${i}`)},w(i),9,lC))),128))])])):P("",!0)])])}}};var _C=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:cC});const uC={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},mC=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),pC=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),fC=[mC,pC],gC={key:1,class:"absolute inset-y-0 left-0 flex items-center pl-3"},vC={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"},yC={key:3,class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},hC={class:"text-gray-500 sm:text-sm"},bC=["type","value","disabled"],kC={key:4,class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"},wC=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),zC=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),xC=[wC,zC],PC={key:5,class:"absolute inset-y-0 right-0 flex items-center pr-3"},SC={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(n,{emit:r}){const o=n;K(!1);const a=pe(),t=A(()=>!!a.left||o.loading&&o.loadingPosition==="left"),i=A(()=>!!a.right||o.loading&&o.loadingPosition==="right"),e=A(()=>t.value&&i.value?"px-10":t.value?"pl-10":i.value?"pr-10":""),s=A(()=>o.addon?"flex-1 min-w-0 block w-full px-3 py-2 !rounded-none !rounded-r-md":o.inlineAddon?"pl-7":""),m=A(()=>o.invalid?"border-red-500 ring-red-500 focus:ring-red-500 focus:border-red-500":"focus:ring-primary-400 focus:border-primary-400"),p=A(()=>o.disabled?"border-gray-100 bg-gray-100 !text-gray-400 ring-gray-200 focus:ring-gray-200 focus:border-gray-100":""),k=A(()=>{let g=`${o.containerClass} `;return o.addon?`${o.containerClass} flex`:g});function z(g){let h=g.target.value;o.modelModifiers.uppercase&&(h=h.toUpperCase()),r("update:modelValue",h)}return(g,h)=>{const D=C("BaseContentPlaceholdersBox"),R=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(R,{key:0},{default:f(()=>[u(D,{rounded:!0,class:N(`w-full ${n.contentLoadClass}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:N([[n.containerClass,d(k)],"relative rounded-md shadow-sm font-base"])},[n.loading&&n.loadingPosition==="left"?(l(),_("div",uC,[(l(),_("svg",{class:N(["animate-spin !text-primary-500",[n.iconLeftClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},fC,2))])):d(t)?(l(),_("div",gC,[F(g.$slots,"left",{class:N(n.iconLeftClass)})])):P("",!0),n.addon?(l(),_("span",vC,w(n.addon),1)):P("",!0),n.inlineAddon?(l(),_("div",yC,[c("span",hC,w(n.inlineAddon),1)])):P("",!0),c("input",le(g.$attrs,{type:n.type,value:n.modelValue,disabled:n.disabled,class:[n.defaultInputClass,d(e),d(s),d(m),d(p)],onInput:z}),null,16,bC),n.loading&&n.loadingPosition==="right"?(l(),_("div",kC,[(l(),_("svg",{class:N(["animate-spin !text-primary-500",[n.iconRightClass]]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},xC,2))])):P("",!0),d(i)?(l(),_("div",PC,[F(g.$slots,"right",{class:N(n.iconRightClass)})])):P("",!0)],2))}}};var jC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:SC});const AC={props:{layout:{type:String,default:"two-column"}},setup(n){const r=n,o=A(()=>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:N(d(o))},[F(a.$slots,"default")],2))}};var DC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:AC});const CC={class:"text-sm text-red-500"},NC={key:0,class:"text-gray-500 text-xs mt-1 font-light"},EC={key:1,class:"block mt-0.5 text-sm text-red-500"},IC={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(n){const r=n,o=A(()=>r.variant==="horizontal"?"grid md:grid-cols-12 items-center":""),a=A(()=>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=A(()=>r.variant==="horizontal"?"md:col-span-8 md:col-start-5 md:col-ends-12":"flex flex-col mt-1"),i=pe(),e=A(()=>!!i.labelRight);return(s,m)=>{const p=C("BaseContentPlaceholdersText"),k=C("BaseContentPlaceholders"),z=C("BaseIcon"),g=et("tooltip");return l(),_("div",{class:N([d(o),"relative w-full text-left"])},[n.contentLoading?(l(),T(k,{key:0},{default:f(()=>[u(p,{lines:1,class:N(n.contentLoadClass)},null,8,["class"])]),_:1})):n.label?(l(),_("label",{key:1,class:N([d(a),"flex text-sm not-italic items-center font-medium text-gray-800 whitespace-nowrap justify-between"])},[c("div",null,[B(w(n.label)+" ",1),xe(c("span",CC," * ",512),[[dt,n.required]])]),d(e)?F(s.$slots,"labelRight",{key:0}):P("",!0),n.tooltip?xe((l(),T(z,{key:1,name:"InformationCircleIcon",class:"h-4 text-gray-400 cursor-pointer hover:text-gray-600"},null,512)),[[g,{content:n.tooltip}]]):P("",!0)],2)):P("",!0),c("div",{class:N(d(t))},[F(s.$slots,"default"),n.helpText?(l(),_("span",NC,w(n.helpText),1)):P("",!0),n.error?(l(),_("span",EC,w(n.error),1)):P("",!0)],2)],2)}}};var TC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:IC});const RC={props:{status:{type:String,required:!1,default:""}},setup(n){return{badgeColorClasses:A(()=>{switch(n.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 MC(n,r,o,a,t,i){return l(),_("span",{class:N(a.badgeColorClasses)},[F(n.$slots,"default")],2)}var FC=ee(RC,[["render",MC]]),$C=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:FC});const UC={class:"flex-1 text-sm"},VC={key:0,class:"relative flex items-center h-10 pl-2 bg-gray-200 border border-gray-200 border-solid rounded"},OC={class:"w-full pt-1 text-xs text-light"},LC={key:0},qC={class:"text-red-600"},BC={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(n,{emit:r}){const o=n,a=Fe();He(),$e();const t=je(),i=ve();ge();const{t:e}=Se(),s=K(null);K(!1);let m=Ve(M({},o.item));Object.assign(m,o.item),A(()=>0);const p=A({get:()=>o.item.description,set:h=>{o.store[o.storeProp].items[o.index].description=h}});async function k(h){return(await a.fetchItems({search:h})).data.data}function z(){t.openModal({title:e("items.add_item"),componentName:"ItemModal",refreshData:h=>r("select",h),data:{taxPerItem:o.taxPerItem,taxes:o.taxes,itemIndex:o.index,store:o.store,storeProps:o.storeProp}})}function g(h){o.store.deselectItem(h)}return(h,D)=>{const R=C("BaseIcon"),E=C("BaseSelectAction"),x=C("BaseMultiselect"),U=C("BaseTextarea");return l(),_("div",UC,[n.item.item_id?(l(),_("div",VC,[B(w(n.item.name)+" ",1),c("span",{class:"absolute text-gray-400 cursor-pointer top-[8px] right-[10px]",onClick:D[0]||(D[0]=L=>g(n.index))},[u(R,{name:"XCircleIcon"})])])):(l(),T(x,{key:1,modelValue:s.value,"onUpdate:modelValue":[D[1]||(D[1]=L=>s.value=L),D[2]||(D[2]=L=>h.$emit("select",L))],"content-loading":n.contentLoading,"value-prop":"id","track-by":"id",invalid:n.invalid,"preserve-search":"","initial-search":d(m).name,label:"name",filterResults:!1,"resolve-on-load":"",delay:500,searchable:"",options:k,object:"",onSearchChange:D[3]||(D[3]=L=>h.$emit("search",L))},{action:f(()=>[d(i).hasAbilities(d(O).CREATE_ITEM)?(l(),T(E,{key:0,onClick:z},{default:f(()=>[u(R,{name:"PlusCircleIcon",class:"h-4 mr-2 -ml-2 text-center text-primary-400"}),B(" "+w(h.$t("general.add_new_item")),1)]),_:1})):P("",!0)]),_:1},8,["modelValue","content-loading","invalid","initial-search"])),c("div",OC,[u(U,{modelValue:d(p),"onUpdate:modelValue":D[4]||(D[4]=L=>J(p)?p.value=L:null),"content-loading":n.contentLoading,autosize:!0,class:"text-xs",borderless:!0,placeholder:h.$t("estimates.item.type_item_description"),invalid:n.invalidDescription},null,8,["modelValue","content-loading","placeholder","invalid"]),n.invalidDescription?(l(),_("div",LC,[c("span",qC,w(h.$tc("validation.description_maxlength")),1)])):P("",!0)])])}}};var KC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:BC});const ZC={},WC={class:"text-sm not-italic font-medium leading-5 text-primary-800"};function HC(n,r){return l(),_("label",WC,[F(n.$slots,"default")])}var YC=ee(ZC,[["render",HC]]),GC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:YC});const JC={class:"flex items-end justify-center min-h-screen px-4 text-center sm:block sm:px-2"},QC=c("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),XC={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"},eN={props:{show:{type:Boolean,default:!1}},emits:["close","open"],setup(n,{emit:r}){const o=n,a=pe(),t=je();rt(()=>{o.show&&r("open",o.show)});const i=A(()=>{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=A(()=>!!a.header);return(s,m)=>(l(),T(ca,{to:"body"},[u(d(st),{appear:"",as:"template",show:n.show},{default:f(()=>[u(d(ot),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-y-auto",open:n.show,onClose:m[0]||(m[0]=p=>s.$emit("close"))},{default:f(()=>[c("div",JC,[u(d(Ee),{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:f(()=>[u(d(it),{class:"fixed inset-0 transition-opacity bg-gray-700 bg-opacity-25"})]),_:1}),QC,u(d(Ee),{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:f(()=>[c("div",{class:N(`inline-block align-middle bg-white rounded-lg @@ -13,4 +13,4 @@ Vous pouvez sp\xE9cifier le nombre de caract\xE8re.`,random_sequence_param_label my-4 ${d(i)} sm:w-full - border-t-8 border-solid rounded shadow-xl border-primary-500`)},[d(e)?(l(),_("div",XC,[F(s.$slots,"header")])):P("",!0),F(s.$slots,"default"),F(s.$slots,"footer")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"])]))}};var tN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:eN});const aN={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(n,{emit:r}){const o=n;let a=_a;const t=_e();let i=!1;const e=A({get:()=>o.modelValue,set:p=>{if(!i){i=!0;return}r("update:modelValue",p)}}),s=A(()=>{const p=o.currency?o.currency:t.selectedCompanyCurrency;return{decimal:p.decimal_separator,thousands:p.thousand_separator,prefix:p.symbol+" ",precision:p.precision,masked:!1}}),m=A(()=>o.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 z=C("BaseContentPlaceholdersBox"),g=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(g,{key:0},{default:f(()=>[u(z,{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(s),{class:[n.inputClass,d(m)],disabled:n.disabled}),null,16,["modelValue","class","disabled"]))}}};var nN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:aN});const iN={props:{sucess:{type:Boolean,default:!1}},setup(n){return(r,o)=>(l(),_("span",{class:N([n.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 oN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:iN});const sN={},rN={class:"flex-1 p-4 md:p-8 flex flex-col"};function dN(n,r){return l(),_("div",rN,[F(n.$slots,"default")])}var lN=ee(sN,[["render",dN]]),cN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lN});const _N={class:"flex flex-wrap justify-between"},uN={class:"text-2xl font-bold text-left text-black"},mN={class:"flex items-center"},pN={props:{title:{type:[String],default:"",required:!0}},setup(n){return(r,o)=>(l(),_("div",_N,[c("div",null,[c("h3",uN,w(n.title),1),F(r.$slots,"default")]),c("div",mN,[F(r.$slots,"actions")])]))}};var fN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:pN});const gN={props:{status:{type:String,required:!1,default:""},defaultClass:{type:String,default:"px-1 py-0.5 text-xs"}},setup(n){return{badgeColorClasses:A(()=>{switch(n.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";case"OVERDUE":return"bg-red-300 bg-opacity-50 px-2 py-1 text-sm text-red-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 text-gray-900 uppercase font-normal text-center"}})}}};function vN(n,r,o,a,t,i){return l(),_("span",{class:N([[a.badgeColorClasses,o.defaultClass],""])},[F(n.$slots,"default")],2)}var yN=ee(gN,[["render",vN]]),hN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:yN});const bN=B(" Privacy setting "),kN={class:"-space-y-px rounded-md"},wN={class:"relative flex cursor-pointer focus:outline-none"},zN=c("span",{class:"rounded-full bg-white w-1.5 h-1.5"},null,-1),xN=[zN],PN={class:"flex flex-col ml-3"},SN={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(n,{emit:r}){const o=n,a=A({get:()=>o.modelValue,set:t=>r("update:modelValue",t)});return(t,i)=>(l(),T(d(ma),{modelValue:d(a),"onUpdate:modelValue":i[0]||(i[0]=e=>J(a)?a.value=e:null)},{default:f(()=>[u(d(ct),{class:"sr-only"},{default:f(()=>[bN]),_:1}),c("div",kN,[u(d(ua),le({id:n.id,as:"template",value:n.value,name:n.name},t.$attrs),{default:f(({checked:e,active:s})=>[c("div",wN,[c("span",{class:N([e?n.checkedStateClass:n.unCheckedStateClass,s?n.optionGroupActiveStateClass:"",n.optionGroupClass]),"aria-hidden":"true"},xN,2),c("div",PN,[u(d(ct),{as:"span",class:N([e?n.checkedStateLabelClass:n.unCheckedStateLabelClass,n.optionGroupLabelClass])},{default:f(()=>[B(w(n.label),1)]),_:2},1032,["class"])])])]),_:1},16,["id","value","name"])])]),_:1},8,["modelValue"]))}};var jN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:SN});const AN={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 n=this.style.starWidth/2,r=this.style.starHeight/2,o=5,a=this.style.starWidth/o,i=a*2.5;return this.calcStarPoints(n,r,o,a,i)}},created(){this.initStars(),this.setStars(),this.setConfigData()},methods:{calcStarPoints(n,r,o,a,t){let i=Math.PI/o,e=60,s=o*2,m="";for(let p=0;p(l(),_("div",{key:s,title:o.rating,class:"star-container"},[(l(),_("svg",{style:De([{fill:`url(#gradient${e.raw})`},{width:n.style.starWidth},{height:n.style.starHeight}]),class:"star-svg"},[c("polygon",{points:i.getStarPoints,style:{"fill-rule":"nonzero"}},null,8,NN),c("defs",null,[c("linearGradient",{id:`gradient${e.raw}`},[c("stop",{id:"stop1",offset:e.percent,"stop-color":i.getFullFillColor(e),"stop-opacity":"1"},null,8,IN),c("stop",{id:"stop2",offset:e.percent,"stop-color":i.getFullFillColor(e),"stop-opacity":"0"},null,8,TN),c("stop",{id:"stop3",offset:e.percent,"stop-color":n.style.emptyStarColor,"stop-opacity":"1"},null,8,RN),c("stop",{id:"stop4","stop-color":n.style.emptyStarColor,offset:"100%","stop-opacity":"1"},null,8,MN)],8,EN)])],4))],8,CN))),128)),n.isIndicatorActive?(l(),_("div",FN,w(o.rating),1)):P("",!0)])}var UN=ee(AN,[["render",$N],["__scopeId","data-v-52311750"]]),VN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:UN});const ON={props:{status:{type:String,required:!1,default:""}},setup(n){return{badgeColorClasses:A(()=>{switch(n.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 LN(n,r,o,a,t,i){return l(),_("span",{class:N(a.badgeColorClasses)},[F(n.$slots,"default")],2)}var qN=ee(ON,[["render",LN]]),BN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:qN});const KN={},ZN={class:"flex flex-col"},WN={class:"-my-2 overflow-x-auto lg:overflow-visible sm:-mx-6 lg:-mx-8"},HN={class:"py-2 align-middle inline-block min-w-full sm:px-4 lg:px-6"},YN={class:"overflow-hidden lg:overflow-visible sm:px-2 lg:p-2"};function GN(n,r){return l(),_("div",ZN,[c("div",WN,[c("div",HN,[c("div",YN,[F(n.$slots,"default")])])])])}var JN=ee(KN,[["render",GN]]),QN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:JN});const XN={},eE={class:"flex items-center justify-center w-full px-6 py-2 text-sm bg-gray-200 cursor-pointer text-primary-400"};function tE(n,r){return l(),_("div",eE,[F(n.$slots,"default")])}var aE=ee(XN,[["render",tE]]),nE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:aE});const iE={class:"relative"},oE={key:0,class:"block truncate"},sE={key:1,class:"block text-gray-400 truncate"},rE={key:2,class:"block text-gray-400 truncate"},dE={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},lE={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(n,{emit:r}){const o=n;let a=K(o.modelValue);function t(e){return typeof e=="object"&&e!==null}function i(e){return t(e)?e[o.labelKey]:e}return fe(()=>o.modelValue,()=>{o.valueProp&&o.options.length?a.value=o.options.find(e=>{if(e[o.valueProp])return e[o.valueProp]===o.modelValue}):a.value=o.modelValue}),fe(a,e=>{o.valueProp?r("update:modelValue",e[o.valueProp]):r("update:modelValue",e)}),(e,s)=>{const m=C("BaseContentPlaceholdersBox"),p=C("BaseContentPlaceholders"),k=C("BaseIcon");return n.contentLoading?(l(),T(p,{key:0},{default:f(()=>[u(m,{rounded:!0,class:"w-full h-10"})]),_:1})):(l(),T(d(ya),le({key:1,modelValue:d(a),"onUpdate:modelValue":s[0]||(s[0]=z=>J(a)?a.value=z:a=z),as:"div"},M({},e.$attrs)),{default:f(()=>[n.label?(l(),T(d(pa),{key:0,class:"block text-sm not-italic font-medium text-gray-800 mb-0.5"},{default:f(()=>[B(w(n.label),1)]),_:1})):P("",!0),c("div",iE,[u(d(fa),{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:f(()=>[i(d(a))?(l(),_("span",oE,w(i(d(a))),1)):n.placeholder?(l(),_("span",sE,w(n.placeholder),1)):(l(),_("span",rE," Please select an option ")),c("span",dE,[u(k,{name:"SelectorIcon",class:"text-gray-400","aria-hidden":"true"})])]),_:1}),u(Ne,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:f(()=>[u(d(ga),{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:f(()=>[(l(!0),_(X,null,ae(n.options,z=>(l(),T(d(va),{key:z.id,value:z,as:"template"},{default:f(({active:g,selected:h})=>[c("li",{class:N([g?"text-white bg-primary-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[c("span",{class:N([h?"font-semibold":"font-normal","block truncate"])},w(i(z)),3),h?(l(),_("span",{key:0,class:N([g?"text-white":"text-primary-600","absolute inset-y-0 right-0 flex items-center pr-4"])},[u(k,{name:"CheckIcon","aria-hidden":"true"})],2)):P("",!0)],2)]),_:2},1032,["value"]))),128)),F(e.$slots,"default")]),_:3})]),_:3})])]),_:3},16,["modelValue"]))}}};var cE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lE});const _E={class:"flex flex-wrap justify-between lg:flex-nowrap mb-5"},uE={class:"font-medium text-lg text-left"},mE={class:"mt-2 text-sm leading-snug text-left text-gray-500 max-w-[680px]"},pE={class:"mt-4 lg:mt-0 lg:ml-2"},fE={props:{title:{type:String,required:!0},description:{type:String,required:!0}},setup(n){return(r,o)=>{const a=C("BaseCard");return l(),T(a,null,{default:f(()=>[c("div",_E,[c("div",null,[c("h6",uE,w(n.title),1),c("p",mE,w(n.description),1)]),c("div",pE,[F(r.$slots,"action")])]),F(r.$slots,"default")]),_:3})}}};var gE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:fE});const vE={},yE={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},hE=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),bE=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),kE=[hE,bE];function wE(n,r){return l(),_("svg",yE,kE)}var zE=ee(vE,[["render",wE]]),xE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zE});const PE={class:"flex flex-row items-start"},SE={props:{labelLeft:{type:String,default:""},labelRight:{type:String,default:""},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){const o=n,a=A({get:()=>o.modelValue,set:t=>r("update:modelValue",t)});return(t,i)=>(l(),T(d(ut),null,{default:f(()=>[c("div",PE,[n.labelLeft?(l(),T(d(Oe),{key:0,class:"mr-4 cursor-pointer"},{default:f(()=>[B(w(n.labelLeft),1)]),_:1})):P("",!0),u(d(_t),le({modelValue:d(a),"onUpdate:modelValue":i[0]||(i[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:f(()=>[c("span",{class:N([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"]),n.labelRight?(l(),T(d(Oe),{key:1,class:"ml-4 cursor-pointer"},{default:f(()=>[B(w(n.labelRight),1)]),_:1})):P("",!0)])]),_:1}))}};var jE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:SE});const AE={class:"flex flex-col"},DE={props:{title:{type:String,required:!0},description:{type:String,default:""},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){function o(a){r("update:modelValue",a)}return(a,t)=>(l(),T(d(ut),{as:"li",class:"py-4 flex items-center justify-between"},{default:f(()=>[c("div",AE,[u(d(Oe),{as:"p",class:"p-0 mb-1 text-sm leading-snug text-black font-medium",passive:""},{default:f(()=>[B(w(n.title),1)]),_:1}),u(d(ha),{class:"text-sm text-gray-500"},{default:f(()=>[B(w(n.description),1)]),_:1})]),u(d(_t),{disabled:n.disabled,"model-value":n.modelValue,class:N([n.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":o},{default:f(()=>[c("span",{"aria-hidden":"true",class:N([n.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 CE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:DE});const NE={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(n){return(r,o)=>(l(),T(d(ba),{class:N([n.tabPanelContainer,"focus:outline-none"])},{default:f(()=>[F(r.$slots,"default")]),_:3},8,["class"]))}};var EE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NE});const IE={props:{defaultIndex:{type:Number,default:0},filter:{type:String,default:null}},emits:["change"],setup(n,{emit:r}){const o=pe(),a=A(()=>o.default().map(i=>i.props));function t(i){r("change",a.value[i])}return(i,e)=>{const s=C("BaseBadge");return l(),_("div",null,[u(d(xa),{"default-index":n.defaultIndex,onChange:t},{default:f(()=>[u(d(ka),{class:N(["flex border-b border-grey-light","relative overflow-x-auto overflow-y-hidden","lg:pb-0 lg:ml-0"])},{default:f(()=>[(l(!0),_(X,null,ae(d(a),(m,p)=>(l(),T(d(wa),{key:p,as:"template"},{default:f(({selected:k})=>[c("button",{class:N(["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"])},[B(w(m.title)+" ",1),m.count?(l(),T(s,{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:f(()=>[B(w(m.count),1)]),_:2},1032,["variant"])):P("",!0)],2)]),_:2},1024))),128))]),_:1}),F(i.$slots,"before-tabs"),u(d(za),null,{default:f(()=>[F(i.$slots,"default")]),_:3})]),_:3},8,["default-index"])])}}};var TE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:IE});const RE={props:{tag:{type:String,default:"div"},text:{type:String,default:""},length:{type:Number,default:0}},setup(n){const r=n,o=A(()=>r.text.length{const i=C("BaseCustomTag");return l(),T(i,{tag:n.tag,title:n.text},{default:f(()=>[B(w(d(o)),1)]),_:1},8,["tag","title"])}}};var ME=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:RE});const FE=["value","disabled"],$E={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(n,{emit:r}){const o=n,a=K(null),t=A(()=>o.invalid&&!o.borderless?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":o.borderless?"border-none outline-none focus:ring-primary-400 focus:border focus:border-primary-400":"focus:ring-primary-400 focus:border-primary-400"),i=A(()=>{switch(o.row){case 2:return"56";case 4:return"94";default:return"56"}});function e(s){r("update:modelValue",s.target.value),o.autosize&&(s.target.style.height="auto",s.target.style.height=`${s.target.scrollHeight}px`)}return Pe(()=>{a.value&&o.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")}),(s,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(k,{key:0},{default:f(()=>[u(p,{rounded:!0,class:"w-full",style:De(`height: ${d(i)}px`)},null,8,["style"])]),_:1})):(l(),_("textarea",le({key:1},s.$attrs,{ref:(z,g)=>{g.textarea=z,a.value=z},value:n.modelValue,class:[n.defaultInputClass,d(t)],disabled:n.disabled,onInput:e}),null,16,FE))}}};var UE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$E});const VE=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),OE=[VE],LE={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(n,{emit:r}){const o=n,a=K(null),t=pe();let i=Ve({enableTime:!0,noCalendar:!0,dateFormat:"H:i",time_24hr:!0});const e=A({get:()=>o.modelValue,set:g=>r("update:modelValue",g)}),s=A(()=>!!t.icon);function m(g){a.value.fp.open()}const p=A(()=>`${o.containerClass} `),k=A(()=>o.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),z=A(()=>o.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(g,h)=>{const D=C("BaseContentPlaceholdersBox"),R=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(R,{key:0},{default:f(()=>[u(D,{rounded:!0,class:N(`w-full ${d(p)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:N([d(p),"relative flex flex-row"])},[n.clockIcon&&!d(s)?(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},OE)):P("",!0),n.clockIcon&&d(s)?F(g.$slots,"icon",{key:1}):P("",!0),u(d(nt),le({ref:(E,x)=>{x.dpt=E,a.value=E},modelValue:d(e),"onUpdate:modelValue":h[0]||(h[0]=E=>J(e)?e.value=E:null)},g.$attrs,{disabled:n.disabled,config:d(i),class:[n.defaultInputClass,d(k),d(z)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var qE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:LE});const BE={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(n){function r(o){return n.currentStep===o?[n.currentStepClass,n.progress]:n.currentStep>o?[n.previousStepClass,n.progress]:n.currentStep(l(),_("a",{key:s,class:N([a.stepStyle(e),"z-10"]),href:"#",onClick:se(m=>n.$emit("click",s),["prevent"])},[o.currentStep>e?(l(),_("svg",{key:0,class:N(o.iconClass),fill:"currentColor",viewBox:"0 0 20 20",onClick:m=>n.$emit("click",s)},HE,10,ZE)):P("",!0)],10,KE))),128))],2)}var Ct=ee(BE,[["render",YE]]),GE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ct});const JE={class:"w-full"},QE={props:{wizardStepsContainerClass:{type:String,default:"relative flex items-center justify-center"},currentStep:{type:Number,default:0},steps:{type:Number,default:0}},emits:["click"],setup(n,{emit:r}){return(o,a)=>(l(),_("div",JE,[F(o.$slots,"nav",{},()=>[u(Ct,{"current-step":n.currentStep,steps:n.steps,onClick:a[0]||(a[0]=t=>o.$emit("click",t))},null,8,["current-step","steps"])]),c("div",{class:N(n.wizardStepsContainerClass)},[F(o.$slots,"default")],2)]))}};var XE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:QE});const eI={key:0},tI={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(n){return(r,o)=>(l(),_("div",{class:N(n.stepContainerClass)},[n.title||n.description?(l(),_("div",eI,[n.title?(l(),_("p",{key:0,class:N(n.stepTitleClass)},w(n.title),3)):P("",!0),n.description?(l(),_("p",{key:1,class:N(n.stepDescriptionClass)},w(n.description),3)):P("",!0)])):P("",!0),F(r.$slots,"default")],2))}};var aI=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tI});const nI=n=>{Object.entries({"./components/base/BaseBadge.vue":zP,"./components/base/BaseBreadcrumb.vue":AP,"./components/base/BaseBreadcrumbItem.vue":EP,"./components/base/BaseButton.vue":OP,"./components/base/BaseCard.vue":ZP,"./components/base/BaseCheckbox.vue":eS,"./components/base/BaseContentPlaceholders.vue":aS,"./components/base/BaseContentPlaceholdersBox.vue":iS,"./components/base/BaseContentPlaceholdersHeading.vue":lS,"./components/base/BaseContentPlaceholdersText.vue":uS,"./components/base/BaseCustomInput.vue":wS,"./components/base/BaseCustomTag.vue":xS,"./components/base/BaseCustomerAddressDisplay.vue":IS,"./components/base/BaseCustomerSelectInput.vue":YS,"./components/base/BaseCustomerSelectPopup.vue":Tj,"./components/base/BaseDatePicker.vue":$j,"./components/base/BaseDescriptionList.vue":qj,"./components/base/BaseDescriptionListItem.vue":Wj,"./components/base/BaseDialog.vue":tA,"./components/base/BaseDivider.vue":sA,"./components/base/BaseDropdown.vue":cA,"./components/base/BaseDropdownItem.vue":uA,"./components/base/BaseEmptyPlaceholder.vue":kA,"./components/base/BaseErrorAlert.vue":CA,"./components/base/BaseEstimateStatusBadge.vue":EA,"./components/base/BaseFileUploader.vue":rD,"./components/base/BaseFilterWrapper.vue":cD,"./components/base/BaseFormatMoney.vue":mD,"./components/base/BaseGlobalLoader.vue":HD,"./components/base/BaseHeading.vue":GD,"./components/base/BaseIcon.vue":QD,"./components/base/BaseInfoAlert.vue":_C,"./components/base/BaseInput.vue":jC,"./components/base/BaseInputGrid.vue":DC,"./components/base/BaseInputGroup.vue":TC,"./components/base/BaseInvoiceStatusBadge.vue":$C,"./components/base/BaseItemSelect.vue":KC,"./components/base/BaseLabel.vue":GC,"./components/base/BaseModal.vue":tN,"./components/base/BaseMoney.vue":nN,"./components/base/BaseNewBadge.vue":oN,"./components/base/BasePage.vue":cN,"./components/base/BasePageHeader.vue":fN,"./components/base/BasePaidStatusBadge.vue":hN,"./components/base/BaseRadio.vue":jN,"./components/base/BaseRating.vue":VN,"./components/base/BaseRecurringInvoiceStatusBadge.vue":BN,"./components/base/BaseScrollPane.vue":QN,"./components/base/BaseSelectAction.vue":nE,"./components/base/BaseSelectInput.vue":cE,"./components/base/BaseSettingCard.vue":gE,"./components/base/BaseSpinner.vue":xE,"./components/base/BaseSwitch.vue":jE,"./components/base/BaseSwitchSection.vue":CE,"./components/base/BaseTab.vue":EE,"./components/base/BaseTabGroup.vue":TE,"./components/base/BaseText.vue":ME,"./components/base/BaseTextarea.vue":UE,"./components/base/BaseTimePicker.vue":qE,"./components/base/BaseWizard.vue":XE,"./components/base/BaseWizardNavigation.vue":GE,"./components/base/BaseWizardStep.vue":aI}).forEach(([i,e])=>{const s=i.split("/").pop().replace(/\.\w+$/,"");n.component(s,e.default)});const o=Le(()=>S(()=>import("./BaseTable.86db669d.js"),["assets/BaseTable.86db669d.js","assets/vendor.d12b5734.js"])),a=Le(()=>S(()=>import("./BaseMultiselect.2374ebb2.js"),["assets/BaseMultiselect.2374ebb2.js","assets/vendor.d12b5734.js"])),t=Le(()=>S(()=>import("./BaseEditor.3b7c0c02.js"),["assets/BaseEditor.3b7c0c02.js","assets/BaseEditor.bacb9608.css","assets/vendor.d12b5734.js"]));n.component("BaseTable",o),n.component("BaseMultiselect",a),n.component("BaseEditor",t)},ce=Pa(qn);class iI{constructor(){this.bootingCallbacks=[],this.messages=kP}booting(r){this.bootingCallbacks.push(r)}executeCallbacks(){this.bootingCallbacks.forEach(r=>{r(ce,Re)})}addMessages(r=[]){oe.merge(this.messages,r)}start(){this.executeCallbacks(),nI(ce),ce.provide("$utils",Ze);const r=Xe({locale:"en",fallbackLocale:"en",globalInjection:!0,messages:this.messages});window.i18n=r;const{createPinia:o}=window.pinia;ce.use(Re),ce.use(Sa),ce.use(r),ce.use(o()),ce.provide("utils",Ze),ce.directive("tooltip",ja),ce.mount("body")}}window.pinia=Aa;window.Vuelidate=Da;window.Vue=Ca;window.router=Re;window.VueRouter=Na;window.Crater=new iI;export{qe as L,UP as S,ie as T,ee as _,Ea as a,_e as b,je as c,Te as d,ve as e,qD as f,O as g,y as h,$e as i,Hj as j,He as k,ke as l,pS as m,US as n,S as o,Fe as p,we as q,Ia as r,Ze as s,At as t,$ as u,Vn as v,_A as w,lA as x}; + border-t-8 border-solid rounded shadow-xl border-primary-500`)},[d(e)?(l(),_("div",XC,[F(s.$slots,"header")])):P("",!0),F(s.$slots,"default"),F(s.$slots,"footer")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"])]))}};var tN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:eN});const aN={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(n,{emit:r}){const o=n;let a=_a;const t=_e();let i=!1;const e=A({get:()=>o.modelValue,set:p=>{if(!i){i=!0;return}r("update:modelValue",p)}}),s=A(()=>{const p=o.currency?o.currency:t.selectedCompanyCurrency;return{decimal:p.decimal_separator,thousands:p.thousand_separator,prefix:p.symbol+" ",precision:p.precision,masked:!1}}),m=A(()=>o.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 z=C("BaseContentPlaceholdersBox"),g=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(g,{key:0},{default:f(()=>[u(z,{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(s),{class:[n.inputClass,d(m)],disabled:n.disabled}),null,16,["modelValue","class","disabled"]))}}};var nN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:aN});const iN={props:{sucess:{type:Boolean,default:!1}},setup(n){return(r,o)=>(l(),_("span",{class:N([n.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 oN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:iN});const sN={},rN={class:"flex-1 p-4 md:p-8 flex flex-col"};function dN(n,r){return l(),_("div",rN,[F(n.$slots,"default")])}var lN=ee(sN,[["render",dN]]),cN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lN});const _N={class:"flex flex-wrap justify-between"},uN={class:"text-2xl font-bold text-left text-black"},mN={class:"flex items-center"},pN={props:{title:{type:[String],default:"",required:!0}},setup(n){return(r,o)=>(l(),_("div",_N,[c("div",null,[c("h3",uN,w(n.title),1),F(r.$slots,"default")]),c("div",mN,[F(r.$slots,"actions")])]))}};var fN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:pN});const gN={props:{status:{type:String,required:!1,default:""},defaultClass:{type:String,default:"px-1 py-0.5 text-xs"}},setup(n){return{badgeColorClasses:A(()=>{switch(n.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";case"OVERDUE":return"bg-red-300 bg-opacity-50 px-2 py-1 text-sm text-red-900 uppercase font-normal text-center";default:return"bg-gray-500 bg-opacity-25 text-gray-900 uppercase font-normal text-center"}})}}};function vN(n,r,o,a,t,i){return l(),_("span",{class:N([[a.badgeColorClasses,o.defaultClass],""])},[F(n.$slots,"default")],2)}var yN=ee(gN,[["render",vN]]),hN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:yN});const bN=B(" Privacy setting "),kN={class:"-space-y-px rounded-md"},wN={class:"relative flex cursor-pointer focus:outline-none"},zN=c("span",{class:"rounded-full bg-white w-1.5 h-1.5"},null,-1),xN=[zN],PN={class:"flex flex-col ml-3"},SN={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(n,{emit:r}){const o=n,a=A({get:()=>o.modelValue,set:t=>r("update:modelValue",t)});return(t,i)=>(l(),T(d(ma),{modelValue:d(a),"onUpdate:modelValue":i[0]||(i[0]=e=>J(a)?a.value=e:null)},{default:f(()=>[u(d(ct),{class:"sr-only"},{default:f(()=>[bN]),_:1}),c("div",kN,[u(d(ua),le({id:n.id,as:"template",value:n.value,name:n.name},t.$attrs),{default:f(({checked:e,active:s})=>[c("div",wN,[c("span",{class:N([e?n.checkedStateClass:n.unCheckedStateClass,s?n.optionGroupActiveStateClass:"",n.optionGroupClass]),"aria-hidden":"true"},xN,2),c("div",PN,[u(d(ct),{as:"span",class:N([e?n.checkedStateLabelClass:n.unCheckedStateLabelClass,n.optionGroupLabelClass])},{default:f(()=>[B(w(n.label),1)]),_:2},1032,["class"])])])]),_:1},16,["id","value","name"])])]),_:1},8,["modelValue"]))}};var jN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:SN});const AN={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 n=this.style.starWidth/2,r=this.style.starHeight/2,o=5,a=this.style.starWidth/o,i=a*2.5;return this.calcStarPoints(n,r,o,a,i)}},created(){this.initStars(),this.setStars(),this.setConfigData()},methods:{calcStarPoints(n,r,o,a,t){let i=Math.PI/o,e=60,s=o*2,m="";for(let p=0;p(l(),_("div",{key:s,title:o.rating,class:"star-container"},[(l(),_("svg",{style:De([{fill:`url(#gradient${e.raw})`},{width:n.style.starWidth},{height:n.style.starHeight}]),class:"star-svg"},[c("polygon",{points:i.getStarPoints,style:{"fill-rule":"nonzero"}},null,8,NN),c("defs",null,[c("linearGradient",{id:`gradient${e.raw}`},[c("stop",{id:"stop1",offset:e.percent,"stop-color":i.getFullFillColor(e),"stop-opacity":"1"},null,8,IN),c("stop",{id:"stop2",offset:e.percent,"stop-color":i.getFullFillColor(e),"stop-opacity":"0"},null,8,TN),c("stop",{id:"stop3",offset:e.percent,"stop-color":n.style.emptyStarColor,"stop-opacity":"1"},null,8,RN),c("stop",{id:"stop4","stop-color":n.style.emptyStarColor,offset:"100%","stop-opacity":"1"},null,8,MN)],8,EN)])],4))],8,CN))),128)),n.isIndicatorActive?(l(),_("div",FN,w(o.rating),1)):P("",!0)])}var UN=ee(AN,[["render",$N],["__scopeId","data-v-52311750"]]),VN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:UN});const ON={props:{status:{type:String,required:!1,default:""}},setup(n){return{badgeColorClasses:A(()=>{switch(n.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 LN(n,r,o,a,t,i){return l(),_("span",{class:N(a.badgeColorClasses)},[F(n.$slots,"default")],2)}var qN=ee(ON,[["render",LN]]),BN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:qN});const KN={},ZN={class:"flex flex-col"},WN={class:"-my-2 overflow-x-auto lg:overflow-visible sm:-mx-6 lg:-mx-8"},HN={class:"py-2 align-middle inline-block min-w-full sm:px-4 lg:px-6"},YN={class:"overflow-hidden lg:overflow-visible sm:px-2 lg:p-2"};function GN(n,r){return l(),_("div",ZN,[c("div",WN,[c("div",HN,[c("div",YN,[F(n.$slots,"default")])])])])}var JN=ee(KN,[["render",GN]]),QN=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:JN});const XN={},eE={class:"flex items-center justify-center w-full px-6 py-2 text-sm bg-gray-200 cursor-pointer text-primary-400"};function tE(n,r){return l(),_("div",eE,[F(n.$slots,"default")])}var aE=ee(XN,[["render",tE]]),nE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:aE});const iE={class:"relative"},oE={key:0,class:"block truncate"},sE={key:1,class:"block text-gray-400 truncate"},rE={key:2,class:"block text-gray-400 truncate"},dE={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},lE={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(n,{emit:r}){const o=n;let a=K(o.modelValue);function t(e){return typeof e=="object"&&e!==null}function i(e){return t(e)?e[o.labelKey]:e}return fe(()=>o.modelValue,()=>{o.valueProp&&o.options.length?a.value=o.options.find(e=>{if(e[o.valueProp])return e[o.valueProp]===o.modelValue}):a.value=o.modelValue}),fe(a,e=>{o.valueProp?r("update:modelValue",e[o.valueProp]):r("update:modelValue",e)}),(e,s)=>{const m=C("BaseContentPlaceholdersBox"),p=C("BaseContentPlaceholders"),k=C("BaseIcon");return n.contentLoading?(l(),T(p,{key:0},{default:f(()=>[u(m,{rounded:!0,class:"w-full h-10"})]),_:1})):(l(),T(d(ya),le({key:1,modelValue:d(a),"onUpdate:modelValue":s[0]||(s[0]=z=>J(a)?a.value=z:a=z),as:"div"},M({},e.$attrs)),{default:f(()=>[n.label?(l(),T(d(pa),{key:0,class:"block text-sm not-italic font-medium text-gray-800 mb-0.5"},{default:f(()=>[B(w(n.label),1)]),_:1})):P("",!0),c("div",iE,[u(d(fa),{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:f(()=>[i(d(a))?(l(),_("span",oE,w(i(d(a))),1)):n.placeholder?(l(),_("span",sE,w(n.placeholder),1)):(l(),_("span",rE," Please select an option ")),c("span",dE,[u(k,{name:"SelectorIcon",class:"text-gray-400","aria-hidden":"true"})])]),_:1}),u(Ne,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:f(()=>[u(d(ga),{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:f(()=>[(l(!0),_(X,null,ae(n.options,z=>(l(),T(d(va),{key:z.id,value:z,as:"template"},{default:f(({active:g,selected:h})=>[c("li",{class:N([g?"text-white bg-primary-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[c("span",{class:N([h?"font-semibold":"font-normal","block truncate"])},w(i(z)),3),h?(l(),_("span",{key:0,class:N([g?"text-white":"text-primary-600","absolute inset-y-0 right-0 flex items-center pr-4"])},[u(k,{name:"CheckIcon","aria-hidden":"true"})],2)):P("",!0)],2)]),_:2},1032,["value"]))),128)),F(e.$slots,"default")]),_:3})]),_:3})])]),_:3},16,["modelValue"]))}}};var cE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:lE});const _E={class:"flex flex-wrap justify-between lg:flex-nowrap mb-5"},uE={class:"font-medium text-lg text-left"},mE={class:"mt-2 text-sm leading-snug text-left text-gray-500 max-w-[680px]"},pE={class:"mt-4 lg:mt-0 lg:ml-2"},fE={props:{title:{type:String,required:!0},description:{type:String,required:!0}},setup(n){return(r,o)=>{const a=C("BaseCard");return l(),T(a,null,{default:f(()=>[c("div",_E,[c("div",null,[c("h6",uE,w(n.title),1),c("p",mE,w(n.description),1)]),c("div",pE,[F(r.$slots,"action")])]),F(r.$slots,"default")]),_:3})}}};var gE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:fE});const vE={},yE={class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},hE=c("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),bE=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),kE=[hE,bE];function wE(n,r){return l(),_("svg",yE,kE)}var zE=ee(vE,[["render",wE]]),xE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zE});const PE={class:"flex flex-row items-start"},SE={props:{labelLeft:{type:String,default:""},labelRight:{type:String,default:""},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){const o=n,a=A({get:()=>o.modelValue,set:t=>r("update:modelValue",t)});return(t,i)=>(l(),T(d(ut),null,{default:f(()=>[c("div",PE,[n.labelLeft?(l(),T(d(Oe),{key:0,class:"mr-4 cursor-pointer"},{default:f(()=>[B(w(n.labelLeft),1)]),_:1})):P("",!0),u(d(_t),le({modelValue:d(a),"onUpdate:modelValue":i[0]||(i[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:f(()=>[c("span",{class:N([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"]),n.labelRight?(l(),T(d(Oe),{key:1,class:"ml-4 cursor-pointer"},{default:f(()=>[B(w(n.labelRight),1)]),_:1})):P("",!0)])]),_:1}))}};var jE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:SE});const AE={class:"flex flex-col"},DE={props:{title:{type:String,required:!0},description:{type:String,default:""},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){function o(a){r("update:modelValue",a)}return(a,t)=>(l(),T(d(ut),{as:"li",class:"py-4 flex items-center justify-between"},{default:f(()=>[c("div",AE,[u(d(Oe),{as:"p",class:"p-0 mb-1 text-sm leading-snug text-black font-medium",passive:""},{default:f(()=>[B(w(n.title),1)]),_:1}),u(d(ha),{class:"text-sm text-gray-500"},{default:f(()=>[B(w(n.description),1)]),_:1})]),u(d(_t),{disabled:n.disabled,"model-value":n.modelValue,class:N([n.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":o},{default:f(()=>[c("span",{"aria-hidden":"true",class:N([n.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 CE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:DE});const NE={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(n){return(r,o)=>(l(),T(d(ba),{class:N([n.tabPanelContainer,"focus:outline-none"])},{default:f(()=>[F(r.$slots,"default")]),_:3},8,["class"]))}};var EE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:NE});const IE={props:{defaultIndex:{type:Number,default:0},filter:{type:String,default:null}},emits:["change"],setup(n,{emit:r}){const o=pe(),a=A(()=>o.default().map(i=>i.props));function t(i){r("change",a.value[i])}return(i,e)=>{const s=C("BaseBadge");return l(),_("div",null,[u(d(xa),{"default-index":n.defaultIndex,onChange:t},{default:f(()=>[u(d(ka),{class:N(["flex border-b border-grey-light","relative overflow-x-auto overflow-y-hidden","lg:pb-0 lg:ml-0"])},{default:f(()=>[(l(!0),_(X,null,ae(d(a),(m,p)=>(l(),T(d(wa),{key:p,as:"template"},{default:f(({selected:k})=>[c("button",{class:N(["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"])},[B(w(m.title)+" ",1),m.count?(l(),T(s,{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:f(()=>[B(w(m.count),1)]),_:2},1032,["variant"])):P("",!0)],2)]),_:2},1024))),128))]),_:1}),F(i.$slots,"before-tabs"),u(d(za),null,{default:f(()=>[F(i.$slots,"default")]),_:3})]),_:3},8,["default-index"])])}}};var TE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:IE});const RE={props:{tag:{type:String,default:"div"},text:{type:String,default:""},length:{type:Number,default:0}},setup(n){const r=n,o=A(()=>r.text.length{const i=C("BaseCustomTag");return l(),T(i,{tag:n.tag,title:n.text},{default:f(()=>[B(w(d(o)),1)]),_:1},8,["tag","title"])}}};var ME=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:RE});const FE=["value","disabled"],$E={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(n,{emit:r}){const o=n,a=K(null),t=A(()=>o.invalid&&!o.borderless?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":o.borderless?"border-none outline-none focus:ring-primary-400 focus:border focus:border-primary-400":"focus:ring-primary-400 focus:border-primary-400"),i=A(()=>{switch(o.row){case 2:return"56";case 4:return"94";default:return"56"}});function e(s){r("update:modelValue",s.target.value),o.autosize&&(s.target.style.height="auto",s.target.style.height=`${s.target.scrollHeight}px`)}return Pe(()=>{a.value&&o.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")}),(s,m)=>{const p=C("BaseContentPlaceholdersBox"),k=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(k,{key:0},{default:f(()=>[u(p,{rounded:!0,class:"w-full",style:De(`height: ${d(i)}px`)},null,8,["style"])]),_:1})):(l(),_("textarea",le({key:1},s.$attrs,{ref:(z,g)=>{g.textarea=z,a.value=z},value:n.modelValue,class:[n.defaultInputClass,d(t)],disabled:n.disabled,onInput:e}),null,16,FE))}}};var UE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$E});const VE=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),OE=[VE],LE={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(n,{emit:r}){const o=n,a=K(null),t=pe();let i=Ve({enableTime:!0,noCalendar:!0,dateFormat:"H:i",time_24hr:!0});const e=A({get:()=>o.modelValue,set:g=>r("update:modelValue",g)}),s=A(()=>!!t.icon);function m(g){a.value.fp.open()}const p=A(()=>`${o.containerClass} `),k=A(()=>o.invalid?"border-red-400 ring-red-400 focus:ring-red-400 focus:border-red-400":""),z=A(()=>o.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(g,h)=>{const D=C("BaseContentPlaceholdersBox"),R=C("BaseContentPlaceholders");return n.contentLoading?(l(),T(R,{key:0},{default:f(()=>[u(D,{rounded:!0,class:N(`w-full ${d(p)}`),style:{height:"38px"}},null,8,["class"])]),_:1})):(l(),_("div",{key:1,class:N([d(p),"relative flex flex-row"])},[n.clockIcon&&!d(s)?(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},OE)):P("",!0),n.clockIcon&&d(s)?F(g.$slots,"icon",{key:1}):P("",!0),u(d(nt),le({ref:(E,x)=>{x.dpt=E,a.value=E},modelValue:d(e),"onUpdate:modelValue":h[0]||(h[0]=E=>J(e)?e.value=E:null)},g.$attrs,{disabled:n.disabled,config:d(i),class:[n.defaultInputClass,d(k),d(z)]}),null,16,["modelValue","disabled","config","class"])],2))}}};var qE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:LE});const BE={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(n){function r(o){return n.currentStep===o?[n.currentStepClass,n.progress]:n.currentStep>o?[n.previousStepClass,n.progress]:n.currentStep(l(),_("a",{key:s,class:N([a.stepStyle(e),"z-10"]),href:"#",onClick:se(m=>n.$emit("click",s),["prevent"])},[o.currentStep>e?(l(),_("svg",{key:0,class:N(o.iconClass),fill:"currentColor",viewBox:"0 0 20 20",onClick:m=>n.$emit("click",s)},HE,10,ZE)):P("",!0)],10,KE))),128))],2)}var Ct=ee(BE,[["render",YE]]),GE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ct});const JE={class:"w-full"},QE={props:{wizardStepsContainerClass:{type:String,default:"relative flex items-center justify-center"},currentStep:{type:Number,default:0},steps:{type:Number,default:0}},emits:["click"],setup(n,{emit:r}){return(o,a)=>(l(),_("div",JE,[F(o.$slots,"nav",{},()=>[u(Ct,{"current-step":n.currentStep,steps:n.steps,onClick:a[0]||(a[0]=t=>o.$emit("click",t))},null,8,["current-step","steps"])]),c("div",{class:N(n.wizardStepsContainerClass)},[F(o.$slots,"default")],2)]))}};var XE=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:QE});const eI={key:0},tI={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(n){return(r,o)=>(l(),_("div",{class:N(n.stepContainerClass)},[n.title||n.description?(l(),_("div",eI,[n.title?(l(),_("p",{key:0,class:N(n.stepTitleClass)},w(n.title),3)):P("",!0),n.description?(l(),_("p",{key:1,class:N(n.stepDescriptionClass)},w(n.description),3)):P("",!0)])):P("",!0),F(r.$slots,"default")],2))}};var aI=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tI});const nI=n=>{Object.entries({"./components/base/BaseBadge.vue":zP,"./components/base/BaseBreadcrumb.vue":AP,"./components/base/BaseBreadcrumbItem.vue":EP,"./components/base/BaseButton.vue":OP,"./components/base/BaseCard.vue":ZP,"./components/base/BaseCheckbox.vue":eS,"./components/base/BaseContentPlaceholders.vue":aS,"./components/base/BaseContentPlaceholdersBox.vue":iS,"./components/base/BaseContentPlaceholdersHeading.vue":lS,"./components/base/BaseContentPlaceholdersText.vue":uS,"./components/base/BaseCustomInput.vue":wS,"./components/base/BaseCustomTag.vue":xS,"./components/base/BaseCustomerAddressDisplay.vue":IS,"./components/base/BaseCustomerSelectInput.vue":YS,"./components/base/BaseCustomerSelectPopup.vue":Tj,"./components/base/BaseDatePicker.vue":$j,"./components/base/BaseDescriptionList.vue":qj,"./components/base/BaseDescriptionListItem.vue":Wj,"./components/base/BaseDialog.vue":tA,"./components/base/BaseDivider.vue":sA,"./components/base/BaseDropdown.vue":cA,"./components/base/BaseDropdownItem.vue":uA,"./components/base/BaseEmptyPlaceholder.vue":kA,"./components/base/BaseErrorAlert.vue":CA,"./components/base/BaseEstimateStatusBadge.vue":EA,"./components/base/BaseFileUploader.vue":rD,"./components/base/BaseFilterWrapper.vue":cD,"./components/base/BaseFormatMoney.vue":mD,"./components/base/BaseGlobalLoader.vue":HD,"./components/base/BaseHeading.vue":GD,"./components/base/BaseIcon.vue":QD,"./components/base/BaseInfoAlert.vue":_C,"./components/base/BaseInput.vue":jC,"./components/base/BaseInputGrid.vue":DC,"./components/base/BaseInputGroup.vue":TC,"./components/base/BaseInvoiceStatusBadge.vue":$C,"./components/base/BaseItemSelect.vue":KC,"./components/base/BaseLabel.vue":GC,"./components/base/BaseModal.vue":tN,"./components/base/BaseMoney.vue":nN,"./components/base/BaseNewBadge.vue":oN,"./components/base/BasePage.vue":cN,"./components/base/BasePageHeader.vue":fN,"./components/base/BasePaidStatusBadge.vue":hN,"./components/base/BaseRadio.vue":jN,"./components/base/BaseRating.vue":VN,"./components/base/BaseRecurringInvoiceStatusBadge.vue":BN,"./components/base/BaseScrollPane.vue":QN,"./components/base/BaseSelectAction.vue":nE,"./components/base/BaseSelectInput.vue":cE,"./components/base/BaseSettingCard.vue":gE,"./components/base/BaseSpinner.vue":xE,"./components/base/BaseSwitch.vue":jE,"./components/base/BaseSwitchSection.vue":CE,"./components/base/BaseTab.vue":EE,"./components/base/BaseTabGroup.vue":TE,"./components/base/BaseText.vue":ME,"./components/base/BaseTextarea.vue":UE,"./components/base/BaseTimePicker.vue":qE,"./components/base/BaseWizard.vue":XE,"./components/base/BaseWizardNavigation.vue":GE,"./components/base/BaseWizardStep.vue":aI}).forEach(([i,e])=>{const s=i.split("/").pop().replace(/\.\w+$/,"");n.component(s,e.default)});const o=Le(()=>S(()=>import("./BaseTable.d75a6388.js"),["assets/BaseTable.d75a6388.js","assets/vendor.d12b5734.js"])),a=Le(()=>S(()=>import("./BaseMultiselect.1793a39d.js"),["assets/BaseMultiselect.1793a39d.js","assets/vendor.d12b5734.js"])),t=Le(()=>S(()=>import("./BaseEditor.ead2b9f1.js"),["assets/BaseEditor.ead2b9f1.js","assets/BaseEditor.bacb9608.css","assets/vendor.d12b5734.js"]));n.component("BaseTable",o),n.component("BaseMultiselect",a),n.component("BaseEditor",t)},ce=Pa(qn);class iI{constructor(){this.bootingCallbacks=[],this.messages=kP}booting(r){this.bootingCallbacks.push(r)}executeCallbacks(){this.bootingCallbacks.forEach(r=>{r(ce,Re)})}addMessages(r=[]){oe.merge(this.messages,r)}start(){this.executeCallbacks(),nI(ce),ce.provide("$utils",Ze);const r=Xe({locale:"en",fallbackLocale:"en",globalInjection:!0,messages:this.messages});window.i18n=r;const{createPinia:o}=window.pinia;ce.use(Re),ce.use(Sa),ce.use(r),ce.use(o()),ce.provide("utils",Ze),ce.directive("tooltip",ja),ce.mount("body")}}window.pinia=Aa;window.Vuelidate=Da;window.Vue=Ca;window.router=Re;window.VueRouter=Na;window.Crater=new iI;export{qe as L,UP as S,ie as T,ee as _,Ea as a,_e as b,je as c,Te as d,ve as e,qD as f,O as g,y as h,$e as i,Hj as j,He as k,ke as l,pS as m,US as n,S as o,Fe as p,we as q,Ia as r,Ze as s,At as t,$ as u,Vn as v,_A as w,lA as x}; diff --git a/public/build/assets/payment.7edbe3ce.js b/public/build/assets/payment.03dd8d5c.js similarity index 93% rename from public/build/assets/payment.7edbe3ce.js rename to public/build/assets/payment.03dd8d5c.js index e263008d6..74a8987af 100644 --- a/public/build/assets/payment.7edbe3ce.js +++ b/public/build/assets/payment.03dd8d5c.js @@ -1 +1 @@ -import{h as s}from"./auth.974620c9.js";import{a as o}from"./vendor.d12b5734.js";const{defineStore:i}=window.pinia,r=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{r as u}; +import{h as s}from"./auth.a07e0850.js";import{a as o}from"./vendor.d12b5734.js";const{defineStore:i}=window.pinia,r=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{r as u}; diff --git a/public/build/assets/payment.ef13b90b.js b/public/build/assets/payment.2b6f850e.js similarity index 97% rename from public/build/assets/payment.ef13b90b.js rename to public/build/assets/payment.2b6f850e.js index aae17ceb7..c3141986a 100644 --- a/public/build/assets/payment.ef13b90b.js +++ b/public/build/assets/payment.2b6f850e.js @@ -1 +1 @@ -var P=Object.defineProperty;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var u=(y,c,i)=>c in y?P(y,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[c]=i,p=(y,c)=>{for(var i in c||(c={}))g.call(c,i)&&u(y,i,c[i]);if(r)for(var i of r(c))w.call(c,i)&&u(y,i,c[i]);return y};import{G as _,I as v,a as o,d as N}from"./vendor.d12b5734.js";import{b as S,h as m,u as h}from"./main.6ceeb72d.js";var f={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 c=y?window.pinia.defineStore:N,{global:i}=window.i18n;return c({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({},f),paymentModes:[],currentPaymentMode:{id:"",name:null},isFetchingInitialData:!1}),getters:{isEdit:t=>!!t.paymentProviders.id},actions:{fetchPaymentInitialData(t){const s=S(),n=_();this.isFetchingInitialData=!0;let e=[];t&&(e=[this.fetchPayment(n.params.id)]),Promise.all([this.fetchPaymentModes({limit:"all"}),this.getNextNumber(),...e]).then(async([a,l,d])=>{t?d.data.data.invoice&&(this.currentPayment.maxPayableAmount=parseInt(d.data.data.invoice.due_amount)):!t&&l.data&&(this.currentPayment.payment_date=v().format("YYYY-MM-DD"),this.currentPayment.payment_number=l.data.nextNumber,this.currentPayment.currency=s.selectedCompanyCurrency),this.isFetchingInitialData=!1}).catch(a=>{m(a)})},fetchPayments(t){return new Promise((s,n)=>{o.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data.data,this.paymentTotalCount=e.data.meta.payment_total_count,s(e)}).catch(e=>{m(e),n(e)})})},fetchPayment(t){return new Promise((s,n)=>{o.get(`/api/v1/payments/${t}`).then(e=>{Object.assign(this.currentPayment,e.data.data),s(e)}).catch(e=>{m(e),n(e)})})},addPayment(t){return new Promise((s,n)=>{o.post("/api/v1/payments",t).then(e=>{this.payments.push(e.data),h().showNotification({type:"success",message:i.t("payments.created_message")}),s(e)}).catch(e=>{m(e),n(e)})})},updatePayment(t){return new Promise((s,n)=>{o.put(`/api/v1/payments/${t.id}`,t).then(e=>{if(e.data){let a=this.payments.findIndex(d=>d.id===e.data.data.id);this.payments[a]=t.payment,h().showNotification({type:"success",message:i.t("payments.updated_message")})}s(e)}).catch(e=>{m(e),n(e)})})},deletePayment(t){const s=h();return new Promise((n,e)=>{o.post("/api/v1/payments/delete",t).then(a=>{let l=this.payments.findIndex(d=>d.id===t);this.payments.splice(l,1),s.showNotification({type:"success",message:i.t("payments.deleted_message",1)}),n(a)}).catch(a=>{m(a),e(a)})})},deleteMultiplePayments(){const t=h();return new Promise((s,n)=>{o.post("/api/v1/payments/delete",{ids:this.selectedPayments}).then(e=>{this.selectedPayments.forEach(a=>{let l=this.payments.findIndex(d=>d.id===a.id);this.payments.splice(l,1)}),t.showNotification({type:"success",message:i.tc("payments.deleted_message",2)}),s(e)}).catch(e=>{m(e),n(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(s=>s.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((s,n)=>{o.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data,s(e)}).catch(e=>{m(e),n(e)})})},previewPayment(t){return new Promise((s,n)=>{o.get(`/api/v1/payments/${t.id}/send/preview`,{params:t}).then(e=>{s(e)}).catch(e=>{m(e),n(e)})})},sendEmail(t){return new Promise((s,n)=>{o.post(`/api/v1/payments/${t.id}/send`,t).then(e=>{h().showNotification({type:"success",message:i.t("payments.send_payment_successfully")}),s(e)}).catch(e=>{m(e),n(e)})})},getNextNumber(t,s=!1){return new Promise((n,e)=>{o.get("/api/v1/next-number?key=payment",{params:t}).then(a=>{s&&(this.currentPayment.payment_number=a.data.nextNumber),n(a)}).catch(a=>{m(a),e(a)})})},resetCurrentPayment(){this.currentPayment=p({},f)},fetchPaymentModes(t){return new Promise((s,n)=>{o.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,s(e)}).catch(e=>{m(e),n(e)})})},fetchPaymentMode(t){return new Promise((s,n)=>{o.get(`/api/v1/payment-methods/${t}`).then(e=>{this.currentPaymentMode=e.data.data,s(e)}).catch(e=>{m(e),n(e)})})},addPaymentMode(t){const s=h();return new Promise((n,e)=>{o.post("/api/v1/payment-methods",t).then(a=>{this.paymentModes.push(a.data.data),s.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_added")}),n(a)}).catch(a=>{m(a),e(a)})})},updatePaymentMode(t){const s=h();return new Promise((n,e)=>{o.put(`/api/v1/payment-methods/${t.id}`,t).then(a=>{if(a.data){let l=this.paymentModes.findIndex(d=>d.id===a.data.data.id);this.paymentModes[l]=t.paymentModes,s.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_updated")})}n(a)}).catch(a=>{m(a),e(a)})})},deletePaymentMode(t){const s=h();return new Promise((n,e)=>{o.delete(`/api/v1/payment-methods/${t}`).then(a=>{let l=this.paymentModes.findIndex(d=>d.id===t);this.paymentModes.splice(l,1),a.data.success&&s.showNotification({type:"success",message:i.t("settings.payment_modes.deleted_message")}),n(a)}).catch(a=>{m(a),e(a)})})}}})()};export{I as u}; +var P=Object.defineProperty;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var u=(y,c,i)=>c in y?P(y,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[c]=i,p=(y,c)=>{for(var i in c||(c={}))g.call(c,i)&&u(y,i,c[i]);if(r)for(var i of r(c))w.call(c,i)&&u(y,i,c[i]);return y};import{G as _,I as v,a as o,d as N}from"./vendor.d12b5734.js";import{b as S,h as m,u as h}from"./main.c7bd6c0e.js";var f={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 c=y?window.pinia.defineStore:N,{global:i}=window.i18n;return c({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({},f),paymentModes:[],currentPaymentMode:{id:"",name:null},isFetchingInitialData:!1}),getters:{isEdit:t=>!!t.paymentProviders.id},actions:{fetchPaymentInitialData(t){const s=S(),n=_();this.isFetchingInitialData=!0;let e=[];t&&(e=[this.fetchPayment(n.params.id)]),Promise.all([this.fetchPaymentModes({limit:"all"}),this.getNextNumber(),...e]).then(async([a,l,d])=>{t?d.data.data.invoice&&(this.currentPayment.maxPayableAmount=parseInt(d.data.data.invoice.due_amount)):!t&&l.data&&(this.currentPayment.payment_date=v().format("YYYY-MM-DD"),this.currentPayment.payment_number=l.data.nextNumber,this.currentPayment.currency=s.selectedCompanyCurrency),this.isFetchingInitialData=!1}).catch(a=>{m(a)})},fetchPayments(t){return new Promise((s,n)=>{o.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data.data,this.paymentTotalCount=e.data.meta.payment_total_count,s(e)}).catch(e=>{m(e),n(e)})})},fetchPayment(t){return new Promise((s,n)=>{o.get(`/api/v1/payments/${t}`).then(e=>{Object.assign(this.currentPayment,e.data.data),s(e)}).catch(e=>{m(e),n(e)})})},addPayment(t){return new Promise((s,n)=>{o.post("/api/v1/payments",t).then(e=>{this.payments.push(e.data),h().showNotification({type:"success",message:i.t("payments.created_message")}),s(e)}).catch(e=>{m(e),n(e)})})},updatePayment(t){return new Promise((s,n)=>{o.put(`/api/v1/payments/${t.id}`,t).then(e=>{if(e.data){let a=this.payments.findIndex(d=>d.id===e.data.data.id);this.payments[a]=t.payment,h().showNotification({type:"success",message:i.t("payments.updated_message")})}s(e)}).catch(e=>{m(e),n(e)})})},deletePayment(t){const s=h();return new Promise((n,e)=>{o.post("/api/v1/payments/delete",t).then(a=>{let l=this.payments.findIndex(d=>d.id===t);this.payments.splice(l,1),s.showNotification({type:"success",message:i.t("payments.deleted_message",1)}),n(a)}).catch(a=>{m(a),e(a)})})},deleteMultiplePayments(){const t=h();return new Promise((s,n)=>{o.post("/api/v1/payments/delete",{ids:this.selectedPayments}).then(e=>{this.selectedPayments.forEach(a=>{let l=this.payments.findIndex(d=>d.id===a.id);this.payments.splice(l,1)}),t.showNotification({type:"success",message:i.tc("payments.deleted_message",2)}),s(e)}).catch(e=>{m(e),n(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(s=>s.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((s,n)=>{o.get("/api/v1/payments",{params:t}).then(e=>{this.payments=e.data,s(e)}).catch(e=>{m(e),n(e)})})},previewPayment(t){return new Promise((s,n)=>{o.get(`/api/v1/payments/${t.id}/send/preview`,{params:t}).then(e=>{s(e)}).catch(e=>{m(e),n(e)})})},sendEmail(t){return new Promise((s,n)=>{o.post(`/api/v1/payments/${t.id}/send`,t).then(e=>{h().showNotification({type:"success",message:i.t("payments.send_payment_successfully")}),s(e)}).catch(e=>{m(e),n(e)})})},getNextNumber(t,s=!1){return new Promise((n,e)=>{o.get("/api/v1/next-number?key=payment",{params:t}).then(a=>{s&&(this.currentPayment.payment_number=a.data.nextNumber),n(a)}).catch(a=>{m(a),e(a)})})},resetCurrentPayment(){this.currentPayment=p({},f)},fetchPaymentModes(t){return new Promise((s,n)=>{o.get("/api/v1/payment-methods",{params:t}).then(e=>{this.paymentModes=e.data.data,s(e)}).catch(e=>{m(e),n(e)})})},fetchPaymentMode(t){return new Promise((s,n)=>{o.get(`/api/v1/payment-methods/${t}`).then(e=>{this.currentPaymentMode=e.data.data,s(e)}).catch(e=>{m(e),n(e)})})},addPaymentMode(t){const s=h();return new Promise((n,e)=>{o.post("/api/v1/payment-methods",t).then(a=>{this.paymentModes.push(a.data.data),s.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_added")}),n(a)}).catch(a=>{m(a),e(a)})})},updatePaymentMode(t){const s=h();return new Promise((n,e)=>{o.put(`/api/v1/payment-methods/${t.id}`,t).then(a=>{if(a.data){let l=this.paymentModes.findIndex(d=>d.id===a.data.data.id);this.paymentModes[l]=t.paymentModes,s.showNotification({type:"success",message:i.t("settings.payment_modes.payment_mode_updated")})}n(a)}).catch(a=>{m(a),e(a)})})},deletePaymentMode(t){const s=h();return new Promise((n,e)=>{o.delete(`/api/v1/payment-methods/${t}`).then(a=>{let l=this.paymentModes.findIndex(d=>d.id===t);this.paymentModes.splice(l,1),a.data.success&&s.showNotification({type:"success",message:i.t("settings.payment_modes.deleted_message")}),n(a)}).catch(a=>{m(a),e(a)})})}}})()};export{I as u}; diff --git a/public/build/assets/users.2ff38459.js b/public/build/assets/users.7c501231.js similarity index 97% rename from public/build/assets/users.2ff38459.js rename to public/build/assets/users.7c501231.js index df10ed186..e2b006cba 100644 --- a/public/build/assets/users.2ff38459.js +++ b/public/build/assets/users.7c501231.js @@ -1 +1 @@ -import{a as l,d as p}from"./vendor.d12b5734.js";import{h as o,u as d}from"./main.6ceeb72d.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}; +import{a as l,d as p}from"./vendor.d12b5734.js";import{h as o,u as d}from"./main.c7bd6c0e.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}; diff --git a/public/build/manifest.json b/public/build/manifest.json index 505fd302f..729990a7b 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,6 +1,6 @@ { "resources/scripts/main.js": { - "file": "assets/main.6ceeb72d.js", + "file": "assets/main.c7bd6c0e.js", "src": "resources/scripts/main.js", "isEntry": true, "imports": [ @@ -85,24 +85,24 @@ "file": "assets/vendor.d12b5734.js" }, "resources/scripts/admin/layouts/LayoutInstallation.vue": { - "file": "assets/LayoutInstallation.f025488e.js", + "file": "assets/LayoutInstallation.d1075109.js", "src": "resources/scripts/admin/layouts/LayoutInstallation.vue", "isDynamicEntry": true, "imports": [ - "_NotificationRoot.9d4c0db9.js", + "_NotificationRoot.b2aa5501.js", "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_NotificationRoot.9d4c0db9.js": { - "file": "assets/NotificationRoot.9d4c0db9.js", + "_NotificationRoot.b2aa5501.js": { + "file": "assets/NotificationRoot.b2aa5501.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/auth/Login.vue": { - "file": "assets/Login.09265290.js", + "file": "assets/Login.5885977a.js", "src": "resources/scripts/admin/views/auth/Login.vue", "isDynamicEntry": true, "imports": [ @@ -111,27 +111,27 @@ ] }, "resources/scripts/admin/layouts/LayoutBasic.vue": { - "file": "assets/LayoutBasic.e1b3d28d.js", + "file": "assets/LayoutBasic.5db11c89.js", "src": "resources/scripts/admin/layouts/LayoutBasic.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_exchange-rate.28527a8e.js", - "_users.2ff38459.js", - "_NotificationRoot.9d4c0db9.js", + "_exchange-rate.70a72e5f.js", + "_users.7c501231.js", + "_NotificationRoot.b2aa5501.js", "_index.esm.85b4999a.js" ] }, - "_exchange-rate.28527a8e.js": { - "file": "assets/exchange-rate.28527a8e.js", + "_exchange-rate.70a72e5f.js": { + "file": "assets/exchange-rate.70a72e5f.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_users.2ff38459.js": { - "file": "assets/users.2ff38459.js", + "_users.7c501231.js": { + "file": "assets/users.7c501231.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" @@ -144,17 +144,17 @@ ] }, "resources/scripts/admin/layouts/LayoutLogin.vue": { - "file": "assets/LayoutLogin.80459a89.js", + "file": "assets/LayoutLogin.3c63f158.js", "src": "resources/scripts/admin/layouts/LayoutLogin.vue", "isDynamicEntry": true, "imports": [ - "_NotificationRoot.9d4c0db9.js", + "_NotificationRoot.b2aa5501.js", "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, "resources/scripts/admin/views/auth/ResetPassword.vue": { - "file": "assets/ResetPassword.93fbba47.js", + "file": "assets/ResetPassword.6fb90383.js", "src": "resources/scripts/admin/views/auth/ResetPassword.vue", "isDynamicEntry": true, "imports": [ @@ -163,7 +163,7 @@ ] }, "resources/scripts/admin/views/auth/ForgotPassword.vue": { - "file": "assets/ForgotPassword.268a530d.js", + "file": "assets/ForgotPassword.0bff03a9.js", "src": "resources/scripts/admin/views/auth/ForgotPassword.vue", "isDynamicEntry": true, "imports": [ @@ -172,59 +172,59 @@ ] }, "resources/scripts/admin/views/dashboard/Dashboard.vue": { - "file": "assets/Dashboard.85be3397.js", + "file": "assets/Dashboard.8190d462.js", "src": "resources/scripts/admin/views/dashboard/Dashboard.vue", "isDynamicEntry": true, "imports": [ - "_EstimateIcon.89528a95.js", + "_EstimateIcon.86606287.js", "_vendor.d12b5734.js", "resources/scripts/main.js", - "_LineChart.dd592086.js", - "_InvoiceIndexDropdown.78aec816.js", - "_EstimateIndexDropdown.1e23ee92.js" + "_LineChart.6775a7d1.js", + "_InvoiceIndexDropdown.174ed624.js", + "_EstimateIndexDropdown.c74a1c48.js" ] }, - "_EstimateIcon.89528a95.js": { - "file": "assets/EstimateIcon.89528a95.js", + "_EstimateIcon.86606287.js": { + "file": "assets/EstimateIcon.86606287.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, - "_LineChart.dd592086.js": { - "file": "assets/LineChart.dd592086.js", + "_LineChart.6775a7d1.js": { + "file": "assets/LineChart.6775a7d1.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_InvoiceIndexDropdown.78aec816.js": { - "file": "assets/InvoiceIndexDropdown.78aec816.js", + "_InvoiceIndexDropdown.174ed624.js": { + "file": "assets/InvoiceIndexDropdown.174ed624.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_EstimateIndexDropdown.1e23ee92.js": { - "file": "assets/EstimateIndexDropdown.1e23ee92.js", + "_EstimateIndexDropdown.c74a1c48.js": { + "file": "assets/EstimateIndexDropdown.c74a1c48.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, "resources/scripts/admin/views/customers/Index.vue": { - "file": "assets/Index.929bd0c6.js", + "file": "assets/Index.60a6d69a.js", "src": "resources/scripts/admin/views/customers/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_CustomerIndexDropdown.49914d07.js", + "_CustomerIndexDropdown.78bcff92.js", "_AstronautIcon.82b952e2.js" ] }, - "_CustomerIndexDropdown.49914d07.js": { - "file": "assets/CustomerIndexDropdown.49914d07.js", + "_CustomerIndexDropdown.78bcff92.js": { + "file": "assets/CustomerIndexDropdown.78bcff92.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js" @@ -237,17 +237,17 @@ ] }, "resources/scripts/admin/views/customers/Create.vue": { - "file": "assets/Create.f99b9267.js", + "file": "assets/Create.d799ac98.js", "src": "resources/scripts/admin/views/customers/Create.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_CreateCustomFields.1cd1f052.js" + "_CreateCustomFields.04aba193.js" ] }, - "_CreateCustomFields.1cd1f052.js": { - "file": "assets/CreateCustomFields.1cd1f052.js", + "_CreateCustomFields.04aba193.js": { + "file": "assets/CreateCustomFields.04aba193.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" @@ -266,43 +266,43 @@ ] }, "resources/scripts/admin/views/customers/View.vue": { - "file": "assets/View.e5b14e68.js", + "file": "assets/View.70d88bd0.js", "src": "resources/scripts/admin/views/customers/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_LoadingIcon.66b14768.js", - "_LineChart.dd592086.js", - "_CustomerIndexDropdown.49914d07.js" + "_LoadingIcon.58a27e40.js", + "_LineChart.6775a7d1.js", + "_CustomerIndexDropdown.78bcff92.js" ] }, - "_LoadingIcon.66b14768.js": { - "file": "assets/LoadingIcon.66b14768.js", + "_LoadingIcon.58a27e40.js": { + "file": "assets/LoadingIcon.58a27e40.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, "resources/scripts/admin/views/settings/SettingsIndex.vue": { - "file": "assets/SettingsIndex.4f7dc251.js", + "file": "assets/SettingsIndex.248ca841.js", "src": "resources/scripts/admin/views/settings/SettingsIndex.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_BaseListItem.91c21811.js" + "_BaseListItem.ee8337b3.js" ] }, - "_BaseListItem.91c21811.js": { - "file": "assets/BaseListItem.91c21811.js", + "_BaseListItem.ee8337b3.js": { + "file": "assets/BaseListItem.ee8337b3.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, "resources/scripts/admin/views/settings/AccountSetting.vue": { - "file": "assets/AccountSetting.05a74cc4.js", + "file": "assets/AccountSetting.6cb82167.js", "src": "resources/scripts/admin/views/settings/AccountSetting.vue", "isDynamicEntry": true, "imports": [ @@ -311,7 +311,7 @@ ] }, "resources/scripts/admin/views/settings/CompanyInfoSettings.vue": { - "file": "assets/CompanyInfoSettings.1d341534.js", + "file": "assets/CompanyInfoSettings.4883a4d5.js", "src": "resources/scripts/admin/views/settings/CompanyInfoSettings.vue", "isDynamicEntry": true, "imports": [ @@ -320,7 +320,7 @@ ] }, "resources/scripts/admin/views/settings/PreferencesSetting.vue": { - "file": "assets/PreferencesSetting.ef36081e.js", + "file": "assets/PreferencesSetting.e050bdf7.js", "src": "resources/scripts/admin/views/settings/PreferencesSetting.vue", "isDynamicEntry": true, "imports": [ @@ -329,40 +329,40 @@ ] }, "resources/scripts/admin/views/settings/customization/CustomizationSetting.vue": { - "file": "assets/CustomizationSetting.0754031c.js", + "file": "assets/CustomizationSetting.8afa996f.js", "src": "resources/scripts/admin/views/settings/customization/CustomizationSetting.vue", "isDynamicEntry": true, "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js", - "_DragIcon.e6c221f0.js", - "_payment.ef13b90b.js", - "_ItemUnitModal.17b8fb30.js" + "_DragIcon.d9f643cf.js", + "_payment.2b6f850e.js", + "_ItemUnitModal.12dfe4f1.js" ] }, - "_ItemUnitModal.17b8fb30.js": { - "file": "assets/ItemUnitModal.17b8fb30.js", + "_ItemUnitModal.12dfe4f1.js": { + "file": "assets/ItemUnitModal.12dfe4f1.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_payment.ef13b90b.js": { - "file": "assets/payment.ef13b90b.js", + "_payment.2b6f850e.js": { + "file": "assets/payment.2b6f850e.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_DragIcon.e6c221f0.js": { - "file": "assets/DragIcon.e6c221f0.js", + "_DragIcon.d9f643cf.js": { + "file": "assets/DragIcon.d9f643cf.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/settings/NotificationsSetting.vue": { - "file": "assets/NotificationsSetting.8d66d8e5.js", + "file": "assets/NotificationsSetting.40dfd6be.js", "src": "resources/scripts/admin/views/settings/NotificationsSetting.vue", "isDynamicEntry": true, "imports": [ @@ -371,43 +371,43 @@ ] }, "resources/scripts/admin/views/settings/TaxTypesSetting.vue": { - "file": "assets/TaxTypesSetting.bbca28e7.js", + "file": "assets/TaxTypesSetting.68bd06bf.js", "src": "resources/scripts/admin/views/settings/TaxTypesSetting.vue", "isDynamicEntry": true, "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js", - "_TaxTypeModal.5bc92e5b.js" + "_TaxTypeModal.3db473e9.js" ] }, - "_TaxTypeModal.5bc92e5b.js": { - "file": "assets/TaxTypeModal.5bc92e5b.js", + "_TaxTypeModal.3db473e9.js": { + "file": "assets/TaxTypeModal.3db473e9.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/settings/PaymentsModeSetting.vue": { - "file": "assets/PaymentsModeSetting.94f9fd63.js", + "file": "assets/PaymentsModeSetting.c12111f3.js", "src": "resources/scripts/admin/views/settings/PaymentsModeSetting.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_payment.ef13b90b.js", + "_payment.2b6f850e.js", "resources/scripts/main.js", - "_PaymentModeModal.89922a6d.js" + "_PaymentModeModal.2e1f1512.js" ] }, - "_PaymentModeModal.89922a6d.js": { - "file": "assets/PaymentModeModal.89922a6d.js", + "_PaymentModeModal.2e1f1512.js": { + "file": "assets/PaymentModeModal.2e1f1512.js", "imports": [ "_vendor.d12b5734.js", - "_payment.ef13b90b.js", + "_payment.2b6f850e.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/settings/CustomFieldsSetting.vue": { - "file": "assets/CustomFieldsSetting.f35a2b52.js", + "file": "assets/CustomFieldsSetting.ee4f83ef.js", "src": "resources/scripts/admin/views/settings/CustomFieldsSetting.vue", "isDynamicEntry": true, "imports": [ @@ -428,66 +428,66 @@ ] }, "resources/scripts/admin/views/settings/NotesSetting.vue": { - "file": "assets/NotesSetting.eb35e797.js", + "file": "assets/NotesSetting.06a58218.js", "src": "resources/scripts/admin/views/settings/NotesSetting.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_NoteModal.62a64a69.js", - "_payment.ef13b90b.js" + "_NoteModal.c9605dba.js", + "_payment.2b6f850e.js" ] }, - "_NoteModal.62a64a69.js": { - "file": "assets/NoteModal.62a64a69.js", + "_NoteModal.c9605dba.js": { + "file": "assets/NoteModal.c9605dba.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_payment.ef13b90b.js" + "_payment.2b6f850e.js" ], "css": [ "assets/NoteModal.3245b7d3.css" ] }, "resources/scripts/admin/views/settings/ExpenseCategorySetting.vue": { - "file": "assets/ExpenseCategorySetting.bac23162.js", + "file": "assets/ExpenseCategorySetting.4ef6d3ed.js", "src": "resources/scripts/admin/views/settings/ExpenseCategorySetting.vue", "isDynamicEntry": true, "imports": [ "resources/scripts/main.js", - "_category.1184b061.js", + "_category.970a47d6.js", "_vendor.d12b5734.js", - "_CategoryModal.b8530d2c.js" + "_CategoryModal.dc91de33.js" ] }, - "_category.1184b061.js": { - "file": "assets/category.1184b061.js", + "_category.970a47d6.js": { + "file": "assets/category.970a47d6.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, - "_CategoryModal.b8530d2c.js": { - "file": "assets/CategoryModal.b8530d2c.js", + "_CategoryModal.dc91de33.js": { + "file": "assets/CategoryModal.dc91de33.js", "imports": [ "_vendor.d12b5734.js", - "_category.1184b061.js", + "_category.970a47d6.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/settings/ExchangeRateProviderSetting.vue": { - "file": "assets/ExchangeRateProviderSetting.6143f080.js", + "file": "assets/ExchangeRateProviderSetting.02eba7ee.js", "src": "resources/scripts/admin/views/settings/ExchangeRateProviderSetting.vue", "isDynamicEntry": true, "imports": [ - "_exchange-rate.28527a8e.js", + "_exchange-rate.70a72e5f.js", "resources/scripts/main.js", "_vendor.d12b5734.js", "resources/scripts/components/base/base-table/BaseTable.vue" ] }, "resources/scripts/components/base/base-table/BaseTable.vue": { - "file": "assets/BaseTable.86db669d.js", + "file": "assets/BaseTable.d75a6388.js", "src": "resources/scripts/components/base/base-table/BaseTable.vue", "isDynamicEntry": true, "imports": [ @@ -496,65 +496,65 @@ ] }, "resources/scripts/admin/views/settings/MailConfigSetting.vue": { - "file": "assets/MailConfigSetting.d1476293.js", + "file": "assets/MailConfigSetting.50d2b38b.js", "src": "resources/scripts/admin/views/settings/MailConfigSetting.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_mail-driver.c62711d2.js", + "_mail-driver.b57a1b96.js", "resources/scripts/main.js" ] }, - "_mail-driver.c62711d2.js": { - "file": "assets/mail-driver.c62711d2.js", + "_mail-driver.b57a1b96.js": { + "file": "assets/mail-driver.b57a1b96.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/settings/FileDiskSetting.vue": { - "file": "assets/FileDiskSetting.e79dff0b.js", + "file": "assets/FileDiskSetting.ba22e97c.js", "src": "resources/scripts/admin/views/settings/FileDiskSetting.vue", "isDynamicEntry": true, "imports": [ - "_disk.e54e2880.js", + "_disk.40fc971f.js", "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, - "_disk.e54e2880.js": { - "file": "assets/disk.e54e2880.js", + "_disk.40fc971f.js": { + "file": "assets/disk.40fc971f.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/settings/BackupSetting.vue": { - "file": "assets/BackupSetting.8d609c24.js", + "file": "assets/BackupSetting.1fe81432.js", "src": "resources/scripts/admin/views/settings/BackupSetting.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_disk.e54e2880.js" + "_disk.40fc971f.js" ] }, "resources/scripts/admin/views/settings/UpdateAppSetting.vue": { - "file": "assets/UpdateAppSetting.e4157d64.js", + "file": "assets/UpdateAppSetting.746fa480.js", "src": "resources/scripts/admin/views/settings/UpdateAppSetting.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_LoadingIcon.66b14768.js", - "_exchange-rate.28527a8e.js" + "_LoadingIcon.58a27e40.js", + "_exchange-rate.70a72e5f.js" ], "css": [ "assets/UpdateAppSetting.7d8b987a.css" ] }, "resources/scripts/admin/views/settings/RolesSettings.vue": { - "file": "assets/RolesSettings.e13e057e.js", + "file": "assets/RolesSettings.9dd64fa2.js", "src": "resources/scripts/admin/views/settings/RolesSettings.vue", "isDynamicEntry": true, "imports": [ @@ -563,7 +563,7 @@ ] }, "resources/scripts/admin/views/items/Index.vue": { - "file": "assets/Index.d8b72a81.js", + "file": "assets/Index.a564d566.js", "src": "resources/scripts/admin/views/items/Index.vue", "isDynamicEntry": true, "imports": [ @@ -572,89 +572,89 @@ ] }, "resources/scripts/admin/views/items/Create.vue": { - "file": "assets/Create.a2ae555f.js", + "file": "assets/Create.849d4041.js", "src": "resources/scripts/admin/views/items/Create.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_ItemUnitModal.17b8fb30.js" + "_ItemUnitModal.12dfe4f1.js" ] }, "resources/scripts/admin/views/expenses/Index.vue": { - "file": "assets/Index.88d3b048.js", + "file": "assets/Index.54a7d1be.js", "src": "resources/scripts/admin/views/expenses/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_expense.c4c3f409.js", - "_category.1184b061.js", + "_expense.190eb9e9.js", + "_category.970a47d6.js", "resources/scripts/main.js" ] }, - "_expense.c4c3f409.js": { - "file": "assets/expense.c4c3f409.js", + "_expense.190eb9e9.js": { + "file": "assets/expense.190eb9e9.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/expenses/Create.vue": { - "file": "assets/Create.4724f6a7.js", + "file": "assets/Create.3743a104.js", "src": "resources/scripts/admin/views/expenses/Create.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_expense.c4c3f409.js", - "_category.1184b061.js", + "_expense.190eb9e9.js", + "_category.970a47d6.js", "resources/scripts/main.js", - "_CreateCustomFields.1cd1f052.js", - "_CategoryModal.b8530d2c.js", - "_ExchangeRateConverter.2338e5bf.js", - "_exchange-rate.28527a8e.js" + "_CreateCustomFields.04aba193.js", + "_CategoryModal.dc91de33.js", + "_ExchangeRateConverter.6e0e36e7.js", + "_exchange-rate.70a72e5f.js" ] }, - "_ExchangeRateConverter.2338e5bf.js": { - "file": "assets/ExchangeRateConverter.2338e5bf.js", + "_ExchangeRateConverter.6e0e36e7.js": { + "file": "assets/ExchangeRateConverter.6e0e36e7.js", "imports": [ "resources/scripts/main.js", - "_exchange-rate.28527a8e.js", + "_exchange-rate.70a72e5f.js", "_vendor.d12b5734.js" ] }, "resources/scripts/admin/views/users/Index.vue": { - "file": "assets/Index.55f33eaf.js", + "file": "assets/Index.fcc3038d.js", "src": "resources/scripts/admin/views/users/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_users.2ff38459.js", + "_users.7c501231.js", "resources/scripts/main.js", "_AstronautIcon.82b952e2.js" ] }, "resources/scripts/admin/views/users/Create.vue": { - "file": "assets/Create.6e564295.js", + "file": "assets/Create.cd47948b.js", "src": "resources/scripts/admin/views/users/Create.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", "_index.esm.85b4999a.js", - "_users.2ff38459.js" + "_users.7c501231.js" ] }, "resources/scripts/admin/views/estimates/Index.vue": { - "file": "assets/Index.cd4cebdd.js", + "file": "assets/Index.1005222f.js", "src": "resources/scripts/admin/views/estimates/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", "_ObservatoryIcon.528a64ab.js", - "_EstimateIndexDropdown.1e23ee92.js", - "_SendEstimateModal.5a99ff19.js", - "_mail-driver.c62711d2.js" + "_EstimateIndexDropdown.c74a1c48.js", + "_SendEstimateModal.d6ecf83f.js", + "_mail-driver.b57a1b96.js" ] }, "_ObservatoryIcon.528a64ab.js": { @@ -663,73 +663,73 @@ "_vendor.d12b5734.js" ] }, - "_SendEstimateModal.5a99ff19.js": { - "file": "assets/SendEstimateModal.5a99ff19.js", + "_SendEstimateModal.d6ecf83f.js": { + "file": "assets/SendEstimateModal.d6ecf83f.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_mail-driver.c62711d2.js" + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/estimates/create/EstimateCreate.vue": { - "file": "assets/EstimateCreate.420fc484.js", + "file": "assets/EstimateCreate.f2c398e0.js", "src": "resources/scripts/admin/views/estimates/create/EstimateCreate.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_SalesTax.285fbaa6.js", - "_CreateCustomFields.1cd1f052.js", - "_ExchangeRateConverter.2338e5bf.js", - "_TaxTypeModal.5bc92e5b.js", - "_DragIcon.e6c221f0.js", - "_SelectNotePopup.9f1463c3.js", - "_NoteModal.62a64a69.js", - "_payment.ef13b90b.js", - "_exchange-rate.28527a8e.js" + "_SalesTax.67357751.js", + "_CreateCustomFields.04aba193.js", + "_ExchangeRateConverter.6e0e36e7.js", + "_TaxTypeModal.3db473e9.js", + "_DragIcon.d9f643cf.js", + "_SelectNotePopup.ead4330d.js", + "_NoteModal.c9605dba.js", + "_payment.2b6f850e.js", + "_exchange-rate.70a72e5f.js" ] }, - "_SalesTax.285fbaa6.js": { - "file": "assets/SalesTax.285fbaa6.js", + "_SalesTax.67357751.js": { + "file": "assets/SalesTax.67357751.js", "imports": [ "resources/scripts/main.js", - "_DragIcon.e6c221f0.js", + "_DragIcon.d9f643cf.js", "_vendor.d12b5734.js", - "_SelectNotePopup.9f1463c3.js" + "_SelectNotePopup.ead4330d.js" ] }, - "_SelectNotePopup.9f1463c3.js": { - "file": "assets/SelectNotePopup.9f1463c3.js", + "_SelectNotePopup.ead4330d.js": { + "file": "assets/SelectNotePopup.ead4330d.js", "imports": [ "_vendor.d12b5734.js", - "_NoteModal.62a64a69.js", + "_NoteModal.c9605dba.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/estimates/View.vue": { - "file": "assets/View.a8a41f7b.js", + "file": "assets/View.7a392eb1.js", "src": "resources/scripts/admin/views/estimates/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_EstimateIndexDropdown.1e23ee92.js", - "_SendEstimateModal.5a99ff19.js", - "_LoadingIcon.66b14768.js", - "_mail-driver.c62711d2.js" + "_EstimateIndexDropdown.c74a1c48.js", + "_SendEstimateModal.d6ecf83f.js", + "_LoadingIcon.58a27e40.js", + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/payments/Index.vue": { - "file": "assets/Index.171a9be4.js", + "file": "assets/Index.0c596f43.js", "src": "resources/scripts/admin/views/payments/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_payment.ef13b90b.js", + "_payment.2b6f850e.js", "_CapsuleIcon.37dfa933.js", - "_SendPaymentModal.e1c4e0ab.js", - "_mail-driver.c62711d2.js" + "_SendPaymentModal.b203e586.js", + "_mail-driver.b57a1b96.js" ] }, "_CapsuleIcon.37dfa933.js": { @@ -738,42 +738,42 @@ "_vendor.d12b5734.js" ] }, - "_SendPaymentModal.e1c4e0ab.js": { - "file": "assets/SendPaymentModal.e1c4e0ab.js", + "_SendPaymentModal.b203e586.js": { + "file": "assets/SendPaymentModal.b203e586.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js", - "_payment.ef13b90b.js", - "_mail-driver.c62711d2.js" + "_payment.2b6f850e.js", + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/payments/Create.vue": { - "file": "assets/Create.7bd803d3.js", + "file": "assets/Create.ee2ce8e0.js", "src": "resources/scripts/admin/views/payments/Create.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_ExchangeRateConverter.2338e5bf.js", + "_ExchangeRateConverter.6e0e36e7.js", "resources/scripts/main.js", - "_payment.ef13b90b.js", - "_SelectNotePopup.9f1463c3.js", - "_CreateCustomFields.1cd1f052.js", - "_PaymentModeModal.89922a6d.js", - "_exchange-rate.28527a8e.js", - "_NoteModal.62a64a69.js" + "_payment.2b6f850e.js", + "_SelectNotePopup.ead4330d.js", + "_CreateCustomFields.04aba193.js", + "_PaymentModeModal.2e1f1512.js", + "_exchange-rate.70a72e5f.js", + "_NoteModal.c9605dba.js" ] }, "resources/scripts/admin/views/payments/View.vue": { - "file": "assets/View.d69a3f76.js", + "file": "assets/View.33722222.js", "src": "resources/scripts/admin/views/payments/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_payment.ef13b90b.js", - "_SendPaymentModal.e1c4e0ab.js", - "_LoadingIcon.66b14768.js", - "_mail-driver.c62711d2.js" + "_payment.2b6f850e.js", + "_SendPaymentModal.b203e586.js", + "_LoadingIcon.58a27e40.js", + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/errors/404.vue": { @@ -785,16 +785,16 @@ ] }, "resources/scripts/admin/views/invoices/Index.vue": { - "file": "assets/Index.db0325b2.js", + "file": "assets/Index.8e2973a2.js", "src": "resources/scripts/admin/views/invoices/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", "_MoonwalkerIcon.b55d3604.js", - "_InvoiceIndexDropdown.78aec816.js", - "_SendInvoiceModal.224b5c76.js", - "_mail-driver.c62711d2.js" + "_InvoiceIndexDropdown.174ed624.js", + "_SendInvoiceModal.df7ecbe5.js", + "_mail-driver.b57a1b96.js" ] }, "_MoonwalkerIcon.b55d3604.js": { @@ -803,99 +803,99 @@ "_vendor.d12b5734.js" ] }, - "_SendInvoiceModal.224b5c76.js": { - "file": "assets/SendInvoiceModal.224b5c76.js", + "_SendInvoiceModal.df7ecbe5.js": { + "file": "assets/SendInvoiceModal.df7ecbe5.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js", - "_mail-driver.c62711d2.js" + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/invoices/create/InvoiceCreate.vue": { - "file": "assets/InvoiceCreate.dbeab7eb.js", + "file": "assets/InvoiceCreate.723d983d.js", "src": "resources/scripts/admin/views/invoices/create/InvoiceCreate.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_SalesTax.285fbaa6.js", - "_ExchangeRateConverter.2338e5bf.js", - "_CreateCustomFields.1cd1f052.js", - "_TaxTypeModal.5bc92e5b.js", - "_DragIcon.e6c221f0.js", - "_SelectNotePopup.9f1463c3.js", - "_NoteModal.62a64a69.js", - "_payment.ef13b90b.js", - "_exchange-rate.28527a8e.js" + "_SalesTax.67357751.js", + "_ExchangeRateConverter.6e0e36e7.js", + "_CreateCustomFields.04aba193.js", + "_TaxTypeModal.3db473e9.js", + "_DragIcon.d9f643cf.js", + "_SelectNotePopup.ead4330d.js", + "_NoteModal.c9605dba.js", + "_payment.2b6f850e.js", + "_exchange-rate.70a72e5f.js" ] }, "resources/scripts/admin/views/invoices/View.vue": { - "file": "assets/View.23db8f6f.js", + "file": "assets/View.db9ebd38.js", "src": "resources/scripts/admin/views/invoices/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_SendInvoiceModal.224b5c76.js", - "_InvoiceIndexDropdown.78aec816.js", - "_LoadingIcon.66b14768.js", - "_mail-driver.c62711d2.js" + "_SendInvoiceModal.df7ecbe5.js", + "_InvoiceIndexDropdown.174ed624.js", + "_LoadingIcon.58a27e40.js", + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/recurring-invoices/Index.vue": { - "file": "assets/Index.648f01b0.js", + "file": "assets/Index.e94df0e9.js", "src": "resources/scripts/admin/views/recurring-invoices/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_SendInvoiceModal.224b5c76.js", - "_RecurringInvoiceIndexDropdown.9324dca1.js", + "_SendInvoiceModal.df7ecbe5.js", + "_RecurringInvoiceIndexDropdown.b5cf79fe.js", "_MoonwalkerIcon.b55d3604.js", - "_mail-driver.c62711d2.js" + "_mail-driver.b57a1b96.js" ] }, - "_RecurringInvoiceIndexDropdown.9324dca1.js": { - "file": "assets/RecurringInvoiceIndexDropdown.9324dca1.js", + "_RecurringInvoiceIndexDropdown.b5cf79fe.js": { + "file": "assets/RecurringInvoiceIndexDropdown.b5cf79fe.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/admin/views/recurring-invoices/create/RecurringInvoiceCreate.vue": { - "file": "assets/RecurringInvoiceCreate.2b74f4d5.js", + "file": "assets/RecurringInvoiceCreate.31b71237.js", "src": "resources/scripts/admin/views/recurring-invoices/create/RecurringInvoiceCreate.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_SalesTax.285fbaa6.js", - "_ExchangeRateConverter.2338e5bf.js", - "_CreateCustomFields.1cd1f052.js", - "_TaxTypeModal.5bc92e5b.js", - "_DragIcon.e6c221f0.js", - "_SelectNotePopup.9f1463c3.js", - "_NoteModal.62a64a69.js", - "_payment.ef13b90b.js", - "_exchange-rate.28527a8e.js" + "_SalesTax.67357751.js", + "_ExchangeRateConverter.6e0e36e7.js", + "_CreateCustomFields.04aba193.js", + "_TaxTypeModal.3db473e9.js", + "_DragIcon.d9f643cf.js", + "_SelectNotePopup.ead4330d.js", + "_NoteModal.c9605dba.js", + "_payment.2b6f850e.js", + "_exchange-rate.70a72e5f.js" ] }, "resources/scripts/admin/views/recurring-invoices/View.vue": { - "file": "assets/View.fb7ac918.js", + "file": "assets/View.65c8e27d.js", "src": "resources/scripts/admin/views/recurring-invoices/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_LoadingIcon.66b14768.js", - "_InvoiceIndexDropdown.78aec816.js", - "_SendInvoiceModal.224b5c76.js", - "_RecurringInvoiceIndexDropdown.9324dca1.js", - "_mail-driver.c62711d2.js" + "_LoadingIcon.58a27e40.js", + "_InvoiceIndexDropdown.174ed624.js", + "_SendInvoiceModal.df7ecbe5.js", + "_RecurringInvoiceIndexDropdown.b5cf79fe.js", + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/reports/layout/Index.vue": { - "file": "assets/Index.2a5c7bd4.js", + "file": "assets/Index.38b36d95.js", "src": "resources/scripts/admin/views/reports/layout/Index.vue", "isDynamicEntry": true, "imports": [ @@ -904,17 +904,17 @@ ] }, "resources/scripts/admin/views/installation/Installation.vue": { - "file": "assets/Installation.d8337338.js", + "file": "assets/Installation.939274ae.js", "src": "resources/scripts/admin/views/installation/Installation.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_mail-driver.c62711d2.js" + "_mail-driver.b57a1b96.js" ] }, "resources/scripts/admin/views/modules/Index.vue": { - "file": "assets/Index.b977b7ef.js", + "file": "assets/Index.d028f200.js", "src": "resources/scripts/admin/views/modules/Index.vue", "isDynamicEntry": true, "imports": [ @@ -923,7 +923,7 @@ ] }, "resources/scripts/admin/views/modules/View.vue": { - "file": "assets/View.22824636.js", + "file": "assets/View.fbd1288c.js", "src": "resources/scripts/admin/views/modules/View.vue", "isDynamicEntry": true, "imports": [ @@ -940,155 +940,155 @@ ] }, "resources/scripts/customer/layouts/LayoutBasic.vue": { - "file": "assets/LayoutBasic.f099ad73.js", + "file": "assets/LayoutBasic.12dd735a.js", "src": "resources/scripts/customer/layouts/LayoutBasic.vue", "isDynamicEntry": true, "imports": [ - "_auth.974620c9.js", + "_auth.a07e0850.js", "_vendor.d12b5734.js", - "_global.db0572f0.js", + "_global.1ac91de5.js", "resources/scripts/main.js", - "_NotificationRoot.9d4c0db9.js" + "_NotificationRoot.b2aa5501.js" ] }, - "_global.db0572f0.js": { - "file": "assets/global.db0572f0.js", + "_global.1ac91de5.js": { + "file": "assets/global.1ac91de5.js", "imports": [ - "_auth.974620c9.js", + "_auth.a07e0850.js", "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, - "_auth.974620c9.js": { - "file": "assets/auth.974620c9.js", + "_auth.a07e0850.js": { + "file": "assets/auth.a07e0850.js", "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js" ] }, "resources/scripts/customer/layouts/LayoutLogin.vue": { - "file": "assets/LayoutLogin.ba38ab08.js", + "file": "assets/LayoutLogin.2b25369b.js", "src": "resources/scripts/customer/layouts/LayoutLogin.vue", "isDynamicEntry": true, "imports": [ - "_NotificationRoot.9d4c0db9.js", + "_NotificationRoot.b2aa5501.js", "resources/scripts/main.js", "_vendor.d12b5734.js" ] }, "resources/scripts/customer/views/auth/Login.vue": { - "file": "assets/Login.2ff2ebf4.js", + "file": "assets/Login.02fe20ac.js", "src": "resources/scripts/customer/views/auth/Login.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_auth.974620c9.js", + "_auth.a07e0850.js", "resources/scripts/main.js" ] }, "resources/scripts/customer/views/auth/ForgotPassword.vue": { - "file": "assets/ForgotPassword.a2f7d1ee.js", + "file": "assets/ForgotPassword.06039a0d.js", "src": "resources/scripts/customer/views/auth/ForgotPassword.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_auth.974620c9.js", + "_auth.a07e0850.js", "resources/scripts/main.js" ] }, "resources/scripts/customer/views/auth/ResetPassword.vue": { - "file": "assets/ResetPassword.8084cc33.js", + "file": "assets/ResetPassword.609ea369.js", "src": "resources/scripts/customer/views/auth/ResetPassword.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_global.db0572f0.js", - "_auth.974620c9.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js", "resources/scripts/main.js" ] }, "resources/scripts/customer/views/dashboard/Dashboard.vue": { - "file": "assets/Dashboard.7d84bed1.js", + "file": "assets/Dashboard.80c815dd.js", "src": "resources/scripts/customer/views/dashboard/Dashboard.vue", "isDynamicEntry": true, "imports": [ - "_EstimateIcon.89528a95.js", + "_EstimateIcon.86606287.js", "_vendor.d12b5734.js", - "_global.db0572f0.js", - "_auth.974620c9.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js", "resources/scripts/main.js", "resources/scripts/components/base/base-table/BaseTable.vue" ] }, "resources/scripts/customer/views/invoices/Index.vue": { - "file": "assets/Index.374787d3.js", + "file": "assets/Index.2f6b2ed6.js", "src": "resources/scripts/customer/views/invoices/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_invoice.90614bc9.js", + "_invoice.fba53e83.js", "resources/scripts/components/base/base-table/BaseTable.vue", - "_global.db0572f0.js", + "_global.1ac91de5.js", "_MoonwalkerIcon.b55d3604.js", - "_auth.974620c9.js", + "_auth.a07e0850.js", "resources/scripts/main.js" ] }, - "_invoice.90614bc9.js": { - "file": "assets/invoice.90614bc9.js", + "_invoice.fba53e83.js": { + "file": "assets/invoice.fba53e83.js", "imports": [ - "_auth.974620c9.js", + "_auth.a07e0850.js", "_vendor.d12b5734.js" ] }, "resources/scripts/customer/views/invoices/View.vue": { - "file": "assets/View.30540927.js", + "file": "assets/View.e87ed933.js", "src": "resources/scripts/customer/views/invoices/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_invoice.90614bc9.js", - "_global.db0572f0.js", - "_auth.974620c9.js" + "_invoice.fba53e83.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js" ] }, "resources/scripts/customer/views/estimates/Index.vue": { - "file": "assets/Index.8db0c2bf.js", + "file": "assets/Index.4891b5b4.js", "src": "resources/scripts/customer/views/estimates/Index.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/components/base/base-table/BaseTable.vue", - "_global.db0572f0.js", - "_estimate.b80e2b77.js", + "_global.1ac91de5.js", + "_estimate.c2ce8e7a.js", "_ObservatoryIcon.528a64ab.js", "resources/scripts/main.js", - "_auth.974620c9.js" + "_auth.a07e0850.js" ] }, - "_estimate.b80e2b77.js": { - "file": "assets/estimate.b80e2b77.js", + "_estimate.c2ce8e7a.js": { + "file": "assets/estimate.c2ce8e7a.js", "imports": [ "resources/scripts/main.js", "_vendor.d12b5734.js", - "_auth.974620c9.js" + "_auth.a07e0850.js" ] }, "resources/scripts/customer/views/estimates/View.vue": { - "file": "assets/View.da31b1a9.js", + "file": "assets/View.6fb75a2d.js", "src": "resources/scripts/customer/views/estimates/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_estimate.b80e2b77.js", - "_global.db0572f0.js", - "_auth.974620c9.js" + "_estimate.c2ce8e7a.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js" ] }, "resources/scripts/customer/views/payments/Index.vue": { - "file": "assets/Index.d02e663e.js", + "file": "assets/Index.52aeabf0.js", "src": "resources/scripts/customer/views/payments/Index.vue", "isDynamicEntry": true, "imports": [ @@ -1096,66 +1096,66 @@ "resources/scripts/components/base/base-table/BaseTable.vue", "_CapsuleIcon.37dfa933.js", "resources/scripts/main.js", - "_payment.7edbe3ce.js", - "_global.db0572f0.js", - "_auth.974620c9.js" + "_payment.03dd8d5c.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js" ] }, - "_payment.7edbe3ce.js": { - "file": "assets/payment.7edbe3ce.js", + "_payment.03dd8d5c.js": { + "file": "assets/payment.03dd8d5c.js", "imports": [ - "_auth.974620c9.js", + "_auth.a07e0850.js", "_vendor.d12b5734.js" ] }, "resources/scripts/customer/views/payments/View.vue": { - "file": "assets/View.799867ef.js", + "file": "assets/View.43261a97.js", "src": "resources/scripts/customer/views/payments/View.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", "resources/scripts/main.js", - "_payment.7edbe3ce.js", - "_global.db0572f0.js", - "_auth.974620c9.js" + "_payment.03dd8d5c.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js" ] }, "resources/scripts/customer/views/settings/SettingsIndex.vue": { - "file": "assets/SettingsIndex.aa723778.js", + "file": "assets/SettingsIndex.45695f64.js", "src": "resources/scripts/customer/views/settings/SettingsIndex.vue", "isDynamicEntry": true, "imports": [ - "_BaseListItem.91c21811.js", + "_BaseListItem.ee8337b3.js", "_vendor.d12b5734.js", - "_global.db0572f0.js", + "_global.1ac91de5.js", "resources/scripts/main.js", - "_auth.974620c9.js" + "_auth.a07e0850.js" ] }, "resources/scripts/customer/views/settings/CustomerSettings.vue": { - "file": "assets/CustomerSettings.100fd12d.js", + "file": "assets/CustomerSettings.1e7b255f.js", "src": "resources/scripts/customer/views/settings/CustomerSettings.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_global.db0572f0.js", - "_auth.974620c9.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js", "resources/scripts/main.js" ] }, "resources/scripts/customer/views/settings/AddressInformation.vue": { - "file": "assets/AddressInformation.f224417d.js", + "file": "assets/AddressInformation.68e7b996.js", "src": "resources/scripts/customer/views/settings/AddressInformation.vue", "isDynamicEntry": true, "imports": [ "_vendor.d12b5734.js", - "_global.db0572f0.js", - "_auth.974620c9.js", + "_global.1ac91de5.js", + "_auth.a07e0850.js", "resources/scripts/main.js" ] }, "resources/scripts/components/base-select/BaseMultiselect.vue": { - "file": "assets/BaseMultiselect.2374ebb2.js", + "file": "assets/BaseMultiselect.1793a39d.js", "src": "resources/scripts/components/base-select/BaseMultiselect.vue", "isDynamicEntry": true, "imports": [ @@ -1164,7 +1164,7 @@ ] }, "resources/scripts/components/base/base-editor/BaseEditor.vue": { - "file": "assets/BaseEditor.3b7c0c02.js", + "file": "assets/BaseEditor.ead2b9f1.js", "src": "resources/scripts/components/base/base-editor/BaseEditor.vue", "isDynamicEntry": true, "imports": [