@cling-se/widget 0.14.2 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/.eslintrc.cjs +4 -4
  2. package/README.md +40 -40
  3. package/package.json +1 -1
  4. package/tsconfig.json +26 -26
  5. package/tsconfig.node.json +10 -10
  6. package/tsconfig.paths.json +17 -17
  7. package/vite.config.ts +61 -61
  8. package/dist/AddClientCallout-BP2ip0A4.js +0 -46
  9. package/dist/AnswerModal-C8i3ldB_.js +0 -3869
  10. package/dist/AttachmentItem-BrvrAMae.js +0 -78
  11. package/dist/BaseDatePicker-BSkAllLg.js +0 -3183
  12. package/dist/BaseUpload-J2v3G0-q.js +0 -1977
  13. package/dist/BlockMedia-CAgKbN_k.js +0 -76
  14. package/dist/CCallout-D5Nk5DgN.js +0 -59
  15. package/dist/CCurrencyDropdown-CGYQfYSD.js +0 -246
  16. package/dist/CDropdownItem-DGES8E6l.js +0 -538
  17. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  18. package/dist/CFormField-CE4rV3cr.js +0 -241
  19. package/dist/CPhoneFormat-DXPrTit9.js +0 -62
  20. package/dist/CPriceInput-CYsf1n6T.js +0 -112
  21. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  22. package/dist/ClientAutocomplete-DPgOfPg1.js +0 -78
  23. package/dist/ClientModal-Dznh8Vvn.js +0 -625
  24. package/dist/ColorPicker-CWQEE8VR.js +0 -2879
  25. package/dist/CompanyModal-CeZ3GgLu.js +0 -141
  26. package/dist/ContentWrapper-DW7VHTdA.js +0 -183
  27. package/dist/CoverBlockSettings-DNSdXFgF.js +0 -275
  28. package/dist/DocAnswer-CPttkKAJ.js +0 -36
  29. package/dist/DocDetails-BCwWW_kM.js +0 -246
  30. package/dist/DocForm-BPjC08Ic.js +0 -7273
  31. package/dist/DocFormSend-BaC8IJCu.js +0 -143
  32. package/dist/DocLinks-DN-S8MY_.js +0 -38
  33. package/dist/DocModalBase-bFJp0T2Y.js +0 -28
  34. package/dist/DocPrint-Ci7Jyh-C.js +0 -240
  35. package/dist/DocReceipt-BYlXr6eS.js +0 -210
  36. package/dist/DocSendReminder-DFx4934a.js +0 -137
  37. package/dist/DocTextEditor-idQMnlIF.js +0 -17177
  38. package/dist/DocTimeline-ZmGSVRUB.js +0 -481
  39. package/dist/DocumentClient-DTRlyvLO.js +0 -136
  40. package/dist/DocumentLayout-BJAyNjNa.js +0 -4909
  41. package/dist/DocumentLogotype-pDJRc6Hj.js +0 -87
  42. package/dist/DocumentVoided-DfKewfe4.js +0 -25
  43. package/dist/EmbedInput-7hLNsnEV.js +0 -113
  44. package/dist/EmbedSettings-CpL24RhA.js +0 -72
  45. package/dist/ErrorCallout-CdJCe67q.js +0 -28
  46. package/dist/FilePreviewModal-B7qT3I7F.js +0 -81
  47. package/dist/Flag-DwW19zju.js +0 -114
  48. package/dist/HeaderSettings-C8SuuAwv.js +0 -392
  49. package/dist/ImageSelectModal-CAOh3YHc.js +0 -84
  50. package/dist/ImageUploadWrapper-21yldsj9.js +0 -1604
  51. package/dist/Index-B0BgYtWI.js +0 -150
  52. package/dist/Index-BC1AhlQ9.js +0 -98
  53. package/dist/Index-BZi6r2UN.js +0 -144
  54. package/dist/Index-BsD09y_2.js +0 -84
  55. package/dist/Index-Bu9SdKLP.js +0 -31
  56. package/dist/Index-BvsqZh2A.js +0 -26
  57. package/dist/Index-Bz4qd9uO.js +0 -55
  58. package/dist/Index-C--GiPc1.js +0 -171
  59. package/dist/Index-CC7qF0br.js +0 -77
  60. package/dist/Index-CGxOvTF4.js +0 -2402
  61. package/dist/Index-CI7_ktvb.js +0 -70
  62. package/dist/Index-COJZmxkX.js +0 -32
  63. package/dist/Index-CObEQ6G-.js +0 -140
  64. package/dist/Index-CP2bsXd-.js +0 -52
  65. package/dist/Index-CSvZBLnp.js +0 -49
  66. package/dist/Index-Ci-hGBbC.js +0 -33
  67. package/dist/Index-Ckzq1cEJ.js +0 -69
  68. package/dist/Index-CoIh5y2F.js +0 -62
  69. package/dist/Index-Couda8BX.js +0 -21
  70. package/dist/Index-CvXt3dm6.js +0 -292
  71. package/dist/Index-D95MNzAZ.js +0 -58
  72. package/dist/Index-DB5EG4EI.js +0 -223
  73. package/dist/Index-DDvRihXA.js +0 -24
  74. package/dist/Index-DIAntwBs.js +0 -61
  75. package/dist/Index-DUdJNcDT.js +0 -25
  76. package/dist/Index-DfANvO5d.js +0 -154
  77. package/dist/Index-Ds1Jv5Mr.js +0 -559
  78. package/dist/Index-FIWsRGmh.js +0 -57
  79. package/dist/Index-M3b7S4YX.js +0 -25
  80. package/dist/Index-NoN1_539.js +0 -642
  81. package/dist/Index-UGFm4yxI.js +0 -107
  82. package/dist/Index-aCBe0dXx.js +0 -754
  83. package/dist/Index-kJFtpJEP.js +0 -46
  84. package/dist/Index-rQKoLISX.js +0 -45
  85. package/dist/InputToggleRow-Ct8rvqAF.js +0 -57
  86. package/dist/ManualPopover-B0vp9ydC.js +0 -54
  87. package/dist/MediaWrapper-hmofOPLv.js +0 -23
  88. package/dist/NotBindingText-COpJPwHe.js +0 -32
  89. package/dist/PackageGroup-BdtslJL-.js +0 -699
  90. package/dist/PdfTerms-EDStBDhn.js +0 -36
  91. package/dist/PdfViewer-D1_Roqu2.js +0 -374
  92. package/dist/PlainHtml-C3JPvt4o.js +0 -20
  93. package/dist/PriceHeader-BdfozyN8.js +0 -339
  94. package/dist/SearchApi-CQtYh98a.js +0 -161
  95. package/dist/Setup-DHHMT6xu.js +0 -50
  96. package/dist/SmartList-BXeRj5NC.js +0 -83
  97. package/dist/TermsSettings-D1tDAu-r.js +0 -102
  98. package/dist/ThemeColorRow-HUN-QPY_.js +0 -63
  99. package/dist/ToggleBinding-CRoVM6Nw.js +0 -38
  100. package/dist/UploadModal-BD3pIiPT.js +0 -95
  101. package/dist/VideoPlayerInput-QFJfPoCf.js +0 -93
  102. package/dist/VideoPlayerSettings-CGq--niu.js +0 -61
  103. package/dist/VideoSelectModal-B61rBqdH.js +0 -100
  104. package/dist/anime.es-BrPTThYb.js +0 -858
  105. package/dist/answerDocumentMixin-DiONfM1s.js +0 -51
  106. package/dist/color-TdtKxwVa.js +0 -19
  107. package/dist/debounce-BIchuVwa.js +0 -84
  108. package/dist/dom-CJxkno7i.js +0 -91
  109. package/dist/favicon.ico +0 -0
  110. package/dist/focusDrawerMixin-CzvgKsOZ.js +0 -22
  111. package/dist/formComponentsInstall-EQLbqYqI.js +0 -2494
  112. package/dist/formDrawerState-CiKGHdNH.js +0 -20
  113. package/dist/formValidationMixin-5BVcxu38.js +0 -49
  114. package/dist/i18nMessages-Chz_lxGG.js +0 -17
  115. package/dist/index-BYTRIZIz.js +0 -81
  116. package/dist/index-Be__C37A.js +0 -102
  117. package/dist/index-CUydiL8B.js +0 -3919
  118. package/dist/index-DH6SCEKQ.js +0 -166
  119. package/dist/index-gtVGRKIX.js +0 -347
  120. package/dist/index-tNIrTnCx.js +0 -492
  121. package/dist/index.es.js +0 -35
  122. package/dist/index.umd.js +0 -3148
  123. package/dist/main-Bp2qcma0.js +0 -56697
  124. package/dist/mapFormMixin-Ce3_WIKw.js +0 -72
  125. package/dist/omit-21u5fFMx.js +0 -31
  126. package/dist/publicSenderState-BcN9kJJr.js +0 -21
  127. package/dist/splitpanes-BHUVsCZF.js +0 -382
  128. package/dist/style.css +0 -4
  129. package/dist/throttle-CfPxqhW_.js +0 -18
  130. package/dist/tinycolor-DNK6zGoq.js +0 -633
  131. package/dist/tippy.esm-B5TcTBWX.js +0 -1799
  132. package/dist/utils-GzwJPAEe.js +0 -108
  133. package/dist/vuedraggable.umd-2pmrPYml.js +0 -3161
  134. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,241 +0,0 @@
1
- import { n as i, Q as l } from "./main-Bp2qcma0.js";
2
- import "./CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js";
3
- const n = {
4
- name: "CFieldBody",
5
- props: {
6
- message: {
7
- type: String,
8
- default: ""
9
- },
10
- type: {
11
- type: [String, Object],
12
- default: ""
13
- }
14
- },
15
- render(s) {
16
- return s(
17
- "div",
18
- { attrs: { class: "field-body" } },
19
- this.$slots.default.map((e) => e.tag ? this.message ? s(
20
- "c-field",
21
- { attrs: { message: this.message, type: this.type } },
22
- [e]
23
- ) : s("c-field", { attrs: { type: this.type } }, [
24
- e
25
- ]) : e)
26
- );
27
- }
28
- }, r = null, o = null;
29
- var u = /* @__PURE__ */ i(
30
- n,
31
- r,
32
- o,
33
- !1,
34
- null,
35
- null
36
- );
37
- const d = u.exports, p = {
38
- name: "CField",
39
- components: {
40
- CFieldBody: d
41
- },
42
- props: {
43
- type: {
44
- type: [String, Object],
45
- default: ""
46
- },
47
- label: {
48
- type: String,
49
- default: ""
50
- },
51
- labelFor: {
52
- type: String,
53
- default: ""
54
- },
55
- message: {
56
- type: [String, Array, Object],
57
- default: ""
58
- },
59
- grouped: Boolean,
60
- groupMultiline: Boolean,
61
- position: {
62
- type: String,
63
- default: ""
64
- },
65
- expanded: Boolean,
66
- horizontal: Boolean,
67
- addons: {
68
- type: Boolean,
69
- default: !0
70
- },
71
- customClass: {
72
- type: String,
73
- default: ""
74
- },
75
- labelPosition: {
76
- type: String,
77
- default: () => "top"
78
- // config.defaultFieldLabelPosition,
79
- }
80
- },
81
- data() {
82
- return {
83
- newType: this.type,
84
- newMessage: this.message,
85
- fieldLabelSize: null,
86
- _isField: !0
87
- // Used internally by Input and Select
88
- };
89
- },
90
- computed: {
91
- rootClasses() {
92
- return [
93
- this.newPosition,
94
- {
95
- "is-expanded": this.expanded,
96
- "is-grouped-multiline": this.groupMultiline,
97
- "is-horizontal": this.horizontal,
98
- "is-floating-in-label": this.hasLabel && !this.horizontal && this.labelPosition === "inside",
99
- "is-floating-label": this.hasLabel && !this.horizontal && this.labelPosition === "on-border"
100
- },
101
- this.numberInputClasses
102
- ];
103
- },
104
- /**
105
- * Correct Bulma class for the side of the addon or group.
106
- *
107
- * This is not kept like the others (is-small, etc.),
108
- * because since 'has-addons' is set automatically it
109
- * doesn't make sense to teach users what addons are exactly.
110
- */
111
- // eslint-disable-next-line vue/return-in-computed-property
112
- newPosition() {
113
- if (this.position === void 0)
114
- return;
115
- const s = this.position.split("-");
116
- if (s.length < 1)
117
- return;
118
- const e = this.grouped ? "is-grouped-" : "has-addons-";
119
- if (this.position)
120
- return e + s[1];
121
- },
122
- /**
123
- * Formatted message in case it's an array
124
- * (each element is separated by <br> tag)
125
- */
126
- formattedMessage() {
127
- if (typeof this.newMessage == "string")
128
- return this.newMessage;
129
- const s = [];
130
- if (Array.isArray(this.newMessage))
131
- this.newMessage.forEach((e) => {
132
- if (typeof e == "string")
133
- s.push(e);
134
- else
135
- for (const t in e)
136
- e[t] && s.push(t);
137
- });
138
- else
139
- for (const e in this.newMessage)
140
- this.newMessage[e] && s.push(e);
141
- return s.filter((e) => {
142
- if (e)
143
- return e;
144
- }).join(" <br> ");
145
- },
146
- hasLabel() {
147
- return this.label || this.$slots.label;
148
- },
149
- numberInputClasses() {
150
- if (this.$slots.default) {
151
- const s = this.$slots.default.filter(
152
- (e) => e.tag && e.tag.toLowerCase().indexOf("numberinput") >= 0
153
- )[0];
154
- if (s) {
155
- const e = ["has-numberinput"], t = s.componentOptions.propsData.controlsPosition, a = s.componentOptions.propsData.size;
156
- return t && e.push(`has-numberinput-${t}`), a && e.push(`has-numberinput-${a}`), e;
157
- }
158
- }
159
- return null;
160
- }
161
- },
162
- watch: {
163
- /**
164
- * Set internal type when prop change.
165
- */
166
- type(s) {
167
- this.newType = s;
168
- },
169
- /**
170
- * Set internal message when prop change.
171
- */
172
- message(s) {
173
- this.newMessage = s;
174
- }
175
- },
176
- mounted() {
177
- this.horizontal && this.$el.querySelectorAll(
178
- ".input, .select, .button, .textarea, .c-slider"
179
- ).length > 0 && (this.fieldLabelSize = "is-normal");
180
- },
181
- methods: {
182
- /**
183
- * Field has addons if there are more than one slot
184
- * (element / component) in the Field.
185
- * Or is grouped when prop is set.
186
- * Is a method to be called when component re-render.
187
- */
188
- fieldType() {
189
- if (this.grouped)
190
- return "is-grouped";
191
- let s = 0;
192
- if (this.$slots.default && (s = this.$slots.default.reduce(
193
- (e, t) => t.tag ? e + 1 : e,
194
- 0
195
- )), s > 1 && this.addons && !this.horizontal)
196
- return "has-addons";
197
- }
198
- }
199
- };
200
- var f = function() {
201
- var e = this, t = e._self._c;
202
- 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);
203
- }, c = [], h = /* @__PURE__ */ i(
204
- p,
205
- f,
206
- c,
207
- !1,
208
- null,
209
- null
210
- );
211
- const _ = h.exports, g = {
212
- name: "CFormField",
213
- components: {
214
- CField: _
215
- },
216
- extends: l,
217
- computed: {
218
- type() {
219
- return this.hasErrors ? "is-danger" : this.isValid ? "is-success" : null;
220
- },
221
- customClass() {
222
- return this.hasErrors ? "text-red-500" : this.isValid ? "text-green-500" : null;
223
- }
224
- }
225
- };
226
- var m = function() {
227
- var e = this, t = e._self._c;
228
- 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);
229
- }, b = [], y = /* @__PURE__ */ i(
230
- g,
231
- m,
232
- b,
233
- !1,
234
- null,
235
- null
236
- );
237
- const w = y.exports;
238
- export {
239
- w as C,
240
- _ as a
241
- };
@@ -1,62 +0,0 @@
1
- import { u as e, v as o, n } from "./main-Bp2qcma0.js";
2
- const r = {
3
- name: "CPhoneFormat",
4
- props: {
5
- phone: {
6
- type: String,
7
- required: !1,
8
- default: ""
9
- },
10
- region: {
11
- type: String,
12
- required: !1,
13
- default: null
14
- }
15
- },
16
- data() {
17
- return {
18
- formattedPhone: ""
19
- };
20
- },
21
- watch: {
22
- phone: {
23
- immediate: !0,
24
- async handler() {
25
- this.doFormatPhone();
26
- }
27
- }
28
- },
29
- methods: {
30
- async doFormatPhone() {
31
- if (!this.phone) {
32
- this.formattedPhone = "";
33
- return;
34
- }
35
- const t = await e(this.phone, {
36
- defaultRegion: this.region
37
- });
38
- if (!t) {
39
- this.formattedPhone = this.phone;
40
- return;
41
- }
42
- this.formattedPhone = t.national;
43
- }
44
- },
45
- render() {
46
- return this.$scopedSlots.default ? this.$scopedSlots.default({
47
- formattedValue: this.formattedPhone
48
- }) : o("span", [this.formattedPhone]);
49
- }
50
- }, a = null, s = null;
51
- var h = /* @__PURE__ */ n(
52
- r,
53
- a,
54
- s,
55
- !1,
56
- null,
57
- null
58
- );
59
- const d = h.exports;
60
- export {
61
- d as C
62
- };
@@ -1,112 +0,0 @@
1
- import { C as s } from "./CCurrencyDropdown-CGYQfYSD.js";
2
- import { n as i, q as u, r as a } from "./main-Bp2qcma0.js";
3
- const l = {
4
- name: "CPriceInput",
5
- components: {
6
- CInput: u,
7
- CCurrencyDropdown: s
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 o = 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" }, model: { value: e.internalValue, callback: function(n) {
93
- e.internalValue = n;
94
- }, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners), [e.$slots.prefix ? r("div", { attrs: { slot: "prefix" }, slot: "prefix" }, [e._t("prefix")], 2) : e._e(), e.$slots.suffix ? r("div", { attrs: { slot: "suffix" }, slot: "suffix" }, [e._t("suffix")], 2) : r("template", { slot: "suffix" }, [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
95
- e.isCurrencyDropdownOpen = n;
96
- } }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
97
- 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) + " ")])];
98
- } }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
99
- e.internalCurrency = n;
100
- }, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)], 2);
101
- }, p = [], c = /* @__PURE__ */ i(
102
- l,
103
- o,
104
- p,
105
- !1,
106
- null,
107
- null
108
- );
109
- const y = c.exports;
110
- export {
111
- y as C
112
- };
@@ -1,78 +0,0 @@
1
- import { S as o } from "./SearchApi-CQtYh98a.js";
2
- import { n as l, y as c } from "./main-Bp2qcma0.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: c,
33
- results: [],
34
- // results when searching for existing endCustomer
35
- searchQuery: ""
36
- // query used to search for endCustomers
37
- };
38
- },
39
- methods: {
40
- search(r, e) {
41
- this.$emit("input", e), this.searchEnabled && (this.searchQuery = e, r({
42
- q: e,
43
- cb: ({ endCustomer: s }) => {
44
- this.results = s;
45
- }
46
- }));
47
- }
48
- }
49
- };
50
- var u = function() {
51
- var e = this, s = e._self._c;
52
- return s("SearchApi", { attrs: { "custom-search": { endCustomer: !0 } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: a, isLoading: n }) {
53
- return [s("CAutocomplete", e._b({ attrs: { data: e.results, loading: e.showLoading && n, filled: e.filled, expanded: "", "keep-first": "" }, on: { typing: function(t) {
54
- return e.search(a, t);
55
- }, select: function(t) {
56
- e.$emit("setClient", e.convertToNewClient(t));
57
- } }, scopedSlots: e._u([{ key: "default", fn: function({ option: t }) {
58
- return s("div", { staticStyle: { "line-height": "1.5" } }, [s("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(t.name || t.email))]), s("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(t.reference ? `${t.reference} · ` : "") + " " + e._s(t.workStreet || t.street || " ") + " ")])]);
59
- } }], null, !0) }, "CAutocomplete", {
60
- placeholder: e.$t("search.placeholder"),
61
- ...e.$attrs,
62
- ...e.$props
63
- }, !1), [e.searchEnabled && e.showEmpty ? [s("div", { attrs: { slot: "footer" }, slot: "footer" }, [e.searchQuery && !e.results.length ? s("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(t) {
64
- return e.$emit("add");
65
- } } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")]) : e._e()], 1), s("template", { slot: "empty" }, [e._v(" " + e._s(e.$t("search.empty")) + " " + e._s(e.searchQuery) + " ")])] : e._e()], 2)];
66
- } }]) });
67
- }, d = [], f = /* @__PURE__ */ l(
68
- i,
69
- u,
70
- d,
71
- !1,
72
- null,
73
- "7407276e"
74
- );
75
- const h = f.exports;
76
- export {
77
- h as C
78
- };