@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.
Files changed (125) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AddClientCallout-BfBl04bU.js → AddClientCallout-B3NbV9vX.js} +4 -4
  3. package/dist/{AnswerModal-BSakBDNJ.js → AnswerModal-C_at-56v.js} +3 -3
  4. package/dist/{AttachmentItem-BLGn1ILf.js → AttachmentItem-C4kyomn3.js} +12 -12
  5. package/dist/{BaseUpload-CUaYnXBn.js → BaseUpload-Z3O2bebR.js} +2 -2
  6. package/dist/{BlockMedia-CbsL1ZZR.js → BlockMedia-BSGtFCsS.js} +1 -1
  7. package/dist/{CCallout-BezZlOfm.js → CCallout-DRBCakh2.js} +1 -1
  8. package/dist/{CCurrencyDropdown-xdp_13tB.js → CCurrencyDropdown-CyFge_fD.js} +8 -8
  9. package/dist/{CDropdownItem-CjTBhP8h.js → CDropdownItem-BWmAQwpG.js} +8 -8
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Cif8PyTV.js → CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js} +51 -51
  11. package/dist/{CPhoneFormat-CdD0NkFL.js → CPhoneFormat-D-BGsI3p.js} +1 -1
  12. package/dist/{CPhoneInput-CgV-rBLW.js → CPhoneInput-Dl7BSG8y.js} +28 -28
  13. package/dist/{CPriceInput-VMyB3kTX.js → CPriceInput-C8Os9b3V.js} +2 -2
  14. package/dist/{CSelect-BpZYcMEc.js → CSelect-DXAAKhB6.js} +1 -1
  15. 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
  16. package/dist/{ClientAutocomplete-DAlOBlRj.js → ClientAutocomplete-0XPP0tZr.js} +3 -3
  17. package/dist/{ClientModal-B5J8NblQ.js → ClientModal-Ddv5YiOD.js} +8 -8
  18. package/dist/{ColorPicker-BBPCRucQ.js → ColorPicker-ClWlJZqh.js} +1 -1
  19. package/dist/{CompanyModal-D0iOqYPp.js → CompanyModal-CdisHhTQ.js} +7 -7
  20. package/dist/{ContentWrapper-Jp2A9A1G.js → ContentWrapper-BZ_ff5l9.js} +8 -10
  21. package/dist/{CoverBlockSettings-UVNE3YWj.js → CoverBlockSettings-C3F4jTwa.js} +7 -7
  22. package/dist/{DocAnswer-BDqoRdYy.js → DocAnswer-BkbWkje5.js} +2 -2
  23. package/dist/{DocDetails-CQHUQYVe.js → DocDetails-DxUXsbDV.js} +4 -4
  24. package/dist/{DocForm-BU4Mx9Fi.js → DocForm-CABBteE8.js} +24 -24
  25. package/dist/{DocFormSend-DXtfCSEG.js → DocFormSend-xGIxXjxv.js} +2 -2
  26. package/dist/{DocLinks-zF-W4hpD.js → DocLinks-D01zyA-z.js} +2 -2
  27. package/dist/{DocModalBase-CneXY73m.js → DocModalBase-DfrPL4tZ.js} +1 -1
  28. package/dist/{DocPrint-DQkI5BgD.js → DocPrint-BSKYDCQc.js} +1 -1
  29. package/dist/{DocReceipt-DJfBiwUr.js → DocReceipt-D5Oqb1cC.js} +2 -2
  30. package/dist/{DocSendReminder-CSxB-KWG.js → DocSendReminder-IbCLg9tW.js} +1 -1
  31. package/dist/{DocTextEditor-CSqqlABA.js → DocTextEditor-BVba4QPz.js} +8 -8
  32. package/dist/{DocTimeline-CDTh_czd.js → DocTimeline-CaX19zwg.js} +2 -2
  33. package/dist/{DocumentClient-COSPT21G.js → DocumentClient-DSQnO5KJ.js} +5 -5
  34. package/dist/{DocumentLayout-CweRWvIc.js → DocumentLayout-CkNcKcB_.js} +5 -5
  35. package/dist/{DocumentLogotype-D0cjO9XC.js → DocumentLogotype-DAVtl6S_.js} +4 -4
  36. package/dist/{DocumentVoided-BuNs74Da.js → DocumentVoided-DZYqqkrE.js} +1 -1
  37. package/dist/{EmbedInput-BohNHou7.js → EmbedInput-BpVkRhg5.js} +3 -3
  38. package/dist/{EmbedSettings-DrgFPrd-.js → EmbedSettings-BHjex6QD.js} +3 -3
  39. package/dist/{ErrorCallout-BVWDsp2J.js → ErrorCallout-B9TlMH-g.js} +1 -1
  40. package/dist/{FilePreviewModal-BVEsg1jk.js → FilePreviewModal-DP6yokyq.js} +8 -8
  41. package/dist/{Flag-B0cEHRlt.js → Flag-D3GdVwWB.js} +1 -1
  42. package/dist/{HeaderSettings-CGaJ7akp.js → HeaderSettings-sb4vPDsi.js} +9 -9
  43. package/dist/{ImageSelectModal-D2A6akvb.js → ImageSelectModal-CicYONc-.js} +3 -3
  44. package/dist/{ImageUploadWrapper-BHqbK12Z.js → ImageUploadWrapper-CLq06imX.js} +2 -2
  45. package/dist/{Index-6zEMdU6I.js → Index--erm1oIh.js} +4 -4
  46. package/dist/{Index-DRaKysrP.js → Index-0JuAv1tp.js} +8 -8
  47. package/dist/{Index-C_pXu_0v.js → Index-0imHv6b4.js} +3 -3
  48. package/dist/{Index-eczQUYpI.js → Index-2jg0DL-m.js} +4 -4
  49. package/dist/{Index-BPKB1HUJ.js → Index-6H0VT88W.js} +1 -1
  50. package/dist/{Index-CN6ts_Xp.js → Index-AjcnSKQD.js} +8 -8
  51. package/dist/Index-B5zszB2v.js +4 -0
  52. package/dist/{Index-DU1wpDH9.js → Index-BHvpY8xR.js} +2 -2
  53. package/dist/{Index-CAG_M3hA.js → Index-BIrwUJlj.js} +5 -5
  54. package/dist/{Index-to2qkBy9.js → Index-BU2qksFA.js} +1 -1
  55. package/dist/{Index-BGKHEKp8.js → Index-BWTeXf8h.js} +4 -4
  56. package/dist/{Index-CSiHZutC.js → Index-Be0qeiZi.js} +6 -6
  57. package/dist/{Index-CzTIqHwe.js → Index-BePivEDQ.js} +3 -3
  58. package/dist/{Index-CXMNxdAF.js → Index-Bf3O-9-j.js} +6 -6
  59. package/dist/{Index-CEBnyO4l.js → Index-BpObvjSu.js} +5 -5
  60. package/dist/{Index-BSlfSspe.js → Index-BrIFaQcB.js} +5 -5
  61. package/dist/{Index-D05FW5AK.js → Index-BsM0XvZj.js} +8 -8
  62. package/dist/{Index-BNzgoLmd.js → Index-BtECdggQ.js} +5 -5
  63. package/dist/{Index-3Yts7KXY.js → Index-CmDRJ5Xr.js} +4 -4
  64. package/dist/{Index-C4ajjo5G.js → Index-CoadaoP0.js} +1 -1
  65. package/dist/{Index-Dbmv21li.js → Index-CpGzRzMp.js} +3 -3
  66. package/dist/{Index-DmOHKqoS.js → Index-CzqNrUn3.js} +2 -2
  67. package/dist/{Index-D5YE8uWt.js → Index-DGLmjotr.js} +2 -2
  68. package/dist/{Index-CFpRQnNq.js → Index-DH9dMzsw.js} +4 -4
  69. package/dist/{Index--WcKCsGG.js → Index-DO8qwrXi.js} +5 -5
  70. package/dist/{Index-CLFDz6SJ.js → Index-DPF_0b3a.js} +11 -12
  71. package/dist/{Index-LuLYEISf.js → Index-DdlkzMzM.js} +10 -10
  72. package/dist/{Index-DylKlBB9.js → Index-DijI5XXh.js} +2 -2
  73. package/dist/{Index-Cxc5s2dg.js → Index-DnnRIESN.js} +2 -2
  74. package/dist/{Index-DPVl5ugc.js → Index-Dv0eryvg.js} +4 -4
  75. package/dist/{Index-K56XRGlg.js → Index-KZslz-16.js} +17 -18
  76. package/dist/{Index-B518kuyT.js → Index-RhHHrJtM.js} +5 -6
  77. package/dist/{Index-I98TuKi1.js → Index-SXJlaLRr.js} +4 -4
  78. package/dist/{Index-Y4-687rr.js → Index-szvZl8G-.js} +4 -4
  79. package/dist/{Index.vue_vue_type_script_lang-V786MsVt.js → Index.vue_vue_type_script_lang-CXjOi3FM.js} +2 -2
  80. package/dist/{InputToggleRow-TizMrUy3.js → InputToggleRow-3992FkvA.js} +1 -1
  81. package/dist/{ManualPopover-D5s82nTD.js → ManualPopover-UiHhIKuw.js} +1 -1
  82. package/dist/{MediaWrapper-B8QJIu96.js → MediaWrapper-BlaBWAWe.js} +3 -3
  83. package/dist/{NotBindingText-CRNgx9DB.js → NotBindingText-C14r7OLr.js} +2 -2
  84. package/dist/{PackageGroup-BSF-af5b.js → PackageGroup-ClZiyb95.js} +5 -5
  85. package/dist/{PdfTerms-DZiOm01r.js → PdfTerms-CbVKGNxc.js} +2 -2
  86. package/dist/{PdfViewer-C4KmWufw.js → PdfViewer-B_7DfQr7.js} +2 -2
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-Tt5bu7Nw.js → PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js} +1 -1
  88. package/dist/{PriceHeader-9PyzP2JW.js → PriceHeader-DRkCMuGD.js} +7 -7
  89. package/dist/{SearchApi-Dqw0KfAD.js → SearchApi-6-uNsMl8.js} +1 -1
  90. package/dist/{SendForm-DwIGeVAZ.js → SendForm-DnwHPbWV.js} +10 -10
  91. package/dist/{Setup-2CQuTokL.js → Setup-Dz3ZCvFw.js} +1 -1
  92. package/dist/{SmartList-DlivOpMQ.js → SmartList-7RooD2fY.js} +1 -1
  93. 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
  94. package/dist/{TermsSettings-C3HFNpbX.js → TermsSettings-BEB2t3Ut.js} +20 -20
  95. package/dist/{ThemeColorRow-j7lkaEKS.js → ThemeColorRow-XE9QcVAy.js} +3 -3
  96. package/dist/{ToggleBinding-BTBbFc-F.js → ToggleBinding-BeXQfpcK.js} +4 -4
  97. package/dist/{UploadModal-DEwQZ_8a.js → UploadModal-pRlJXk-Y.js} +8 -8
  98. package/dist/{VideoPlayerInput-32LiwyOw.js → VideoPlayerInput-qankN5Ed.js} +4 -4
  99. package/dist/{VideoPlayerSettings-DkzjgwLt.js → VideoPlayerSettings-WijGYtE2.js} +2 -2
  100. package/dist/{VideoSelectModal-DmEmB4Cx.js → VideoSelectModal-Dhb7CmVu.js} +3 -3
  101. package/dist/{focusDrawerMixin-D13Ms6Jk.js → focusDrawerMixin-DELQ4Leq.js} +1 -1
  102. package/dist/{formDrawerState-CRhWaymS.js → formDrawerState-D_OOByIg.js} +1 -1
  103. package/dist/{helpers-B86zZNtk.js → helpers-BnYWgq30.js} +1 -1
  104. package/dist/{index-h9L0RGv3.js → index-6175cimw.js} +1 -1
  105. package/dist/{index-D3TD9uhN.js → index-BGFTOrwb.js} +55 -63
  106. package/dist/{index-DAIb9mjE.js → index-BIWUM14f.js} +1 -1
  107. package/dist/{index-tXDuIxx9.js → index-CFD_4fv_.js} +1 -1
  108. package/dist/{index-Db7Oe7W3.js → index-DRINkuNg.js} +6 -6
  109. package/dist/{index-Kb9qkTlP.js → index-KcSRVleg.js} +8 -8
  110. package/dist/{index-BiwH6W9z.js → index-P4A85Ytd.js} +3 -3
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +17 -17
  113. package/dist/{main-Dr3neB7n.js → main-q_EWffDQ.js} +56 -42
  114. package/dist/{mapFormMixin-Bkpm1wEf.js → mapFormMixin-DjPlsXfr.js} +2 -2
  115. package/dist/{omit-Ciu7kNcD.js → omit-DWur9Ujv.js} +1 -1
  116. package/dist/{publicSenderState-CEfzhj0R.js → publicSenderState-BkZVvtJm.js} +1 -1
  117. package/dist/{splitpanes-AhZAy_Th.js → splitpanes-BR5qxnsj.js} +1 -1
  118. package/dist/{template-MfjSWRyx.js → template-CQlJbqXR.js} +1 -1
  119. package/dist/{tippy.esm-CJxvo3UM.js → tippy.esm-BABwSp3j.js} +7 -7
  120. package/dist/{useTermsModal-Bp1LFsXg.js → useTermsModal-Bj2B-TdQ.js} +4 -4
  121. package/dist/{utils-DgTzzSIp.js → utils-C53ntVIe.js} +1 -1
  122. package/dist/{validation-J27tpgZs.js → validation-u_PNxOm8.js} +2 -2
  123. package/dist/widget.css +1 -1
  124. package/package.json +1 -1
  125. 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.4";
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.4",
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-BU4Mx9Fi.js"),
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-CweRWvIc.js").then((t) => t.c),
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-DXtfCSEG.js"),
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-DQkI5BgD.js"),
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-CSxB-KWG.js"),
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-CDTh_czd.js"),
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-DJfBiwUr.js"),
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-zF-W4hpD.js"),
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-COSPT21G.js"),
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-2CQuTokL.js"),
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-BDqoRdYy.js"),
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-CQHUQYVe.js"),
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.min(r * o, e * a);
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
- const l = {
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((d) => re(d, "region.reverseVat")),
43114
+ reverseVat: !!i.find((p) => re(p, "region.reverseVat")),
43101
43115
  houseWorkManualAmount: o.houseWorkManualAmount || null,
43102
43116
  houseWorkWork: 0,
43103
- houseWorkAmount: o.houseWorkManualAmount || o.houseWorkAmount || null,
43117
+ houseWorkAmount: l,
43104
43118
  deductionDate: o.deductionDate || null
43105
43119
  },
43106
43120
  helpers: {
43107
43121
  discount: 0,
43108
- isIndivid: !i.find((d) => d.type === "company"),
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
- }, c = (d) => d / 100;
43118
- if (l.helpers.isIndivid && !l.region.reverseVat) {
43119
- const d = [...n].sort(
43120
- (p, h) => new Date(h.updatedAt).getTime() - new Date(p.updatedAt).getTime()
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
- d && !l.region.houseWorkType && (l.region.houseWorkType = A5(d));
43123
- }
43124
- for (let d of n) {
43125
- d = ip(d);
43126
- const { totalAmount: p, currency: h, priceType: f, discount: m, discountType: v } = d;
43127
- let { vat: g } = d;
43128
- g === null && (g = 0), a || (g = 0), ["fixed", "approx"].includes(f) && (l.currency = h, l.subTotal += p, l.taxAmount += p * c(g), l.helpers.discount += v === "percentage" ? p / ((100 - m / 100) / 100) - p : m, l.region.houseWorkType && Kb(d) && (l.region.houseWorkWork += p * ((100 + g) / 100)));
43129
- }
43130
- !l.helpers.isIndivid && l.region.reverseVat && (l.taxAmount = 0), l.region.houseWorkType && l.region.houseWorkAmount === null && (l.region.houseWorkAmount = rP(
43131
- l.region.houseWorkType,
43132
- l.region.houseWorkWork,
43133
- l.helpers.noOfClients,
43134
- l.region.deductionDate
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 u = l.subTotal + l.taxAmount - l.region.houseWorkAmount;
43137
- return l.roundingAmount = s.enabled && s.interval ? Math.round(u / s.interval) * s.interval - u : 0, l.total = u + l.roundingAmount, Yb(l), l;
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-Dr3neB7n.js";
2
- import { t as V, c as b, a as H, g as I, b as T } from "./template-MfjSWRyx.js";
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-Dr3neB7n.js";
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 { ak as a, r as c } from "./main-Dr3neB7n.js";
1
+ import { ak as a, r as c } from "./main-q_EWffDQ.js";
2
2
  const e = JSON.parse(a.getItem("publicSender")), s = c({
3
3
  company: {
4
4
  name: "",
@@ -1,4 +1,4 @@
1
- import { ay as u, o as m, b as c, K as z, l as x } from "./main-Dr3neB7n.js";
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,4 +1,4 @@
1
- import { aD as C, p as _, aE as v, A as H, aF as x } from "./main-Dr3neB7n.js";
1
+ import { aD as C, p as _, aE as v, A as H, aF as x } from "./main-q_EWffDQ.js";
2
2
  const G = (e) => [
3
3
  {
4
4
  itemId: "embed",
@@ -1,8 +1,8 @@
1
- import { F as Tr } from "./DocumentLayout-CweRWvIc.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-Dr3neB7n.js";
3
- import { C as Ir, b as Mr } from "./CDropdownItem-CjTBhP8h.js";
4
- import { C as jr } from "./ColorPicker-BBPCRucQ.js";
5
- import { C as Br } from "./CCurrencyDropdown-xdp_13tB.js";
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-text" }, nn = { style: { width: "90%", display: "block" } }, on = { class: "truncate-text" }, 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"];
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-f7e945d7"]]), ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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-Dr3neB7n.js";
2
- import { m as M } from "./mapFormMixin-Bkpm1wEf.js";
3
- import { D as w } from "./DocModalBase-CneXY73m.js";
4
- import { _ as x } from "./DocumentLayout-CweRWvIc.js";
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,4 +1,4 @@
1
- import { ag as d, p as m } from "./main-Dr3neB7n.js";
1
+ import { ag as d, p as m } from "./main-q_EWffDQ.js";
2
2
  const s = {
3
3
  youtube: {
4
4
  reg: /^(?:https?:\/\/)?(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$/,
@@ -1,6 +1,6 @@
1
- import { x as l, y as c } from "./main-Dr3neB7n.js";
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-tXDuIxx9.js";
3
+ import { u } from "./index-CFD_4fv_.js";
4
4
  const d = Symbol(
5
5
  "validateDocument"
6
6
  );