@cling-se/widget 0.19.4 → 0.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{AddClientCallout-BfBl04bU.js → AddClientCallout-B3NbV9vX.js} +4 -4
- package/dist/{AnswerModal-BSakBDNJ.js → AnswerModal-C_at-56v.js} +3 -3
- package/dist/{AttachmentItem-BLGn1ILf.js → AttachmentItem-C4kyomn3.js} +12 -12
- package/dist/{BaseUpload-CUaYnXBn.js → BaseUpload-Z3O2bebR.js} +2 -2
- package/dist/{BlockMedia-CbsL1ZZR.js → BlockMedia-BSGtFCsS.js} +1 -1
- package/dist/{CCallout-BezZlOfm.js → CCallout-DRBCakh2.js} +1 -1
- package/dist/{CCurrencyDropdown-xdp_13tB.js → CCurrencyDropdown-CyFge_fD.js} +8 -8
- package/dist/{CDropdownItem-CjTBhP8h.js → CDropdownItem-BWmAQwpG.js} +8 -8
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Cif8PyTV.js → CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js} +51 -51
- package/dist/{CPhoneFormat-CdD0NkFL.js → CPhoneFormat-D-BGsI3p.js} +1 -1
- package/dist/{CPhoneInput-CgV-rBLW.js → CPhoneInput-Dl7BSG8y.js} +28 -28
- package/dist/{CPriceInput-VMyB3kTX.js → CPriceInput-C8Os9b3V.js} +2 -2
- package/dist/{CSelect-BpZYcMEc.js → CSelect-DXAAKhB6.js} +1 -1
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-vOwtNEFo.js → CSkeleton.vue_vue_type_script_setup_true_lang-D_ZP_7FL.js} +1 -1
- package/dist/{ClientAutocomplete-DAlOBlRj.js → ClientAutocomplete-0XPP0tZr.js} +3 -3
- package/dist/{ClientModal-B5J8NblQ.js → ClientModal-Ddv5YiOD.js} +8 -8
- package/dist/{ColorPicker-BBPCRucQ.js → ColorPicker-ClWlJZqh.js} +1 -1
- package/dist/{CompanyModal-D0iOqYPp.js → CompanyModal-CdisHhTQ.js} +7 -7
- package/dist/{ContentWrapper-Jp2A9A1G.js → ContentWrapper-BZ_ff5l9.js} +8 -10
- package/dist/{CoverBlockSettings-UVNE3YWj.js → CoverBlockSettings-C3F4jTwa.js} +7 -7
- package/dist/{DocAnswer-BDqoRdYy.js → DocAnswer-BkbWkje5.js} +2 -2
- package/dist/{DocDetails-CQHUQYVe.js → DocDetails-DxUXsbDV.js} +4 -4
- package/dist/{DocForm-BU4Mx9Fi.js → DocForm-CABBteE8.js} +24 -24
- package/dist/{DocFormSend-DXtfCSEG.js → DocFormSend-xGIxXjxv.js} +2 -2
- package/dist/{DocLinks-zF-W4hpD.js → DocLinks-D01zyA-z.js} +2 -2
- package/dist/{DocModalBase-CneXY73m.js → DocModalBase-DfrPL4tZ.js} +1 -1
- package/dist/{DocPrint-DQkI5BgD.js → DocPrint-BSKYDCQc.js} +1 -1
- package/dist/{DocReceipt-DJfBiwUr.js → DocReceipt-D5Oqb1cC.js} +2 -2
- package/dist/{DocSendReminder-CSxB-KWG.js → DocSendReminder-IbCLg9tW.js} +1 -1
- package/dist/{DocTextEditor-CSqqlABA.js → DocTextEditor-BVba4QPz.js} +8 -8
- package/dist/{DocTimeline-CDTh_czd.js → DocTimeline-CaX19zwg.js} +2 -2
- package/dist/{DocumentClient-COSPT21G.js → DocumentClient-DSQnO5KJ.js} +5 -5
- package/dist/{DocumentLayout-CweRWvIc.js → DocumentLayout-CkNcKcB_.js} +5 -5
- package/dist/{DocumentLogotype-D0cjO9XC.js → DocumentLogotype-DAVtl6S_.js} +4 -4
- package/dist/{DocumentVoided-BuNs74Da.js → DocumentVoided-DZYqqkrE.js} +1 -1
- package/dist/{EmbedInput-BohNHou7.js → EmbedInput-BpVkRhg5.js} +3 -3
- package/dist/{EmbedSettings-DrgFPrd-.js → EmbedSettings-BHjex6QD.js} +3 -3
- package/dist/{ErrorCallout-BVWDsp2J.js → ErrorCallout-B9TlMH-g.js} +1 -1
- package/dist/{FilePreviewModal-BVEsg1jk.js → FilePreviewModal-DP6yokyq.js} +8 -8
- package/dist/{Flag-B0cEHRlt.js → Flag-D3GdVwWB.js} +1 -1
- package/dist/{HeaderSettings-CGaJ7akp.js → HeaderSettings-sb4vPDsi.js} +9 -9
- package/dist/{ImageSelectModal-D2A6akvb.js → ImageSelectModal-CicYONc-.js} +3 -3
- package/dist/{ImageUploadWrapper-BHqbK12Z.js → ImageUploadWrapper-CLq06imX.js} +2 -2
- package/dist/{Index-6zEMdU6I.js → Index--erm1oIh.js} +4 -4
- package/dist/{Index-DRaKysrP.js → Index-0JuAv1tp.js} +8 -8
- package/dist/{Index-C_pXu_0v.js → Index-0imHv6b4.js} +3 -3
- package/dist/{Index-eczQUYpI.js → Index-2jg0DL-m.js} +4 -4
- package/dist/{Index-BPKB1HUJ.js → Index-6H0VT88W.js} +1 -1
- package/dist/{Index-CN6ts_Xp.js → Index-AjcnSKQD.js} +8 -8
- package/dist/Index-B5zszB2v.js +4 -0
- package/dist/{Index-DU1wpDH9.js → Index-BHvpY8xR.js} +2 -2
- package/dist/{Index-CAG_M3hA.js → Index-BIrwUJlj.js} +5 -5
- package/dist/{Index-to2qkBy9.js → Index-BU2qksFA.js} +1 -1
- package/dist/{Index-BGKHEKp8.js → Index-BWTeXf8h.js} +4 -4
- package/dist/{Index-CSiHZutC.js → Index-Be0qeiZi.js} +6 -6
- package/dist/{Index-CzTIqHwe.js → Index-BePivEDQ.js} +3 -3
- package/dist/{Index-CXMNxdAF.js → Index-Bf3O-9-j.js} +6 -6
- package/dist/{Index-CEBnyO4l.js → Index-BpObvjSu.js} +5 -5
- package/dist/{Index-BSlfSspe.js → Index-BrIFaQcB.js} +5 -5
- package/dist/{Index-D05FW5AK.js → Index-BsM0XvZj.js} +8 -8
- package/dist/{Index-BNzgoLmd.js → Index-BtECdggQ.js} +5 -5
- package/dist/{Index-3Yts7KXY.js → Index-CmDRJ5Xr.js} +4 -4
- package/dist/{Index-C4ajjo5G.js → Index-CoadaoP0.js} +1 -1
- package/dist/{Index-Dbmv21li.js → Index-CpGzRzMp.js} +3 -3
- package/dist/{Index-DmOHKqoS.js → Index-CzqNrUn3.js} +2 -2
- package/dist/{Index-D5YE8uWt.js → Index-DGLmjotr.js} +2 -2
- package/dist/{Index-CFpRQnNq.js → Index-DH9dMzsw.js} +4 -4
- package/dist/{Index--WcKCsGG.js → Index-DO8qwrXi.js} +5 -5
- package/dist/{Index-CLFDz6SJ.js → Index-DPF_0b3a.js} +11 -12
- package/dist/{Index-LuLYEISf.js → Index-DdlkzMzM.js} +10 -10
- package/dist/{Index-DylKlBB9.js → Index-DijI5XXh.js} +2 -2
- package/dist/{Index-Cxc5s2dg.js → Index-DnnRIESN.js} +2 -2
- package/dist/{Index-DPVl5ugc.js → Index-Dv0eryvg.js} +4 -4
- package/dist/{Index-K56XRGlg.js → Index-KZslz-16.js} +17 -18
- package/dist/{Index-B518kuyT.js → Index-RhHHrJtM.js} +5 -6
- package/dist/{Index-I98TuKi1.js → Index-SXJlaLRr.js} +4 -4
- package/dist/{Index-Y4-687rr.js → Index-szvZl8G-.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-V786MsVt.js → Index.vue_vue_type_script_lang-CXjOi3FM.js} +2 -2
- package/dist/{InputToggleRow-TizMrUy3.js → InputToggleRow-3992FkvA.js} +1 -1
- package/dist/{ManualPopover-D5s82nTD.js → ManualPopover-UiHhIKuw.js} +1 -1
- package/dist/{MediaWrapper-B8QJIu96.js → MediaWrapper-BlaBWAWe.js} +3 -3
- package/dist/{NotBindingText-CRNgx9DB.js → NotBindingText-C14r7OLr.js} +2 -2
- package/dist/{PackageGroup-BSF-af5b.js → PackageGroup-ClZiyb95.js} +5 -5
- package/dist/{PdfTerms-DZiOm01r.js → PdfTerms-CbVKGNxc.js} +2 -2
- package/dist/{PdfViewer-C4KmWufw.js → PdfViewer-B_7DfQr7.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-Tt5bu7Nw.js → PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js} +1 -1
- package/dist/{PriceHeader-9PyzP2JW.js → PriceHeader-DRkCMuGD.js} +7 -7
- package/dist/{SearchApi-Dqw0KfAD.js → SearchApi-6-uNsMl8.js} +1 -1
- package/dist/{SendForm-DwIGeVAZ.js → SendForm-DnwHPbWV.js} +10 -10
- package/dist/{Setup-2CQuTokL.js → Setup-Dz3ZCvFw.js} +1 -1
- package/dist/{SmartList-DlivOpMQ.js → SmartList-7RooD2fY.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B8DZEh_u.js → Sortable.vue_vue_type_script_setup_true_lang-cAzUeXVM.js} +1 -1
- package/dist/{TermsSettings-C3HFNpbX.js → TermsSettings-BEB2t3Ut.js} +20 -20
- package/dist/{ThemeColorRow-j7lkaEKS.js → ThemeColorRow-XE9QcVAy.js} +3 -3
- package/dist/{ToggleBinding-BTBbFc-F.js → ToggleBinding-BeXQfpcK.js} +4 -4
- package/dist/{UploadModal-DEwQZ_8a.js → UploadModal-pRlJXk-Y.js} +8 -8
- package/dist/{VideoPlayerInput-32LiwyOw.js → VideoPlayerInput-qankN5Ed.js} +4 -4
- package/dist/{VideoPlayerSettings-DkzjgwLt.js → VideoPlayerSettings-WijGYtE2.js} +2 -2
- package/dist/{VideoSelectModal-DmEmB4Cx.js → VideoSelectModal-Dhb7CmVu.js} +3 -3
- package/dist/{focusDrawerMixin-D13Ms6Jk.js → focusDrawerMixin-DELQ4Leq.js} +1 -1
- package/dist/{formDrawerState-CRhWaymS.js → formDrawerState-D_OOByIg.js} +1 -1
- package/dist/{helpers-B86zZNtk.js → helpers-BnYWgq30.js} +1 -1
- package/dist/{index-h9L0RGv3.js → index-6175cimw.js} +1 -1
- package/dist/{index-D3TD9uhN.js → index-BGFTOrwb.js} +55 -63
- package/dist/{index-DAIb9mjE.js → index-BIWUM14f.js} +1 -1
- package/dist/{index-tXDuIxx9.js → index-CFD_4fv_.js} +1 -1
- package/dist/{index-Db7Oe7W3.js → index-DRINkuNg.js} +6 -6
- package/dist/{index-Kb9qkTlP.js → index-KcSRVleg.js} +8 -8
- package/dist/{index-BiwH6W9z.js → index-P4A85Ytd.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +17 -17
- package/dist/{main-Dr3neB7n.js → main-q_EWffDQ.js} +56 -42
- package/dist/{mapFormMixin-Bkpm1wEf.js → mapFormMixin-DjPlsXfr.js} +2 -2
- package/dist/{omit-Ciu7kNcD.js → omit-DWur9Ujv.js} +1 -1
- package/dist/{publicSenderState-CEfzhj0R.js → publicSenderState-BkZVvtJm.js} +1 -1
- package/dist/{splitpanes-AhZAy_Th.js → splitpanes-BR5qxnsj.js} +1 -1
- package/dist/{template-MfjSWRyx.js → template-CQlJbqXR.js} +1 -1
- package/dist/{tippy.esm-CJxvo3UM.js → tippy.esm-BABwSp3j.js} +7 -7
- package/dist/{useTermsModal-Bp1LFsXg.js → useTermsModal-Bj2B-TdQ.js} +4 -4
- package/dist/{utils-DgTzzSIp.js → utils-C53ntVIe.js} +1 -1
- package/dist/{validation-J27tpgZs.js → validation-u_PNxOm8.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-yMgZ5Gcs.js +0 -4
|
@@ -203,7 +203,7 @@ function xD(t) {
|
|
|
203
203
|
return n(t, []);
|
|
204
204
|
}
|
|
205
205
|
const _e = xD(_D);
|
|
206
|
-
_e.debug && console.log(_e);
|
|
206
|
+
_e.debug && process.env.VITEST !== "true" && console.log(_e);
|
|
207
207
|
const ED = {
|
|
208
208
|
debug: 4,
|
|
209
209
|
info: 3,
|
|
@@ -6128,7 +6128,8 @@ Anteckningar är enbart synlig för dig & dina kollegor.`,
|
|
|
6128
6128
|
clientEmailReplyToUser: {
|
|
6129
6129
|
label: "Använd min e-post som svarsadress för e-postutskick",
|
|
6130
6130
|
subLabel: "Använder {{email}}"
|
|
6131
|
-
}
|
|
6131
|
+
},
|
|
6132
|
+
newLoginAlertEmail: "Få e-post när en ny enhet loggar in på mitt konto"
|
|
6132
6133
|
},
|
|
6133
6134
|
passwordModal: {
|
|
6134
6135
|
current: "Nuvarande lösenord",
|
|
@@ -6261,6 +6262,11 @@ Anteckningar är enbart synlig för dig & dina kollegor.`,
|
|
|
6261
6262
|
}
|
|
6262
6263
|
},
|
|
6263
6264
|
user: {
|
|
6265
|
+
logoutAllDevices: {
|
|
6266
|
+
button: "Logga ut alla enheter",
|
|
6267
|
+
confirmTitle: "Logga ut alla enheter?",
|
|
6268
|
+
confirmText: "Du behöver logga in igen för att komma åt ditt konto."
|
|
6269
|
+
},
|
|
6264
6270
|
changePasswordMainAccount: "För att redigera ditt lösenord växla först till ditt huvudkonto",
|
|
6265
6271
|
callout: {
|
|
6266
6272
|
title: "Exempel och tips",
|
|
@@ -8426,7 +8432,8 @@ Notes are only visible to you & your team.`,
|
|
|
8426
8432
|
clientEmailReplyToUser: {
|
|
8427
8433
|
label: "Use my email as a reply-to address for email",
|
|
8428
8434
|
subLabel: "Uses {{email}}"
|
|
8429
|
-
}
|
|
8435
|
+
},
|
|
8436
|
+
newLoginAlertEmail: "Receive email when a new device logs in to my account"
|
|
8430
8437
|
},
|
|
8431
8438
|
passwordModal: {
|
|
8432
8439
|
current: "Existing password",
|
|
@@ -8559,6 +8566,11 @@ Notes are only visible to you & your team.`,
|
|
|
8559
8566
|
}
|
|
8560
8567
|
},
|
|
8561
8568
|
user: {
|
|
8569
|
+
logoutAllDevices: {
|
|
8570
|
+
button: "Logout all devices",
|
|
8571
|
+
confirmTitle: "Logout all devices?",
|
|
8572
|
+
confirmText: "You will need to log back in to access your account."
|
|
8573
|
+
},
|
|
8562
8574
|
changePasswordMainAccount: "In order to change password, please switch to your main account",
|
|
8563
8575
|
callout: {
|
|
8564
8576
|
title: "Best practice",
|
|
@@ -31368,7 +31380,7 @@ const JV = (t, { renewToken: e }) => {
|
|
|
31368
31380
|
// allow API to store cookie
|
|
31369
31381
|
paramsSerializer: (d) => YV(d)
|
|
31370
31382
|
});
|
|
31371
|
-
n.defaults.headers["X-CLIENT"] = "widget", n.defaults.headers["X-CLIENT-VERSION"] = "0.19.
|
|
31383
|
+
n.defaults.headers["X-CLIENT"] = "widget", n.defaults.headers["X-CLIENT-VERSION"] = "0.19.5";
|
|
31372
31384
|
const i = async (d, p, h = null, f = {}) => {
|
|
31373
31385
|
const m = p.startsWith("/public/"), v = Ee.getItem("token");
|
|
31374
31386
|
switch (v && !m && (n.defaults.headers["X-TOKEN"] = v), d) {
|
|
@@ -33666,7 +33678,7 @@ const fz = /* @__PURE__ */ Ar(pz), DR = _e.rollbar.clientToken, hz = [
|
|
|
33666
33678
|
environment: _e.rollbar.environment || _e.environment,
|
|
33667
33679
|
client: {
|
|
33668
33680
|
javascript: {
|
|
33669
|
-
code_version: "0.19.
|
|
33681
|
+
code_version: "0.19.5",
|
|
33670
33682
|
// Git SHA of the deployed code (from webpack plugin)
|
|
33671
33683
|
source_map_enabled: !0,
|
|
33672
33684
|
guess_uncaught_frames: !0
|
|
@@ -37515,7 +37527,7 @@ const Pq = [
|
|
|
37515
37527
|
{
|
|
37516
37528
|
name: "form",
|
|
37517
37529
|
path: "/form",
|
|
37518
|
-
component: () => import("./DocForm-
|
|
37530
|
+
component: () => import("./DocForm-CABBteE8.js"),
|
|
37519
37531
|
props: !0,
|
|
37520
37532
|
meta: {
|
|
37521
37533
|
mode: "modal",
|
|
@@ -37527,7 +37539,7 @@ const Pq = [
|
|
|
37527
37539
|
{
|
|
37528
37540
|
name: "document",
|
|
37529
37541
|
path: "/document",
|
|
37530
|
-
component: () => import("./DocumentLayout-
|
|
37542
|
+
component: () => import("./DocumentLayout-CkNcKcB_.js").then((t) => t.c),
|
|
37531
37543
|
props: !0,
|
|
37532
37544
|
meta: {
|
|
37533
37545
|
mode: "modal",
|
|
@@ -37540,7 +37552,7 @@ const Pq = [
|
|
|
37540
37552
|
{
|
|
37541
37553
|
name: "send",
|
|
37542
37554
|
path: "/send",
|
|
37543
|
-
component: () => import("./DocFormSend-
|
|
37555
|
+
component: () => import("./DocFormSend-xGIxXjxv.js"),
|
|
37544
37556
|
props: !0,
|
|
37545
37557
|
meta: {
|
|
37546
37558
|
mode: "drawer",
|
|
@@ -37552,7 +37564,7 @@ const Pq = [
|
|
|
37552
37564
|
{
|
|
37553
37565
|
name: "print",
|
|
37554
37566
|
path: "/print",
|
|
37555
|
-
component: () => import("./DocPrint-
|
|
37567
|
+
component: () => import("./DocPrint-BSKYDCQc.js"),
|
|
37556
37568
|
props: !0,
|
|
37557
37569
|
meta: {
|
|
37558
37570
|
mode: "modal",
|
|
@@ -37563,7 +37575,7 @@ const Pq = [
|
|
|
37563
37575
|
{
|
|
37564
37576
|
name: "sendReminder",
|
|
37565
37577
|
path: "/sendReminder",
|
|
37566
|
-
component: () => import("./DocSendReminder-
|
|
37578
|
+
component: () => import("./DocSendReminder-IbCLg9tW.js"),
|
|
37567
37579
|
props: !0,
|
|
37568
37580
|
meta: {
|
|
37569
37581
|
mode: "modal",
|
|
@@ -37574,7 +37586,7 @@ const Pq = [
|
|
|
37574
37586
|
{
|
|
37575
37587
|
name: "timeline",
|
|
37576
37588
|
path: "/timeline",
|
|
37577
|
-
component: () => import("./DocTimeline-
|
|
37589
|
+
component: () => import("./DocTimeline-CaX19zwg.js"),
|
|
37578
37590
|
props: !0,
|
|
37579
37591
|
meta: {
|
|
37580
37592
|
mode: "modal",
|
|
@@ -37584,7 +37596,7 @@ const Pq = [
|
|
|
37584
37596
|
{
|
|
37585
37597
|
name: "receipt",
|
|
37586
37598
|
path: "/receipt",
|
|
37587
|
-
component: () => import("./DocReceipt-
|
|
37599
|
+
component: () => import("./DocReceipt-D5Oqb1cC.js"),
|
|
37588
37600
|
props: !0,
|
|
37589
37601
|
meta: {
|
|
37590
37602
|
mode: "modal",
|
|
@@ -37594,7 +37606,7 @@ const Pq = [
|
|
|
37594
37606
|
{
|
|
37595
37607
|
name: "clientLinks",
|
|
37596
37608
|
path: "/clientLinks",
|
|
37597
|
-
component: () => import("./DocLinks-
|
|
37609
|
+
component: () => import("./DocLinks-D01zyA-z.js"),
|
|
37598
37610
|
props: !0,
|
|
37599
37611
|
meta: {
|
|
37600
37612
|
mode: "modal",
|
|
@@ -37604,7 +37616,7 @@ const Pq = [
|
|
|
37604
37616
|
{
|
|
37605
37617
|
name: "documentClient",
|
|
37606
37618
|
path: "/documentClient",
|
|
37607
|
-
component: () => import("./DocumentClient-
|
|
37619
|
+
component: () => import("./DocumentClient-DSQnO5KJ.js"),
|
|
37608
37620
|
props: !0,
|
|
37609
37621
|
meta: {
|
|
37610
37622
|
mode: "modal",
|
|
@@ -37616,7 +37628,7 @@ const Pq = [
|
|
|
37616
37628
|
{
|
|
37617
37629
|
name: "setup",
|
|
37618
37630
|
path: "/setup",
|
|
37619
|
-
component: () => import("./Setup-
|
|
37631
|
+
component: () => import("./Setup-Dz3ZCvFw.js"),
|
|
37620
37632
|
props: !0,
|
|
37621
37633
|
meta: {
|
|
37622
37634
|
mode: "modal",
|
|
@@ -37628,7 +37640,7 @@ const Pq = [
|
|
|
37628
37640
|
{
|
|
37629
37641
|
name: "docAnswer",
|
|
37630
37642
|
path: "/docAnswer",
|
|
37631
|
-
component: () => import("./DocAnswer-
|
|
37643
|
+
component: () => import("./DocAnswer-BkbWkje5.js"),
|
|
37632
37644
|
props: !0,
|
|
37633
37645
|
meta: {
|
|
37634
37646
|
mode: "modal",
|
|
@@ -37639,7 +37651,7 @@ const Pq = [
|
|
|
37639
37651
|
{
|
|
37640
37652
|
name: "docDetails",
|
|
37641
37653
|
path: "/docDetails",
|
|
37642
|
-
component: () => import("./DocDetails-
|
|
37654
|
+
component: () => import("./DocDetails-DxUXsbDV.js"),
|
|
37643
37655
|
props: !0,
|
|
37644
37656
|
meta: {
|
|
37645
37657
|
mode: "drawer",
|
|
@@ -43057,8 +43069,8 @@ const tP = ({ nodes: t, data: e }) => {
|
|
|
43057
43069
|
}, rP = (t, e, r, n) => {
|
|
43058
43070
|
const i = lK(n);
|
|
43059
43071
|
if (!i[t]) throw new Error("Missing param type");
|
|
43060
|
-
const { max: o, ratio: a } = i[t];
|
|
43061
|
-
return Math.
|
|
43072
|
+
const { max: o, ratio: a } = i[t], s = Math.min(r * o, e * a);
|
|
43073
|
+
return Math.floor(s / 100) * 100;
|
|
43062
43074
|
}, md = ({
|
|
43063
43075
|
type: t = "fixed",
|
|
43064
43076
|
currency: e,
|
|
@@ -43086,7 +43098,9 @@ const tP = ({ nodes: t, data: e }) => {
|
|
|
43086
43098
|
throw new Error("Missing param rounding.show");
|
|
43087
43099
|
if (typeof s.show != "boolean")
|
|
43088
43100
|
throw new Error("Param rounding.show must be a boolean");
|
|
43089
|
-
|
|
43101
|
+
let l = o.houseWorkManualAmount || o.houseWorkAmount || null;
|
|
43102
|
+
l && (l = Math.floor(l / 100) * 100);
|
|
43103
|
+
const c = {
|
|
43090
43104
|
type: t,
|
|
43091
43105
|
subTotal: 0,
|
|
43092
43106
|
taxAmount: 0,
|
|
@@ -43097,15 +43111,15 @@ const tP = ({ nodes: t, data: e }) => {
|
|
|
43097
43111
|
region: {
|
|
43098
43112
|
country: "sweden",
|
|
43099
43113
|
houseWorkType: null,
|
|
43100
|
-
reverseVat: !!i.find((
|
|
43114
|
+
reverseVat: !!i.find((p) => re(p, "region.reverseVat")),
|
|
43101
43115
|
houseWorkManualAmount: o.houseWorkManualAmount || null,
|
|
43102
43116
|
houseWorkWork: 0,
|
|
43103
|
-
houseWorkAmount:
|
|
43117
|
+
houseWorkAmount: l,
|
|
43104
43118
|
deductionDate: o.deductionDate || null
|
|
43105
43119
|
},
|
|
43106
43120
|
helpers: {
|
|
43107
43121
|
discount: 0,
|
|
43108
|
-
isIndivid: !i.find((
|
|
43122
|
+
isIndivid: !i.find((p) => p.type === "company"),
|
|
43109
43123
|
noOfClients: i.length || 1
|
|
43110
43124
|
},
|
|
43111
43125
|
useVat: a,
|
|
@@ -43114,27 +43128,27 @@ const tP = ({ nodes: t, data: e }) => {
|
|
|
43114
43128
|
interval: s.interval,
|
|
43115
43129
|
show: s.show
|
|
43116
43130
|
}
|
|
43117
|
-
},
|
|
43118
|
-
if (
|
|
43119
|
-
const
|
|
43120
|
-
(
|
|
43131
|
+
}, u = (p) => p / 100;
|
|
43132
|
+
if (c.helpers.isIndivid && !c.region.reverseVat) {
|
|
43133
|
+
const p = [...n].sort(
|
|
43134
|
+
(h, f) => new Date(f.updatedAt).getTime() - new Date(h.updatedAt).getTime()
|
|
43121
43135
|
).find(Kb);
|
|
43122
|
-
|
|
43123
|
-
}
|
|
43124
|
-
for (let
|
|
43125
|
-
|
|
43126
|
-
const { totalAmount:
|
|
43127
|
-
let { vat:
|
|
43128
|
-
|
|
43129
|
-
}
|
|
43130
|
-
!
|
|
43131
|
-
|
|
43132
|
-
|
|
43133
|
-
|
|
43134
|
-
|
|
43136
|
+
p && !c.region.houseWorkType && (c.region.houseWorkType = A5(p));
|
|
43137
|
+
}
|
|
43138
|
+
for (let p of n) {
|
|
43139
|
+
p = ip(p);
|
|
43140
|
+
const { totalAmount: h, currency: f, priceType: m, discount: v, discountType: g } = p;
|
|
43141
|
+
let { vat: y } = p;
|
|
43142
|
+
y === null && (y = 0), a || (y = 0), ["fixed", "approx"].includes(m) && (c.currency = f, c.subTotal += h, c.taxAmount += h * u(y), c.helpers.discount += g === "percentage" ? h / ((100 - v / 100) / 100) - h : v, c.region.houseWorkType && Kb(p) && (c.region.houseWorkWork += h * ((100 + y) / 100)));
|
|
43143
|
+
}
|
|
43144
|
+
!c.helpers.isIndivid && c.region.reverseVat && (c.taxAmount = 0), c.region.houseWorkType && c.region.houseWorkAmount === null && (c.region.houseWorkAmount = rP(
|
|
43145
|
+
c.region.houseWorkType,
|
|
43146
|
+
c.region.houseWorkWork,
|
|
43147
|
+
c.helpers.noOfClients,
|
|
43148
|
+
c.region.deductionDate
|
|
43135
43149
|
));
|
|
43136
|
-
const
|
|
43137
|
-
return
|
|
43150
|
+
const d = c.subTotal + c.taxAmount - c.region.houseWorkAmount;
|
|
43151
|
+
return c.roundingAmount = s.enabled && s.interval ? Math.round(d / s.interval) * s.interval - d : 0, c.total = d + c.roundingAmount, Yb(c), c;
|
|
43138
43152
|
}, cK = (t) => {
|
|
43139
43153
|
if (!t) return null;
|
|
43140
43154
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aE as r, aD as d, p as h, bR as w, bS as g, bT as y, bU as x, bV as v, bW as k, A as m } from "./main-
|
|
2
|
-
import { t as V, c as b, a as H, g as I, b as T } from "./template-
|
|
1
|
+
import { aE as r, aD as d, p as h, bR as w, bS as g, bT as y, bU as x, bV as v, bW as k, A as m } from "./main-q_EWffDQ.js";
|
|
2
|
+
import { t as V, c as b, a as H, g as I, b as T } from "./template-CQlJbqXR.js";
|
|
3
3
|
const M = (e) => {
|
|
4
4
|
const t = Array(2).fill().map(() => r());
|
|
5
5
|
return [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aW as A, aX as P, aY as y, aZ as S, a_ as p, a$ as x, b0 as D, b1 as G, b2 as I, b3 as M, aL as N } from "./main-
|
|
1
|
+
import { aW as A, aX as P, aY as y, aZ as S, a_ as p, a$ as x, b0 as D, b1 as G, b2 as I, b3 as M, aL as N } from "./main-q_EWffDQ.js";
|
|
2
2
|
var f, q;
|
|
3
3
|
function T() {
|
|
4
4
|
if (q) return f;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ay as u, o as m, b as c, K as z, l as x } from "./main-
|
|
1
|
+
import { ay as u, o as m, b as c, K as z, l as x } from "./main-q_EWffDQ.js";
|
|
2
2
|
const M = {
|
|
3
3
|
name: "splitpanes",
|
|
4
4
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as Tr } from "./DocumentLayout-
|
|
2
|
-
import { _ as Ar, z as Cr, o as P, b as I, s as _, v as pe, O as Dr, f as It, F as Le, k as st, e as xe, ac as kr, n as _r, L as ve, d as ce, w as Se, l as Lr, ad as Sr, c as Rr, H as Pr } from "./main-
|
|
3
|
-
import { C as Ir, b as Mr } from "./CDropdownItem-
|
|
4
|
-
import { C as jr } from "./ColorPicker-
|
|
5
|
-
import { C as Br } from "./CCurrencyDropdown-
|
|
1
|
+
import { F as Tr } from "./DocumentLayout-CkNcKcB_.js";
|
|
2
|
+
import { _ as Ar, z as Cr, o as P, b as I, s as _, v as pe, O as Dr, f as It, F as Le, k as st, e as xe, ac as kr, n as _r, L as ve, d as ce, w as Se, l as Lr, ad as Sr, c as Rr, H as Pr } from "./main-q_EWffDQ.js";
|
|
3
|
+
import { C as Ir, b as Mr } from "./CDropdownItem-BWmAQwpG.js";
|
|
4
|
+
import { C as jr } from "./ColorPicker-ClWlJZqh.js";
|
|
5
|
+
import { C as Br } from "./CCurrencyDropdown-CyFge_fD.js";
|
|
6
6
|
const Vr = {
|
|
7
7
|
components: {
|
|
8
8
|
ColorPicker: jr,
|
|
@@ -43,7 +43,7 @@ const Vr = {
|
|
|
43
43
|
"stroke-width": "2",
|
|
44
44
|
"stroke-linecap": "square",
|
|
45
45
|
"stroke-linejoin": "bevel"
|
|
46
|
-
}, Ur = { style: { flex: "1 1 60%", margin: "7px 0 7px 0", width: "1px", display: "flex" } }, Wr = ["onInput", "onKeypress"], zr = ["onInput", "onKeypress"], qr = { class: "select-wrapper" }, Xr = ["onInput"], Yr = ["value", "selected"], Kr = ["onClick"], Gr = ["onClick"], Jr = ["onInput"], Qr = ["value", "selected"], Zr = { style: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" } }, en = { style: { padding: "0 5px" } }, tn = ["onClick"], rn = { class: "truncate
|
|
46
|
+
}, Ur = { style: { flex: "1 1 60%", margin: "7px 0 7px 0", width: "1px", display: "flex" } }, Wr = ["onInput", "onKeypress"], zr = ["onInput", "onKeypress"], qr = { class: "select-wrapper" }, Xr = ["onInput"], Yr = ["value", "selected"], Kr = ["onClick"], Gr = ["onClick"], Jr = ["onInput"], Qr = ["value", "selected"], Zr = { style: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" } }, en = { style: { padding: "0 5px" } }, tn = ["onClick"], rn = { class: "w-full truncate" }, nn = { style: { width: "90%", display: "block" } }, on = { class: "w-full truncate" }, an = { style: { width: "90%", display: "block" } }, sn = { style: { height: "26px", display: "flex", "align-items": "center", "flex-wrap": "nowrap", overflow: "hidden", "border-radius": "5px", "font-size": "13px", cursor: "pointer" } }, un = { style: { padding: "0 5px" } }, pn = ["onClick"];
|
|
47
47
|
function cn(e, t, r, n, i, s) {
|
|
48
48
|
const p = xe("CIcon"), c = xe("ColorPicker"), u = xe("CDropdown"), v = xe("FontPickerDropdown"), d = xe("CCurrencyDropdown"), x = xe("CSwitch"), O = xe("FormInputRow", !0), y = kr("tooltip");
|
|
49
49
|
return P(), I("div", $r, [
|
|
@@ -269,7 +269,7 @@ function cn(e, t, r, n, i, s) {
|
|
|
269
269
|
])
|
|
270
270
|
]);
|
|
271
271
|
}
|
|
272
|
-
const fn = /* @__PURE__ */ Ar(Vr, [["render", cn], ["__scopeId", "data-v-
|
|
272
|
+
const fn = /* @__PURE__ */ Ar(Vr, [["render", cn], ["__scopeId", "data-v-9f3dae06"]]), ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
273
273
|
__proto__: null,
|
|
274
274
|
default: fn
|
|
275
275
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _, e as m, o as f, b as h, s as i, d as c, w as u, aG as v } from "./main-
|
|
2
|
-
import { m as M } from "./mapFormMixin-
|
|
3
|
-
import { D as w } from "./DocModalBase-
|
|
4
|
-
import { _ as x } from "./DocumentLayout-
|
|
1
|
+
import { _, e as m, o as f, b as h, s as i, d as c, w as u, aG as v } from "./main-q_EWffDQ.js";
|
|
2
|
+
import { m as M } from "./mapFormMixin-DjPlsXfr.js";
|
|
3
|
+
import { D as w } from "./DocModalBase-DfrPL4tZ.js";
|
|
4
|
+
import { _ as x } from "./DocumentLayout-CkNcKcB_.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "TermsModal",
|
|
7
7
|
components: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as l, y as c } from "./main-
|
|
1
|
+
import { x as l, y as c } from "./main-q_EWffDQ.js";
|
|
2
2
|
import { s } from "./dom-DOcGU3-g.js";
|
|
3
|
-
import { u } from "./index-
|
|
3
|
+
import { u } from "./index-CFD_4fv_.js";
|
|
4
4
|
const d = Symbol(
|
|
5
5
|
"validateDocument"
|
|
6
6
|
);
|