@cling-se/widget 0.15.3 → 0.15.6

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 (134) hide show
  1. package/README.md +43 -43
  2. package/dist/{AddClientCallout-8s5a1_CZ.js → AddClientCallout-BpWCvb7A.js} +15 -13
  3. package/dist/{AnswerModal-Cnp43tGo.js → AnswerModal-0JXov7oA.js} +71 -71
  4. package/dist/{AttachmentItem-BP85gcjP.js → AttachmentItem-C93ndWhI.js} +17 -12
  5. package/dist/{BaseDatePicker-C27CsTzy.js → BaseDatePicker-BaUxrKlN.js} +2 -2
  6. package/dist/{BaseUpload-DnhS3hGx.js → BaseUpload-CACi6tYY.js} +3 -3
  7. package/dist/{BlockMedia-D4nhek2s.js → BlockMedia-Dlv23tgo.js} +2 -2
  8. package/dist/{CCallout-CQjRcxpC.js → CCallout-jnIpJu5U.js} +4 -5
  9. package/dist/{CCurrencyDropdown-BT01qBGg.js → CCurrencyDropdown-BQLDbp9J.js} +4 -4
  10. package/dist/{CDropdownItem-BSPNul90.js → CDropdownItem-CNUf29O4.js} +139 -37
  11. package/dist/{CFormField-Cz_jNazS.js → CFormField-qy_STCgm.js} +3 -4
  12. package/dist/{CPhoneFormat-C017AoM0.js → CPhoneFormat-BZd_xftN.js} +1 -1
  13. package/dist/CPhoneInput-j4Zuah8p.js +138 -0
  14. package/dist/{CPriceInput-jktMjvwx.js → CPriceInput-CXGw4w0R.js} +2 -2
  15. package/dist/CSelect-CSwTYXae.js +91 -0
  16. package/dist/CSkeleton-B5J9cKAm.js +55 -0
  17. package/dist/ClientAutocomplete-CjaUEuHJ.js +438 -0
  18. package/dist/{ClientModal-DLtFhJya.js → ClientModal-Cn40dzh3.js} +77 -42
  19. package/dist/{ColorPicker-MQmVGbvm.js → ColorPicker-wUW8hJ8i.js} +2 -2
  20. package/dist/{CompanyModal-Qx5xMku0.js → CompanyModal-CbcusrDu.js} +25 -19
  21. package/dist/{ContentWrapper-B9NQqp2q.js → ContentWrapper-Bad8dXOX.js} +11 -11
  22. package/dist/CoverBlockSettings-DX390gBU.js +659 -0
  23. package/dist/{DocAnswer-BlxFv_Gc.js → DocAnswer-BESzyKCO.js} +2 -2
  24. package/dist/{DocDetails-dGcYGJpp.js → DocDetails-1rMbwwY3.js} +10 -10
  25. package/dist/{DocForm-C6o_XBcW.js → DocForm-B3IxEK4j.js} +512 -498
  26. package/dist/{DocFormSend-_prtxNIf.js → DocFormSend-sm8Hu8Be.js} +14 -15
  27. package/dist/{DocLinks-Dp495SCS.js → DocLinks-CyXFaNcq.js} +2 -2
  28. package/dist/{DocModalBase-B0wYq3ft.js → DocModalBase-CSh4Lkzq.js} +2 -2
  29. package/dist/{DocPrint-CURxofeU.js → DocPrint-BQ-M-3OC.js} +3 -3
  30. package/dist/{DocReceipt-DgGcBRVH.js → DocReceipt-OoEOv4bh.js} +25 -20
  31. package/dist/{DocSendReminder-CPty4svi.js → DocSendReminder-dQcAFIdw.js} +19 -16
  32. package/dist/{DocTextEditor-BYsXFRLg.js → DocTextEditor-Ckfx6Hj5.js} +13 -15
  33. package/dist/{DocTimeline-CHg1QykR.js → DocTimeline-DDaN8k9R.js} +36 -34
  34. package/dist/{DocumentClient-CZ6N73pQ.js → DocumentClient-DBA3AQQG.js} +5 -5
  35. package/dist/{DocumentLayout-CiszuoQc.js → DocumentLayout-D42e3G51.js} +1503 -1539
  36. package/dist/{DocumentLogotype-BgFCWcwC.js → DocumentLogotype-ngySb8g4.js} +18 -15
  37. package/dist/{DocumentVoided-DT2hhHk2.js → DocumentVoided-Dtj2XpOI.js} +1 -1
  38. package/dist/{EmbedInput-aLmvzK1I.js → EmbedInput-CxqpXi4D.js} +25 -21
  39. package/dist/{EmbedSettings-BZipciy9.js → EmbedSettings-B4ejIQIJ.js} +13 -11
  40. package/dist/{ErrorCallout-CNxSDsr_.js → ErrorCallout-BiCmogrM.js} +6 -6
  41. package/dist/{FilePreviewModal-DxdksQiy.js → FilePreviewModal-CpSfuR9V.js} +3 -3
  42. package/dist/Flag-B9CEVlmX.js +46 -0
  43. package/dist/{HeaderSettings-DeoSRi6O.js → HeaderSettings-CowCzINW.js} +155 -110
  44. package/dist/{ImageSelectModal-DvQz2VPi.js → ImageSelectModal-DdzcxIMp.js} +6 -6
  45. package/dist/{ImageUploadWrapper-CNQRdHF9.js → ImageUploadWrapper-CWCF8Dlc.js} +3 -3
  46. package/dist/{Index-CPjAXBMU.js → Index-07hqDjA-.js} +5 -5
  47. package/dist/{Index-CDKq7Fx6.js → Index-4_K-mW5b.js} +4 -4
  48. package/dist/Index-B4PLiPUX.js +28 -0
  49. package/dist/{Index-CjfCyQlB.js → Index-B4imH9tr.js} +5 -5
  50. package/dist/{Index-CJeSVpRh.js → Index-BGXkhXYw.js} +2 -2
  51. package/dist/{Index-BjdxeF4C.js → Index-BLK2yfMF.js} +2 -2
  52. package/dist/{Index-w5DWfGOc.js → Index-BS2bqI3s.js} +4 -4
  53. package/dist/{Index-CWj2vDHc.js → Index-BXm5pjk3.js} +49 -44
  54. package/dist/{Index-B3Q09phm.js → Index-BY9jJJk1.js} +4 -4
  55. package/dist/{Index-BEpKb8IR.js → Index-BeAySORd.js} +4 -4
  56. package/dist/{Index-BIv8flFB.js → Index-BguXp1xd.js} +9 -9
  57. package/dist/{Index-CTqdaykO.js → Index-CEQgPBnH.js} +18 -12
  58. package/dist/{Index-q04Dwxrr.js → Index-CWRkkwfa.js} +7 -7
  59. package/dist/{Index-3bD76d9q.js → Index-CaRFixxe.js} +7 -7
  60. package/dist/{Index-D-l3i9vY.js → Index-ClP8s9kZ.js} +3 -3
  61. package/dist/{Index-BDCgilFk.js → Index-Cmu_M3TM.js} +2 -2
  62. package/dist/{Index-BglKAnNq.js → Index-Cnyk_-IC.js} +7 -7
  63. package/dist/{Index-CvRNeJ4U.js → Index-CpLsMmCx.js} +124 -123
  64. package/dist/{Index-CXibuEkU.js → Index-D7WQe9WH.js} +15 -15
  65. package/dist/{Index-CTk6Nh-I.js → Index-DAsAy5JF.js} +7 -7
  66. package/dist/{Index-BiVwDgqW.js → Index-DEcCSixa.js} +2 -2
  67. package/dist/{Index-PUFeH_1z.js → Index-DMy3kJ7T.js} +4 -4
  68. package/dist/{Index-Cfc0Q0AG.js → Index-DWC0ggkj.js} +6 -6
  69. package/dist/{Index-B0n1UOOA.js → Index-DZ59IAyR.js} +6 -6
  70. package/dist/{Index-S3LqU0A0.js → Index-DdJbi1AO.js} +12 -10
  71. package/dist/{Index-B9_POjpY.js → Index-Df9ct4wb.js} +23 -21
  72. package/dist/{Index-D1NwTUs-.js → Index-DhrjL3IY.js} +5 -5
  73. package/dist/{Index-FC1UsElU.js → Index-Dm0Fzc6C.js} +7 -7
  74. package/dist/{Index-Ch5j2tqD.js → Index-DqSikIZB.js} +2 -2
  75. package/dist/{Index-BeMeWDIf.js → Index-DtSf7JJt.js} +6 -6
  76. package/dist/{Index-BNJ2KHKc.js → Index-FfBNBm3w.js} +3 -3
  77. package/dist/{Index-jIIHHGh3.js → Index-SN7H4PM1.js} +489 -471
  78. package/dist/{Index-CePHdKi2.js → Index-U_PvsI4Y.js} +5 -5
  79. package/dist/{Index-C-CE21WK.js → Index-sFiPn5zO.js} +5 -5
  80. package/dist/{InputToggleRow-CvHvRdsn.js → InputToggleRow-CRC8ievQ.js} +2 -2
  81. package/dist/{ManualPopover-DxE-6-Sp.js → ManualPopover-15SKAS2F.js} +1 -1
  82. package/dist/{MediaWrapper-DNi80fbw.js → MediaWrapper-CihDdp6P.js} +3 -3
  83. package/dist/{NotBindingText-D2rYFVxr.js → NotBindingText-nUBihSic.js} +2 -2
  84. package/dist/{PackageGroup-6ar8HjPo.js → PackageGroup-Bk0UeRqr.js} +26 -20
  85. package/dist/PdfTerms-Cy2kB_Zo.js +31 -0
  86. package/dist/{PdfViewer-B5qbLLtd.js → PdfViewer-BMcMfsRH.js} +5 -5
  87. package/dist/{PlainHtml-CIMtcn2F.js → PlainHtml-BDvPNe17.js} +1 -1
  88. package/dist/{PriceHeader-BSpj_-5M.js → PriceHeader-DzvUaY9O.js} +15 -15
  89. package/dist/{SearchApi-Cwgf52EV.js → SearchApi-BPJpYWWz.js} +2 -2
  90. package/dist/SendForm-DWVu8jq8.js +1023 -0
  91. package/dist/{Setup-CRmiH9lD.js → Setup-DjxGq4d9.js} +1 -1
  92. package/dist/{SmartList-D6AvxfSL.js → SmartList-Bh10ojB0.js} +1 -1
  93. package/dist/{TermsSettings-DEO1O460.js → TermsSettings-Cg8TYiLL.js} +17 -12
  94. package/dist/{ThemeColorRow-Cy1NKEIG.js → ThemeColorRow-BeNhoFSI.js} +4 -4
  95. package/dist/{ToggleBinding-BvIUt1Jx.js → ToggleBinding-KmMUK5gz.js} +12 -10
  96. package/dist/{UploadModal-C1j-GeMD.js → UploadModal-DTmPPCz3.js} +6 -6
  97. package/dist/{VideoPlayerInput-BmbrquN6.js → VideoPlayerInput-Z5j6JzLW.js} +15 -11
  98. package/dist/{VideoPlayerSettings-B7HpBoWX.js → VideoPlayerSettings-C7GjuMAw.js} +3 -3
  99. package/dist/{VideoSelectModal-CeaG2tME.js → VideoSelectModal-DMIdcoOE.js} +4 -4
  100. package/dist/{answerDocumentMixin-AcDG8Byi.js → answerDocumentMixin-DulmofDA.js} +3 -3
  101. package/dist/{debounce-HJoaSvIY.js → debounce-nohaKn7u.js} +16 -16
  102. package/dist/{focusDrawerMixin-CBYjpEGL.js → focusDrawerMixin-BsYcC4qG.js} +1 -1
  103. package/dist/{formDrawerState-DYSBcjo4.js → formDrawerState-Bpcaq429.js} +1 -1
  104. package/dist/{formValidationMixin-Dqlhg0R2.js → formValidationMixin-DYGNCEbq.js} +1 -1
  105. package/dist/{index-CLOsPxCh.js → index-BUGMJTF2.js} +35 -33
  106. package/dist/{index-CKZmpLr6.js → index-BVOHCIHl.js} +781 -2021
  107. package/dist/{index-CFe1BJZJ.js → index-CtA6LmXt.js} +1 -1
  108. package/dist/{index-zzCfHTf8.js → index-CxitjuY3.js} +2 -2
  109. package/dist/{index-CFx0cpeM.js → index-CySeSzas.js} +1 -1
  110. package/dist/{index-CFwLDxbi.js → index-zBWldKKX.js} +18 -17
  111. package/dist/index.es.js +10 -10
  112. package/dist/index.umd.js +177 -173
  113. package/dist/{main-BIwKzAN8.js → main-CfSVOXu-.js} +12995 -11349
  114. package/dist/{mapFormMixin-e2PJ431T.js → mapFormMixin-BTZaIaQ8.js} +1 -1
  115. package/dist/omit-DIEW6Th9.js +31 -0
  116. package/dist/{publicSenderState-D-_7UwjT.js → publicSenderState-B4TdI-yD.js} +1 -1
  117. package/dist/regions-BdZt9Srn.js +1250 -0
  118. package/dist/simplebar.min-BZ0EEeAp.js +71 -0
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-B2yMLA5N.js → throttle-JENEyCY1.js} +2 -2
  121. package/dist/{tinycolor-vIxz4Xgi.js → tinycolor-79beE8BV.js} +1 -1
  122. package/dist/{tippy.esm-DiOYviyf.js → tippy.esm-CR28gOMM.js} +208 -206
  123. package/dist/{utils-CFXqaEy7.js → utils-CD2k1yv3.js} +1 -1
  124. package/dist/{vuedraggable.umd-DDT8qZBI.js → vuedraggable.umd-IXGjMCUG.js} +1 -1
  125. package/package.json +2 -11
  126. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  127. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  128. package/dist/ClientAutocomplete-B3z6RPXr.js +0 -82
  129. package/dist/CoverBlockSettings-Bcz_W5I3.js +0 -275
  130. package/dist/Flag-3OyFDPsP.js +0 -114
  131. package/dist/Index-Cr6DlYGN.js +0 -21
  132. package/dist/PdfTerms-B-lbU_6H.js +0 -36
  133. package/dist/formComponentsInstall-DMoWrprH.js +0 -2505
  134. package/dist/omit-CpamclWf.js +0 -31
@@ -1,4 +1,4 @@
1
- import { o as d, c as m } from "./main-BIwKzAN8.js";
1
+ import { q as d, c as m } from "./main-CfSVOXu-.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,4 +1,4 @@
1
- import { a8 as nn, a9 as rn, k as on } from "./main-BIwKzAN8.js";
1
+ import { ac as nn, ad as rn, l as on } from "./main-CfSVOXu-.js";
2
2
  var We = { exports: {} };
3
3
  /**!
4
4
  * Sortable 1.10.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.15.3",
3
+ "version": "0.15.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -17,30 +17,21 @@
17
17
  "dependencies": {
18
18
  "@cling-se/v-tooltip-root-node": "^0.1.3",
19
19
  "@tiptap/core": "^2.0.0-beta.199",
20
+ "@vueuse/components": "^10.11.0",
20
21
  "axios": "1.6.2",
21
22
  "date-fns": "2.14.0",
22
23
  "deepmerge": "4.2.2",
23
- "dinero.js": "1.9.1",
24
- "i18next": "19.4.4",
25
- "i18next-browser-languagedetector": "4.2.0",
26
- "json-logic-js": "2.0.2",
27
- "liquidjs": "10.9.4",
28
24
  "lodash": "4.17.21",
29
- "normalizr": "3.6.2",
30
25
  "portal-vue": "^2.1.7",
31
26
  "simplebar": "5.2.0",
32
27
  "simplebar-vue": "1.5.0",
33
- "tinycolor2": "^1.4.1",
34
28
  "uniqid": "5.4.0",
35
- "velocity-animate": "1.5.2",
36
29
  "vue": "^2.7.8",
37
30
  "vue-js-modal": "2.0.0-rc.3",
38
31
  "vue-router": "3.0.1",
39
- "vue-smooth-reflow": "0.1.12",
40
32
  "vuelidate": "0.7.5",
41
33
  "vuelidate-error-extractor": "2.4.1",
42
34
  "vuex": "3.4.0",
43
- "vuex-map-fields": "1.4.1",
44
35
  "vuex-router-sync": "5.0.0"
45
36
  },
46
37
  "devDependencies": {
@@ -1,82 +0,0 @@
1
- import { S as o } from "./SearchApi-Cwgf52EV.js";
2
- import { n as c, y as l } from "./main-BIwKzAN8.js";
3
- const i = {
4
- i18nOptions: {
5
- namespaces: "components",
6
- keyPrefix: "account.documentForm.clients"
7
- },
8
- name: "ClientAutocomplete",
9
- components: {
10
- SearchApi: o
11
- },
12
- props: {
13
- searchEnabled: {
14
- type: Boolean,
15
- default: !0
16
- },
17
- showLoading: {
18
- type: Boolean,
19
- default: !1
20
- },
21
- showEmpty: {
22
- type: Boolean,
23
- default: !1
24
- },
25
- filled: {
26
- type: Boolean,
27
- default: !1
28
- }
29
- },
30
- data() {
31
- return {
32
- convertToNewClient: l,
33
- results: [],
34
- // results when searching for existing endCustomer
35
- searchQuery: ""
36
- // query used to search for endCustomers
37
- };
38
- },
39
- methods: {
40
- search(s, e) {
41
- this.$emit("input", e), this.searchEnabled && (this.searchQuery = e, s({
42
- q: e,
43
- cb: ({ endCustomer: r }) => {
44
- this.results = r;
45
- }
46
- }));
47
- }
48
- }
49
- };
50
- var u = function() {
51
- var e = this, r = e._self._c;
52
- return r("SearchApi", { attrs: { "custom-search": { endCustomer: !0 } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: n, isLoading: a }) {
53
- return [r("CAutocomplete", e._b({ attrs: { data: e.results, loading: e.showLoading && a, filled: e.filled, expanded: "", "keep-first": "" }, on: { typing: function(t) {
54
- return e.search(n, t);
55
- }, select: function(t) {
56
- e.$emit("setClient", e.convertToNewClient(t));
57
- } }, scopedSlots: e._u([{ key: "default", fn: function({ option: t }) {
58
- return [r("div", { staticStyle: { "line-height": "1.5" } }, [r("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(t.name || t.email))]), r("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(t.reference ? `${t.reference} · ` : "") + " " + e._s(t.workStreet || t.street || " ") + " ")])])];
59
- } }, { key: "footer", fn: function() {
60
- return [e.searchEnabled && e.showEmpty ? r("div", [e.searchQuery && !e.results.length ? r("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(t) {
61
- return e.$emit("add");
62
- } } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")]) : e._e()], 1) : e._e()];
63
- }, proxy: !0 }, { key: "empty", fn: function() {
64
- return [e.searchEnabled && e.showEmpty ? r("div", [e._v(" " + e._s(e.$t("search.empty")) + " " + e._s(e.searchQuery) + " ")]) : e._e()];
65
- }, proxy: !0 }], null, !0) }, "CAutocomplete", {
66
- placeholder: e.$t("search.placeholder"),
67
- ...e.$attrs,
68
- ...e.$props
69
- }, !1))];
70
- } }]) });
71
- }, f = [], d = /* @__PURE__ */ c(
72
- i,
73
- u,
74
- f,
75
- !1,
76
- null,
77
- "84b5a2c0"
78
- );
79
- const h = d.exports;
80
- export {
81
- h as C
82
- };
@@ -1,275 +0,0 @@
1
- import { m as d } from "./mapFormMixin-e2PJ431T.js";
2
- import { T as l } from "./ThemeColorRow-Cy1NKEIG.js";
3
- import { n as s, Q as p, J as u } from "./main-BIwKzAN8.js";
4
- const m = (i, e, t, o) => Math.atan2(i - t, e - o) * (180 / Math.PI) * -1 + 180, v = {
5
- name: "DegreePicker",
6
- props: {
7
- value: {
8
- type: Number,
9
- required: !0
10
- }
11
- },
12
- computed: {
13
- degreesStyle() {
14
- return { transform: `rotate(${this.value}deg)` };
15
- }
16
- },
17
- methods: {
18
- onButtonDown(i) {
19
- let e = this.mouseDownHandler(i);
20
- const t = (o) => {
21
- e = this.mouseMoveHandler(o, e) || e;
22
- };
23
- window.addEventListener("mousemove", t), window.addEventListener(
24
- "mouseup",
25
- () => {
26
- window.removeEventListener("mousemove", t);
27
- },
28
- { once: !0 }
29
- );
30
- },
31
- mouseMoveHandler(i, { centerX: e, centerY: t }) {
32
- const o = m(
33
- i.clientX,
34
- i.clientY,
35
- e,
36
- t
37
- );
38
- this.$emit("input", parseInt(o, 10));
39
- },
40
- mouseDownHandler(i) {
41
- const t = i.target.getBoundingClientRect(), o = t.top + parseInt(8 - window.pageYOffset, 10), r = t.left + parseInt(8 - window.pageXOffset, 10);
42
- return { centerY: o, centerX: r };
43
- }
44
- }
45
- };
46
- var g = function() {
47
- var e = this, t = e._self._c;
48
- return t("div", { staticClass: "gradient-degrees-options" }, [t("div", { staticStyle: { "pointer-events": "none", "user-select": "none", "padding-right": "0.5em", opacity: "0.75" } }, [t("div", [e._v(e._s(e.value) + "°")])]), t("div", { staticClass: "gradient-degrees", on: { mousedown: e.onButtonDown } }, [t("div", { staticClass: "gradient-degree-center", style: e.degreesStyle }, [t("div", { staticClass: "gradient-degree-pointer" })])])]);
49
- }, _ = [], f = /* @__PURE__ */ s(
50
- v,
51
- g,
52
- _,
53
- !1,
54
- null,
55
- "0c48c700"
56
- );
57
- const y = f.exports, h = {
58
- name: "GradientPicker",
59
- i18nOptions: {
60
- namespaces: "gradientPicker",
61
- messages: {
62
- en: {
63
- startColor: "Start color",
64
- stopColor: "Stop color",
65
- rotation: "Rotation"
66
- },
67
- sv: {
68
- startColor: "Startfärg",
69
- stopColor: "Stoppfärg",
70
- rotation: "Rotation"
71
- }
72
- }
73
- },
74
- components: {
75
- ThemeColorRow: l,
76
- DegreePicker: y
77
- },
78
- props: {
79
- value: {
80
- type: Object,
81
- required: !0
82
- }
83
- },
84
- data() {
85
- return {
86
- set: p,
87
- defaultValue: {
88
- type: "linear",
89
- degree: 0,
90
- colors: [
91
- { percent: 0, color: "#000000" },
92
- { percent: 100, color: "#0095FF" }
93
- ]
94
- }
95
- };
96
- },
97
- computed: {
98
- internalValue: {
99
- get() {
100
- return { ...this.defaultValue, ...this.value };
101
- },
102
- set(i) {
103
- this.$emit("input", i);
104
- }
105
- }
106
- },
107
- methods: {
108
- updateData(i, e) {
109
- let t = e;
110
- if (i === "colors") {
111
- const { i: o, color: r, percent: a } = e || {};
112
- t = this.internalValue.colors.map(
113
- (n, c) => c === o ? { color: r, percent: a } : n
114
- );
115
- }
116
- this.internalValue = { ...this.internalValue, [i]: t };
117
- }
118
- }
119
- };
120
- var C = function() {
121
- var e = this, t = e._self._c;
122
- return t("div", [t("ThemeColorRow", { staticClass: "d-option-title d-option", attrs: { value: e.internalValue.colors[0].color }, on: { change: function(o) {
123
- return e.updateData("colors", { i: 0, percent: 0, color: o });
124
- } } }, [e._v(" " + e._s(e.$t("startColor")) + " ")]), t("ThemeColorRow", { staticClass: "d-option-title d-option", attrs: { value: e.internalValue.colors[1].color }, on: { change: function(o) {
125
- return e.updateData("colors", { i: 1, percent: 100, color: o });
126
- } } }, [e._v(" " + e._s(e.$t("stopColor")) + " ")]), t("div", { staticClass: "d-option flex w-full items-center" }, [t("div", { staticClass: "d-option-title", staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("rotation")) + " ")]), t("DegreePicker", { staticStyle: { "padding-right": "4px" }, attrs: { value: e.internalValue.degree }, on: { input: function(o) {
127
- return e.updateData("degree", o);
128
- } } })], 1)], 1);
129
- }, b = [], w = /* @__PURE__ */ s(
130
- h,
131
- C,
132
- b,
133
- !1,
134
- null,
135
- "e22a6b42"
136
- );
137
- const $ = w.exports, x = {
138
- image: () => import("./ImageSelectModal-DvQz2VPi.js"),
139
- video: () => import("./VideoSelectModal-CeaG2tME.js")
140
- }, S = {
141
- name: "CoverBlockSettings",
142
- i18nOptions: {
143
- namespaces: "coverBlockSettings",
144
- messages: {
145
- en: {
146
- colorLabel: "Color",
147
- overlay: {
148
- title: "Overlay",
149
- colorLabel: "Color",
150
- opacityLabel: "Opacity"
151
- }
152
- },
153
- sv: {
154
- colorLabel: "Färg",
155
- overlay: {
156
- title: "Överlägg",
157
- colorLabel: "Färg",
158
- opacityLabel: "Opacitet"
159
- }
160
- }
161
- }
162
- },
163
- components: {
164
- ThemeColorRow: l,
165
- GradientPicker: $
166
- },
167
- mixins: [
168
- d(
169
- [
170
- "type",
171
- "video",
172
- "resourceUrl",
173
- "filter",
174
- "blur",
175
- "position",
176
- "overlay",
177
- "overlayColor",
178
- "gradient",
179
- "backgroundColor"
180
- ],
181
- { useEmit: !1 }
182
- )
183
- ],
184
- data() {
185
- return {
186
- getUnsplashResized: u
187
- };
188
- },
189
- methods: {
190
- toggleOverlay(i) {
191
- i && !this.overlayColor ? (this.overlayColor = "hsla(205, 100%, 50%, 0.5)", this.overlay = !0) : this.overlay = i;
192
- },
193
- setType(i) {
194
- i === "color" && !this.backgroundColor ? this.backgroundColor = "hsl(134, 74%, 39%)" : i === "video" && !this.video ? this.video = {
195
- provider: "pexels",
196
- id: "3214448",
197
- thumbnail: "https://images.pexels.com/videos/3214448/free-video-3214448.jpg?fit=crop&w=1200&h=630&auto=compress&cs=tinysrgb",
198
- url: "https://player.vimeo.com/external/372567192.hd.mp4?s=c186273e04cc5015efecd863d8256eb99bc034fd&profile_id=172&oauth2_token_id=57447761"
199
- } : i === "image" ? (this.resourceUrl || (this.resourceUrl = "https://images.unsplash.com/photo-1520013817300-1f4c1cb245ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1987&q=80"), this.position || (this.position = 50)) : i === "gradient" && !this.gradient && (this.gradient = {
200
- type: "linear",
201
- degree: 45,
202
- colors: [
203
- { color: "hsla(324.71,100%,50%,1)", percent: 0 },
204
- { color: "hsla(209.41,85.18%,40.65%,1)", percent: 100 }
205
- ]
206
- }), this.type = i;
207
- },
208
- openResourceModal(i) {
209
- this.$modal.show(
210
- x[i],
211
- {},
212
- {},
213
- {
214
- input: (e) => {
215
- i === "image" ? this.resourceUrl = e : i === "video" && (this.video = e);
216
- }
217
- }
218
- );
219
- }
220
- }
221
- };
222
- var k = function() {
223
- var e = this, t = e._self._c;
224
- return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option", staticStyle: { "border-bottom": "none" } }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.$t("_common:background").capitalize()) + " ")]), t("div", { staticClass: "flex w-full", staticStyle: { "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
225
- { label: e.$t("_common:image"), value: "image" },
226
- { label: e.$t("_common:color"), value: "color" },
227
- { label: e.$t("_common:gradient"), value: "gradient" },
228
- { label: e.$t("_common:video"), value: "video" }
229
- ], function({ label: o, value: r }, a) {
230
- return t("CButton", { key: o + a, staticStyle: { margin: "0 3px 3px 0", padding: "0 0.5em", height: "2em", "font-size": "15px", "border-radius": "4px" }, attrs: { type: e.type === r ? "secondary" : "none", pattern: e.type === r ? "primary" : "secondary", size: "normal" }, on: { click: function(n) {
231
- return e.setType(r);
232
- } } }, [e._v(" " + e._s(o.capitalize()) + " ")]);
233
- }), 1)]), e.type === "image" ? [t("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${e.resourceUrl})` }, on: { click: function(o) {
234
- return e.openResourceModal(e.type);
235
- } } }), e.resourceUrl ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(" " + e._s(e.$t("_common:filter").capitalize()) + " ")]), t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "0.25em" } }, e._l([
236
- "",
237
- "sepia(30%) brightness(110%) contrast(110%) grayscale(100%)",
238
- "brightness(110%) contrast(90%) saturate(150%)",
239
- "sepia(50%) contrast(140%)",
240
- "sepia(25%) brightness(95%) contrast(95%) saturate(150%)",
241
- "blur(0px) sepia(15%) saturate(130%) hue-rotate(-30deg)"
242
- ], function(o, r) {
243
- return t("div", { key: r, staticClass: "bg-filter", class: { "is-active": e.filter === o }, on: { click: function(a) {
244
- e.filter = o;
245
- } } }, [t("div", { staticClass: "bg-filter-preview", style: {
246
- filter: o,
247
- backgroundImage: `url(${e.getUnsplashResized(e.resourceUrl, {
248
- w: 200
249
- })})`
250
- } })]);
251
- }), 0)]) : e._e(), t("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("_common:position").capitalize()) + " ")]), t("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: e.position || 0, type: "secondary", size: "small", rounded: "" }, on: { input: function(o) {
252
- e.position = o;
253
- } } })], 1)])] : e._e(), e.type === "video" ? [t("div", { staticClass: "d-option-button-image", style: { backgroundImage: `url(${e.video.thumbnail})` }, on: { click: function(o) {
254
- return e.openResourceModal(e.type);
255
- } } })] : e.type === "color" ? t("div", { staticClass: "d-option" }, [t("ThemeColorRow", { staticClass: "d-option-title", attrs: { value: e.backgroundColor || "" }, on: { change: function(o) {
256
- e.backgroundColor = o;
257
- } } }, [e._v(" " + e._s(e.$t("colorLabel")) + " ")])], 1) : e.type === "gradient" ? t("GradientPicker", { attrs: { value: e.gradient || {} }, on: { input: function(o) {
258
- e.gradient = o;
259
- } } }) : e._e(), ["image", "video"].includes(e.type) ? t("div", { staticClass: "d-option", staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("_common:blur").capitalize()) + " ")]), t("CSlider", { staticStyle: { width: "80px", margin: "0" }, attrs: { value: e.blur || 0, max: 30, type: "secondary", size: "small", rounded: "" }, on: { input: function(o) {
260
- e.blur = o;
261
- } } })], 1)]) : e._e(), ["image", "video"].includes(e.type) ? t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(e._s(e.$t("overlay.title")))]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.overlay, size: "small", type: "secondary" }, on: { input: e.toggleOverlay } })], 1), e.overlay ? t("div", { staticClass: "d-option-row", staticStyle: { "padding-top": "1em" } }, [t("ThemeColorRow", { attrs: { value: e.overlayColor || "", placement: "top-end" }, on: { change: function(o) {
262
- e.overlayColor = o;
263
- } } }, [e._v(" " + e._s(e.$t("overlay.colorLabel")) + " ")])], 1) : e._e()]) : e._e()], 2);
264
- }, R = [], D = /* @__PURE__ */ s(
265
- S,
266
- k,
267
- R,
268
- !1,
269
- null,
270
- "30a9943d"
271
- );
272
- const B = D.exports;
273
- export {
274
- B as default
275
- };
@@ -1,114 +0,0 @@
1
- import { W as c, n as _ } from "./main-BIwKzAN8.js";
2
- var m = {
3
- name: "simplebar-vue",
4
- mounted: function() {
5
- var e = c.getOptions(this.$refs.element.attributes);
6
- this.SimpleBar = new c(this.$refs.element, e);
7
- },
8
- computed: {
9
- scrollElement: function() {
10
- return this.$refs.scrollElement;
11
- },
12
- contentElement: function() {
13
- return this.$refs.contentElement;
14
- }
15
- }
16
- }, d = m, o = function() {
17
- var e = this, s = e.$createElement, r = e._self._c || s;
18
- return r("div", {
19
- ref: "element"
20
- }, [r("div", {
21
- staticClass: "simplebar-wrapper"
22
- }, [e._m(0), e._v(" "), r("div", {
23
- staticClass: "simplebar-mask"
24
- }, [r("div", {
25
- staticClass: "simplebar-offset"
26
- }, [r("div", e._g({
27
- ref: "scrollElement",
28
- staticClass: "simplebar-content-wrapper"
29
- }, Object.assign({}, e.$listeners.scroll && {
30
- scroll: e.$listeners.scroll
31
- })), [r("div", {
32
- ref: "contentElement",
33
- staticClass: "simplebar-content"
34
- }, [e._t("default")], 2)])])]), e._v(" "), r("div", {
35
- staticClass: "simplebar-placeholder"
36
- })]), e._v(" "), e._m(1), e._v(" "), e._m(2)]);
37
- }, v = [function() {
38
- var t = this, e = t.$createElement, s = t._self._c || e;
39
- return s("div", {
40
- staticClass: "simplebar-height-auto-observer-wrapper"
41
- }, [s("div", {
42
- staticClass: "simplebar-height-auto-observer"
43
- })]);
44
- }, function() {
45
- var t = this, e = t.$createElement, s = t._self._c || e;
46
- return s("div", {
47
- staticClass: "simplebar-track simplebar-horizontal"
48
- }, [s("div", {
49
- staticClass: "simplebar-scrollbar"
50
- })]);
51
- }, function() {
52
- var t = this, e = t.$createElement, s = t._self._c || e;
53
- return s("div", {
54
- staticClass: "simplebar-track simplebar-vertical"
55
- }, [s("div", {
56
- staticClass: "simplebar-scrollbar"
57
- })]);
58
- }];
59
- o._withStripped = !0;
60
- var p = void 0, u = void 0;
61
- function f(t, e, s, r, n, i, l, S) {
62
- var a = (typeof s == "function" ? s.options : s) || {};
63
- return a.__file = "/Users/adriendenat/Sites/simplebar/packages/simplebar-vue/index.vue", a.render || (a.render = t.render, a.staticRenderFns = t.staticRenderFns, a._compiled = !0), a._scopeId = r, a;
64
- }
65
- var $ = f({
66
- render: o,
67
- staticRenderFns: v
68
- }, p, d, u);
69
- const h = {
70
- name: "FlagIcon",
71
- props: {
72
- region: {
73
- type: String,
74
- default: null
75
- },
76
- title: {
77
- type: String,
78
- default: null
79
- },
80
- isSquared: {
81
- type: Boolean,
82
- default: !1
83
- }
84
- },
85
- mounted() {
86
- var i, l;
87
- const t = "FLAG_ICONS", e = (l = (i = this.$el).getRootNode) == null ? void 0 : l.call(i), r = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
88
- if (r.querySelector(`#${t}`))
89
- return;
90
- const n = document.createElement("link");
91
- n.id = t, n.rel = "stylesheet", n.type = "text/css", n.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", n.media = "all", r.appendChild(n);
92
- }
93
- };
94
- var b = function() {
95
- var e = this, s = e._self._c;
96
- return e.region ? s("span", { staticClass: "fi", class: [
97
- `fi-${e.region.toLowerCase()}`,
98
- {
99
- fis: e.isSquared
100
- }
101
- ], attrs: { title: e.title || e.region } }) : e._e();
102
- }, g = [], C = /* @__PURE__ */ _(
103
- h,
104
- b,
105
- g,
106
- !1,
107
- null,
108
- null
109
- );
110
- const w = C.exports;
111
- export {
112
- w as F,
113
- $ as s
114
- };
@@ -1,21 +0,0 @@
1
- import { P as n } from "./PlainHtml-CIMtcn2F.js";
2
- import { n as e } from "./main-BIwKzAN8.js";
3
- const o = {
4
- name: "WorkAddressTextRead",
5
- functional: !0,
6
- render(s, r) {
7
- return s(n, [r.props.street ? `${r.props.street}, ` : "", r.props.zip ? `${r.props.zip} ` : " ", r.props.city]);
8
- }
9
- }, p = null, t = null;
10
- var l = /* @__PURE__ */ e(
11
- o,
12
- p,
13
- t,
14
- !1,
15
- null,
16
- null
17
- );
18
- const m = l.exports;
19
- export {
20
- m as default
21
- };
@@ -1,36 +0,0 @@
1
- import { V as s } from "./PdfViewer-B5qbLLtd.js";
2
- import { n as t } from "./main-BIwKzAN8.js";
3
- const n = {
4
- name: "PdfTerms",
5
- functional: !0,
6
- render(r, e) {
7
- return e.props.text ? r("div", {
8
- class: "root"
9
- }, [r("div", {
10
- class: "root-title page-break"
11
- }, [e.parent.$t("_common:terms.general")]), r("div", {
12
- class: "term-text quill-format",
13
- domProps: {
14
- innerHTML: e.props.text
15
- }
16
- })]) : e.props.file ? r("div", [r(s, {
17
- attrs: {
18
- src: e.props.file.url,
19
- docFilePath: "data.terms.file.url"
20
- },
21
- class: "pdf-container"
22
- })]) : r("div");
23
- }
24
- }, o = null, a = null;
25
- var l = /* @__PURE__ */ t(
26
- n,
27
- o,
28
- a,
29
- !1,
30
- null,
31
- "d1cc4fe9"
32
- );
33
- const m = l.exports;
34
- export {
35
- m as default
36
- };