@oneclick.dev/cms-core-modules 0.0.105 → 0.0.106

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 (73) hide show
  1. package/dist/{Acquisition-CPlZzUBo.mjs → Acquisition-B2pM5vSp.mjs} +2 -2
  2. package/dist/{Acquisition-Br1Pfny3.js → Acquisition-Dt2rREU8.js} +1 -1
  3. package/dist/{Audience-BfkrmBuQ.js → Audience-Bs7b0TNm.js} +1 -1
  4. package/dist/{Audience-DTblSAiL.mjs → Audience-VLnUsQvW.mjs} +2 -2
  5. package/dist/{ContentEditor-B1nfKG_5.mjs → ContentEditor-BNLEv-qJ.mjs} +3119 -3098
  6. package/dist/{ContentEditor-DdFU8piH.js → ContentEditor-BUvvqfG1.js} +36 -36
  7. package/dist/{Create-qPeQxkdl.js → Create-89z41K73.js} +1 -1
  8. package/dist/{Create-BRBh0xjM.mjs → Create-Cn_Eufga.mjs} +5 -1
  9. package/dist/{Entries-C8UJkrVC.mjs → Entries-BdhUyJR5.mjs} +1 -1
  10. package/dist/{Entries-BaS6H6ak.js → Entries-CEXM_SkO.js} +1 -1
  11. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +1 -0
  12. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DMGcRmm-.mjs +1255 -0
  13. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +1 -0
  14. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +330 -0
  15. package/dist/{Overview-CpHhuiaV.js → Overview-Bn1Xx3_j.js} +1 -1
  16. package/dist/{Overview-BrCwozey.js → Overview-DC9io1bk.js} +1 -1
  17. package/dist/Overview-Di84CsR5.mjs +476 -0
  18. package/dist/Overview-UoZHUMUz.js +1 -0
  19. package/dist/{Overview-kaMhsIUq.mjs → Overview-ejh4vUMT.mjs} +3 -3
  20. package/dist/{Overview-D_T3K6aq.mjs → Overview-lWAyyenp.mjs} +1 -1
  21. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +349 -0
  22. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +3077 -0
  23. package/dist/{SeoHealth-BzcWd_w7.mjs → SeoHealth-DsbVdd2l.mjs} +3 -3
  24. package/dist/SeoHealth-az1YuNF2.js +1 -0
  25. package/dist/{TableView-DXmEF6pY.mjs → TableView-Bm6HaRHm.mjs} +1 -1
  26. package/dist/{TableView-CPAw3h8g.js → TableView-DQW0A1oG.js} +1 -1
  27. package/dist/agenda-IOqtALWf.js +1 -0
  28. package/dist/agenda-neyeLWv-.mjs +1165 -0
  29. package/dist/cms-core-modules.css +1 -1
  30. package/dist/{index-C4YUVWzJ.js → index-A2kp8Isi.js} +6 -6
  31. package/dist/{index-BuzLn4Km.js → index-B5aBwdxY.js} +2 -2
  32. package/dist/{index-p5Uqu8c2.mjs → index-BRdCrvcz.mjs} +52 -47
  33. package/dist/{index-D3L8WAJI.js → index-BiT55eU0.js} +2 -2
  34. package/dist/{index-CMk3uhUt.mjs → index-Bvxc5xv_.mjs} +153 -147
  35. package/dist/{index-DQYBP8Js.js → index-G7cIlnGN.js} +4 -4
  36. package/dist/{index-DjDCYQ_6.mjs → index-X6LV64jK.mjs} +102 -101
  37. package/dist/{index-_2lRVt_k.mjs → index-uOkqO74I.mjs} +105 -107
  38. package/dist/index-unsDfNYv.mjs +1187 -0
  39. package/dist/index-vHmvbEwa.js +35 -0
  40. package/dist/index.cjs.js +1 -1
  41. package/dist/index.mjs +14 -14
  42. package/dist/interpolation-CHn59tIC.js +1 -0
  43. package/dist/interpolation-w7IRDJwK.mjs +180 -0
  44. package/dist/orders-C65SlpJy.mjs +618 -0
  45. package/dist/orders-XVzWAgG1.js +1 -0
  46. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +11 -2
  47. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +55 -0
  48. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +6 -1
  49. package/dist/src/appointments/components/edit/NewReservationDialog/CustomerInformation.vue.d.ts +10 -0
  50. package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +25 -1
  51. package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +26 -0
  52. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +31 -0
  53. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +3 -1
  54. package/dist/src/appointments/composables/useHorizontalScroll.d.ts +20 -0
  55. package/dist/src/lib/interpolation.d.ts +6 -0
  56. package/package.json +2 -2
  57. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-9Q7TMm4u.mjs +0 -401
  58. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DiNzGl-q.js +0 -1
  59. package/dist/Overview-BYMrsZjM.mjs +0 -332
  60. package/dist/Overview-t0pG5xjA.js +0 -1
  61. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cz_22Oce.mjs +0 -2927
  62. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +0 -349
  63. package/dist/SeoHealth-09sEOu3G.js +0 -1
  64. package/dist/agenda-BNG05SAq.js +0 -1
  65. package/dist/agenda-D1RxMxBS.mjs +0 -1152
  66. package/dist/index-BtujSJeg.js +0 -35
  67. package/dist/index-dOdMm1pV.mjs +0 -1105
  68. package/dist/interpolation-DEDSLETn.mjs +0 -128
  69. package/dist/interpolation-DERg6Lwt.js +0 -1
  70. package/dist/orders-CzzcFQha.mjs +0 -559
  71. package/dist/orders-ETtbA4aQ.js +0 -1
  72. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +0 -110
  73. package/dist/src/appointments/pages/edit/orders.vue.d.ts +0 -98
package/dist/index.mjs CHANGED
@@ -54,7 +54,7 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
54
54
  default: !1
55
55
  }
56
56
  }), l = [
57
- { path: "", component: () => import("./TableView-DXmEF6pY.mjs") }
57
+ { path: "", component: () => import("./TableView-Bm6HaRHm.mjs") }
58
58
  ], p = [], rA = {
59
59
  component: () => import("./index-Bkq58CeQ.mjs"),
60
60
  metadata: C,
@@ -186,7 +186,7 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
186
186
  default: "promo-codes"
187
187
  }
188
188
  }), y = [
189
- { path: "", component: () => import("./Create-BRBh0xjM.mjs") },
189
+ { path: "", component: () => import("./Create-Cn_Eufga.mjs") },
190
190
  { path: "/promo-codes", component: () => import("./Find-B24ZEhYM.mjs") },
191
191
  { path: "/promo-codes/:promoCodeId", component: () => import("./Detail-CujdFApD.mjs") }
192
192
  ], u = [
@@ -293,11 +293,11 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
293
293
  description: "Optional. When set, the module will fetch real keyword data from Google Search Console. Use the same site URL format as shown in Search Console."
294
294
  }
295
295
  }), x = [
296
- { path: "", component: () => import("./Overview-kaMhsIUq.mjs") },
297
- { path: "/acquisition", component: () => import("./Acquisition-CPlZzUBo.mjs") },
296
+ { path: "", component: () => import("./Overview-ejh4vUMT.mjs") },
297
+ { path: "/acquisition", component: () => import("./Acquisition-B2pM5vSp.mjs") },
298
298
  { path: "/content", component: () => import("./Content-CYOZKvWK.mjs") },
299
- { path: "/audience", component: () => import("./Audience-DTblSAiL.mjs") },
300
- { path: "/seo", component: () => import("./SeoHealth-BzcWd_w7.mjs") }
299
+ { path: "/audience", component: () => import("./Audience-VLnUsQvW.mjs") },
300
+ { path: "/seo", component: () => import("./SeoHealth-DsbVdd2l.mjs") }
301
301
  ], K = [], S = [
302
302
  {
303
303
  name: "getTopPages",
@@ -554,10 +554,10 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
554
554
  allowAgencyIntegrations: !0
555
555
  }
556
556
  }), H = [
557
- { path: "", component: () => import("./Overview-D_T3K6aq.mjs") },
558
- { path: "/collections", component: () => import("./Overview-D_T3K6aq.mjs") },
559
- { path: "/collections/:collectionId", component: () => import("./Entries-C8UJkrVC.mjs") },
560
- { path: "/collections/:collectionId/:entryId", component: () => import("./ContentEditor-B1nfKG_5.mjs") },
557
+ { path: "", component: () => import("./Overview-lWAyyenp.mjs") },
558
+ { path: "/collections", component: () => import("./Overview-lWAyyenp.mjs") },
559
+ { path: "/collections/:collectionId", component: () => import("./Entries-BdhUyJR5.mjs") },
560
+ { path: "/collections/:collectionId/:entryId", component: () => import("./ContentEditor-BNLEv-qJ.mjs") },
561
561
  { path: "/components", component: () => import("./Components-C83O-xlF.mjs") },
562
562
  { path: "/global-styling", component: () => import("./GlobalStyling-C9VthHWK.mjs") }
563
563
  ], q = [
@@ -632,18 +632,18 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
632
632
  default: "reserved_spots"
633
633
  }
634
634
  }), tA = [
635
- { path: "", component: () => import("./Overview-BYMrsZjM.mjs") },
635
+ { path: "", component: () => import("./Overview-Di84CsR5.mjs") },
636
636
  { path: "/create", component: () => import("./index-DrXxXB2F.mjs") },
637
637
  { path: "/create/regular", component: () => import("./regular-_05oq5Tx.mjs") },
638
638
  // { path: '/create/full-day', component: () => import('./pages/create/full-day.vue') },
639
639
  // { path: '/create/multi-day', component: () => import('./pages/create/multi-day.vue') },
640
- { path: "/edit/:id", component: () => import("./index-dOdMm1pV.mjs") },
641
- { path: "/edit/:id/agenda", component: () => import("./agenda-D1RxMxBS.mjs") },
640
+ { path: "/edit/:id", component: () => import("./index-unsDfNYv.mjs") },
641
+ { path: "/edit/:id/agenda", component: () => import("./agenda-neyeLWv-.mjs") },
642
642
  { path: "/edit/:id/exceptions", component: () => import("./exceptions-vo8SA5SE.mjs") },
643
643
  { path: "/edit/:id/availability", component: () => import("./availability-CMrRa5y2.mjs") },
644
644
  { path: "/edit/:id/payment", component: () => import("./payment-C3ohkehF.mjs") },
645
645
  { path: "/edit/:id/resources", component: () => import("./resources-WI_4SO6T.mjs") },
646
- { path: "/edit/:id/orders", component: () => import("./orders-CzzcFQha.mjs") },
646
+ { path: "/edit/:id/orders", component: () => import("./orders-C65SlpJy.mjs") },
647
647
  { path: "/edit/:id/booking-data", component: () => import("./booking-data-DgJd0BcM.mjs") }
648
648
  ], iA = [
649
649
  { key: "create-agendas", name: "Create agendas", description: "Team member can create agendas" },
@@ -0,0 +1 @@
1
+ "use strict";function u(t,i){if(!t)return"";const e=i?.reduce((n,r)=>(n[r.name]=r.value,n),{})??{};return a(t,h(e))}function a(t,i,e="text"){const n=d(t);if(!n.length)return t;if(n.length===1&&n[0].start===0&&n[0].end===t.length)return c(n[0].expression,i);let r="",s=0;for(const o of n)r+=t.slice(s,o.start),r+=l(c(o.expression,i),e),s=o.end;return r+t.slice(s)}function c(t,i){if(!t)return"";const e=I(t),n={...i};for(const o of e)o in n||(n[o]=void 0);const r=Object.keys(n),s=Object.values(n);try{return new Function(...r,`'use strict'; return (${t})`)(...s)}catch(o){console.warn(`Interpolation failed for expression: "${t}"`,o);return}}function l(t,i){if(i==="js"){if(t==null)return"null";if(typeof t=="string")return JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return String(t);try{return JSON.stringify(t)}catch{return"null"}}if(t==null)return"";if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return String(t);try{return JSON.stringify(t)}catch{return String(t)}}const f=new Map;function d(t){const i=[];let e=0;for(;e<t.length;){const n=t.indexOf("{{",e);if(n===-1)break;const r=y(t,n+2);if(r===-1){e=n+2;continue}i.push({start:n,end:r+2,expression:t.slice(n+2,r).trim()}),e=r+2}return i}function y(t,i){let e=t.indexOf("}}",i);for(;e!==-1;){const n=t.slice(i,e).trim();if(p(n))return e;e=t.indexOf("}}",e+1)}return-1}function p(t){if(!t)return!0;const i=f.get(t);if(i!==void 0)return i;let e=!1;try{new Function(`'use strict'; return (${t})`),e=!0}catch{e=!1}return f.set(t,e),e}function g(t){return/^[$A-Z_][0-9A-Z_$]*$/i.test(t)}function h(t){const i=["__proto__","constructor","prototype"],e=r=>{if(Array.isArray(r))return r.map(e);if(r&&typeof r=="object"){const s={};for(const o in r)i.includes(o)||(s[o]=e(r[o]));return s}return r},n={};for(const r in t)!i.includes(r)&&g(r)&&(n[r]=e(t[r]));return n}const S=new Set(["Number","String","Boolean","Array","Object","JSON","Math","Date","RegExp","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","NaN","Infinity","Intl"]);function I(t){const i=t.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],e=new Set(["true","false","null","undefined","return","if","else","try","catch","typeof","new","delete","void","throw","in","instanceof","var","let","const","function","class","this","super","switch","case","break","continue","default","for","while","do","of","with","yield","await","async","import","export","from","debugger"]);return[...new Set(i.filter(n=>!e.has(n)&&!S.has(n)))]}exports.interpolateTemplateFromVariableContext=u;
@@ -0,0 +1,180 @@
1
+ function I(n, i) {
2
+ if (!n) return "";
3
+ const e = i?.reduce((t, r) => (t[r.name] = r.value, t), {}) ?? {};
4
+ return u(n, h(e));
5
+ }
6
+ function u(n, i, e = "text") {
7
+ const t = l(n);
8
+ if (!t.length) return n;
9
+ if (t.length === 1 && t[0].start === 0 && t[0].end === n.length)
10
+ return c(t[0].expression, i);
11
+ let r = "", s = 0;
12
+ for (const o of t)
13
+ r += n.slice(s, o.start), r += a(
14
+ c(o.expression, i),
15
+ e
16
+ ), s = o.end;
17
+ return r + n.slice(s);
18
+ }
19
+ function c(n, i) {
20
+ if (!n) return "";
21
+ const e = S(n), t = { ...i };
22
+ for (const o of e)
23
+ o in t || (t[o] = void 0);
24
+ const r = Object.keys(t), s = Object.values(t);
25
+ try {
26
+ return new Function(...r, `'use strict'; return (${n})`)(...s);
27
+ } catch (o) {
28
+ console.warn(`Interpolation failed for expression: "${n}"`, o);
29
+ return;
30
+ }
31
+ }
32
+ function a(n, i) {
33
+ if (i === "js") {
34
+ if (n == null) return "null";
35
+ if (typeof n == "string") return JSON.stringify(n);
36
+ if (typeof n == "number" || typeof n == "boolean") return String(n);
37
+ try {
38
+ return JSON.stringify(n);
39
+ } catch {
40
+ return "null";
41
+ }
42
+ }
43
+ if (n == null) return "";
44
+ if (typeof n == "string") return n;
45
+ if (typeof n == "number" || typeof n == "boolean") return String(n);
46
+ try {
47
+ return JSON.stringify(n);
48
+ } catch {
49
+ return String(n);
50
+ }
51
+ }
52
+ const f = /* @__PURE__ */ new Map();
53
+ function l(n) {
54
+ const i = [];
55
+ let e = 0;
56
+ for (; e < n.length; ) {
57
+ const t = n.indexOf("{{", e);
58
+ if (t === -1) break;
59
+ const r = d(n, t + 2);
60
+ if (r === -1) {
61
+ e = t + 2;
62
+ continue;
63
+ }
64
+ i.push({
65
+ start: t,
66
+ end: r + 2,
67
+ expression: n.slice(t + 2, r).trim()
68
+ }), e = r + 2;
69
+ }
70
+ return i;
71
+ }
72
+ function d(n, i) {
73
+ let e = n.indexOf("}}", i);
74
+ for (; e !== -1; ) {
75
+ const t = n.slice(i, e).trim();
76
+ if (y(t)) return e;
77
+ e = n.indexOf("}}", e + 1);
78
+ }
79
+ return -1;
80
+ }
81
+ function y(n) {
82
+ if (!n) return !0;
83
+ const i = f.get(n);
84
+ if (i !== void 0) return i;
85
+ let e = !1;
86
+ try {
87
+ new Function(`'use strict'; return (${n})`), e = !0;
88
+ } catch {
89
+ e = !1;
90
+ }
91
+ return f.set(n, e), e;
92
+ }
93
+ function g(n) {
94
+ return /^[$A-Z_][0-9A-Z_$]*$/i.test(n);
95
+ }
96
+ function h(n) {
97
+ const i = ["__proto__", "constructor", "prototype"], e = (r) => {
98
+ if (Array.isArray(r)) return r.map(e);
99
+ if (r && typeof r == "object") {
100
+ const s = {};
101
+ for (const o in r)
102
+ i.includes(o) || (s[o] = e(r[o]));
103
+ return s;
104
+ }
105
+ return r;
106
+ }, t = {};
107
+ for (const r in n)
108
+ !i.includes(r) && g(r) && (t[r] = e(n[r]));
109
+ return t;
110
+ }
111
+ const p = /* @__PURE__ */ new Set([
112
+ "Number",
113
+ "String",
114
+ "Boolean",
115
+ "Array",
116
+ "Object",
117
+ "JSON",
118
+ "Math",
119
+ "Date",
120
+ "RegExp",
121
+ "parseInt",
122
+ "parseFloat",
123
+ "isNaN",
124
+ "isFinite",
125
+ "encodeURIComponent",
126
+ "decodeURIComponent",
127
+ "encodeURI",
128
+ "decodeURI",
129
+ "NaN",
130
+ "Infinity",
131
+ "Intl"
132
+ ]);
133
+ function S(n) {
134
+ const i = n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g) || [], e = /* @__PURE__ */ new Set([
135
+ "true",
136
+ "false",
137
+ "null",
138
+ "undefined",
139
+ "return",
140
+ "if",
141
+ "else",
142
+ "try",
143
+ "catch",
144
+ "typeof",
145
+ "new",
146
+ "delete",
147
+ "void",
148
+ "throw",
149
+ "in",
150
+ "instanceof",
151
+ "var",
152
+ "let",
153
+ "const",
154
+ "function",
155
+ "class",
156
+ "this",
157
+ "super",
158
+ "switch",
159
+ "case",
160
+ "break",
161
+ "continue",
162
+ "default",
163
+ "for",
164
+ "while",
165
+ "do",
166
+ "of",
167
+ "with",
168
+ "yield",
169
+ "await",
170
+ "async",
171
+ "import",
172
+ "export",
173
+ "from",
174
+ "debugger"
175
+ ]);
176
+ return [...new Set(i.filter((t) => !e.has(t) && !p.has(t)))];
177
+ }
178
+ export {
179
+ I as i
180
+ };