@cling-se/widget 0.9.1 → 0.9.3

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-746899d9.js +57 -0
  2. package/dist/{AnswerModal-c22c6729.js → AnswerModal-fdfea0f8.js} +7 -5
  3. package/dist/{AttachmentItem-ab7c264b.js → AttachmentItem-5671c64d.js} +5 -7
  4. package/dist/BaseDatePicker-a9240306.js +3156 -0
  5. package/dist/{BaseInput-2b048506.js → BaseInput-d3c3688b.js} +4 -4
  6. package/dist/{BaseUpload-869cbd9a.js → BaseUpload-8e7a2b72.js} +3 -3
  7. package/dist/BlockMedia-b613a2a4.js +72 -0
  8. package/dist/CCallout-e9ff903a.js +52 -0
  9. package/dist/CDropdownItem-05d84f95.js +610 -0
  10. package/dist/CField-cd4dcae9.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-383db616.js +83 -0
  13. package/dist/ClientAutocomplete-421a2216.js +80 -0
  14. package/dist/ClientModal-11341b1c.js +547 -0
  15. package/dist/ColorPicker-f90939b5.js +2881 -0
  16. package/dist/{CompanyModal-26243605.js → CompanyModal-2bfd21b8.js} +12 -11
  17. package/dist/{ContentWrapper-315b8ac7.js → ContentWrapper-4aae35b2.js} +21 -14
  18. package/dist/{CoverBlockSettings-ff4d5ccc.js → CoverBlockSettings-1f917be3.js} +7 -7
  19. package/dist/DocForm-0891c6b2.js +6767 -0
  20. package/dist/DocFormSend-2b35999d.js +135 -0
  21. package/dist/{DocModalBase-3d81e120.js → DocModalBase-225e2f2d.js} +1 -1
  22. package/dist/{DocReceipt-c9c5aefc.js → DocReceipt-1391c17a.js} +1 -1
  23. package/dist/{DocSendReminder-ab8e6f0f.js → DocSendReminder-c488842d.js} +1 -1
  24. package/dist/{DocTextEditor-88987249.js → DocTextEditor-2538e1ab.js} +16 -12
  25. package/dist/{DocTimeline-8e8a1b51.js → DocTimeline-69ada0de.js} +11 -11
  26. package/dist/DocumentClient-74b8f25b.js +145 -0
  27. package/dist/{DocumentLogotype-a777ea0d.js → DocumentLogotype-e89b53fb.js} +3 -3
  28. package/dist/{EmbedInput-4b92adae.js → EmbedInput-b7fefe5e.js} +10 -11
  29. package/dist/{EmbedSettings-0701c838.js → EmbedSettings-4957252f.js} +10 -11
  30. package/dist/ErrorCallout-42e45ec0.js +30 -0
  31. package/dist/{FilePreviewModal-fa0f4b2c.js → FilePreviewModal-75693619.js} +6 -7
  32. package/dist/FormInputRow-09d450e3.js +2045 -0
  33. package/dist/{HeaderSettings-3b1f470a.js → HeaderSettings-9b69eada.js} +23 -19
  34. package/dist/{ImageSelectModal-24b1d738.js → ImageSelectModal-94d4dc7f.js} +20 -18
  35. package/dist/{ImageUploadWrapper-f9d3ab48.js → ImageUploadWrapper-a144b042.js} +2 -2
  36. package/dist/{Index-a6d8cb6c.js → Index-00ef9241.js} +10 -10
  37. package/dist/{Index-17041bc1.js → Index-023c3119.js} +6 -7
  38. package/dist/{Index-1df9e104.js → Index-1bafafca.js} +2 -2
  39. package/dist/{Index-e9dcaa48.js → Index-2cb8fa22.js} +73 -118
  40. package/dist/{Index-9797765e.js → Index-304c45be.js} +21 -16
  41. package/dist/{Index-ec4600d0.js → Index-35387450.js} +52 -42
  42. package/dist/Index-37a9183b.js +28 -0
  43. package/dist/{Index-d21e1d0d.js → Index-3dff19dd.js} +7 -7
  44. package/dist/{Index-53f58582.js → Index-3ee2e944.js} +2 -2
  45. package/dist/{Index-41e37657.js → Index-42e26b46.js} +11 -11
  46. package/dist/{Index-36b91cfc.js → Index-4440fe3d.js} +6 -7
  47. package/dist/{Index-36fc26f9.js → Index-4563d3fa.js} +33 -31
  48. package/dist/{Index-9262d0cb.js → Index-53da7be8.js} +3 -3
  49. package/dist/{Index-bfc7f353.js → Index-62936c19.js} +16 -17
  50. package/dist/{Index-9a0239fe.js → Index-693005f0.js} +6 -7
  51. package/dist/{Index-5c0744c1.js → Index-78f13416.js} +6 -7
  52. package/dist/{Index-a01c2862.js → Index-90492f19.js} +5 -6
  53. package/dist/{Index-8bb9f798.js → Index-96f39afc.js} +6 -7
  54. package/dist/{Index-ee9ff714.js → Index-97d1f2f3.js} +8 -8
  55. package/dist/{Index-41e93dd5.js → Index-9a243eb8.js} +2 -2
  56. package/dist/{Index-01f77191.js → Index-9ffe9766.js} +11 -12
  57. package/dist/{Index-be520920.js → Index-a37beb03.js} +1 -1
  58. package/dist/{Index-e5ebcd2f.js → Index-a554b58c.js} +6 -7
  59. package/dist/{Index-aa1323ee.js → Index-a86ea774.js} +8 -9
  60. package/dist/{Index-c070cd5e.js → Index-abb8c6e4.js} +6 -6
  61. package/dist/{Index-74d98d97.js → Index-b7def77a.js} +8 -9
  62. package/dist/{Index-6f5192b8.js → Index-bcc478b3.js} +7 -8
  63. package/dist/{Index-033cd5ed.js → Index-cec7d4f1.js} +22 -15
  64. package/dist/{Index-560f7a0f.js → Index-d68a28da.js} +7 -7
  65. package/dist/{Index-5ba3dd14.js → Index-dbe97658.js} +2 -2
  66. package/dist/{Index-a5b8ec5c.js → Index-ec8d534f.js} +4 -6
  67. package/dist/{Index-013c4412.js → Index-f2b66b79.js} +6 -7
  68. package/dist/{Index-8ad015e2.js → Index-f453850f.js} +6 -7
  69. package/dist/{Index-78391f8b.js → Index-f9b5f03c.js} +27 -20
  70. package/dist/{InputToggleRow-9aa959ff.js → InputToggleRow-68320d9f.js} +1 -1
  71. package/dist/IsPremiumPreStep-0c7032a3.js +1919 -0
  72. package/dist/{MediaWrapper-03b27562.js → MediaWrapper-c50879c2.js} +4 -4
  73. package/dist/{NotBindingText-fb4e9ecb.js → NotBindingText-8f2d9244.js} +2 -2
  74. package/dist/{PackageGroup-821d41fa.js → PackageGroup-2c49e99b.js} +24 -17
  75. package/dist/{PdfTerms-4a29bcc9.js → PdfTerms-94153a5f.js} +6 -7
  76. package/dist/{PdfViewer-374bfe41.js → PdfViewer-701ad40e.js} +2 -2
  77. package/dist/{PlainHtml-65923dd4.js → PlainHtml-04a6d7f9.js} +1 -1
  78. package/dist/PriceHeader-7f92d5a7.js +336 -0
  79. package/dist/SearchApi-ffe5b697.js +148 -0
  80. package/dist/{TermsSettings-4a40aaa2.js → TermsSettings-b1bf19e9.js} +6 -6
  81. package/dist/{ThemeColorRow-72b7a35b.js → ThemeColorRow-913497f6.js} +7 -6
  82. package/dist/{ToggleBinding-00c37a9d.js → ToggleBinding-6518935d.js} +8 -9
  83. package/dist/{UploadModal-761770b9.js → UploadModal-3c399d25.js} +21 -22
  84. package/dist/{VideoPlayerInput-6692fe27.js → VideoPlayerInput-b54845a4.js} +5 -6
  85. package/dist/{VideoPlayerSettings-2b7a8a39.js → VideoPlayerSettings-496e9e79.js} +13 -14
  86. package/dist/{VideoSelectModal-4596e9b4.js → VideoSelectModal-3a566398.js} +10 -10
  87. package/dist/anime.es-e284c852.js +858 -0
  88. package/dist/answerDocumentMixin-0e5e4dbb.js +54 -0
  89. package/dist/color-71c20583.js +15 -0
  90. package/dist/{cssMode-34bf902e.js → cssMode-c0865919.js} +15 -14
  91. package/dist/focusDrawerMixin-298861bc.js +68 -0
  92. package/dist/formComponentsInstall-1be6791d.js +2491 -0
  93. package/dist/formValidationMixin-df38771c.js +4984 -0
  94. package/dist/{freemarker2-61453951.js → freemarker2-85dde97c.js} +19 -18
  95. package/dist/{handlebars-24c80c6f.js → handlebars-6aa1e52b.js} +18 -17
  96. package/dist/{html-fc291ba3.js → html-f0c735cd.js} +14 -13
  97. package/dist/{htmlMode-bb27a86a.js → htmlMode-7b3bd7c9.js} +19 -18
  98. package/dist/{index-afe3eb26.js → index-1ef6f423.js} +21 -15
  99. package/dist/index-30808a2c.js +490 -0
  100. package/dist/{index-053f9545.js → index-431938de.js} +13 -12
  101. package/dist/index-6d08eac3.js +14 -0
  102. package/dist/index-805c56e4.js +4 -0
  103. package/dist/index.es.js +3 -3
  104. package/dist/index.umd.js +713 -600
  105. package/dist/{javascript-584c9812.js → javascript-9c54ad9e.js} +11 -10
  106. package/dist/{jsonMode-f03e810a.js → jsonMode-1d1176fa.js} +19 -18
  107. package/dist/{liquid-2157b417.js → liquid-0738c73d.js} +11 -10
  108. package/dist/{main-e2129a84.js → main-2d9b8259.js} +19557 -20415
  109. package/dist/mapFormMixin-308bbdab.js +66 -0
  110. package/dist/{publicSenderState-11d47322.js → publicSenderState-9eecb11f.js} +1 -1
  111. package/dist/{python-7f1728ff.js → python-588c9e64.js} +11 -10
  112. package/dist/{razor-54008302.js → razor-fbaa1d21.js} +14 -13
  113. package/dist/regions-29ee6964.js +1250 -0
  114. package/dist/simplebar.min-75960401.js +2429 -0
  115. package/dist/style.css +4 -0
  116. package/dist/template-b877debf.js +526 -0
  117. package/dist/throttle-d7bed81a.js +18 -0
  118. package/dist/tinycolor-ef496244.js +634 -0
  119. package/dist/{tsMode-6bcf5f10.js → tsMode-c1de8e10.js} +15 -14
  120. package/dist/{typescript-f225fd6d.js → typescript-737827aa.js} +11 -10
  121. package/dist/{utils-c4dbd526.js → utils-69c41ae9.js} +5 -5
  122. package/dist/vuedraggable.umd-67b8cddf.js +3179 -0
  123. package/dist/{xml-8680011c.js → xml-30e811a1.js} +11 -10
  124. package/package.json +4 -4
  125. package/stats.html +1 -1
  126. package/dist/DocForm-b6cc1bdf.js +0 -22074
  127. package/dist/DocFormSend-1c7e370d.js +0 -113
  128. package/dist/Index-0f345bed.js +0 -29
  129. package/dist/PriceHeader-4fb21725.js +0 -329
  130. package/dist/formComponentsInstall-0d5f842a.js +0 -11121
  131. package/dist/index-3a6d34e0.js +0 -11
  132. package/dist/throttle-7fc52dc7.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-2d9b8259.js";
2
+ import { i as u, S as d } from "./formComponentsInstall-1be6791d.js";
3
+ import "./vuex.esm-4a0fff7c.js";
4
+ import "./simplebar.min-75960401.js";
5
+ import "./mapFormMixin-308bbdab.js";
6
+ import "./BaseDatePicker-a9240306.js";
7
+ import "./ErrorCallout-42e45ec0.js";
8
+ import "./AddClientCallout-746899d9.js";
9
+ import "./ClientAutocomplete-421a2216.js";
10
+ import "./SearchApi-ffe5b697.js";
11
+ import "./CDropdownItem-05d84f95.js";
12
+ import "./ClientModal-11341b1c.js";
13
+ import "./index-805c56e4.js";
14
+ import "./CSlider.vue_vue_type_style_index_0_lang-383db616.js";
15
+ import "./CCallout-e9ff903a.js";
16
+ import "./CField-cd4dcae9.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-e2129a84.js";
1
+ import { n as t } from "./main-2d9b8259.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-e2129a84.js";
1
+ import { g as p, n as u } from "./main-2d9b8259.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-e2129a84.js";
1
+ import { g as m, n as a } from "./main-2d9b8259.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-b6cc1bdf.js";
2
- import { V as Vn, n as ut, H as gs, r as ys, aa as Ha } from "./main-e2129a84.js";
3
- import { f as Uo } from "./formComponentsInstall-0d5f842a.js";
1
+ import { t as qo, F as Pa, s as _a, d as Ko } from "./FormInputRow-09d450e3.js";
2
+ import { V as Vn, n as ut, Y as gs, b as ys, p as za } from "./main-2d9b8259.js";
3
+ import { i as Uo } from "./CDropdownItem-05d84f95.js";
4
+ import "./CSlider.vue_vue_type_style_index_0_lang-383db616.js";
5
+ import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
6
+ import { C as $a } from "./ColorPicker-f90939b5.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-afe3eb26.js")
13955
+ FormInputRow: Pa,
13956
+ TextTemplates: () => import("./index-1ef6f423.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-fa0f4b2c.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
14806
+ const n = () => import("./FilePreviewModal-75693619.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-e2129a84.js";
1
+ import { n as u, Y as b, b as S, Z as _, $ as f } from "./main-2d9b8259.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-2d9b8259.js";
2
+ import { D as u, f as m } from "./formValidationMixin-df38771c.js";
3
+ import { a as l } from "./answerDocumentMixin-0e5e4dbb.js";
4
+ import "./CDropdownItem-05d84f95.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-e2129a84.js";
1
+ import { g as s, n as a } from "./main-2d9b8259.js";
2
2
  import { m as l, a as p } from "./vuex.esm-4a0fff7c.js";
3
- import { a as r } from "./publicSenderState-11d47322.js";
3
+ import { a as r } from "./publicSenderState-9eecb11f.js";
4
4
  const c = {
5
5
  name: "DocumentLogotype",
6
6
  components: {
7
- ImageUploadWrapper: () => import("./ImageUploadWrapper-f9d3ab48.js")
7
+ ImageUploadWrapper: () => import("./ImageUploadWrapper-a144b042.js")
8
8
  },
9
9
  props: {
10
10
  value: {
@@ -1,10 +1,9 @@
1
- import { a as d } from "./formComponentsInstall-0d5f842a.js";
2
- import { r as l, n as o } from "./main-e2129a84.js";
3
- import "./vuex.esm-4a0fff7c.js";
1
+ import { d } from "./CDropdownItem-05d84f95.js";
2
+ import { b as l, n as o } from "./main-2d9b8259.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-4b92adae.js";
2
- import { n as l } from "./main-e2129a84.js";
3
- import "./formComponentsInstall-0d5f842a.js";
4
- import "./vuex.esm-4a0fff7c.js";
1
+ import n from "./EmbedInput-b7fefe5e.js";
2
+ import { n as l } from "./main-2d9b8259.js";
3
+ import "./CDropdownItem-05d84f95.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-2d9b8259.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-e2129a84.js";
2
- import { V as r } from "./PdfViewer-374bfe41.js";
3
- import "./DocForm-b6cc1bdf.js";
4
- import "./vuex.esm-4a0fff7c.js";
5
- import "./formComponentsInstall-0d5f842a.js";
1
+ import { n, S as o } from "./main-2d9b8259.js";
2
+ import { V as r } from "./PdfViewer-701ad40e.js";
3
+ import "./formValidationMixin-df38771c.js";
4
+ import "./CDropdownItem-05d84f95.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
  };