@autoafleveren/ui 0.1.2 → 0.1.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.
package/dist/ui.js CHANGED
@@ -1,57 +1,58 @@
1
- import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as _, unref as n, createElementVNode as s, createBlock as y, renderSlot as v, withCtx as f, createCommentVNode as b, ref as p, shallowRef as j, isRef as S, computed as L, resolveDynamicComponent as x, createTextVNode as N, toDisplayString as O, createVNode as m, Fragment as k, renderList as $ } from "vue";
2
- import { TransitionRoot as P, Dialog as T, TransitionChild as E } from "@headlessui/vue";
3
- const R = {
1
+ import { defineComponent as p, openBlock as a, createElementBlock as c, normalizeClass as b, unref as n, createElementVNode as l, createBlock as y, renderSlot as d, withCtx as v, createCommentVNode as x, resolveDynamicComponent as $, ref as h, shallowRef as E, isRef as D, computed as I, createTextVNode as z, toDisplayString as C, Fragment as L, renderList as B, createVNode as m } from "vue";
2
+ import { TransitionRoot as H, Dialog as R, TransitionChild as V } from "@headlessui/vue";
3
+ const F = {
4
+ "extra-small": ["h-4", "w-4"],
4
5
  small: ["h-5", "w-5"],
5
6
  medium: ["h-7", "w-7"],
6
7
  large: ["h-10", "w-10"]
7
- }, V = /* @__PURE__ */ s("circle", {
8
+ }, q = /* @__PURE__ */ l("circle", {
8
9
  stroke: "currentColor",
9
10
  class: "opacity-25",
10
11
  "stroke-width": "4",
11
12
  cx: "12",
12
13
  cy: "12",
13
14
  r: "10"
14
- }, null, -1), D = /* @__PURE__ */ s("path", {
15
+ }, null, -1), G = /* @__PURE__ */ l("path", {
15
16
  class: "opacity-75",
16
17
  fill: "currentColor",
17
18
  d: `M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
18
19
  7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`
19
- }, null, -1), H = [
20
- V,
21
- D
22
- ], F = /* @__PURE__ */ h({
20
+ }, null, -1), J = [
21
+ q,
22
+ G
23
+ ], S = /* @__PURE__ */ p({
23
24
  __name: "AppLoader",
24
25
  props: {
25
26
  size: { default: "medium" }
26
27
  },
27
- setup(e) {
28
- return (t, a) => (o(), r("svg", {
29
- class: _([n(R)[e.size], "animate-spin"]),
28
+ setup(t) {
29
+ return (e, s) => (a(), c("svg", {
30
+ class: b([n(F)[t.size], "animate-spin"]),
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  viewBox: "0 0 24 24",
32
33
  fill: "none"
33
- }, H, 2));
34
+ }, J, 2));
34
35
  }
35
- }), q = { class: "app-button__icon h-4" }, G = /* @__PURE__ */ h({
36
+ }), K = { class: "app-button__icon h-4" }, Q = /* @__PURE__ */ p({
36
37
  __name: "ButtonIconSlot",
37
38
  props: {
38
39
  loading: { type: Boolean }
39
40
  },
40
- setup(e) {
41
- return (t, a) => (o(), r("span", q, [
42
- e.loading ? (o(), y(F, {
41
+ setup(t) {
42
+ return (e, s) => (a(), c("span", K, [
43
+ t.loading ? (a(), y(S, {
43
44
  key: 0,
44
45
  class: "w-4"
45
- })) : v(t.$slots, "default", { key: 1 }, void 0, !0)
46
+ })) : d(e.$slots, "default", { key: 1 }, void 0, !0)
46
47
  ]));
47
48
  }
48
49
  });
49
- const J = (e, t) => {
50
- const a = e.__vccOpts || e;
51
- for (const [l, i] of t)
52
- a[l] = i;
53
- return a;
54
- }, A = /* @__PURE__ */ J(G, [["__scopeId", "data-v-04d5f165"]]), K = {
50
+ const N = (t, e) => {
51
+ const s = t.__vccOpts || t;
52
+ for (const [o, r] of e)
53
+ s[o] = r;
54
+ return s;
55
+ }, j = /* @__PURE__ */ N(Q, [["__scopeId", "data-v-04d5f165"]]), U = {
55
56
  plain: [
56
57
  "text-primary",
57
58
  "border-0"
@@ -69,11 +70,11 @@ const J = (e, t) => {
69
70
  "enabled:hover:text-white",
70
71
  "enabled:hover:bg-primary"
71
72
  ]
72
- }, Q = {
73
+ }, W = {
73
74
  small: ["px-5", "py-2"],
74
75
  medium: ["px-5", "py-3"],
75
76
  large: ["px-5", "py-4"]
76
- }, U = ["type", "disabled"], ve = /* @__PURE__ */ h({
77
+ }, X = ["type", "disabled"], Se = /* @__PURE__ */ p({
77
78
  __name: "AppButton",
78
79
  props: {
79
80
  size: { default: "medium" },
@@ -82,116 +83,222 @@ const J = (e, t) => {
82
83
  disabled: { type: Boolean, default: !1 },
83
84
  loading: { type: Boolean, default: !1 }
84
85
  },
85
- setup(e) {
86
- return (t, a) => (o(), r("button", {
87
- type: e.type,
88
- disabled: e.disabled || e.loading,
89
- class: _([[
90
- ...n(K)[e.colorType],
91
- ...n(Q)[e.size]
86
+ setup(t) {
87
+ return (e, s) => (a(), c("button", {
88
+ type: t.type,
89
+ disabled: t.disabled || t.loading,
90
+ class: b([[
91
+ ...n(U)[t.colorType],
92
+ ...n(W)[t.size]
92
93
  ], "app-button inline-flex items-center whitespace-nowrap rounded-lg border text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])
93
94
  }, [
94
- t.$slots.leadingIcon || e.loading ? (o(), y(A, {
95
+ e.$slots.leadingIcon || t.loading ? (a(), y(j, {
95
96
  key: 0,
96
- loading: e.loading,
97
+ loading: t.loading,
97
98
  class: "mr-3",
98
99
  "data-test-leading-icon": ""
99
100
  }, {
100
- default: f(() => [
101
- v(t.$slots, "leadingIcon")
101
+ default: v(() => [
102
+ d(e.$slots, "leadingIcon")
102
103
  ]),
103
104
  _: 3
104
- }, 8, ["loading"])) : b("", !0),
105
- v(t.$slots, "default"),
106
- t.$slots.trailingIcon ? (o(), y(A, {
105
+ }, 8, ["loading"])) : x("", !0),
106
+ d(e.$slots, "default"),
107
+ e.$slots.trailingIcon ? (a(), y(j, {
107
108
  key: 1,
108
109
  class: "ml-3",
109
110
  "data-test-trailing-icon": ""
110
111
  }, {
111
- default: f(() => [
112
- v(t.$slots, "trailingIcon")
112
+ default: v(() => [
113
+ d(e.$slots, "trailingIcon")
113
114
  ]),
114
115
  _: 3
115
- })) : b("", !0)
116
- ], 10, U));
116
+ })) : x("", !0)
117
+ ], 10, X));
117
118
  }
118
- }), d = {
119
- navigationItems: p([]),
120
- mainMenuOpen: p(!1),
121
- mobileMenuOpen: p(!1),
122
- navigationComponent: j("a"),
123
- logo: p(null),
124
- contactRoute: p()
119
+ }), Y = {
120
+ key: 0,
121
+ class: "app-card__icon absolute right-5 top-5 h-5 text-primary"
122
+ }, Z = /* @__PURE__ */ p({
123
+ __name: "CardIconSlot",
124
+ props: {
125
+ icon: null
126
+ },
127
+ setup(t) {
128
+ const e = t;
129
+ return (s, o) => s.$slots.default || t.icon ? (a(), c("div", Y, [
130
+ d(s.$slots, "default", {}, () => [
131
+ e.icon ? (a(), y($(typeof e.icon == "string" ? "span" : e.icon), {
132
+ key: 0,
133
+ "data-test-icon-component": "",
134
+ innerHTML: e.icon
135
+ }, null, 8, ["innerHTML"])) : x("", !0)
136
+ ], !0)
137
+ ])) : x("", !0);
138
+ }
139
+ });
140
+ const ee = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-14ba04ea"]]), _ = {
141
+ navigationItems: h([]),
142
+ mainMenuOpen: h(!1),
143
+ mobileMenuOpen: h(!1),
144
+ navigationComponent: E("a"),
145
+ logo: h(null),
146
+ contactRoute: h()
125
147
  };
126
- function M() {
127
- function e(u) {
128
- d.navigationItems.value = S(u) ? u == null ? void 0 : u.value : u;
148
+ function A() {
149
+ function t(i) {
150
+ _.navigationItems.value = D(i) ? i == null ? void 0 : i.value : i;
129
151
  }
130
- function t(u) {
131
- d.navigationComponent.value = u;
152
+ function e(i) {
153
+ _.navigationComponent.value = i;
132
154
  }
133
- function a(u) {
134
- d.logo.value = u;
155
+ function s(i) {
156
+ _.logo.value = i;
135
157
  }
136
- function l() {
137
- d.mainMenuOpen.value = !0;
158
+ function o() {
159
+ _.mainMenuOpen.value = !0;
138
160
  }
139
- function i() {
140
- d.mainMenuOpen.value = !1;
161
+ function r() {
162
+ _.mainMenuOpen.value = !1;
141
163
  }
142
- function c() {
143
- d.mainMenuOpen.value = !d.mainMenuOpen.value;
164
+ function u() {
165
+ _.mainMenuOpen.value = !_.mainMenuOpen.value;
144
166
  }
145
- function C() {
146
- d.mobileMenuOpen.value = !0;
167
+ function w() {
168
+ _.mobileMenuOpen.value = !0;
147
169
  }
148
- function B() {
149
- d.mobileMenuOpen.value = !1;
170
+ function g() {
171
+ _.mobileMenuOpen.value = !1;
150
172
  }
151
- function w() {
152
- d.mobileMenuOpen.value = !d.mobileMenuOpen.value;
173
+ function f() {
174
+ _.mobileMenuOpen.value = !_.mobileMenuOpen.value;
153
175
  }
154
176
  return {
155
- ...d,
156
- setNavigationItems: e,
157
- setNavigationComponent: t,
158
- setLogo: a,
159
- openMainMenu: l,
160
- closeMainMenu: i,
161
- toggleMainMenu: c,
162
- openMobileMenu: C,
163
- closeMobileMenu: B,
164
- toggleMobileMenu: w
177
+ ..._,
178
+ setNavigationItems: t,
179
+ setNavigationComponent: e,
180
+ setLogo: s,
181
+ openMainMenu: o,
182
+ closeMainMenu: r,
183
+ toggleMainMenu: u,
184
+ openMobileMenu: w,
185
+ closeMobileMenu: g,
186
+ toggleMobileMenu: f
165
187
  };
166
188
  }
167
- const g = {
168
- layoutImage: p(null),
189
+ const k = {
190
+ layoutImage: h(null),
169
191
  colors: {
170
- primaryColor: p(null),
171
- primaryColorActive: p(null),
172
- secondaryColor: p(null),
173
- secondaryColorActive: p(null)
192
+ primaryColor: h(null),
193
+ primaryColorActive: h(null),
194
+ secondaryColor: h(null),
195
+ secondaryColorActive: h(null)
174
196
  }
175
197
  };
176
- function W() {
177
- function e(l) {
178
- g.layoutImage.value = l;
198
+ function te() {
199
+ function t(o) {
200
+ k.layoutImage.value = o;
179
201
  }
180
- function t(l, i) {
181
- g.colors.primaryColor.value = l, g.colors.primaryColorActive.value = i, document.documentElement.style.setProperty("--color-primary", l), document.documentElement.style.setProperty("--color-primary-active", i);
202
+ function e(o, r) {
203
+ k.colors.primaryColor.value = o, k.colors.primaryColorActive.value = r, document.documentElement.style.setProperty("--color-primary", o), document.documentElement.style.setProperty("--color-primary-active", r);
182
204
  }
183
- function a(l, i) {
184
- g.colors.secondaryColor.value = l, g.colors.secondaryColorActive.value = i, document.documentElement.style.setProperty("--color-secondary", l), document.documentElement.style.setProperty("--color-secondary-active", i);
205
+ function s(o, r) {
206
+ k.colors.secondaryColor.value = o, k.colors.secondaryColorActive.value = r, document.documentElement.style.setProperty("--color-secondary", o), document.documentElement.style.setProperty("--color-secondary-active", r);
185
207
  }
186
208
  return {
187
- ...g,
188
- setLayoutImage: e,
189
- setPrimaryColors: t,
190
- setSecondaryColors: a
209
+ ...k,
210
+ setLayoutImage: t,
211
+ setPrimaryColors: e,
212
+ setSecondaryColors: s
191
213
  };
192
214
  }
193
- function X(e, t) {
194
- return o(), r("svg", {
215
+ const ne = /* @__PURE__ */ p({
216
+ __name: "CardAction",
217
+ props: {
218
+ item: null
219
+ },
220
+ setup(t) {
221
+ const e = t, { navigationComponent: s } = A(), o = h(!1), r = I(() => o.value || typeof e.item.icon != "string"), u = I(() => o.value ? S : e.item.icon);
222
+ async function w(g) {
223
+ var f, i, M;
224
+ (f = e.item) != null && f.onClick && (g.preventDefault(), o.value = !0, await Promise.resolve((M = (i = e.item) == null ? void 0 : i.onClick) == null ? void 0 : M.call(i)), o.value = !1);
225
+ }
226
+ return (g, f) => (a(), y($(n(s)), {
227
+ to: t.item.to,
228
+ href: t.item.href,
229
+ class: "app-card__action ml-auto flex justify-center text-zinc-600",
230
+ onClick: w
231
+ }, {
232
+ default: v(() => [
233
+ (a(), y($(n(r) ? n(u) : "span"), {
234
+ class: b([{ "!h-6": !n(r) }, "h-4 w-4"]),
235
+ size: o.value ? "extra-small" : void 0,
236
+ "data-test-icon": ""
237
+ }, {
238
+ default: v(() => [
239
+ z(C(n(r) ? "" : t.item.icon), 1)
240
+ ]),
241
+ _: 1
242
+ }, 8, ["class", "size"])),
243
+ l("span", {
244
+ class: b([{ "pl-4": t.item.icon }, "text-sm"]),
245
+ "data-test-name": ""
246
+ }, C(t.item.name), 3)
247
+ ]),
248
+ _: 1
249
+ }, 8, ["to", "href"]));
250
+ }
251
+ });
252
+ const oe = /* @__PURE__ */ N(ne, [["__scopeId", "data-v-0e561723"]]), ae = {
253
+ key: 1,
254
+ class: "text-2xl font-bold text-zinc-900",
255
+ "data-test-title": ""
256
+ }, se = {
257
+ class: "mt-2",
258
+ "data-test-content": ""
259
+ }, Ne = /* @__PURE__ */ p({
260
+ __name: "AppCard",
261
+ props: {
262
+ bordered: { type: Boolean, default: !1 },
263
+ title: { default: void 0 },
264
+ icon: { default: void 0 },
265
+ actions: { default: void 0 }
266
+ },
267
+ setup(t) {
268
+ return (e, s) => (a(), c("div", {
269
+ class: b([{ "before:hidden": !t.bordered }, "relative w-full overflow-hidden rounded-xl bg-white p-5 text-sm text-zinc-600 shadow shadow-zinc-200 before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])
270
+ }, [
271
+ e.$slots.icon || t.icon ? (a(), y(ee, {
272
+ key: 0,
273
+ icon: t.icon,
274
+ "data-test-icon": ""
275
+ }, {
276
+ default: v(() => [
277
+ d(e.$slots, "icon")
278
+ ]),
279
+ _: 3
280
+ }, 8, ["icon"])) : x("", !0),
281
+ t.title || e.$slots.title ? (a(), c("h3", ae, [
282
+ d(e.$slots, "title", {}, () => [
283
+ z(C(t.title), 1)
284
+ ])
285
+ ])) : x("", !0),
286
+ l("div", se, [
287
+ d(e.$slots, "default")
288
+ ]),
289
+ d(e.$slots, "actions", {}, () => [
290
+ (a(!0), c(L, null, B(t.actions, (o) => (a(), c("div", {
291
+ key: o.name,
292
+ class: "flex w-full"
293
+ }, [
294
+ m(oe, { item: o }, null, 8, ["item"])
295
+ ]))), 128))
296
+ ])
297
+ ], 2));
298
+ }
299
+ });
300
+ function le(t, e) {
301
+ return a(), c("svg", {
195
302
  xmlns: "http://www.w3.org/2000/svg",
196
303
  fill: "none",
197
304
  viewBox: "0 0 24 24",
@@ -199,15 +306,15 @@ function X(e, t) {
199
306
  stroke: "currentColor",
200
307
  "aria-hidden": "true"
201
308
  }, [
202
- s("path", {
309
+ l("path", {
203
310
  "stroke-linecap": "round",
204
311
  "stroke-linejoin": "round",
205
312
  d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
206
313
  })
207
314
  ]);
208
315
  }
209
- function Y(e, t) {
210
- return o(), r("svg", {
316
+ function ie(t, e) {
317
+ return a(), c("svg", {
211
318
  xmlns: "http://www.w3.org/2000/svg",
212
319
  fill: "none",
213
320
  viewBox: "0 0 24 24",
@@ -215,115 +322,120 @@ function Y(e, t) {
215
322
  stroke: "currentColor",
216
323
  "aria-hidden": "true"
217
324
  }, [
218
- s("path", {
325
+ l("path", {
219
326
  "stroke-linecap": "round",
220
327
  "stroke-linejoin": "round",
221
328
  d: "M6 18L18 6M6 6l12 12"
222
329
  })
223
330
  ]);
224
331
  }
225
- const Z = {
332
+ const re = {
226
333
  class: "pl-7 text-lg font-semibold text-zinc-900 md:hidden",
227
334
  "data-test-name": ""
228
- }, I = /* @__PURE__ */ h({
335
+ }, O = /* @__PURE__ */ p({
229
336
  __name: "NavigationItem",
230
337
  props: {
231
338
  item: null
232
339
  },
233
- setup(e) {
234
- const t = e, { navigationComponent: a } = M(), l = L(() => typeof t.item.icon != "string");
235
- return (i, c) => (o(), y(x(n(a)), {
236
- to: e.item.to,
237
- href: e.item.href,
238
- class: _([{
239
- "md:bg-primary": e.item.active ?? !1,
240
- "!rounded-full": e.item.rounded ?? !1,
241
- "mb-2": !e.item.bottom,
242
- "mt-2": e.item.bottom ?? !1
340
+ setup(t) {
341
+ const e = t, { navigationComponent: s } = A(), o = h(!1), r = I(() => o.value || typeof e.item.icon != "string"), u = I(() => o.value ? S : e.item.icon);
342
+ async function w(g) {
343
+ var f, i, M;
344
+ (f = e.item) != null && f.onClick && (g.preventDefault(), o.value = !0, await Promise.resolve((M = (i = e.item) == null ? void 0 : i.onClick) == null ? void 0 : M.call(i)), o.value = !1);
345
+ }
346
+ return (g, f) => (a(), y($(n(s)), {
347
+ to: t.item.to,
348
+ href: t.item.href,
349
+ class: b([{
350
+ "md:bg-primary": t.item.active ?? !1,
351
+ "!rounded-full": t.item.rounded ?? !1,
352
+ "mb-2": !t.item.bottom,
353
+ "mt-2": t.item.bottom ?? !1
243
354
  }, "flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),
244
- onClick: e.item.onClick
355
+ onClick: w
245
356
  }, {
246
- default: f(() => [
247
- (o(), y(x(n(l) ? e.item.icon : "span"), {
248
- class: _([{ "!h-6": !n(l) }, "h-4 w-4 text-zinc-900 md:text-white"]),
357
+ default: v(() => [
358
+ (a(), y($(n(r) ? n(u) : "span"), {
359
+ class: b([{ "!h-6": !n(r) }, "h-4 w-4 text-zinc-900 md:text-white"]),
360
+ size: o.value ? "extra-small" : void 0,
249
361
  "data-test-icon": ""
250
362
  }, {
251
- default: f(() => [
252
- N(O(e.item.icon), 1)
363
+ default: v(() => [
364
+ z(C(n(r) ? "" : t.item.icon), 1)
253
365
  ]),
254
366
  _: 1
255
- }, 8, ["class"])),
256
- s("span", Z, O(e.item.name), 1)
367
+ }, 8, ["class", "size"])),
368
+ l("span", re, C(t.item.name), 1)
257
369
  ]),
258
370
  _: 1
259
- }, 8, ["to", "href", "class", "onClick"]));
371
+ }, 8, ["to", "href", "class"]));
260
372
  }
261
- }), z = /* @__PURE__ */ h({
373
+ }), P = /* @__PURE__ */ p({
262
374
  __name: "SupportItem",
263
- setup(e) {
264
- const { contactRoute: t, navigationComponent: a } = M();
265
- return (l, i) => n(t) ? (o(), y(x(n(a)), {
375
+ setup(t) {
376
+ const { contactRoute: e, navigationComponent: s } = A();
377
+ return (o, r) => n(e) ? (a(), y($(n(s)), {
266
378
  key: 0,
267
- to: n(a) !== "a" ? n(t) : void 0,
268
- href: n(a) ? n(t) : void 0,
269
- class: "fixed bottom-5 right-5 z-50 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active",
379
+ to: n(s) !== "a" ? n(e) : void 0,
380
+ href: n(s) ? n(e) : void 0,
381
+ class: "fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active",
270
382
  "data-test-help-icon": ""
271
383
  }, {
272
- default: f(() => [
273
- N(" ? ")
384
+ default: v(() => [
385
+ z(" ? ")
274
386
  ]),
275
387
  _: 1
276
- }, 8, ["to", "href"])) : b("", !0);
388
+ }, 8, ["to", "href"])) : x("", !0);
277
389
  }
278
- }), ee = { class: "flex items-center justify-between bg-zinc-50 px-2 py-4 text-black md:hidden" }, te = ["innerHTML"], ne = /* @__PURE__ */ s("div", { class: "w-1/3" }, null, -1), oe = {
390
+ }), ce = { class: "flex items-center justify-between bg-zinc-50 px-2 py-4 text-black md:hidden" }, ue = ["innerHTML"], de = /* @__PURE__ */ l("div", { class: "w-1/3" }, null, -1), me = {
279
391
  class: "relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none",
280
392
  "data-test-navigation-wrapper": ""
281
- }, ae = {
393
+ }, pe = {
282
394
  class: "h-0 flex-1 overflow-y-auto p-4",
283
395
  "data-test-navigation-links-wrapper": ""
284
- }, le = {
396
+ }, fe = {
285
397
  "aria-label": "MainMenu",
286
398
  class: "mt-5"
287
- }, se = { class: "mb-auto" }, ie = /* @__PURE__ */ h({
399
+ }, _e = { class: "mb-auto" }, he = /* @__PURE__ */ p({
288
400
  __name: "Mobile",
289
- setup(e) {
401
+ setup(t) {
290
402
  const {
291
- logo: t,
292
- navigationItems: a,
293
- mobileMenuOpen: l,
294
- toggleMobileMenu: i,
295
- closeMobileMenu: c
296
- } = M(), C = L(() => l.value ? Y : X);
297
- return (B, w) => (o(), r("div", ee, [
298
- s("div", {
403
+ logo: e,
404
+ navigationItems: s,
405
+ mobileMenuOpen: o,
406
+ toggleMobileMenu: r,
407
+ closeMobileMenu: u
408
+ } = A(), w = I(() => o.value ? ie : le);
409
+ return (g, f) => (a(), c("div", ce, [
410
+ l("div", {
299
411
  class: "inline-flex w-1/3 cursor-pointer items-center justify-start rounded-sm !p-2 hover:text-primary focus:outline-none",
300
412
  "data-test-menu-icon-wrapper": "",
301
- onClick: w[0] || (w[0] = //@ts-ignore
302
- (...u) => n(i) && n(i)(...u))
413
+ onClick: f[0] || (f[0] = //@ts-ignore
414
+ (...i) => n(r) && n(r)(...i))
303
415
  }, [
304
- (o(), y(x(n(C)), {
416
+ (a(), y($(n(w)), {
305
417
  class: "block h-6 w-6 text-black",
306
418
  "aria-hidden": "true"
307
419
  }))
308
420
  ]),
309
- s("div", {
421
+ l("div", {
310
422
  class: "w-1/3",
311
423
  "data-test-logo-wrapper": "",
312
- innerHTML: n(t)
313
- }, null, 8, te),
314
- ne,
315
- m(n(P), {
316
- show: n(l),
424
+ innerHTML: n(e)
425
+ }, null, 8, ue),
426
+ de,
427
+ m(n(H), {
428
+ show: n(o),
317
429
  as: "template"
318
430
  }, {
319
- default: f(() => [
320
- m(n(T), {
431
+ default: v(() => [
432
+ m(n(R), {
321
433
  as: "div",
322
434
  class: "fixed inset-0 top-20 z-50 flex -translate-y-2 lg:hidden",
323
- onClose: n(c)
435
+ onClose: n(u)
324
436
  }, {
325
- default: f(() => [
326
- m(n(E), {
437
+ default: v(() => [
438
+ m(n(V), {
327
439
  as: "template",
328
440
  enter: "transition ease-in-out duration-300 transform",
329
441
  "enter-from": "translate-y-full",
@@ -332,20 +444,20 @@ const Z = {
332
444
  "leave-from": "translate-y-0",
333
445
  "leave-to": "translate-y-full"
334
446
  }, {
335
- default: f(() => [
336
- s("div", oe, [
337
- s("div", ae, [
338
- s("nav", le, [
339
- s("ul", se, [
340
- (o(!0), r(k, null, $(n(a), (u) => (o(), r("li", {
341
- key: u.name,
447
+ default: v(() => [
448
+ l("div", me, [
449
+ l("div", pe, [
450
+ l("nav", fe, [
451
+ l("ul", _e, [
452
+ (a(!0), c(L, null, B(n(s), (i) => (a(), c("li", {
453
+ key: i.name,
342
454
  "data-test-navigation-item": ""
343
455
  }, [
344
- m(I, { item: u }, null, 8, ["item"])
456
+ m(O, { item: i }, null, 8, ["item"])
345
457
  ]))), 128))
346
458
  ])
347
459
  ]),
348
- m(z)
460
+ m(P)
349
461
  ])
350
462
  ])
351
463
  ]),
@@ -357,70 +469,117 @@ const Z = {
357
469
  ]),
358
470
  _: 1
359
471
  }, 8, ["show"]),
360
- m(z)
472
+ m(P)
361
473
  ]));
362
474
  }
363
- }), re = { class: "mx-auto mb-auto" }, ce = { class: "mx-auto mt-auto" }, ue = /* @__PURE__ */ h({
475
+ }), ve = { class: "mx-auto mb-auto" }, ye = { class: "mx-auto mt-auto" }, T = /* @__PURE__ */ p({
364
476
  __name: "AppNavigationMenu",
365
- setup(e) {
366
- const { navigationItems: t, mainMenuOpen: a } = M();
367
- return (l, i) => (o(), r("div", null, [
368
- s("aside", {
369
- class: _([{ "px-3 md:!w-20": n(a) }, "sticky top-0 hidden h-screen w-0 flex-col justify-center overflow-hidden py-5 transition-all duration-500 md:flex"]),
477
+ setup(t) {
478
+ const { navigationItems: e, mainMenuOpen: s } = A();
479
+ return (o, r) => (a(), c("div", null, [
480
+ l("aside", {
481
+ class: b([{ "px-3 md:!w-20": n(s) }, "sticky top-0 hidden h-screen w-0 flex-col justify-center overflow-hidden py-5 transition-all duration-500 md:flex"]),
370
482
  "data-test-main-menu": ""
371
483
  }, [
372
- s("ul", re, [
373
- (o(!0), r(k, null, $(n(t).filter((c) => c.bottom !== !0), (c) => (o(), r("li", {
374
- key: c.name,
484
+ l("ul", ve, [
485
+ (a(!0), c(L, null, B(n(e).filter((u) => u.bottom !== !0), (u) => (a(), c("li", {
486
+ key: u.name,
375
487
  "data-test-top-navigation-item": ""
376
488
  }, [
377
- m(I, { item: c }, null, 8, ["item"])
489
+ m(O, { item: u }, null, 8, ["item"])
378
490
  ]))), 128))
379
491
  ]),
380
- s("ul", ce, [
381
- (o(!0), r(k, null, $(n(t).filter((c) => c.bottom), (c) => (o(), r("li", {
382
- key: c.name,
492
+ l("ul", ye, [
493
+ (a(!0), c(L, null, B(n(e).filter((u) => u.bottom), (u) => (a(), c("li", {
494
+ key: u.name,
383
495
  "data-test-bottom-navigation-item": ""
384
496
  }, [
385
- m(I, { item: c }, null, 8, ["item"])
497
+ m(O, { item: u }, null, 8, ["item"])
386
498
  ]))), 128)),
387
- s("li", null, [
388
- m(z, { class: "!static" })
499
+ l("li", null, [
500
+ m(P, { class: "!static" })
389
501
  ])
390
502
  ])
391
503
  ], 2),
392
- m(ie)
504
+ m(he)
393
505
  ]));
394
506
  }
395
- }), de = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, me = { class: "flex h-full grow items-center justify-center bg-white px-10 transition-all md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl md:px-24" }, pe = { class: "mx-auto md:max-w-lg" }, fe = {
507
+ }), ge = { class: "flex text-sm font-bold" }, be = {
508
+ class: "rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white",
509
+ "data-test-country-code": ""
510
+ }, xe = {
511
+ class: "rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase text-zinc-900",
512
+ "data-test-license-plate": ""
513
+ }, je = /* @__PURE__ */ p({
514
+ __name: "AppLicensePlate",
515
+ props: {
516
+ license: { default: void 0 },
517
+ country: { default: "NL" }
518
+ },
519
+ setup(t) {
520
+ return (e, s) => (a(), c("div", ge, [
521
+ l("span", be, C(t.country), 1),
522
+ l("span", xe, [
523
+ d(e.$slots, "default", {}, () => [
524
+ z(C(t.license), 1)
525
+ ])
526
+ ])
527
+ ]));
528
+ }
529
+ }), we = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, $e = { class: "flex h-full grow items-center justify-center bg-white px-10 transition-all md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl md:px-24" }, Ce = { class: "mx-auto md:max-w-lg" }, ke = {
396
530
  class: "hidden w-1/2 md:block",
397
531
  "data-test-layout-image-wrapper": ""
398
- }, he = ["src"], _e = /* @__PURE__ */ h({
532
+ }, Me = ["src"], Te = /* @__PURE__ */ p({
399
533
  __name: "Auth",
400
- setup(e) {
401
- const { layoutImage: t } = W();
402
- return (a, l) => (o(), r("div", de, [
403
- m(n(ue)),
404
- s("main", me, [
405
- s("div", pe, [
406
- v(a.$slots, "default")
534
+ setup(t) {
535
+ const { layoutImage: e } = te();
536
+ return (s, o) => (a(), c("div", we, [
537
+ m(n(T)),
538
+ l("main", $e, [
539
+ l("div", Ce, [
540
+ d(s.$slots, "default")
407
541
  ])
408
542
  ]),
409
- s("div", fe, [
410
- n(t) ? (o(), r("img", {
543
+ l("div", ke, [
544
+ n(e) ? (a(), c("img", {
411
545
  key: 0,
412
- src: n(t),
546
+ src: n(e),
413
547
  class: "h-screen w-full object-fill"
414
- }, null, 8, he)) : b("", !0)
548
+ }, null, 8, Me)) : x("", !0)
549
+ ])
550
+ ]));
551
+ }
552
+ }), Ie = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, ze = /* @__PURE__ */ l("div", { id: "top order-2" }, null, -1), Ae = { class: "order-4 flex h-full grow bg-zinc-100 px-2 py-8 transition-all md:order-3 md:h-auto md:rounded-l-2xl md:px-6 md:pr-12" }, Le = { class: "w-full" }, Be = {
553
+ id: "sidebar-wrapper",
554
+ class: "order-3 w-141 max-w-full shrink-0 grow-0 rounded-l-2xl bg-white px-4 py-8 md:sticky md:top-0 md:order-4 md:-ml-5 md:max-h-screen",
555
+ "data-test-layout-sidebar-wrapper": ""
556
+ }, Ee = /* @__PURE__ */ p({
557
+ __name: "Base",
558
+ setup(t) {
559
+ return (e, s) => (a(), c("div", Ie, [
560
+ m(n(T), { class: "order-1" }),
561
+ d(e.$slots, "top", {}, () => [
562
+ ze
563
+ ]),
564
+ l("main", Ae, [
565
+ l("div", Le, [
566
+ d(e.$slots, "default")
567
+ ])
568
+ ]),
569
+ l("div", Be, [
570
+ d(e.$slots, "sidebar")
415
571
  ])
416
572
  ]));
417
573
  }
418
574
  });
419
575
  export {
420
- ve as AppButton,
421
- F as AppLoader,
422
- ue as AppNavigationMenu,
423
- _e as AuthLayout,
424
- W as useLayout,
425
- M as useNavigation
576
+ Se as AppButton,
577
+ Ne as AppCard,
578
+ je as AppLicensePlate,
579
+ S as AppLoader,
580
+ T as AppNavigationMenu,
581
+ Te as AuthLayout,
582
+ Ee as BaseLayout,
583
+ te as useLayout,
584
+ A as useNavigation
426
585
  };