@cling-se/widget 0.17.3 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/AddClientCallout-CCt78VvH.js +101 -0
  3. package/dist/AnswerModal-B4LwVv2N.js +3371 -0
  4. package/dist/AttachmentItem-DnvYffKP.js +171 -0
  5. package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
  6. package/dist/BlockMedia-Amo_kdHo.js +103 -0
  7. package/dist/CCallout-Gd06ds6O.js +104 -0
  8. package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
  9. package/dist/CDropdownItem-BUNVCpSR.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
  11. package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
  12. package/dist/CPhoneInput-B6iyhsOG.js +207 -0
  13. package/dist/CPriceInput-BLQaNu1d.js +142 -0
  14. package/dist/CSelect-BVO9iO9L.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
  16. package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
  17. package/dist/ClientModal-B9cbuEiC.js +1188 -0
  18. package/dist/ColorPicker-G2kkxL7_.js +1408 -0
  19. package/dist/CompanyModal-por9AG4P.js +250 -0
  20. package/dist/ContentWrapper-CQtaGA2u.js +265 -0
  21. package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
  22. package/dist/DocAnswer-BrKctwrY.js +33 -0
  23. package/dist/DocDetails-B_LWVHGt.js +452 -0
  24. package/dist/DocForm-D6T7NmfO.js +6772 -0
  25. package/dist/DocFormSend-COYPrhl7.js +171 -0
  26. package/dist/DocLinks-B0LjxXIk.js +36 -0
  27. package/dist/DocModalBase-DObZHuYr.js +29 -0
  28. package/dist/DocPrint-CkDq78fB.js +399 -0
  29. package/dist/DocReceipt-CYBPyePC.js +341 -0
  30. package/dist/DocSendReminder-Dau6s43e.js +181 -0
  31. package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
  32. package/dist/DocTimeline-ChBDPOfd.js +537 -0
  33. package/dist/DocumentClient-MLXzzXLb.js +90 -0
  34. package/dist/DocumentLayout-BMHOt380.js +1434 -0
  35. package/dist/DocumentLogotype-Clj3fopX.js +162 -0
  36. package/dist/DocumentVoided-B5_MSBbC.js +33 -0
  37. package/dist/EmbedInput-CzkOa02p.js +156 -0
  38. package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
  39. package/dist/ErrorCallout-CJn6NCse.js +34 -0
  40. package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
  41. package/dist/Flag-C4_G5IY1.js +41 -0
  42. package/dist/HeaderSettings-DWN0TjVD.js +720 -0
  43. package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
  44. package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
  45. package/dist/Index-B06eCuBA.js +76 -0
  46. package/dist/Index-B8Zj0-MX.js +87 -0
  47. package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
  48. package/dist/Index-BCHLxp7B.js +21 -0
  49. package/dist/Index-BDAp1CwZ.js +363 -0
  50. package/dist/Index-BFbcjFo4.js +16 -0
  51. package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
  52. package/dist/Index-BOx_9tTM.js +136 -0
  53. package/dist/Index-BgZNiD7A.js +47 -0
  54. package/dist/Index-Bt97lEsI.js +228 -0
  55. package/dist/Index-C9aBeBBk.js +70 -0
  56. package/dist/Index-CE3pWPzp.js +49 -0
  57. package/dist/Index-CMdPSsp4.js +38 -0
  58. package/dist/Index-CNhBDG2e.js +126 -0
  59. package/dist/Index-CdsOdgG2.js +28 -0
  60. package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
  61. package/dist/Index-CpxzwwQS.js +52 -0
  62. package/dist/Index-CxTwWRD9.js +93 -0
  63. package/dist/Index-D9WFWlE6.js +140 -0
  64. package/dist/Index-D9bulLeI.js +39 -0
  65. package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
  66. package/dist/Index-DR-sGE3Y.js +25 -0
  67. package/dist/Index-DRoOW5Pn.js +163 -0
  68. package/dist/Index-DTn47-hP.js +74 -0
  69. package/dist/Index-DeGDlj0B.js +68 -0
  70. package/dist/Index-DhYYK4bK.js +28 -0
  71. package/dist/Index-Dssdb-0Z.js +629 -0
  72. package/dist/Index-OcBnU480.js +200 -0
  73. package/dist/Index-Qh_8JqAv.js +3477 -0
  74. package/dist/Index-W10PQb8i.js +102 -0
  75. package/dist/Index-lbWFEELM.js +4 -0
  76. package/dist/Index-qFAg7VVU.js +1098 -0
  77. package/dist/Index-rDndJKo1.js +160 -0
  78. package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
  79. package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
  80. package/dist/InputToggleRow-DJarYsVL.js +99 -0
  81. package/dist/ManualPopover-BMrkEHtV.js +65 -0
  82. package/dist/MediaWrapper-BYdVpmov.js +18 -0
  83. package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
  84. package/dist/PackageGroup-q7_oBOqw.js +1060 -0
  85. package/dist/PdfTerms-DBEClYQ5.js +34 -0
  86. package/dist/PdfViewer-C_y5sqXB.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
  88. package/dist/PriceHeader-BSwv3mzc.js +488 -0
  89. package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
  90. package/dist/SendForm-DfmBbhp9.js +6689 -0
  91. package/dist/Setup-BC1feKr_.js +47 -0
  92. package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
  94. package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
  95. package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
  96. package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
  97. package/dist/UploadModal-1OWPRxA5.js +134 -0
  98. package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
  99. package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
  100. package/dist/VideoSelectModal-CSv67eA8.js +217 -0
  101. package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
  102. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  103. package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
  104. package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
  105. package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
  106. package/dist/helpers-ChwW54Ex.js +46 -0
  107. package/dist/index-BMZle8Ew.js +513 -0
  108. package/dist/index-Bf-fiKJf.js +268 -0
  109. package/dist/index-Bg4JRi5S.js +125 -0
  110. package/dist/index-C7chK2UD.js +3525 -0
  111. package/dist/index-CR52qIBO.js +149 -0
  112. package/dist/index-D1x9O_nJ.js +188 -0
  113. package/dist/index-YFcPqc9m.js +508 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-DI0diChK.js +57570 -0
  117. package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
  118. package/dist/omit-DpjD7Dj9.js +56 -0
  119. package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
  120. package/dist/splitpanes-BypKTSRL.js +342 -0
  121. package/dist/template-Dzexob5I.js +1572 -0
  122. package/dist/tippy.esm-0UMN6kWf.js +1994 -0
  123. package/dist/useTermsModal-DzH_PDFP.js +87 -0
  124. package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
  125. package/dist/validation-B-omH73u.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-Br6IhwGH.js +0 -48
  129. package/dist/AnswerModal-CsWltR6j.js +0 -3879
  130. package/dist/AttachmentItem-BG7FuSCD.js +0 -85
  131. package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
  132. package/dist/BaseUpload-BfEurAAV.js +0 -1977
  133. package/dist/BlockMedia-Bo3OfNSU.js +0 -76
  134. package/dist/CCallout-CAjM8-1X.js +0 -58
  135. package/dist/CDropdownItem-CN7gSfgY.js +0 -640
  136. package/dist/CFormField-Clvcf2Jh.js +0 -240
  137. package/dist/CPhoneInput-CEHXh5jM.js +0 -138
  138. package/dist/CPriceInput-D2c07SXp.js +0 -116
  139. package/dist/CSelect-Cz2IPzxS.js +0 -91
  140. package/dist/CSkeleton-AsnvnD-m.js +0 -55
  141. package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
  142. package/dist/ClientModal-CgUhWZ5L.js +0 -666
  143. package/dist/ColorPicker-IFGHqH-u.js +0 -2879
  144. package/dist/CompanyModal-TLSBFo3U.js +0 -147
  145. package/dist/ContentWrapper-HClxKPuT.js +0 -190
  146. package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
  147. package/dist/DocAnswer-CTV_Bpt7.js +0 -36
  148. package/dist/DocDetails-CQe5htXj.js +0 -263
  149. package/dist/DocForm-6Efv5_oz.js +0 -5017
  150. package/dist/DocFormSend-DbXcklxU.js +0 -146
  151. package/dist/DocLinks-BO545zbL.js +0 -38
  152. package/dist/DocModalBase-DXHNJ-6i.js +0 -28
  153. package/dist/DocPrint-Bf2U4FQN.js +0 -240
  154. package/dist/DocReceipt-CWXvC7bY.js +0 -217
  155. package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
  156. package/dist/DocTimeline-DGVOk8-2.js +0 -485
  157. package/dist/DocumentClient-Das9BaJ7.js +0 -136
  158. package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
  159. package/dist/DocumentLogotype-DLncJJAB.js +0 -92
  160. package/dist/DocumentVoided-CcI9lX27.js +0 -25
  161. package/dist/EmbedInput-BPdy0lGS.js +0 -117
  162. package/dist/EmbedSettings-L2iwYLQK.js +0 -74
  163. package/dist/ErrorCallout-Ds_tBT02.js +0 -27
  164. package/dist/FilePreviewModal-hxUu330p.js +0 -81
  165. package/dist/Flag-1-HcT5Dz.js +0 -46
  166. package/dist/HeaderSettings-C27fMugK.js +0 -440
  167. package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
  168. package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
  169. package/dist/Index-5BOWxcPG.js +0 -26
  170. package/dist/Index-B1Odktov.js +0 -754
  171. package/dist/Index-B3d5BjEn.js +0 -25
  172. package/dist/Index-B3sSU_4X.js +0 -54
  173. package/dist/Index-B5Dqsh3K.js +0 -150
  174. package/dist/Index-B6aO1c_w.js +0 -62
  175. package/dist/Index-BGfICxJQ.js +0 -643
  176. package/dist/Index-BHopC0hv.js +0 -24
  177. package/dist/Index-BJXcSmp_.js +0 -55
  178. package/dist/Index-BQe6QjQZ.js +0 -25
  179. package/dist/Index-BmXx_x6t.js +0 -77
  180. package/dist/Index-C692qMTG.js +0 -294
  181. package/dist/Index-CEvbw-3i.js +0 -41
  182. package/dist/Index-CYSULnpn.js +0 -32
  183. package/dist/Index-CdtYzwAM.js +0 -107
  184. package/dist/Index-CetF2FW0.js +0 -230
  185. package/dist/Index-Cv6XLM20.js +0 -73
  186. package/dist/Index-Cwy8ff76.js +0 -154
  187. package/dist/Index-D34z4UEY.js +0 -84
  188. package/dist/Index-DNCei-lp.js +0 -56
  189. package/dist/Index-DUbxgIYB.js +0 -2445
  190. package/dist/Index-DVwn_LLf.js +0 -28
  191. package/dist/Index-Dla-mesV.js +0 -146
  192. package/dist/Index-KtUkOPI2.js +0 -58
  193. package/dist/Index-LjnOTVJk.js +0 -66
  194. package/dist/Index-ky1SRtfY.js +0 -94
  195. package/dist/Index-mceZW2NX.js +0 -41
  196. package/dist/Index-tD3hZjh8.js +0 -144
  197. package/dist/Index-vM5kDtC2.js +0 -33
  198. package/dist/InputToggleRow-BmDuSbE2.js +0 -57
  199. package/dist/ManualPopover-CQfjPvFe.js +0 -60
  200. package/dist/MediaWrapper-DDzcjR6V.js +0 -23
  201. package/dist/PackageGroup-mAGXfZDv.js +0 -704
  202. package/dist/PdfTerms-BH_Nwf2h.js +0 -31
  203. package/dist/PdfViewer-mBLxI8bA.js +0 -383
  204. package/dist/PlainHtml-B7gUNNZd.js +0 -27
  205. package/dist/PriceHeader-DClYMPcq.js +0 -338
  206. package/dist/SendForm-Cxv_m8Rq.js +0 -1023
  207. package/dist/Setup-B90VDZTG.js +0 -50
  208. package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
  209. package/dist/ToggleBinding-DOeTcWzi.js +0 -42
  210. package/dist/UploadModal-DOPLVEpV.js +0 -95
  211. package/dist/VideoPlayerInput-1zG06elO.js +0 -97
  212. package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
  213. package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
  214. package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
  215. package/dist/debounce-Ch1d3526.js +0 -84
  216. package/dist/formValidationMixin-D_MzsHsR.js +0 -49
  217. package/dist/index-BNdbPq4J.js +0 -492
  218. package/dist/index-BXzugeJ6.js +0 -81
  219. package/dist/index-C5wcxrC6.js +0 -167
  220. package/dist/index-CgDOs7t4.js +0 -2700
  221. package/dist/index-Cj-_2coz.js +0 -351
  222. package/dist/index-DpqV5y0K.js +0 -102
  223. package/dist/main-BL_yzf2r.js +0 -57357
  224. package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
  225. package/dist/omit-Dfe_H1Ft.js +0 -31
  226. package/dist/simplebar.min-CRlLD1Oz.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-BX_w77tW.js +0 -18
  230. package/dist/tippy.esm-n4arfVzA.js +0 -1805
  231. package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,240 +0,0 @@
1
- import { n as i, aa as l } from "./main-BL_yzf2r.js";
2
- const n = {
3
- name: "CFieldBody",
4
- props: {
5
- message: {
6
- type: String,
7
- default: ""
8
- },
9
- type: {
10
- type: [String, Object],
11
- default: ""
12
- }
13
- },
14
- render(s) {
15
- return s(
16
- "div",
17
- { attrs: { class: "field-body" } },
18
- this.$slots.default.map((e) => e.tag ? this.message ? s(
19
- "c-field",
20
- { attrs: { message: this.message, type: this.type } },
21
- [e]
22
- ) : s("c-field", { attrs: { type: this.type } }, [
23
- e
24
- ]) : e)
25
- );
26
- }
27
- }, r = null, o = null;
28
- var u = /* @__PURE__ */ i(
29
- n,
30
- r,
31
- o,
32
- !1,
33
- null,
34
- null
35
- );
36
- const d = u.exports, p = {
37
- name: "CField",
38
- components: {
39
- CFieldBody: d
40
- },
41
- props: {
42
- type: {
43
- type: [String, Object],
44
- default: ""
45
- },
46
- label: {
47
- type: String,
48
- default: ""
49
- },
50
- labelFor: {
51
- type: String,
52
- default: ""
53
- },
54
- message: {
55
- type: [String, Array, Object],
56
- default: ""
57
- },
58
- grouped: Boolean,
59
- groupMultiline: Boolean,
60
- position: {
61
- type: String,
62
- default: ""
63
- },
64
- expanded: Boolean,
65
- horizontal: Boolean,
66
- addons: {
67
- type: Boolean,
68
- default: !0
69
- },
70
- customClass: {
71
- type: String,
72
- default: ""
73
- },
74
- labelPosition: {
75
- type: String,
76
- default: () => "top"
77
- // config.defaultFieldLabelPosition,
78
- }
79
- },
80
- data() {
81
- return {
82
- newType: this.type,
83
- newMessage: this.message,
84
- fieldLabelSize: null,
85
- _isField: !0
86
- // Used internally by Input and Select
87
- };
88
- },
89
- computed: {
90
- rootClasses() {
91
- return [
92
- this.newPosition,
93
- {
94
- "is-expanded": this.expanded,
95
- "is-grouped-multiline": this.groupMultiline,
96
- "is-horizontal": this.horizontal,
97
- "is-floating-in-label": this.hasLabel && !this.horizontal && this.labelPosition === "inside",
98
- "is-floating-label": this.hasLabel && !this.horizontal && this.labelPosition === "on-border"
99
- },
100
- this.numberInputClasses
101
- ];
102
- },
103
- /**
104
- * Correct Bulma class for the side of the addon or group.
105
- *
106
- * This is not kept like the others (is-small, etc.),
107
- * because since 'has-addons' is set automatically it
108
- * doesn't make sense to teach users what addons are exactly.
109
- */
110
- // eslint-disable-next-line vue/return-in-computed-property
111
- newPosition() {
112
- if (this.position === void 0)
113
- return;
114
- const s = this.position.split("-");
115
- if (s.length < 1)
116
- return;
117
- const e = this.grouped ? "is-grouped-" : "has-addons-";
118
- if (this.position)
119
- return e + s[1];
120
- },
121
- /**
122
- * Formatted message in case it's an array
123
- * (each element is separated by <br> tag)
124
- */
125
- formattedMessage() {
126
- if (typeof this.newMessage == "string")
127
- return this.newMessage;
128
- const s = [];
129
- if (Array.isArray(this.newMessage))
130
- this.newMessage.forEach((e) => {
131
- if (typeof e == "string")
132
- s.push(e);
133
- else
134
- for (const t in e)
135
- e[t] && s.push(t);
136
- });
137
- else
138
- for (const e in this.newMessage)
139
- this.newMessage[e] && s.push(e);
140
- return s.filter((e) => {
141
- if (e)
142
- return e;
143
- }).join(" <br> ");
144
- },
145
- hasLabel() {
146
- return this.label || this.$slots.label;
147
- },
148
- numberInputClasses() {
149
- if (this.$slots.default) {
150
- const s = this.$slots.default.filter(
151
- (e) => e.tag && e.tag.toLowerCase().indexOf("numberinput") >= 0
152
- )[0];
153
- if (s) {
154
- const e = ["has-numberinput"], t = s.componentOptions.propsData.controlsPosition, a = s.componentOptions.propsData.size;
155
- return t && e.push(`has-numberinput-${t}`), a && e.push(`has-numberinput-${a}`), e;
156
- }
157
- }
158
- return null;
159
- }
160
- },
161
- watch: {
162
- /**
163
- * Set internal type when prop change.
164
- */
165
- type(s) {
166
- this.newType = s;
167
- },
168
- /**
169
- * Set internal message when prop change.
170
- */
171
- message(s) {
172
- this.newMessage = s;
173
- }
174
- },
175
- mounted() {
176
- this.horizontal && this.$el.querySelectorAll(
177
- ".input, .select, .button, .textarea, .c-slider"
178
- ).length > 0 && (this.fieldLabelSize = "is-normal");
179
- },
180
- methods: {
181
- /**
182
- * Field has addons if there are more than one slot
183
- * (element / component) in the Field.
184
- * Or is grouped when prop is set.
185
- * Is a method to be called when component re-render.
186
- */
187
- fieldType() {
188
- if (this.grouped)
189
- return "is-grouped";
190
- let s = 0;
191
- if (this.$slots.default && (s = this.$slots.default.reduce(
192
- (e, t) => t.tag ? e + 1 : e,
193
- 0
194
- )), s > 1 && this.addons && !this.horizontal)
195
- return "has-addons";
196
- }
197
- }
198
- };
199
- var f = function() {
200
- var e = this, t = e._self._c;
201
- return t("div", { staticClass: "field", class: [e.rootClasses, e.fieldType()] }, [e.horizontal ? t("div", { staticClass: "field-label", class: [e.customClass, e.fieldLabelSize] }, [e.hasLabel ? t("label", { staticClass: "label truncate-text", class: e.customClass, attrs: { for: e.labelFor } }, [e.$slots.label ? e._t("label") : [e._v(e._s(e.label))]], 2) : e._e()]) : [e.hasLabel ? t("label", { staticClass: "label truncate-text", class: e.customClass, attrs: { for: e.labelFor } }, [e.$slots.label ? e._t("label") : [e._v(e._s(e.label))]], 2) : e._e()], e.horizontal ? t("CFieldBody", { attrs: { message: e.newMessage ? e.formattedMessage : "", type: e.newType } }, [e._t("default")], 2) : [e._t("default")], e.newMessage && !e.horizontal ? t("p", { staticClass: "help", class: e.newType, domProps: { innerHTML: e._s(e.formattedMessage) } }) : e._e()], 2);
202
- }, c = [], h = /* @__PURE__ */ i(
203
- p,
204
- f,
205
- c,
206
- !1,
207
- null,
208
- null
209
- );
210
- const _ = h.exports, g = {
211
- name: "CFormField",
212
- components: {
213
- CField: _
214
- },
215
- extends: l,
216
- computed: {
217
- type() {
218
- return this.hasErrors ? "is-danger" : this.isValid ? "is-success" : null;
219
- },
220
- customClass() {
221
- return this.hasErrors ? "text-red-500" : this.isValid ? "text-green-500" : null;
222
- }
223
- }
224
- };
225
- var m = function() {
226
- var e = this, t = e._self._c;
227
- return t("CField", e._b({ attrs: { label: e.label, "custom-class": e.customClass, type: e.type, message: e.firstErrorMessage } }, "CField", { ...e.$attrs, ...e.$props }, !1), [e._t("default")], 2);
228
- }, b = [], y = /* @__PURE__ */ i(
229
- g,
230
- m,
231
- b,
232
- !1,
233
- null,
234
- null
235
- );
236
- const $ = y.exports;
237
- export {
238
- $ as C,
239
- _ as a
240
- };
@@ -1,138 +0,0 @@
1
- import { n as o, j as u, k as c } from "./main-BL_yzf2r.js";
2
- import { C as d, a as h } from "./CDropdownItem-CN7gSfgY.js";
3
- import { a as p } from "./CFormField-Clvcf2Jh.js";
4
- import { F as f } from "./Flag-1-HcT5Dz.js";
5
- import { S as g } from "./SmartList-BynTuXtB.js";
6
- import { r as n } from "./regions-BdZt9Srn.js";
7
- const m = {
8
- name: "CPhoneInput",
9
- components: {
10
- Flag: f,
11
- CInput: u,
12
- CDropdown: d,
13
- CDropdownItem: h,
14
- CButton: c,
15
- CField: p,
16
- SmartList: g
17
- },
18
- props: {
19
- value: {
20
- type: [String, Number],
21
- default: ""
22
- },
23
- region: {
24
- type: String,
25
- default: ""
26
- },
27
- // Region to fallback to if prefix is not found in value
28
- defaultRegion: {
29
- type: String,
30
- required: !0
31
- },
32
- label: {
33
- type: String,
34
- default: ""
35
- },
36
- labelPosition: {
37
- type: String,
38
- default: ""
39
- }
40
- },
41
- data() {
42
- return {
43
- internalPrefix: null,
44
- // Used to remember prefix when value is changed to empty
45
- searchQuery: ""
46
- };
47
- },
48
- computed: {
49
- defaultPrefix() {
50
- return n[this.internalRegion].callingCode;
51
- },
52
- currentRegion() {
53
- return this.getRegionByCallingCode(this.prefix);
54
- },
55
- internalRegion: {
56
- get() {
57
- if (this.region)
58
- return this.region;
59
- if (this.value) {
60
- const e = (Object.keys(n) || []).find(
61
- (t) => n[t].callingCode && this.value && this.value.startsWith(n[t].callingCode)
62
- );
63
- if (e)
64
- return e;
65
- }
66
- return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
67
- },
68
- set(e) {
69
- this.$emit("update:region", e), this.updateValue({ prefix: n[e].callingCode });
70
- }
71
- },
72
- prefix() {
73
- if (!this.value)
74
- return this.internalPrefix || this.defaultPrefix;
75
- const e = (Object.keys(n) || []).find(
76
- (t) => n[t].callingCode && this.value && this.value.startsWith(n[t].callingCode)
77
- );
78
- return e ? n[e].callingCode : this.defaultPrefix;
79
- },
80
- phone: {
81
- get() {
82
- return this.prefix && this.value && this.value.startsWith(this.prefix) ? this.value.substring(this.prefix.length) : this.value;
83
- },
84
- set(e) {
85
- this.updateValue({ phone: e });
86
- }
87
- },
88
- sortedRegions() {
89
- return (Object.keys(n) || []).map((e) => ({
90
- key: e,
91
- title: `${n[e].name} (${e})`,
92
- callingCode: n[e].callingCode
93
- })).sort((e, t) => e.title.localeCompare(t.title));
94
- }
95
- },
96
- methods: {
97
- getRegionByCallingCode(e) {
98
- return e ? (Object.keys(n) || []).find(
99
- (i) => e === n[i].callingCode
100
- ) : null;
101
- },
102
- updateValue({ prefix: e, phone: t }) {
103
- const i = e !== void 0 ? e : this.prefix || "", s = t !== void 0 ? t : this.phone || "", r = `${i}${s}`;
104
- r !== i ? (this.$emit("input", r), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = i, this.$emit("input", ""));
105
- }
106
- }
107
- };
108
- var C = function() {
109
- var t = this, i = t._self._c;
110
- return i("CField", { staticClass: "has-addons", attrs: { expanded: "" } }, [i("div", { staticClass: "control" }, [i("SmartList", { attrs: { query: t.searchQuery, items: t.sortedRegions }, scopedSlots: t._u([{ key: "default", fn: function({ items: s }) {
111
- return [i("CDropdown", { staticClass: "control", staticStyle: { height: "100%" }, attrs: { size: t.$attrs.size, disabled: t.$attrs.disabled, "menu-styling": {
112
- maxWidth: "300px"
113
- }, scrollable: !0, position: "is-bottom-right", "max-height": "240px" }, scopedSlots: t._u([{ key: "trigger", fn: function() {
114
- return [i("CButton", { staticStyle: { height: "100%" }, attrs: { size: t.$attrs.size, type: "none", pattern: "secondary" } }, [i("Flag", { staticStyle: { "margin-right": "0.35em" }, attrs: { region: t.internalRegion } }), t._v(" " + t._s(t.prefix) + " ")], 1)];
115
- }, proxy: !0 }, { key: "header", fn: function() {
116
- return [i("CInput", { staticStyle: { "margin-bottom": "0.25em" }, attrs: { placeholder: t.$t("_common:search"), filled: "" }, model: { value: t.searchQuery, callback: function(r) {
117
- t.searchQuery = r;
118
- }, expression: "searchQuery" } })];
119
- }, proxy: !0 }], null, !0), model: { value: t.internalRegion, callback: function(r) {
120
- t.internalRegion = r;
121
- }, expression: "internalRegion" } }, t._l(s, function({ key: r, title: a, callingCode: l }) {
122
- return i("CDropdownItem", { key: r, staticClass: "truncate-text", attrs: { value: r } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: r, title: a } }), i("span", { staticClass: "truncate-text" }, [t._v(" " + t._s(a) + " (" + t._s(l) + ") ")])], 1);
123
- }), 1)];
124
- } }]) })], 1), i("CField", { staticClass: "control", attrs: { label: t.label, "label-position": t.labelPosition, expanded: "" } }, [i("CInput", t._b({ attrs: { size: t.$attrs.size, placeholder: t.$attrs.placeholder, type: "tel" }, model: { value: t.phone, callback: function(s) {
125
- t.phone = s;
126
- }, expression: "phone" } }, "CInput", { ...t.$attrs, ...t.$props }, !1))], 1)], 1);
127
- }, y = [], x = /* @__PURE__ */ o(
128
- m,
129
- C,
130
- y,
131
- !1,
132
- null,
133
- null
134
- );
135
- const S = x.exports;
136
- export {
137
- S as C
138
- };
@@ -1,116 +0,0 @@
1
- import { C as i } from "./CCurrencyDropdown-CXXQu8th.js";
2
- import { n as s, j as u, r as a } from "./main-BL_yzf2r.js";
3
- const o = {
4
- name: "CPriceInput",
5
- components: {
6
- CInput: u,
7
- CCurrencyDropdown: i
8
- },
9
- props: {
10
- value: {
11
- type: Number,
12
- default: 0
13
- },
14
- currency: {
15
- type: String,
16
- required: !0
17
- },
18
- priceType: {
19
- type: String,
20
- default: "fixed",
21
- validator: (t) => ["fixed", "markup", "openAcc", "approx"].includes(t)
22
- },
23
- unitLabel: {
24
- type: String,
25
- default: ""
26
- },
27
- isIncVat: {
28
- type: Boolean,
29
- default: !1
30
- },
31
- // Vat in percentage
32
- vat: {
33
- type: Number,
34
- default: null
35
- }
36
- },
37
- data() {
38
- return {
39
- isCurrencyDropdownOpen: !1
40
- };
41
- },
42
- computed: {
43
- internalValue: {
44
- get() {
45
- if (!Number.isNaN(parseFloat(this.value)) && Number.isFinite(this.value)) {
46
- if (!this.value && !this.showZero)
47
- return "";
48
- let t = this.value;
49
- return this.isIncVat && (t *= (100 + this.vat) / 100), Math.round(t) / 100;
50
- }
51
- return this.value;
52
- },
53
- set(t) {
54
- let e = t;
55
- e = t * 100, this.isIncVat && (e /= (100 + this.vat) / 100), e = Math.round(e), this.$emit("input", e);
56
- }
57
- },
58
- internalCurrency: {
59
- get() {
60
- return this.currency;
61
- },
62
- set(t) {
63
- this.$emit("update:currency", t);
64
- }
65
- },
66
- suffixValue() {
67
- const t = a(this.internalCurrency);
68
- switch (this.priceType) {
69
- case "openAcc":
70
- return `${t}/${this.unitLabel || this.$t("_common:unitType.unit")}`;
71
- case "markup":
72
- return "%";
73
- default:
74
- return t;
75
- }
76
- },
77
- showCurrencyDropdown() {
78
- return !["markup"].includes(this.priceType);
79
- },
80
- eventListeners() {
81
- return { ...this.$listeners, onInput: () => ({}), input: () => ({}) };
82
- }
83
- },
84
- methods: {
85
- focus() {
86
- this.$refs.priceInput && typeof this.$refs.priceInput.focus == "function" && this.$refs.priceInput.focus();
87
- }
88
- }
89
- };
90
- var c = function() {
91
- var e = this, r = e._self._c;
92
- return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, scopedSlots: e._u([{ key: "prefix", fn: function() {
93
- return [e.$slots.prefix ? r("div", [e._t("prefix")], 2) : e._e()];
94
- }, proxy: !0 }, { key: "suffix", fn: function() {
95
- return [e.$slots.suffix ? r("div", [e._t("suffix")], 2) : r("div", [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
96
- e.isCurrencyDropdownOpen = n;
97
- } }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
98
- return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
99
- } }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
100
- e.internalCurrency = n;
101
- }, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)];
102
- }, proxy: !0 }], null, !0), model: { value: e.internalValue, callback: function(n) {
103
- e.internalValue = n;
104
- }, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners));
105
- }, p = [], l = /* @__PURE__ */ s(
106
- o,
107
- c,
108
- p,
109
- !1,
110
- null,
111
- null
112
- );
113
- const y = l.exports;
114
- export {
115
- y as C
116
- };
@@ -1,91 +0,0 @@
1
- import { n as r, F as c } from "./main-BL_yzf2r.js";
2
- const u = {
3
- name: "CSelect",
4
- mixins: [c],
5
- inheritAttrs: !1,
6
- props: {
7
- value: {
8
- type: [String, Number, Boolean, Object, Array, Function],
9
- default: null
10
- },
11
- placeholder: {
12
- type: String,
13
- default: ""
14
- },
15
- multiple: Boolean,
16
- selectClass: {
17
- type: [String, Object, Array],
18
- default: ""
19
- },
20
- nativeSize: {
21
- type: [String, Number],
22
- default: null
23
- }
24
- },
25
- data() {
26
- return {
27
- selected: this.value,
28
- _elementRef: "select"
29
- };
30
- },
31
- computed: {
32
- computedValue: {
33
- get() {
34
- return this.selected;
35
- },
36
- set(l) {
37
- this.selected = l, this.$emit("input", l), !this.isValid && this.checkHtml5Validity();
38
- }
39
- },
40
- spanClasses() {
41
- return [
42
- this.size,
43
- this.statusType,
44
- {
45
- "is-fullwidth": this.expanded,
46
- "is-loading": this.loading,
47
- "is-multiple": this.multiple,
48
- "is-rounded": this.rounded,
49
- "is-empty": this.selected === null
50
- }
51
- ];
52
- }
53
- },
54
- watch: {
55
- /**
56
- * When v-model is changed:
57
- * 1. Set the selected option.
58
- * 2. If it's invalid, validate again.
59
- */
60
- value(l) {
61
- this.selected = l, !this.isValid && this.checkHtml5Validity();
62
- }
63
- }
64
- };
65
- var o = function() {
66
- var e = this, i = e._self._c;
67
- return i("div", { staticClass: "control", class: { "is-expanded": e.expanded, "has-icons-left": e.icon } }, [i("span", { staticClass: "select", class: e.spanClasses }, [i("select", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "select", class: e.selectClass, attrs: { multiple: e.multiple, size: e.nativeSize }, on: { blur: function(t) {
68
- e.$emit("blur", t) && e.checkHtml5Validity();
69
- }, focus: function(t) {
70
- return e.$emit("focus", t);
71
- }, change: function(t) {
72
- var a = Array.prototype.filter.call(t.target.options, function(s) {
73
- return s.selected;
74
- }).map(function(s) {
75
- var n = "_value" in s ? s._value : s.value;
76
- return n;
77
- });
78
- e.computedValue = t.target.multiple ? a : a[0];
79
- } } }, "select", e.$attrs, !1), [e.placeholder && e.computedValue == null ? i("option", { attrs: { disabled: "", hidden: "" }, domProps: { value: null } }, [e._v(" " + e._s(e.placeholder) + " ")]) : e._e(), e._t("default")], 2)])]);
80
- }, d = [], p = /* @__PURE__ */ r(
81
- u,
82
- o,
83
- d,
84
- !1,
85
- null,
86
- "23e48013"
87
- );
88
- const h = p.exports;
89
- export {
90
- h as C
91
- };
@@ -1,55 +0,0 @@
1
- import { u as m, w as y, x as u, y as h, n as C } from "./main-BL_yzf2r.js";
2
- const k = /* @__PURE__ */ m({
3
- __name: "CSkeleton",
4
- props: {
5
- active: { type: Boolean, default: !0 },
6
- animated: { type: Boolean, default: !1 },
7
- width: { default: "" },
8
- height: { default: "" },
9
- circle: { type: Boolean, default: !1 },
10
- rounded: { type: Boolean, default: !0 },
11
- count: { default: 1 },
12
- hidden: { type: Boolean, default: !1 },
13
- color: { default: "" }
14
- },
15
- setup(i) {
16
- const t = i, {
17
- active: s,
18
- animated: e,
19
- width: a,
20
- height: l,
21
- circle: c,
22
- rounded: d,
23
- count: r,
24
- hidden: f,
25
- color: n
26
- } = y(t), v = u(() => ({
27
- height: l.value === void 0 ? null : isNaN(Number(l.value)) ? l.value : `${l.value}px`,
28
- width: a.value === void 0 ? null : isNaN(Number(a.value)) ? a.value : `${a.value}px`,
29
- borderRadius: c.value ? "50%" : null,
30
- background: n.value ? n.value : null
31
- })), o = h(), _ = u(() => o.style), p = u(() => o.class);
32
- return { __sfc: !0, props: t, active: s, animated: e, width: a, height: l, circle: c, rounded: d, count: r, hidden: f, color: n, itemStyle: v, attrs: o, staticStyle: _, staticClass: p };
33
- }
34
- });
35
- var x = function() {
36
- var t = this, s = t._self._c, e = t._self._setupProxy;
37
- return e.active ? s("div", { class: [
38
- "c-skeleton",
39
- { "is-animated": e.animated, "is-invisible": e.hidden },
40
- e.staticClass
41
- ], style: e.staticStyle }, t._l(e.count, function(a) {
42
- return s("div", { key: a, staticClass: "c-skeleton-item", class: { "is-rounded": e.rounded }, style: e.itemStyle });
43
- }), 0) : t._e();
44
- }, N = [], S = /* @__PURE__ */ C(
45
- k,
46
- x,
47
- N,
48
- !1,
49
- null,
50
- null
51
- );
52
- const B = S.exports;
53
- export {
54
- B as C
55
- };