@cling-se/widget 0.19.0 → 0.19.1

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 +11 -1
  2. package/dist/{AddClientCallout-Vptl0F-r.js → AddClientCallout-CaWt51zO.js} +4 -4
  3. package/dist/{AnswerModal-BmRNVzhr.js → AnswerModal-BQBd6QIZ.js} +3 -3
  4. package/dist/{AttachmentItem-BG433dC_.js → AttachmentItem-BXJFcU8A.js} +4 -4
  5. package/dist/{BaseUpload-BqfFL06B.js → BaseUpload-Bb-jV-rT.js} +2 -2
  6. package/dist/{BlockMedia-C1nx4L_d.js → BlockMedia-Cc9ISU5-.js} +1 -1
  7. package/dist/{CCallout-lYEabA7f.js → CCallout-C0b2yts0.js} +1 -1
  8. package/dist/{CCurrencyDropdown-Dofwfw-Z.js → CCurrencyDropdown-BPGGMxVr.js} +3 -3
  9. package/dist/{CDropdownItem-CJBvsCYx.js → CDropdownItem-o6c-dgpj.js} +2 -2
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-BudK_SvK.js → CFormField.vue_vue_type_script_setup_true_lang-CB6tqkzw.js} +2 -2
  11. package/dist/{CPhoneFormat-pUHJxwkn.js → CPhoneFormat-CvbCwIMw.js} +1 -1
  12. package/dist/{CPhoneInput-yrP2I38o.js → CPhoneInput-DFtV1C3M.js} +5 -5
  13. package/dist/{CPriceInput-CjGn_OAt.js → CPriceInput-CKfeBaiK.js} +2 -2
  14. package/dist/{CSelect-DbhQBnwI.js → CSelect-CQDkIAl5.js} +1 -1
  15. package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-CqXSnNcp.js → CSkeleton.vue_vue_type_script_setup_true_lang-C9ME19Sb.js} +1 -1
  16. package/dist/{ClientAutocomplete-J1qFe372.js → ClientAutocomplete-DATda6K3.js} +3 -3
  17. package/dist/{ClientModal-Nl4CaFQY.js → ClientModal-DBTTy-PH.js} +8 -8
  18. package/dist/{ColorPicker-B_Lt7Q73.js → ColorPicker-gXtMcZi2.js} +1 -1
  19. package/dist/{CompanyModal-V1USLb0P.js → CompanyModal-DbFFI500.js} +7 -7
  20. package/dist/{ContentWrapper-DrxUg7qu.js → ContentWrapper-DS5U4FTA.js} +6 -6
  21. package/dist/{CoverBlockSettings-orIpWoUf.js → CoverBlockSettings-Igi2iP9e.js} +7 -7
  22. package/dist/{DocAnswer-VzSgbxlM.js → DocAnswer-D9W7XicY.js} +2 -2
  23. package/dist/{DocDetails-BeE2Mc-H.js → DocDetails-Eryp52fW.js} +4 -4
  24. package/dist/{DocForm-Cjcz8Gc9.js → DocForm-CrZ1qxFw.js} +24 -24
  25. package/dist/{DocFormSend-CJ-6d8_I.js → DocFormSend-BTOQOToy.js} +2 -2
  26. package/dist/{DocLinks-vFKWoS9I.js → DocLinks-DDKUtGsN.js} +2 -2
  27. package/dist/{DocModalBase-3sK0une9.js → DocModalBase-DJy3jIlT.js} +1 -1
  28. package/dist/{DocPrint-B5INwfU_.js → DocPrint-Cxvadru_.js} +1 -1
  29. package/dist/{DocReceipt-B38YPw_0.js → DocReceipt-BV4EMjte.js} +2 -2
  30. package/dist/{DocSendReminder-DIZbgWQ3.js → DocSendReminder-CFEkewUb.js} +1 -1
  31. package/dist/{DocTextEditor-DtAjKhfR.js → DocTextEditor-CYr4xlJS.js} +8 -8
  32. package/dist/{DocTimeline-DCjQvkRm.js → DocTimeline-Bu-JPdSS.js} +2 -2
  33. package/dist/{DocumentClient-DMGBdhm4.js → DocumentClient-Ds3Ml_jM.js} +5 -5
  34. package/dist/{DocumentLayout-sSe2PtTR.js → DocumentLayout-B3FIWECa.js} +5 -5
  35. package/dist/{DocumentLogotype-usBOo42G.js → DocumentLogotype-ClDF6PpH.js} +4 -4
  36. package/dist/{DocumentVoided-KCc3qCz-.js → DocumentVoided-BodYCjvc.js} +1 -1
  37. package/dist/{EmbedInput-B18JmUlX.js → EmbedInput-DFYsP_kX.js} +3 -3
  38. package/dist/{EmbedSettings-CBWqzx5z.js → EmbedSettings-DFrOJUUM.js} +3 -3
  39. package/dist/{ErrorCallout-BuXl8xOF.js → ErrorCallout-BYJyJZPB.js} +1 -1
  40. package/dist/{FilePreviewModal-BZPWRUtd.js → FilePreviewModal-CfVl8zrl.js} +2 -2
  41. package/dist/{Flag-DYC0iApz.js → Flag-_L6D9D8t.js} +1 -1
  42. package/dist/{HeaderSettings-3FitgwWT.js → HeaderSettings-BqIpDlzO.js} +9 -9
  43. package/dist/{ImageSelectModal-BwyTec9z.js → ImageSelectModal-DeGGmSsp.js} +3 -3
  44. package/dist/{ImageUploadWrapper-CvdQCI04.js → ImageUploadWrapper-D43A38GY.js} +2 -2
  45. package/dist/{Index-DZ32NvNn.js → Index-6kvN6O0X.js} +4 -4
  46. package/dist/{Index-C6ssqACN.js → Index-BHXJSL5I.js} +5 -5
  47. package/dist/{Index-DJouJGAH.js → Index-BKH6OOqV.js} +4 -4
  48. package/dist/{Index-bV8Bx4nn.js → Index-BVxSRyCp.js} +6 -6
  49. package/dist/{Index-BO2uPao5.js → Index-BZfs0bHx.js} +14 -14
  50. package/dist/{Index-xGyWLJdm.js → Index-B_jdIWnC.js} +2 -2
  51. package/dist/Index-Bic9bNJv.js +4 -0
  52. package/dist/{Index-ohXnc7_E.js → Index-Bw1i1g1S.js} +2 -2
  53. package/dist/{Index-M6-VPaAv.js → Index-C3cc_va3.js} +3 -3
  54. package/dist/{Index-C0CbrQB2.js → Index-C4pBUcxn.js} +3 -3
  55. package/dist/{Index-NFxiWYNj.js → Index-CP4iNSxB.js} +1 -1
  56. package/dist/{Index-M_9g_Zax.js → Index-C_LZNeaA.js} +4 -4
  57. package/dist/{Index-vnjF6Bji.js → Index-C_j9YUOs.js} +7 -7
  58. package/dist/{Index-CdblGceX.js → Index-CqU46z6H.js} +3 -3
  59. package/dist/{Index-Cf4Bcbas.js → Index-D0Tgw7QK.js} +4 -4
  60. package/dist/{Index-ZrRDWflR.js → Index-D1gXhK4Y.js} +8 -8
  61. package/dist/{Index-BQvg8ZuU.js → Index-D2lTDKW_.js} +5 -5
  62. package/dist/{Index-BQcEkTgx.js → Index-D6Yn0Cu_.js} +6 -6
  63. package/dist/{Index-D7CEdbW7.js → Index-DR2qDGeB.js} +1 -1
  64. package/dist/{Index-BNMDKDpC.js → Index-DSqOwZzR.js} +2 -2
  65. package/dist/{Index-JT2imx7a.js → Index-DU2EBh_R.js} +2 -2
  66. package/dist/{Index-D8jJxxLy.js → Index-DUJmFGTB.js} +8 -8
  67. package/dist/{Index-QflR5dNC.js → Index-DV_83_bb.js} +4 -4
  68. package/dist/{Index-LHsvvChK.js → Index-DfCPhiVV.js} +4 -4
  69. package/dist/{Index-Cyk21Scx.js → Index-Dn0jyFhI.js} +8 -8
  70. package/dist/{Index-B_ADIS7k.js → Index-DoOtbPjT.js} +4 -4
  71. package/dist/{Index-DG6otslU.js → Index-DxH1rquy.js} +2 -2
  72. package/dist/{Index-D4WArxi8.js → Index-EHXyBP_e.js} +4 -4
  73. package/dist/{Index-CiEbr4Nd.js → Index-KewPUVQ6.js} +10 -10
  74. package/dist/{Index-BVZ7I9Vu.js → Index-TMf9WicK.js} +5 -5
  75. package/dist/{Index-wngqjkKw.js → Index-gPLtrin7.js} +3 -3
  76. package/dist/{Index-C1Nr8ap1.js → Index-mDSRZY42.js} +1 -1
  77. package/dist/{Index-BxfI4Iqt.js → Index-w2kd8r9Y.js} +5 -5
  78. package/dist/{Index-B09Sehzh.js → Index-z3yzZv-i.js} +5 -5
  79. package/dist/{Index.vue_vue_type_script_lang-jQwkaSB7.js → Index.vue_vue_type_script_lang-CH5rNu03.js} +2 -2
  80. package/dist/{InputToggleRow-CSiThhgO.js → InputToggleRow-DwN1t9h4.js} +1 -1
  81. package/dist/{ManualPopover-Bl8v5ZDG.js → ManualPopover-CrO-jZFs.js} +1 -1
  82. package/dist/{MediaWrapper-lIdNVYqZ.js → MediaWrapper-DoABUikB.js} +3 -3
  83. package/dist/{NotBindingText-B5R0GG80.js → NotBindingText-CPW9rmMl.js} +2 -2
  84. package/dist/{PackageGroup-Co41ScbI.js → PackageGroup-DZgmsPG4.js} +5 -5
  85. package/dist/{PdfTerms-BjdQTT51.js → PdfTerms-BdN4BLcH.js} +2 -2
  86. package/dist/PdfViewer-qdiLNSxr.js +398 -0
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-CodzzcaG.js → PlainHtml.vue_vue_type_script_setup_true_lang-Bm9mNiTw.js} +1 -1
  88. package/dist/{PriceHeader-YGz0teEy.js → PriceHeader-nXbXkEDB.js} +7 -7
  89. package/dist/{SearchApi-OMmxc4Gc.js → SearchApi-Cyf21-io.js} +1 -1
  90. package/dist/{SendForm-iiXn4R8b.js → SendForm-WhOIfnQq.js} +9 -9
  91. package/dist/{Setup-Btetd-hN.js → Setup-Zh-pw3zk.js} +1 -1
  92. package/dist/{SmartList-CUrEibuS.js → SmartList-CsIZQPe6.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CfAqpaCg.js → Sortable.vue_vue_type_script_setup_true_lang-CQ9nu18E.js} +1 -1
  94. package/dist/{TermsSettings-C-f_9eor.js → TermsSettings-DCQ6nYqB.js} +5 -5
  95. package/dist/{ThemeColorRow-BlNaYlsU.js → ThemeColorRow-DYeM_-xA.js} +3 -3
  96. package/dist/{ToggleBinding-CZfzsJaE.js → ToggleBinding-S42D9hkL.js} +4 -4
  97. package/dist/{UploadModal-B9vF7KwN.js → UploadModal-DE6C8be_.js} +2 -2
  98. package/dist/{VideoPlayerInput-BvDOXJ1_.js → VideoPlayerInput-BH5U2ft7.js} +4 -4
  99. package/dist/{VideoPlayerSettings-BjynyaOP.js → VideoPlayerSettings-Xym5NHzP.js} +2 -2
  100. package/dist/{VideoSelectModal-DQY_Di55.js → VideoSelectModal-By2rQYdb.js} +3 -3
  101. package/dist/{focusDrawerMixin-b5oDlhMN.js → focusDrawerMixin-BalX9dza.js} +1 -1
  102. package/dist/{formDrawerState-BYYCztO9.js → formDrawerState-BcJmyemI.js} +1 -1
  103. package/dist/{helpers-bzbVaqQP.js → helpers-Ci7EYaV9.js} +1 -1
  104. package/dist/{index-C9dFO0BL.js → index-BouprsIq.js} +1 -1
  105. package/dist/{index-MhQs_glh.js → index-CF7QyeK7.js} +8 -8
  106. package/dist/{index-xgqJcCYO.js → index-CyRUO7xZ.js} +3 -3
  107. package/dist/{index-Ciap8JBo.js → index-DTw-DAlY.js} +1 -1
  108. package/dist/{index-CZT-L0nC.js → index-Dno6g6o2.js} +1 -1
  109. package/dist/{index-WJD_PM0A.js → index-MUAENfhP.js} +1 -1
  110. package/dist/{index-CZzz_mjw.js → index-NhIjIlKd.js} +6 -6
  111. package/dist/index.es.js +1 -1
  112. package/dist/index.umd.js +100 -100
  113. package/dist/{main-DlCbsSVf.js → main-XTM-sCfv.js} +16 -16
  114. package/dist/{mapFormMixin-CqVLw966.js → mapFormMixin-XMfH1XA9.js} +2 -2
  115. package/dist/{omit-KEWPkrrC.js → omit-CnUFMbkj.js} +1 -1
  116. package/dist/{publicSenderState-B66EcELt.js → publicSenderState-H_hu4Q8E.js} +1 -1
  117. package/dist/{splitpanes-DdUj0wVn.js → splitpanes-CrfnrjHX.js} +1 -1
  118. package/dist/{template-cJzAdVnU.js → template-CIV0AO5i.js} +1 -1
  119. package/dist/{tippy.esm-bMKs6Z5E.js → tippy.esm-BZNQemQh.js} +5 -5
  120. package/dist/{useTermsModal-DcNGcjc2.js → useTermsModal-C5ONZ7Si.js} +4 -4
  121. package/dist/{utils-DeWWRzC0.js → utils-BJFICb0T.js} +1 -1
  122. package/dist/{validation-DiKXOiVK.js → validation-ClFSCXd8.js} +2 -2
  123. package/package.json +2 -2
  124. package/dist/Index-Beqc9U9o.js +0 -4
  125. package/dist/PdfViewer-C3UvC3uI.js +0 -390
@@ -31414,7 +31414,7 @@ const XV = (t, { renewToken: e }) => {
31414
31414
  // allow API to store cookie
31415
31415
  paramsSerializer: (u) => JV(u)
31416
31416
  });
31417
- n.defaults.headers["X-CLIENT"] = "widget", n.defaults.headers["X-CLIENT-VERSION"] = "0.19.0";
31417
+ n.defaults.headers["X-CLIENT"] = "widget", n.defaults.headers["X-CLIENT-VERSION"] = "0.19.1";
31418
31418
  const i = async (u, p, h = null, f = {}) => {
31419
31419
  const m = p.startsWith("/public/"), v = Ee.getItem("token");
31420
31420
  switch (v && !m && (n.defaults.headers["X-TOKEN"] = v), u) {
@@ -33712,7 +33712,7 @@ const mz = /* @__PURE__ */ Or(hz), LR = _e.rollbar.clientToken, gz = [
33712
33712
  environment: _e.rollbar.environment || _e.environment,
33713
33713
  client: {
33714
33714
  javascript: {
33715
- code_version: "0.19.0",
33715
+ code_version: "0.19.1",
33716
33716
  // Git SHA of the deployed code (from webpack plugin)
33717
33717
  source_map_enabled: !0,
33718
33718
  guess_uncaught_frames: !0
@@ -37561,7 +37561,7 @@ const Nq = [
37561
37561
  {
37562
37562
  name: "form",
37563
37563
  path: "/form",
37564
- component: () => import("./DocForm-Cjcz8Gc9.js"),
37564
+ component: () => import("./DocForm-CrZ1qxFw.js"),
37565
37565
  props: !0,
37566
37566
  meta: {
37567
37567
  mode: "modal",
@@ -37573,7 +37573,7 @@ const Nq = [
37573
37573
  {
37574
37574
  name: "document",
37575
37575
  path: "/document",
37576
- component: () => import("./DocumentLayout-sSe2PtTR.js").then((t) => t.c),
37576
+ component: () => import("./DocumentLayout-B3FIWECa.js").then((t) => t.c),
37577
37577
  props: !0,
37578
37578
  meta: {
37579
37579
  mode: "modal",
@@ -37586,7 +37586,7 @@ const Nq = [
37586
37586
  {
37587
37587
  name: "send",
37588
37588
  path: "/send",
37589
- component: () => import("./DocFormSend-CJ-6d8_I.js"),
37589
+ component: () => import("./DocFormSend-BTOQOToy.js"),
37590
37590
  props: !0,
37591
37591
  meta: {
37592
37592
  mode: "drawer",
@@ -37598,7 +37598,7 @@ const Nq = [
37598
37598
  {
37599
37599
  name: "print",
37600
37600
  path: "/print",
37601
- component: () => import("./DocPrint-B5INwfU_.js"),
37601
+ component: () => import("./DocPrint-Cxvadru_.js"),
37602
37602
  props: !0,
37603
37603
  meta: {
37604
37604
  mode: "modal",
@@ -37609,7 +37609,7 @@ const Nq = [
37609
37609
  {
37610
37610
  name: "sendReminder",
37611
37611
  path: "/sendReminder",
37612
- component: () => import("./DocSendReminder-DIZbgWQ3.js"),
37612
+ component: () => import("./DocSendReminder-CFEkewUb.js"),
37613
37613
  props: !0,
37614
37614
  meta: {
37615
37615
  mode: "modal",
@@ -37620,7 +37620,7 @@ const Nq = [
37620
37620
  {
37621
37621
  name: "timeline",
37622
37622
  path: "/timeline",
37623
- component: () => import("./DocTimeline-DCjQvkRm.js"),
37623
+ component: () => import("./DocTimeline-Bu-JPdSS.js"),
37624
37624
  props: !0,
37625
37625
  meta: {
37626
37626
  mode: "modal",
@@ -37630,7 +37630,7 @@ const Nq = [
37630
37630
  {
37631
37631
  name: "receipt",
37632
37632
  path: "/receipt",
37633
- component: () => import("./DocReceipt-B38YPw_0.js"),
37633
+ component: () => import("./DocReceipt-BV4EMjte.js"),
37634
37634
  props: !0,
37635
37635
  meta: {
37636
37636
  mode: "modal",
@@ -37640,7 +37640,7 @@ const Nq = [
37640
37640
  {
37641
37641
  name: "clientLinks",
37642
37642
  path: "/clientLinks",
37643
- component: () => import("./DocLinks-vFKWoS9I.js"),
37643
+ component: () => import("./DocLinks-DDKUtGsN.js"),
37644
37644
  props: !0,
37645
37645
  meta: {
37646
37646
  mode: "modal",
@@ -37650,7 +37650,7 @@ const Nq = [
37650
37650
  {
37651
37651
  name: "documentClient",
37652
37652
  path: "/documentClient",
37653
- component: () => import("./DocumentClient-DMGBdhm4.js"),
37653
+ component: () => import("./DocumentClient-Ds3Ml_jM.js"),
37654
37654
  props: !0,
37655
37655
  meta: {
37656
37656
  mode: "modal",
@@ -37662,7 +37662,7 @@ const Nq = [
37662
37662
  {
37663
37663
  name: "setup",
37664
37664
  path: "/setup",
37665
- component: () => import("./Setup-Btetd-hN.js"),
37665
+ component: () => import("./Setup-Zh-pw3zk.js"),
37666
37666
  props: !0,
37667
37667
  meta: {
37668
37668
  mode: "modal",
@@ -37674,7 +37674,7 @@ const Nq = [
37674
37674
  {
37675
37675
  name: "docAnswer",
37676
37676
  path: "/docAnswer",
37677
- component: () => import("./DocAnswer-VzSgbxlM.js"),
37677
+ component: () => import("./DocAnswer-D9W7XicY.js"),
37678
37678
  props: !0,
37679
37679
  meta: {
37680
37680
  mode: "modal",
@@ -37685,7 +37685,7 @@ const Nq = [
37685
37685
  {
37686
37686
  name: "docDetails",
37687
37687
  path: "/docDetails",
37688
- component: () => import("./DocDetails-BeE2Mc-H.js"),
37688
+ component: () => import("./DocDetails-Eryp52fW.js"),
37689
37689
  props: !0,
37690
37690
  meta: {
37691
37691
  mode: "drawer",
@@ -44607,7 +44607,7 @@ function xk(t, e) {
44607
44607
  }
44608
44608
  function YK(t) {
44609
44609
  const e = t.getFullYear();
44610
- return !!(!(e & 3) && (e % 100 || e % 400 === 0 && e));
44610
+ return !!((e & 3) === 0 && (e % 100 || e % 400 === 0 && e));
44611
44611
  }
44612
44612
  function KK(t) {
44613
44613
  const e = t.getDate();
@@ -54513,7 +54513,7 @@ fs.prototype.duration = function() {
54513
54513
  var t = this.ms * Math.pow(this.factor, this.attempts++);
54514
54514
  if (this.jitter) {
54515
54515
  var e = Math.random(), r = Math.floor(e * this.jitter * t);
54516
- t = Math.floor(e * 10) & 1 ? t + r : t - r;
54516
+ t = (Math.floor(e * 10) & 1) == 0 ? t - r : t + r;
54517
54517
  }
54518
54518
  return Math.min(t, this.max) | 0;
54519
54519
  };
@@ -1,5 +1,5 @@
1
- import { aC as r, aB as d, p as h, bp as w, bq as g, br as y, bs as x, bt as v, bu as k, a9 as m } from "./main-DlCbsSVf.js";
2
- import { t as V, c as b, a as H, g as I, b as T } from "./template-cJzAdVnU.js";
1
+ import { aC as r, aB as d, p as h, bp as w, bq as g, br as y, bs as x, bt as v, bu as k, a9 as m } from "./main-XTM-sCfv.js";
2
+ import { t as V, c as b, a as H, g as I, b as T } from "./template-CIV0AO5i.js";
3
3
  const M = (e) => {
4
4
  const t = Array(2).fill().map(() => r());
5
5
  return [
@@ -1,4 +1,4 @@
1
- import { aT as A, aU as P, aV as y, aW as I, aX as S, aY as T, aZ as p, a_ as x, a$ as D, b0 as G, aI as M } from "./main-DlCbsSVf.js";
1
+ import { aT as A, aU as P, aV as y, aW as I, aX as S, aY as T, aZ as p, a_ as x, a$ as D, b0 as G, aI as M } from "./main-XTM-sCfv.js";
2
2
  var f, q;
3
3
  function N() {
4
4
  if (q) return f;
@@ -1,4 +1,4 @@
1
- import { a4 as a, r as c } from "./main-DlCbsSVf.js";
1
+ import { a4 as a, r as c } from "./main-XTM-sCfv.js";
2
2
  const e = JSON.parse(a.getItem("publicSender")), s = c({
3
3
  company: {
4
4
  name: "",
@@ -1,4 +1,4 @@
1
- import { ah as u, o as m, b as c, S as z, l as x } from "./main-DlCbsSVf.js";
1
+ import { ah as u, o as m, b as c, S as z, l as x } from "./main-XTM-sCfv.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 { aB as C, p as _, aC as v, a9 as H, aD as x } from "./main-DlCbsSVf.js";
1
+ import { aB as C, p as _, aC as v, a9 as H, aD as x } from "./main-XTM-sCfv.js";
2
2
  const G = (e) => [
3
3
  {
4
4
  itemId: "embed",
@@ -1,8 +1,8 @@
1
- import { F as Tr } from "./DocumentLayout-sSe2PtTR.js";
2
- import { _ as Ar, z as Cr, o as P, b as I, s as _, v as pe, E as Dr, f as It, F as Le, k as st, e as xe, a2 as kr, n as _r, $ as ve, d as ce, w as Se, l as Lr, an as Sr, c as Rr, B as Pr } from "./main-DlCbsSVf.js";
3
- import { C as Ir, b as Mr } from "./CDropdownItem-CJBvsCYx.js";
4
- import { C as jr } from "./ColorPicker-B_Lt7Q73.js";
5
- import { C as Br } from "./CCurrencyDropdown-Dofwfw-Z.js";
1
+ import { F as Tr } from "./DocumentLayout-B3FIWECa.js";
2
+ import { _ as Ar, z as Cr, o as P, b as I, s as _, v as pe, E as Dr, f as It, F as Le, k as st, e as xe, a2 as kr, n as _r, $ as ve, d as ce, w as Se, l as Lr, an as Sr, c as Rr, B as Pr } from "./main-XTM-sCfv.js";
3
+ import { C as Ir, b as Mr } from "./CDropdownItem-o6c-dgpj.js";
4
+ import { C as jr } from "./ColorPicker-gXtMcZi2.js";
5
+ import { C as Br } from "./CCurrencyDropdown-BPGGMxVr.js";
6
6
  const Vr = {
7
7
  components: {
8
8
  ColorPicker: jr,
@@ -1,7 +1,7 @@
1
- import { _, e as m, o as f, b as h, s as i, d as c, w as u, aH as v } from "./main-DlCbsSVf.js";
2
- import { m as M } from "./mapFormMixin-CqVLw966.js";
3
- import { D as w } from "./DocModalBase-3sK0une9.js";
4
- import { _ as x } from "./DocumentLayout-sSe2PtTR.js";
1
+ import { _, e as m, o as f, b as h, s as i, d as c, w as u, aH as v } from "./main-XTM-sCfv.js";
2
+ import { m as M } from "./mapFormMixin-XMfH1XA9.js";
3
+ import { D as w } from "./DocModalBase-DJy3jIlT.js";
4
+ import { _ as x } from "./DocumentLayout-B3FIWECa.js";
5
5
  const C = {
6
6
  name: "TermsModal",
7
7
  components: {
@@ -1,4 +1,4 @@
1
- import { a3 as d, p as m } from "./main-DlCbsSVf.js";
1
+ import { a3 as d, p as m } from "./main-XTM-sCfv.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-DlCbsSVf.js";
1
+ import { x as l, y as c } from "./main-XTM-sCfv.js";
2
2
  import { s } from "./dom-DOcGU3-g.js";
3
- import { u } from "./index-C9dFO0BL.js";
3
+ import { u } from "./index-BouprsIq.js";
4
4
  const d = Symbol(
5
5
  "validateDocument"
6
6
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -46,7 +46,7 @@
46
46
  "rollup-plugin-visualizer": "^5.8.3",
47
47
  "tailwindcss": "^3.2.1",
48
48
  "terser": "^5.37.0",
49
- "vite": "^6.0.7",
49
+ "vite": "^6.2.0",
50
50
  "vite-tsconfig-paths": "^4.3.2"
51
51
  },
52
52
  "scripts": {
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_lang-jQwkaSB7.js";
2
- export {
3
- f as default
4
- };
@@ -1,390 +0,0 @@
1
- import { h as A, I as C, a0 as K, K as T, a1 as J, M as H, aS as X, o as m, b as v, S as Y, f as F, s as d, n as V, E as _, j as z, bc as ee, _ as O, e as W, ae as L, v as Z, d as h, w as G, an as j, ai as te, bd as ae, B as M, F as S, c as U, k as ne, P as R, az as oe, $ as se, p as D, Q as $ } from "./main-DlCbsSVf.js";
2
- import { e as q } from "./dom-DOcGU3-g.js";
3
- import { w as re } from "./CDropdownItem-CJBvsCYx.js";
4
- const le = { class: "w-full" }, ie = /* @__PURE__ */ A({
5
- __name: "PdfPage",
6
- props: {
7
- pdf: {},
8
- page: { default: 1 },
9
- scale: { default: "page-width" },
10
- rotate: { default: 0 },
11
- resize: { type: Boolean, default: !0 },
12
- annotation: { type: Boolean, default: !0 },
13
- text: { type: Boolean, default: !0 },
14
- containerClass: {}
15
- },
16
- emits: ["pagerendered", "link-clicked", "update:scale", "error"],
17
- setup(t, { emit: e }) {
18
- let o, s, g, f, n;
19
- const r = e, w = C(!0), b = K("container");
20
- T(
21
- () => t.scale,
22
- (a) => {
23
- y(a);
24
- }
25
- ), T(
26
- () => t.rotate,
27
- (a) => {
28
- n && (n.update({ scale: t.scale, rotation: a }), n.draw());
29
- }
30
- ), J(() => {
31
- o = window.pdfjsViewer.PDFFindController, s = window.pdfjsViewer.PDFLinkService, g = window.pdfjsViewer.PDFPageView, f = window.pdfjsViewer.EventBus, k();
32
- }), H(() => {
33
- n && (n.destroy(), n = null);
34
- });
35
- function k() {
36
- var u;
37
- const a = new f();
38
- a.on("pagerendered", (c) => r("pagerendered", c));
39
- const p = new s({
40
- eventBus: a,
41
- externalLinkTarget: 2
42
- }), l = new o({
43
- eventBus: a,
44
- linkService: p
45
- });
46
- (u = t.pdf) == null || u.getPage(t.page).then((c) => {
47
- n = new g({
48
- container: b.value,
49
- id: t.page,
50
- scale: 1,
51
- defaultViewport: c.getViewport({ scale: 1 }),
52
- eventBus: a,
53
- textLayerMode: t.text ? 1 : 0,
54
- annotationMode: t.annotation ? 1 : 0
55
- }), n.setPdfPage(c);
56
- const i = {
57
- scrollPageIntoView: (P) => r("link-clicked", P)
58
- };
59
- return p.setDocument(t.pdf), p.setViewer(i), l.setDocument(t.pdf), y(t.scale);
60
- }).catch((c) => {
61
- r("error", c), w.value = !1;
62
- });
63
- }
64
- function x(a = -1, p = -1) {
65
- return n.update({ scale: 1, rotation: t.rotate }), a === -1 && p === -1 && (a = b.value.offsetWidth), a / n.viewport.width;
66
- }
67
- function N() {
68
- var l;
69
- n.update({ scale: 1, rotation: t.rotate });
70
- const a = b.value.offsetHeight, p = (l = b.value.parentElement) == null ? void 0 : l.parentElement;
71
- return p ? p.offsetHeight / a : 1;
72
- }
73
- const y = X(async function(a) {
74
- n && (a === "page-width" ? (a = x(), r("update:scale", a)) : a === "page-height" && (a = N(), r("update:scale", a)), n.update({ scale: a, rotation: t.rotate }), await n.draw(), w.value = !1);
75
- }, 500);
76
- function B() {
77
- t.resize && !w.value && y("page-width");
78
- }
79
- return (a, p) => (m(), v("div", null, [
80
- w.value ? Y(a.$slots, "loading", { key: 0 }) : F("", !0),
81
- d("div", {
82
- ref_key: "container",
83
- ref: b,
84
- class: V([a.containerClass, "pdfViewer tracking-normal"])
85
- }, null, 2),
86
- _(d("div", le, null, 512), [
87
- [z(ee), B]
88
- ])
89
- ]));
90
- }
91
- }), de = {
92
- name: "PDFToolbar",
93
- emits: ["update:scale", "update:auto-zoom", "navigate-to-page", "download"],
94
- mixins: [re],
95
- props: {
96
- currentPage: {
97
- type: Number,
98
- default: 0
99
- },
100
- numPages: {
101
- type: Number,
102
- default: 0
103
- },
104
- scale: {
105
- type: [Number, String],
106
- default: "page-width"
107
- },
108
- autoZoom: {
109
- type: Boolean,
110
- default: !0
111
- }
112
- },
113
- data() {
114
- return {
115
- compactExpand: !1
116
- };
117
- },
118
- computed: {
119
- formattedZoom() {
120
- return this.autoZoom ? "Auto" : Number.parseInt(this.scale * 100) + "%";
121
- }
122
- },
123
- methods: {
124
- updateZoom(t) {
125
- this.$emit("update:scale", t), this.$emit("update:auto-zoom", t === "page-width");
126
- },
127
- onManualZoom(t) {
128
- var g;
129
- let e = ((g = t == null ? void 0 : t.target) == null ? void 0 : g.value) || "";
130
- if (e === "Auto") return;
131
- e.endsWith("%") && (e = e.slice(0, -1));
132
- const o = Number.parseFloat(e);
133
- let s = 1;
134
- Number.isNaN(o) || (s = o / 100, s < 0 && (s = 0), s > 5 && (s = 5)), this.updateZoom(s);
135
- },
136
- navigateToPage(t) {
137
- var o, s;
138
- let e = ((o = t == null ? void 0 : t.target) == null ? void 0 : o.value) || "";
139
- e = Number.parseInt(e), Number.isNaN(e) && (e = this.currentPage), e < 1 && (e = 1), e > this.numPages && (e = this.numPages), e === this.currentPage && typeof ((s = t == null ? void 0 : t.target) == null ? void 0 : s.value) < "u" && (t.target.value = this.currentPage), this.$emit("navigate-to-page", e);
140
- }
141
- }
142
- }, ue = { class: "ease flex h-full items-center justify-center gap-1 overflow-hidden rounded-full border border-gray-100 bg-white px-1.5 text-gray-500 transition duration-500" }, ce = { class: "mr-2 inline-flex items-center gap-2" }, fe = ["value"], ge = { class: "text-sm font-medium" }, me = {
143
- key: 0,
144
- class: "button-transitions flex items-center"
145
- }, pe = { class: "inline-flex items-center" }, ve = ["value"];
146
- function we(t, e, o, s, g, f) {
147
- const n = W("CIcon");
148
- return m(), v("div", {
149
- class: V(["pointer-events-none sticky top-0 z-10 flex h-10 w-full translate-y-4", { "translate-y-2": t.mq === "sm" }])
150
- }, [
151
- d("div", {
152
- class: V(["pointer-events-auto mx-auto inline-flex items-center justify-center rounded-full bg-gray-300/50 shadow-xl backdrop-blur-md", { "ml-2": t.mq === "sm" }])
153
- }, [
154
- d("div", ue, [
155
- d("div", ce, [
156
- d("input", {
157
- class: "w-9 rounded-full border border-solid border-gray-200 bg-gray-100 text-center leading-loose text-gray-500",
158
- type: "number",
159
- value: o.currentPage,
160
- onBlur: e[0] || (e[0] = (...r) => f.navigateToPage && f.navigateToPage(...r)),
161
- onKeyup: e[1] || (e[1] = L((...r) => f.navigateToPage && f.navigateToPage(...r), ["enter"]))
162
- }, null, 40, fe),
163
- d("div", ge, "/ " + Z(o.numPages), 1)
164
- ]),
165
- h(te, { name: "slide-fade" }, {
166
- default: G(() => [
167
- t.mq !== "sm" || g.compactExpand ? (m(), v("div", me, [
168
- e[9] || (e[9] = d("div", { class: "h-8 w-px bg-gray-700/10" }, null, -1)),
169
- d("div", pe, [
170
- d("button", {
171
- class: "h-10 w-10 rounded-full text-gray-400",
172
- onClick: e[2] || (e[2] = j((r) => f.updateZoom(o.scale - (o.scale > 0.2 ? 0.1 : 0)), ["prevent"]))
173
- }, [
174
- h(n, {
175
- type: "zoomOut",
176
- size: "20"
177
- })
178
- ]),
179
- (m(), v("input", {
180
- key: o.scale,
181
- class: "w-12 rounded-md border border-solid border-gray-200 bg-gray-100 text-center leading-loose text-gray-500",
182
- type: "text",
183
- value: f.formattedZoom,
184
- onBlur: e[3] || (e[3] = (...r) => f.onManualZoom && f.onManualZoom(...r)),
185
- onKeyup: e[4] || (e[4] = L((...r) => f.onManualZoom && f.onManualZoom(...r), ["enter"]))
186
- }, null, 40, ve)),
187
- d("button", {
188
- class: "h-10 w-10 rounded-full text-gray-400",
189
- onClick: e[5] || (e[5] = j((r) => f.updateZoom(o.scale + (o.scale < 2 ? 0.1 : 0)), ["prevent"]))
190
- }, [
191
- h(n, {
192
- type: "zoomIn",
193
- size: "20"
194
- })
195
- ])
196
- ]),
197
- e[10] || (e[10] = d("div", { class: "h-8 w-px bg-gray-700/10" }, null, -1)),
198
- d("button", {
199
- class: "h-10 w-10 rounded-full text-gray-400",
200
- onClick: e[6] || (e[6] = j((r) => o.autoZoom ? null : f.updateZoom("page-width"), ["prevent"]))
201
- }, [
202
- h(n, {
203
- type: "boxBox",
204
- size: "20"
205
- })
206
- ]),
207
- e[11] || (e[11] = d("div", { class: "h-8 w-px bg-gray-700/10" }, null, -1)),
208
- d("button", {
209
- class: "h-10 w-10 rounded-full text-gray-400",
210
- onClick: e[7] || (e[7] = j((r) => t.$emit("download"), ["prevent"]))
211
- }, [
212
- h(n, {
213
- type: "download",
214
- size: "20"
215
- })
216
- ])
217
- ])) : F("", !0)
218
- ]),
219
- _: 1
220
- })
221
- ]),
222
- t.mq === "sm" ? (m(), v("button", {
223
- key: 0,
224
- class: "h-10 w-10 rounded-full text-gray-400",
225
- onClick: e[8] || (e[8] = j((r) => g.compactExpand = !g.compactExpand, ["prevent"]))
226
- }, [
227
- h(n, {
228
- class: V([{ "rotate-180": g.compactExpand }, "duration-500"]),
229
- type: "chevron-right",
230
- size: "20"
231
- }, null, 8, ["class"])
232
- ])) : F("", !0)
233
- ], 2)
234
- ], 2);
235
- }
236
- const be = /* @__PURE__ */ O(de, [["render", we], ["__scopeId", "data-v-8c16cc4d"]]);
237
- function ye(t, e = {}) {
238
- let o;
239
- if (typeof t == "string")
240
- o = {
241
- url: t
242
- };
243
- else if (typeof t == "object" && t !== null) o = { ...t };
244
- else throw new TypeError("invalid src type");
245
- const s = window.pdfjsLib.getDocument(o);
246
- return e && e.onPassword && (s.onPassword = e.onPassword), e && e.onProgress && (s.onProgress = e.onProgress), s;
247
- }
248
- const Pe = { key: 0 }, he = {
249
- key: 0,
250
- class: "mb-4 grid aspect-[210/297] w-full place-items-center border border-gray-100 bg-gray-50"
251
- }, ke = { class: "mb-4 grid aspect-[210/297] place-items-center border border-gray-100 bg-gray-50" }, E = "4.10.38", xe = /* @__PURE__ */ A({
252
- __name: "PdfViewer",
253
- props: {
254
- src: {},
255
- toolbar: { type: Boolean, default: !0 },
256
- docFilePath: {}
257
- },
258
- emits: ["numPages", "rendered"],
259
- setup(t, { emit: e }) {
260
- let o = !1, s = null;
261
- const g = e, f = R("isPdf", !1), n = R("fallbackMode", !1), r = ae(null), w = C(!1), b = K("pageComponents"), k = C("page-width"), x = C(!0), N = C(1), y = C(void 0);
262
- T(
263
- () => n,
264
- (l) => {
265
- l && (k.value = 0.9);
266
- },
267
- { immediate: !0 }
268
- ), T(
269
- () => t.src,
270
- async (l) => {
271
- o || (await q(
272
- `${D.api.baseUrl}/js/pdfjs-dist@${E}/build/pdf.min.mjs`
273
- ), await q(
274
- `${D.api.baseUrl}/js/pdfjs-dist@${E}/web/pdf_viewer.mjs`
275
- ), window.pdfjsLib.GlobalWorkerOptions.workerSrc = `${D.api.baseUrl}/js/pdfjs-dist@${E}/build/pdf.worker.min.mjs`, o = !0), B(l);
276
- },
277
- { immediate: !0 }
278
- ), H(() => {
279
- s && (s.disconnect(), s = null);
280
- });
281
- const B = async (l) => {
282
- if (!l) return;
283
- w.value = !0;
284
- const u = ye(l);
285
- await $(), u.promise.then((c) => {
286
- r.value = c, w.value = !1, y.value = c.numPages, g("numPages", c.numPages), g("rendered"), t.toolbar && (y.value ?? 0) > 1 && (s = new IntersectionObserver(
287
- (i) => {
288
- i.forEach((P) => {
289
- var I;
290
- if (P.isIntersecting) {
291
- const Q = Number((I = P.target) == null ? void 0 : I.getAttribute("data-page"));
292
- N.value = Q;
293
- }
294
- });
295
- },
296
- {
297
- rootMargin: "0px",
298
- threshold: 0.5
299
- }
300
- ), $(() => {
301
- var i;
302
- (i = b.value) == null || i.forEach(
303
- (P) => s.observe(P.$el)
304
- );
305
- }));
306
- });
307
- }, a = (l) => {
308
- var u, c, i;
309
- (i = (c = (u = b.value) == null ? void 0 : u[l - 1]) == null ? void 0 : c.$el) == null || i.scrollIntoView({
310
- behavior: "instant",
311
- block: "start"
312
- });
313
- }, p = async () => {
314
- r.value && r.value.getData().then((l) => {
315
- const u = new Blob([l], { type: "application/pdf" }), c = URL.createObjectURL(u), i = document.createElement("a");
316
- i.href = c, i.setAttribute("download", "document.pdf"), i.click();
317
- }).catch(() => oe("Failed to download PDF"));
318
- };
319
- return (l, u) => {
320
- const c = W("CIcon");
321
- return m(), v("div", {
322
- key: l.src,
323
- style: { "--page-border": "0" }
324
- }, [
325
- z(f) && !z(n) ? (m(), v("pre", Pe, [
326
- M(" ClingPDFReplaceStart:[" + Z(l.docFilePath) + `]ClingPDFReplaceEnd
327
- `, 1),
328
- d("div", null, "This page should have been replaced with URL: " + Z(l.src), 1),
329
- u[3] || (u[3] = M(`
330
- `))
331
- ])) : (m(), v(S, { key: 1 }, [
332
- l.toolbar && !z(n) && !w.value ? (m(), U(be, {
333
- key: 0,
334
- scale: k.value,
335
- "onUpdate:scale": u[0] || (u[0] = (i) => k.value = i),
336
- "auto-zoom": x.value,
337
- "onUpdate:autoZoom": u[1] || (u[1] = (i) => x.value = i),
338
- "current-page": N.value,
339
- "num-pages": y.value,
340
- onDownload: p,
341
- onNavigateToPage: a
342
- }, null, 8, ["scale", "auto-zoom", "current-page", "num-pages"])) : F("", !0),
343
- d("div", {
344
- class: V(["mx-auto", { "chapter-spacing-x max-w-full": x.value && !z(n) }])
345
- }, [
346
- w.value ? (m(), v("div", he, [
347
- h(c, {
348
- type: "loader",
349
- size: "28",
350
- class: "animate-spin text-gray-400"
351
- })
352
- ])) : F("", !0),
353
- d("div", {
354
- class: V({ "overflow-x-auto": !x.value })
355
- }, [
356
- (m(!0), v(S, null, ne(y.value, (i) => (m(), U(ie, se({ ref_for: !0 }, l.$attrs, {
357
- ref_for: !0,
358
- ref_key: "pageComponents",
359
- ref: b,
360
- scale: k.value,
361
- "onUpdate:scale": u[2] || (u[2] = (P) => k.value = P),
362
- key: i,
363
- pdf: r.value,
364
- page: i,
365
- "data-page": i,
366
- resize: x.value,
367
- "container-class": z(n) ? "" : "mb-4",
368
- class: "page-shadow"
369
- }), {
370
- loading: G(() => [
371
- d("div", ke, [
372
- h(c, {
373
- type: "loader",
374
- size: "28",
375
- class: "animate-spin text-gray-400"
376
- })
377
- ])
378
- ]),
379
- _: 2
380
- }, 1040, ["scale", "pdf", "page", "data-page", "resize", "container-class"]))), 128))
381
- ], 2)
382
- ], 2)
383
- ], 64))
384
- ]);
385
- };
386
- }
387
- }), je = /* @__PURE__ */ O(xe, [["__scopeId", "data-v-31731741"]]);
388
- export {
389
- je as V
390
- };