@cling-se/widget 0.9.2 → 0.9.4

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 (132) hide show
  1. package/dist/AddClientCallout-d472aa84.js +57 -0
  2. package/dist/{AnswerModal-8f918a49.js → AnswerModal-06487437.js} +7 -5
  3. package/dist/{AttachmentItem-79618446.js → AttachmentItem-d98488ee.js} +5 -7
  4. package/dist/BaseDatePicker-8c098701.js +3156 -0
  5. package/dist/{BaseInput-9f376e4e.js → BaseInput-2723d613.js} +4 -4
  6. package/dist/{BaseUpload-9a3d655d.js → BaseUpload-996d74b3.js} +27 -26
  7. package/dist/BlockMedia-00907fb6.js +72 -0
  8. package/dist/CCallout-ffa95028.js +52 -0
  9. package/dist/CDropdownItem-74672842.js +610 -0
  10. package/dist/CField-06dd50f1.js +183 -0
  11. package/dist/CField.vue_vue_type_style_index_0_lang-4ed993c7.js +1 -0
  12. package/dist/CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js +83 -0
  13. package/dist/ClientAutocomplete-f65643dd.js +80 -0
  14. package/dist/ClientModal-d276aabd.js +547 -0
  15. package/dist/ColorPicker-4f6b70af.js +2881 -0
  16. package/dist/{CompanyModal-5dfa4486.js → CompanyModal-30c54ce3.js} +12 -11
  17. package/dist/{ContentWrapper-3ac57cb2.js → ContentWrapper-d5653fef.js} +21 -14
  18. package/dist/{CoverBlockSettings-323ef519.js → CoverBlockSettings-2335f3a8.js} +7 -7
  19. package/dist/DocForm-9ca24de4.js +6772 -0
  20. package/dist/DocFormSend-d0c6fa1d.js +135 -0
  21. package/dist/{DocModalBase-4058a890.js → DocModalBase-f4915a62.js} +1 -1
  22. package/dist/{DocReceipt-390f75e3.js → DocReceipt-d192000e.js} +1 -1
  23. package/dist/{DocSendReminder-afc52d3d.js → DocSendReminder-06d5b34c.js} +1 -1
  24. package/dist/{DocTextEditor-0be1aea9.js → DocTextEditor-c6d1df3c.js} +16 -12
  25. package/dist/{DocTimeline-c421dead.js → DocTimeline-b4c20f93.js} +11 -11
  26. package/dist/DocumentClient-c2319f00.js +145 -0
  27. package/dist/{DocumentLogotype-5230c7bd.js → DocumentLogotype-1efd1ce9.js} +3 -3
  28. package/dist/{EmbedInput-8092d310.js → EmbedInput-654c0477.js} +10 -11
  29. package/dist/{EmbedSettings-bbea9894.js → EmbedSettings-b81ec734.js} +10 -11
  30. package/dist/ErrorCallout-60d0b3ab.js +30 -0
  31. package/dist/{FilePreviewModal-67088d0f.js → FilePreviewModal-895bd1bd.js} +6 -7
  32. package/dist/FormInputRow-9819eb71.js +2045 -0
  33. package/dist/{HeaderSettings-e02a5832.js → HeaderSettings-c6dac755.js} +23 -19
  34. package/dist/{ImageSelectModal-a9912356.js → ImageSelectModal-7cece54e.js} +20 -18
  35. package/dist/{ImageUploadWrapper-1310e96e.js → ImageUploadWrapper-53afd31d.js} +3 -3
  36. package/dist/{Index-f3eae2af.js → Index-01c63c88.js} +2 -2
  37. package/dist/{Index-90566113.js → Index-1a7e98d7.js} +8 -8
  38. package/dist/{Index-0ac00646.js → Index-1d361d01.js} +6 -7
  39. package/dist/{Index-9cd881f2.js → Index-2535f58f.js} +2 -2
  40. package/dist/{Index-f4bb1f71.js → Index-34c84bab.js} +8 -9
  41. package/dist/{Index-f03edd3d.js → Index-5cc51230.js} +7 -8
  42. package/dist/{Index-648a786a.js → Index-5e35f4a2.js} +3 -3
  43. package/dist/{Index-6df9883f.js → Index-60fc8a6e.js} +5 -6
  44. package/dist/{Index-de45c9c3.js → Index-61f7dc92.js} +2 -2
  45. package/dist/{Index-26f9a008.js → Index-63805642.js} +73 -118
  46. package/dist/{Index-ca8aedde.js → Index-66c8cbfa.js} +11 -12
  47. package/dist/{Index-a9ed7c39.js → Index-6ef78b7a.js} +4 -6
  48. package/dist/{Index-8a22c5cd.js → Index-701f0d05.js} +1 -1
  49. package/dist/{Index-6ee090c3.js → Index-7443e91c.js} +16 -17
  50. package/dist/{Index-1ae93acd.js → Index-82574a41.js} +6 -7
  51. package/dist/{Index-35f3bca9.js → Index-82b5de12.js} +6 -7
  52. package/dist/{Index-d02a530a.js → Index-8bca2d87.js} +8 -9
  53. package/dist/{Index-57ce8eee.js → Index-9233cc83.js} +22 -15
  54. package/dist/{Index-faeeff50.js → Index-98e8bb86.js} +21 -16
  55. package/dist/{Index-17e60907.js → Index-9aaf8b90.js} +33 -31
  56. package/dist/{Index-0d81bade.js → Index-b020a80c.js} +6 -7
  57. package/dist/{Index-28c78ddc.js → Index-b14d0f03.js} +6 -7
  58. package/dist/{Index-d3e59202.js → Index-b15cfd62.js} +10 -10
  59. package/dist/{Index-0a22673f.js → Index-c4de05aa.js} +7 -7
  60. package/dist/{Index-87497c7c.js → Index-c67218ce.js} +7 -7
  61. package/dist/{Index-2b684213.js → Index-c7e68382.js} +6 -7
  62. package/dist/{Index-e1bd4ea9.js → Index-caf5cf44.js} +54 -44
  63. package/dist/{Index-2d5fe047.js → Index-cd76b120.js} +6 -7
  64. package/dist/Index-d45a1eff.js +28 -0
  65. package/dist/{Index-876daf3e.js → Index-d8879ca9.js} +2 -2
  66. package/dist/{Index-1f966c82.js → Index-e45a0c32.js} +27 -20
  67. package/dist/{Index-d11146a6.js → Index-e749f6f1.js} +6 -6
  68. package/dist/{Index-15591118.js → Index-e80f5f9c.js} +11 -11
  69. package/dist/{Index-e30b3de9.js → Index-f935c492.js} +6 -7
  70. package/dist/{InputToggleRow-c58dde03.js → InputToggleRow-9d8a7da4.js} +1 -1
  71. package/dist/IsPremiumPreStep-3a087524.js +1919 -0
  72. package/dist/{MediaWrapper-afc29574.js → MediaWrapper-d4a4b66f.js} +4 -4
  73. package/dist/{NotBindingText-e3a49f8a.js → NotBindingText-b199006c.js} +2 -2
  74. package/dist/{PackageGroup-150a9942.js → PackageGroup-37ac99b1.js} +24 -17
  75. package/dist/{PdfTerms-fcc835f4.js → PdfTerms-8b52bb6e.js} +6 -7
  76. package/dist/{PdfViewer-b1118475.js → PdfViewer-38bd8439.js} +2 -2
  77. package/dist/{PlainHtml-47791667.js → PlainHtml-9174cbf6.js} +1 -1
  78. package/dist/PriceHeader-e357afe9.js +336 -0
  79. package/dist/SearchApi-2e286be6.js +148 -0
  80. package/dist/{TermsSettings-c97df867.js → TermsSettings-c74eec79.js} +6 -6
  81. package/dist/{ThemeColorRow-014a0526.js → ThemeColorRow-3558367b.js} +7 -6
  82. package/dist/{ToggleBinding-342beacc.js → ToggleBinding-6c9c1ac3.js} +8 -9
  83. package/dist/{UploadModal-aed5f8c9.js → UploadModal-6d0abd77.js} +21 -22
  84. package/dist/{VideoPlayerInput-7ebb49d7.js → VideoPlayerInput-77cd86aa.js} +5 -6
  85. package/dist/{VideoPlayerSettings-0a027a8e.js → VideoPlayerSettings-b7eb781c.js} +13 -14
  86. package/dist/{VideoSelectModal-5c1a8ddc.js → VideoSelectModal-d2299552.js} +10 -10
  87. package/dist/anime.es-e284c852.js +858 -0
  88. package/dist/answerDocumentMixin-66023e62.js +54 -0
  89. package/dist/color-71c20583.js +15 -0
  90. package/dist/{cssMode-b59b5164.js → cssMode-8552fc56.js} +15 -14
  91. package/dist/focusDrawerMixin-67462262.js +68 -0
  92. package/dist/formComponentsInstall-ad9c2a83.js +2491 -0
  93. package/dist/formValidationMixin-4920ab53.js +4984 -0
  94. package/dist/{freemarker2-5b426d60.js → freemarker2-7e10a65d.js} +19 -18
  95. package/dist/{handlebars-9a256dec.js → handlebars-8045bfa8.js} +18 -17
  96. package/dist/{html-4322f199.js → html-8afcb633.js} +14 -13
  97. package/dist/{htmlMode-d8a0ed16.js → htmlMode-1a2d1b48.js} +19 -18
  98. package/dist/index-3d6d7a03.js +490 -0
  99. package/dist/index-805c56e4.js +4 -0
  100. package/dist/{index-c2f8c4f3.js → index-bf93d7c2.js} +13 -12
  101. package/dist/index-c48c5eb4.js +14 -0
  102. package/dist/{index-7359c27c.js → index-f805bfce.js} +21 -15
  103. package/dist/index.es.js +3 -3
  104. package/dist/index.umd.js +713 -600
  105. package/dist/{javascript-7f9828c0.js → javascript-dad5561e.js} +11 -10
  106. package/dist/{jsonMode-e07cde60.js → jsonMode-ce09245f.js} +19 -18
  107. package/dist/{liquid-b47f65fb.js → liquid-05247459.js} +11 -10
  108. package/dist/{main-154fab72.js → main-04025a56.js} +19557 -20415
  109. package/dist/mapFormMixin-8d073f99.js +66 -0
  110. package/dist/{publicSenderState-51ca0439.js → publicSenderState-97108de1.js} +1 -1
  111. package/dist/{python-f3873309.js → python-3f3513c5.js} +11 -10
  112. package/dist/{razor-4071ec1b.js → razor-1f3e9c4e.js} +14 -13
  113. package/dist/regions-29ee6964.js +1250 -0
  114. package/dist/simplebar.min-3af55aab.js +2429 -0
  115. package/dist/style.css +4 -0
  116. package/dist/template-42a1d852.js +526 -0
  117. package/dist/throttle-a2c1f34d.js +18 -0
  118. package/dist/tinycolor-88fa380f.js +634 -0
  119. package/dist/{tsMode-71160e05.js → tsMode-4c026047.js} +15 -14
  120. package/dist/{typescript-80a61e6a.js → typescript-baf56f67.js} +11 -10
  121. package/dist/{utils-72915af5.js → utils-6670dea6.js} +5 -5
  122. package/dist/vuedraggable.umd-d7138234.js +3179 -0
  123. package/dist/{xml-021490f1.js → xml-ffc6146a.js} +11 -10
  124. package/package.json +3 -2
  125. package/stats.html +1 -1
  126. package/dist/DocForm-5ff2cbbb.js +0 -22074
  127. package/dist/DocFormSend-06ffa19c.js +0 -113
  128. package/dist/Index-2b5c1367.js +0 -29
  129. package/dist/PriceHeader-1dfa95fd.js +0 -329
  130. package/dist/formComponentsInstall-e33d6795.js +0 -11121
  131. package/dist/index-51b2742c.js +0 -11
  132. package/dist/throttle-f479e1f1.js +0 -18
@@ -0,0 +1,135 @@
1
+ import { V as n, m as r, a as l, g as a, C as i, u as m, n as c } from "./main-04025a56.js";
2
+ import { i as u, S as d } from "./formComponentsInstall-ad9c2a83.js";
3
+ import "./vuex.esm-4a0fff7c.js";
4
+ import "./simplebar.min-3af55aab.js";
5
+ import "./mapFormMixin-8d073f99.js";
6
+ import "./BaseDatePicker-8c098701.js";
7
+ import "./ErrorCallout-60d0b3ab.js";
8
+ import "./AddClientCallout-d472aa84.js";
9
+ import "./ClientAutocomplete-f65643dd.js";
10
+ import "./SearchApi-2e286be6.js";
11
+ import "./CDropdownItem-74672842.js";
12
+ import "./ClientModal-d276aabd.js";
13
+ import "./index-805c56e4.js";
14
+ import "./CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js";
15
+ import "./CCallout-ffa95028.js";
16
+ import "./CField-06dd50f1.js";
17
+ import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
18
+ import "./regions-29ee6964.js";
19
+ n.use(u);
20
+ const s = n.observable({
21
+ canEdit: !1,
22
+ isForm: !0,
23
+ setFormValue: null
24
+ }), p = {
25
+ name: "DocFormSend",
26
+ components: {
27
+ SendForm: d
28
+ },
29
+ provide: () => ({ viewSettings: s, allowSenderSign: !1 }),
30
+ // TODO maybe not needed
31
+ props: {
32
+ showName: {
33
+ type: Boolean,
34
+ default: !0
35
+ },
36
+ showSave: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ showSchedule: {
41
+ type: Boolean,
42
+ default: !0
43
+ },
44
+ allowManualDelivery: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ contentSlot: {
49
+ type: String,
50
+ default: null
51
+ },
52
+ footerSlot: {
53
+ type: String,
54
+ default: null
55
+ }
56
+ },
57
+ data() {
58
+ return {
59
+ document: null
60
+ };
61
+ },
62
+ computed: {
63
+ ...r({
64
+ company: "application/company",
65
+ can: "application/can",
66
+ rawDoc: "forms/document",
67
+ isPosting: "documents2/isPosting"
68
+ })
69
+ },
70
+ watch: {
71
+ rawDoc: {
72
+ immediate: !0,
73
+ handler() {
74
+ this.initDoc();
75
+ }
76
+ }
77
+ },
78
+ async created() {
79
+ this.setFormValue && (s.setFormValue = this.setDocValue);
80
+ },
81
+ methods: {
82
+ ...l({
83
+ setFormValue: a.SET_FORM_VALUE,
84
+ removeFormValue: a.REMOVE_FORM_VALUE,
85
+ saveDocument: a.SAVE_DYNDOC_FORM
86
+ // loadCompanyUser: global.LOAD_COMPANY_USER,
87
+ }),
88
+ async initDoc() {
89
+ if (!this.rawDoc)
90
+ throw new Error("Missing initiated form document");
91
+ this.document = new i({
92
+ data: this.rawDoc,
93
+ can: this.can,
94
+ getters: this.$store.getters,
95
+ updateSender: !0
96
+ });
97
+ },
98
+ setDocValue({ key: t, value: e }) {
99
+ return this.setFormValue({ key: `document2.${t}`, value: e });
100
+ },
101
+ removeDocValue(t) {
102
+ return this.removeFormValue(`document2.${t}`);
103
+ },
104
+ async onSaveDocument({ doSend: t = !1 } = {}) {
105
+ await this.saveDocument({ doSend: t }), this.close();
106
+ },
107
+ close() {
108
+ m.open = !1;
109
+ }
110
+ }
111
+ };
112
+ var f = function() {
113
+ var e = this, o = e._self._c;
114
+ return e.document ? o("SendForm", { staticClass: "w-full h-full", attrs: { _document: e.document, _value: {
115
+ expiresAt: "data.expiresAt",
116
+ personalMessage: "data.personalMessage",
117
+ defaultAnswerMethod: "data.defaultAnswerMethod",
118
+ clients: "clients",
119
+ reminders: "data.reminders",
120
+ name: "data.name"
121
+ }, "show-name": e.showName, "show-save": e.showSave, "show-schedule": e.showSchedule, "allow-manual-delivery": e.allowManualDelivery, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument, "use-scroll": "" } }, [e.contentSlot ? o("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.contentSlot) }, slot: "content" }) : e._e(), e.footerSlot ? o("div", { attrs: { slot: "footer" }, domProps: { innerHTML: e._s(e.footerSlot) }, slot: "footer" }) : e._e()]) : o("div", { staticClass: "grid w-full h-full place-items-center" }, [o("BaseIcon", { staticClass: "text-gray-400 animate-spin", attrs: { type: "loader", size: 28 } })], 1);
122
+ }, h = [], v = /* @__PURE__ */ c(
123
+ p,
124
+ f,
125
+ h,
126
+ !1,
127
+ null,
128
+ null,
129
+ null,
130
+ null
131
+ );
132
+ const b = v.exports;
133
+ export {
134
+ b as default
135
+ };
@@ -1,4 +1,4 @@
1
- import { n as t } from "./main-154fab72.js";
1
+ import { n as t } from "./main-04025a56.js";
2
2
  const s = {
3
3
  name: "DocModalBase",
4
4
  components: {},
@@ -1,4 +1,4 @@
1
- import { g as p, n as u } from "./main-154fab72.js";
1
+ import { g as p, n as u } from "./main-04025a56.js";
2
2
  import { m as g, a as _ } from "./vuex.esm-4a0fff7c.js";
3
3
  const f = {
4
4
  sv: {
@@ -1,4 +1,4 @@
1
- import { g as m, n as a } from "./main-154fab72.js";
1
+ import { g as m, n as a } from "./main-04025a56.js";
2
2
  import { m as c, a as d } from "./vuex.esm-4a0fff7c.js";
3
3
  const l = {
4
4
  name: "DocumentSendReminderModal",
@@ -1,6 +1,10 @@
1
- import { n as qo, c as Pa, h as _a, F as za, p as $a, q as Ko } from "./DocForm-5ff2cbbb.js";
2
- import { V as Vn, n as ut, H as gs, r as ys, aa as Ha } from "./main-154fab72.js";
3
- import { f as Uo } from "./formComponentsInstall-e33d6795.js";
1
+ import { t as qo, F as Pa, s as _a, d as Ko } from "./FormInputRow-9819eb71.js";
2
+ import { V as Vn, n as ut, Y as gs, b as ys, p as za } from "./main-04025a56.js";
3
+ import { i as Uo } from "./CDropdownItem-74672842.js";
4
+ import "./CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js";
5
+ import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
6
+ import { C as $a } from "./ColorPicker-4f6b70af.js";
7
+ import { h as Ha } from "./color-71c20583.js";
4
8
  function ee(n) {
5
9
  this.content = n;
6
10
  }
@@ -13736,7 +13740,7 @@ const lm = om.exports;
13736
13740
  const am = {
13737
13741
  name: "TextEditorColorMenu",
13738
13742
  components: {
13739
- ColorPicker: Pa
13743
+ ColorPicker: $a
13740
13744
  },
13741
13745
  props: {
13742
13746
  editor: {
@@ -13767,7 +13771,7 @@ const am = {
13767
13771
  this.$emit("update:show-picker", !1);
13768
13772
  },
13769
13773
  setColor(n) {
13770
- const e = typeof n == "object" ? _a(n.hsl) : n;
13774
+ const e = typeof n == "object" ? Ha(n.hsl) : n;
13771
13775
  this.internalColor = e;
13772
13776
  const t = e ? "setColor" : "unsetColor";
13773
13777
  this.editor.chain().focus()[t](e).run();
@@ -13948,8 +13952,8 @@ var pm = function() {
13948
13952
  const ym = gm.exports;
13949
13953
  const bm = {
13950
13954
  components: {
13951
- FormInputRow: za,
13952
- TextTemplates: () => import("./index-7359c27c.js")
13955
+ FormInputRow: Pa,
13956
+ TextTemplates: () => import("./index-f805bfce.js")
13953
13957
  },
13954
13958
  props: {
13955
13959
  editor: {
@@ -14592,7 +14596,7 @@ function Fm(n = null) {
14592
14596
  placement: "bottom-start",
14593
14597
  // 'top-start'
14594
14598
  // sticky: true, // make sure position of tippy is updated when content changes
14595
- plugins: [$a]
14599
+ plugins: [_a]
14596
14600
  // trigger: 'mouseenter', // manual
14597
14601
  // theme: 'dark',
14598
14602
  // placement: 'top-start',
@@ -14799,7 +14803,7 @@ const Im = {
14799
14803
  },
14800
14804
  async openPreview() {
14801
14805
  var r;
14802
- const n = () => import("./FilePreviewModal-67088d0f.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
14806
+ const n = () => import("./FilePreviewModal-895bd1bd.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
14803
14807
  this.$modal.show(
14804
14808
  n,
14805
14809
  {
@@ -16708,7 +16712,7 @@ const qg = Z.create({
16708
16712
  const Wo = async (n) => {
16709
16713
  const e = new FormData();
16710
16714
  e.append("file", n, n.name);
16711
- const { data: t } = await Ha("/file", e, { timeout: 6e4 });
16715
+ const { data: t } = await za("/file", e, { timeout: 6e4 });
16712
16716
  return t.url;
16713
16717
  }, Kg = wa.extend({
16714
16718
  addAttributes() {
@@ -17063,8 +17067,8 @@ var Zg = function() {
17063
17067
  null,
17064
17068
  null
17065
17069
  );
17066
- const a0 = t0.exports;
17070
+ const h0 = t0.exports;
17067
17071
  export {
17068
17072
  Xg as B,
17069
- a0 as T
17073
+ h0 as T
17070
17074
  };
@@ -1,4 +1,4 @@
1
- import { n as u, H as b, r as S, J as _, K as f } from "./main-154fab72.js";
1
+ import { n as u, Y as b, b as S, Z as _, $ as f } from "./main-04025a56.js";
2
2
  import { m as D } from "./vuex.esm-4a0fff7c.js";
3
3
  const x = {
4
4
  new: {
@@ -432,7 +432,7 @@ var G = function() {
432
432
  return e("div", [t._t("header"), t._l(t.events, function(n, r) {
433
433
  return e("EventItem", { key: r, attrs: { title: n.title, content: n.content, createdAt: n.createdAt, icon: n.icon, color: n.color, "is-future": n.isFuture, size: t.size } });
434
434
  })], 2);
435
- }, V = [], H = /* @__PURE__ */ u(
435
+ }, V = [], U = /* @__PURE__ */ u(
436
436
  P,
437
437
  G,
438
438
  V,
@@ -442,11 +442,11 @@ var G = function() {
442
442
  null,
443
443
  null
444
444
  );
445
- const K = H.exports, U = {
445
+ const H = U.exports, K = {
446
446
  name: "DocTimeline",
447
447
  components: {
448
448
  StatusBadge: B,
449
- DocumentTimeline: K
449
+ DocumentTimeline: H
450
450
  },
451
451
  props: {
452
452
  document: {
@@ -455,20 +455,20 @@ const K = H.exports, U = {
455
455
  }
456
456
  }
457
457
  };
458
- var J = function() {
458
+ var Y = function() {
459
459
  var t = this, e = t._self._c;
460
460
  return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: { document: t.document, size: "large" } }, [e("div", { staticClass: "border-b mb-4 pb-4", attrs: { slot: "header" }, slot: "header" }, [e("div", { staticClass: "mb-2" }, [e("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:document").capitalize()) } }), e("div", { staticClass: "font-semibold text-lg" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "inline-flex items-center -ml-2" }, [e("div", { staticClass: "text-xs text-gray-600 mr-1.5 py-1 pl-2", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("StatusBadge", { attrs: { status: t.document.status } })], 1)])])], 1);
461
- }, Q = [], W = /* @__PURE__ */ u(
462
- U,
463
- J,
464
- Q,
461
+ }, Z = [], J = /* @__PURE__ */ u(
462
+ K,
463
+ Y,
464
+ Z,
465
465
  !1,
466
466
  null,
467
467
  null,
468
468
  null,
469
469
  null
470
470
  );
471
- const Z = W.exports;
471
+ const X = J.exports;
472
472
  export {
473
- Z as default
473
+ X as default
474
474
  };
@@ -0,0 +1,145 @@
1
+ import { n, V as d } from "./main-04025a56.js";
2
+ import { D as u, f as m } from "./formValidationMixin-4920ab53.js";
3
+ import { a as l } from "./answerDocumentMixin-66023e62.js";
4
+ import "./CDropdownItem-74672842.js";
5
+ const f = (s) => {
6
+ var e;
7
+ return (e = window == null ? void 0 : window.parent) == null ? void 0 : e.postMessage(s, "*");
8
+ }, o = (s) => typeof s == "object" && "event" in s;
9
+ class _ {
10
+ constructor() {
11
+ this.observers = {}, this.registered = !0, window.addEventListener("message", this._onMessage.bind(this));
12
+ }
13
+ _onMessage(e) {
14
+ if (e.source === window.parent && o(e == null ? void 0 : e.data)) {
15
+ const { event: t, data: r } = e.data;
16
+ this.observers[t] && this.observers[t].forEach((c) => c(r));
17
+ }
18
+ }
19
+ on(e, t) {
20
+ this.registered || window.addEventListener("message", this._onMessage.bind(this)), this.observers[e] = this.observers[e] || [], this.observers[e].push(t);
21
+ }
22
+ off(e, t) {
23
+ if (this.observers[e]) {
24
+ if (!t) {
25
+ delete this.observers[e];
26
+ return;
27
+ }
28
+ this.observers[e] = this.observers[e].filter(
29
+ (r) => r !== t
30
+ );
31
+ }
32
+ }
33
+ emit(e) {
34
+ if (!o(e))
35
+ throw new Error(
36
+ "Invalid message, must be an object including an event property"
37
+ );
38
+ f(e);
39
+ }
40
+ destroy() {
41
+ window.removeEventListener("message", this._onMessage.bind(this)), this.registered = !1;
42
+ }
43
+ }
44
+ const i = new _(), p = {
45
+ name: "DocumentVoided",
46
+ props: {
47
+ document: {
48
+ type: Object,
49
+ required: !0
50
+ }
51
+ }
52
+ };
53
+ var v = function() {
54
+ var e = this, t = e._self._c;
55
+ return t("div", { staticClass: "grid h-full text-center place-items-center" }, [t("div", [t("BaseIcon", { staticClass: "mb-2 text-primary-500", attrs: { type: "info" } }), t("div", { staticClass: "text-lg font-medium", domProps: { textContent: e._s(e.document.$t("documentVoided.title")) } }), t("div", { staticClass: "text-gray-700", domProps: { textContent: e._s(e.document.$t("documentVoided.description")) } })], 1)]);
56
+ }, h = [], b = /* @__PURE__ */ n(
57
+ p,
58
+ v,
59
+ h,
60
+ !1,
61
+ null,
62
+ null,
63
+ null,
64
+ null
65
+ );
66
+ const w = b.exports, a = d.observable({
67
+ canEdit: !1,
68
+ isForm: !1,
69
+ setFormValue: null
70
+ }), g = {
71
+ props: {
72
+ document: {
73
+ type: Object,
74
+ required: !0
75
+ },
76
+ setFormValue: {
77
+ type: Function,
78
+ required: !0
79
+ }
80
+ },
81
+ components: {
82
+ DocumentLayout: u,
83
+ DocumentVoided: w
84
+ },
85
+ mixins: [m, l()],
86
+ provide: () => ({ viewSettings: a }),
87
+ created() {
88
+ this.setFormValue && (a.setFormValue = this.setFormValue), i.on("answer", this.onAnswerMessage);
89
+ },
90
+ beforeDestroy() {
91
+ i.off("answer", this.onAnswerMessage);
92
+ },
93
+ methods: {
94
+ onAnswerMessage(s) {
95
+ this.onAnswer(s == null ? void 0 : s.mode);
96
+ }
97
+ }
98
+ };
99
+ var V = function() {
100
+ var r;
101
+ var e = this, t = e._self._c;
102
+ return t("div", [e._t("default"), ((r = e.document) == null ? void 0 : r.status) === "voided" ? t("DocumentVoided", { attrs: { document: e.document } }) : t("DocumentLayout", { attrs: { document: e.document } })], 2);
103
+ }, y = [], M = /* @__PURE__ */ n(
104
+ g,
105
+ V,
106
+ y,
107
+ !1,
108
+ null,
109
+ null,
110
+ null,
111
+ null
112
+ );
113
+ const x = M.exports, F = {
114
+ name: "DocumentClient",
115
+ components: {
116
+ ClientView: x
117
+ },
118
+ props: {
119
+ document: {
120
+ type: Object,
121
+ required: !0
122
+ },
123
+ setFormValue: {
124
+ type: Function,
125
+ required: !0
126
+ }
127
+ }
128
+ };
129
+ var C = function() {
130
+ var e = this, t = e._self._c;
131
+ return t("ClientView", { attrs: { document: e.document, "set-form-value": e.setFormValue } });
132
+ }, D = [], $ = /* @__PURE__ */ n(
133
+ F,
134
+ C,
135
+ D,
136
+ !1,
137
+ null,
138
+ null,
139
+ null,
140
+ null
141
+ );
142
+ const A = $.exports;
143
+ export {
144
+ A as default
145
+ };
@@ -1,10 +1,10 @@
1
- import { g as s, n as a } from "./main-154fab72.js";
1
+ import { g as s, n as a } from "./main-04025a56.js";
2
2
  import { m as l, a as p } from "./vuex.esm-4a0fff7c.js";
3
- import { a as r } from "./publicSenderState-51ca0439.js";
3
+ import { a as r } from "./publicSenderState-97108de1.js";
4
4
  const c = {
5
5
  name: "DocumentLogotype",
6
6
  components: {
7
- ImageUploadWrapper: () => import("./ImageUploadWrapper-1310e96e.js")
7
+ ImageUploadWrapper: () => import("./ImageUploadWrapper-53afd31d.js")
8
8
  },
9
9
  props: {
10
10
  value: {
@@ -1,10 +1,9 @@
1
- import { a as d } from "./formComponentsInstall-e33d6795.js";
2
- import { r as l, n as o } from "./main-154fab72.js";
3
- import "./vuex.esm-4a0fff7c.js";
1
+ import { d } from "./CDropdownItem-74672842.js";
2
+ import { b as l, n as o } from "./main-04025a56.js";
4
3
  const m = (t) => {
5
- const i = new DOMParser().parseFromString(t, "text/html"), [a] = l(i, "body.children") || [];
6
- return !a || a.tagName !== "IFRAME" ? {} : Array.from(a.attributes).reduce(
7
- (s, { name: r, value: n }) => ({ ...s, [r]: n }),
4
+ const i = new DOMParser().parseFromString(t, "text/html"), [s] = l(i, "body.children") || [];
5
+ return !s || s.tagName !== "IFRAME" ? {} : Array.from(s.attributes).reduce(
6
+ (a, { name: r, value: n }) => ({ ...a, [r]: n }),
8
7
  {}
9
8
  );
10
9
  }, u = (t) => {
@@ -96,9 +95,9 @@ var f = function() {
96
95
  display: "flex",
97
96
  flexDirection: "column",
98
97
  alignItems: "flex-start"
99
- }, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(a) {
100
- e.iFrameTplString = a;
101
- }, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(a) {
98
+ }, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(s) {
99
+ e.iFrameTplString = s;
100
+ }, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(s) {
102
101
  return e.validateInput(e.iFrameTplString);
103
102
  } } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])], 1);
104
103
  }, h = [], b = /* @__PURE__ */ o(
@@ -111,7 +110,7 @@ var f = function() {
111
110
  null,
112
111
  null
113
112
  );
114
- const _ = b.exports;
113
+ const v = b.exports;
115
114
  export {
116
- _ as default
115
+ v as default
117
116
  };
@@ -1,7 +1,6 @@
1
- import n from "./EmbedInput-8092d310.js";
2
- import { n as l } from "./main-154fab72.js";
3
- import "./formComponentsInstall-e33d6795.js";
4
- import "./vuex.esm-4a0fff7c.js";
1
+ import n from "./EmbedInput-654c0477.js";
2
+ import { n as l } from "./main-04025a56.js";
3
+ import "./CDropdownItem-74672842.js";
5
4
  const o = {
6
5
  i18nOptions: {
7
6
  namespaces: "embedSettings",
@@ -53,12 +52,12 @@ const o = {
53
52
  };
54
53
  var r = function() {
55
54
  var e = this, t = e._self._c;
56
- return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "has-text-grey-dark", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(i) {
57
- return e.$emit("input", i);
58
- } } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (i) => e.$emit("update:size", i ? "small" : null) } })], 1), e.size ? t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "5px" } }, e._l(e.sizeOptions, function({ value: i, svg: s }, a) {
55
+ return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "has-text-grey-dark", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(s) {
56
+ return e.$emit("input", s);
57
+ } } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (s) => e.$emit("update:size", s ? "small" : null) } })], 1), e.size ? t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "5px" } }, e._l(e.sizeOptions, function({ value: s, svg: i }, a) {
59
58
  return t("div", { key: a, staticClass: "size-option", on: { click: function(m) {
60
- return e.$emit("update:size", i);
61
- } } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === i }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(s) } })]);
59
+ return e.$emit("update:size", s);
60
+ } } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === s }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(i) } })]);
62
61
  }), 0) : e._e()])]);
63
62
  }, d = [], p = /* @__PURE__ */ l(
64
63
  o,
@@ -70,7 +69,7 @@ var r = function() {
70
69
  null,
71
70
  null
72
71
  );
73
- const f = p.exports;
72
+ const z = p.exports;
74
73
  export {
75
- f as default
74
+ z as default
76
75
  };
@@ -0,0 +1,30 @@
1
+ import { n as r } from "./main-04025a56.js";
2
+ const s = {
3
+ name: "ErrorCallout",
4
+ props: {
5
+ message: {
6
+ type: String,
7
+ required: !0
8
+ },
9
+ size: {
10
+ type: String,
11
+ default: "normal"
12
+ }
13
+ }
14
+ };
15
+ var a = function(e, t) {
16
+ return e("div", { staticClass: "flex items-center", class: [t.data.staticClass], staticStyle: { "margin-top": "1rem" }, style: [t.data.staticStyle] }, [e("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${t.props.size}`], staticStyle: { margin: "1rem 0" } }, [e("BaseIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), e("div", [t._v(" " + t._s(t.props.message) + " ")])], 1)]);
17
+ }, n = [], l = /* @__PURE__ */ r(
18
+ s,
19
+ a,
20
+ n,
21
+ !0,
22
+ null,
23
+ "300a015f",
24
+ null,
25
+ null
26
+ );
27
+ const p = l.exports;
28
+ export {
29
+ p as E
30
+ };
@@ -1,8 +1,7 @@
1
- import { n, S as o } from "./main-154fab72.js";
2
- import { V as r } from "./PdfViewer-b1118475.js";
3
- import "./DocForm-5ff2cbbb.js";
4
- import "./vuex.esm-4a0fff7c.js";
5
- import "./formComponentsInstall-e33d6795.js";
1
+ import { n, S as o } from "./main-04025a56.js";
2
+ import { V as r } from "./PdfViewer-38bd8439.js";
3
+ import "./formValidationMixin-4920ab53.js";
4
+ import "./CDropdownItem-74672842.js";
6
5
  const a = {
7
6
  name: "FilesPreviewModal",
8
7
  components: {
@@ -80,7 +79,7 @@ var l = function() {
80
79
  null,
81
80
  null
82
81
  );
83
- const g = c.exports;
82
+ const m = c.exports;
84
83
  export {
85
- g as default
84
+ m as default
86
85
  };